Handle grub-pe2elf and grub-mkfont for cases when build != host.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 22 Aug 2013 15:00:59 +0000 (17:00 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 22 Aug 2013 15:00:59 +0000 (17:00 +0200)
commit7b780018f5bc2758f916e6b4e0a895b7c27c2262
tree728e1c118b45cc4b517349bdd6f99eb9663d9331
parent984cfd8a793da4a20d4a84d9923f83ae320da7b1
Handle grub-pe2elf and grub-mkfont for cases when build != host.

* Makefile.am (build-grub-mkfont): Don't include gnulib.
(build-grub-gen-asciih): Likewise.
(build-grub-gen-widthspec): Likewise.
* Makefile.util.def (grub-pe2elf): Remove.
* config.h.in [GRUB_BUILD]: Use build rather than host constants.
* configure.ac: Separate tests for build.
Move ./build-grub-pe2elf to grub-core.
Fix typo.
* grub-core/Makefile.am (build-grub-pe2elf): New target.
* grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
defined.
* include/grub/types.h [GRUB_BUILD]: Use build rather than host
constants.
* util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
* util/grub-pe2elf.c: Simplify not to rely on getopt.
* util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
ChangeLog
Makefile.am
Makefile.util.def
config.h.in
configure.ac
grub-core/Makefile.am
grub-core/kern/emu/misc.c
include/grub/types.h
util/grub-mkfont.c
util/grub-pe2elf.c
util/misc.c