OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.6 KiB

  1. #!/bin/sh
  2. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # Filename: package/.../linux-header/linux-header.conf
  6. # Copyright (C) 2006 - 2007 The OpenSDE Project
  7. # Copyright (C) 2004 - 2006 The T2 SDE Project
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. # we overwrite lx_cpu here, since the headers are older than the linux26
  17. # packages and do not have the combined powerpc arch for both 32/64bit ...
  18. # lx_cpu=`echo $arch | arch2uname | sed -e s/mips64/mips/`
  19. . $base/package/*/*/linux-conf.in
  20. autopatch=0
  21. createdocs=0
  22. if atstage toolchain; then
  23. root="$sysroot"
  24. fi
  25. # patch
  26. hook_add premake 2 "lx_patch"
  27. # WARNING: HACK ALERT!
  28. # change the timestamp of the headers to be newer than the currently installed
  29. # ones to really install them
  30. hook_add premake 8 "find include -type f -exec touch '{}' \;"
  31. # and disable `make all` at the last-minute
  32. hook_add premake 9 "export makeopt="
  33. makeinstopt="$makeopt"
  34. var_append makeinstopt ' ' "INSTALL_HDR_PATH=$root/$prefix"
  35. # WARNING: preventing the removal of existing header files
  36. # if we do not set those variables empty _all_ header files in /usr/include
  37. # are kindly removed!
  38. var_append makeinstopt ' ' "oldheaders= unwanted="
  39. var_append makeinstopt ' ' "headers_install"