mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 01:29:27 +00:00
arm: make linux.h safe to include for non-native builds
<grub/machine/loader.h> (for machine arm/efi) and <grub/machine/kernel.h> (for machine arm/coreboot) will not always resolve (and will likely not be valid to) if pulled in when building non-native commands, such as host tools or the "file" command. So explicitly include them with their expanded pathnames. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
cda0332986
commit
a244d9ebc7
1 file changed
+2
-2
@@ -43,7 +43,7 @@ struct linux_arm_kernel_header {
|
|||||||
# define grub_arm_firmware_get_machine_type grub_uboot_get_machine_type
|
# define grub_arm_firmware_get_machine_type grub_uboot_get_machine_type
|
||||||
#elif defined GRUB_MACHINE_EFI
|
#elif defined GRUB_MACHINE_EFI
|
||||||
# include <grub/efi/efi.h>
|
# include <grub/efi/efi.h>
|
||||||
# include <grub/machine/loader.h>
|
# include <grub/arm/efi/loader.h>
|
||||||
/* On UEFI platforms - load the images at the lowest available address not
|
/* On UEFI platforms - load the images at the lowest available address not
|
||||||
less than *_PHYS_OFFSET from the first available memory location. */
|
less than *_PHYS_OFFSET from the first available memory location. */
|
||||||
# define LINUX_PHYS_OFFSET (0x00008000)
|
# define LINUX_PHYS_OFFSET (0x00008000)
|
||||||
@@ -57,7 +57,7 @@ grub_arm_firmware_get_machine_type (void)
|
|||||||
}
|
}
|
||||||
#elif defined (GRUB_MACHINE_COREBOOT)
|
#elif defined (GRUB_MACHINE_COREBOOT)
|
||||||
#include <grub/fdtbus.h>
|
#include <grub/fdtbus.h>
|
||||||
#include <grub/machine/kernel.h>
|
#include <grub/arm/coreboot/kernel.h>
|
||||||
# define LINUX_ADDRESS (start_of_ram + 0x8000)
|
# define LINUX_ADDRESS (start_of_ram + 0x8000)
|
||||||
# define LINUX_INITRD_ADDRESS (start_of_ram + 0x02000000)
|
# define LINUX_INITRD_ADDRESS (start_of_ram + 0x02000000)
|
||||||
# define LINUX_FDT_ADDRESS (LINUX_INITRD_ADDRESS - 0x10000)
|
# define LINUX_FDT_ADDRESS (LINUX_INITRD_ADDRESS - 0x10000)
|
||||||
|
|||||||
Reference in new issue
Block a user