rootfs_post_build_script 593 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. # This is run as part of:
  3. # make target-finalize
  4. # which gets called by the default target.
  5. # To test it out, arguments can be passed with:
  6. # make BR2_ROOTFS_POST_SCRIPT_ARGS="asdf qwer"
  7. target_dir="$1"
  8. mkdir -p \
  9. "${target_dir}/mnt/9p" \
  10. "${target_dir}/mnt/out" \
  11. ;
  12. # Maybe there is a cleaner way to get rid of those files,
  13. # like disabling some Buildroot packages, but no patience.
  14. rm -rf \
  15. "${target_dir}/etc/init.d/S01logging" \
  16. "${target_dir}/etc/init.d/S20urandom" \
  17. "${target_dir}/etc/init.d/S40network" \
  18. "${target_dir}/etc/init.d/S50sshd" \
  19. ;