• 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/syslinux/syslinux.mk
Arnout VandecappelleArnout Vandecappelle committed 3b91bd4791505 Jul 2017
Raw file
Source viewDiff to previous
 
1
################################################################################
2
#
3
# syslinux to make target msdos/iso9660 filesystems bootable
4
#
5
################################################################################
6
​
7
SYSLINUX_VERSION = 6.03
8
SYSLINUX_SOURCE = syslinux-$(SYSLINUX_VERSION).tar.xz
9
SYSLINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/boot/syslinux
10
​
11
SYSLINUX_LICENSE = GPL-2.0+
12
SYSLINUX_LICENSE_FILES = COPYING
13
​
14
SYSLINUX_INSTALL_IMAGES = YES
15
​
16
# host-util-linux needed to provide libuuid when building host tools
17
SYSLINUX_DEPENDENCIES = host-nasm host-upx util-linux host-util-linux
18
​
19
ifeq ($(BR2_TARGET_SYSLINUX_LEGACY_BIOS),y)
20
SYSLINUX_TARGET += bios
21
endif
22
​
23
# The syslinux build system must be forced to use Buildroot's gnu-efi
24
# package by setting EFIINC, LIBDIR and LIBEFI. Otherwise, it uses its
25
# own copy of gnu-efi included in syslinux's sources since 6.03
26
# release.
27
ifeq ($(BR2_TARGET_SYSLINUX_EFI),y)
28
ifeq ($(BR2_ARCH_IS_64),y)
29
SYSLINUX_EFI_BITS = efi64
30
else
31
SYSLINUX_EFI_BITS = efi32
32
endif # 64-bit
33
SYSLINUX_DEPENDENCIES += gnu-efi
34
SYSLINUX_TARGET += $(SYSLINUX_EFI_BITS)
35
SYSLINUX_EFI_ARGS = \
36
    EFIINC=$(STAGING_DIR)/usr/include/efi \
37
    LIBDIR=$(STAGING_DIR)/usr/lib \
38
    LIBEFI=$(STAGING_DIR)/usr/lib/libefi.a
39
endif # EFI
40
​
41
# The syslinux tarball comes with pre-compiled binaries.
42
# Since timestamps might not be in the correct order, a rebuild is
43
# not always triggered for all the different images.
44
# Cleanup the mess even before we attempt a build, so we indeed
45
# build everything from source.
46
define SYSLINUX_CLEANUP
47
    rm -rf $(@D)/bios $(@D)/efi32 $(@D)/efi64
48
endef
49
SYSLINUX_POST_PATCH_HOOKS += SYSLINUX_CLEANUP
50
​
51
# syslinux build system has no convenient way to pass CFLAGS,
52
# and the internal zlib should take precedence so -I shouldn't
53
# be used.
54
define SYSLINUX_BUILD_CMDS
55
    $(TARGET_MAKE_ENV) $(MAKE1) \
56
        CC="$(TARGET_CC)" \
57
        LD="$(TARGET_LD)" \
58
        NASM="$(HOST_DIR)/bin/nasm" \
59
        CC_FOR_BUILD="$(HOSTCC)" \
60
        CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \
61
        LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \
62
            $(SYSLINUX_EFI_ARGS) -C $(@D) $(SYSLINUX_TARGET)
63
endef
  • 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.