aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Yao <ryao@gentoo.org>2014-08-17 18:04:49 -0400
committerRichard Yao <ryao@gentoo.org>2015-07-31 14:43:38 -0400
commit3b2a190062f6a15af1aba3565e9bdb8fcdc5056a (patch)
treef491af9701a05095171c99625f13e452e8d6dde7 /Makefile
parentBump version to 3.4.51.4 (diff)
downloadgenkernel-3b2a190062f6a15af1aba3565e9bdb8fcdc5056a.tar.gz
genkernel-3b2a190062f6a15af1aba3565e9bdb8fcdc5056a.tar.bz2
genkernel-3b2a190062f6a15af1aba3565e9bdb8fcdc5056a.zip
Initial kernel config infrastructure
The merge.pl script and initial configuration files for ppc, ppc64 x86 and x86_64 are from RHEL6. The merge.pl is intended to be replaced in the future. We will use it for now because Rick Farina of Gentoo QA wants this merged regardless of whether we have a substitute ready or not. Signed-off-by: Richard Yao <ryao@gentoo.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 76c9492..79d3be9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,14 @@
PACKAGE_VERSION = `/bin/fgrep GK_V= genkernel | sed "s/.*GK_V='\([^']\+\)'/\1/"`
distdir = genkernel-$(PACKAGE_VERSION)
+KCONF = $(shell ls arch/*/arch-config | sed 's/arch-/generated-/g')
# Add off-Git/generated files here that need to be shipped with releases
-EXTRA_DIST = genkernel.8 ChangeLog
+EXTRA_DIST = genkernel.8 ChangeLog $(KCONF)
+
+default: $(KCONF) genkernel.8
+
+$(KCONF):
+ perl merge.pl defaults/kernel-generic-config $(dir $@)arch-config > $@
genkernel.8: doc/genkernel.8.txt doc/asciidoc.conf Makefile genkernel
a2x --conf-file=doc/asciidoc.conf --attribute="genkernelversion=$(PACKAGE_VERSION)" \