Index: Makefile
===================================================================
--- Makefile (revision 61)
+++ Makefile (revision 62)
@@ -1,5 +1,5 @@
-COMPONENT_TARGETS = $(TARGET_NOARCH)
+COMPONENT_TARGETS = $(HARDWARE_NOARCH)
include ../../../../build-system/constants.mk
@@ -14,10 +14,15 @@
tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
+patches = $(CURDIR)/patches/acl-2.2.51.patch
+patches += $(CURDIR)/patches/acl-2.2.52.patch
-BUILD_TARGETS = $(tarballs) $(sha1s)
+.NOTPARALLEL: $(patches)
+BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
+
+
include ../../../../build-system/core.mk
@@ -25,28 +30,29 @@
$(tarballs):
- @echo -e "\n======= Downloading source tarballs =======\n"
- @for tarball in $(tarballs) ; do \
- wget $(WGET_OPTIONS) -N $(url)/$$tarball ; \
- done
- @echo -e "\n======= Create Patches =======\n"
- @( cd create-2.2.51-patch && ./create.patch.sh )
- @( cd create-2.2.52-patch && ./create.patch.sh )
+ @echo -e "\n======= Downloading source tarballs =======" ; \
+ for tarball in $(tarballs) ; do \
+ echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & \
+ done ; wait
-$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+$(sha1s): $(tarballs)
@for sha in $@ ; do \
- echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
- wget $(WGET_OPTIONS) -N $(url)/$$sha ; \
- touch $$sha ; \
- echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
- sha1sum --check $$sha ; ret="$$?" ; \
- if [ "$$ret" == "1" ]; then \
- echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
- exit 1 ; \
- fi ; \
- done
+ echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
+ echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & wait %1 ; \
+ touch $$sha ; \
+ echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
+ sha1sum --check $$sha ; ret="$$?" ; \
+ if [ "$$ret" == "1" ]; then \
+ echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
+ exit 1 ; \
+ fi ; \
+ done
+$(patches): $(sha1s)
+ @echo -e "\n======= Create Patches =======\n" ; \
+ ( cd create-2.2.51-patch ; ./create.patch.sh ) ; \
+ ( cd create-2.2.52-patch ; ./create.patch.sh ) ; \
+ echo -e "\n"
+
download_clean:
- @rm -f $(tarballs) $(sha1s)
- @rm -f ./patches/acl-2.2.51.patch
- @rm -f ./patches/acl-2.2.52.patch
+ @rm -f $(tarballs) $(sha1s) $(patches)