@@ -22,6 +22,9 @@ BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := $(CONFIG_SYSTEMIMAGE_FS_TYPE)
BOARD_SYSTEMIMAGE_PARTITION_SIZE := $(CONFIG_SYSTEMIMAGE_SIZE)
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := $(CONFIG_DISABLE_SPARSE_USERIMAGES)
+BOARD_KERNEL_BASE := $(CONFIG_KERNEL_BASE_ADDR)
+BOARD_MKBOOTIMG_ARGS := --ramdisk_offset $(CONFIG_RAMDISK_OFFSET)
+
TARGET_NO_KERNEL := $(if $(CONFIG_KERNEL),,true)
BOARD_KERNEL_CMDLINE := $(CONFIG_KERNEL_CMDLINE)
@@ -51,6 +51,16 @@ config KERNEL_CMDLINE
help
Enter the kernel command line to be set in the bootimage.
+config KERNEL_BASE_ADDR
+ hex "Kernel Base Address"
+ help
+ Base address to load the kernel
+
+config RAMDISK_OFFSET
+ hex "Ramdisk offset"
+ help
+ Offset from Kernel Base Address to load the ramdisk
+
endif
menu "Device Support"
Adds kernel base address and ramdisk offset config values for for boot.img creation. Signed-off-by: John Stultz <john.stultz@linaro.org> --- BoardConfig.mk | 3 +++ Kconfig | 10 ++++++++++ 2 files changed, 13 insertions(+) -- 1.9.1