blob: a9eb0f207a803608dd6def2504f6b77d81749697 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# -*-makefile-*-
#
# Copyright (C) 2002-2009 by Pengutronix e.K., Hildesheim, Germany
# 2010 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_KERNEL) += kernel
#
# Paths and names
#
KERNEL := linux-$(KERNEL_VERSION)
KERNEL_MD5 := $(call remove_quotes,$(PTXCONF_KERNEL_MD5))
ifneq ($(KERNEL_NEEDS_GIT_URL),y)
KERNEL_SUFFIX := tar.xz
KERNEL_URL := $(call kernel-url, KERNEL)
else
KERNEL_SUFFIX := tar.gz
KERNEL_URL := https://git.kernel.org/torvalds/t/$(KERNEL).$(KERNEL_SUFFIX)
endif
KERNEL_DIR := $(BUILDDIR)/$(KERNEL)
KERNEL_BUILD_DIR := $(KERNEL_DIR)-build
KERNEL_CONFIG := $(call ptx/in-platformconfigdir, kernelconfig)
KERNEL_LICENSE := GPL-2.0-only
KERNEL_SOURCE := $(SRCDIR)/$(KERNEL).$(KERNEL_SUFFIX)
KERNEL_DEVPKG := NO
KERNEL_BUILD_OOT := KEEP
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
KERNEL_CONF_OPT := \
-C $(KERNEL_DIR) \
O=$(KERNEL_BUILD_DIR) \
$(call kernel-opts, KERNEL)
# no gcc plugins; avoid config changes depending on the host compiler
KERNEL_CONF_OPT += \
HOSTCXX=false
ifdef PTXCONF_KERNEL
$(KERNEL_CONFIG):
@echo
@echo "*************************************************************************"
@echo "**** Please generate a kernelconfig with 'ptxdist menuconfig kernel' ****"
@echo "*************************************************************************"
@echo
@echo
@exit 1
endif
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
$(STATEDIR)/kernel.compile:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/kernel.install:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# oldconfig / menuconfig
# ----------------------------------------------------------------------------
kernel_oldconfig kernel_menuconfig kernel_nconfig: $(STATEDIR)/kernel.extract
@$(call world/kconfig, KERNEL, $(subst kernel_,,$@))
# vim: syntax=make
|