pkg-cmake: install CMake files as part of a package
Currently, the toolchainfile.cmake and Buildroot.cmake files are installed outside of any package, just triggered by the toolchain target. As part of the per-package SDK effort, we are trying to avoid anything that installs to the global $(HOST_DIR), and this is one of the remaining files installed in $(HOST_DIR) outside of any package. We fix this by installing such files as part of the toolchain package post-install staging hooks. Yes, a post-install staging hook to install things to $(HOST_DIR) is a bit weird, but the toolchain infrastructure is made of target packages only, and they all install a lot of stuff to $(HOST_DIR) already. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
3ff90c8888
commit
6729050f3a
@@ -38,6 +38,3 @@ TOOLCHAIN_INSTALL_STAGING = YES
|
||||
endif
|
||||
|
||||
$(eval $(virtual-package))
|
||||
|
||||
toolchain: $(HOST_DIR)/share/buildroot/toolchainfile.cmake
|
||||
toolchain: $(HOST_DIR)/share/buildroot/Platform/Buildroot.cmake
|
||||
|
||||
Reference in New Issue
Block a user