Discussion:
Are we supposed to be able to build the loader standalone?
Adrian Chadd
2016-06-13 05:04:55 UTC
Permalink
hi,

I thought we could build the loader standalone by just "cd sys/boot ;
make". That doesn't seem to work any longer.

Any ideas?



-adrian
Emmanuel Vadot
2016-06-13 05:13:57 UTC
Permalink
I do this to build the loader standalone :

buildenv=`make -C $SRCROOT buildenvvars`
eval $buildenv make -C $SRCROOT/sys/boot -m $MAKESYSPATH obj
eval $buildenv make -C $SRCROOT/sys/boot -m $MAKESYSPATH clean
eval $buildenv make -C $SRCROOT/sys/boot -m $MAKESYSPATH depend
eval $buildenv make -C $SRCROOT/sys/boot -m $MAKESYSPATH all

On Sun, 12 Jun 2016 22:04:55 -0700
Post by Adrian Chadd
hi,
I thought we could build the loader standalone by just "cd sys/boot ;
make". That doesn't seem to work any longer.
Any ideas?
-adrian
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-arch
--
Emmanuel Vadot
Ngie Cooper
2016-06-13 09:52:38 UTC
Permalink
Post by Adrian Chadd
hi,
I thought we could build the loader standalone by just "cd sys/boot ;
make". That doesn't seem to work any longer.
Any ideas?
You need to do:

(set -e; cd sys/boot; make clean; make obj; make depend; make all)

The issue is that some of the dependencies aren't completely articulated (esp the .a files), so if they were created incorrectly, it will cause you grief :(..

What issues are you running into, what revision are you running, and why wasn't this email sent to current@?

Thanks,
-Ngie
Adrian Chadd
2016-06-13 16:37:00 UTC
Permalink
Post by Ngie Cooper
Post by Adrian Chadd
hi,
I thought we could build the loader standalone by just "cd sys/boot ;
make". That doesn't seem to work any longer.
Any ideas?
(set -e; cd sys/boot; make clean; make obj; make depend; make all)
The issue is that some of the dependencies aren't completely articulated (esp the .a files), so if they were created incorrectly, it will cause you grief :(..
because it's late and we have n+5 too many mailing lists to choose from.

Building zfsloader fails, I'm guessing because the machine/ symlink
isn't created like it is for loader. Just try "cd sys/boot; make" with
an empty src.conf / make.conf and in a clean checkout.


-adrian
Post by Ngie Cooper
Thanks,
-Ngie
Loading...