update buildroot to 2017.02.11

This commit is contained in:
jbnadal
2018-05-22 15:35:47 +02:00
parent 4bf1f5e091
commit a3c10bd762
9257 changed files with 433426 additions and 1701 deletions

View File

@@ -0,0 +1,15 @@
comment "targetcli-fb depends on Python"
depends on !BR2_PACKAGE_PYTHON && !BR2_PACKAGE_PYTHON3
config BR2_PACKAGE_TARGETCLI_FB
bool "targetcli-fb"
depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
select BR2_PACKAGE_PYTHON_CONFIGSHELL_FB
select BR2_PACKAGE_PYTHON_RTSLIB_FB
select BR2_PACKAGE_PYTHON_SIX
help
targetcli-fb is a command-line interface for configuring the
LIO generic SCSI target, present in 3.x Linux kernel
versions.
https://github.com/open-iscsi/targetcli-fb

View File

@@ -0,0 +1,46 @@
#!/bin/sh
#
# Restore / clear the Linux "SCSI target" driver configuration with `targetctl`
#
start() {
local ret
printf "Restoring target configuration: "
/usr/bin/targetctl restore >/dev/null 2>&1
ret=$?
echo "done"
return $ret
}
stop() {
local ret
printf "Clearing target configuration: "
/usr/bin/targetctl clear >/dev/null 2>&1
ret=$?
echo "done"
return $ret
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Restore LIO kernel target configuration
Requires=sys-kernel-config.mount
After=sys-kernel-config.mount network.target local-fs.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/targetctl restore
ExecStop=/usr/bin/targetctl clear
SyslogIdentifier=target
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,2 @@
# locally computed
sha256 0f32ab6f3ecd234280d55be5e89ce2b3a02f9c82c8dccaae66e26464cff8901a targetcli-fb-v2.1.fb41.tar.gz

View File

@@ -0,0 +1,34 @@
################################################################################
#
# targetcli-fb
#
################################################################################
# When upgrading the version, be sure to also upgrade python-rtslib-fb
# and python-configshell-fb at the same time.
TARGETCLI_FB_VERSION = v2.1.fb41
TARGETCLI_FB_SITE = $(call github,open-iscsi,targetcli-fb,$(TARGETCLI_FB_VERSION))
TARGETCLI_FB_LICENSE = Apache-2.0
TARGETCLI_FB_LICENSE_FILES = COPYING
TARGETCLI_FB_SETUP_TYPE = setuptools
TARGETCLI_FB_DEPENDENCIES = python-configshell-fb python-rtslib-fb python-six
define TARGETCLI_FB_INSTALL_INIT_SYSV
$(INSTALL) -m 0755 -D package/targetcli-fb/S50target \
$(TARGET_DIR)/etc/init.d/S50target
endef
define TARGETCLI_FB_INSTALL_INIT_SYSTEMD
$(INSTALL) -m 0644 -D package/targetcli-fb/target.service \
$(TARGET_DIR)/usr/lib/systemd/system/target.service
endef
# Targetcli stores its configuration in /etc/target/saveconfig.json
# and complains if the /etc/target/ directory does not exist.
define TARGETCLI_FB_INSTALL_CONF_DIR
$(INSTALL) -m 0755 -d $(TARGET_DIR)/etc/target
endef
TARGETCLI_FB_POST_INSTALL_TARGET_HOOKS += TARGETCLI_FB_INSTALL_CONF_DIR
$(eval $(python-package))