makefile: use signature of uncompresed file
Kernels >3.0.4 are distributed with only plain tar signed.
This commit is contained in:
parent
937456aa45
commit
75bc52065b
8
Makefile
8
Makefile
@ -40,7 +40,11 @@ all: help
|
|||||||
MIRROR := ftp.kernel.org
|
MIRROR := ftp.kernel.org
|
||||||
SRC_BASEURL := http://${MIRROR}/pub/linux/kernel/v$(shell echo $(VERSION) | sed 's/^\(2\.[0-9]*\).*/\1/;s/^3\..*/3.x/')
|
SRC_BASEURL := http://${MIRROR}/pub/linux/kernel/v$(shell echo $(VERSION) | sed 's/^\(2\.[0-9]*\).*/\1/;s/^3\..*/3.x/')
|
||||||
SRC_FILE := linux-${VERSION}.tar.bz2
|
SRC_FILE := linux-${VERSION}.tar.bz2
|
||||||
|
ifeq ($(BUILD_FLAVOR),pvops)
|
||||||
|
SIGN_FILE := linux-${VERSION}.tar.sign
|
||||||
|
else
|
||||||
SIGN_FILE := linux-${VERSION}.tar.bz2.sign
|
SIGN_FILE := linux-${VERSION}.tar.bz2.sign
|
||||||
|
endif
|
||||||
|
|
||||||
URL := $(SRC_BASEURL)/$(SRC_FILE)
|
URL := $(SRC_BASEURL)/$(SRC_FILE)
|
||||||
URL_SIGN := $(SRC_BASEURL)/$(SIGN_FILE)
|
URL_SIGN := $(SRC_BASEURL)/$(SIGN_FILE)
|
||||||
@ -54,7 +58,11 @@ $(SRC_FILE):
|
|||||||
@echo "OK."
|
@echo "OK."
|
||||||
|
|
||||||
verify-sources:
|
verify-sources:
|
||||||
|
ifeq ($(BUILD_FLAVOR),pvops)
|
||||||
|
@bzcat $(SRC_FILE) | gpg --verify $(SIGN_FILE) -
|
||||||
|
else
|
||||||
@gpg --verify $(SIGN_FILE) $(SRC_FILE)
|
@gpg --verify $(SIGN_FILE) $(SRC_FILE)
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: clean-sources
|
.PHONY: clean-sources
|
||||||
clean-sources:
|
clean-sources:
|
||||||
|
Loading…
Reference in New Issue
Block a user