summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-07 13:22:51 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-07 13:22:51 (GMT)
commitcc799ec57ca72d4bb56d34d19e9318c0b6b4b55d (patch)
tree78546bfbb5102e4e41a762b38eef1fb0d1e54882 /tools
parent9afcdcff6e924cdd3871dadb554105d412502b55 (diff)
parent9c4dfaf684036828b71187836290b490395d0adc (diff)
Merge branch 'master' of git+ssh://openadk.org:/git/openadk
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile5
-rw-r--r--tools/ccache/Makefile25
-rw-r--r--tools/mksh/Makefile30
3 files changed, 59 insertions, 1 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 2d29372..cdbf2b4 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
@@ -29,6 +29,9 @@ endif
ifeq ($(ADK_HOST_NEED_LZMA),y)
TARGETS+=lzma
endif
+ifeq ($(ADK_HOST_NEED_CCACHE),y)
+TARGETS+=ccache
+endif
TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
diff --git a/tools/ccache/Makefile b/tools/ccache/Makefile
new file mode 100644
index 0000000..fde8380
--- /dev/null
+++ b/tools/ccache/Makefile
@@ -0,0 +1,25 @@
+# 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:= ccache
+PKG_VERSION:= 3.1.9
+PKG_RELEASE:= 1
+PKG_MD5SUM:= a5e9954b1dae036762f7b13673a2cf76
+PKG_SITES:= http://samba.org/ftp/ccache/
+
+include ../rules.mk
+
+install: ${STAGING_HOST_DIR}/usr/bin/ccache
+
+$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
+ (cd ${WRKBUILD}; ./configure --prefix=$(STAGING_HOST_DIR)/usr)
+ ${MAKE} -C ${WRKBUILD} CC='${CC_FOR_BUILD}'
+ touch $@
+
+${STAGING_HOST_DIR}/usr/bin/ccache: $(WRKBUILD)/.compiled
+ $(INSTALL_BIN) $(WRKBUILD)/ccache \
+ ${STAGING_HOST_DIR}/usr/bin
+
+include $(TOPDIR)/mk/tools.mk
diff --git a/tools/mksh/Makefile b/tools/mksh/Makefile
new file mode 100644
index 0000000..8cb7c29
--- /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