mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 09:12:05 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
f9360f364f
commit
f86c10ed60
15
Makefile.yocto
Normal file
15
Makefile.yocto
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# 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)
|
||||||
Reference in New Issue
Block a user