X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=779640529dff6f10dbcfab170b37cd78aa4d92cc;hb=a2ece80b4e728bf83f63d2b0585f9c4965084cab;hp=85bc85bbb772b34cd4787ed606bfaf620f9b21fe;hpb=5dce02ba218bbe0f460cf91bdd1d8fa6b4773a03;p=linux-2.6.git diff --git a/Makefile b/Makefile index 85bc85bbb..779640529 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ AWK = awk SHA1SUM = sha1sum SED = sed +# this is passed on the command line as the full path to /SPECS/kernel.spec SPECFILE = kernel.spec # Thierry - when called from within the build, PWD is /build @@ -85,12 +86,11 @@ trees: sources srpm: sources mkdir -p SOURCES SRPMS (cd SOURCES; rpm2cpio ../$(SOURCE_RPM) | cpio -diu; \ - cp ../$(SPECFILE) . ; cp ../linux*.patch . ; \ + cp ../$(notdir $(SPECFILE)) . ; cp ../linux*.patch . ; \ for downloaded in $(SOURCEFILES) ; do cp ../$$downloaded . ; done ; \ sed -i -e s,CONFIG_IPV6=m,CONFIG_IPV6=y, config-generic) ./rpmmacros.sh export HOME=$(shell pwd) ; rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps -bs $(SPECFILE) - cp $(SOURCE_RPM) $(EXPECTED_SRPM) TARGET ?= $(shell uname -m) rpm: sources