0849e8193e
Thanks to the pkgparentdir and pkgname functions, we can rewrite the GENTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
31 lines
807 B
Makefile
31 lines
807 B
Makefile
#############################################################
|
|
#
|
|
# 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 $(call GENTARGETS))
|
|
$(eval $(call GENTARGETS,host)) |