From a2ece80b4e728bf83f63d2b0585f9c4965084cab Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 14 Dec 2009 11:43:31 +0000 Subject: [PATCH] fix --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.0