Commit 0849e819 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Peter Korsgaard
Browse files

package: remove useless arguments from GENTARGETS



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: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent e055aea2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ define AT91BOOTSTRAP_INSTALL_IMAGES_CMDS
	cp $(@D)/$(AT91BOOTSTRAP_BINARY) $(BINARIES_DIR)
endef

$(eval $(call GENTARGETS,boot,at91bootstrap))
$(eval $(call GENTARGETS))

ifeq ($(BR2_TARGET_AT91BOOTSTRAP),y)
# we NEED a board name unless we're at make source
+1 −1
Original line number Diff line number Diff line
@@ -19,4 +19,4 @@ define AT91DATAFLASHBOOT_INSTALL_IMAGES_CMDS
	cp $(@D)/DataflashBoot-$(AT91DATAFLASHBOOT_VERSION).bin $(BINARIES_DIR)
endef

$(eval $(call GENTARGETS,boot,at91dataflashboot))
$(eval $(call GENTARGETS))
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ define BAREBOX_INSTALL_TARGET_CMDS
endef
endif

$(eval $(call GENTARGETS,boot,barebox))
$(eval $(call GENTARGETS))

ifeq ($(BR2_TARGET_BAREBOX),y)
# we NEED a board defconfig file unless we're at make source
+1 −1
Original line number Diff line number Diff line
@@ -26,4 +26,4 @@ define SYSLINUX_INSTALL_IMAGES_CMDS
	done
endef

$(eval $(call GENTARGETS,boot,syslinux))
$(eval $(call GENTARGETS))
+1 −1
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ define UBOOT_INSTALL_IMAGES_CMDS
	cp -dpf $(@D)/$(UBOOT_BIN) $(BINARIES_DIR)/
endef

$(eval $(call GENTARGETS,boot,uboot))
$(eval $(call GENTARGETS))

ifeq ($(BR2_TARGET_UBOOT),y)
# we NEED a board name unless we're at make source
Loading