remove dead config options for firmware target support
[openwrt.git] / obsolete-buildroot / make / mke2fs.mk
1 #############################################################
2 #
3 # mke2fs
4 #
5 #############################################################
6 MKE2FS_SOURCE=e2fsprogs-1.27.tar.gz
7 MKE2FS_SITE=http://aleron.dl.sourceforge.net/sourceforge/e2fsprogs
8 MKE2FS_DIR=$(BUILD_DIR)/e2fsprogs-1.27
9 MKE2FS_CAT:=zcat
10 MKE2FS_BINARY:=misc/mke2fs
11 MKE2FS_TARGET_BINARY:=sbin/mke2fs
12
13 $(DL_DIR)/$(MKE2FS_SOURCE):
14 $(WGET) -P $(DL_DIR) $(MKE2FS_SITE)/$(MKE2FS_SOURCE)
15
16 mke2fs-source: $(DL_DIR)/$(MKE2FS_SOURCE)
17
18 $(MKE2FS_DIR)/.unpacked: $(DL_DIR)/$(MKE2FS_SOURCE)
19 $(MKE2FS_CAT) $(DL_DIR)/$(MKE2FS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
20 touch $(MKE2FS_DIR)/.unpacked
21
22 $(MKE2FS_DIR)/.configured: $(MKE2FS_DIR)/.unpacked
23 (cd $(MKE2FS_DIR); rm -rf config.cache; \
24 $(TARGET_CONFIGURE_OPTS) \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --with-cc=$(TARGET_CC) \
30 --with-linker=$(TARGET_CROSS)ld \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --sbindir=/usr/sbin \
35 --libexecdir=/usr/lib \
36 --sysconfdir=/etc \
37 --datadir=/usr/share \
38 --localstatedir=/var \
39 --mandir=/usr/man \
40 --infodir=/usr/info \
41 --disable-elf-shlibs --disable-swapfs \
42 --disable-debugfs --disable-imager \
43 --disable-resizer --disable-fsck \
44 --without-catgets $(DISABLE_NLS) \
45 );
46 touch $(MKE2FS_DIR)/.configured
47
48 $(MKE2FS_DIR)/$(MKE2FS_BINARY): $(MKE2FS_DIR)/.configured
49 $(MAKE) CC=$(TARGET_CC) -C $(MKE2FS_DIR)
50 $(STRIP) $(MKE2FS_DIR)/misc/mke2fs $(MKE2FS_DIR)/misc/badblocks;
51 touch -c $(MKE2FS_DIR)/misc/mke2fs
52
53 $(TARGET_DIR)/$(MKE2FS_TARGET_BINARY): $(MKE2FS_DIR)/$(MKE2FS_BINARY)
54 #$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(MKE2FS_DIR) install
55 #rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
56 # $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
57 # Only install a few selected items...
58 cp -dpf $(MKE2FS_DIR)/misc/mke2fs $(TARGET_DIR)/sbin/mke2fs;
59 cp -dpf $(MKE2FS_DIR)/misc/badblocks $(TARGET_DIR)/sbin/badblocks;
60 touch -c $(TARGET_DIR)/sbin/mke2fs
61
62 mke2fs: uclibc $(TARGET_DIR)/$(MKE2FS_TARGET_BINARY)
63
64 mke2fs-clean:
65 #$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(MKE2FS_DIR) uninstall
66 rm -f $(TARGET_DIR)/sbin/mke2fs $(TARGET_DIR)/sbin/badblocks;
67 -$(MAKE) -C $(MKE2FS_DIR) clean
68
69 mke2fs-dirclean:
70 rm -rf $(MKE2FS_DIR)
71
This page took 0.045842 seconds and 5 git commands to generate.