summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-10-29 09:48:19 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-10-29 09:54:24 +0100
commit65bfa74173d4a1fa7887154702458dcd675b6403 (patch)
treec1dc74b6dae1eecaa272a07abb191a832e702735
parent9ce9fc460767df49ac60662d8ad741e4dab77de1 (diff)
downloadptxdist-65bfa74173d4a1fa7887154702458dcd675b6403.tar.gz
ptxdist-65bfa74173d4a1fa7887154702458dcd675b6403.tar.xz
template-kernel: cleanup paths and names
Order the variables like the other templates. And make use of <PKG>_PATCHES. This makes it possible to use a regular <PKG> that is unique. Update SPDX license identifier and remove bogus 'prepare' line. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/templates/template-kernel-make13
1 files changed, 6 insertions, 7 deletions
diff --git a/rules/templates/template-kernel-make b/rules/templates/template-kernel-make
index 692fa1404..4055c60aa 100644
--- a/rules/templates/template-kernel-make
+++ b/rules/templates/template-kernel-make
@@ -16,14 +16,15 @@ PACKAGES-$(PTXCONF_KERNEL_@PACKAGE@) += kernel-@package@
#
KERNEL_@PACKAGE@_VERSION := @VERSION@
KERNEL_@PACKAGE@_MD5 :=
-KERNEL_@PACKAGE@ := linux-$(KERNEL_@PACKAGE@_VERSION)
+KERNEL_@PACKAGE@ := linux-@package@-$(KERNEL_@PACKAGE@_VERSION)
KERNEL_@PACKAGE@_SUFFIX := tar.xz
-KERNEL_@PACKAGE@_DIR := $(BUILDDIR)/linux-@package@-$(KERNEL_@PACKAGE@_VERSION)
+KERNEL_@PACKAGE@_URL := $(call kernel-url, KERNEL_@PACKAGE@)
+KERNEL_@PACKAGE@_PATCHES := linux-$(KERNEL_@PACKAGE@_VERSION)
+KERNEL_@PACKAGE@_SOURCE := $(SRCDIR)/$(KERNEL_@PACKAGE@_PATCHES).$(KERNEL_@PACKAGE@_SUFFIX)
+KERNEL_@PACKAGE@_DIR := $(BUILDDIR)/$(KERNEL_@PACKAGE@)
KERNEL_@PACKAGE@_BUILD_DIR := $(KERNEL_@PACKAGE@_DIR)-build
KERNEL_@PACKAGE@_CONFIG := $(call ptx/in-platformconfigdir, kernelconfig-@package@)
-KERNEL_@PACKAGE@_LICENSE := GPL-2.0
-KERNEL_@PACKAGE@_URL := $(call kernel-url, KERNEL_@PACKAGE@)
-KERNEL_@PACKAGE@_SOURCE := $(SRCDIR)/$(KERNEL_@PACKAGE@).$(KERNEL_@PACKAGE@_SUFFIX)
+KERNEL_@PACKAGE@_LICENSE := GPL-2.0-only
KERNEL_@PACKAGE@_BUILD_OOT := KEEP
# ----------------------------------------------------------------------------
@@ -55,8 +56,6 @@ $(KERNEL_@PACKAGE@_CONFIG):
@exit 1
endif
-$(STATEDIR)/kernel-@package@.prepare:
-
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------