RE: [uClinux-dev] Problem using build-m68k-elf.sh

From: David Beamonte (dbeamonte@intelnet.es)
Date: Tue Apr 03 2001 - 03:45:12 EDT


Thanks again, David,

That solved the problem of the creation of bits/uClibc_config.h. Anyway, I found out another mistake in the root Makefile of the current uClibc from CVS. In the rule uClibc_config.h, where it states:
	@echo "#define __linux_" >> uClibc_config.h
it should be
	@echo "#define __linux__" >> uClibc_config.h 
		(with 2 underscores after linux instead of 1)

At the end, i was able to compile the tools properly, but i haven't been able to get a kernel for my 68EZ328 platform: I get a 230Mb linux.bin, not very small for uClinux, i think :). Has anyone managed to compile a 2.0.38 kernel for the 68EZ328 platform with the new tools?

Anyway, i will try to recompile all from scratch, though it lasts for several hours and "eats" much of harddisk space. Let's pray for it to work...

Regards,
David Beamonte

-----Mensaje original-----
De:	David McCullough [SMTP:davidm@lineo.com]
Enviado el:	domingo, 01 de abril de 2001 13:34
Para:	uclinux-dev@uClinux.org
Asunto:	Re: [uClinux-dev] Problem using build-m68k-elf.sh


Jivin David Beamonte lays it down ...
> Hi,
> 
> I get an error while trying to build my own m68k-elf tools from scratch
> using build-m68k-elf. The error happens because the file features.h can't
> find the include file bits/uClibc_config.h.

The build process for uClibc has changed a bit since I released the tools.

Do the following and it should get you by,  add the lines with a '+':

 stage3()
 {
     schk 3 || return 0
 
+    #
+    # fix up the uClibc auto gen files
+    #
+    cd ${UCLIBC}/.
+    sed "s?^[   ]*KERNEL_SOURCE=.*?KERNEL_SOURCE=${KERNEL}?" \
+                        < Config.${_CPU} > Config
+    rm -f ${KERNEL}/include/asm
+    ln -s ${KERNEL}/include/asm-m68knommu ${KERNEL}/include/asm
+    make uClibc_config.h
+    chmod 644 uClibc_config.h
 
     rm -rf /usr/local/${TARGET}/sys-include
     rm -f ${UCLIBC}/include/asm
     cp -r ${UCLIBC}/include /usr/local/${TARGET}/sys-include
     rm -rf /usr/local/${TARGET}/sys-include/asm
     rm -rf /usr/local/${TARGET}/sys-include/bits
     cp -r ${UCLIBC}/sysdeps/linux/m68k/bits \
                     /usr/local/${TARGET}/sys-include/.
+    cp uClibc_config.h /usr/local/${TARGET}/sys-include/bits/.
     rm -rf /usr/local/${TARGET}/sys-include/linux
     cp -r ${KERNEL}/include/linux /usr/local/${TARGET}/sys-include/linux


> I have been looking for the file or any misconfiguration but i think
> everything is correct (obviously there must be something wrong though
> i can't find it...)

With a bit of luck I'll get a new version up soon which fixes a few issues.

Cheers,
Davidm
-- 
David McCullough:  Ph: +61 7 3435 2815  Lineo (The Embedded Solutions Company)
davidm@lineo.com   Fx: +61 7 3891 3630  PO Box 925, Kenmore QLD 4069, Australia
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/

This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:38 EDT