Преглед изворни кода

ppc: fix E500 (PPC with SPE) builds

Waldemar Brodkorb пре 1 недеља
родитељ
комит
74b51dc0d6
1 измењених фајлова са 11 додато и 0 уклоњено
  1. 11 0
      toolchain/uclibc-ng/Makefile

+ 11 - 0
toolchain/uclibc-ng/Makefile

@@ -243,6 +243,17 @@ ifeq ($(ADK_TARGET_CPU_H8S),y)
 endif
 endif
 
+# powerpc
+ifeq ($(ADK_TARGET_ARCH_PPC),y)
+ifeq ($(ADK_TARGET_ARCH_PPC_WITH_SPE),y)
+	$(SED) 's/.*\(CONFIG_E500\).*/\1=y/' ${WRKBUILD}/.config
+	$(SED) 's/.*\(CONFIG_CLASSIC\).*/# \1 is not set/' ${WRKBUILD}/.config
+else
+	$(SED) 's/.*\(CONFIG_CLASSIC\).*/\1=y/' ${WRKBUILD}/.config
+	$(SED) 's/.*\(CONFIG_E500\).*/# \1 is not set/' ${WRKBUILD}/.config
+endif
+endif
+
 # sh
 ifeq ($(ADK_TARGET_ARCH_SH),y)
 ifeq ($(ADK_TARGET_CPU_SH_SH4A),y)