mirror of
git://git.yoctoproject.org/meta-rockchip.git
synced 2025-07-05 05:04:47 +02:00
remove image
This is a BSP layer, not a software demonstration layer. Signed-off-by: Trevor Woerner <twoerner@gmail.com>
This commit is contained in:
parent
70587b9913
commit
9e85e28587
|
@ -1,12 +0,0 @@
|
|||
# Copyright (C) 2014 Romain Perier <romain.perier@gmail.com>
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
|
||||
include recipes-core/images/core-image-minimal.bb
|
||||
|
||||
DESCRIPTION = "Basic image for Rockchip devices. This is a small image just \
|
||||
capable of allowing a device to boot with packages management, \
|
||||
ssh server and development tools."
|
||||
IMAGE_FEATURES_append = " package-management ssh-server-dropbear"
|
||||
IMAGE_INSTALL_append = " net-kexec "
|
||||
|
||||
LICENSE = "MIT"
|
|
@ -1,27 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Copyright (C) 2014 Romain Perier <romain.perier@gmail.com>
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
|
||||
GATEWAY=$(route | grep default | sed 's/ [ ]*/:/g' | cut -d ':' -f 2)
|
||||
|
||||
fail() {
|
||||
echo $1
|
||||
exit 1
|
||||
}
|
||||
|
||||
# If we are not already connected, connect eth0 with DHCP
|
||||
ifconfig eth0 | grep 'inet addr:[0-9]*\.[0-9]*\.[0-9]*\.[0-9]* ' >/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "* Starting DHCP on eth0"
|
||||
udhcpc -n -i eth0 || fail "Unable to establish a DHCP session with eth0"
|
||||
fi
|
||||
|
||||
tftp -g -r zImage $GATEWAY >/dev/null || fail "Unable to get zImage throught TFTP"
|
||||
echo "* Found zImage on $TFTP_SERVER"
|
||||
echo -n "Do you want to reboot to the new kernel on the fly ? [y/n] "
|
||||
read boot
|
||||
|
||||
if [ "$boot" = "y" ]; then
|
||||
kexec -l zImage
|
||||
kexec -e
|
||||
fi
|
|
@ -1,20 +0,0 @@
|
|||
# Copyright (C) 2014 Romain Perier <romain.perier@gmail.com>
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
|
||||
SUMMARY = "Extremely basic script to kexec over the network"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
SRC_URI = "file://net-kexec.sh"
|
||||
|
||||
PR = "r1"
|
||||
|
||||
RDEPENDS_${PN} += "kexec"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/sbin
|
||||
install -m 0755 ${WORKDIR}/net-kexec.sh ${D}/sbin/net-kexec
|
||||
}
|
||||
|
||||
inherit allarch
|
||||
|
||||
FILES_${PN} += "/sbin/net-kexec"
|
Loading…
Reference in New Issue
Block a user