mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
Makefile, linux-rpm.mk: Fix copying of kernel after download
This commit is contained in:
parent
e8972ce56a
commit
dc18a8fc4d
2 changed files with 9 additions and 1 deletions
5
Makefile
5
Makefile
|
|
@ -1,3 +1,8 @@
|
|||
# jan's utility modules
|
||||
# (c) 2001-2005 jannet it services
|
||||
# contact@jannet.de
|
||||
# $Id$
|
||||
|
||||
TOPDIR=.
|
||||
MODDIR=.
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@ PATCHES += $(wildcard $(LINUX_KERNEL_PATCH_DIR)/*-$(KERNEL_VERSI
|
|||
LOCAL_PATCHES = $(notdir $(PATCHES))
|
||||
SUBMAKEFILE = $(MODDIR)/make/linux-rpm-build.mk
|
||||
|
||||
KERNEL_URL = ftp.kernel.org:/pub/linux/kernel/v$(basename $(KERNEL_VERSION))/linux-$(KERNEL_VERSION).tar.bz2
|
||||
KERNEL_TGZ = $(notdir $(KERNEL_URL))
|
||||
|
||||
# exports
|
||||
export KERNEL_VERSION
|
||||
export KERNEL_INSTALL_PREFIX
|
||||
|
|
@ -45,7 +48,7 @@ clean: thisclean
|
|||
$(KERNEL_PKG):
|
||||
mkdir -p $(dir $(KERNEL_PKG))
|
||||
ftp -a ftp.kernel.org:/pub/linux/kernel/v$(basename $(KERNEL_VERSION))/linux-$(KERNEL_VERSION).tar.bz2
|
||||
install -m 664 $(KERNEL_TGZ) $@
|
||||
install -m 664 $(notdir $(KERNEL_PKG)) $@
|
||||
|
||||
EXTRAVERSION: linux-$(KERNEL_VERSION)/Makefile
|
||||
sed '/^ *EXTRAVERSION *=/ !d; s/^ *EXTRAVERSION *= *-*//; s/ *$$//' $< >$@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue