[LinuxBIOS] LinuxBIOS and FreeBSD

Philip Schulz phs at deadc0.de
Mon Nov 5 22:25:29 CET 2007


Hi,

On 10/25/07 18:54, Uwe Hermann wrote:
> On Thu, Oct 25, 2007 at 04:44:28PM +0200, Philip Schulz wrote:

[...]

>> Unfortunately, I have no idea how to detect FreeBSD from a Makefile or a 
>> Python script. But maybe someone on this list knows and wants enhance 
>> the patches so they can be included in the LinuxBIOS tree.
> 

[...]

> 
> Most of your patch is just make -> gmake, so it should be easy to use
> $(MAKE) everywhere and set that to "gmake" on FreeBSD and "make"
> everywhere else.
> 

It seems that on FreeBSD, ${MAKE} is set to the name of the binary you 
invoke (gnumake is a hard-link to gmake in this example):

[phs at thinkpad ~]$ cat Makefile
all:
        echo ${MAKE}

[phs at thinkpad ~]$ make
echo make
make
[phs at thinkpad ~]$ gmake
echo gmake
gmake
[phs at thinkpad ~]$ gnumake
echo gnumake
gnumake

Anyways, attached is an updated version of the initial patch. It hopefully 
doesn't brake builds on Linux and makes LinuxBIOS (and ADLO) compile on 
FreeBSD. Also, this uses "domainname" instead of "dnsdomainname" on FreeBSD.

Signed-off-by: Philip Schulz <phs at deadc0.de>

I hope this is the correct way to post a patch.

Regards,

  Philip



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: LinuxBIOS_ADLO_FreeBSD.diff
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20071105/923a1f3f/attachment.ksh>


More information about the coreboot mailing list