1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 11:09:46 +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:
David Oberhollenzer 2019-04-03 15:49:02 +02:00
parent 815f42cf6d
commit 843300f583
5 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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/*

View file

@ -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"
} }