Commit b0fbdcff authored by Ryan Jackson's avatar Ryan Jackson

More missing stuff

parent 41065789
include ../../variables.mk
E2FSPROGS_VERSION=1.41.1
E2FSPROGS_PATH=$(TARGET_BUILD_PATH)/e2fsprogs-$(E2FSPROGS_VERSION)
.PHONY: extract patch config \
e2fsprogs install clean all
all: e2fsprogs
extract: $(E2FSPROGS_PATH)/.extract-stamp
patch: $(E2FSPROGS_PATH)/.patch-stamp
config: $(E2FSPROGS_PATH)/.config-stamp
e2fsprogs: $(E2FSPROGS_PATH)/.config-stamp
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
$(MAKE) -C $(E2FSPROGS_PATH)
clean:
rm -rf $(E2FSPROGS_PATH)
LIBS := $(addprefix $(TARGET_PATH)/lib/, libext2fs.so libe2p.so libcom_err.so libblkid.so libuuid.so)
install: $(TARGET_PATH)/sbin/mke2fs $(TARGET_PATH)/sbin/tune2fs $(TARGET_PATH)/sbin/e2fsck $(LIBS)
$(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); \
LDFLAGS=-Wl,-rpath,$(E2FSPROGS_PATH)/lib \
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 \
--enable-elf-shlibs \
--without-catgets \
)
touch $@
#--enable-elf-shlibs --enable-dynamic-e2fsck --disable-swapfs \
#--enable-elf-shlibs \
$(E2FSPROGS_PATH)/misc/mke2fs: $(E2FSPROGS_PATH)/.config-stamp
LDFLAGS="-rpath ../lib" PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) -C $(E2FSPROGS_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
touch $@
$(E2FSPROGS_PATH)/e2fsck/e2fsck: $(E2FSPROGS_PATH)/.config-stamp
LDFLAGS="-rpath ../lib" PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) -C $(E2FSPROGS_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
touch $@
$(E2FSPROGS_PATH)/misc/tune2fs: $(E2FSPROGS_PATH)/.config-stamp
LDFLAGS="-rpath ../lib" PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) -C $(E2FSPROGS_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
touch $@
$(E2FSPROGS_PATH)/lib/%.so: $(E2FSPROGS_PATH)/.config-stamp
LDFLAGS="-rpath ../lib" PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) -C $(E2FSPROGS_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
touch $@
$(TARGET_PATH)/lib/%.so: $(E2FSPROGS_PATH)/lib/%.so
install -d -m 755 $(TARGET_PATH)/lib
install -m 644 $< $@
$(STRIPCMD) --strip-unneeded $@
$(STAGING_DIR)/usr/bin/ldconfig -r $(TARGET_PATH)
touch -c $@
$(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 $@
$(TARGET_PATH)/sbin/e2fsck: $(E2FSPROGS_PATH)/e2fsck/e2fsck
install -d -m 755 $(TARGET_PATH)/sbin
install -m 755 $< \
$(TARGET_PATH)/sbin/e2fsck
$(STRIPCMD) --strip-unneeded $(TARGET_PATH)/sbin/e2fsck
ln -s $@ $(dir $@)/fsck.ext2
ln -s $@ $(dir $@)/fsck.ext3
touch -c $@
$(TARGET_PATH)/sbin/tune2fs: $(E2FSPROGS_PATH)/misc/tune2fs
install -d -m 755 $(TARGET_PATH)/sbin
install -m 755 $(E2FSPROGS_PATH)/misc/tune2fs \
$(TARGET_PATH)/sbin/tune2fs
$(STRIPCMD) --strip-unneeded $(TARGET_PATH)/sbin/tune2fs
touch -c $@
include ../../variables.mk
.PHONY: extract patch config \
openssl install clean all
OPENSSL_VERSION = 0.9.7m
OPENSSL_PATH = $(TARGET_BUILD_PATH)/openssl-$(OPENSSL_VERSION)
SYSROOT_OPENSSL_SHARED = $(STAGING_DIR)/usr/lib/libcrypto.a
TARGET_OPENSSL_SHARED = $(TARGET_PATH)/usr/lib/libcrypto.so.0.9.7
all: openssl
extract: $(OPENSSL_PATH)/.extract-stamp
patch: $(OPENSSL_PATH)/.patch-stamp
config: $(OPENSSL_PATH)/.config-stamp
openssl: $(OPENSSL_PATH)/apps/openssl
clean:
rm -rf $(OPENSSL_PATH)
install: $(SYSROOT_OPENSSL_SHARED) $(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 $@
include ../../variables.mk
WGET_VERSION = 1.11.4
WGET_PATH = $(TARGET_BUILD_PATH)/wget-$(WGET_VERSION)
.PHONY: extract patch config \
wget install clean all
all: wget
extract: $(WGET_PATH)/.extract-stamp
patch: $(WGET_PATH)/.patch-stamp
config: $(WGET_PATH)/.config-stamp
wget: $(WGET_PATH)/wget
install: $(TARGET_PATH)/usr/bin/wget
clean:
PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) -C $(WGET_PATH) clean
rm -f $(WGET_PATH)/.build-stamp $(WGET_PATH)/.config-stamp
$(WGET_PATH)/.extract-stamp:
mkdir -p $(TARGET_BUILD_PATH)
cd $(TARGET_BUILD_PATH); tar xzf $(SOURCE_PATH)/wget/wget-$(WGET_VERSION).tar.gz
touch $@
$(WGET_PATH)/.patch-stamp: $(WGET_PATH)/.extract-stamp
$(SCRIPTS_PATH)/patch-kernel.sh $(WGET_PATH) $(SOURCE_PATH)/wget/ '*.patch'
touch $@
$(WGET_PATH)/.config-stamp: $(WGET_PATH)/.patch-stamp
rm -f $(WGET_PATH)/config.cache
(cd $(WGET_PATH); \
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
$(HOST_CONFIGURE_OPTS) \
./configure \
--target=i386-linux-uclibc \
--host=i386-linux-uclibc \
--build=x86_64-linux-gnu \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libdir=/lib \
--libexecdir=/usr/lib \
--sysconfdir=/etc \
--datadir=/usr/share \
--localstatedir=/var \
--mandir=/usr/man \
--infodir=/usr/info \
)
touch $@
#--enable-elf-shlibs --enable-dynamic-e2fsck --disable-swapfs \
#--enable-elf-shlibs \
$(WGET_PATH)/wget: $(WGET_PATH)/.config-stamp
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
CC=$(TARGET_CC) \
$(MAKE) -C $(WGET_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
touch $@
$(TARGET_PATH)/usr/bin/wget: $(WGET_PATH)/src/wget
install -d -m 755 $(TARGET_PATH)/usr
install -d -m 755 $(TARGET_PATH)/usr/bin
install -m 755 $< $@
$(STRIPCMD) --strip-unneeded $@
touch -c $@
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