2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-03-02 00:01:08 +01:00
|
|
|
#
|
|
|
|
# cramfs
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-03-02 00:01:08 +01:00
|
|
|
|
2013-07-20 08:52:43 +02:00
|
|
|
CRAMFS_VERSION = 1.1
|
|
|
|
CRAMFS_SITE = http://downloads.sourceforge.net/project/cramfs/cramfs/$(CRAMFS_VERSION)
|
2013-12-26 03:02:26 +01:00
|
|
|
CRAMFS_LICENSE = GPLv2+
|
|
|
|
CRAMFS_LICENSE_FILES = COPYING
|
2010-03-02 00:01:08 +01:00
|
|
|
|
|
|
|
CRAMFS_DEPENDENCIES = zlib
|
|
|
|
|
|
|
|
define CRAMFS_BUILD_CMDS
|
2014-10-23 10:43:37 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
|
2010-03-02 00:01:08 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define CRAMFS_INSTALL_TARGET_CMDS
|
2014-10-23 10:43:37 +02:00
|
|
|
$(INSTALL) -D -m 755 $(@D)/mkcramfs $(TARGET_DIR)/usr/bin/mkcramfs
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/cramfsck $(TARGET_DIR)/usr/bin/cramfsck
|
2010-03-02 00:01:08 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_CRAMFS_BUILD_CMDS
|
2014-10-23 10:43:37 +02:00
|
|
|
$(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)
|
2010-03-02 00:01:08 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_CRAMFS_INSTALL_CMDS
|
2014-10-23 10:43:37 +02:00
|
|
|
$(INSTALL) -D -m 755 $(@D)/mkcramfs $(HOST_DIR)/usr/bin/mkcramfs
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/cramfsck $(HOST_DIR)/usr/bin/cramfsck
|
2010-03-02 00:01:08 +01:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-generic-package))
|