Skip to content

Commit 228ede0

Browse files
author
lec-bit
committed
fix ko make
Signed-off-by: lec-bit <[email protected]>
1 parent bdf90dd commit 228ede0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kernel/ko_src/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ CURRENT_PATH := $(shell pwd)
22
DIRS := $(shell find $(CURRENT_PATH) -maxdepth 1 -type d)
33
BASE_DIRS := $(basename $(patsubst $(CURRENT_PATH)/%, %, $(DIRS)))
44
BASE_DIRS := $(filter-out $(CURRENT_PATH), $(BASE_DIRS))
5+
CONFIG_FILE := ../../config/kmesh_marcos_def.h
6+
ENHANCED_KERNEL := $(shell grep -q "#define ENHANCED_KERNEL 1" $(CONFIG_FILE) && echo yes || echo no)
57

6-
ifeq ($(ENHANCED_KERNEL), enhanced)
8+
ifeq ($(ENHANCED_KERNEL), yes)
79
all:
810
@for dir in ${BASE_DIRS}; do \
911
make -C $(CURRENT_PATH)/$$dir; \

0 commit comments

Comments
 (0)