build.sh 537 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. set -e
  3. CORES=$(getconf _NPROCESSORS_ONLN)
  4. git submodule sync
  5. git submodule update --recursive --init
  6. #make clean || true
  7. #make distclean || true
  8. rm -rf work/
  9. make MKFS_VFAT="/sbin/mkfs.vfat" \
  10. MKFS_EXT4="/sbin/mkfs.ext4" \
  11. PARTPROBE="/sbin/partprobe" \
  12. SGDISK="/sbin/sgdisk" \
  13. -j${CORES}
  14. make vpudriver-build
  15. rm -rf work/buildroot_initramfs/images/rootfs.tar
  16. make MKFS_VFAT="/sbin/mkfs.vfat" \
  17. MKFS_EXT4="/sbin/mkfs.ext4" \
  18. PARTPROBE="/sbin/partprobe" \
  19. SGDISK="/sbin/sgdisk" \
  20. -j${CORES}