Skip to contentSkip to conversation

micro-uclibc, minimal-uclibc: Reorder including the base distro config.

PATCH In review Khem Raj 3 participants 3 messages Aug 30, 2009 – Aug 31, 2009

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 micro-uclibc, minimal-uclibc: Reorder including the base distro config.

A lot of stuff in these conf's are already set and is duplicated. This is removed. The base conf file should be included at the end after assigning LIBC so that correct toolchain configuration is picked.

---
 conf/distro/micro-uclibc.conf   |   30 ++++--------------------------
 conf/distro/minimal-uclibc.conf |   20 ++------------------
 2 files changed, 6 insertions(+), 44 deletions(-)
conf/distro/micro-uclibc.conf +4 -26
index f793d4a..9cce7d1 100644
@@ -7,42 +7,20 @@
 #@COMMENT: based on uclibc.
 #############################################################################
 
-# Based on the Micro Linux distribution
-require conf/distro/micro.conf
-
 # Use overrides for micro as well
 OVERRIDES .= ":micro"
 
 #############################################################################
 # DISTRO CONFIGURATION
 #############################################################################
-DISTRO_NAME = "micro-uclibc"
 
-#############################################################################
-# TARGET OS 
-#############################################################################
-# Use linux uclibc
-TARGET_OS = "linux-uclibc"
-TARGET_OS_armeb = "linux-uclibcgnueabi"
+DISTRO_NAME = "micro-uclibc"
 
 #############################################################################
 # TOOLCHAIN
 #############################################################################
-LIBC = "uclibc"
-
-#############################################################################
-# PREFERRED PROVIDERS 
-#############################################################################
-PREFERRED_PROVIDER_virtual/libc		= "uclibc"
-PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc	= "uclibc"
-PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils	= "binutils-cross"
-PREFERRED_PROVIDER_linux-libc-headers	= "linux-libc-headers"
-PREFERRED_PROVIDER_virtual/libintl	= "proxy-libintl"
-PREFERRED_PROVIDER_virtual/libiconv     = "libiconv"
 
-#############################################################################
-# PREFERRED VERSIONS 
-#############################################################################
-PREFERRED_VERSION_uclibc = "0.9.30.1"
-PREFERRED_VERSION_uclibc-initial = "0.9.30.1"
+LIBC = "uclibc"
+# Based on the Micro Linux distribution
+require conf/distro/micro.conf
 
conf/distro/minimal-uclibc.conf +2 -18
index f246bff..9594622 100644
@@ -1,7 +1,7 @@
 #-----------------------------------------------------------------------------
 #@TYPE: Distribution
-#@NAME: Minimal uClibC
-#@DESCRIPTION: uClibC Embedded Linux Distribution Configuration (minimal)
+#@NAME: Minimal uClibc
+#@DESCRIPTION: uClibc based Embedded Linux Distribution Configuration (minimal)
 #
 #@COMMENT: This distribution configuration serves as a starting point for
 #@COMMENT: the integration of new target platforms, machines, or distributions.
@@ -13,25 +13,9 @@
 #
 DISTRO_NAME = "minimal-uclibc"
 
-#
-# Target OS & FPU system
-#
-TARGET_OS = "linux-uclibc"
 TARGET_FPU_arm = "soft"
 TARGET_FPU_armeb = "soft"
-PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross"
-PREFERRED_PROVIDER_linux-libc-headers = "linux-libc-headers"
 
-# Override the default virtual/libintl
 LIBC = "uclibc"
-PREFERRED_PROVIDER_virtual/libintl = "proxy-libintl"
-
-USE_NLS ?= "no"
-USE_NLS_glib-2.0 = "yes"
-USE_NLS_glib-2.0-native = "yes"
-USE_NLS_gcc-cross = "no"
-
-PREFERRED_VERSION_uclibc ?= "0.9.30.1"
-PREFERRED_VERSION_uclibc-initial ?= "0.9.30.1"
 
 require conf/distro/minimal.conf
Signature · 1 line
1.6.3.3
#1 lore raw
Quoted 10 lines · Khem Raj

A lot of stuff in these conf's are already set and is duplicated. This is removed. The base conf file should be included at the end after assigning LIBC so that correct toolchain configuration is picked.

---
 conf/distro/micro-uclibc.conf   |   30 ++++--------------------------
 conf/distro/minimal-uclibc.conf |   20 ++------------------
 2 files changed, 6 insertions(+), 44 deletions(-)

The micro part of this looks OK to me, assuming you've tested that the distro does actually build after this change. I don't feel very qualified to comment on the minimal part so I will leave that for someone else to review.

p.