300f9c9c9d
Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS 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>
29 lines
678 B
Makefile
29 lines
678 B
Makefile
#############################################################
|
|
#
|
|
# mdadm
|
|
#
|
|
#############################################################
|
|
MDADM_VERSION:=2.6.9
|
|
MDADM_SOURCE:=mdadm-$(MDADM_VERSION).tar.bz2
|
|
MDADM_SITE:=http://www.kernel.org/pub/linux/utils/raid/mdadm
|
|
|
|
MDADM_AUTORECONF = NO
|
|
|
|
MDADM_INSTALL_STAGING = NO
|
|
MDADM_INSTALL_TARGET = YES
|
|
|
|
MDADM_MAKE_OPT = \
|
|
CFLAGS="$(TARGET_CFLAGS)" CC="$(TARGET_CC)" -C $(MDADM_DIR) mdadm
|
|
|
|
MDADM_INSTALL_TARGET_OPT = \
|
|
DESTDIR=$(TARGET_DIR)/usr -C $(MDADM_DIR) install-mdadm
|
|
|
|
MDADM_UNINSTALL_TARGET_OPT = \
|
|
DESTDIR=$(TARGET_DIR)/usr -C $(MDADM_DIR) uninstall
|
|
|
|
define MDADM_CONFIGURE_CMDS
|
|
# Do nothing
|
|
endef
|
|
|
|
$(eval $(call AUTOTARGETS))
|