tag:blogger.com,1999:blog-32797070.post115757109879869528..comments2024-03-03T10:06:40.354-07:00Comments on Warner's Random Hacking Blog: Cross Building FreeBSDWarner Loshhttp://www.blogger.com/profile/11922167595789336900noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-32797070.post-84586089969986125172023-03-16T20:29:16.103-06:002023-03-16T20:29:16.103-06:00This infrastructure has been super helpful in my w...This infrastructure has been super helpful in my work as I can build kernels and world on my fast multicore machine. What's not so clear is if/how I can cross compile kernel modules out of the tree. I'm working on a device driver and being able to cross compile it as a kld in an out of tree location would be great. So far I'm using make buildenv and then changing to my kld directory and doing the make. Light years faster than building that way on my embedded board. Is there a better way?<br />ChristopherAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-32797070.post-4015087266485655542011-08-11T00:41:00.828-06:002011-08-11T00:41:00.828-06:00Hi, I got an errors as below:
"Makefile"...Hi, I got an errors as below:<br />"Makefile", line 214: Need an operator<br />Unknown modifier ' '<br />"Makefile", line 242: Missing dependency operator<br />Error expanding embedded variable.<br /><br /><br />What I am trying to do is, I have a driver code with Makefile which compiles using gmake. Now I want to port the same on FreeBSD. When I try to compile using make command, I got above errors.<br /><br />Please help,<br />DigambarDigambar Sawanthttps://www.blogger.com/profile/04907729061144553808noreply@blogger.comtag:blogger.com,1999:blog-32797070.post-49224072139790692902008-06-18T10:28:00.000-06:002008-06-18T10:28:00.000-06:00There's been reports of cross building amd64 on i3...There's been reports of cross building amd64 on i386 was failing with this error message. People are working on it.Warner Loshhttps://www.blogger.com/profile/11922167595789336900noreply@blogger.comtag:blogger.com,1999:blog-32797070.post-43435069364226148042008-06-17T14:58:00.000-06:002008-06-17T14:58:00.000-06:00Doesn't work. I got the same error as he did. Inst...Doesn't work. I got the same error as he did. Installworld failed with "unsupported file layout".Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32797070.post-17910954030266966512007-10-08T01:12:00.000-06:002007-10-08T01:12:00.000-06:00Add DESTDIR=/ to your installworld line.Add DESTDIR=/ to your installworld line.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32797070.post-1168351983526881152007-01-09T07:13:00.000-07:002007-01-09T07:13:00.000-07:00Good explanation, thank you! I've got a question, ...Good explanation, thank you! I've got a question, however. Suppose I'm running FreeBSD-i386 on AMD Athlon 64 machine and I want to get the native, FreeBSD-amd64 running. Is this supposed to work?<B><BR/># cd /usr/src<BR/># make TARGET_ARCH=amd64 buildworld<BR/># make TARGET_ARCH=amd64 buildkernel<BR/># make TARGET_ARCH=amd64 installkernel<BR/># make TARGET_ARCH=amd64 installworld<BR/></B><BR/>I have tried this once and installworld failed with "unsupported file layout" after which the system became unusable.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32797070.post-1168351739191849692007-01-09T07:08:00.000-07:002007-01-09T07:08:00.000-07:00Good explanation, thank you! I've got a question, ...Good explanation, thank you! I've got a question, however. Suppose I'm running FreeBSD-i386 on AMD Athlon 64 machine and I want to get the native, FreeBSD-amd64 running. Is this supposed to work?<B><BR/># cd /usr/src<BR/># make TARGET_ARCH=amd64 buildworld<BR/># make TARGET_ARCH=amd64 buildkernel<BR/># make TARGET_ARCH=amd64 installkernel<BR/># make TARGET_ARCH=amd64 installworld<BR/></B><BR/>I have tried this once and installworld failed with "unsupported file layout" after which the system became unusable.Anonymousnoreply@blogger.com