Skip to content
Snippets Groups Projects
Commit 91d3e33f authored by minute's avatar minute
Browse files

WIP reform2 build process

parent df7b6600
No related branches found
No related tags found
No related merge requests found
......@@ -3,31 +3,26 @@
set -x
set -e
export ARCH=arm
export LOADADDR=0x10008000
export CROSS_COMPILE=arm-linux-gnueabihf-
export ARCH=arm64
export LOADADDR=0x40480000
export CROSS_COMPILE=aarch64-linux-gnu-
cp ./reform-linux/imx6qp-mntreform.dts ./linux/arch/arm/boot/dts/
cp ./reform-linux/imx6qdl-mntreform.dtsi ./linux/arch/arm/boot/dts/
cp ./reform-linux/kernel-config ./linux/.config
cp ./reform-linux/reform2-imx8mq/imx8mq-mnt-reform2.dts ./linux/arch/arm64/boot/dts/freescale/
cp ./reform-linux/reform2-imx8mq/imx8mq.dtsi ./linux/arch/arm64/boot/dts/freescale/
cp ./reform-linux/reform2-imx8mq/kernel-config ./linux/.config
cd linux
#PATCHFILE=../reform-linux/drm-flip-done-timeout-workaround.patch
# TODO: apply a stack of patches
#PATCHFILE=../reform-linux/0017-pci-fix-suspend-on-i.MX6.patch
#if ! patch -Rsfp1 --dry-run <$PATCHFILE; then
# patch -p1 <$PATCHFILE
#else
# echo "Kernel already patched ($PATCHFILE)."
#fi
PATCHFILE=../reform-linux/0017-pci-fix-suspend-on-i.MX6.patch
if ! patch -Rsfp1 --dry-run <$PATCHFILE; then
patch -p1 <$PATCHFILE
else
echo "Kernel already patched ($PATCHFILE)."
fi
make -j4 zImage imx6qp-mntreform.dtb
make -j16 Image freescale/imx8mq-mnt-reform2.dtb
cd ..
......@@ -30,10 +30,10 @@ mkdir -p target-userland/root/.config/i3
cp etc-templates/i3_config target-userland/root/.config/i3/config
cp etc-templates/i3status.conf target-userland/root/.config/
# Reform sources
mkdir -p target-userland/root/sources
cp -R reform target-userland/root/sources/
cp -R reform-linux target-userland/root/sources/
cp -R reform-userland target-userland/root/sources/
#mkdir -p target-userland/root/sources
#cp -R reform target-userland/root/sources/
#cp -R reform-linux target-userland/root/sources/
#cp -R reform-userland target-userland/root/sources/
#cp -Rv pdfs target-userland/root/
mv target-userland/root/reformd-init-script.sh target-userland/etc/init.d/reformd
......
[General]
arch=armhf
arch=arm64
noauth=false
unpack=true
debootstrap=Debian
......
reform-linux @ 94666dbc
Subproject commit 94666dbc8d383370f3af4d3dc0e400fd2e414617
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment