Browse Source

fix gcc wrapper, spawn a shell after rc is finished

Waldemar Brodkorb 9 years ago
parent
commit
008d0e1575
2 changed files with 3 additions and 1 deletions
  1. 2 0
      package/simpleinit/Makefile
  2. 1 1
      toolchain/gcc/Makefile

+ 2 - 0
package/simpleinit/Makefile

@@ -19,6 +19,8 @@ CONFIG_STYLE:=		manual
 BUILD_STYLE:=		manual
 INSTALL_STYLE:=		manual
 
+TARGET_CPPFLAGS+=	-DCONFIG_USER_INIT_CONSOLE_SH
+
 do-build:
 	PATH="${TOOLCHAIN_DIR}/usr/bin:$$PATH" \
 	${TARGET_CC} ${TARGET_CPPFLAGS} ${TARGET_CFLAGS} ${TARGET_LDFLAGS} \

+ 1 - 1
toolchain/gcc/Makefile

@@ -273,7 +273,7 @@ endif
 	rm -rf $(TOOLCHAIN_DIR)/usr/share
 	# create gcc wrapper for uClinux/m68k
 	echo "#!/bin/sh" > $(TOOLCHAIN_DIR)/usr/bin/adk-uclinux-gcc
-	echo "exec ${GNU_TARGET_NAME}-gcc \"$$@\" -specs $(ADK_TOPDIR)/toolchain/gcc/m68k-uclinux-gcc.specs" >> $(TOOLCHAIN_DIR)/usr/bin/adk-uclinux-gcc
+	echo "exec ${GNU_TARGET_NAME}-gcc \"\$$@\" -specs $(ADK_TOPDIR)/toolchain/gcc/m68k-uclinux-gcc.specs" >> $(TOOLCHAIN_DIR)/usr/bin/adk-uclinux-gcc
 	chmod a+x $(TOOLCHAIN_DIR)/usr/bin/adk-uclinux-gcc
 	touch $@