• 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/fs/iso9660/iso9660.mk
Ricardo MartincoskiRicardo Martincoski committed 65e3743945001 Apr 2018
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# Build the iso96600 root filesystem image
4
#
5
################################################################################
6
​
7
#
8
# We need to handle three cases:
9
#
10
#  1. The ISO9660 filesystem will really be the real root filesystem
11
#     itself. This is when BR2_TARGET_ROOTFS_ISO9660_INITRD is
12
#     disabled.
13
#
14
#  2. The ISO9660 filesystem will be a filesystem with just a kernel
15
#     image, initrd and grub. This is when
16
#     BR2_TARGET_ROOTFS_ISO9660_INITRD is enabled, but
17
#     BR2_TARGET_ROOTFS_INITRAMFS is disabled.
18
#
19
#  3. The ISO9660 filesystem will be a filesystem with just a kernel
20
#     image and grub. This is like (2), except that the initrd is
21
#     built into the kernel image. This is when
22
#     BR2_TARGET_ROOTFS_INITRAMFS is enabled (regardless of the value
23
#     of BR2_TARGET_ROOTFS_ISO9660_INITRD).
24
​
25
ROOTFS_ISO9660_BOOT_MENU = $(call qstrip,$(BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU))
26
​
27
ROOTFS_ISO9660_DEPENDENCIES = host-cdrkit linux
28
​
29
ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
30
ROOTFS_ISO9660_USE_INITRD = YES
31
endif
32
​
33
ifeq ($(BR2_TARGET_ROOTFS_ISO9660_INITRD),y)
34
ROOTFS_ISO9660_USE_INITRD = YES
35
endif
36
​
37
ifeq ($(ROOTFS_ISO9660_USE_INITRD),YES)
38
ROOTFS_ISO9660_TMP_TARGET_DIR = $(FS_DIR)/rootfs.iso9660.tmp
39
define ROOTFS_ISO9660_CREATE_TEMPDIR
40
    $(RM) -rf $(ROOTFS_ISO9660_TMP_TARGET_DIR)
41
    mkdir -p $(ROOTFS_ISO9660_TMP_TARGET_DIR)
42
endef
43
ROOTFS_ISO9660_PRE_GEN_HOOKS += ROOTFS_ISO9660_CREATE_TEMPDIR
44
else ifeq ($(BR2_TARGET_ROOTFS_ISO9660_TRANSPARENT_COMPRESSION),y)
45
ROOTFS_ISO9660_DEPENDENCIES += host-zisofs-tools
46
ROOTFS_ISO9660_TMP_TARGET_DIR = $(FS_DIR)/rootfs.iso9660.tmp
47
# This must be early, before we copy the bootloader files.
48
define ROOTFS_ISO9660_MKZFTREE
49
    $(RM) -rf $(ROOTFS_ISO9660_TMP_TARGET_DIR)
50
    $(HOST_DIR)/bin/mkzftree -X -z 9 -p $(PARALLEL_JOBS) \
51
        $(TARGET_DIR) \
52
        $(ROOTFS_ISO9660_TMP_TARGET_DIR)
53
endef
54
ROOTFS_ISO9660_PRE_GEN_HOOKS += ROOTFS_ISO9660_MKZFTREE
55
ROOTFS_ISO9660_GENISOIMAGE_OPTS += -z
56
else
57
ROOTFS_ISO9660_TMP_TARGET_DIR = $(TARGET_DIR)
58
endif
59
​
60
ifeq ($(BR2_TARGET_ROOTFS_ISO9660_GRUB2),y)
61
ROOTFS_ISO9660_DEPENDENCIES += grub2
62
ROOTFS_ISO9660_BOOTLOADER_CONFIG_PATH = \
63
    $(ROOTFS_ISO9660_TMP_TARGET_DIR)/boot/grub/grub.cfg
64
ROOTFS_ISO9660_BOOT_IMAGE = boot/grub/grub-eltorito.img
65
define ROOTFS_ISO9660_INSTALL_BOOTLOADER
66
    $(INSTALL) -D -m 0644 $(BINARIES_DIR)/grub-eltorito.img \
67
        $(ROOTFS_ISO9660_TMP_TARGET_DIR)/boot/grub/grub-eltorito.img
68
endef
69
else ifeq ($(BR2_TARGET_ROOTFS_ISO9660_ISOLINUX),y)
70
ROOTFS_ISO9660_DEPENDENCIES += syslinux
71
ROOTFS_ISO9660_BOOTLOADER_CONFIG_PATH = \
72
    $(ROOTFS_ISO9660_TMP_TARGET_DIR)/isolinux/isolinux.cfg
73
ROOTFS_ISO9660_BOOT_IMAGE = isolinux/isolinux.bin
74
define ROOTFS_ISO9660_INSTALL_BOOTLOADER
75
    $(INSTALL) -D -m 0644 $(BINARIES_DIR)/syslinux/* \
76
        $(ROOTFS_ISO9660_TMP_TARGET_DIR)/isolinux/
77
    $(INSTALL) -D -m 0644 $(HOST_DIR)/share/syslinux/ldlinux.c32 \
78
        $(ROOTFS_ISO9660_TMP_TARGET_DIR)/isolinux/ldlinux.c32
79
endef
80
endif
81
​
82
define ROOTFS_ISO9660_PREPARATION
83
    $(INSTALL) -D -m 0644 $(ROOTFS_ISO9660_BOOT_MENU) \
84
        $(ROOTFS_ISO9660_BOOTLOADER_CONFIG_PATH)
85
    $(SED) "s%__KERNEL_PATH__%/boot/$(LINUX_IMAGE_NAME)%" \
86
        $(ROOTFS_ISO9660_BOOTLOADER_CONFIG_PATH)
87
    $(ROOTFS_ISO9660_INSTALL_BOOTLOADER)
88
endef
89
​
90
ROOTFS_ISO9660_PRE_GEN_HOOKS += ROOTFS_ISO9660_PREPARATION
91
​
92
define ROOTFS_ISO9660_DISABLE_EXTERNAL_INITRD
  • 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.