diff options
author | Ram Muthiah <rammuthiah@google.com> | 2023-04-21 16:43:01 -0700 |
---|---|---|
committer | Ram Muthiah <rammuthiah@google.com> | 2023-04-22 00:00:39 +0000 |
commit | 3fc52639798f22cc5a9f1352165e8540c7f5a3ad (patch) | |
tree | 2d12470253a6b3a8978ca5a22b68193c65811522 | |
parent | d94ab5ed15a601059adc2769c7d6c827ee8f23bb (diff) |
kleaf: add targets for qemu_x86_64 and kiwi(_p)
This commit adds bazel targets for unmigrated targets.
Bug: 279151374
Change-Id: Id5d90f62d46e91a596317b437dcadcf26fd1491c
-rw-r--r-- | BUILD.bazel | 63 | ||||
-rw-r--r-- | build.config.kiwi | 4 | ||||
-rw-r--r-- | build.config.kiwi_p | 4 | ||||
-rw-r--r-- | build.config.qemu.x86_64 | 4 |
4 files changed, 75 insertions, 0 deletions
diff --git a/BUILD.bazel b/BUILD.bazel index 123df5070d3..fa51d0a4bfb 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -43,6 +43,69 @@ copy_to_dist_dir( ) kernel_build( + name = "kiwi", + outs = [ + "System.map", + "u-boot", + "u-boot.rom", + ], + build_config = "build.config.kiwi", + deps = [ + "//prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9:binaries", + "@swig//:lib", + ], +) + +copy_to_dist_dir( + name = "kiwi_dist", + data = [":kiwi"], + dist_dir = "out/u-boot/dist", + flat = True, +) + +kernel_build( + name = "kiwi_p", + outs = [ + "System.map", + "u-boot", + "u-boot.rom", + ], + build_config = "build.config.kiwi_p", + deps = [ + "//prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9:binaries", + "@swig//:lib", + ], +) + +copy_to_dist_dir( + name = "kiwi_p_dist", + data = [":kiwi_p"], + dist_dir = "out/u-boot/dist", + flat = True, +) + +kernel_build( + name = "qemu_x86_64", + outs = [ + "System.map", + "u-boot", + "u-boot.rom", + ], + build_config = "build.config.qemu.x86_64", + deps = [ + "//prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9:binaries", + "@swig//:lib", + ], +) + +copy_to_dist_dir( + name = "qemu_x86_64_dist", + data = [":qemu_x86_64"], + dist_dir = "out/u-boot/dist", + flat = True, +) + +kernel_build( name = "crosvm_x86_64", outs = [ "System.map", diff --git a/build.config.kiwi b/build.config.kiwi index de31d8f5cd6..4f38c7c3d67 100644 --- a/build.config.kiwi +++ b/build.config.kiwi @@ -13,3 +13,7 @@ PRE_DEFCONFIG_CMDS="KCONFIG_CONFIG=${ROOT_DIR}/${KERNEL_DIR}/configs/${DEFCONFIG ${ROOT_DIR}/${KERNEL_DIR}/kiwi.fragment " POST_DEFCONFIG_CMDS="rm ${ROOT_DIR}/${KERNEL_DIR}/configs/${DEFCONFIG}" + +# binman requires HOME to be set, but HOME is unset by Kleaf. +# Hence manually set it to a fake value. +HOME=${HOME:-/tmp/home} diff --git a/build.config.kiwi_p b/build.config.kiwi_p index 915c6e9ebed..4b219061eac 100644 --- a/build.config.kiwi_p +++ b/build.config.kiwi_p @@ -14,3 +14,7 @@ PRE_DEFCONFIG_CMDS="KCONFIG_CONFIG=${ROOT_DIR}/${KERNEL_DIR}/configs/${DEFCONFIG ${ROOT_DIR}/${KERNEL_DIR}/kiwi_p.fragment " POST_DEFCONFIG_CMDS="rm ${ROOT_DIR}/${KERNEL_DIR}/configs/${DEFCONFIG}" + +# binman requires HOME to be set, but HOME is unset by Kleaf. +# Hence manually set it to a fake value. +HOME=${HOME:-/tmp/home} diff --git a/build.config.qemu.x86_64 b/build.config.qemu.x86_64 index 5b9734cede0..d549323da54 100644 --- a/build.config.qemu.x86_64 +++ b/build.config.qemu.x86_64 @@ -11,3 +11,7 @@ PRE_DEFCONFIG_CMDS="KCONFIG_CONFIG=${ROOT_DIR}/${KERNEL_DIR}/configs/${DEFCONFIG ${ROOT_DIR}/${KERNEL_DIR}/avb_unlocked.fragment " POST_DEFCONFIG_CMDS="rm ${ROOT_DIR}/${KERNEL_DIR}/configs/${DEFCONFIG}" + +# binman requires HOME to be set, but HOME is unset by Kleaf. +# Hence manually set it to a fake value. +HOME=${HOME:-/tmp/home} |