build system: fix build in separate obj tree

This commit is contained in:
Denis Vlasenko 2006-10-11 21:24:42 +00:00
parent 1db39b2f51
commit 665b02cb60
4 changed files with 11 additions and 10 deletions

View File

@ -399,6 +399,7 @@ ifeq ($(config-targets),1)
export KBUILD_DEFCONFIG
config %config: scripts_basic outputmakefile FORCE
$(Q)mkdir -p include
$(Q)$(MAKE) $(build)=scripts/kconfig $@
$(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease

View File

@ -13,4 +13,4 @@ lib-$(CONFIG_LSATTR) += lsattr.o
lib-$(CONFIG_MKE2FS) += mke2fs.o util.o
lib-$(CONFIG_TUNE2FS) += tune2fs.o util.o
CFLAGS += -include e2fsprogs/e2fsbb.h
CFLAGS += -include $(srctree)/e2fsprogs/e2fsbb.h

View File

@ -13,11 +13,11 @@ lib-y:=
lib-$(NEEDED-y) += cache.o dev.o devname.o devno.o blkid_getsize.o \
probe.o read.o resolve.o save.o tag.o list.o
CFLAGS_dev.o := -include include/busybox.h
CFLAGS_devname.o := -include include/busybox.h
CFLAGS_devno.o := -include include/busybox.h
CFLAGS_blkid_getsize.o := -include include/busybox.h
CFLAGS_probe.o := -include include/busybox.h
CFLAGS_save.o := -include include/busybox.h
CFLAGS_tag.o := -include include/busybox.h
CFLAGS_list.o := -include include/busybox.h
CFLAGS_dev.o := -include $(srctree)/include/busybox.h
CFLAGS_devname.o := -include $(srctree)/include/busybox.h
CFLAGS_devno.o := -include $(srctree)/include/busybox.h
CFLAGS_blkid_getsize.o := -include $(srctree)/include/busybox.h
CFLAGS_probe.o := -include $(srctree)/include/busybox.h
CFLAGS_save.o := -include $(srctree)/include/busybox.h
CFLAGS_tag.o := -include $(srctree)/include/busybox.h
CFLAGS_list.o := -include $(srctree)/include/busybox.h

View File

@ -20,4 +20,4 @@ lib-$(NEEDED-y) += gen_bitmap.o bitops.o ismounted.o mkjournal.o unix_io.o \
dirhash.o version.o flushb.o unlink.o check_desc.o valid_blk.o \
ext_attr.o bmap.o dblist_dir.o ext2fs_inline.o swapfs.o
CFLAGS += -include e2fsprogs/e2fsbb.h
CFLAGS += -include $(srctree)/e2fsprogs/e2fsbb.h