diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-27 17:14:13 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-27 17:14:13 +0200 |
commit | 727dd67821e4581e4b61b30b79ca47c5bffc8497 (patch) | |
tree | d5be61f067a42b2633ef148f416f138e7c2f7da2 /package/simpleinit/Makefile | |
parent | 683cf71a6ebccbd4f827ad4a6ac92dbbaf8f644d (diff) | |
parent | 008d0e157538e4a4c302dc79e6c28c9da615b527 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/simpleinit/Makefile')
-rw-r--r-- | package/simpleinit/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/package/simpleinit/Makefile b/package/simpleinit/Makefile new file mode 100644 index 000000000..b06bd736a --- /dev/null +++ b/package/simpleinit/Makefile @@ -0,0 +1,36 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${ADK_TOPDIR}/rules.mk + +PKG_NAME:= simpleinit +PKG_VERSION:= 1.0 +PKG_RELEASE:= 1 +PKG_DESCR:= simple init for systems without mmu +PKG_SECTION:= base/apps + +NO_DISTFILES:= 1 + +include ${ADK_TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,SIMPLEINIT,simpleinit,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +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} \ + -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 + +include ${ADK_TOPDIR}/mk/pkg-bottom.mk |