mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-21 14:21:27 +00:00
14 lines
568 B
Bash
14 lines
568 B
Bash
#!/usr/bin/env bash
|
|
echo "Running post-install"
|
|
|
|
# This gets run multiple times during the build process, so must be careful
|
|
# when the operations are actually performed!
|
|
|
|
# Remove these links as they produce warnings when the package is unpacked
|
|
if [ "$IMAGE_TOP" != "" ]; then
|
|
if [ "$version" != "" ]; then
|
|
rm -f $IMAGE_TOP/lib/modules/$version/build
|
|
rm -f $IMAGE_TOP/lib/modules/$version/source
|
|
mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n "Linux kernel" -d $IMAGE_TOP/boot/vmlinuz* $IMAGE_TOP/boot/uImage
|
|
fi
|
|
fi
|