post_build.sh 512 B

1234567891011121314
  1. #!/bin/bash
  2. UBOOT_DIR=${BR2_EXTERNAL_ARK_PATH}/../u-boot
  3. UBOOT_OUTPUT_DIR=${BR2_EXTERNAL_ARK_PATH}/../output/board/zhonghong/u-boot
  4. #install modules to target
  5. source ${BR2_EXTERNAL_ARK_PATH}/../env.source
  6. cd ${BR2_EXTERNAL_ARK_PATH}/../output/board/zhonghong/linux
  7. make INSTALL_MOD_PATH=${TARGET_DIR} modules_install
  8. cp -f ${UBOOT_OUTPUT_DIR}/tools/env/fw_printenv ${TARGET_DIR}/usr/bin/
  9. cp ${UBOOT_DIR}/tools/env/fw_env.config ${TARGET_DIR}/etc
  10. cd ${TARGET_DIR}/usr/bin/ && \
  11. ln -sf fw_printenv fw_setenv