Created attachment 979 [details] Fix external toolchain build error for grub and migrate grub to the autotools macro When building grub with an external toolchain I get the following failure. make[1]: Entering directory `/home/clark/src/br-upstream/output/build/grub-0.97/grub' /opt/x-tools/i686-nptl-linux-gnu/bin/i686-nptl-linux-gnu-gcc -static -o grub main.o asmstub.o ../stage2/libgrub.a ../lib/libcommon.a -lncurses /opt/x-tools/i686-nptl-linux-gnu/lib/gcc/i686-nptl-linux-gnu/4.3.2/../../../../i686-nptl-linux-gnu/bin/ld: cannot find -lncurses collect2: ld returned 1 exit status make[1]: *** [grub] Error 1 make[1]: Leaving directory `/home/clark/src/br-upstream/output/build/grub-0.97/grub' make: *** [/home/clark/src/br-upstream/output/build/grub-0.97/grub/grub] Error 2
The grub.mk file has been completely rewritten during the bootloaders-cleanup work, and here Grub compiles properly with an external toolchain.