diff options
| author | Alex Deymo <deymo@google.com> | 2017-05-19 13:16:20 -0700 |
|---|---|---|
| committer | Sen Jiang <senj@google.com> | 2017-05-31 15:25:04 -0700 |
| commit | 558fe6ad38c6c419a135ce1ed1e3d1152f55ff7c (patch) | |
| tree | e2f45f4008b646aca88c25ffcc6811bea8295f83 | |
| parent | 6765a68c5f3963ce986f0bb11951b3af40e3e098 (diff) | |
Fix Chrome OS build of update_engine.
Fix a typo in image_properties_chromeos.cc, $ifdef out an unused
constant in Chrome OS and adds the bspatch library to the Chrome OS
build.
Bug: None
Test: FEATURES=test emerge-link update_engine
Change-Id: I483da4b43b5cbd8b7349b0ff42973f97d197ba8e
| -rw-r--r-- | image_properties_chromeos.cc | 2 | ||||
| -rw-r--r-- | libcurl_http_fetcher.cc | 6 | ||||
| -rw-r--r-- | update_engine.gyp | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/image_properties_chromeos.cc b/image_properties_chromeos.cc index 024eebffc..6bab63f06 100644 --- a/image_properties_chromeos.cc +++ b/image_properties_chromeos.cc @@ -116,7 +116,7 @@ ImageProperties LoadImageProperties(SystemState* system_state) { GetStringWithDefault(lsb_release, kLsbReleaseAutoUpdateServerKey, constants::kOmahaDefaultProductionURL); // Build fingerprint not used in Chrome OS. - result.buiild_fingerprint = ""; + result.build_fingerprint = ""; return result; } diff --git a/libcurl_http_fetcher.cc b/libcurl_http_fetcher.cc index f3d6a18c7..cb038a512 100644 --- a/libcurl_http_fetcher.cc +++ b/libcurl_http_fetcher.cc @@ -52,9 +52,6 @@ namespace { const int kNoNetworkRetrySeconds = 10; -// Socket tag used by all network sockets. See qtaguid kernel module for stats. -const int kUpdateEngineSocketTag = 0x55417243; // "CrAU" in little-endian. - // libcurl's CURLOPT_SOCKOPTFUNCTION callback function. Called after the socket // is created but before it is connected. This callback tags the created socket // so the network usage can be tracked in Android. @@ -62,6 +59,9 @@ int LibcurlSockoptCallback(void* /* clientp */, curl_socket_t curlfd, curlsocktype /* purpose */) { #ifdef __ANDROID__ + // Socket tag used by all network sockets. See qtaguid kernel module for + // stats. + const int kUpdateEngineSocketTag = 0x55417243; // "CrAU" in little-endian. qtaguid_tagSocket(curlfd, kUpdateEngineSocketTag, AID_OTA_UPDATE); #endif // __ANDROID__ return CURL_SOCKOPT_OK; diff --git a/update_engine.gyp b/update_engine.gyp index 8ca46c100..9f63f01fb 100644 --- a/update_engine.gyp +++ b/update_engine.gyp @@ -150,6 +150,7 @@ ], }, 'libraries': [ + '-lbspatch', '-lbz2', '-lrt', ], |
