Commit 8613bcc9 authored by Ryan Jackson's avatar Ryan Jackson

Removed more old Rules.mk files

parent 5a37d92a
.PHONY: e2fsprogs-extract e2fsprogs-patch e2fsprogs-config e2fsprogs-build \
e2fsprogs e2fsprogs-install e2fsprogs-clean
e2fsprogs-extract: $(E2FSPROGS_PATH)/.extract-stamp
e2fsprogs-patch: $(E2FSPROGS_PATH)/.patch-stamp
e2fsprogs-config: $(E2FSPROGS_PATH)/.config-stamp
e2fsprogs-build: $(E2FSPROGS_PATH)/misc/mke2fs
e2fsprogs-install: $(TARGET_PATH)/sbin/mke2fs
$(E2FSPROGS_PATH)/.extract-stamp:
mkdir -p $(TARGET_BUILD_PATH)
cd $(TARGET_BUILD_PATH); tar xzf $(SOURCE_PATH)/e2fsprogs/e2fsprogs-$(E2FSPROGS_VERSION).tar.gz
touch $@
$(E2FSPROGS_PATH)/.patch-stamp: $(E2FSPROGS_PATH)/.extract-stamp
$(SCRIPTS_PATH)/patch-kernel.sh $(E2FSPROGS_PATH) $(SOURCE_PATH)/e2fsprogs/ '*.patch'
touch $@
#--build=$(GNU_HOST_NAME) \
$(E2FSPROGS_PATH)/.config-stamp: $(E2FSPROGS_PATH)/.patch-stamp
rm -f $(E2FSPROGS_PATH)/config.cache
(cd $(E2FSPROGS_PATH); \
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
$(HOST_CONFIGURE_OPTS) \
./configure \
--target=i386-linux-uclibc \
--host=i386-linux-uclibc \
--with-cc=$(CROSS_COMPILER_PREFIX)gcc \
--with-linker=$(CROSS_COMPILER_PREFIX)ld \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/bin \
--sbindir=/sbin \
--libdir=/lib \
--libexecdir=/usr/lib \
--sysconfdir=/etc \
--datadir=/usr/share \
--localstatedir=/var \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-debugfs --disable-imager \
--disable-tls \
--disable-resizer --enable-fsck \
--disable-e2initrd-helper \
--without-catgets \
)
touch $@
#--enable-elf-shlibs --enable-dynamic-e2fsck --disable-swapfs \
#--enable-elf-shlibs \
$(E2FSPROGS_PATH)/misc/mke2fs: $(E2FSPROGS_PATH)/.config-stamp
PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) -C $(E2FSPROGS_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc \
PROGRAMS="e2fsprogs dbclient e2fsprogskey e2fsprogsconvert scp" \
MULTI=1 SCPPROGRESS=1
touch $@
$(TARGET_PATH)/sbin/mke2fs: $(E2FSPROGS_PATH)/misc/mke2fs
install -d -m 755 $(TARGET_PATH)/sbin
install -m 755 $(E2FSPROGS_PATH)/misc/mke2fs \
$(TARGET_PATH)/sbin/mke2fs
$(STRIPCMD) --strip-unneeded $(TARGET_PATH)/sbin/mke2fs
touch -c $@
e2fsprogs-clean:
PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) -C $(E2FSPROGS_PATH) clean
rm -f $(E2FSPROGS_PATH)/.build-stamp $(E2FSPROGS_PATH)/.config-stamp
e2fsprogs: e2fsprogs-build
.PHONY: openssl-extract openssl-patch openssl-config openssl-build \
openssl openssl-install openssl-clean
SYSROOT_OPENSSL_SHARED = $(STAGING_DIR)/usr/lib/libcrypto.a
TARGET_OPENSSL_SHARED = $(TARGET_PATH)/usr/lib/libcrypto.so.0.9.7
openssl-extract: $(OPENSSL_PATH)/.extract-stamp
openssl-patch: $(OPENSSL_PATH)/.patch-stamp
openssl-config: $(OPENSSL_PATH)/.config-stamp
openssl-build: $(OPENSSL_PATH)/apps/openssl
openssl-install-sysroot: $(SYSROOT_OPENSSL_SHARED)
openssl-install-target: $(TARGET_OPENSSL_SHARED)
OPENSSL_CFLAGS = -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
$(OPENSSL_PATH)/.extract-stamp:
mkdir -p $(TARGET_BUILD_PATH)
cd $(TARGET_BUILD_PATH); tar xzf $(SOURCE_PATH)/openssl/openssl-$(OPENSSL_VERSION).tar.gz
touch $@
$(OPENSSL_PATH)/.patch-stamp: $(OPENSSL_PATH)/.extract-stamp
$(SCRIPTS_PATH)/patch-kernel.sh $(OPENSSL_PATH) $(SOURCE_PATH)/openssl/ '*.patch'
# sigh... we have to resort to this just to set a gcc flag.
# grumble.. and of course make sure to escape any '/' in CFLAGS
sed '/CFLAG=/s,/;, $(shell echo '$(TARGET_CFLAGS)' | sed -e 's/\//\\\\\//g')/;,' \
$(OPENSSL_PATH)/Configure > $(OPENSSL_PATH)/Configure.mod
mv -f $(OPENSSL_PATH)/Configure.mod $(OPENSSL_PATH)/Configure
chmod a+x $(OPENSSL_PATH)/Configure
touch $@
$(OPENSSL_PATH)/.config-stamp: $(OPENSSL_PATH)/.patch-stamp
(cd $(OPENSSL_PATH); \
CFLAGS="-DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 $(TARGET_CFLAGS)" \
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
./Configure linux-i386 --prefix=/ \
--openssldir=/lib/ssl -L$(STAGING_DIR)/lib -ldl \
-I$(STAGING_DIR)/usr/include $(OPENSSL_OPTS) threads \
shared no-idea no-mdc2 no-rc5)
touch $@
$(OPENSSL_PATH)/apps/openssl: $(OPENSSL_PATH)/.config-stamp
PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) CC=i386-linux-uclibc-gcc -C $(OPENSSL_PATH) all build-shared
# Work around openssl build bug to link libssl.so with libcrypto.so.
-rm $(OPENSSL_PATH)/libssl.so.*.*.*
$(MAKE) PATH=$(PATH):$(STAGING_DIR)/usr/bin \
CC=i386-linux-uclibc-gcc -C $(OPENSSL_PATH) do_linux-shared
touch $@
$(STAGING_DIR)/usr/lib/libcrypto.a: $(OPENSSL_PATH)/apps/openssl
PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) \
CC=$(TARGET_CC) INSTALL_PREFIX=$(STAGING_DIR)/usr \
-C $(OPENSSL_PATH) install
cp -fa $(OPENSSL_PATH)/libcrypto.so* $(STAGING_DIR)/usr/lib/
chmod a-x $(STAGING_DIR)/usr/lib/libcrypto.so.0.9.7
(cd $(STAGING_DIR)/usr/lib; \
ln -fs libcrypto.so.0.9.7 libcrypto.so; \
ln -fs libcrypto.so.0.9.7 libcrypto.so.0; \
)
cp -fa $(OPENSSL_PATH)/libssl.so* $(STAGING_DIR)/usr/lib/
chmod a-x $(STAGING_DIR)/usr/lib/libssl.so.0.9.7
(cd $(STAGING_DIR)/usr/lib; \
ln -fs libssl.so.0.9.7 libssl.so; \
ln -fs libssl.so.0.9.7 libssl.so.0; \
)
touch -c $@
$(TARGET_PATH)/usr/lib/libcrypto.so.0.9.7: $(STAGING_DIR)/usr/lib/libcrypto.a
mkdir -p $(TARGET_PATH)/usr/lib
cp -fa $(STAGING_DIR)/usr/lib/libcrypto.so* $(TARGET_PATH)/usr/lib/
cp -fa $(STAGING_DIR)/usr/lib/libssl.so* $(TARGET_PATH)/usr/lib/
#cp -fa $(STAGING_DIR)/bin/openssl $(TARGET_PATH)/bin/
$(STRIPCMD) $(TARGET_PATH)/usr/lib/libssl.so.0.9.7
$(STRIPCMD) $(TARGET_PATH)/usr/lib/libcrypto.so.0.9.7
$(TARGET_DIR)/usr/lib/libssl.a: $(STAGING_DIR)/usr/lib/libcrypto.a
mkdir -p $(TARGET_DIR)/usr/include
cp -a $(STAGING_DIR)/usr/include/openssl $(TARGET_DIR)/usr/include/
cp -dpf $(STAGING_DIR)/usr/lib/libssl.a $(TARGET_DIR)/usr/lib/
cp -dpf $(STAGING_DIR)/usr/lib/libcrypto.a $(TARGET_DIR)/usr/lib/
touch -c $@
$(STAGING_DIR)/usr/lib/libz.so.$(OPENSSL_VERSION): $(OPENSSL_PATH)/libz.so.$(OPENSSL_VERSION)
cp -dpf $(OPENSSL_PATH)/libz.a $(STAGING_DIR)/usr/lib/
cp -dpf $(OPENSSL_PATH)/openssl.h $(STAGING_DIR)/usr/include/
cp -dpf $(OPENSSL_PATH)/zconf.h $(STAGING_DIR)/usr/include/
cp -dpf $(OPENSSL_PATH)/libz.so* $(STAGING_DIR)/usr/lib/
ln -sf libz.so.$(OPENSSL_VERSION) $(STAGING_DIR)/usr/lib/libz.so.1
chmod a-x $(STAGING_DIR)/usr/lib/libz.so.$(OPENSSL_VERSION)
touch -c $@
$(TARGET_PATH)/usr/lib/libz.so.$(OPENSSL_VERSION): $(STAGING_DIR)/usr/lib/libz.so.$(OPENSSL_VERSION)
mkdir -p $(TARGET_PATH)/usr/lib
cp -dpf $(STAGING_DIR)/usr/lib/libz.so* $(TARGET_PATH)/usr/lib
$(STRIPCMD) -s $(TARGET_PATH)/usr/lib/libz.so*
touch -c $@
openssl-clean:
PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) -C $(OPENSSL_PATH) clean
rm -f $(OPENSSL_PATH)/.build-stamp $(OPENSSL_PATH)/.config-stamp
openssl: openssl-build
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment