From patchwork Tue Jun 28 00:46:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 70964 Delivered-To: patches@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1324258qgy; Mon, 27 Jun 2016 17:46:12 -0700 (PDT) X-Received: by 10.66.89.34 with SMTP id bl2mr289017pab.80.1467074772266; Mon, 27 Jun 2016 17:46:12 -0700 (PDT) Return-Path: Received: from mail-pa0-x231.google.com (mail-pa0-x231.google.com. [2607:f8b0:400e:c03::231]) by mx.google.com with ESMTPS id vo6si1839648pab.224.2016.06.27.17.46.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jun 2016 17:46:12 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c03::231 as permitted sender) client-ip=2607:f8b0:400e:c03::231; 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:c03::231 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pa0-x231.google.com with SMTP id wo6so548760pac.3 for ; Mon, 27 Jun 2016 17:46:12 -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=4Rtjzmc/QBnEe8mUAscR08T4MiNf2YF8dmP1TpnjFxI=; b=TMVyExczj7GEbfiNAH7UgV1M/Ug/5VVEBMVWhe7hn1HazGgKYbV0hMaoqtJTU9jaTa LbAy5zXsPWXa8vUdkhBPP2d+OFRdvErt8xnrZoHU5OOeCUTpG6vRSXegb6Bfqj89lKpd w2YNwWOl0i/dlOtysbknMGqf2Jh46k9OMxq1M= 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=4Rtjzmc/QBnEe8mUAscR08T4MiNf2YF8dmP1TpnjFxI=; b=Owoo/zzLB3oJiYszEjX/18UIgE+e2JZ9f5f5NLxbPFaf/8PffO791ugDK5r/Ld8WRw gQq/aHu3fzFWETX9Hny1MCY9c5urlH/q14rLDoy2QWmLsO/ny7NwebIySHXqz+GefNK/ XE+dmDQGprqR9+CRjtlLrI2IiYBIv7gf9XFu8Ovp9umndHYUE9+hWh+IFamKyo3qeico LJDdbSfpD6hjWGt7fM98vlPfDz6Otdv3RL7VGFoCdTJJgYspO4tdHrSap3xEmf3zWZLP W82+rpG4g38JGI3+wlUSO1e8R7UoNEffD2SleQsc2wfm+7LLYfO7OR0UPZ5J/nMsU/3M gavQ== X-Gm-Message-State: ALyK8tL1BA6dipurqJn1cDS++l4irYgLZ79FkwZrbcf2dLZYxDsobymFWhAFlnJ33UI2a2tF0W8= X-Received: by 10.66.248.3 with SMTP id yi3mr225370pac.61.1467074771855; Mon, 27 Jun 2016 17:46:11 -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 q1sm1840888pfi.93.2016.06.27.17.46.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Jun 2016 17:46:11 -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: Mon, 27 Jun 2016 17:46:05 -0700 Message-Id: <1467074768-16803-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 | 4 ++++ Kconfig | 10 ++++++++++ 2 files changed, 14 insertions(+) -- 1.9.1 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