Skip to contentSkip to conversation

uclibc.mk breaks target .config

Buildroot Konstantin Kletschke 2 participants 5 messages Jun 13, 2007 – Jun 14, 2007

lore
Share & tools
lore
#0 lore raw

I am trying to assign mine .config file for the uClibc.
This works fine but the uclibc.mk breaks things doing a simple "/bin/echo "CONFIG_ARM_EABI=y" >> .config" to the bottom of the config. After that the uClibc build is so confused that it asks about the eabi:

konsti at z1:/usr/src/uClibc$ /bin/echo "CONFIG_ARM_EABI=y" >> .config konsti at z1:/usr/src/uClibc$ make oldconfig .config:214:warning: trying to reassign symbol CONFIG_ARM_EABI .config:214:warning: CONFIG_ARM_EABI creates inconsistent choice state *
* uClibc Configuration
*
Target Architecture
1. alpha (TARGET_alpha)

Quoted 1 line

2. arm (TARGET_arm)

3. bfin (TARGET_bfin)
4. cris (TARGET_cris)
5. e1 (BROKEN) (TARGET_e1)
6. frv (BROKEN) (TARGET_frv)
7. h8300 (BROKEN) (TARGET_h8300)
8. hppa (TARGET_hppa)
9. i386 (TARGET_i386)
10. i960 (BROKEN) (TARGET_i960)
11. ia64 (TARGET_ia64)
12. m68k (TARGET_m68k)
13. microblaze (BROKEN) (TARGET_microblaze)
14. mips (TARGET_mips)
15. nios (TARGET_nios)
16. nios2 (TARGET_nios2)
17. powerpc (TARGET_powerpc)
18. superh (TARGET_sh)
19. sh64 (TARGET_sh64)
20. sparc (TARGET_sparc)
21. v850 (BROKEN) (TARGET_v850)
22. vax (TARGET_vax)
23. x86_64 (TARGET_x86_64)
choice[1-23?]: 2
*
* Target Architecture Features and Options
*
Target ABI
1. OABI (CONFIG_ARM_OABI)

Quoted 1 line

2. EABI (CONFIG_ARM_EABI)

choice[1-2?]:

If I let the uclibc.mk do all its echo stuff, the build does not even ask for interaction but falls back to a generic arm OABI build.

How am I to solve this without rewriting the whole uclibc.mk? The version I am trying to use is a uclibc-snapshot.

Regards, Konsti

Signature · 2 lines
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF
#1 lore raw
Quoted 10 lines · Konstantin Kletschke

I am trying to assign mine .config file for the uClibc.
This works fine but the uclibc.mk breaks things doing a simple "/bin/echo "CONFIG_ARM_EABI=y" >> .config" to the bottom of the config. After that the uClibc build is so confused that it asks about the eabi:

konsti at z1:/usr/src/uClibc$ /bin/echo "CONFIG_ARM_EABI=y" >> .config konsti at z1:/usr/src/uClibc$ make oldconfig

If I let the uclibc.mk do all its echo stuff, the build does not even ask for interaction but falls back to a generic arm OABI build.

Do i understand you correctly that everything works fine unless you do something you are not supposed to do?

Quoted 2 lines

How am I to solve this without rewriting the whole uclibc.mk?

please do if you feel like.

Quoted 1 line

The version I am trying to use is a uclibc-snapshot.

The files you're supposed to read is docs/*
It is generally a good idea to do this before doing something stupid, ranting and babbling shZ()t like "duh! must.. rewrite.. everything.. duh!"

#2 lore raw

Am 2007-06-13 15:40 +0200 schrieb Bernhard Fischer:

Quoted 2 lines

Do i understand you correctly that everything works fine unless you do something you are not supposed to do?

I don't know exactly, hence my question.

I saw another target/device/vendor* subtrees supplying a custom uClibc.config, so I want for myself.

Quoted 3 lines
Quoted 1 line

The version I am trying to use is a uclibc-snapshot.

The files you're supposed to read is docs/*

Well, there is mentioned to make a "make uclibc-menuconfig" but I need to supply one by myself.

Second way is to pass UCLIBC_CONFIG_FILE=<path/to/.config> what is what I try to do. But this particular file is patched in a way uclibc's "make oldconfig" is hosed.

Quoted 3 lines

It is generally a good idea to do this before doing something stupid, ranting and babbling shZ()t like "duh! must.. rewrite.. everything.. duh!"

Oh sorry! My question was intended to be only a question, not a rant at all! May be somebody points out the behaviour is only wrong here and the error is before screen, hence I asked for a bit of advice. May be even earlier versions of uClibc are not confused of echoing variables to the bottom of .config and what.

What I did now is:

toolchain/uClibc/uclibc.mk 2007-06-13 15:13:45.000000000 +0200 renamed from buildroot/toolchain/uClibc/uclibc.mk 2007-06-07 09:15:01.000000000 +0200 +7 -0
@@ -91,6 +91,8 @@
        $(UCLIBC_CAT) $(DL_DIR)/$(UCLIBC_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
 ifneq ($(BR2_UCLIBC_VERSION_SNAPSHOT),y)
        toolchain/patch-kernel.sh $(UCLIBC_DIR) toolchain/uClibc/ uClibc-$(UCLIBC_VER)-\*.patch
+else
+       toolchain/patch-kernel.sh $(UCLIBC_DIR) toolchain/uClibc/ uClibc-snapshot-\*.patch
 endif
 ifneq ($(BR2_ENABLE_LOCALE),)
        cp -dpf $(DL_DIR)/$(UCLIBC_SOURCE_LOCALE) $(UCLIBC_DIR)/extra/locale/
@@ -109,6 +111,9 @@
                -e 's,^DEVEL_PREFIX=.*,DEVEL_PREFIX=\"/usr/\",g' \
                -e 's,^SHARED_LIB_LOADER_PREFIX=.*,SHARED_LIB_LOADER_PREFIX=\"/lib\",g' \
                $(UCLIBC_DIR)/.config
+
+ifneq ($(BR2_UCLIBC_CONFIG_FILE_VANILLA),y)
+
 ifeq ($(UCLIBC_TARGET_ARCH),arm)
        $(SED) 's/^\(CONFIG_[^_]*[_]*ARM[^=]*\)=.*/# \1 is not set/g' \
                 $(UCLIBC_DIR)/.config
@@ -224,9 +229,12 @@
        $(SED) 's,# CONFIG_686 is not set,CONFIG_686=y,g' $(UCLIBC_DIR)/.config
 endif
 endif
+
+endif #UCLIBC_CONFIG_FILE_VANILLA
        mkdir -p $(TOOL_BUILD_DIR)/uClibc_dev/usr/include
        mkdir -p $(TOOL_BUILD_DIR)/uClibc_dev/usr/lib
        mkdir -p $(TOOL_BUILD_DIR)/uClibc_dev/lib
        $(MAKE1) -C $(UCLIBC_DIR) \
                PREFIX=$(TOOL_BUILD_DIR)/uClibc_dev/ \
                DEVEL_PREFIX=/usr/ \

and:

toolchain/uClibc/Config.in 2007-06-13 15:00:50.000000000 +0200 renamed from buildroot/toolchain/uClibc/Config.in 2007-06-07 09:15:01.000000000 +0200 +6 -0
@@ -33,6 +33,12 @@
        help
            Use latest snapshot or one from a specific date?
 
+config BR2_UCLIBC_CONFIG_FILE_VANILLA
+       bool "leave target supplied .config as it is"
+       default n
+       help
+         do not patch target config file
+
 config BR2_UCLIBC_CONFIG
        string "uClibc configuration file to use?"
        default "toolchain/uClibc/uClibc-0.9.28.config" if BR2_UCLIBC_VERSION_0_9_28

Kind Regards, Konsti

Signature · 13 lines
synertronixx GmbH
Dipl.-Ing. (FH) Konstantin Kletschke
Vahrenwalder Str. 7
30165 Hannover
Tel.    : 0511 / 3574 - 661
Fax     : 0511 / 93 57 - 679
E-mail  : kletschke at synertronixx.de
Internet: http://www.synertronixx.de
Vertretungsberechtigte Gesch?ftsf?hrer:
Marc-Oliver Borck, Dr. Matthias Blaschke
Registergericht: Amtsgericht Hannover
Registernummer: HRB 59670
USt-ID: DE 216 559 901
#3 lore raw
Quoted 8 lines · Konstantin Kletschke

Am 2007-06-13 15:40 +0200 schrieb Bernhard Fischer:

Quoted 3 lines
Quoted 1 line

The version I am trying to use is a uclibc-snapshot.

The files you're supposed to read is docs/*

Well, there is mentioned to make a "make uclibc-menuconfig" but I need to supply one by myself.

This is ment to help to create your personal uClibc.config

Quoted 4 lines

Second way is to pass UCLIBC_CONFIG_FILE=<path/to/.config> what is what I try to do. But this particular file is patched in a way uclibc's "make oldconfig" is hosed.

I assume that you buildroot config just clashes with your "custom" uClibc.config. The ABI has to come from buildroot since it is also used for other packages, so rather fix your buildroot .config and leave the ABI setting of uClibc.config alone.

Quoted 2 lines

Oh sorry! My question was intended to be only a question, not a rant at

ack.

Quoted 2 lines

What I did now is:

no, that's really wrong. See above.

HTH,

#4 lore raw

Am 2007-06-13 20:16 +0200 schrieb Bernhard Fischer:

Quoted 4 lines
Quoted 2 lines

Well, there is mentioned to make a "make uclibc-menuconfig" but I need to supply one by myself.

This is ment to help to create your personal uClibc.config

Okay, so its only a helper, I did not realize yet I could utilize it so I created a .config always in a separate uClibc tree. Me stupid...

Quoted 2 lines

I assume that you buildroot config just clashes with your "custom" uClibc.config. The ABI has to come from buildroot since it is also used

Well, the ABI is EABI in buildroot .config also and the uclibc.mk is therefore echoing CONFIG_ARM_EABI=y into toolchain_build_arm/uClibc/.config. But at the buttom of the file among other echoed lines it confuses uClibc's make oldconfig.

Quoted 3 lines
Quoted 1 line

Oh sorry! My question was intended to be only a question, not a rant at

ack.

I will never rant to or about free software, I use buildroot very often and it is a very good help makeing life easier :-)

Quoted 1 line

no, that's really wrong. See above.

Okay, I will poke around a bit eith this :)

Regards, Konsti

Signature · 13 lines
synertronixx GmbH
Dipl.-Ing. (FH) Konstantin Kletschke
Vahrenwalder Str. 7
30165 Hannover
Tel.    : 0511 / 3574 - 661
Fax     : 0511 / 93 57 - 679
E-mail  : kletschke at synertronixx.de
Internet: http://www.synertronixx.de
Vertretungsberechtigte Gesch?ftsf?hrer:
Marc-Oliver Borck, Dr. Matthias Blaschke
Registergericht: Amtsgericht Hannover
Registernummer: HRB 59670
USt-ID: DE 216 559 901