Patchwork [03/13] linux: get default paths from BR2_PROJECT_DIR

login
register
mail settings
Submitter Arnout Vandecappelle
Date Oct. 13, 2012, 11:14 p.m.
Message ID <20121013231401.17317.59831.stgit@localhost>
Download mbox | patch
Permalink /patch/191318/
State RFC
Headers show

Comments

Arnout Vandecappelle - Oct. 13, 2012, 11:14 p.m.
From: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
I'm not very happy with the default name 'linux.dts' for the device tree.
However, I haven't got a reasonable alternative.
---
 linux/Config.in |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/linux/Config.in b/linux/Config.in
index 257f934..cf8352d 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -121,6 +121,7 @@  config BR2_LINUX_KERNEL_DEFCONFIG
 config BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE
 	string "Configuration file path"
 	depends on BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
+	default "$(PROJECT_DIR)/linux.config" if BR2_PROJECT_DIR != ""
 	help
 	  Path to the kernel configuration file
 
@@ -269,6 +270,7 @@  config BR2_LINUX_KERNEL_INTREE_DTS_NAME
 config BR2_LINUX_KERNEL_CUSTOM_DTS_PATH
 	string "Device Tree Source file path"
 	depends on BR2_LINUX_KERNEL_USE_CUSTOM_DTS
+	default "$(PROJECT_DIR)/linux.dts" if BR2_PROJECT_DIR != ""
 	help
 	  Path to the device tree source file