summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-08-27 14:59:45 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-08-27 14:59:56 +0200
commit008d0e157538e4a4c302dc79e6c28c9da615b527 (patch)
tree70e5750bd2452c5e4d4eec9fcb98e74a8dbd74d2
parent6a029983a28c6150b33e2af53d5e0ea8e8f2dbad (diff)
fix gcc wrapper, spawn a shell after rc is finished
-rw-r--r--package/simpleinit/Makefile2
-rw-r--r--toolchain/gcc/Makefile2
2 files changed, 3 insertions, 1 deletions
diff --git a/package/simpleinit/Makefile b/package/simpleinit/Makefile
index 43ea68660..b06bd736a 100644
--- a/package/simpleinit/Makefile
+++ b/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} \
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index efe5231c1..bbe049826 100644
--- a/toolchain/gcc/Makefile
+++ b/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 $@