summaryrefslogtreecommitdiff
path: root/boot_control_copy
AgeCommit message (Collapse)Author
2021-02-19[LSC] Add LOCAL_LICENSE_KINDS to system/extrasBob Badour
Added SPDX-license-identifier-Apache-2.0 to: alloc-stress/Android.bp app-launcher/Android.bp boot_control_copy/Android.bp bootctl/Android.bp boottime_tools/bootanalyze/stressfs/Android.bp boottime_tools/bootio/Android.bp brillo_config/Android.mk checkpoint_gc/Android.bp cppreopts/Android.bp crypto-perf/Android.bp ext4_utils/Android.bp ext4_utils/Android.mk f2fs_utils/Android.bp ioblame/Android.bp ioshark/Android.bp iotop/Android.bp kexec_tools/Android.bp latencytop/Android.bp libfec/Android.bp libfec/test/Android.bp libfscrypt/Android.bp libfscrypt/tests/Android.bp libjsonpb/parse/Android.bp libjsonpb/verify/Android.bp memory_replay/Android.bp memtrack/Android.bp mmap-perf/Android.bp module_ndk_libs/libnativehelper/Android.bp multinetwork/Android.bp pagecache/Android.bp partition_tools/Android.bp partition_tools/aidl/Android.bp perf2cfg/Android.bp postinst/Android.bp preopt2cachename/Android.bp profcollectd/Android.bp profcollectd/libprofcollectd/Android.bp profcollectd/libprofcollectd/bindings/libflags/Android.bp pssbench/Android.mk puncture_fs/Android.bp runconuid/Android.bp sane_schedstat/Android.bp showslab/Android.bp simpleperf/Android.bp simpleperf/runtest/Android.bp simpleperf/scripts/inferno/Android.bp simpleperf/simpleperf_app_runner/Android.bp slideshow/Android.mk sound/Android.bp squashfs_utils/Android.bp su/Android.mk taskstats/Android.bp tests/Android.bp tests/audio/alsa/Android.bp tests/binder/benchmarks/Android.bp tests/bootloader/Android.mk tests/cpueater/Android.bp tests/crypto/Android.bp tests/directiotest/Android.bp tests/ext4/Android.mk tests/framebuffer/Android.bp tests/fstest/Android.bp tests/icachetest/Android.bp tests/iptables/qtaguid/Android.bp tests/kernel.config/Android.mk tests/lib/Android.bp tests/lib/testUtil/Android.bp tests/memeater/Android.mk tests/pagingtest/Android.mk tests/pftest/Android.bp tests/schedtest/Android.bp tests/storage/Android.bp tests/suspend_stress/Android.bp tests/tcp_nuke_addr/Android.bp tests/timetest/Android.bp tests/uevents/Android.bp toolchain-extras/Android.bp vbmeta_tools/Android.bp verity/Android.bp verity/fec/Android.bp zram-perf/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: cpustats/Android.bp Added SPDX-license-identifier-BSD to: ANRdaemon/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ia559848af903a7b6746d9b12b7de8b83bc57f99d
2021-02-16Revert "[LSC] Add LOCAL_LICENSE_KINDS to system/extras"Bob Badour
This reverts commit 044d055c842a5750359ed71dfe50a6a4bf5f4cc3. Reason for revert: Needs to run as multiple roots. Change-Id: I8e06e7eb19e0f634f52fbd8a1c6662f43e347dd5
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to system/extrasBob Badour
Added SPDX-license-identifier-Apache-2.0 to: boot_control_copy/Android.bp bootctl/Android.bp boottime_tools/bootanalyze/stressfs/Android.bp boottime_tools/bootio/Android.bp checkpoint_gc/Android.bp cppreopts/Android.bp crypto-perf/Android.bp ext4_utils/Android.bp ext4_utils/Android.mk f2fs_utils/Android.bp ioshark/Android.bp iotop/Android.bp kexec_tools/Android.bp latencytop/Android.bp libfec/Android.bp libfec/test/Android.bp libfscrypt/Android.bp libfscrypt/tests/Android.bp libjsonpb/parse/Android.bp libjsonpb/verify/Android.bp memory_replay/Android.bp memtrack/Android.bp mmap-perf/Android.bp module_ndk_libs/libnativehelper/Android.bp multinetwork/Android.bp pagecache/Android.bp partition_tools/Android.bp perf2cfg/Android.bp postinst/Android.bp preopt2cachename/Android.bp profcollectd/Android.bp profcollectd/libprofcollectd/Android.bp profcollectd/libprofcollectd/bindings/libflags/Android.bp puncture_fs/Android.bp runconuid/Android.bp sane_schedstat/Android.bp showslab/Android.bp simpleperf/Android.bp simpleperf/runtest/Android.bp simpleperf/scripts/inferno/Android.bp simpleperf/simpleperf_app_runner/Android.bp slideshow/Android.mk sound/Android.bp squashfs_utils/Android.bp su/Android.mk taskstats/Android.bp tests/Android.bp tests/audio/alsa/Android.bp tests/binder/benchmarks/Android.bp tests/bootloader/Android.mk tests/cpueater/Android.bp tests/crypto/Android.bp tests/directiotest/Android.bp tests/ext4/Android.mk tests/framebuffer/Android.bp tests/fstest/Android.bp tests/icachetest/Android.bp tests/iptables/qtaguid/Android.bp tests/kernel.config/Android.mk tests/lib/Android.bp tests/lib/testUtil/Android.bp tests/memeater/Android.mk tests/pagingtest/Android.mk tests/pftest/Android.bp tests/schedtest/Android.bp tests/storage/Android.bp tests/suspend_stress/Android.bp tests/tcp_nuke_addr/Android.bp tests/timetest/Android.bp tests/uevents/Android.bp toolchain-extras/Android.bp vbmeta_tools/Android.bp verity/Android.bp verity/fec/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: cpustats/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_notice to: Android.bp Added SPDX-license-identifier-BSD to: ANRdaemon/Android.bp Added legacy_notice to: alloc-stress/Android.bp app-launcher/Android.bp brillo_config/Android.mk ioblame/Android.bp partition_tools/aidl/Android.bp pssbench/Android.mk zram-perf/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ie7c022a4d7f828a89d0cda663684a497af37006e
2020-10-27boot_control_copy: format filesThiƩbaud Weksteen
Format *.cpp according to the new .clang-format-2. The following command was used to generate this change: $ find . \( -name \*.cpp -o -name \*.h \) -exec clang-format \ --style=file -i {} \; Test: mm Bug: 171699326 Change-Id: I0b5681b2c0b72770f327e6783eb90eb05250a7ac
2019-12-17Remove the dependency on bootloader_messageTianjie Xu
Now that we move libboot_control to boot/1.1, the definition of bootloader_message_ab will hide behind the implementation details for vendor HALs. As this library isn't used in practice, we just inline the offset here. Bug: 131775112 Test: build Change-Id: I64babcad6a421cab5858ab818f392eca196a0fe2
2019-01-30Add android::fs_mgr namespace for new Fstab codeTom Cherry
Test: treehugger Change-Id: I6ed1afb59eed03ca5a7d06a697ac8b04e74f494d
2019-01-29Move to new Fstab classTom Cherry
Test: treehugger Change-Id: I1873022abde51b71b49e8d89bdaada044530987a
2018-07-19Make libsquashfs_utils sharedJerry Zhang
Also rename boot_control_copy away from default. boot_control_copy isn't a shipping implementation. boot_control_bcb is the actual default. Bug: 78793464 Test: compiles Change-Id: I2bdbcb80605ca396dbfa69b837be381cbcc6e3e7 Merged-In: I2bdbcb80605ca396dbfa69b837be381cbcc6e3e7
2018-05-04Convert to SoongDan Willemsen
See build/soong/README.md for more information. This effectively moves some of these targets from /system/xbin to /system/bin, as Soong is not supporting xbin. I've attempted to fix and find any external dependencies to these paths. Test: m anrd app-launcher bootctrl.default bootctl cpustats crypto iotop Change-Id: I3eb58d8a260884652b5ee827ac88ece429d76448
2018-03-31boot_control_copy: Use libbootloader_message.Tao Bao
<bootloader.h> has been exported by libbootloader_message as <bootloader_message/bootloader_message.h>. Test: mmma -j system/extras/boot_control_copy Change-Id: I013bbb393906a19acd95f3c5fb8905f7aa0d7ed1
2018-03-31Make bootctrl.default use LOCAL_HEADER_LIBS bootimg_headers.Jayant Chowdhary
Bug: 74763691 Test: make -j64 Change-Id: I55fb951eea449c27aa0a4a5e9ab1a4dca09dbfa5 (cherry picked from commit 41afebb109a6f4b444c43622daa9707820eef6ef)
2017-10-20Use -Werror in system/extrasChih-Hung Hsieh
* Remove unused variables. * Fix redefined macro warnings. * Fix sign-compare warnings. * Fix 'return false' in main(). * Keep existing warnings to fix later. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ib92ef5297693595fb84ed4f8e61665bda4cee312
2017-09-28boot_control_copy: switching to C++Bowgo Tsai
fs_mgr_get_entry_for_mount_point() is switching to a C++ only API (using std::string). Do a minimum conversion here to adopt that change. Bug: 67024518 Test: make and boot sailfish Change-Id: I191fd0043815d75a799eb4001437abb107af6e79
2017-05-18boot_control_copy should #include <sys/sysmacros.h>.Elliott Hughes
Bug: https://github.com/android-ndk/ndk/issues/398 Test: builds Change-Id: Icfccc98e1ff5aaa53b288e2aba0efe2c2c77a623
2017-03-29Switch to fs_mgr_read_fstab("/fstab.device")Bowgo Tsai
fstab.device is for backward compatibility in legacy devices. As it doesn't have fstab entries in device tree (for early mount) so we can just use the ordinary fs_mgr_read_fstab(). For new devices having early mount, it should use fs_mgr_read_fstab_default() instead. Bug: 35811655 Test: boot sailfish Change-Id: I70b64787e600d6e338e57f2a31bad188a39d433d
2017-03-10Replacing fs_mgr_read_fstab() with new fs_mgr APIsBowgo Tsai
The fstab settings of early-mounted partitions (e.g., /vendor) will be in kernel device tree. Switch to the new API to get the whole settings with those in device tree: fs_mgr_read_fstab_with_dt("/fstab.device") The original default /fstab.{ro.hardware} might be moved to /vendor/etc/. or /odm/etc/. Use another new API to get the default fstab instead of using the hard-coded /fstab.{ro.hardware}. This API also includes the settings from device tree: fs_mgr_read_fstab_default() Bug: 35811655 Test: build pass Change-Id: I14bee88b9f599b7bbc2be56042684709e5946de2
2017-01-27Add libbase dependency for recovery_test/boot_control_copybowgotsai
It requires libbase due to fs_mgr is using <android-base/logging.h> Bug: 34336098 Test: compile Change-Id: I120a8f6c7e7bf052081e8c97a358384665927088
2016-06-09boot_control_copy: Track the the bootloader_message struct change.Tao Bao
Bug: 29193360 Change-Id: I518e786eb2d45b6a71c25dc4402e3bbebef20dc6
2016-05-18Fix misc-macro-parentheses warnings in boot_control_copy.Chih-Hung Hsieh
Bug: 28705665 Change-Id: I9a8f0bd587c70ff3c60666c9f7dfba2d6e809336
2016-02-02Fix warnings in system/extras.Dan Albert
Bug: http://b/26936282 Change-Id: I1b9c6c9bb06944c32abcb871279d056eea0fb11a
2016-01-25Remove header from LOCAL_SRC_FILESDan Willemsen
The build system does not use headers in LOCAL_SRC_FILES. To prevent typos, it's becoming a warning to add something to LOCAL_SRC_FILES that is not used. Change-Id: I0ced87726dae5fcd4209d9ff1f83fa611817ecd3
2015-10-02Add NOTICE filesSami Tolvanen
Bug: 24571219 Change-Id: Ib7a4374974c2d0d9225caa1e43d0b78251a36bd2
2015-09-24Fix multilib build warning.Ying Wang
Change-Id: I3816f7f5352f204795f45d782b8ec80493d78491
2015-09-23boot_control_copy: Fix getCurrentSlot().David Zeuthen
The getCurrentSlot() method wasn't returning the right value if setActiveBootSlot() was called with another slot since last reboot. Instead of peeking in the misc partition, just look at the dev_t for /system and compare it with the dev_t for system_a and system_b. Bug: 24201805 Change-Id: I601ab5e355e0f423637e6867d0afda97f68b57fd
2015-09-03boot_control_copy: A boot_control HAL implementation that works by copying.David Zeuthen
This boot_control HAL implementation emulates A/B by copying the contents of the boot partition of the requested slot to the boot partition. It hence works with bootloaders that are not yet aware of A/B. This code is only intended to be used for development. Change-Id: Ifcc1ff19530f9e6db1de882807a25c785e1959de