Trade off build time for space by using the binaries from BUILD-STD
and not building BUILD-BF if SKIP_BF=yes in the rules.custom file.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsckstaticdir ?= ${debdir}/e2fsck-static
debugdir ?= ${debdir}/e2fsprogs-dbg
stdbuilddir ?= ${debdir}/BUILD-STD
e2fsckstaticdir ?= ${debdir}/e2fsck-static
debugdir ?= ${debdir}/e2fsprogs-dbg
stdbuilddir ?= ${debdir}/BUILD-STD
-bfbuilddir ?= ${debdir}/BUILD-BF
staticbuilddir ?= ${debdir}/BUILD-STATIC
mipsbuilddir ?= ${debdir}/BUILD-MIPS
mipsbuilddir64 ?= ${debdir}/BUILD-MIPS-64
staticbuilddir ?= ${debdir}/BUILD-STATIC
mipsbuilddir ?= ${debdir}/BUILD-MIPS
mipsbuilddir64 ?= ${debdir}/BUILD-MIPS-64
E2FSCK_STATIC = ${stdbuilddir}/e2fsck/e2fsck.static
endif
E2FSCK_STATIC = ${stdbuilddir}/e2fsck/e2fsck.static
endif
+ifeq ($(SKIP_BF),yes)
+BUILD_BF =
+bfbuilddir ?= ${stdbuilddir}
+else
+BUILD_BF = build-bf
+bfbuilddir ?= ${debdir}/BUILD-BF
+endif
+
BF_CFLAGS = -Os -fomit-frame-pointer
COMMON_CONF_FLAGS = --disable-e2initrd-helper --enable-elf-shlibs \
BF_CFLAGS = -Os -fomit-frame-pointer
COMMON_CONF_FLAGS = --disable-e2initrd-helper --enable-elf-shlibs \
build-arch: build
build-indep: build
build-arch: build
build-indep: build
-build: build-std build-bf $(BUILD_STATIC)
+build: build-std $(BUILD_BF) $(BUILD_STATIC)
build-std: ${BUILDSTDSTAMP}
${BUILDSTDSTAMP}: ${CFGSTDSTAMP}
build-std: ${BUILDSTDSTAMP}
${BUILDSTDSTAMP}: ${CFGSTDSTAMP}
-a ! -name mke2fs -a ! -name tune2fs \
-a ! -name resize2fs -a ! -name badblocks -print | xargs rm
-a ! -name mke2fs -a ! -name tune2fs \
-a ! -name resize2fs -a ! -name badblocks -print | xargs rm
- (cd ${udebdir}/sbin; ln -s e2fsck fsck.ext2 ; \
- ln -s e2fsck fsck.ext3 ; ln -s e2fsck fsck.ext4 ; \
- ln -s mke2fs mkfs.ext2 ; ln -s mke2fs mkfs.ext3 ; \
- ln -s mke2fs mkfs.ext4)
+ (cd ${udebdir}/sbin; ln -sf e2fsck fsck.ext2 ; \
+ ln -sf e2fsck fsck.ext3 ; ln -sf e2fsck fsck.ext4 ; \
+ ln -sf mke2fs mkfs.ext2 ; ln -sf mke2fs mkfs.ext3 ; \
+ ln -sf mke2fs mkfs.ext4)
ifneq ($(UTIL_LINUX_NG),yes)
mkdir -p ${blkidudebdir}/lib
ifneq ($(UTIL_LINUX_NG),yes)
mkdir -p ${blkidudebdir}/lib