Bump buidlroot version to 2018.02.6
This commit is contained in:
@@ -1,15 +1,24 @@
|
||||
menu "System configuration"
|
||||
|
||||
# Note: usually, it is not possible to select a provider of a virtual
|
||||
# package. But here we have an exception: there are only four providers
|
||||
# and they only get selected by separate entries in this choice and
|
||||
# under different, exclusive conditions. So this is a safe situation.
|
||||
choice
|
||||
prompt "Root FS skeleton"
|
||||
|
||||
config BR2_ROOTFS_SKELETON_DEFAULT
|
||||
bool "default target skeleton"
|
||||
select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_INIT_SYSV
|
||||
select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_INIT_BUSYBOX
|
||||
select BR2_PACKAGE_SKELETON_INIT_SYSTEMD if BR2_INIT_SYSTEMD
|
||||
select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_INIT_NONE
|
||||
help
|
||||
Use default target skeleton
|
||||
|
||||
config BR2_ROOTFS_SKELETON_CUSTOM
|
||||
bool "custom target skeleton"
|
||||
select BR2_PACKAGE_SKELETON_CUSTOM
|
||||
help
|
||||
Use custom target skeleton.
|
||||
|
||||
@@ -127,7 +136,6 @@ config BR2_INIT_SYSTEMD
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
|
||||
select BR2_ROOTFS_MERGED_USR
|
||||
select BR2_PACKAGE_SYSTEMD
|
||||
select BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW if BR2_ROOTFS_SKELETON_DEFAULT
|
||||
|
||||
comment "systemd needs a glibc toolchain, headers >= 3.10"
|
||||
depends on !(BR2_TOOLCHAIN_USES_GLIBC \
|
||||
@@ -218,6 +226,7 @@ config BR2_ROOTFS_MERGED_USR
|
||||
config BR2_TARGET_ENABLE_ROOT_LOGIN
|
||||
bool "Enable root login with password"
|
||||
default y
|
||||
select BR2_PACKAGE_HOST_MKPASSWD if BR2_TARGET_GENERIC_ROOT_PASSWD != ""
|
||||
help
|
||||
Allow root to log in with a password.
|
||||
|
||||
@@ -424,6 +433,25 @@ config BR2_GENERATE_LOCALE
|
||||
specified, UTF-8 is assumed. Examples of locales: en_US,
|
||||
fr_FR.UTF-8.
|
||||
|
||||
config BR2_SYSTEM_ENABLE_NLS
|
||||
bool "Enable Native Language Support (NLS)"
|
||||
depends on BR2_USE_WCHAR
|
||||
# - glibc has built-in NLS support, but anyway doesn't
|
||||
# support static linking
|
||||
# - musl and uclibc support static linking, but they don't
|
||||
# have built-in NLS support, which is provided by the
|
||||
# libintl library from gettext. The fact that it is a
|
||||
# separate library causes too many problems for static
|
||||
# linking.
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_GETTEXT if !BR2_TOOLCHAIN_HAS_FULL_GETTEXT
|
||||
help
|
||||
This option will enable Native Language Support, which will
|
||||
allow software packages to support translations.
|
||||
|
||||
comment "NLS support needs a toolchain w/ wchar, dynamic library"
|
||||
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
|
||||
|
||||
config BR2_TARGET_TZ_INFO
|
||||
bool "Install timezone info"
|
||||
select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_GLIBC
|
||||
@@ -452,15 +480,13 @@ config BR2_TARGET_LOCALTIME
|
||||
help
|
||||
The time zone to install as the default local time, expressed as a
|
||||
tzdata location, such as:
|
||||
Etc/UTC (the default)
|
||||
GMT
|
||||
Europe/Paris
|
||||
America/New_York
|
||||
Pacific/Wallis
|
||||
...
|
||||
|
||||
If empty, no local time will be set, and the dates will be
|
||||
expressed in UTC.
|
||||
|
||||
endif # BR2_TARGET_TZ_INFO
|
||||
|
||||
config BR2_ROOTFS_USERS_TABLES
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
../tmp/log
|
||||
@@ -1,8 +0,0 @@
|
||||
# <file system> <mount pt> <type> <options> <dump> <pass>
|
||||
/dev/root / ext2 rw,noauto 0 1
|
||||
proc /proc proc defaults 0 0
|
||||
devpts /dev/pts devpts defaults,gid=5,mode=620,ptmxmode=0666 0 0
|
||||
tmpfs /dev/shm tmpfs mode=0777 0 0
|
||||
tmpfs /tmp tmpfs mode=1777 0 0
|
||||
tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0
|
||||
sysfs /sys sysfs defaults 0 0
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# In case we have a slow-to-appear interface (e.g. eth-over-USB),
|
||||
# and we need to configure it, wait until it appears, but not too
|
||||
# long either. IF_WAIT_DELAY is in seconds.
|
||||
|
||||
if [ "${IF_WAIT_DELAY}" -a ! -e "/sys/class/net/${IFACE}" ]; then
|
||||
printf "Waiting for interface %s to appear" "${IFACE}"
|
||||
while [ ${IF_WAIT_DELAY} -gt 0 ]; do
|
||||
if [ -e "/sys/class/net/${IFACE}" ]; then
|
||||
printf "\n"
|
||||
exit 0
|
||||
fi
|
||||
sleep 1
|
||||
printf "."
|
||||
: $((IF_WAIT_DELAY -= 1))
|
||||
done
|
||||
printf " timeout!\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -8,7 +8,7 @@ if [ "$PS1" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
export PAGER='/bin/more '
|
||||
export PAGER='/bin/more'
|
||||
export EDITOR='/bin/vi'
|
||||
|
||||
# Source configuration files from /etc/profile.d
|
||||
@@ -16,5 +16,5 @@ for i in /etc/profile.d/*.sh ; do
|
||||
if [ -r "$i" ]; then
|
||||
. $i
|
||||
fi
|
||||
unset i
|
||||
done
|
||||
unset i
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
../tmp
|
||||
@@ -1 +0,0 @@
|
||||
../../tmp
|
||||
@@ -1 +0,0 @@
|
||||
../tmp
|
||||
@@ -1 +0,0 @@
|
||||
../tmp
|
||||
@@ -1 +0,0 @@
|
||||
../run
|
||||
@@ -1 +0,0 @@
|
||||
../tmp
|
||||
@@ -1 +0,0 @@
|
||||
../tmp
|
||||
88
bsp/buildroot/system/system.mk
Normal file
88
bsp/buildroot/system/system.mk
Normal file
@@ -0,0 +1,88 @@
|
||||
################################################################################
|
||||
#
|
||||
# system-related variables and macros
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# This file exists to define variables and macros that pertain to the system
|
||||
# settings, like rsyncing a directory for skeletons, or the /lib vs. /usr/lib
|
||||
# symlink handling.
|
||||
#
|
||||
# Some variables may be used as conditions in Makefile code, so they must be
|
||||
# defined properly before they are used; this file is included early, before
|
||||
# any package is.
|
||||
|
||||
# - SYSTEM_USR_SYMLINKS_OR_DIRS
|
||||
# create /lib, /bin and /sbin, either as directories or as symlinks to
|
||||
# their /usr conterparts
|
||||
#
|
||||
# - SYSTEM_RSYNC
|
||||
# rsync $(1) to $(2), with proper exclusions and rights
|
||||
#
|
||||
# - SYSTEM_LIB_SYMLINK
|
||||
# create the appropriate /lib{32,64} symlinks
|
||||
#
|
||||
# - SYSTEM_GETTY_PORT
|
||||
# - SYSTEM_GETTY_BAUDRATE
|
||||
# - SYSTEM_GETTY_TERM
|
||||
# - SYSTEM_GETTY_OPTIONS
|
||||
# the un-quoted getty setting
|
||||
#
|
||||
# - SYSTEM_REMOUNT_ROOT_INITTAB
|
||||
# set inittab to remount root read-write or read-only
|
||||
#
|
||||
|
||||
# This function handles the merged or non-merged /usr cases
|
||||
ifeq ($(BR2_ROOTFS_MERGED_USR),y)
|
||||
define SYSTEM_USR_SYMLINKS_OR_DIRS
|
||||
ln -snf usr/bin $(1)/bin
|
||||
ln -snf usr/sbin $(1)/sbin
|
||||
ln -snf usr/lib $(1)/lib
|
||||
endef
|
||||
else
|
||||
define SYSTEM_USR_SYMLINKS_OR_DIRS
|
||||
$(INSTALL) -d -m 0755 $(1)/bin
|
||||
$(INSTALL) -d -m 0755 $(1)/sbin
|
||||
$(INSTALL) -d -m 0755 $(1)/lib
|
||||
endef
|
||||
endif
|
||||
|
||||
# This function rsyncs the skeleton directory in $(1) to the destination
|
||||
# in $(2), which should be either $(TARTGET_DIR) or $(STAGING_DIR)
|
||||
define SYSTEM_RSYNC
|
||||
rsync -a --ignore-times $(RSYNC_VCS_EXCLUSIONS) \
|
||||
--chmod=u=rwX,go=rX --exclude .empty --exclude '*~' \
|
||||
$(1)/ $(2)/
|
||||
endef
|
||||
|
||||
# Make a symlink lib32->lib or lib64->lib as appropriate.
|
||||
# MIPS64/n32 requires lib32 even though it's a 64-bit arch.
|
||||
# $(1): base dir (either staging or target)
|
||||
ifeq ($(BR2_ARCH_IS_64)$(BR2_MIPS_NABI32),y)
|
||||
define SYSTEM_LIB_SYMLINK
|
||||
ln -snf lib $(1)/lib64
|
||||
ln -snf lib $(1)/usr/lib64
|
||||
endef
|
||||
else
|
||||
define SYSTEM_LIB_SYMLINK
|
||||
ln -snf lib $(1)/lib32
|
||||
ln -snf lib $(1)/usr/lib32
|
||||
endef
|
||||
endif
|
||||
|
||||
SYSTEM_GETTY_PORT = $(call qstrip,$(BR2_TARGET_GENERIC_GETTY_PORT))
|
||||
SYSTEM_GETTY_BAUDRATE = $(call qstrip,$(BR2_TARGET_GENERIC_GETTY_BAUDRATE))
|
||||
SYSTEM_GETTY_TERM = $(call qstrip,$(BR2_TARGET_GENERIC_GETTY_TERM))
|
||||
SYSTEM_GETTY_OPTIONS = $(call qstrip,$(BR2_TARGET_GENERIC_GETTY_OPTIONS))
|
||||
|
||||
ifeq ($(BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW),y)
|
||||
# Find commented line, if any, and remove leading '#'s
|
||||
define SYSTEM_REMOUNT_ROOT_INITTAB
|
||||
$(SED) '/^#.*-o remount,rw \/$$/s~^#\+~~' $(TARGET_DIR)/etc/inittab
|
||||
endef
|
||||
else
|
||||
# Find uncommented line, if any, and add a leading '#'
|
||||
define SYSTEM_REMOUNT_ROOT_INITTAB
|
||||
$(SED) '/^[^#].*-o remount,rw \/$$/s~^~#~' $(TARGET_DIR)/etc/inittab
|
||||
endef
|
||||
endif
|
||||
Reference in New Issue
Block a user