From 4a5d95d3fb6754b7e3ef22f7f05478750084e388 Mon Sep 17 00:00:00 2001 From: "\"Vladimir N. Oleynik\"" Date: Mon, 19 Sep 2005 16:18:46 +0000 Subject: [PATCH] corect build bbconfig applet, Thanks, Bernhard Fischer --- Makefile | 8 ++------ miscutils/Makefile.in | 9 +++++++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index c8b6d79d2..bf2c1d160 100644 --- a/Makefile +++ b/Makefile @@ -70,7 +70,7 @@ $(filter-out _all,$(MAKECMDGOALS)) _all: $(KBUILD_OUTPUT)/Rules.mak $(KBUILD_OUT $(MAKE) -C $(KBUILD_OUTPUT) \ top_srcdir=$(CURDIR) \ top_builddir=$(KBUILD_OUTPUT) \ - TOPDIR=$(KBUILD_OUTPUT) \ + TOPDIR=$(KBUILD_OUTPUT) \ KBUILD_SRC=$(CURDIR) \ -f $(CURDIR)/Makefile $@ @@ -100,7 +100,7 @@ ifeq ($(strip $(HAVE_DOT_CONFIG)),y) all: busybox busybox.links doc -all_tree: $(ALL_MAKEFILES) +all_tree: $(ALL_MAKEFILES) $(ALL_MAKEFILES): %/Makefile: $(top_srcdir)/%/Makefile [ -d $(@D) ] || mkdir -p $(@D); cp $< $@ @@ -202,10 +202,6 @@ include/bb_config.h: include/config.h < $< >> $@ @echo "#endif" >> $@ -include/bbconfigopts.h: .config - @[ -d $(@D) ] || mkdir -v $(@D) - $(top_srcdir)/scripts/config/mkconfigs >include/bbconfigopts.h - finished2: $(SECHO) $(SECHO) Finished installing... diff --git a/miscutils/Makefile.in b/miscutils/Makefile.in index ba8069c83..7885c1638 100644 --- a/miscutils/Makefile.in +++ b/miscutils/Makefile.in @@ -33,9 +33,9 @@ MISCUTILS-$(CONFIG_DEVFSD) += devfsd.o MISCUTILS-$(CONFIG_EJECT) += eject.o MISCUTILS-$(CONFIG_HDPARM) += hdparm.o MISCUTILS-$(CONFIG_LAST) += last.o -MISCUTILS-${CONFIG_LESS} += less.o +MISCUTILS-${CONFIG_LESS} += less.o MISCUTILS-$(CONFIG_MAKEDEVS) += makedevs.o -MISCUTILS-$(CONFIG_MOUNTPOINT) += mountpoint.o +MISCUTILS-$(CONFIG_MOUNTPOINT) += mountpoint.o MISCUTILS-$(CONFIG_MT) += mt.o MISCUTILS-$(CONFIG_RX) += rx.o MISCUTILS-$(CONFIG_SETSID) += setsid.o @@ -55,6 +55,11 @@ endif $(MISCUTILS_DIR)$(MISCUTILS_AR): $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y)) $(AR) $(ARFLAGS) $@ $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y)) +include/bbconfigopts.h: $(top_builddir)/.config + $(top_builddir)/scripts/config/mkconfigs >include/bbconfigopts.h + +$(MISCUTILS_DIR)bbconfig.o: include/bbconfigopts.h + $(MISCUTILS_DIR)%.o: $(srcdir)/%.c $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<