xref: /OK3568_Linux_fs/buildroot/package/skeleton/skeleton.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# skeleton
4#
5################################################################################
6
7# The skeleton can't depend on the toolchain, since all packages depends on the
8# skeleton and the toolchain is a target package, as is skeleton.
9# Hence, skeleton would depends on the toolchain and the toolchain would depend
10# on skeleton.
11SKELETON_ADD_TOOLCHAIN_DEPENDENCY = NO
12SKELETON_ADD_SKELETON_DEPENDENCY = NO
13
14# We create a compatibility symlink in case a post-build script still
15# uses $(HOST_DIR)/usr
16define HOST_SKELETON_INSTALL_CMDS
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) ln -snf lib $(HOST_DIR)/lib64;; \
22		(*)   ln -snf lib $(HOST_DIR)/lib32;; \
23	esac
24endef
25
26$(eval $(virtual-package))
27$(eval $(host-generic-package))
28