linux-api-headers-cmds.sh 567 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. set +h
  3. export ARCH=x86_64
  4. export CROSS_COMPILE=$LFS_TGT-
  5. source "$basedir/build-helpers.sh"
  6. configure_commands() {
  7. cd "$builddir"
  8. make mrproper
  9. }
  10. make_commands() {
  11. cd "$builddir"
  12. make INSTALL_HDR_PATH="$installdir" headers_install
  13. }
  14. install_commands() {
  15. cd "$installdir"
  16. cp -av ./ /tools/
  17. }
  18. uninstall_commands() {
  19. [[ -d "$installdir" ]] && {
  20. pushd "$installdir" > /dev/null
  21. find -H -mindepth 1 -type f -o -type l -exec rm -vf /tools/{} \;
  22. popd > /dev/null
  23. rm -rvf "$installdir"
  24. }
  25. }