[Klone-users] parameters into kloned
Stefano Barbato
barbato at koanlogic.com
Wed Aug 1 09:53:57 EDT 2007
Hi Mark,
how big is libkloneaemlib.a? what "cris-strip kloned && ls -lL kloned"
writes?
what's in the webapp/ directory (everything in webapp/ get included
into kloned binary)?
bye,
stefano
On Aug 1, 2007, at 3:34 PM, Mark Richards wrote:
> Klone 2.0.0.rc7
> 2.6.18-8.1.3.el5
> gcc-cris -v
> Reading specs from
> /usr/local/cris/lib/gcc-lib/cris-axis-elf/3.2.1/specs
> Configured with: /home/cris-dist-1.64/./gnu-toplev/configure
> --enable-version-specific-runtime-libs --disable-nls
> --target=cris-axis-elf --enable-languages=c,c++
> --prefix=/usr/local/cris
> Thread model: single
> gcc version 3.2.1 Axis release R64/1.64
> ---
>
> My toplevel Makefile provides for a user c library as follows:
>
> SUBDIR = $(TOP)/src/
> ...
> WEBAPP_LDADD = $(TOP)/src/libkloneaemlib.a
>
> I am not certain of this, but it appears that since this change was
> made my kloned has grown significantly in size (almost 400k).
> kloneaemlib.c is only 1000 lines of code, so I doubt this would
> account for it, however this is the only change that I remember making
> since the bloat.
>
> The unstripped kloned is 451142 and it strips to 406972 bytes.
>
> Makefile (and directory listing of kloned) follows for anyone who
> would care to comment on a possible solution.
>
> /m
>
> AXIS_USABLE_LIBS = UCLIBC GLIBC
> include $(AXIS_TOP_DIR)/tools/build/Rules.axis
>
> TOP := $(shell pwd)
>
> PROG = kloned
> INSTDIR = $(prefix)/runtime/exec
> INSTMODE = 0755
> INSTOWNER = root
> INSTGROUP = root
>
> # which klone version?
> KLONE_VERSION ?= 2.0.0rc7
>
> KLONE_CONF_ARGS ?= --disable_cxx
> KLONE_IMPORT_ARGS = -v -x '*/CVS/*'
>
> # cross compile
> MAKL_PLATFORM = linux-cris-axis
> # or provide custom toolchain file
> # KLONE_CUSTOM_TC ?=
>
> # embedded fs
> WEBAPP_DIR = $(TOP)/webapp
>
> # also build the following subdirs
> SUBDIR = $(TOP)/src/
>
> # flags
> WEBAPP_CFLAGS = -I$(TOP)/ -I$(TOP)/src/
> -I$(TOP)/klone-$(KLONE_VERSION)/ $(KLONE_CFLAGS) -I$(prefix)/include
> WEBAPP_LDFLAGS ?= -lAEMcommon -L$(prefix)/lib -lsqlite3
> -L$(TOP)/klone-$(KLONE_VERSION) -lm
>
> WEBAPP_LDADD = $(TOP)/src/libkloneaemlib.a
>
> include klapp.mk
>
> klapp.mk:
> wget -O $@ -c http://koanlogic.com/klone/klapp-2.0.0.mk
>
> install: all $(PROG)
> $(INSTALL) -d $(INSTDIR)
> $(INSTALL) -s -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) $(PROG)
> $(INSTDIR)
>
>
>
> ... directory listing ...
>
>
> install_elinux -p -s -m 0755 -o root -g root kloned
> /development/AEM/devboard-R2_10/target/cris-axis-linux-gnu/runtime/
> exec
>
> [root at dev1 klone]# ls kloned -ltr
> lrwxrwxrwx 1 root root 65 Aug 1 09:28 kloned
> ->/development/AEM/devboard-R2_10/apps/klone/klone-2.0.0rc7//kloned
>
> [root at dev1 klone]# ls
> /development/AEM/devboard-R2_10/apps/klone/klone-2.0.0rc7//klon
> ed/development/AEM/devboard-R2_10/apps/klone/klone-2.0.0rc7//kloned
>
> [root at dev1 klone]# ls
> /development/AEM/devboard-R2_10/apps/klone/klone-2.0.0rc7//klon ed
> -ltr
> lrwxrwxrwx 1 root root 109 Jul 30 15:56
> /development/AEM/devboard-R2_10/apps/klone/kl one-2.0.0rc7//kloned
> ->/development/AEM/devboard-R2_10/apps/klone/klone-2.0.0rc7/bui
> ld/target/klone-core-2.0.0rc7//src/kloned/kloned
>
> [root at dev1 klone]# ls
> /development/AEM/devboard-R2_10/apps/klone/klone-2.0.0rc7/build
> /target/klone-core-2.0.0rc7//src/kloned/kloned/development/AEM/
> devboard-R2_10/apps/klone/klone-2.0.0rc7/build/target/klone-core-2.0
> .0rc7//src/kloned/kloned
>
> [root at dev1 klone]# ls
> /development/AEM/devboard-R2_10/apps/klone/klone-2.0.0rc7/build
> /target/klone-core-2.0.0rc7//src/kloned/kloned -ltr
> -rwxr-xr-x 1 root root 451142 Aug 1 09:28
> development/AEM/devboard-R2_10/apps/klone
> /klone-2.0.0rc7/build/target/klone-core-2.0.0rc7//src/kloned/kloned
>
> ls
> /development/AEM/devboard-R2_10/target/cris-axis-linux-gnu/runtime/
> exec -ltr
> -rwxr-xr-x 1 root root 406972 Aug 1 09:28 kloned
> [root at dev1 klone]#
>
>
>
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>
More information about the klone-users
mailing list