Skip to contentSkip to conversation

svn commit: trunk/buildroot: target/linux toolchain/uClibc

Buildroot ulf at uclibc.org 3 participants 4 messages Sep 28, 2007

lore
Share & tools
lore
#0 lore raw

Author: ulf
Date: 2007-09-28 09:18:16 -0700 (Fri, 28 Sep 2007) New Revision: 20085

Log:
Add administration for linux,uclibc and main

Modified:
trunk/buildroot/Makefile
trunk/buildroot/target/linux/Makefile.in
trunk/buildroot/toolchain/uClibc/uclibc.mk

Changeset:
Modified: trunk/buildroot/Makefile
===================================================================

buildroot/Makefile +4 -0
@@ -422,6 +422,10 @@
 	cp $(shell find ./target/ -name $@) .config
 	-@$(MAKE) oldconfig
 
+configured: dirs host-sed kernel-headers uclibc-configured busybox-config linux26-config
+
+cross: $(BASE_TARGETS)
+
 help:
 	@echo 'Cleaning:'
 	@echo '  clean                  - delete temporary files created by build'

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

buildroot/target/linux/Makefile.in +3 -1
@@ -168,6 +168,8 @@
 		$(LINUX26_DIR)/.config
 	echo "CONFIG_INITRAMFS_ROOT_UID=0" >> $(LINUX26_DIR)/.config
 	echo "CONFIG_INITRAMFS_ROOT_GID=0" >> $(LINUX26_DIR)/.config
+else
+	echo "CONFIG_INITRAMFS_SOURCE=\"\"" >> $(LINUX26_DIR)/.config
 endif
 ifeq ($(BR2_PACKAGE_BUSYBOX_INITRAMFS),y)
 	# precedence for a small initramfs
@@ -225,7 +227,7 @@
 
 linux26-unpacked: $(LINUX26_DIR)/.patched
 
-linux26-config:	$(LINUX26_DIR)/.configured
+linux26-config:	host-sed $(LINUX26_DIR)/.configured
 
 linux26-update:
 	cp -dpf $(LINUX26_DIR)/.config $(LINUX26_KCONFIG)

Modified: trunk/buildroot/toolchain/uClibc/uclibc.mk
===================================================================

buildroot/toolchain/uClibc/uclibc.mk +7 -6
@@ -108,8 +108,7 @@
 UCLIBC_LOCALE_DATA=
 endif
 
-uclibc-unpacked: $(UCLIBC_DIR)/.unpacked
-$(UCLIBC_DIR)/.unpacked: $(DL_DIR)/$(UCLIBC_SOURCE) $(UCLIBC_LOCALE_DATA)
+$(UCLIBC_DIR)/.unpacked: dirs kernel-headers host-sed $(DL_DIR)/$(UCLIBC_SOURCE) $(UCLIBC_LOCALE_DATA)
 	mkdir -p $(TOOL_BUILD_DIR)
 	rm -rf $(UCLIBC_DIR)
 	$(UCLIBC_CAT) $(DL_DIR)/$(UCLIBC_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
@@ -442,14 +441,16 @@
 
 uclibc-source: $(DL_DIR)/$(UCLIBC_SOURCE)
 
-uclibc-config: host-sed $(UCLIBC_DIR)/.config
+uclibc-unpacked: $(UCLIBC_DIR)/.unpacked
 
-uclibc-oldconfig: host-sed $(UCLIBC_DIR)/.oldconfig
+uclibc-config: $(UCLIBC_DIR)/.config
 
-uclibc-update:
+uclibc-oldconfig: $(UCLIBC_DIR)/.oldconfig
+
+uclibc-update: uclibc-config
 	cp -f $(UCLIBC_DIR)/.config $(UCLIBC_CONFIG_FILE)
 
-uclibc-configured: kernel-headers $(UCLIBC_DIR)/.configured
+uclibc-configured: $(UCLIBC_DIR)/.configured
 
 uclibc-configured-source: uclibc-source
 
#1 lore raw
Quoted 13 lines · ulf at uclibc.org

Author: ulf
Date: 2007-09-28 09:18:16 -0700 (Fri, 28 Sep 2007) New Revision: 20085

Log:
Add administration for linux,uclibc and main

Modified:
trunk/buildroot/Makefile
trunk/buildroot/target/linux/Makefile.in
trunk/buildroot/toolchain/uClibc/uclibc.mk

Quoted 4 lines
	cp $(shell find ./target/ -name $@) .config
	-@$(MAKE) oldconfig

+configured: dirs host-sed kernel-headers uclibc-configured busybox-config linux26-config

This is not adequate (external binary toolchains). Please be careful

Quoted 15 lines
buildroot/target/linux/Makefile.in +2 -0
@@ -168,6 +168,8 @@
 		$(LINUX26_DIR)/.config
 	echo "CONFIG_INITRAMFS_ROOT_UID=0" >> $(LINUX26_DIR)/.config
 	echo "CONFIG_INITRAMFS_ROOT_GID=0" >> $(LINUX26_DIR)/.config
+else
+	echo "CONFIG_INITRAMFS_SOURCE=\"\"" >> $(LINUX26_DIR)/.config

endif
ifeq ($(BR2_PACKAGE_BUSYBOX_INITRAMFS),y)

	# precedence for a small initramfs
buildroot/target/linux/Makefile.in +0 -0
@@ -225,7 +227,7 @@
 

linux26-unpacked: $(LINUX26_DIR)/.patched

buildroot/target/linux/Makefile.in line 230

Quoted 2 lines
buildroot/target/linux/Makefile.in +1 -1
-linux26-config:	$(LINUX26_DIR)/.configured
+linux26-config:	host-sed $(LINUX26_DIR)/.configured

Would have been nice if you had repaired that whitespace damage while you touched that file..

Quoted 15 lines

Modified: trunk/buildroot/toolchain/uClibc/uclibc.mk
===================================================================

buildroot/toolchain/uClibc/uclibc.mk +0 -0
@@ -108,8 +108,7 @@

UCLIBC_LOCALE_DATA=
endif

-uclibc-unpacked: $(UCLIBC_DIR)/.unpacked
-$(UCLIBC_DIR)/.unpacked: $(DL_DIR)/$(UCLIBC_SOURCE) $(UCLIBC_LOCALE_DATA) +$(UCLIBC_DIR)/.unpacked: dirs kernel-headers host-sed $(DL_DIR)/$(UCLIBC_SOURCE) $(UCLIBC_LOCALE_DATA)

	mkdir -p $(TOOL_BUILD_DIR)
	rm -rf $(UCLIBC_DIR)
	$(UCLIBC_CAT) $(DL_DIR)/$(UCLIBC_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -

buildroot/toolchain/uClibc/uclibc.mk line 446

Quoted 8 lines
buildroot/toolchain/uClibc/uclibc.mk +2 -2
@@ -442,14 +441,16 @@
 
 uclibc-source: $(DL_DIR)/$(UCLIBC_SOURCE)
 
-uclibc-config: host-sed $(UCLIBC_DIR)/.config
+uclibc-unpacked: $(UCLIBC_DIR)/.unpacked
 
-uclibc-oldconfig: host-sed $(UCLIBC_DIR)/.oldconfig
+uclibc-config: $(UCLIBC_DIR)/.config

This whole block is suspicious. Previously, you could do a fresh checkout and make uclibc-menuconfig and all was well, no superfluous directories were made and all was clean, bright and shiny.

Please rethink this patch. A short glance leads me to believe that it's not conceptually clean.

Quoted 11 lines
buildroot/toolchain/uClibc/uclibc.mk +4 -2
-uclibc-update:
+uclibc-oldconfig: $(UCLIBC_DIR)/.oldconfig
+
+uclibc-update: uclibc-config
 	cp -f $(UCLIBC_DIR)/.config $(UCLIBC_CONFIG_FILE)
 
-uclibc-configured: kernel-headers $(UCLIBC_DIR)/.configured
+uclibc-configured: $(UCLIBC_DIR)/.configured
 

uclibc-configured-source: uclibc-source

#2 lore raw

fre 2007-09-28 klockan 18:58 +0200 skrev Bernhard Fischer:

Quoted 14 lines · ulf at uclibc.org
Quoted 13 lines

Author: ulf
Date: 2007-09-28 09:18:16 -0700 (Fri, 28 Sep 2007) New Revision: 20085

Log:
Add administration for linux,uclibc and main

Modified:
trunk/buildroot/Makefile
trunk/buildroot/target/linux/Makefile.in
trunk/buildroot/toolchain/uClibc/uclibc.mk

Quoted 7 lines
Quoted 4 lines
	cp $(shell find ./target/ -name $@) .config
	-@$(MAKE) oldconfig

+configured: dirs host-sed kernel-headers uclibc-configured busybox-config linux26-config

This is not adequate (external binary toolchains). Please be careful

The purpose of the thing is to untar all the packages needing configuration, and the external binary toolchains does not need that. Can you explain further?

Quoted 13 lines
Quoted 13 lines
buildroot/target/linux/Makefile.in +2 -0
@@ -168,6 +168,8 @@
 		$(LINUX26_DIR)/.config
 	echo "CONFIG_INITRAMFS_ROOT_UID=0" >> $(LINUX26_DIR)/.config
 	echo "CONFIG_INITRAMFS_ROOT_GID=0" >> $(LINUX26_DIR)/.config
+else
+	echo "CONFIG_INITRAMFS_SOURCE=\"\"" >> $(LINUX26_DIR)/.config

endif
ifeq ($(BR2_PACKAGE_BUSYBOX_INITRAMFS),y)

	# precedence for a small initramfs
buildroot/target/linux/Makefile.in +0 -0
@@ -225,7 +227,7 @@
 
Quoted 7 lines

buildroot/target/linux/Makefile.in line 230

Quoted 4 lines

linux26-unpacked: $(LINUX26_DIR)/.patched

buildroot/target/linux/Makefile.in +1 -1
-linux26-config:	$(LINUX26_DIR)/.configured
+linux26-config:	host-sed $(LINUX26_DIR)/.configured

Would have been nice if you had repaired that whitespace damage while you touched that file..

We should go out drinking, since you are picking up all the tabs :-) I'll fix that...

Quoted 30 lines
Quoted 16 lines

Modified: trunk/buildroot/toolchain/uClibc/uclibc.mk
===================================================================

buildroot/toolchain/uClibc/uclibc.mk +0 -0
@@ -108,8 +108,7 @@

UCLIBC_LOCALE_DATA=
endif

-uclibc-unpacked: $(UCLIBC_DIR)/.unpacked
-$(UCLIBC_DIR)/.unpacked: $(DL_DIR)/$(UCLIBC_SOURCE) $(UCLIBC_LOCALE_DATA) +$(UCLIBC_DIR)/.unpacked: dirs kernel-headers host-sed $(DL_DIR)/$(UCLIBC_SOURCE) $(UCLIBC_LOCALE_DATA)

	mkdir -p $(TOOL_BUILD_DIR)
	rm -rf $(UCLIBC_DIR)
	$(UCLIBC_CAT) $(DL_DIR)/$(UCLIBC_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -

buildroot/toolchain/uClibc/uclibc.mk line 446

Quoted 8 lines
buildroot/toolchain/uClibc/uclibc.mk +2 -2
@@ -442,14 +441,16 @@
 
 uclibc-source: $(DL_DIR)/$(UCLIBC_SOURCE)
 
-uclibc-config: host-sed $(UCLIBC_DIR)/.config
+uclibc-unpacked: $(UCLIBC_DIR)/.unpacked
 
-uclibc-oldconfig: host-sed $(UCLIBC_DIR)/.oldconfig
+uclibc-config: $(UCLIBC_DIR)/.config

This whole block is suspicious. Previously, you could do a fresh checkout and make uclibc-menuconfig and all was well, no superfluous directories were made and all was clean, bright and shiny.

Quoted 3 lines

Please rethink this patch. A short glance leads me to believe that it's not conceptually clean.

Quoted 1 line

It is a matter of taste.
If you do
make menuconfig
make uclibc-menuconfig

The previous behaviour would allow you to do the menuconfig immediately. The current behavour will start the build so that it is more or less equivalent to the position it would be if you type "make" and the build stopped just before uclibc-configuration.

Everything in the config aadministration becomes easier if the unpack stuff depends on the dirs, and host-sed, but it may make sense to remove the kernel headers.

uclibc-configured used to depend on kernel-headers, but I do not understand why, right now. $(UCLIBC_DIR)/.configured already depend on $(LINUX_HEADERS_DIR)/.configured

Quoted 10 lines
Quoted 10 lines
buildroot/toolchain/uClibc/uclibc.mk +3 -1
-uclibc-update:
+uclibc-oldconfig: $(UCLIBC_DIR)/.oldconfig
+
+uclibc-update: uclibc-config
	cp -f $(UCLIBC_DIR)/.config $(UCLIBC_CONFIG_FILE)
buildroot/toolchain/uClibc/uclibc.mk +1 -1
-uclibc-configured: kernel-headers $(UCLIBC_DIR)/.configured
+uclibc-configured: $(UCLIBC_DIR)/.configured

uclibc-configured-source: uclibc-source

#3 lore raw
Quoted 18 lines · Ulf Samuelsson

fre 2007-09-28 klockan 18:58 +0200 skrev Bernhard Fischer:

Quoted 17 lines · ulf at uclibc.org
Quoted 16 lines

Author: ulf
Date: 2007-09-28 09:18:16 -0700 (Fri, 28 Sep 2007) New Revision: 20085

Log:
Add administration for linux,uclibc and main

Modified:
trunk/buildroot/Makefile
trunk/buildroot/target/linux/Makefile.in
trunk/buildroot/toolchain/uClibc/uclibc.mk

	cp $(shell find ./target/ -name $@) .config
	-@$(MAKE) oldconfig
Quoted 7 lines
Quoted 4 lines
Quoted 1 line

+configured: dirs host-sed kernel-headers uclibc-configured busybox-config linux26-config

This is not adequate (external binary toolchains). Please be careful

The purpose of the thing is to untar all the packages needing configuration, and the external binary toolchains does not need that. Can you explain further?

Will this work for external binary toolchains? I'm not sure if all of those are wrapped in guards (and no, don't add them, please), so it has to have different prerequisites depending on this fact.

Quoted 4 lines
Quoted 2 lines

Would have been nice if you had repaired that whitespace damage while you touched that file..

We should go out drinking, since you are picking up all the tabs :-)

;)

Quoted 1 line

I'll fix that...

You already did, thanks.

Quoted 10 lines
Quoted 8 lines

This whole block is suspicious. Previously, you could do a fresh checkout and make uclibc-menuconfig and all was well, no superfluous directories were made and all was clean, bright and shiny.

Please rethink this patch. A short glance leads me to believe that it's not conceptually clean.

Quoted 1 line
Quoted 6 lines

It is a matter of taste.
If you do
make menuconfig
make uclibc-menuconfig

The previous behaviour would allow you to do the menuconfig immediately.

Yes, and this is a feature. Please make sure that you don't add a regression in this area.

Quoted 3 lines

The current behavour will start the build so that it is more or less equivalent to the position it would be if you type "make" and the build stopped just before uclibc-configuration.

Yes, this is a bug. There is no need to waste my time nor disk-space until i can start to configure buildroot, busybox, uclibc or the kernel.

Quoted 6 lines

Everything in the config aadministration becomes easier if the unpack stuff depends on the dirs, and host-sed, but it may make sense to remove the kernel headers.

uclibc-configured used to depend on kernel-headers, but I do not understand why, right now.

uclibc-configured is just a short-hand for convenience. Please read the uclibc.mk and understand it's interaction with the kernel-headers. Before you do this, please revert the patch above and play with it locally.

Quoted 2 lines

$(UCLIBC_DIR)/.configured already depend on
$(LINUX_HEADERS_DIR)/.configured

TIA,