1 #############################################################
5 #############################################################
7 MDADM_SOURCE
:=mdadm-
$(MDADM_VERSION
).
tar.bz2
8 MDADM_SITE
:=http
://www.kernel.org
/pub
/linux
/utils
/raid
/mdadm
9 MDADM_DIR
:=$(BUILD_DIR
)/mdadm-
$(MDADM_VERSION
)
11 MDADM_TARGET_BINARY
:=sbin
/mdadm
13 $(DL_DIR
)/$(MDADM_SOURCE
):
14 $(WGET
) -P
$(DL_DIR
) $(MDADM_SITE
)/$(MDADM_SOURCE
)
16 $(MDADM_DIR
)/.source
: $(DL_DIR
)/$(MDADM_SOURCE
)
17 bzcat
$(DL_DIR
)/$(MDADM_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
18 touch
$(MDADM_DIR
)/.source
20 $(MDADM_DIR
)/$(MDADM_BINARY
): $(MDADM_DIR
)/.source
21 $(MAKE
) CFLAGS
="$(TARGET_CFLAGS)" CC
=$(TARGET_CC
) -C
$(MDADM_DIR
)
23 $(TARGET_DIR
)/$(MDADM_TARGET_BINARY
): $(MDADM_DIR
)/$(MDADM_BINARY
)
24 $(MAKE
) DESTDIR
=$(TARGET_DIR
) -C
$(MDADM_DIR
) install
25 rm -Rf
$(TARGET_DIR
)/usr
/share
/man
27 mdadm
: uclibc
$(TARGET_DIR
)/$(MDADM_TARGET_BINARY
)
29 mdadm-source
: $(DL_DIR
)/$(MDADM_SOURCE
)
32 $(MAKE
) prefix=$(TARGET_DIR
)/usr
-C
$(MDADM_DIR
) uninstall
33 -$(MAKE
) -C
$(MDADM_DIR
) clean
38 #############################################################
40 # Toplevel Makefile options
42 #############################################################
43 ifeq ($(strip $(BR2_PACKAGE_MDADM
)),y
)