summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-07 10:55:50 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-07 10:55:50 +0100
commit5101b72fac2c9a6971a0c7d2fe6bbd318e9678ab (patch)
tree73e65e00e46546c46a0bcd9f0d81173da288f2c6 /tools
parent8b0401f6010bb6318fe86f6a6eb11098a0952903 (diff)
use mksh in tools, too
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile2
-rw-r--r--tools/mksh/Makefile30
2 files changed, 31 insertions, 1 deletions
diff --git a/tools/Makefile b/tools/Makefile
index a8156cb79..cdbf2b4f1 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -3,7 +3,7 @@
include $(TOPDIR)/rules.mk
-TARGETS:=adk mkcrypt cpio m4 flex bc bzip2 xz
+TARGETS:=adk mksh mkcrypt cpio m4 flex bc bzip2 xz
ifeq ($(ADK_HOST_NEED_GENEXT2FS),y)
TARGETS+=genext2fs
diff --git a/tools/mksh/Makefile b/tools/mksh/Makefile
new file mode 100644
index 000000000..8cb7c29b7
--- /dev/null
+++ b/tools/mksh/Makefile
@@ -0,0 +1,30 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= mksh
+PKG_VERSION:= 49
+PKG_RELEASE:= 1
+PKG_MD5SUM:= e8c205cac72c3dc8540bbc3897421422
+PKG_SITES:= ${MASTER_SITE_MIRBSD:distfiles/=dist/mir/mksh/}
+
+DISTFILES= ${PKG_NAME}-R${PKG_VERSION}.tgz
+WRKDIST= ${WRKDIR}/${PKG_NAME}
+
+include ../rules.mk
+
+install: ${STAGING_HOST_DIR}/usr/bin/mksh
+
+$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
+ cd ${WRKBUILD} && CC='${TARGET_CC}' CFLAGS='${TARGET_CFLAGS}' \
+ CPPFLAGS='${TARGET_CPPFLAGS}' LDFLAGS='${TARGET_LDFLAGS}' \
+ HAVE_CAN_FSTACKPROTECTORALL=0 \
+ TARGET_OS=Linux ${BASH} ${WRKSRC}/Build.sh -Q -r -c lto
+ touch $@
+
+${STAGING_HOST_DIR}/usr/bin/mksh: $(WRKBUILD)/.compiled
+ ${INSTALL_BIN} ${WRKBUILD}/mksh \
+ ${STAGING_HOST_DIR}/usr/bin
+
+include $(TOPDIR)/mk/tools.mk