diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-04-09 16:16:44 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-04-09 16:16:44 +0200 |
commit | 6bb35a38c244b20bbd6e85fd16f69ff2c4f0ed72 (patch) | |
tree | 432513fc67dcff844ecf5c48f38bdcf1a9fe3523 /package/cramfs/cramfs.mk | |
parent | b6ebab842dbb0581526f907bf5b39cad0ac1f756 (diff) | |
parent | 0b79c5022d32b15180a18087a0fba5a2f1af5cc7 (diff) |
Merge branch 'fs-cleanup' of git://git.busybox.net/~tpetazzoni/git/buildroot
Diffstat (limited to 'package/cramfs/cramfs.mk')
-rw-r--r-- | package/cramfs/cramfs.mk | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/package/cramfs/cramfs.mk b/package/cramfs/cramfs.mk new file mode 100644 index 000000000..7b1924e81 --- /dev/null +++ b/package/cramfs/cramfs.mk @@ -0,0 +1,33 @@ +############################################################# +# +# cramfs +# +############################################################# + +CRAMFS_VERSION=1.1 +CRAMFS_SOURCE=cramfs-$(CRAMFS_VERSION).tar.gz +CRAMFS_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/cramfs + +CRAMFS_DEPENDENCIES = zlib +HOST_CRAMFS_DEPENDENCIES = host-zlib + +define CRAMFS_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D) +endef + +define CRAMFS_INSTALL_TARGET_CMDS + install -m 755 $(@D)/mkcramfs $(TARGET_DIR)/usr/bin + install -m 755 $(@D)/cramfsck $(TARGET_DIR)/usr/bin +endef + +define HOST_CRAMFS_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) CFLAGS="$(HOST_CFLAGS) -Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="$(HOST_LDFLAGS)" -C $(@D) +endef + +define HOST_CRAMFS_INSTALL_CMDS + install -m 755 $(@D)/mkcramfs $(HOST_DIR)/usr/bin + install -m 755 $(@D)/cramfsck $(HOST_DIR)/usr/bin +endef + +$(eval $(call GENTARGETS,package,cramfs)) +$(eval $(call GENTARGETS,package,cramfs,host)) |