From bedbef8ad3e75a304af6361af235302bcc61d06b Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Tue, 14 May 2024 06:39:01 +0000
Subject: [PATCH] 修改内核路径

---
 kernel/samples/uhid/Makefile |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/kernel/samples/uhid/Makefile b/kernel/samples/uhid/Makefile
index 8d7fd61..0aa424e 100644
--- a/kernel/samples/uhid/Makefile
+++ b/kernel/samples/uhid/Makefile
@@ -1,7 +1,4 @@
-# List of programs to build
-hostprogs-y := uhid-example
+# SPDX-License-Identifier: GPL-2.0-only
+userprogs-always-y += uhid-example
 
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
-HOSTCFLAGS_uhid-example.o += -I$(objtree)/usr/include
+userccflags += -I usr/include

--
Gitblit v1.6.2