move bootloader and radio build flag to device mk
Flag: build.RELEASE_GOOGLE_PRODUCT_RADIO_DIR, build.RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR Bug: 362618412 Change-Id: Ib99eab337312bc3568839b7f46e555defb3e1c56 Signed-off-by: Pindar Yang <pindaryang@google.com>
This commit is contained in:
parent
59e6c38b19
commit
579d88fdc7
8 changed files with 46 additions and 36 deletions
|
@ -17,16 +17,6 @@
|
||||||
# Enable load module in parallel
|
# Enable load module in parallel
|
||||||
BOARD_BOOTCONFIG += androidboot.load_modules_parallel=true
|
BOARD_BOOTCONFIG += androidboot.load_modules_parallel=true
|
||||||
|
|
||||||
RELEASE_GOOGLE_PRODUCT_RADIO_DIR := $(RELEASE_GOOGLE_CHEETAH_RADIO_DIR)
|
|
||||||
RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR ?= pdk# Keep this for pdk TODO: b/327119000
|
|
||||||
RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR)
|
|
||||||
$(call soong_config_set,pantah_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR))
|
|
||||||
ifneq ($(filter trunk%, $(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR)),)
|
|
||||||
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,trunk)
|
|
||||||
else
|
|
||||||
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR))
|
|
||||||
endif
|
|
||||||
|
|
||||||
# The modules which need to be loaded in sequential
|
# The modules which need to be loaded in sequential
|
||||||
BOARD_KERNEL_CMDLINE += fips140.load_sequential=1
|
BOARD_KERNEL_CMDLINE += fips140.load_sequential=1
|
||||||
BOARD_KERNEL_CMDLINE += exynos_drm.load_sequential=1
|
BOARD_KERNEL_CMDLINE += exynos_drm.load_sequential=1
|
||||||
|
|
|
@ -15,14 +15,6 @@
|
||||||
#
|
#
|
||||||
TARGET_BOARD_INFO_FILE := device/google/pantah/board-info.txt
|
TARGET_BOARD_INFO_FILE := device/google/pantah/board-info.txt
|
||||||
TARGET_BOOTLOADER_BOARD_NAME := cloudripper
|
TARGET_BOOTLOADER_BOARD_NAME := cloudripper
|
||||||
RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR ?= pdk# Keep this for pdk TODO: b/327119000
|
|
||||||
RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR)
|
|
||||||
$(call soong_config_set,pantah_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR))
|
|
||||||
ifneq ($(filter trunk%, $(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR)),)
|
|
||||||
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,trunk)
|
|
||||||
else
|
|
||||||
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR))
|
|
||||||
endif
|
|
||||||
TARGET_SCREEN_DENSITY := 440
|
TARGET_SCREEN_DENSITY := 440
|
||||||
BOARD_USES_GENERIC_AUDIO := true
|
BOARD_USES_GENERIC_AUDIO := true
|
||||||
USES_DEVICE_GOOGLE_CLOUDRIPPER := true
|
USES_DEVICE_GOOGLE_CLOUDRIPPER := true
|
||||||
|
|
|
@ -17,6 +17,19 @@
|
||||||
# Restrict the visibility of Android.bp files to improve build analysis time
|
# Restrict the visibility of Android.bp files to improve build analysis time
|
||||||
$(call inherit-product-if-exists, vendor/google/products/sources_pixel.mk)
|
$(call inherit-product-if-exists, vendor/google/products/sources_pixel.mk)
|
||||||
|
|
||||||
|
ifdef RELEASE_GOOGLE_CHEETAH_RADIO_DIR
|
||||||
|
RELEASE_GOOGLE_PRODUCT_RADIO_DIR := $(RELEASE_GOOGLE_CHEETAH_RADIO_DIR)
|
||||||
|
endif
|
||||||
|
RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR ?= pdk# Keep this for pdk TODO: b/327119000
|
||||||
|
RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR)
|
||||||
|
$(call soong_config_set,pantah_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR))
|
||||||
|
ifneq ($(filter trunk%, $(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR)),)
|
||||||
|
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,trunk)
|
||||||
|
else
|
||||||
|
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR))
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
TARGET_LINUX_KERNEL_VERSION := $(RELEASE_KERNEL_CHEETAH_VERSION)
|
TARGET_LINUX_KERNEL_VERSION := $(RELEASE_KERNEL_CHEETAH_VERSION)
|
||||||
# Keeps flexibility for kasan and ufs builds
|
# Keeps flexibility for kasan and ufs builds
|
||||||
TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_CHEETAH_DIR)
|
TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_CHEETAH_DIR)
|
||||||
|
|
|
@ -17,6 +17,16 @@
|
||||||
# Restrict the visibility of Android.bp files to improve build analysis time
|
# Restrict the visibility of Android.bp files to improve build analysis time
|
||||||
$(call inherit-product-if-exists, vendor/google/products/sources_pixel.mk)
|
$(call inherit-product-if-exists, vendor/google/products/sources_pixel.mk)
|
||||||
|
|
||||||
|
RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR ?= pdk# Keep this for pdk TODO: b/327119000
|
||||||
|
RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR)
|
||||||
|
$(call soong_config_set,pantah_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR))
|
||||||
|
ifneq ($(filter trunk%, $(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR)),)
|
||||||
|
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,trunk)
|
||||||
|
else
|
||||||
|
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR))
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Keeps flexibility for kasan and ufs builds
|
# Keeps flexibility for kasan and ufs builds
|
||||||
TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_CHEETAH_DIR)
|
TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_CHEETAH_DIR)
|
||||||
TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_CHEETAH_DIR)/kernel-headers
|
TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_CHEETAH_DIR)/kernel-headers
|
||||||
|
|
|
@ -17,6 +17,19 @@
|
||||||
# Restrict the visibility of Android.bp files to improve build analysis time
|
# Restrict the visibility of Android.bp files to improve build analysis time
|
||||||
$(call inherit-product-if-exists, vendor/google/products/sources_pixel.mk)
|
$(call inherit-product-if-exists, vendor/google/products/sources_pixel.mk)
|
||||||
|
|
||||||
|
ifdef RELEASE_GOOGLE_PANTHER_RADIO_DIR
|
||||||
|
RELEASE_GOOGLE_PRODUCT_RADIO_DIR := $(RELEASE_GOOGLE_PANTHER_RADIO_DIR)
|
||||||
|
endif
|
||||||
|
RELEASE_GOOGLE_BOOTLOADER_PANTHER_DIR ?= pdk# Keep this for pdk TODO: b/327119000
|
||||||
|
RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_PANTHER_DIR)
|
||||||
|
$(call soong_config_set,pantah_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_PANTHER_DIR))
|
||||||
|
ifneq ($(filter trunk%, $(RELEASE_GOOGLE_BOOTLOADER_PANTHER_DIR)),)
|
||||||
|
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,trunk)
|
||||||
|
else
|
||||||
|
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_PANTHER_DIR))
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
TARGET_LINUX_KERNEL_VERSION := $(RELEASE_KERNEL_PANTHER_VERSION)
|
TARGET_LINUX_KERNEL_VERSION := $(RELEASE_KERNEL_PANTHER_VERSION)
|
||||||
# Keeps flexibility for kasan and ufs builds
|
# Keeps flexibility for kasan and ufs builds
|
||||||
TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_PANTHER_DIR)
|
TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_PANTHER_DIR)
|
||||||
|
|
|
@ -17,6 +17,16 @@
|
||||||
# Restrict the visibility of Android.bp files to improve build analysis time
|
# Restrict the visibility of Android.bp files to improve build analysis time
|
||||||
$(call inherit-product-if-exists, vendor/google/products/sources_pixel.mk)
|
$(call inherit-product-if-exists, vendor/google/products/sources_pixel.mk)
|
||||||
|
|
||||||
|
RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR ?= pdk# Keep this for pdk TODO: b/327119000
|
||||||
|
RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR)
|
||||||
|
$(call soong_config_set,pantah_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR))
|
||||||
|
ifneq ($(filter trunk%, $(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR)),)
|
||||||
|
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,trunk)
|
||||||
|
else
|
||||||
|
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR))
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Keeps flexibility for kasan and ufs builds
|
# Keeps flexibility for kasan and ufs builds
|
||||||
TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_CHEETAH_DIR)
|
TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_CHEETAH_DIR)
|
||||||
TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_CHEETAH_DIR)/kernel-headers
|
TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_CHEETAH_DIR)/kernel-headers
|
||||||
|
|
|
@ -21,16 +21,6 @@ BOARD_BOOTCONFIG += androidboot.load_modules_parallel=true
|
||||||
BOARD_KERNEL_CMDLINE += fips140.load_sequential=1
|
BOARD_KERNEL_CMDLINE += fips140.load_sequential=1
|
||||||
BOARD_KERNEL_CMDLINE += exynos_drm.load_sequential=1
|
BOARD_KERNEL_CMDLINE += exynos_drm.load_sequential=1
|
||||||
|
|
||||||
RELEASE_GOOGLE_PRODUCT_RADIO_DIR := $(RELEASE_GOOGLE_PANTHER_RADIO_DIR)
|
|
||||||
RELEASE_GOOGLE_BOOTLOADER_PANTHER_DIR ?= pdk# Keep this for pdk TODO: b/327119000
|
|
||||||
RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_PANTHER_DIR)
|
|
||||||
$(call soong_config_set,pantah_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_PANTHER_DIR))
|
|
||||||
ifneq ($(filter trunk%, $(RELEASE_GOOGLE_BOOTLOADER_PANTHER_DIR)),)
|
|
||||||
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,trunk)
|
|
||||||
else
|
|
||||||
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_PANTHER_DIR))
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef PHONE_CAR_BOARD_PRODUCT
|
ifdef PHONE_CAR_BOARD_PRODUCT
|
||||||
include device/google_car/$(PHONE_CAR_BOARD_PRODUCT)/BoardConfig.mk
|
include device/google_car/$(PHONE_CAR_BOARD_PRODUCT)/BoardConfig.mk
|
||||||
else
|
else
|
||||||
|
|
|
@ -15,14 +15,6 @@
|
||||||
#
|
#
|
||||||
TARGET_BOARD_INFO_FILE := device/google/pantah/board-info.txt
|
TARGET_BOARD_INFO_FILE := device/google/pantah/board-info.txt
|
||||||
TARGET_BOOTLOADER_BOARD_NAME := ravenclaw
|
TARGET_BOOTLOADER_BOARD_NAME := ravenclaw
|
||||||
RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR ?= pdk# Keep this for pdk TODO: b/327119000
|
|
||||||
RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR)
|
|
||||||
$(call soong_config_set,pantah_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR))
|
|
||||||
ifneq ($(filter trunk%, $(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR)),)
|
|
||||||
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,trunk)
|
|
||||||
else
|
|
||||||
$(call soong_config_set,pantah_fingerprint,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR))
|
|
||||||
endif
|
|
||||||
TARGET_SCREEN_DENSITY := 560
|
TARGET_SCREEN_DENSITY := 560
|
||||||
BOARD_USES_GENERIC_AUDIO := true
|
BOARD_USES_GENERIC_AUDIO := true
|
||||||
USES_DEVICE_GOOGLE_CLOUDRIPPER := true
|
USES_DEVICE_GOOGLE_CLOUDRIPPER := true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue