From f7c907a89d01112b8dd68abb8f5ce451f5aedc6f Mon Sep 17 00:00:00 2001 From: Bastian Blank Date: Sun, 22 Feb 2009 13:31:45 +0000 Subject: [PATCH] * debian/bin/genorig.py - Install upstream files in kbuild directory. - Add top-level Makefile and Kbuild. * debian/rules: Fix maintainerclean. * src/Makefile, src/basic/Makefile, src/genksyms/Makefile, src/kconfig/Makefile, src/mod/Makefile src/mod/Makefile.real: Fix paths. svn path=/dists/trunk/linux-kbuild-2.6/; revision=12903 --- debian/bin/genorig.py | 7 ++++--- debian/rules | 2 +- src/Makefile | 2 +- src/basic/Makefile | 2 +- src/genksyms/Makefile | 4 ++-- src/kconfig/Makefile | 8 ++++---- src/mod/Makefile | 2 +- src/mod/Makefile.real | 2 +- 8 files changed, 15 insertions(+), 14 deletions(-) diff --git a/debian/bin/genorig.py b/debian/bin/genorig.py index 66b8f0addc88..e01ca97a07e1 100755 --- a/debian/bin/genorig.py +++ b/debian/bin/genorig.py @@ -71,11 +71,12 @@ class Main(object): def generate(self): self.log("Generate orig\n") - orig = os.path.join(self.dir, self.orig) + orig = os.path.join(self.dir, self.orig, 'kbuild') temp = os.path.join(self.dir, 'temp') os.makedirs(os.path.join(orig, 'include', 'linux')) - shutil.copyfile(os.path.join(temp, 'COPYING'), os.path.join(orig, 'COPYING')) - for i in ('input.h', 'license.h', 'mod_devicetable.h'): + for i in 'COPYING', 'Kbuild', 'Makefile': + shutil.copyfile(os.path.join(temp, i), os.path.join(orig, i)) + for i in 'input.h', 'license.h', 'mod_devicetable.h': shutil.copyfile(os.path.join(temp, 'include', 'linux', i), os.path.join(orig, 'include', 'linux', i)) shutil.copytree(os.path.join(temp, 'scripts'), os.path.join(orig, 'scripts')) diff --git a/debian/rules b/debian/rules index 18ff8ef379bc..9596b7d05ad2 100755 --- a/debian/rules +++ b/debian/rules @@ -36,7 +36,7 @@ endif maintainerclean: -rm debian/control debian/control.md5sum debian/rules.gen - -rm -rf COPYING include scripts + -rm -rf kbuild clean: debian/control dh_testdir diff --git a/src/Makefile b/src/Makefile index 3c56248546ab..209bbac530bf 100644 --- a/src/Makefile +++ b/src/Makefile @@ -37,6 +37,6 @@ SUBDIRS = \ kconfig \ mod -VPATH = $(top_srcdir)/scripts +VPATH = $(top_srcdir)/kbuild/scripts include Makefile.inc diff --git a/src/basic/Makefile b/src/basic/Makefile index 11454357d4ec..db2d0bba85ed 100644 --- a/src/basic/Makefile +++ b/src/basic/Makefile @@ -3,6 +3,6 @@ PROGS = \ fixdep OUTDIR = basic -VPATH = $(top_srcdir)/scripts/basic +VPATH = $(top_srcdir)/kbuild/scripts/basic include ../Makefile.inc diff --git a/src/genksyms/Makefile b/src/genksyms/Makefile index 22a232876d1f..7fe1681672c8 100644 --- a/src/genksyms/Makefile +++ b/src/genksyms/Makefile @@ -1,9 +1,9 @@ PROGS = genksyms OUTDIR = genksyms -VPATH = $(top_srcdir)/scripts/genksyms +VPATH = $(top_srcdir)/kbuild/scripts/genksyms -CFLAGS += -I$(top_srcdir)/scripts/genksyms +CFLAGS += -I$(top_srcdir)/kbuild/scripts/genksyms genksyms: genksyms.o parse.o lex.o diff --git a/src/kconfig/Makefile b/src/kconfig/Makefile index c153f0705b57..4f00fe885b30 100644 --- a/src/kconfig/Makefile +++ b/src/kconfig/Makefile @@ -1,18 +1,18 @@ PROGS = conf OUTDIR = kconfig -VPATH = $(top_srcdir)/scripts/kconfig +VPATH = $(top_srcdir)/kbuild/scripts/kconfig -CFLAGS += -I$(top_srcdir)/scripts/kconfig +CFLAGS += -I$(top_srcdir)/kbuild/scripts/kconfig conf: conf.o zconf.tab.o zconf.tab.c: zconf.hash.c lex.zconf.c %.c: %.c_shipped - ln -s $< $@ + ln -sf $< $@ %.h: %.h_shipped - ln -s $< $@ + ln -sf $< $@ include ../Makefile.inc diff --git a/src/mod/Makefile b/src/mod/Makefile index e61086ffc3da..db60e754e4f9 100644 --- a/src/mod/Makefile +++ b/src/mod/Makefile @@ -8,7 +8,7 @@ PROGS = \ OUTDIR = mod modpost.real-%: - $(MAKE) -f Makefile.real TYPE=$* SOURCEDIR=$(top_srcdir)/scripts/mod + $(MAKE) -f Makefile.real TYPE=$* SOURCEDIR=$(top_srcdir)/kbuild/scripts/mod %: %.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ diff --git a/src/mod/Makefile.real b/src/mod/Makefile.real index de9764cfdf9e..ceb32b645347 100644 --- a/src/mod/Makefile.real +++ b/src/mod/Makefile.real @@ -1,6 +1,6 @@ PROGS = modpost.real-$(TYPE) -CFLAGS += -I$(top_srcdir)/include +CFLAGS += -I$(top_srcdir)/kbuild/include include ../Makefile.inc