uclibc-0.9.29: handle powerpc subarch selection
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 31 May 2008 07:27:58 +0000 (07:27 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 31 May 2008 07:27:58 +0000 (07:27 -0000)
toolchain/uClibc/uclibc.mk

index 0a25315a096f0be8baba8540ace6b63bcad5112f..07810d8574cf02a3f27069ab397f3a01430426e8 100644 (file)
@@ -257,6 +257,15 @@ ifeq ($(UCLIBC_TARGET_ARCH),sparc)
                >> $(UCLIBC_DIR)/.oldconfig
        $(SED) 's/^.*$(UCLIBC_SPARC_TYPE).*/$(UCLIBC_SPARC_TYPE)=y/g' $(UCLIBC_DIR)/.oldconfig
 endif
+ifeq ($(UCLIBC_TARGET_ARCH),powerpc)
+ifeq ($(BR2_powerpc_8540),y)
+       /bin/echo "# CONFIG_CLASSIC is not set" >> $(UCLIBC_DIR)/.oldconfig
+       /bin/echo "CONFIG_E500=y" >> $(UCLIBC_DIR)/.oldconfig
+else
+       /bin/echo "CONFIG_CLASSIC=y" >> $(UCLIBC_DIR)/.oldconfig
+       /bin/echo "# CONFIG_E500 is not set" >> $(UCLIBC_DIR)/.oldconfig
+endif
+endif
 ifneq ($(UCLIBC_TARGET_ENDIAN),)
        # The above doesn't work for me, so redo
        $(SED) 's/.*\(ARCH_$(UCLIBC_NOT_TARGET_ENDIAN)_ENDIAN\).*/# \1 is not set/g' \