AW: Building rtems-libbsd for pc686

Jan.Sommer at dlr.de Jan.Sommer at dlr.de
Tue Dec 17 09:35:10 UTC 2019



> -----Ursprüngliche Nachricht-----
> Von: Joel Sherrill [mailto:joel at rtems.org]
> Gesendet: Montag, 16. Dezember 2019 15:33
> An: Sommer, Jan
> Cc: rtems-users at rtems.org
> Betreff: Re: Building rtems-libbsd for pc686
> 
> 
> 
> On Mon, Dec 16, 2019 at 7:37 AM <Jan.Sommer at dlr.de> wrote:
> 
> 
> 	Hello,
> 
> 	I tried to build the branch 5-freebsd-12 for the pc686 BSP of the current
> RTEMS master.
> 	The compilation stops at:
> 
> 	[  64/1156] Compiling freebsd/sbin/sysctl/sysctl.c
> 	../../freebsd/sbin/sysctl/sysctl.c:72:10: fatal error: machine/pc/bios.h:
> No such file or directory
> 	 #include <machine/pc/bios.h>
> 	          ^~~~~~~~~~~~~~~~~~~
> 	compilation terminated.
> 
> 	Waf: Leaving directory `/home/somm_ja/workspace/refex/rtems-
> libbsd/build/i386-rtems5-pc686-minimal'
> 	Build failed
> 	 -> task in 'objs02' failed with exit status 1 (run with -v to display more
> information)
> 
> 	I tried to build the default and minimal buildset with the same results.
> 	The missing bios.h is available in the full freebsd sources.
> 
> 	Do I need to use the freebsd-to-rtems.py script to integrate the missing
> header into the freebsd directory or do I need to do something different?
> 
> 
> 
> The code worked on the pc at one point.
> 
> What is it getting from bios.h?
> 
> My first cut at it would be to import that file. Long term, we would probably
> be better off if the PC BSP used more infrastructure from FreeBSD. The current
> BSP
> is marginally supporting non-legacy PCs.
> 

With some local changes I got rtems-libbsd to compile again, but only without the E1000 driver.
If the driver is included I get linker errors because it depends on iflib_* functions. 
If I understand libbsd.py correctly then iflib.h is included in the build, but iflib.c is not.
I don't really get how other BSPs get around this dependency. Or don't they use E1000 at all?

 

> --joel
> 
> 
> 
> 
> 
> 	Best regards,
> 
> 	   Jan
> 
> 	Deutsches Zentrum für Luft- und Raumfahrt e. V. (DLR)
> 	German Aerospace Center
> 	Simulation and Software Technology | Software for Space Systems and
> Interactive Visualization | Lilienthalplatz 7 | 38108 Braunschweig | Germany
> 
> 	Jan Sommer
> 	Telephone +49 531 295-2494 | Telefax 0531 295-2767 |
> jan.sommer at dlr.de
> 	DLR.de/SC
> 
> 	_______________________________________________
> 	users mailing list
> 	users at rtems.org
> 	http://lists.rtems.org/mailman/listinfo/users
> 



More information about the users mailing list