summaryrefslogtreecommitdiffstats
path: root/package/genromfs/genromfs.mk
blob: c1cd6086a0be307f1d060c61050eb328c4d3d1fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#############################################################
#
# genromfs
#
#############################################################

GENROMFS_VERSION=0.5.2
GENROMFS_SOURCE=genromfs-$(GENROMFS_VERSION).tar.gz
GENROMFS_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/romfs

define GENROMFS_BUILD_CMDS
 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
    CC="$(TARGET_CC)" \
    CFLAGS="$(TARGET_CFLAGS)" \
    LDFLAGS="$(TARGET_LDFLAGS)"
endef

define GENROMFS_INSTALL_TARGET_CMDS
 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=$(TARGET_DIR) install
endef

define HOST_GENROMFS_BUILD_CMDS
  $(HOST_MAKE_ENV) $(MAKE) -C $(@D)
endef

define HOST_GENROMFS_INSTALL_CMDS
  $(HOST_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=$(HOST_DIR) install
endef

$(eval $(generic-package))
$(eval $(host-generic-package))