usb code is adapted to rk3568.

This commit is contained in:
songyanguang 2024-08-15 19:55:16 +08:00
parent a9273b9879
commit d3fb123c29
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
SRC_DIR := $(BOARD)
SRC_DIR := $(BOARD) usb
include $(KERNEL_ROOT)/compiler.mk

View File

@ -15,6 +15,12 @@ user_ldflags = -N -Ttext 0
cflags = -Wall -g -std=c11 -mtune=cortex-a72 -nostdlib -nodefaultlibs -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -ggdb -Wno-unused -Werror -fno-omit-frame-pointer -fno-stack-protector -fno-pie
board_specs = $(KERNEL_ROOT)/services/app/stub.o
endif
ifeq ($(BOARD), 3568)
toolchain ?= aarch64-none-elf-
user_ldflags = -N -Ttext 0
cflags = -Wall -g -std=c11 -mtune=cortex-a55 -nostdlib -nodefaultlibs -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -ggdb -Wno-unused -Werror -fno-omit-frame-pointer -fno-stack-protector -fno-pie
board_specs = $(KERNEL_ROOT)/services/app/stub.o
endif
cc = ${toolchain}gcc
ld = ${toolchain}g++