Compare commits

..

2 Commits

3 changed files with 9 additions and 5 deletions

View File

@ -147,7 +147,7 @@ function build_uboot()
cp -f "$OUTPUT_DIR"/fip_pre/fip_pre_${ATF_KEY_SEL}.bin \
"$OUTPUT_DIR"/fip_pre/fip_pre.bin
make u-boot
bear --append --output ${TOP_DIR}/compile_commands.json -- make u-boot
)}
function build_uboot_env_tools()
@ -193,7 +193,7 @@ function build_kernel()
print_notice "Run ${FUNCNAME[0]}() function"
_build_kernel_env
cd "$BUILD_PATH" || return
make kernel || return "$?"
bear --append --output ${TOP_DIR}/compile_commands.json -- make kernel
# generate boot.itb image.
if [[ ${1} != noitb ]]; then
@ -313,7 +313,7 @@ function build_osdrv()
fi
pushd "$OSDRV_PATH"
make KERNEL_DIR="$KERNEL_PATH"/"$KERNEL_OUTPUT_FOLDER" INSTALL_DIR="$SYSTEM_OUT_DIR"/ko "$osdrv_target" || return "$?"
bear --append --output ${TOP_DIR}/compile_commands.json -- make KERNEL_DIR="$KERNEL_PATH"/"$KERNEL_OUTPUT_FOLDER" INSTALL_DIR="$SYSTEM_OUT_DIR"/ko "$osdrv_target" || return "$?"
popd
)}

View File

@ -30,11 +30,11 @@ define MAKE_EXT_KO
endef
SUBDIRS += $(shell find ./extdrv -maxdepth 1 -mindepth 1 -type d | grep -v "git")
exclude_dirs =
exclude_dirs =
SUBDIRS := $(filter-out $(exclude_dirs), $(SUBDIRS))
# prepare ko list
KO_LIST = wiegand-gpio
KO_LIST = wiegand-gpio linux_drives
OTHERS :=
@ -69,6 +69,9 @@ wireless:
wiegand-gpio:
@$(call MAKE_EXT_KO, extdrv/${@})
linux_drives:
@$(call MAKE_EXT_KO, extdrv/Linux_Drivers)
cp_ext_wireless:
@find extdrv/wireless -name '*.ko' -print -exec cp {} $(INSTALL_DIR)/3rd/ \;