1 ################################################################################
5 ################################################################################
8 CRAMFS_SITE
= http
://downloads.sourceforge.net
/project
/cramfs
/cramfs
/$(CRAMFS_VERSION
)
9 CRAMFS_LICENSE
= GPLv2
+
10 CRAMFS_LICENSE_FILES
= COPYING
12 CRAMFS_DEPENDENCIES
= zlib
13 HOST_CRAMFS_DEPENDENCIES
= host-zlib
15 define CRAMFS_BUILD_CMDS
16 $(TARGET_MAKE_ENV
) $(MAKE
) CC
="$(TARGET_CC)" CFLAGS
="$(TARGET_CFLAGS)" LDFLAGS
="$(TARGET_LDFLAGS)" -C
$(@D
)
19 define CRAMFS_INSTALL_TARGET_CMDS
20 $(INSTALL
) -D
-m
755 $(@D
)/mkcramfs
$(TARGET_DIR
)/usr
/bin
/mkcramfs
21 $(INSTALL
) -D
-m
755 $(@D
)/cramfsck
$(TARGET_DIR
)/usr
/bin
/cramfsck
24 define HOST_CRAMFS_BUILD_CMDS
25 $(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
)
28 define HOST_CRAMFS_INSTALL_CMDS
29 $(INSTALL
) -D
-m
755 $(@D
)/mkcramfs
$(HOST_DIR
)/usr
/bin
/mkcramfs
30 $(INSTALL
) -D
-m
755 $(@D
)/cramfsck
$(HOST_DIR
)/usr
/bin
/cramfsck
33 $(eval
$(generic-package
))
34 $(eval
$(host-generic-package
))