9620de4b70
mipsel-bfk3 feature often serves as basis for special build for various other BE-T1000-based devices. Having DTB name in config.mk simplifies creating such derivatives.
24 lines
578 B
Bash
Executable File
24 lines
578 B
Bash
Executable File
#!/bin/sh -efu
|
|
|
|
mkdir -p /boot
|
|
|
|
vmlinuz="$(find /boot -type f -name 'vmlinuz-*')"
|
|
kversion="${vmlinuz##/boot/vmlinuz-}"
|
|
|
|
[ -n "$GLOBAL_DTB_NAME" ]
|
|
|
|
DTB_FILE="/lib/devicetree/$kversion/$GLOBAL_DTB_NAME"
|
|
DTB_NAME="$(basename "$DTB_FILE" .dtb)"
|
|
|
|
cp "$DTB_FILE" "/boot/$DTB_NAME-$kversion.dtb"
|
|
ln -s "$DTB_NAME-$kversion.dtb" "/boot/$DTB_NAME.dtb"
|
|
|
|
# various SDK version have various defaults
|
|
ln -s boot/vmlinuz /vmlinux.bin
|
|
ln -s boot/vmlinuz /bfk3.vmlinux.bin
|
|
ln -s boot/initrd.img /initramfs.gz
|
|
ln -s "boot/$DTB_NAME.dtb" /baikal.dtb
|
|
ln -s "boot/$DTB_NAME.dtb" /bfk3.dtb
|
|
|
|
exit 0
|