[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[openap-cvs] : wl11000 Makefile,1.5,1.6
From: |
David Kimdon <address@hidden> |
Subject: |
[openap-cvs] : wl11000 Makefile,1.5,1.6 |
Date: |
Mon, 15 Jul 2002 16:37:37 -0400 |
Update of /cvsroot/openap/wl11000
In directory subversions:/tmp/cvs-serv23691
Modified Files:
Makefile
Log Message:
new toolchain, library reduction
Index: Makefile
===================================================================
RCS file: /cvsroot/openap/wl11000/Makefile,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Makefile 15 Jul 2002 18:35:33 -0000 1.5
+++ Makefile 15 Jul 2002 20:37:35 -0000 1.6
@@ -51,7 +51,6 @@
else if [ -x /bin/bash ]; then echo /bin/bash; \
else echo sh; fi ; fi)
-ARCH := i386
OPENAP_VERSION = 0.1.2-pre
TOPDIR := $(shell pwd)
@@ -59,11 +58,12 @@
IMAGE_DIR := $(TOPDIR)/Image_final
-UCLIBC_PREFIX=/usr/i386-linux-uclibc/bin
-CC=$(UCLIBC_PREFIX)/gcc
-AR=$(UCLIBC_PREFIX)/ar
-LD=$(UCLIBC_PREFIX)/ld
-STRIP=$(UCLIBC_PREFIX)/strip
+TOOL_PREFIX=$(shell echo $(CONFIG_PREFIX))
+CROSS_COMPILE=$(TOOL_PREFIX)bin/i386-uclibc-
+CC=$(CROSS_COMPILE)gcc
+AR=$(CROSS_COMPILE)ar
+LD=$(CROSS_COMPILE)ld
+STRIP=$(CROSS_COMPILE)strip
MKNOD=/bin/mknod
INSTALL=/usr/bin/install
STRIPFLAGS="--remove-section=.comment --remove-section=.note"
@@ -74,11 +74,18 @@
export HOSTCC OPENAP_VERSION
#
-# When creating an sram image you must specify the size of the cardi (in
megabytes).
+# When creating an sram image you must specify the size of the card (in
megabytes).
#
SRAM_SIZE=2
+uclibc:
+ mkdir -p /opt/openap-$(OPENAP_VERSION)/ || \
+ (echo "failed to create /opt/openap-$(OPENAP_VERSION)"; exit 1)
+ mkdir build/
+ cd build && tar -xzf ../misc/gcc-2.95-uclibc-20020711.src.tar.gz
+ patch -p0 < misc/uclibc-build.diff
+ cd build/gcc-2.95 && make TARGET_PATH=/opt/openap-$(OPENAP_VERSION)/
tools: check config_kernel cramfs
$(MAKE) -C uclibc KERNEL_SOURCE=$(KERNEL_DIR)
@@ -143,7 +150,7 @@
cd $(PCMCIA_DIR) ; \
$(PCMCIA_DIR)/Configure -n --kernel=$(KERNEL_DIR) \
- --target=$(IMAGE_DIR) --ucc=$(CC) --trust \
+ --target=$(IMAGE_DIR) --ucc=$(CC) --kcc=$(CC) --trust \
--nocardbus --nopnp --noapm --srctree ;
check:
@@ -171,13 +178,6 @@
rm -rf `find $(IMAGE_DIR)/* -name CVS_placeholder`
chmod +x $(IMAGE_DIR)/etc/init.d/*
-UCLIBC_VER=0.9.11
-LIBS=ld-uClibc.so.0 libc.so.0 libresolv.so.0 libdl.so.0 \
- ld-uClibc-$(UCLIBC_VER).so \
- libuClibc-$(UCLIBC_VER).so \
- libresolv-$(UCLIBC_VER).so \
- libdl-$(UCLIBC_VER).so
-
image: clean_image install_static subdirs install_subdirs
mkdir -p $(IMAGE_DIR)/dev/
@@ -250,21 +250,21 @@
ln -s /var/syslogd.socket $(IMAGE_DIR)/dev/log
- # install uclibc
-
- mkdir -p $(IMAGE_DIR)/usr/i386-linux-uclibc/lib
- mkdir -p $(IMAGE_DIR)/lib
- for lib in $(LIBS) ; do \
- cp -a /usr/i386-linux-uclibc/lib/$$lib
$(IMAGE_DIR)/usr/i386-linux-uclibc/lib ; \
- done
- ln -s /usr/i386-linux-uclibc/lib/ld-uClibc.so.0
$(IMAGE_DIR)/lib/ld-uClibc.so.0
-
-flash: image
+flash: image reduce
echo "`date "+%Y%m%d.%T"` `whoami` `hostname` " \
> $(IMAGE_DIR)/etc/i802_version
rm -rf `find $(IMAGE_DIR)/* -name *CVS*`
./misc/build_flash.pl 1048576 flash # 1024 * 1024
md5sum flash > flash.md5
+
+reduce:
+ $(INSTALL) -d $(IMAGE_DIR)/lib
+ scripts/mklibs -v \
+ -L $(TOOL_PREFIX)lib \
+ --target=$(CROSS_COMPILE) \
+ -d $(IMAGE_DIR)/lib \
+ --ldlib=ld-uClibc.so.0 \
+ `find $(IMAGE_DIR) -type f -perm +0111`
#####################################################################
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [openap-cvs] : wl11000 Makefile,1.5,1.6,
David Kimdon <address@hidden> <=