diff mbox

[1/3] linaro_generic: Add Kernel base address and ramdisk offset config values

Message ID 1466564648-13465-1-git-send-email-john.stultz@linaro.org
State Superseded
Headers show

Commit Message

John Stultz June 22, 2016, 3:04 a.m. UTC
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
diff mbox

Patch

diff --git a/BoardConfig.mk b/BoardConfig.mk
index 61991e0..f35a7f3 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -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)
 
diff --git a/Kconfig b/Kconfig
index d3e8ca9..2bd55d7 100644
--- a/Kconfig
+++ b/Kconfig
@@ -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"