lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | |
| 2 | include $(COMMON_BASE_MK) |
| 3 | |
| 4 | NAME=e2fsprogs |
| 5 | SRC_DIR=e2fsprogs-1.42.9 |
| 6 | INSTALL_DIR=$(APP_DIR)/$(NAME)/install |
| 7 | BUILD_DIR=build |
| 8 | GEN_MAKEFILE=$(BUILD_DIR)/Makefile |
| 9 | |
| 10 | CONFIG_OPTS = --host=arm-linux |
| 11 | #CONFIG_OPTS += --with-sysroot=$(CROSS_COMPILE_SYSROOT) |
| 12 | CONFIG_OPTS += --disable-tls |
| 13 | CONFIG_OPTS += --disable-uuidd |
| 14 | #CONFIG_OPTS += --disable-libuuid |
| 15 | CONFIG_OPTS += --disable-mmp |
| 16 | CONFIG_OPTS += --disable-tdb |
| 17 | CONFIG_OPTS += --disable-bmap-stats |
| 18 | CONFIG_OPTS += --disable-nls |
| 19 | CONFIG_OPTS += --disable-rpath |
| 20 | CONFIG_OPTS += --disable-fuse2fs |
| 21 | CONFIG_OPTS += --disable-defrag |
| 22 | CONFIG_OPTS += --disable-debugfs |
| 23 | CONFIG_OPTS += --disable-e2initrd-helper |
| 24 | CONFIG_OPTS += --disable-fsck |
| 25 | #CONFIG_OPTS += --disable-libblkid |
| 26 | CONFIG_OPTS += --disable-testio-debug |
| 27 | |
| 28 | |
| 29 | #LDFLAGS += -ldl |
| 30 | |
| 31 | all: $(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 | |
| 39 | clean: |
| 40 | -rm -fr $(BUILD_DIR) $(INSTALL_DIR) |
| 41 | |
| 42 | romfs: |
| 43 | $(ROMFSINST) $(INSTALL_DIR)/sbin/mkfs.ext4 /sbin/mkfs.ext4 |
| 44 | $(ROMFSINST) $(INSTALL_DIR)/etc/mke2fs.conf /etc/mke2fs.conf |
| 45 | |