• 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/ubi/ubi.mk
Ricardo MartincoskiRicardo Martincoski committed 8f2b06f455f01 Apr 2018
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# Embed the ubifs image into an ubi image
4
#
5
################################################################################
6
​
7
UBI_UBINIZE_OPTS := -m $(BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE)
8
UBI_UBINIZE_OPTS += -p $(BR2_TARGET_ROOTFS_UBI_PEBSIZE)
9
ifneq ($(BR2_TARGET_ROOTFS_UBI_SUBSIZE),0)
10
UBI_UBINIZE_OPTS += -s $(BR2_TARGET_ROOTFS_UBI_SUBSIZE)
11
endif
12
​
13
UBI_UBINIZE_OPTS += $(call qstrip,$(BR2_TARGET_ROOTFS_UBI_OPTS))
14
​
15
ROOTFS_UBI_DEPENDENCIES = rootfs-ubifs
16
​
17
ifeq ($(BR2_TARGET_ROOTFS_UBI_USE_CUSTOM_CONFIG),y)
18
UBI_UBINIZE_CONFIG_FILE_PATH = $(call qstrip,$(BR2_TARGET_ROOTFS_UBI_CUSTOM_CONFIG_FILE))
19
else
20
UBI_UBINIZE_CONFIG_FILE_PATH = fs/ubi/ubinize.cfg
21
endif
22
​
23
# don't use sed -i as it misbehaves on systems with SELinux enabled when this is
24
# executed through fakeroot (see #9386)
25
define ROOTFS_UBI_CMD
26
    sed 's;BR2_ROOTFS_UBIFS_PATH;$@fs;' \
27
        $(UBI_UBINIZE_CONFIG_FILE_PATH) > $(BUILD_DIR)/ubinize.cfg
28
    $(HOST_DIR)/sbin/ubinize -o $@ $(UBI_UBINIZE_OPTS) $(BUILD_DIR)/ubinize.cfg
29
    rm $(BUILD_DIR)/ubinize.cfg
30
endef
31
​
32
$(eval $(rootfs))
  • 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.