blob: 16f842055d51e3bcda5345226212550b7c22916c [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001
2include $(COMMON_BASE_MK)
3
4NAME=e2fsprogs
5SRC_DIR=e2fsprogs-1.42.9
6INSTALL_DIR=$(APP_DIR)/$(NAME)/install
7BUILD_DIR=build
8GEN_MAKEFILE=$(BUILD_DIR)/Makefile
9
10CONFIG_OPTS = --host=arm-linux
11#CONFIG_OPTS += --with-sysroot=$(CROSS_COMPILE_SYSROOT)
12CONFIG_OPTS += --disable-tls
13CONFIG_OPTS += --disable-uuidd
14#CONFIG_OPTS += --disable-libuuid
15CONFIG_OPTS += --disable-mmp
16CONFIG_OPTS += --disable-tdb
17CONFIG_OPTS += --disable-bmap-stats
18CONFIG_OPTS += --disable-nls
19CONFIG_OPTS += --disable-rpath
20CONFIG_OPTS += --disable-fuse2fs
21CONFIG_OPTS += --disable-defrag
22CONFIG_OPTS += --disable-debugfs
23CONFIG_OPTS += --disable-e2initrd-helper
24CONFIG_OPTS += --disable-fsck
25#CONFIG_OPTS += --disable-libblkid
26CONFIG_OPTS += --disable-testio-debug
27
28
29#LDFLAGS += -ldl
30
31all: $(GEN_MAKEFILE)
32 make -C build all
33 make -C build install
34
35$(GEN_MAKEFILE):
36 mkdir -p $(BUILD_DIR)
37 cd $(BUILD_DIR); ../$(SRC_DIR)/configure --prefix=$(INSTALL_DIR) $(CONFIG_OPTS)
38
39clean:
40 -rm -fr $(BUILD_DIR) $(INSTALL_DIR)
41
42romfs:
43 $(ROMFSINST) $(INSTALL_DIR)/sbin/mkfs.ext4 /sbin/mkfs.ext4
44 $(ROMFSINST) $(INSTALL_DIR)/etc/mke2fs.conf /etc/mke2fs.conf
45