Skip to content

Instantly share code, notes, and snippets.

@kylemanna
Created July 13, 2012 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylemanna/3106768 to your computer and use it in GitHub Desktop.
Save kylemanna/3106768 to your computer and use it in GitHub Desktop.
Script to build compat-wireless and the kernel and copy it to a target
#!/bin/sh
export CLIENT=client
export KLIB_BUILD=/ssd/sandbox/${CLIENT}/oe/arago-tmp/sysroots/ti814x-evm-angstrom-linux-gnueabi/kernel
export KLIB_BUILD={$HOME}/go/${CLIENT}/linux-omap3
export INSTALL_MOD_PATH=/nfsroots/${CLIENT}
export KLIB=${INSTALL_MOD_PATH}
export DESTDIR=${INSTALL_MOD_PATH}
export DEPMOD=echo
export LDFLAGS=""
export RSYNC_PASSWORD=""
TARGET=172.31.2.55
function error() {
echo Error: $@
exit 1
}
pushd $KLIB_BUILD
time make -j4 uImage modules && time make -j1 modules_install || error "building kernel"
popd
touch drivers/net/wireless/wl12xx/main.c
make -j4 && make -j4 install-modules || echo "failed to build compat-wireless"
#rsync ${KLIB_BUILD}/arch/arm/boot/uImage root@${TARGET}:/mnt/boot/uImage.ti8148 -vh || error "copying kernel"
#rsync ${INSTALL_MOD_PATH}/lib/ root@${TARGET}:/lib -avh || error "copying modules"
cp -a ${KLIB_BUILD}/arch/arm/boot/uImage /var/lib/tftpboot || error "copying kernel"
echo
echo "Everything seems ok.."
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment