diff mbox

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

Message ID 1467074768-16803-1-git-send-email-john.stultz@linaro.org
State New
Headers show

Commit Message

John Stultz June 28, 2016, 12:46 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 |  4 ++++
 Kconfig        | 10 ++++++++++
 2 files changed, 14 insertions(+)

-- 
1.9.1
diff mbox

Patch

diff --git a/BoardConfig.mk b/BoardConfig.mk
index 2f7b33f..b3f2be2 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -15,6 +15,10 @@ 
 
 include $(dir $(lastword $(MAKEFILE_LIST)))/config.mk
 
+ifneq ($(CONFIG_RAMDISK_OFFSET),)
+BOARD_MKBOOTIMG_ARGS := --ramdisk_offset $(CONFIG_RAMDISK_OFFSET)
+endif
+
 WITH_DEXPREOPT := $(CONFIG_DEX_PREOPT)
 
 # generic wifi
diff --git a/Kconfig b/Kconfig
index 0ead8a3..6fb1083 100644
--- a/Kconfig
+++ b/Kconfig
@@ -51,6 +51,16 @@  config BOARD_KERNEL_CMDLINE
 	help
 	  Enter the kernel command line to be set in the bootimage.
 
+config BOARD_KERNEL_BASE
+	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
 
 config TARGET_NO_KERNEL