summaryrefslogtreecommitdiff
path: root/hikey960.mk
AgeCommit message (Collapse)Author
2022-02-23hikey960/hikey: Re-transition to using to vendor-packageJohn Stultz
Moves the bootloader objects, and mali libraries to the vendor package and adds the support files, tweaking the flash-all.sh script Will use the vendor-package located here: https://releases.linaro.org/android/aosp-linaro-vendor-package/extract-linaro_devices-20220210.tgz Previously this patch was reverted, as there would be build errors when the vendor pacakge was missing. This patch re-applies the earlier change, with some additional fixes to ensure we don't see build trouble when the package is missing. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I53ec5516d91391c0d3f18c801e730eff150076af
2022-02-16Revert "hikey960/hikey: Transition to using to vendor-package"Steve Muckle
This reverts commit af6e3c040223f3dfa5ac3e8b684b16a37d9a078c. Reason for revert: broke build_test target, b/219798815 Change-Id: I22cfd1321d22b1f03e7e12a781a94886871faa18
2022-02-15hikey960/hikey: Transition to using to vendor-packageJohn Stultz
Moves the bootloader objects, and mali libraries to the vendor package and adds the support files, tweaking the flash-all.sh script Will use the vendor-package located here: https://releases.linaro.org/android/aosp-linaro-vendor-package/extract-linaro_devices-20220210.tgz Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I5e22c28c6f2c9ce3a7ec42e72411192dfbb6b312
2021-08-05hikey/hikey960: Clean up old build options for old kernelsJohn Stultz
We had a number of older build options to keep things working with older kernels, but with those kernels being unsupported with AOSP, we can go ahead and drop this logic to simplify things. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: Ibeaac890391fb21b33ebc45640053ab9db52ace9
2021-02-23hikey960: Add deferred-free-helper.ko and page_pool.ko to the ramdiskJohn Stultz
The new deferred-free-helper and page pool modules for dmabuf heaps are prerequisites for the system heap, so we need to include them in the initrd along with the system_heap.ko Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I0b3717ab1f1d5f9f87363af46e4059de46ae76a3
2021-01-26hikey960: Enabling dynamic partitions for HiKey960John Stultz
This is basically a port of work Amit had done against HiKey board awhile back: https://android-review.linaro.org/c/device/linaro/hikey/+/20550 Moving system vendor product and system_ext to the super partition. For now, instead of reworking the ptable, we simply flash the super partition to the system partition. This will need to change so that we change the ptable as well, but that needs some time as the ptable flashing can be disruptive for testing. Feedback would be appreciated. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: Ie53fed6392116b16063f497978e369490a1fccd2
2021-01-08hikey960: Make sure we load the system_heap.ko earlyJohn Stultz
In order to boot properly we need to manually load the system_heap.ko module in order for the dmabuf system heap to be present for gralloc and the codec2 uses. So add a line like we have for the CMA heap for this. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I70172488c3b76baec27b0ea09b1779a02037ed17
2020-12-03Merge "hikey/hikey960: support to specify the prebuilt kernel dir out of ↵Treehugger Robot
aosp tree"
2020-11-24hikey.mk/hikey960.mk: add support for android-mainline kernelYongqin Liu
where cma_heap.ko is used instead of ion_cma_heap.ko, and other ko files that not exist with the android-mainline kernel Test: boot to home screen with mainline kernel Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: I8c737d3f1cdb037e301af9bef151a67e5e4f4e8f
2020-11-24hikey/hikey960: support to specify the prebuilt kernel dir out of aosp treeYongqin Liu
add LOCAL_KERNEL_HOME variable to support the use of out of aosp tree prebuilt kernel dir, like the dist directory when building kernel according to the instructions here[1]. [1]: https://source.android.com/setup/build/building-kernels Test: export LOCAL_KERNEL_HOME=<out/hikey960/dist> export TARGET_KERNEL_USE=5.4 source build/envsetup.sh; lunch hikey960-userdebug; make -j$(nproc) droidcore export LOCAL_KERNEL_HOME=<out/hikey/dist> export HIKEY_USES_GKI=true source build/envsetup.sh; lunch hikey-userdebug; make -j$(nproc) droidcore Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: Ide62267aa7b51d43280b4d3cefa0cbc82295b0d7
2020-09-15hikey960: Avoid failures if sdcardfs.ko isn't presentJohn Stultz
sdcardfs isn't being built in android12-5.4 anymore, so we need to remove it from the modules list for the initrd, but existing prebuilt kernels still provide it, so conditionalize it so we don't get errors with newer built kernels. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I0f0f810960211034055dfabb75ef92d0167fb0f0
2020-08-15Hikey: do not depend on full_base for TV buildRobin Lee
full_base brings in mobile packages like Settings and Launcher3. Recent changes to Hikey make it unbootable if Settings is included alongside TvSettings, due to incompatibility with CryptKeeper. Test: manual - flash a device with hikey960 and with hikey960_tv Test: find $OUT -name Settings.apk Test: find $OUT -name TvSettings.apk Bug: 162537919 Change-Id: I77fa5ef9017a770777115b5158880619cbb6c953
2020-06-30hikey960: Drop ufs-hisi.ko from ramdiskandroid-r-beta-3android-r-beta-2John Stultz
The gki_defconfig now includes the ufs-hisi driver, so drop adding the ufs-hisi.ko file to avoid build failures. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: Ic649ab8b45ec9cf6a873ebc8af0f16c08c4ea5d1
2020-06-05hikey960: Switch to using 5.4(gki) by default on hikey960John Stultz
Now that we have prebuilt 5.4 binaries, lets use them by default. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I701f7a8d1bd07cef161209ad71c7af445f4b336d
2020-06-05hikey/hikey960: Switch to using new prebuilt path namesJohn Stultz
Use hikey-kernel/<board>/<kernel ver>/<file> for prebuilt objects instead of hikey-kernel/<file>-<board>-<kernel ver> Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I207dd40fe1de5e0078a5cf82bbf1f89910906b5b
2020-04-27hikey960.mk: install sdcardfs.ko into the ramdiskYongqin Liu
to make the sdcardfs feature work. Test: cts-tradefed could run with device information collected sdcardfs mountpoints listed in the mount command output Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: I62d30b6e2bcf28fcaf2baebdc7caa96c4c2f9a47
2019-12-07HiKey960: Add BOARD_VENDOR_RAMDISK_KERNEL_MODULES for modulesJohn Stultz
Get UFS and ion_cma modules loading via the initrd. This is hidden behind a HIKEY_USE_GKI for now, as we have trouble switching between modular and non-modular builds. Change-Id: I074cd98752bed87ccb10991e4a3196a2f1c0e080 Signed-off-by: John Stultz <john.stultz@linaro.org>
2019-08-19HiKey960/HiKey: Enable kernel module loadingJohn Stultz
In preparation for GKI support, add some initial support for kernel module loading during bootup. Thanks to YongQin and Sam for pointers on an improved way of doing this. NOTE: This does not yet deal with initramfs modules Change-Id: Ie802f2b62267fbd93e550ef30c4e479f44ba94b6 Signed-off-by: John Stultz <john.stultz@linaro.org>
2019-08-16hikey960: Bump default kernel to 4.19John Stultz
This moves the default HiKey960 kernel to 4.19. This change should be applied after prebuilt a 4.19 kernel is updated which has the performance hacks applied. Change-Id: I035fe6c83f1bdfe7460a55177036b5060bcd13c1 Signed-off-by: John Stultz <john.stultz@linaro.org>
2019-01-23hikey960: Switch hikey960 to use 4.14 by defaultJohn Stultz
Switch HiKey960 over to use 4.14 by default. Change-Id: Id9f1566e75c67a8686047f4f697435e0bd15ec17 Signed-off-by: John Stultz <john.stultz@linaro.org>
2018-09-21hikey960: hikey: add target for AOSP TV buildsSahaj Sarup
Changes: - Add a hikey960_tv-userdebug lunch target. - Add a hikey_tv-userdebug lunch target. - Use the TvSampleLeanbackLauncher to replace Launcher 3. - Removed navbar and notification bar. - Increased DPI to 260 - Added TvSetting to replace Settings - non tv targets remain unaffected. Minor Issue with AOSP TV: - WiFi connection UI doesn't have a "next" button. To be able to connect we have to use third-party apps - hikey boots to UI with kernel 4.4 or less Test: Builds and boots to Leanback Launcher UI Change-Id: I43fa609f486bfa71482b62bf36dff15bcd46647c Signed-off-by: Sahaj Sarup <sahaj.sarup@linaro.org>
2018-09-05hikey/hikey960: Enable drm_hwcomposer for 4.14+ kernelsJohn Stultz
Modifications needed to enable the drm_hwcomposer in the hikey build. This enables drm_hwcomposer for 4.14+ on HiKey and HiKey960 This requires updated drm_hwc source and changes to the kernel source and 4.14 kernel prebuilt to be updated (and merged together with this change). So DO NOT MERGE until pre-built kernel which incldues the following commits is submitted: https://android-review.googlesource.com/c/kernel/hikey-linaro/+/743923 As well as the following update to drm_hwcomposer: https://android-review.googlesource.com/c/platform/external/drm_hwcomposer/+/743902 Bug: 62066689 Change-Id: Ifbe76eed77672d06ceb3bce16de4b4d8cac56f17 Signed-off-by: John Stultz <john.stultz@linaro.org>
2018-07-31hikey960: Enable verity for hikey960Sandeep Patil
Bug: None Test: Boot with verity enabled for system and vendor. Change-Id: Iaf52f6f5c9258498c67789ffffc650a54382e21c Signed-off-by: Sandeep Patil <sspatil@google.com>
2018-03-15hikey960: Migrate hikey960 build to use Image.gz-dtb kernelsJohn Stultz
For the UEFI transition we need to move to Image.gz-dtb kernels, instead of using the separate dts partition as used w/ the HiSi bootloader. This patch depends on a Image.gz-dtb-hikey960-4.9/4 kernel to be in hikey-kernel, but can be used with HiSi bootloader as long as the dt.img is still flashed. Change-Id: I8c9ab8a7df516c84c6c5dac57e80388d4d2e40a0 Signed-off-by: John Stultz <john.stultz@linaro.org>
2018-02-12Add a 64 bit only product for hikey.Anton Hansson
Also restructure some of the current make files: - make a hikey-common.mk instead of importing hikey.mk and overriding - don't set ro.zygote etc directly, import the helper makefiles instead This new product avoids building all the 32 bit native executables and libraries that gets built for the 'hikey' product. Sample benefits: - makes the build faster - saves ram and cpu, because there is no 32 bit zygote created - frees up space on the system partition Test: lunch hikey && m -j Test: lunch hikey32 && m -j Test: lunch hikey64_only && m -j Bug: 72810053 Change-Id: I0d40b1c1c4e763b14258df7034921e0a3dc12208
2017-08-07hikey960: Use kernel 4.9 by defaultandroid-o-iot-preview-5o-iot-preview-5Dmitry Shmidt
Bug: 38204302 Test: Manual Change-Id: I73eb02358ebd57533a8e76e0fcd74e67d153e53b Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2017-08-01hikey960.mk: Enable the common linux bluetooth HAL for 4.9+ kernelsJohn Stultz
With 4.9+ we should be able to use the common linux bluetooth HAL instead of the legacy TI one with hikey960. Change-Id: I8dda8029079098f99a960a4a068023a126dfae4b Signed-off-by: John Stultz <john.stultz@linaro.org>
2017-07-28hikey960: Prepare for multikernel useDmitry Shmidt
Bug: 38204302 Test: Manual Change-Id: Iffb7da6846a66a0bd5cba0507303b08b54fb974d Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2017-07-05hikey: Add HIKEY_USE_LEGACY_TI_BLUETOOTH build option to transition to ↵John Stultz
common bluetooth HAL This patch, a reworked version of changes from Satish Patel adds a build option to enable the common generic linux bluetooth HAL vs the legacy TI HAL. The legacy TI HAL is only needed on 4.4 and older kernels. NOTE: One needs to be using a kernel that supports the standard linux hci0 interface to successfully use this. Change-Id: I74927aa651b184fdb65957fcb54c4c0afffbfa7c Signed-off-by: John Stultz <john.stultz@linaro.org>
2017-04-24hikey960: Initial releaseDmitry Shmidt
Test: Manual Bug: 33082418 Change-Id: Iddd1b8b8d3e26fd3a31cf62a163afb5d26d5d2de Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>