summaryrefslogtreecommitdiff
path: root/package/simpleinit/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-08-26 12:28:55 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-08-26 12:29:24 +0200
commit9d6eef9b39547d230d5a7cb871735bae71f5fd55 (patch)
treed204388625afbaed50d26c136bbea12861a0d2c6 /package/simpleinit/Makefile
parent8e2707b81b0c90295c9fdf92a576925442d22147 (diff)
we need to remove crtbegin.o/crtend.o from gcc specs file. otherwise broken executables (f.e. sash) with a wrong data start are created by elf2flt)
Diffstat (limited to 'package/simpleinit/Makefile')
-rw-r--r--package/simpleinit/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/simpleinit/Makefile b/package/simpleinit/Makefile
index aeeedfc08..43ea68660 100644
--- a/package/simpleinit/Makefile
+++ b/package/simpleinit/Makefile
@@ -20,10 +20,14 @@ BUILD_STYLE:= manual
INSTALL_STYLE:= manual
do-build:
+ PATH="${TOOLCHAIN_DIR}/usr/bin:$$PATH" \
${TARGET_CC} ${TARGET_CPPFLAGS} ${TARGET_CFLAGS} ${TARGET_LDFLAGS} \
-o ${WRKBUILD}/simpleinit ${WRKBUILD}/simpleinit.c
do-install:
+ ${INSTALL_DIR} ${IDIR_SIMPLEINIT}/etc
+ ${CP} ./files/rc ${IDIR_SIMPLEINIT}/etc
+ ${CP} ./files/inittab ${IDIR_SIMPLEINIT}/etc
${INSTALL_DIR} ${IDIR_SIMPLEINIT}/sbin
${INSTALL_BIN} ${WRKBUILD}/simpleinit ${IDIR_SIMPLEINIT}/sbin/init