summaryrefslogtreecommitdiffstats
path: root/core/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Shorten the build fingerprintHEADreplicant-6.0Wolfgang Wiedmeyer2017-06-121-1/+1
| | | | | | | | | | It can exceed its maximum length for devices with longer codenames (e.g. espressowifi). PRODUCT_BRAND is set to "Android" which doesn't say much and TARGET_VENDOR_DEVICE_NAME should always have the same codename that is already set in the build target TARGET_VENDOR_PRODUCT_NAME, so no information is lost. Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* bootloaderimage targetPaul Kocialkowski2017-06-051-0/+4
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* U-Boot taskPaul Kocialkowski2017-06-051-0/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Merge branch 'cm-13.0' of https://github.com/LineageOS/android_build into ↵replicant-6.0-0001Wolfgang Wiedmeyer2017-05-021-0/+20
|\ | | | | | | replicant-6.0
| * Update su binary added with addonsu zipGabriele M2017-03-151-0/+20
| | | | | | | | | | | | | | | | | | | | Generate zips that include the su binary out of the system image when WITH_SU is not true. This allows to update the binary that was installed with the addonsu zip. Note: this requires backuptool to work and user builds are excluded. Change-Id: Idc905e3397816b7d3701c43bbb809878f0d22b9b
* | Merge branch 'cm-13.0' of https://github.com/LineageOS/android_build into ↵Wolfgang Wiedmeyer2017-02-111-7/+10
|\ \ | |/ | | | | | | | | replicant-6.0 Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
| * Include make_f2fs/mkf2fsuserimg in otatoolsTom Powell2017-02-031-0/+2
| | | | | | | | Change-Id: I1657ae2ca79214eab70e8976f6f59e6b5433afcd
| * core: Fix unified trees with no TARGET_OTA_ASSERT_DEVICEGabriele M2017-01-231-1/+1
| | | | | | | | | | | | | | If TARGET_OTA_ASSERT_DEVICE is not set, TARGET_DEVICE should be used for OTA_SCRIPT_OVERRIDE_DEVICE. Change-Id: If382dfa29dddb39498dec5f5eadc9895b7c47d88
| * core: include libf2fs_fmt_host_dyn in otatoolsTom Powell2017-01-231-1/+2
| | | | | | | | Change-Id: I4f31352139b2f38570f0370afff3901999082e48
| * ota_from_target_files: Remove device dependent argumentsGabriele M2017-01-231-6/+6
| | | | | | | | | | | | | | | | | | | | | | These device-specific arguments are defined at build time and are necessary to generate the zip correctly. Don't use command line arguments to specify them, but write all the needed information in misc_info.txt when the target-files zip is generated. ota_from_target_files will then read misc_info.txt and set everything automatically. Change-Id: Ibdbca575b76eb07b53fccfcea52a351c7e333f91
| * build: Rebrand CM_VERSION to LINEAGE_VERSIONZhao Wei Liew2017-01-021-1/+1
| | | | | | | | Change-Id: I8b44007ebbe395df3c989be37a5d45339f111130
| * build: Rebrand to LineageOSZhao Wei Liew2016-12-271-1/+1
| | | | | | | | Change-Id: Ie03583dc2a974a159fa50c6cb19cb68aa256ca77
* | Standalone recovery kernel buildWolfgang Wiedmeyer2017-01-111-1/+4
| | | | | | | | | | | | Port of commit f6fe3cf5 from Replicant 4.2 Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* | Merge branch 'cm-13.0' of https://github.com/CyanogenMod/android_build into ↵Wolfgang Wiedmeyer2016-12-131-1/+10
|\ \ | |/ | | | | replicant-6.0
| * build: skip 'ro.product.device' using new macro "TARGET_SKIP_PRODUCT_DEVICE"Edward Wang2016-04-151-0/+1
| | | | | | | | | | Change-Id: Id17ef7de8b0146dd6e4b2cc3cc5b88453da38f6c Ticket: FEIJ-62
| * build: Create a oem image when BOARD_OEMIMAGE_FILE_SYSTEM_TYPE is definedDiogo Ferreira2016-04-151-0/+7
| | | | | | | | | | | | | | | | | | | | This adds the capability of generating a OEM image with the build and adding it to target files when BOARD_OEMIMAGE_FILE_SYSTEM_TYPE is set. Change-Id: I6c596d58d9d5ece1a261d953eeb8c60eac30e642 Ticket: CYNGNOS-936 (cherry picked from commit 1966a9e7c22b95eb4c16be6aee7adf43cb6ce118)
| * build: Add BOOTIMAGE_EXTRA_DEPS for BOOT_SIGNER products tooEthan Chen2016-04-131-1/+1
| | | | | | | | | | | | | | * Products supporting BOOT_SIGNER should depend on BOOTIMAGE_EXTRA_DEPS as well, since that dt.img generation is tied to that rule. Change-Id: I7c3040d0c59c66aaac46121d6ca50ab96bdf7e72
| * Preventing default locale from being overridden because of buildinfo.shAbhishek G2016-04-051-0/+1
| | | | | | | | | | | | | | | | | | Adding the ability to set default locale from the device tree. Adding the TARGET_SKIP_DEFAULT_LOCALE flag which can be set in the device tree, thus preventing buildinfo.sh from overriding default locale. Change-Id: I66bcedb42216acee56ceaf657a39dc23d7eea6f4 Issue-Id: FEIJ-22
* | Merge branch 'cm-13.0' of https://github.com/CyanogenMod/android_build into ↵Wolfgang Wiedmeyer2016-03-181-26/+26
|\ \ | |/ | | | | | | | | replicant-6.0 Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
| * Fix a race condition while building the recovery patchMartin Blumenstingl2016-03-081-26/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RECOVERY_PATCH_INSTALL has a dependency on RECOVERY_FROM_BOOT_PATCH. This is correct, because RECOVERY_PATCH_INSTALL uses make_recovery_patch which needs the imgdiff tool. imgdiff on the other hand is a dependency of RECOVERY_FROM_BOOT_PATCH. This should ensure that all dependencies are met. However, RECOVERY_FROM_BOOT_PATCH is defined after RECOVERY_PATCH_INSTALL, making the dependency effectively non-existant. Moving RECOVERY_FROM_BOOT_PATCH before RECOVERY_PATCH_INSTALL fixes a race-condition where sometimes imgdiff was not build before RECOVERY_PATCH_INSTALL is called. Upstream is not affected by this bug, since it does not contain RECOVERY_PATCH_INSTALL anymore. The following error can be observed whenever someone hits this race condition (which is basically always reproducible when building with -j1): Installing recovery patch to system partition Warning: could not find SYSTEM/build.prop in <built-in function zip> using prebuilt recovery.img from BOOTABLE_IMAGES... using prebuilt boot.img from BOOTABLE_IMAGES... Traceback (most recent call last): File "./build/tools/releasetools/make_recovery_patch", line 55, in <module> main(sys.argv[1:]) File "./build/tools/releasetools/make_recovery_patch", line 51, in main common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img) File "build/tools/releasetools/common.py", line 1461, in MakeRecoveryPatch _, _, patch = d.ComputePatch() File "build/tools/releasetools/common.py", line 1146, in ComputePatch p = Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "build/tools/releasetools/common.py", line 100, in Run return subprocess.Popen(args, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory build/core/Makefile:1047: recipe for target 'out/target/product/t00n/system/bin/install-recovery.sh' failed Fixes: 3d1c612e5c82 ("Revert "Revert "core: Makefile: Build install-recovery into the system image""") Change-Id: I28e8c845ffc830553ca5177cbe22ae72b185b437
| * build: Enforce checkapi-cm on system image gen.Adnan Begovic2016-02-101-0/+1
| | | | | | | | | | TICKET: CYNGNOS-1950 Change-Id: If13ff02b913d5586df163ff3aee254dd4cfb4e24
| * Revert "build: Fix external checkapi mechanism for marshmallow."Adnan Begovic2016-02-091-2/+0
| | | | | | | | | | | | This reverts commit 5a61a0dc099a3577bf96853191a1f1385d366b81. Change-Id: I714846b14122fd2f6f068ec0dd41ffb5b4b42bc0
| * build: Fix external checkapi mechanism for marshmallow.Adnan Begovic2016-02-091-0/+2
| | | | | | | | | | TICKET: CYNGNOS-1950 Change-Id: I68960725980f6cc3c8d38cfd46d7d18161b1c7a9
* | Merge branch 'cm-13.0' of https://github.com/CyanogenMod/android_build into ↵Wolfgang Wiedmeyer2016-02-061-0/+4
|\ \ | |/ | | | | | | | | replicant-6.0 Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
| * build: Always run checkapi when building system imageTom Marshall2016-02-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | This should significantly reduce the number of quail stars given out. This only applies when building the system image. Packages may still be built and tested individually without any impact. If you like to live dangerously, set I_WANT_A_QUAIL_STAR in your environment. Change-Id: I3da6646f022f2e967ebe2c3dd9ed616fab7991fe
* | don't add CyanogenMod's keys to PRODUCT_EXTRA_RECOVERY_KEYSWolfgang Wiedmeyer2016-02-061-4/+0
| | | | | | | | Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* | Merge branch 'cm-13.0' of https://github.com/CyanogenMod/android_build into ↵Wolfgang Wiedmeyer2016-02-031-2/+2
|\ \ | |/ | | | | | | | | replicant-6.0 Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
| * releasetools: Store and use the dt image file through target filesBrint E. Kriebel2016-01-271-2/+2
| | | | | | | | | | | | | | | | | | Target files packages may be used for signing images separate from the build process. Store the device tree image file in the target files package so it can be used during the signing process. Change-Id: Ie8507121fa9c4ba57ecffeab05bd859ae5f5b788 Ticket: CYNGNOS-1744
* | Take the COPYING note from the smdk4412 kernel, so we don't depend on the ↵Wolfgang Wiedmeyer2016-01-041-1/+1
| | | | | | | | | | | | | | | | qemu kernel repo it shouldn't matter from which kernel repo the licence text is taken Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* | change version strings to ReplicantWolfgang Wiedmeyer2015-12-211-1/+1
| | | | | | | | Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* | Replicant SDK namePaul Kocialkowski2015-12-151-1/+1
| | | | | | | | | | Change-Id: I3b4debf8f58f9dbc3b22aedb4df1402e04394227 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* | X-Loader taskPaul Kocialkowski2015-12-151-0/+6
|/ | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Fix uncompressed ramdisk generationJake Whatley2015-12-071-20/+28
| | | | Change-Id: I69795e76e07ea32032d38240fdfbe2c74017e532
* build: recovery: Support extra recovery resourcesTom Marshall2015-12-021-1/+10
| | | | | | | | | If set, RECOVERY_EXTRA_RESOURCE_DIR will override default resources. Device specific private directories in TARGET_DEVICE_DIR and TARGET_RECOVERY_DEVICE_DIRS will continue to override both of these. Change-Id: I9e5a2210ffe53483173056f3dc4b17fe669509e7
* Revert "core: copy installed ramdisk and bootloader to BOOT/"David Marble2015-11-211-6/+0
| | | | | | | | | This reverts commit 3f39d419f474bfbc2286b23e092709fcd44f076b. Since this is causing problems it should be reverted. I only wrote it to get Encore booting. It will probably never become official and need this commit. We can just keep cherry-picking it for personal builds. If other devices need it because of similarly weird boot methods it can be kept but Fugu is a lot more important than Encore. Change-Id: I123d33c1559fb8b271a849e978c6d5666628884e
* core: copy installed ramdisk and bootloader to BOOT/David Marble2015-11-201-0/+6
| | | | Change-Id: I2cf5ea0dff5449f946d1badcc9363fa75f988555
* build: Add option to disable block-based otaTom Marshall2015-11-071-1/+5
| | | | | | | | | | | While block-based is great when building on a local machine, it kills rsync performance when syncing rebuilds from remote machines. Provide an option to disable it for those whose network bandwidth is less than their device's emmc bandwidth. Usage: export BLOCK_BASED_OTA=false Change-Id: I1dfaa5478a87dad286014dbe57cd5a03da4d1980
* Conditionally create symlink /system/vendor if neededdhacker292015-11-051-0/+12
| | | | | | | | | We don't need to build a vendor image in CM, just create the symlink for Nexus devices that use a vendor partition To use add BOARD_NEEDS_VENDORIMAGE_SYMLINK := true to BoardConfig.mk Change-Id: Id39ee89007af39346f0887796ed3cbad81765c46
* Merge tag 'android-6.0.0_r26' into HEADRicardo Cerqueira2015-11-051-3/+4
|\ | | | | | | | | | | | | | | | | | | | | Android 6.0.0 release 26 Conflicts: core/Makefile core/build_id.mk tools/releasetools/ota_from_target_files.py Change-Id: Ia1404ee9cd931a6540ea0dd3e2aa7b32d649e80c
| * Revert "Temporarily use blockimgdiff v2 for OTA."Tao Bao2015-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit d07bfc519673fdba66448f0a81ef869b922c3804. Real fixes [1][2][3] are ready to merge. Time to revert the workaround. [1] commit d47d8e14880132c42a75f41c8041851797c75e35 [2] commit 1fc67631eedbfba07e005d85aadae6e1b91d8d93 [3] commit 937847ae493d36b9741f6387a2357d5cdceda3d9 Bug: 22430577 Change-Id: Icd6623e8717c93ad1f12cd1ba43db5e006e928ad
| * am 25abc5a3: Merge "Fix issie #23116383: Include security patch level in ↵Dianne Hackborn2015-08-131-0/+2
| |\ | | | | | | | | | | | | | | | | | | Settings" into mnc-dev * commit '25abc5a38e2e7f2962463aa4e5cd407ecdde689c': Fix issie #23116383: Include security patch level in Settings
| * | vboot_signer: Add kernel subkey required for signing kernel keyblockFurquan Shaikh2015-08-071-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the keyblock was being generated using data_key.vbprivk. However, we need to use kernel_subkey.vbprivk for kernel keyblock generation. This did not create any issues until now because dev-mode just throws a message saying that keyblock is invalid. But, normal-mode does not boot if keyblock is invalid. Add extra parameter for passing in kernel subkey to vboot_signer script. TEST="make bootimage-nodeps" generates correctly signed boot.img. Verified that the image boots fine in normal mode. Change-Id: I0fc2183b466e34ddf1d98c9532072548504fcec4 Signed-off-by: Furquan Shaikh <furquan@google.com>
| * | Temporarily use blockimgdiff v2 for OTA.Tao Bao2015-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | angler and bullhead have smaller cache partiton (~100MB) and hit issue with incremental OTA (such as MDA09B to MDA12) that requires more stash space with BBOTA v3. Temporarily use v2 as a workaround, until we come up with a real fix. Note that BBOTA v2 still uses some stash space, but should be much smaller than v3. Bug: 22430577 Change-Id: Ic4c05f3609732e7d5140703062da9fe11df5c6d3
* | | build: Fix broken Darwin buildsChristopher N. Hesse2015-11-021-2/+4
| | | | | | | | | | | | | | | | | | OS X does not support the --remove-destination argument. Change-Id: I6856963048d8f05130e42d10d260cba49dd0f001
* | | build: Add support for device tree in boot.imgDavid Ng2015-11-011-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for optional device tree image (dt.img) to boot and recovery images. Some devices use kernel device tree and this adds the device tree image as a section within the boot/recovery images. Change-Id: I91431ef2f4b86485895678916e39a8572be878eb Build: add DT image variable to Makefile DT image variable is currently present in generate_extra_images.mk.This file is moved to build/tasks to support persist image generation during parallel make. As build/tasks is called at the end of Makefile, DT image variable is not available for other images generation like boot and recovery. Adding this variable in Makefile ensures the variable is defined before usage Change-Id: I21f675d8ce648dc1cf1f4f3aede33278300e08c9 CRs-fixed: 548299 Fix the extra dt.img compilation issue. Add support for optional device tree image (dt.img) for device that doesnt have TARGET_BOOTIMAGE_USE_EXT2 Change-Id: I6e07b3ca6d049a8ebdad7ea304b4f39e7c846151
* | | Revert "Remove mkyaffs2image references."Michael Bestas2015-10-281-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | * Can be enabled on devices that need it with TARGET_USERIMAGES_USE_YAFFS This reverts commit 65d4186f85ddd8c3f6d0c521f31911cceee573c1. Change-Id: I891f2e6a963178ffec92fedb25e7e28c60a768d1
* | | Fix TARGET_RELEASETOOL_MAKE_RECOVERY_PATCH_SCRIPT mismergeMichael Bestas2015-10-271-2/+2
| | | | | | | | | | | | Change-Id: I33164a44a40ef3b925c728d89d7d72aae3da2060
* | | build: Move bacon public key to device treeMichael Bestas2015-10-271-2/+1
| | | | | | | | | | | | Change-Id: I50c780203f7ecdd3008ac07146b7c9db91f9a443
* | | build: Fix image creation for F2FS-only configurationSteve Kondik2015-10-271-3/+11
| | | | | | | | | | | | | | | | | | | | | * Add f2fs dependencies regardless of whether we're building ext4 images or not. Change-Id: I886c52edaf56eb96fb931384440f33b00aa5c9ec
* | | build: Separate commands in recovery foreach loopsMatt Mower2015-10-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The foreach loops output a space separated list, not necessarily one command per line. Separate commands with semicolons. Notably, this fixes an issue with multiple device directories included in TARGET_RECOVERY_DEVICE_DIRS. Change-Id: I5ebdc84ecaaacabaea77b8b752141e2041622480