Skip to content

Commit

Permalink
Add build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
margro committed Jan 5, 2020
1 parent eff97dd commit c296b62
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
14 changes: 14 additions & 0 deletions compile_rpi1_zero.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
KERNEL=kernel
NUM_CPUS=16
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export INSTALL_PATH=../install
export INSTALL_DTBS_PATH=../install/dtbs
mkdir -p ${INSTALL_PATH}
mkdir -p ${INSTALL_PATH}/dtbs
make -j${NUM_CPUS} zImage modules dtbs && (
make INSTALL_MOD_PATH=${INSTALL_PATH} modules_install
cp arch/arm/boot/zImage ${INSTALL_PATH}/kernel.img
make dtbs_install INSTALL_DTBS_PATH=${INSTALL_DTBS_PATH}
)
14 changes: 14 additions & 0 deletions compile_rpi2_rpi3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
KERNEL=kernel7
NUM_CPUS=16
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export INSTALL_PATH=../install
export INSTALL_DTBS_PATH=../install/dtbs
mkdir -p ${INSTALL_PATH}
mkdir -p ${INSTALL_PATH}/dtbs
make -j${NUM_CPUS} zImage modules dtbs && (
make INSTALL_MOD_PATH=${INSTALL_PATH} modules_install
cp arch/arm/boot/zImage ${INSTALL_PATH}/kernel7.img
make dtbs_install INSTALL_DTBS_PATH=${INSTALL_DTBS_PATH}
)
9 changes: 9 additions & 0 deletions configure_rpi1_zero.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
KERNEL=kernel
export CROSS_COMPILE=arm-linux-gnueabihf-
export ARCH=arm
if [ ! -f .config ]; then
make bcmrpi_xenomai3_defconfig
else
make oldconfig
fi
9 changes: 9 additions & 0 deletions configure_rpi2_rpi3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
KERNEL=kernel7
export CROSS_COMPILE=arm-linux-gnueabihf-
export ARCH=arm
if [ ! -f .config ]; then
make bcm2709_xenomai3_defconfig
else
make oldconfig
fi

0 comments on commit c296b62

Please sign in to comment.