1 #############################################################
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
10 MKE2FS_BINARY
:=misc
/mke2fs
11 MKE2FS_TARGET_BINARY
:=sbin
/mke2fs
13 $(DL_DIR
)/$(MKE2FS_SOURCE
):
14 $(WGET
) -P
$(DL_DIR
) $(MKE2FS_SITE
)/$(MKE2FS_SOURCE
)
16 mke2fs-source
: $(DL_DIR
)/$(MKE2FS_SOURCE
)
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
22 $(MKE2FS_DIR
)/.configured
: $(MKE2FS_DIR
)/.unpacked
23 (cd
$(MKE2FS_DIR
); rm -rf config.cache
; \
24 $(TARGET_CONFIGURE_OPTS
) \
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 \
35 --libexecdir
=/usr
/lib \
37 --datadir=/usr
/share \
38 --localstatedir
=/var \
41 --disable-elf-shlibs
--disable-swapfs \
42 --disable-debugfs
--disable-imager \
43 --disable-resizer
--disable-fsck \
44 --without-catgets
$(DISABLE_NLS
) \
46 touch
$(MKE2FS_DIR
)/.configured
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
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
62 mke2fs
: uclibc
$(TARGET_DIR
)/$(MKE2FS_TARGET_BINARY
)
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