From patchwork Wed Jun 22 03:04:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 70605 Delivered-To: patches@linaro.org Received: by 10.140.28.4 with SMTP id 4csp2328216qgy; Tue, 21 Jun 2016 20:04:13 -0700 (PDT) X-Received: by 10.98.12.22 with SMTP id u22mr31626879pfi.80.1466564653634; Tue, 21 Jun 2016 20:04:13 -0700 (PDT) Return-Path: Received: from mail-pf0-x230.google.com (mail-pf0-x230.google.com. [2607:f8b0:400e:c00::230]) by mx.google.com with ESMTPS id f6si43920326pfa.18.2016.06.21.20.04.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jun 2016 20:04:13 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::230 as permitted sender) client-ip=2607:f8b0:400e:c00::230; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::230 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x230.google.com with SMTP id t190so12721611pfb.3 for ; Tue, 21 Jun 2016 20:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=8cQHVZHD1+KxWjhnrUu6ZHj3lnBIT9ERRHdSlJrFYkE=; b=ePpIz6yLhZQ0q6H/wVRQvF/9WpOJWok2Xoz2PJfnVTi2hvNNOINGrU/LttRvx+fbca p6/XcLiPv2I1O15GWV9r4PCy83WMooAuYVr3dNYECKSRbiPDBRCwzqDwKOUiW7PUuh0b AlS1dYqU1ku9yO+gPDFSRJu0rPc7gb489JGKs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8cQHVZHD1+KxWjhnrUu6ZHj3lnBIT9ERRHdSlJrFYkE=; b=Jwrm1Y0+H+TV7O/GMjUIx8tOh8oqHKHw1PWo8NLmcsJfi+3MxJYemJNZAN619UgPWC VxTwVAzEPvUvZXpWYF7VmfeBxYf/PxmO+JWzdcxaEmKtvmL5DkvqbzTxzDI7zEgekh3I yAu+BOkBnPChH0yN/9fwN5LUfBsJJKuG7p0kFRLHZusY1LC93huKKuZYVBnPuojZtamc ObAdBkA/0LvGpadob3gh9Nqm5/107BmhIZ9TLeg8EnSmSsWPpd51Su2zWZHAJgzCL5GK PkDI2IKZp83tJ3aaC48E7pKhHTHpIAz/1wunYOwYks5+FGynEnN0GhxRfSfpQPR+DAbh yRVw== X-Gm-Message-State: ALyK8tLtL6euifd68zZrkT6gXczvA8TCNDWcsQpTYs+dYK1KfEms7WTsgbLyfHKSoihMNDiEOq0= X-Received: by 10.98.27.141 with SMTP id b135mr32093211pfb.111.1466564653044; Tue, 21 Jun 2016 20:04:13 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-73-67-244-238.hsd1.or.comcast.net. [73.67.244.238]) by smtp.gmail.com with ESMTPSA id zv2sm18985665pac.43.2016.06.21.20.04.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Jun 2016 20:04:12 -0700 (PDT) From: John Stultz To: Rob Herring Cc: John Stultz Subject: [PATCH 1/3] linaro_generic: Add Kernel base address and ramdisk offset config values Date: Tue, 21 Jun 2016 20:04:06 -0700 Message-Id: <1466564648-13465-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 Adds kernel base address and ramdisk offset config values for for boot.img creation. Signed-off-by: John Stultz --- BoardConfig.mk | 3 +++ Kconfig | 10 ++++++++++ 2 files changed, 13 insertions(+) -- 1.9.1 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"