rootfs_post_build_script 786 B

12345678910111213141516171819202122232425
  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. #
  15. # As of 2d5f95b1839986ca6d7b568296374a2403d2693d
  16. # xorg must be removed or else we get a black screen:
  17. # https://bugs.busybox.net/show_bug.cgi?id=11066
  18. rm -rf \
  19. "${target_dir}/etc/init.d/S01logging" \
  20. "${target_dir}/etc/init.d/S20urandom" \
  21. "${target_dir}/etc/init.d/S40network" \
  22. "${target_dir}/etc/init.d/S40xorg" \
  23. "${target_dir}/etc/init.d/S50sshd" \
  24. ;