meta-digi-dey: remove sares-image bbclass
This was used just for SARES testing and according to the SA team it is not needed anymore, so just remove it. Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
fec876dfb9
commit
ee1bf7d441
|
|
@ -1,46 +0,0 @@
|
|||
#
|
||||
# Helper class for automated testing in SARES
|
||||
#
|
||||
# Copyright (C) 2015 Digi International.
|
||||
#
|
||||
# To enable, use INHERIT in local.conf:
|
||||
#
|
||||
# INHERIT += "sares-image"
|
||||
#
|
||||
|
||||
IMAGE_FEATURES += "dey-debug dey-examples"
|
||||
|
||||
sares() {
|
||||
##################################################################
|
||||
## WARNING: enable passwordless 'root' autologin in serial console
|
||||
## and telnetd for testing purposes
|
||||
##################################################################
|
||||
if [ -f "${IMAGE_ROOTFS}/etc/inittab" ]; then
|
||||
cat >${IMAGE_ROOTFS}/sbin/rootlogin <<-_EOF_
|
||||
#!/bin/sh
|
||||
exec /bin/login -f root
|
||||
_EOF_
|
||||
chmod u+x ${IMAGE_ROOTFS}/sbin/rootlogin
|
||||
|
||||
# The 'echo' trick is needed because the SERIAL_CONSOLES variable
|
||||
# is expanded by bitbake and contains a semicolon ';'
|
||||
for i in $(echo "${SERIAL_CONSOLES}"); do
|
||||
label="$(echo $i | sed -e 's,.*tty\(.*\),\1,g')"
|
||||
sed -i -e "
|
||||
/^$label:.*getty/{
|
||||
i\## WARNING: passwordless 'root' autologin enabled
|
||||
s,getty,getty -n -l /sbin/rootlogin,g
|
||||
}" ${IMAGE_ROOTFS}/etc/inittab
|
||||
done
|
||||
|
||||
# Install a telnetd daemon if there isn't one
|
||||
if ! grep -qs telnetd ${IMAGE_ROOTFS}/etc/inittab; then
|
||||
cat >>${IMAGE_ROOTFS}/etc/inittab <<-_EOF_
|
||||
## WARNING: passwordless 'root' telnet daemon
|
||||
~~::sysinit:/usr/sbin/telnetd -l /sbin/rootlogin
|
||||
_EOF_
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
IMAGE_PREPROCESS_COMMAND += "sares;"
|
||||
|
|
@ -20,7 +20,6 @@
|
|||
# DY_PLATFORMS: Platforms to build
|
||||
# DY_REVISION: Revision of the manifest repository (for 'repo init')
|
||||
# DY_RM_WORK: Remove the package working folders to save disk space.
|
||||
# DY_SARES: Build SARES test image
|
||||
# DY_TARGET: Target image (the default is 'dey-image-minimal')
|
||||
# DY_USE_MIRROR: Use internal Digi mirror to download packages
|
||||
#
|
||||
|
|
@ -52,10 +51,6 @@ INHERIT += \"rm_work\"
|
|||
RM_WORK_EXCLUDE += \"dey-image-graphical dey-image-minimal linux-dey u-boot-dey\"
|
||||
"
|
||||
|
||||
SARES_CFG="
|
||||
INHERIT += \"sares-image\"
|
||||
"
|
||||
|
||||
X11_REMOVAL_CFG="
|
||||
DISTRO_FEATURES_remove = \"x11\"
|
||||
"
|
||||
|
|
@ -234,9 +229,6 @@ for platform in ${DY_PLATFORMS}; do
|
|||
if [ "${DY_RM_WORK}" = "true" ]; then
|
||||
printf "${RM_WORK_CFG}" >> conf/local.conf
|
||||
fi
|
||||
if [ "${DY_SARES}" = "true" ]; then
|
||||
printf "${SARES_CFG}" >> conf/local.conf
|
||||
fi
|
||||
# Remove 'x11' distro feature if building minimal images
|
||||
if echo "${DY_TARGET}" | grep -qs "dey-image-minimal"; then
|
||||
printf "${X11_REMOVAL_CFG}" >> conf/local.conf
|
||||
|
|
|
|||
Loading…
Reference in New Issue