post_build.sh 862 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. UBOOT_DIR=${BR2_EXTERNAL_ARK_PATH}/../u-boot
  3. UBOOT_OUTPUT_DIR=${BR2_EXTERNAL_ARK_PATH}/../output/board/arkn141_dongle_sim/u-boot
  4. #install modules to target
  5. source ${BR2_EXTERNAL_ARK_PATH}/../env.source
  6. cd ${BR2_EXTERNAL_ARK_PATH}/../output/board/arkn141_dongle_sim/linux
  7. make INSTALL_MOD_PATH=${TARGET_DIR} modules_install
  8. cd ${TARGET_DIR}/usr/bin
  9. rm -rf hostapd test* live555* playSIP openRTSP vobStreamer registerRTSPStream
  10. ln -s ../sbin/hostapd hostapd
  11. cd ${TARGET_DIR}/lib
  12. rm -rf debug/ libanl* libgfortran* libgomp*
  13. cd ${TARGET_DIR}/usr/lib
  14. rm -rf libnl-idiag* libnl-nf* libnl-xfrm*
  15. cd ${TARGET_DIR}/usr/share/alsa
  16. rm -rf cards/ pcm/ topology/ ucm/
  17. cp -f ${UBOOT_OUTPUT_DIR}/tools/env/fw_printenv ${TARGET_DIR}/usr/bin/
  18. cp ${UBOOT_DIR}/tools/env/fw_env.config ${TARGET_DIR}/etc
  19. cd ${TARGET_DIR}/usr/bin/ && \
  20. ln -sf fw_printenv fw_setenv