Skip to contentSkip to conversation

svn commit: trunk/buildroot: scripts target/device/Atmel/atngw100 tar etc...

Buildroot ulf at uclibc.org 2 participants 2 messages Mar 29, 2008 – Mar 30, 2008

lore
Share & tools
lore
#0 lore raw

Author: ulf
Date: 2008-03-29 07:09:22 -0700 (Sat, 29 Mar 2008) New Revision: 21554

Log:
Add some robustness to linux configuration

Added:
trunk/buildroot/scripts/get_linux_config.sh

Modified:
trunk/buildroot/target/device/Atmel/atngw100/atngw100_defconfig trunk/buildroot/target/linux/Makefile.in.advanced

Changeset:
Added: trunk/buildroot/scripts/get_linux_config.sh
===================================================================

buildroot/scripts/get_linux_config.sh +14 -0
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# parameter #1	BOARD_PATH
+# parameter #2  LINUX26_DIR
+
+TOPDIR=`pwd`
+BOARD_PATH=$1
+LINUX26_DIR=$2
+
+cd ${TOPDIR}/${BOARD_PATH}
+for i in `ls *linux*.config` ; do
+	echo Copying $i ...
+	cp $i ${LINUX26_DIR}/.config
+done

Property changes on: trunk/buildroot/scripts/get_linux_config.sh
___________________________________________________________________
Name: svn:executable
+ *

Modified: trunk/buildroot/target/device/Atmel/atngw100/atngw100_defconfig
===================================================================

buildroot/target/device/Atmel/atngw100/atngw100_defconfig +62 -51

259 lines not on this page · raw message

Modified: trunk/buildroot/target/linux/Makefile.in.advanced
===================================================================

buildroot/target/linux/Makefile.in.advanced +28 -13

61 lines not on this page · raw message

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"ulf" == ulf <[email protected]> writes:

ulf> Author: ulf
ulf> Date: 2008-03-29 07:09:22 -0700 (Sat, 29 Mar 2008) ulf> New Revision: 21554

ulf> Log:
ulf> Add some robustness to linux configuration

ulf> Added:
ulf> trunk/buildroot/scripts/get_linux_config.sh

ulf> Modified:
ulf> trunk/buildroot/target/device/Atmel/atngw100/atngw100_defconfig
ulf> trunk/buildroot/target/linux/Makefile.in.advanced

<snip>

ulf> -$(LINUX26_DIR)/.configured: $(LINUX26_DIR)/.patched $(LINUX26_KCONFIG)
ulf> +$(LINUX26_DIR)/.config: $(LINUX26_DIR)/.patched

 ulf>  ifeq ($(BR2_PACKAGE_LINUX_USE_DEFCONFIG),y)
 ulf>  	$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) $(BOARD_NAME)_defconfig 
 ulf>  endif
 ulf> @@ -294,8 +284,33 @@
 ulf>  	$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) xconfig 
 ulf>  endif
 ulf>  ifeq ($(BR2_PACKAGE_LINUX_USE_KCONFIG),y)

ulf> - cp -dpf $(LINUX26_KCONFIG) $(LINUX26_DIR)/.config
ulf> + # Try user defined config
ulf> + if [ -f "$(LINUX26_KCONFIG)" ] ; then \
ulf> + cp -dpf $(LINUX26_KCONFIG) $@ ; \
ulf> + fi
ulf> + # Try to get a config for this linux version in the board directory
ulf> + if [ ! -f "$(LINUX26_DIR)/.config" ] ; then \
ulf> + if [ -f "$(BOARD_PATH)/$(BOARD_NAME)-linux-$(LINUX26_VERSION).config" ] ; then \
ulf> + cp -dpf $(BOARD_PATH)/$(BOARD_NAME)-linux-$(LINUX26_VERSION).config $@ ; \
ulf> + fi ; \
ulf> + fi
ulf> + # Try to get a config for latest linux version in the board directory
ulf> + if [ ! -f "$(LINUX26_DIR)/.config" ] ; then \
ulf> + scripts/get_linux_config.sh $(BOARD_PATH) $(LINUX26_DIR) ; \
ulf> + fi
ulf> + # Use a board config defined in the linux source.
ulf> + if [ ! -f "$(LINUX26_DIR)/.config" ] ; then \
ulf> + $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) $(BOARD_NAME)_defconfig || \
ulf> + echo "$(BOARD_NAME)_defconfig failed..." ; \
ulf> + fi
ulf> + # let the user create his/her own config
ulf> + if [ ! -f "$(LINUX26_DIR)/.config" ] ; then \
ulf> + $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) xconfig ; \

Please use menuconfig instead of xconfig as the user might not have X/QT installed and we already use menuconfig for buildroot.

Signature · 1 line
Bye, Peter Korsgaard