Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
matianfu committed Dec 26, 2018
1 parent 5dc6fee commit d420a90
Show file tree
Hide file tree
Showing 4 changed files with 958 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/build
/cache

28 changes: 28 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

set -e

mkdir -p cache
mkdir -p build

BUILD_DIR=build/linux-4.19.12
CONFIG_DIR=configs/4.19.12

if [ ! -d $BUILD_DIR ]; then
if [ ! -f cache/linux-4.19.12.tar.xz ]; then
curl -o cache/linux-4.19.12.tar.xz https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.12.tar.xz
fi

rm -rf $BUILD_DIR
tar xf cache/linux-4.19.12.tar.xz -C build
fi

cp ${CONFIG_DIR}/rockchip_linux_defconfig ${BUILD_DIR}/arch/arm64/configs/rockchip_linux_defconfig
cp ${CONFIG_DIR}/rk3328-rock64.dts ${BUILD_DIR}/arch/arm64/boot/dts

cd $BUILD_DIR

make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- rockchip_linux_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- bindeb-pkg -j8

cd -
Loading

0 comments on commit d420a90

Please sign in to comment.