mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-12-26 02:38:22 +01:00
add system update tools
This commit is contained in:
parent
5004ec3efa
commit
c5895e98cf
@ -7,7 +7,7 @@ DEFAULT_KERNEL_NAME="Image-$MACHINE.bin"
|
||||
DEFAULT_INITRAMFS_NAME="recovery-$MACHINE.cpio.gz"
|
||||
UPDATE_SRC_PATH="/home/diya/.update"
|
||||
ROOTFS_DEV="/dev/mmcblk0p2"
|
||||
SUPPORTED_COMMAND="rootfs kernel initramfs"
|
||||
SUPPORTED_COMMAND="rootfs kernel initramfs all"
|
||||
TMP_MOUNT="/tmp/rootfs"
|
||||
|
||||
|
||||
@ -123,13 +123,16 @@ fi
|
||||
|
||||
case "$cmd" in
|
||||
rootfs)
|
||||
rootfs $1
|
||||
rootfs $file
|
||||
;;
|
||||
kernel)
|
||||
kernel $1
|
||||
kernel $file
|
||||
;;
|
||||
initramfs)
|
||||
initramfs $1
|
||||
initramfs $file
|
||||
;;
|
||||
all)
|
||||
rootfs && kernel && initramfs
|
||||
;;
|
||||
*)
|
||||
cat << EOF
|
||||
|
@ -35,7 +35,8 @@ EOF
|
||||
ln -sf /sbin/diya-update ${D}/sbin/diya-update-rootfs
|
||||
ln -sf /sbin/diya-update ${D}/sbin/diya-update-kernel
|
||||
ln -sf /sbin/diya-update ${D}/sbin/diya-update-initramfs
|
||||
|
||||
ln -sf /sbin/diya-update ${D}/sbin/diya-update-all
|
||||
|
||||
# Create device nodes expected by some kernels in initramfs
|
||||
# before even executing /init.
|
||||
install -d ${D}/dev
|
||||
|
Loading…
Reference in New Issue
Block a user