Files
Laxman Dewangan f86c10ed60 Makefile: yocto: Add header_install rule for Yocto
Yocto makefile needs the installation of all public
headers. Add Makefile and rule to achieve this.

Bug 4365981

Change-Id: I986a5791246e83eb12a77d00998175f0630c796c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3016433
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Mayank Pandey <maypandey@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
2023-11-15 15:37:22 -08:00

16 lines
444 B
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
#
# The makefile to install public headers on desired path.
# Get the path of Makefile
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
headers_install:
mkdir -p $(INSTALL_HDR_PATH); \
rsync -mrl --include='*/' --include='*\.h' --exclude='*' \
$(ROOT_DIR)/include $(INSTALL_HDR_PATH)
clean:
rm -rf $(INSTALL_HDR_PATH)