moved include/bbconfigopts.h from miscutils to to top Makefile before generate .depend. Remove allyesconfig build problem, noticed by Bernhard Fischer
This commit is contained in:
parent
c5280e8885
commit
cef737f038
11
Makefile
11
Makefile
@ -184,7 +184,16 @@ scripts/bb_mkdep: $(top_srcdir)/scripts/bb_mkdep.c
|
|||||||
$(HOSTCC) $(HOSTCFLAGS) -o $@ $<
|
$(HOSTCC) $(HOSTCFLAGS) -o $@ $<
|
||||||
|
|
||||||
depend dep: .depend
|
depend dep: .depend
|
||||||
.depend: scripts/bb_mkdep include/config.h include/bb_config.h
|
|
||||||
|
DEP_INCLUDES=include/config.h include/bb_config.h
|
||||||
|
ifeq ($(strip $(CONFIG_BBCONFIG)),y)
|
||||||
|
DEP_INCLUDES += include/bbconfigopts.h
|
||||||
|
|
||||||
|
include/bbconfigopts.h: .config
|
||||||
|
scripts/config/mkconfigs > $@
|
||||||
|
endif
|
||||||
|
|
||||||
|
.depend: scripts/bb_mkdep $(DEP_INCLUDES)
|
||||||
@rm -f .depend
|
@rm -f .depend
|
||||||
@mkdir -p include/config
|
@mkdir -p include/config
|
||||||
scripts/bb_mkdep -c include/config.h -c include/bb_config.h > $@
|
scripts/bb_mkdep -c include/config.h -c include/bb_config.h > $@
|
||||||
|
@ -55,9 +55,6 @@ endif
|
|||||||
$(MISCUTILS_DIR)$(MISCUTILS_AR): $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))
|
$(MISCUTILS_DIR)$(MISCUTILS_AR): $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))
|
||||||
$(AR) $(ARFLAGS) $@ $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))
|
$(AR) $(ARFLAGS) $@ $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))
|
||||||
|
|
||||||
$(top_builddir)/include/bbconfigopts.h: $(top_builddir)/.config
|
|
||||||
$(top_builddir)/scripts/config/mkconfigs > $(top_builddir)/include/bbconfigopts.h
|
|
||||||
|
|
||||||
$(MISCUTILS_DIR)%.o: $(srcdir)/%.c
|
$(MISCUTILS_DIR)%.o: $(srcdir)/%.c
|
||||||
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user