ANDROID: kleaf: convert rockpi4 to mixed build.
Build the GKI //common:kernel_aarch64, then build rockpi4 modules on top of it. As a side effect of this change, rockpi4 will no longer be able to be built with build.sh because it won't produce vmlinux, etc.. Test: TH Test: bazel run //common:rockpi4_dist Bug: 258841346 Change-Id: I88989a265d0a90daddc85dd45a8736f942350522 Signed-off-by: Yifan Hong <elsk@google.com>
This commit is contained in:
committed by
Treehugger Robot
parent
ed40663592
commit
6100c90ef5
10
BUILD.bazel
10
BUILD.bazel
@@ -244,20 +244,14 @@ define_db845c(
|
||||
],
|
||||
)
|
||||
|
||||
# TODO(b/258259749): Convert rockpi4 to mixed build
|
||||
kernel_build(
|
||||
name = "rockpi4",
|
||||
outs = [
|
||||
"Image",
|
||||
"System.map",
|
||||
"modules.builtin",
|
||||
"modules.builtin.modinfo",
|
||||
"rk3399-rock-pi-4b.dtb",
|
||||
"vmlinux",
|
||||
"vmlinux.symvers",
|
||||
],
|
||||
base_kernel = "//common:kernel_aarch64",
|
||||
build_config = "build.config.rockpi4",
|
||||
module_outs = COMMON_GKI_MODULES_LIST + [
|
||||
module_outs = [
|
||||
# keep sorted
|
||||
"drivers/block/virtio_blk.ko",
|
||||
"drivers/char/hw_random/virtio-rng.ko",
|
||||
|
||||
@@ -80,3 +80,6 @@ CONFIG_HW_RANDOM_VIRTIO=m
|
||||
CONFIG_VIRTIO_PCI=m
|
||||
CONFIG_VIRTIO_BLK=m
|
||||
CONFIG_VIRTIO_NET=m
|
||||
|
||||
# Do not sign non-GKI modules
|
||||
# CONFIG_MODULE_SIG_ALL is not set
|
||||
|
||||
@@ -10,10 +10,11 @@ FRAGMENT_CONFIG=${KERNEL_DIR}/arch/arm64/configs/rockpi4_gki.fragment
|
||||
PRE_DEFCONFIG_CMDS="KCONFIG_CONFIG=${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/${DEFCONFIG} ${ROOT_DIR}/${KERNEL_DIR}/scripts/kconfig/merge_config.sh -m -r ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/gki_defconfig ${ROOT_DIR}/${FRAGMENT_CONFIG}"
|
||||
POST_DEFCONFIG_CMDS="rm ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/${DEFCONFIG}"
|
||||
|
||||
MAKE_GOALS="${MAKE_GOALS}
|
||||
MAKE_GOALS="
|
||||
modules
|
||||
rockchip/rk3399-rock-pi-4b.dtb
|
||||
"
|
||||
|
||||
FILES="${FILES}
|
||||
FILES="
|
||||
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dtb
|
||||
"
|
||||
|
||||
@@ -227,6 +227,13 @@ config GKI_HIDDEN_DMA_CONFIGS
|
||||
Dummy config option used to enable the hidden DMA configs,
|
||||
required by various SoC platforms.
|
||||
|
||||
config GKI_HIDDEN_PCIE_ROCKCHIP_CONFIGS
|
||||
bool "Hidden PCIE rockchip configuration needed for GKI"
|
||||
select PCIE_ROCKCHIP
|
||||
help
|
||||
Dummy config option used to enable the hidden PCIE rockchip configs,
|
||||
required by rockchip.
|
||||
|
||||
# Atrocities needed for
|
||||
# a) building GKI modules in separate tree, or
|
||||
# b) building drivers that are not modularizable
|
||||
@@ -258,6 +265,7 @@ config GKI_HACKS_TO_FIX
|
||||
select GKI_HIDDEN_MM_CONFIGS
|
||||
select GKI_HIDDEN_ETHERNET_CONFIGS
|
||||
select GKI_HIDDEN_DMA_CONFIGS
|
||||
select GKI_HIDDEN_PCIE_ROCKCHIP_CONFIGS
|
||||
|
||||
help
|
||||
Dummy config option used to enable core functionality used by
|
||||
|
||||
Reference in New Issue
Block a user