mirror of
https://github.com/pygos/build.git
synced 2024-11-25 20:30:43 +01:00
Raspberry Pi: Move config.txt and commandline.txt to bsp layer
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
parent
815f42cf6d
commit
843300f583
5 changed files with 3 additions and 3 deletions
|
@ -5,5 +5,4 @@ file bootcode.bin 0664 0 0
|
||||||
file fixup_x.dat 0664 0 0
|
file fixup_x.dat 0664 0 0
|
||||||
file start_cd.elf 0664 0 0
|
file start_cd.elf 0664 0 0
|
||||||
file fixup.dat 0664 0 0
|
file fixup.dat 0664 0 0
|
||||||
file config.txt 0664 0 0
|
|
||||||
file start_x.elf 0664 0 0
|
file start_x.elf 0664 0 0
|
||||||
|
|
|
@ -19,7 +19,6 @@ deploy() {
|
||||||
|
|
||||||
cp -r "$SOURCE/hardfp/opt" "$PKGDEPLOYDIR"
|
cp -r "$SOURCE/hardfp/opt" "$PKGDEPLOYDIR"
|
||||||
cp -r ${SOURCE}/boot/* "$PKGDEPLOYDIR/"
|
cp -r ${SOURCE}/boot/* "$PKGDEPLOYDIR/"
|
||||||
cp "$SCRIPTDIR/pkg/$PKGNAME/config.txt" "$PKGDEPLOYDIR/config.txt"
|
|
||||||
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
||||||
|
|
||||||
strip_files ${PKGDEPLOYDIR}/opt/vc/bin/*
|
strip_files ${PKGDEPLOYDIR}/opt/vc/bin/*
|
||||||
|
|
|
@ -5,7 +5,6 @@ build() {
|
||||||
pkg install -om -r "$PKGBUILDDIR/boot" -R "$REPODIR" $DEPENDS
|
pkg install -om -r "$PKGBUILDDIR/boot" -R "$REPODIR" $DEPENDS
|
||||||
|
|
||||||
# copy files from this package
|
# copy files from this package
|
||||||
cp "$SCRIPTDIR/pkg/$PKGNAME/cmdline.txt" "$PKGBUILDDIR/boot"
|
|
||||||
cp "$SCRIPTDIR/pkg/$PKGNAME/install.sh" "$PKGBUILDDIR"
|
cp "$SCRIPTDIR/pkg/$PKGNAME/install.sh" "$PKGBUILDDIR"
|
||||||
cp "$SCRIPTDIR/pkg/$PKGNAME/genimage.sh" "$PKGBUILDDIR"
|
cp "$SCRIPTDIR/pkg/$PKGNAME/genimage.sh" "$PKGBUILDDIR"
|
||||||
|
|
||||||
|
@ -17,6 +16,9 @@ build() {
|
||||||
local rootfs_image="$OS_RELEASE/rootfs.img"
|
local rootfs_image="$OS_RELEASE/rootfs.img"
|
||||||
local kernel_image="$OS_RELEASE/vmlinuz"
|
local kernel_image="$OS_RELEASE/vmlinuz"
|
||||||
|
|
||||||
|
cat_file_override "rpi_config.txt" > "$PKGBUILDDIR/boot/config.txt"
|
||||||
|
cat_file_override "rpi_cmdline.txt" > "$PKGBUILDDIR/boot/cmdline.txt"
|
||||||
|
|
||||||
sed -i 's#ROOTFSFILE#'$rootfs_image'#g' "$PKGBUILDDIR/boot/cmdline.txt"
|
sed -i 's#ROOTFSFILE#'$rootfs_image'#g' "$PKGBUILDDIR/boot/cmdline.txt"
|
||||||
sed -i 's#KERNELFILE#'$kernel_image'#g' "$PKGBUILDDIR/boot/config.txt"
|
sed -i 's#KERNELFILE#'$kernel_image'#g' "$PKGBUILDDIR/boot/config.txt"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue