summaryrefslogtreecommitdiff
path: root/tools/mkcrypt/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-29 15:25:12 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-29 15:25:12 +0200
commitfd6481d82ff407139157e53df28563d40bb3ad3b (patch)
treeed2ae9e08c31d1eed424793272a60c25cdec6c00 /tools/mkcrypt/Makefile
parent14804005d5b33beb6f52d4a72034acb00c00eb90 (diff)
add a cpio implementation to tools directory
cpio utility is a mess in point of portability. For example NetBSD cpio implementation does not support userid and groupid changes for the archive. This feature is required for initramfs filesystem targets. This cpio is from the Heirloom project. Fix needed rebuild of tools, when changing targets.
Diffstat (limited to 'tools/mkcrypt/Makefile')
-rw-r--r--tools/mkcrypt/Makefile17
1 files changed, 3 insertions, 14 deletions
diff --git a/tools/mkcrypt/Makefile b/tools/mkcrypt/Makefile
index e6c8d83e1..3b1924c5b 100644
--- a/tools/mkcrypt/Makefile
+++ b/tools/mkcrypt/Makefile
@@ -3,20 +3,9 @@
include $(TOPDIR)/rules.mk
-PKG_NAME:= mkcrypt
-PKG_VERSION:= 0.1
-PKG_RELEASE:= 1
-NO_DISTFILES:= 1
+${STAGING_TOOLS}/bin/mkcrypt:
+ $(HOSTCC) -o $(STAGING_TOOLS)/bin/mkcrypt mkcrypt.c
-include ../rules.mk
-
-$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
- $(HOSTCC) -o $(WRKBUILD)/mkcrypt mkcrypt.c
- touch $@
-
-$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
- $(INSTALL_BIN) $(WRKBUILD)/mkcrypt \
- ${STAGING_TOOLS}/bin
- touch $@
+install: ${STAGING_TOOLS}/bin/mkcrypt
include $(TOPDIR)/mk/tools.mk