diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-08-16 07:32:28 -0500 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-08-16 07:32:28 -0500 |
| commit | 871f6b393a11aec656a8a514c440b22d51d56eb5 (patch) | |
| tree | e256b36eca104016222b01c9807b561a4c56e9ff | |
| parent | 75db34bc1ca7e549deb52283147a11de9c1b5d9f (diff) | |
| parent | edc947d207b5400800aac633e7074e7379d7dff3 (diff) | |
kbuild: Hand merge
| -rw-r--r-- | Makefile | 6 | ||||
| -rw-r--r-- | drivers/char/Makefile | 6 | ||||
| -rw-r--r-- | drivers/video/Makefile | 6 | ||||
| -rw-r--r-- | scripts/Makefile | 67 | ||||
| -rw-r--r-- | scripts/conmakehash.c (renamed from drivers/char/conmakehash.c) | 0 | ||||
| -rw-r--r-- | scripts/lxdialog/Makefile | 4 |
6 files changed, 44 insertions, 45 deletions
@@ -637,12 +637,9 @@ MRPROPER_FILES += \ sound/oss/pndspini.c \ drivers/atm/fore200e_*_fw.c drivers/atm/.fore200e_*.fw \ .version .config* config.in config.old \ - scripts/tkparse scripts/kconfig.tk scripts/kconfig.tmp \ - scripts/lxdialog/*.o scripts/lxdialog/lxdialog \ .menuconfig.log \ include/asm \ - .hdepend scripts/split-include scripts/docproc \ - scripts/fixdep $(TOPDIR)/include/linux/modversions.h \ + .hdepend $(TOPDIR)/include/linux/modversions.h \ tags TAGS kernel.spec \ .tmpversion @@ -672,6 +669,7 @@ mrproper: clean archmrproper -type f -print | xargs rm -f @rm -f $(MRPROPER_FILES) @rm -rf $(MRPROPER_DIRS) + @$(MAKE) -C scripts mrproper @$(MAKE) -f Documentation/DocBook/Makefile mrproper distclean: mrproper diff --git a/drivers/char/Makefile b/drivers/char/Makefile index 63417ee05fab..0ea6ec40819c 100644 --- a/drivers/char/Makefile +++ b/drivers/char/Makefile @@ -209,12 +209,10 @@ obj-$(CONFIG_AGP) += agp/ obj-$(CONFIG_DRM) += drm/ obj-$(CONFIG_PCMCIA) += pcmcia/ -host-progs := conmakehash - include $(TOPDIR)/Rules.make -$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) $(obj)/conmakehash - $(obj)/conmakehash $< > $@ +$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) + $(call do_cmd,CONMK $(echo_target),$(objtree)/scripts/conmakehash $< > $@) $(obj)/defkeymap.o: $(obj)/defkeymap.c diff --git a/drivers/video/Makefile b/drivers/video/Makefile index 585d3e654a52..daf6c861c3cb 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -119,12 +119,10 @@ obj-$(CONFIG_FBCON_HGA) += fbcon-hga.o obj-$(CONFIG_FBCON_STI) += fbcon-sti.o obj-$(CONFIG_FBCON_ACCEL) += fbcon-accel.o -host-progs := ../char/conmakehash - include $(TOPDIR)/Rules.make -$(obj)/promcon_tbl.c: $(src)/prom.uni $(obj)/../char/conmakehash - $(obj)/../char/conmakehash $< | \ +$(obj)/promcon_tbl.c: $(src)/prom.uni + $(objtree)/scripts/conmakehash $< | \ sed -e '/#include <[^>]*>/p' -e 's/types/init/' \ -e 's/dfont\(_uni.*\]\)/promfont\1 __initdata/' > $@ diff --git a/scripts/Makefile b/scripts/Makefile index 0416b0f86137..054afe4ef069 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -1,8 +1,15 @@ - -# always needed +### +# scripts contains sources for various helper programs used throughout +# the kernel for the build process. # --------------------------------------------------------------------------- +# fix-dep: Used to generate dependency information during build process +# split-include: Divide all config symbols up in a number of files in +# include/config/... +# docproc: Preprocess .tmpl file in order to generate .sgml documentation +# conmakehash: Create arrays for initializing the kernel console tables +# tkparse: Used by xconfig -all: fixdep split-include docproc __chmod +all: fixdep split-include docproc conmakehash __chmod # The following temporary rule will make sure that people's # trees get updated to the right permissions, since patch(1) @@ -14,47 +21,45 @@ all: fixdep split-include docproc __chmod __chmod: kernel-doc mkcompile_h makelst @chmod a+x $^ -# xconfig -# --------------------------------------------------------------------------- +host-progs := fixdep split-include conmakehash docproc tkparse +tkparse-objs := tkparse.o tkcond.o tkgen.o -HEADER=header.tk -TAIL=tail.tk -# Previous versions always remade kconfig.tk because they always depended -# on soundscript. This runs fairly fast, and I can't find all the -# Config.in files to depend on anyways. So I'll force it to remake. +include $(TOPDIR)/Rules.make -kconfig.tk: $(TOPDIR)/arch/$(ARCH)/config.in tkparse $(HEADER) $(TAIL) FORCE +# In reality kconfig.tk should depend on all Config.in files, +# but it is not worth the effort to generate the dependencies. +# The alternative solution to always generate it is fairly fast. +# FORCE it to remake +$(obj)/kconfig.tk: $(srctree)/arch/$(ARCH)/config.in tkparse FORCE @echo ' Generating $@' @( \ - if [ -f /usr/local/bin/wish ]; then \ + if [ -f /usr/local/bin/wish ]; then \ echo '#!'"/usr/local/bin/wish -f"; \ - else \ + else \ echo '#!'"/usr/bin/wish -f"; \ - fi; \ - cat $(HEADER); \ - ./tkparse < $<; \ - echo "set defaults \"arch/${ARCH}/defconfig\""; \ - echo "set ARCH \"${ARCH}\""; \ - cat $(TAIL) \ + fi; \ + cat $(src)/header.tk; \ + $(obj)/tkparse < $<; \ + echo "set defaults \"arch/${ARCH}/defconfig\""; \ + echo "set ARCH \"${ARCH}\""; \ + cat $(src)/tail.tk; \ ) > $@ - chmod 755 $@ + @chmod 755 $@ -# --------------------------------------------------------------------------- +# --------------------------------------------------------------------------- +# Targets hardcoded and wellknow in top-level makefile .PHONY: lxdialog - lxdialog: $(MAKE) -C lxdialog all -# --------------------------------------------------------------------------- - -host-progs := fixdep split-include docproc tkparse - -tkparse-objs := tkparse.o tkcond.o tkgen.o - # fixdep is needed to compile other host programs +$(obj)/split-include $(obj)/docproc $(addprefix $(obj)/,$(tkparse-objs)) \ +$(obj)/conmakehash lxdialog: $(obj)/fixdep -split-include docproc $(tkparse-objs) lxdialog: fixdep - +mrproper: + @echo 'Making mrproper (scripts)' + @rm -f $(tkparse-objs) $(obj)/kconfig.tk + @rm -f core $(host-progs) + @$(MAKE) -C lxdialog mrproper -include $(TOPDIR)/Rules.make diff --git a/drivers/char/conmakehash.c b/scripts/conmakehash.c index e0c6891a9ad4..e0c6891a9ad4 100644 --- a/drivers/char/conmakehash.c +++ b/scripts/conmakehash.c diff --git a/scripts/lxdialog/Makefile b/scripts/lxdialog/Makefile index 1ab9518b1656..153c8b99ffdd 100644 --- a/scripts/lxdialog/Makefile +++ b/scripts/lxdialog/Makefile @@ -39,5 +39,5 @@ ncurses: exit 1 ;\ fi -clean: - rm -f core *.o *~ lxdialog +mrproper: + @rm -f core $(host-progs) $(lxdialog-objs) ncurses |
