crossmenuconfig.sh 522 B

12345678910111213
  1. #!/bin/sh -xe
  2. #Runs Make menuconfig with the proper enviroment vars for cross compiling arm
  3. #Grabs the file named config in the same directory as this script, and updates it
  4. KVER=4.9.30
  5. [ ! -f linux-libre-$KVER-gnu.tar.lz ] && wget https://www.linux-libre.fsfla.org/pub/linux-libre/releases/$KVER-gnu/linux-libre-$KVER-gnu.tar.lz
  6. [ ! -d linux-$KVER ] && tar --lzip -xvf linux-libre-$KVER-gnu.tar.lz
  7. cd linux-$KVER
  8. cp ../config .config
  9. make menuconfig ARCH=arm CROSS_COMPILE=arm-none-eabi- .config
  10. cp .config ../config