diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-08-16 06:17:27 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-08-16 06:17:27 +0000 |
commit | 937923ee7bde94c9d859301e801064683d96dec9 (patch) | |
tree | 56a31ef9ea3cf578dd407a4b153ae0ed61649fae | |
parent | fc4d2bc78a250451338e29131039f1de8ece5666 (diff) | |
parent | 4714ee4dc0c75f1c91f98a0114a0bf8befb02ef2 (diff) |
Snap for 8952093 from 4714ee4dc0c75f1c91f98a0114a0bf8befb02ef2 to sdk-releaseplatform-tools-33.0.3
Change-Id: I3bd27da1dddceebaaf471382c431231651ad3ac9
-rw-r--r-- | Android.mk | 1 | ||||
-rw-r--r-- | db845c/BoardConfig.mk | 15 | ||||
-rw-r--r-- | device-common.mk | 10 | ||||
-rwxr-xr-x | fetch-vendor-package.sh | 8 | ||||
-rw-r--r-- | rb5/BoardConfig.mk | 7 | ||||
-rwxr-xr-x | vendor-package-ver.sh | 6 |
6 files changed, 27 insertions, 20 deletions
@@ -31,7 +31,6 @@ $(eval $(call declare-1p-copy-files,device/linaro/dragonboard,.rc)) $(eval $(call declare-1p-copy-files,device/linaro/dragonboard,.sh)) $(eval $(call declare-1p-copy-files,device/linaro/dragonboard,.xml)) $(eval $(call declare-1p-copy-files,device/linaro/dragonboard,fstab.db845c)) -$(eval $(call declare-1p-copy-files,device/linaro/dragonboard,fstab.pixel3_mainline)) $(eval $(call declare-1p-copy-files,device/linaro/dragonboard,fstab.rb5)) # If some modules are built directly from this directory (not subdirectories), diff --git a/db845c/BoardConfig.mk b/db845c/BoardConfig.mk index 5b6bfa0..38f086b 100644 --- a/db845c/BoardConfig.mk +++ b/db845c/BoardConfig.mk @@ -21,16 +21,16 @@ TARGET_NO_KERNEL := false BOARD_INCLUDE_DTB_IN_BOOTIMG := true ifeq ($(TARGET_USES_BOOT_HDR_V3), true) BOARD_BOOT_HEADER_VERSION := 3 - BOARD_KERNEL_PAGESIZE := 4096 - BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M + BOARD_KERNEL_CMDLINE += androidboot.hardware=db845c androidboot.boot_devices=soc@0/1d84000.ufshc else - BOARD_BOOT_HEADER_VERSION := 2 - BOARD_KERNEL_PAGESIZE := 2048 + BOARD_BOOT_HEADER_VERSION := 4 + BOARD_BOOTCONFIG += androidboot.hardware=db845c androidboot.boot_devices=soc@0/1d84000.ufshc endif BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION) BOARD_KERNEL_BASE := 0x80000000 -BOARD_KERNEL_CMDLINE := earlycon firmware_class.path=/vendor/firmware/ androidboot.hardware=db845c -BOARD_KERNEL_CMDLINE += init=/init androidboot.boot_devices=soc@0/1d84000.ufshc printk.devkmsg=on +BOARD_KERNEL_PAGESIZE := 4096 +BOARD_KERNEL_CMDLINE += earlycon firmware_class.path=/vendor/firmware/ +BOARD_KERNEL_CMDLINE += init=/init printk.devkmsg=on BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30 BOARD_KERNEL_CMDLINE += pcie_pme=nomsi #For WiFi to work on rb5 BOARD_KERNEL_CMDLINE += qcom_geni_serial.con_enabled=1 @@ -38,8 +38,9 @@ BOARD_KERNEL_CMDLINE += console=ttyMSM0 # Image Configuration BOARD_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M +BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480 #20G -BOARD_FLASH_BLOCK_SIZE := 512 +BOARD_FLASH_BLOCK_SIZE := 4096 # Super partition BOARD_SUPER_PARTITION_SIZE := 12437225472 BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 12433031168 # Reserve 4M for DAP metadata diff --git a/device-common.mk b/device-common.mk index 6601cda..3fd5687 100644 --- a/device-common.mk +++ b/device-common.mk @@ -38,16 +38,14 @@ ifneq (,$(wildcard $(LINARO_VENDOR_PATH)/db845c/$(EXPECTED_LINARO_VENDOR_VERSION include $(LINARO_VENDOR_PATH)/db845c/$(EXPECTED_LINARO_VENDOR_VERSION)/version.mk ifneq ($(TARGET_LINARO_VENDOR_VERSION), $(EXPECTED_LINARO_VENDOR_VERSION)) $(warning TARGET_LINARO_VENDOR_VERSION ($(TARGET_LINARO_VENDOR_VERSION)) does not match exiting the build ($(EXPECTED_LINARO_VENDOR_VERSION)).) - $(warning Please download new binaries here:) - $(warning $(VND_PKG_URL) ) - $(warning And extract in the ANDROID_TOP_DIR) + $(warning Please download and extract the new binaries by running the following script:) + $(warning ./device/linaro/dragonboard/fetch-vendor-package.sh ) # Would be good to error out here, but that causes other issues endif else $(warning Missing Linaro Vendor Package!) - $(warning Please download new binaries here:) - $(warning $(VND_PKG_URL) ) - $(warning And extract in the ANDROID_TOP_DIR) + $(warning Please download and extract the vendor binaries by running the following script:) + $(warning ./device/linaro/dragonboard/fetch-vendor-package.sh ) # Would be good to error out here, but that causes other issues endif diff --git a/fetch-vendor-package.sh b/fetch-vendor-package.sh index 5e8d727..eb11206 100755 --- a/fetch-vendor-package.sh +++ b/fetch-vendor-package.sh @@ -13,6 +13,14 @@ PKG_FILE=extract-linaro_devices-${EXPECTED_LINARO_VENDOR_VERSION} pushd ${ANDROID_BUILD_TOP} +# remove the older vendor-package, if any, because upstream +# mesa prebuilts in linaro-vendor-package ain't declared +# within a contained namespace and we can run into build +# errors because of redefinition of mesa prebuilt modules +# from the previous vendor-package. +# FIXME move mesa prebuilts from Android.mk to Android.bp +rm -rf ${ANDROID_BUILD_TOP}/vendor/linaro/ + if [ ! -e "${PKG_FILE}.tgz" ]; then curl -L ${VND_PKG_URL} -o ${PKG_FILE}.tgz fi diff --git a/rb5/BoardConfig.mk b/rb5/BoardConfig.mk index c90b8f8..e9503ac 100644 --- a/rb5/BoardConfig.mk +++ b/rb5/BoardConfig.mk @@ -22,15 +22,16 @@ BOARD_KERNEL_BASE := 0x80000000 BOARD_KERNEL_PAGESIZE := 4096 BOARD_INCLUDE_DTB_IN_BOOTIMG := true -BOARD_BOOT_HEADER_VERSION := 3 +BOARD_BOOT_HEADER_VERSION := 4 BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION) -BOARD_KERNEL_CMDLINE := earlycon firmware_class.path=/vendor/firmware/ androidboot.hardware=rb5 -BOARD_KERNEL_CMDLINE += init=/init androidboot.boot_devices=soc@0/1d84000.ufshc printk.devkmsg=on +BOARD_KERNEL_CMDLINE := earlycon firmware_class.path=/vendor/firmware/ +BOARD_KERNEL_CMDLINE += init=/init printk.devkmsg=on BOARD_KERNEL_CMDLINE += pcie_pme=nomsi #For WiFi to work BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30 BOARD_KERNEL_CMDLINE += qcom_geni_serial.con_enabled=1 BOARD_KERNEL_CMDLINE += console=ttyMSM0 +BOARD_BOOTCONFIG += androidboot.hardware=rb5 androidboot.boot_devices=soc@0/1d84000.ufshc # Image Configuration BOARD_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M diff --git a/vendor-package-ver.sh b/vendor-package-ver.sh index 6179fc9..35b3ae4 100755 --- a/vendor-package-ver.sh +++ b/vendor-package-ver.sh @@ -1,9 +1,9 @@ #!/bin/bash -export EXPECTED_LINARO_VENDOR_VERSION=20220303 +export EXPECTED_LINARO_VENDOR_VERSION=20220726 #make sure to use sha512sum here -export EXPECTED_LINARO_VENDOR_SHA=1119c59e80094fc11624b19531f584e798fd048f0adfdbb5113d2539202898c7d2b13dc1d2ad679c555f1c79a64d3ffc1b45cdf414787e5a821499276ca0b36c -export VND_PKG_URL=https://releases.linaro.org/android/aosp-linaro-vendor-package/extract-linaro_devices-20220303.tgz +export EXPECTED_LINARO_VENDOR_SHA=62ff5d98eb9ab568aff035857379fa1cc2dbd69e5cdb13124e577ac1abd70ff21013c19956b5ae9834e1f5dbed672f52663c22d404c060c2cb7fff8aa85067f1 +export VND_PKG_URL=https://releases.linaro.org/android/aosp-linaro-vendor-package/extract-linaro_devices-20220726.tgz if [ "$1" = "url" ]; then echo $VND_PKG_URL |