mirror of https://github.com/parazyd/arm-sdk.git
change rpi to new scheme; add cubie config
This commit is contained in:
parent
8b8934000e
commit
a7df60f764
|
|
@ -86,7 +86,8 @@ build_kernel_armhf() {
|
|||
|
||||
get-kernel-sources
|
||||
pushd $R/tmp/kernels/$device_name/${device_name}-linux
|
||||
wget -O .config $linux_defconfig
|
||||
#wget -O .config $linux_defconfig
|
||||
copy-kernel-config
|
||||
make $MAKEOPTS
|
||||
sudo -E PATH="$PATH" \
|
||||
make INSTALL_MOD_PATH=$strapdir modules_install ## this replaces make-kernel-modules
|
||||
|
|
@ -100,7 +101,8 @@ build_kernel_armhf() {
|
|||
sudo -E PATH="$PATH" \
|
||||
make INSTALL_MOD_PATH=$strapdir firmware_install
|
||||
#make mrproper
|
||||
wget -O .config $linux_defconfig
|
||||
#wget -O .config $linux_defconfig
|
||||
copy-kernel-config
|
||||
sudo -E PATH="$PATH" \
|
||||
make modules_prepare
|
||||
popd
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -47,18 +47,7 @@ prebuild() {
|
|||
|
||||
notice "executing $device_name prebuild"
|
||||
|
||||
## fstab
|
||||
cat <<EOF | sudo tee ${strapdir}/etc/fstab
|
||||
## <file system> <mount point> <type> <options> <dump><pass>
|
||||
## proc
|
||||
proc /proc proc nodev,noexec,nosuid 0 0
|
||||
|
||||
## rootfs
|
||||
/dev/mmcblk0p2 / ext4 errors=remount-ro 0 1
|
||||
|
||||
## bootfs
|
||||
/dev/mmcblk0p1 /boot vfat noauto 0 0
|
||||
EOF
|
||||
write-fstab
|
||||
}
|
||||
|
||||
postbuild() {
|
||||
|
|
@ -103,16 +92,7 @@ build_kernel_armhf() {
|
|||
act "grabbing kernel sources"
|
||||
mkdir -p $R/tmp/kernels/$device_name
|
||||
|
||||
if [[ -d $R/tmp/kernels/$device_name/${device_name}-linux ]]; then
|
||||
pushd $R/tmp/kernels/$device_name/${device_name}-linux
|
||||
git pull
|
||||
popd
|
||||
else
|
||||
git clone --depth 1 \
|
||||
$gitkernel \
|
||||
-b $gitbranch \
|
||||
$R/tmp/kernels/$device_name/${device_name}-linux
|
||||
fi
|
||||
get-kernel-sources
|
||||
|
||||
pushd $R/tmp/kernels/$device_name/${device_name}-linux
|
||||
make bcm2709_defconfig
|
||||
|
|
@ -121,17 +101,7 @@ build_kernel_armhf() {
|
|||
make INSTALL_MOD_PATH=$strapdir modules_install ## this replaces make-kernel-modules
|
||||
popd
|
||||
|
||||
notice "grabbing rpi-firmware..."
|
||||
if [[ -d $R/tmp/kernels/$device_name/${device_name}-firmware ]]; then
|
||||
pushd $R/tmp/kernels/$device_name/${device_name}-firmware
|
||||
git pull
|
||||
popd
|
||||
else
|
||||
git clone --depth 1 \
|
||||
$rpifirmware \
|
||||
$R/tmp/kernels/$device_name/${device_name}-firmware
|
||||
fi
|
||||
|
||||
clone-git $rpifirmware "$R/tmp/kernels/$device_name/${device_name}-firmware"
|
||||
sudo cp $CPVERBOSE -rf $R/tmp/kernels/$device_name/${device_name}-firmware/boot/* $strapdir/boot/
|
||||
|
||||
pushd $R/tmp/kernels/$device_name/${device_name}-linux
|
||||
|
|
|
|||
10
lib/helpers
10
lib/helpers
|
|
@ -82,6 +82,16 @@ clone-git() {
|
|||
fi
|
||||
}
|
||||
|
||||
copy-kernel-config() {
|
||||
fn copy-kernel-config
|
||||
req=(device_name)
|
||||
ckreq || return 1
|
||||
|
||||
notice "copying available kernel config"
|
||||
cp $R/boards/kernel-configs/${device_name}.config \
|
||||
$R/tmp/kernels/$device_name/${device_name}-linux/.config
|
||||
}
|
||||
|
||||
write-fstab() {
|
||||
fn write-fstab
|
||||
cat <<EOF | sudo tee ${strapdir}/etc/fstab
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 38ebe58b8c451823feb781da226a1008fa3b1333
|
||||
Subproject commit cc3d545845287938cac43be658fea8573bf6a762
|
||||
Loading…
Reference in New Issue