mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
linux-rpm.mk: Make make aware of the downloading as seperate step
This commit is contained in:
parent
b7fafdbcf8
commit
09b7e0610c
1 changed files with 6 additions and 3 deletions
|
|
@ -35,6 +35,7 @@ BASE = $(KERNEL_BASE)-$(KERNEL_VERSION)-$(KERNEL_RELEASE)
|
|||
BASE_RUN = $(KERNEL_BASE)-run-$(KERNEL_VERSION)-$(KERNEL_RELEASE)
|
||||
BASE_DEVEL = $(KERNEL_BASE)-devel-$(KERNEL_VERSION)-$(KERNEL_RELEASE)
|
||||
|
||||
KERNEL_TGZ = $(notdir $(KERNEL_PKG))
|
||||
F_SPEC = $(BASE).spec
|
||||
F_TGZ = $(BASE).tar.gz
|
||||
F_SPM = $(BASE).src.rpm
|
||||
|
|
@ -64,9 +65,11 @@ export KERNEL_INSTALL_PREFIX
|
|||
all: rpm
|
||||
|
||||
# file rules
|
||||
$(KERNEL_PKG):
|
||||
ftp -a ftp.kernel.org:/pub/linux/kernel/v$(basename $(KERNEL_VERSION))/$(notdir $(KERNEL_PKG))
|
||||
cp $(notdir $(KERNEL_PKG)) $@
|
||||
$(KERNEL_TGZ):
|
||||
ftp -a ftp.kernel.org:/pub/linux/kernel/v$(basename $(KERNEL_VERSION))/$(KERNEL_TGZ)
|
||||
|
||||
$(KERNEL_PKG): $(KERNEL_TGZ)
|
||||
install -m 664 $< $@
|
||||
|
||||
config-$(KERNEL_VERSION):
|
||||
cp $(shell ls config-$(basename $(KERNEL_VERSION)).* | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]\)$$/\1.\2.0\3/' | sort -g | sed 's/\.0/./; $$ !d') $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue