Additional response to this older thread, now that few things changed.
> CC=gcc-4 ./configure --with-platform=emu --enable-grub-emu-usb
> --enable-grub-emu-sdl
> 
--enable-grub-emu-usb doesn't work. It's not important enough to fix it
given large amount of work it needs and not so useless as to remove it
alltogether.
> and the make command :
> 
> make -j 1 -k
> 
> -j 1 is to avoid fork failures.
> 
> what's wrong is :
> 
> cat syminfo.lst | sort | awk -f ./genmoddep.awk > moddep.lst || (rm -f
> moddep.lst; exit 1)
> __imp__CloseHandle@4 in emunet is not defined
> __imp__CreateEventA@16 in emunet is not defined
> __imp__CreateFileA@28 in emunet is not defined
> __imp__DeviceIoControl@32 in emunet is not defined
> __imp__GetLastError@0 in emunet is not defined
> __imp__GetOverlappedResult@16 in emunet is not defined
> __imp__ReadFile@20 in emunet is not defined
> __imp__RegCloseKey@4 in emunet is not defined
> __imp__RegEnumKeyExA@32 in emunet is not defined
> __imp__RegOpenKeyExA@20 in emunet is not defined
> __imp__RegQueryValueExA@24 in emunet is not defined
> __imp__ResetEvent@4 in emunet is not defined
> __imp__WaitForSingleObject@8 in emunet is not defined
> __imp__WriteFile@20 in emunet is not defined
> _cygwin_attach_handle_to_fd in emunet is not defined
> _get_osfhandle in emunet is not defined
> Makefile:81312: recipe for target `moddep.lst' failed
> 
I moved now this part to grub-devel/osdep/*/emunet.c. There is no
problem to access host functions anymore. Now it should be as easy
implementing grub-devel/osdep/windows/emunet.c and registering it in
grub-devel/osdep/emunet.c.
However some of the code you copied isn't license-compatible (namely it
states GPLv2-only), other files lack copyright headers altogether.
Copying files from external projects for secondary objectives isn't well
accepted in GNU projects under best of times. In case of copyright
problem like here it's a no-go in any project.
You can try clear-up the copyright situation by e.g. asking authors to
relicense tap-win32.h or rewriting it. However it still doesn't feel
important enough to grant an exception to guideline regarding regarding
external code.
How difficult is it to use the kernel driver without copying any code?

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to