• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/boot/grub2/grub2.mk
Thomas PetazzoniThomas Petazzoni committed c24fdb3680019 Feb 2014
Raw file
Source viewDiff to previous
 
1
################################################################################
2
#
3
# grub2
4
#
5
################################################################################
6
​
7
GRUB2_VERSION = 2.00
8
GRUB2_SITE = $(BR2_GNU_MIRROR)/grub/
9
GRUB2_SOURCE = grub-$(GRUB2_VERSION).tar.xz
10
GRUB2_LICENSE = GPLv3+
11
GRUB2_LICENSE_FILES = COPYING
12
GRUB2_DEPENDENCIES = host-bison host-flex
13
​
14
ifeq ($(BR2_TARGET_GRUB2_I386_PC),y)
15
GRUB2_IMAGE = $(BINARIES_DIR)/grub.img
16
GRUB2_CFG = $(TARGET_DIR)/boot/grub/grub.cfg
17
GRUB2_TUPLE = i386-pc
18
GRUB2_TARGET = i386
19
GRUB2_PLATFORM = pc
20
else ifeq ($(BR2_TARGET_GRUB2_I386_EFI),y)
21
GRUB2_IMAGE = $(BINARIES_DIR)/efi-part/EFI/BOOT/bootia32.efi
22
GRUB2_CFG = $(BINARIES_DIR)/efi-part/EFI/BOOT/grub.cfg
23
GRUB2_PREFIX = /EFI/BOOT
24
GRUB2_TUPLE = i386-efi
25
GRUB2_TARGET = i386
26
GRUB2_PLATFORM = efi
27
else ifeq ($(BR2_TARGET_GRUB2_X86_64_EFI),y)
28
GRUB2_IMAGE = $(BINARIES_DIR)/efi-part/EFI/BOOT/bootx64.efi
29
GRUB2_CFG = $(BINARIES_DIR)/efi-part/EFI/BOOT/grub.cfg
30
GRUB2_PREFIX = /EFI/BOOT
31
GRUB2_TUPLE = x86_64-efi
32
GRUB2_TARGET = x86_64
33
GRUB2_PLATFORM = efi
34
endif
35
​
36
GRUB2_BUILTIN_MODULES = $(call qstrip,$(BR2_TARGET_GRUB2_BUILTIN_MODULES))
37
​
38
# Grub2 is kind of special: it considers CC, LD and so on to be the
39
# tools to build the native tools (i.e to be executed on the build
40
# machine), and uses TARGET_CC, TARGET_CFLAGS, TARGET_CPPFLAGS to
41
# build the bootloader itself.
42
​
43
GRUB2_CONF_ENV = \
44
    $(HOST_CONFIGURE_OPTS) \
45
    CPP="$(HOSTCC) -E" \
46
    TARGET_CC="$(TARGET_CC)" \
47
    TARGET_CFLAGS="$(TARGET_CFLAGS)" \
48
    TARGET_CPPFLAGS="$(TARGET_CPPFLAGS)"
49
​
50
GRUB2_CONF_OPT = \
51
    --target=$(GRUB2_TARGET) \
52
    --with-platform=$(GRUB2_PLATFORM) \
53
    --disable-grub-mkfont \
54
    --enable-efiemu=no \
55
    --enable-liblzma=no \
56
    --enable-device-mapper=no \
57
    --enable-libzfs=no \
58
    --disable-werror
59
​
60
# We don't want all the native tools and Grub2 modules to be installed
61
# in the target. So we in fact install everything into the host
62
# directory, and the image generation process (below) will use the
63
# grub-mkimage tool and Grub2 modules from the host directory.
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.