Skip to contentSkip to conversation

make rpm target fix in Makefile (linux-2.4.13-pre5)

PATCH New Davide Inglima - limaCAT 1 participant 1 message Oct 20, 2001 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make rpm target fix in Makefile (linux-2.4.13-pre5)

in short:
- the rpm target in linus tree doesn't work: it refuses to compile since it needs the "KERNELPATH" environment variable set as well... otherwise it would fail to create the .tar.gz file needed by the rpm-compile process.
solution:
- copy the "KERNELPATH=..." directive from Alan's Makefile. Now it works.

Enjoy!

Makefile Sat Oct 20 17:46:47 2001 renamed from Makefile.orig Sat Oct 20 17:54:46 2001 +1 -0
@@ -6,6 +6,7 @@
 KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 
 ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
+KERNELPATH=kernel-$(shell echo $(KERNELRELEASE) | sed -e "s/-//")
 
 CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
          else if [ -x /bin/bash ]; then echo /bin/bash; \