skeleton.mk 1.0 KB

1234567891011121314151617181920212223242526272829
  1. ################################################################################
  2. #
  3. # skeleton
  4. #
  5. ################################################################################
  6. # The skeleton can't depend on the toolchain, since all packages depends on the
  7. # skeleton and the toolchain is a target package, as is skeleton.
  8. # Hence, skeleton would depends on the toolchain and the toolchain would depend
  9. # on skeleton.
  10. SKELETON_ADD_TOOLCHAIN_DEPENDENCY = NO
  11. SKELETON_ADD_SKELETON_DEPENDENCY = NO
  12. # Although the $(HOST_DIR)/usr symlink is mostly for backward compatibility,
  13. # there are weird packages that still require it (see host-systemd, and
  14. # commit 35c11a027c88).
  15. define HOST_SKELETON_INSTALL_CMDS
  16. # check-package DoNotInstallToHostdirUsr
  17. $(Q)ln -snf . $(HOST_DIR)/usr
  18. $(Q)mkdir -p $(HOST_DIR)/lib
  19. $(Q)mkdir -p $(HOST_DIR)/include
  20. $(Q)case $(HOSTARCH) in \
  21. (*64|s390x) ln -snf lib $(HOST_DIR)/lib64;; \
  22. (*) ln -snf lib $(HOST_DIR)/lib32;; \
  23. esac
  24. endef
  25. $(eval $(virtual-package))
  26. $(eval $(host-generic-package))