modify makefile for net and hal

This commit is contained in:
lr 2024-06-13 09:41:37 +08:00
parent 89dcaa2cce
commit d29c618113
4 changed files with 22 additions and 1 deletions

View File

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

View File

@ -19,6 +19,13 @@ cflags = -g -std=c11 -mtune=cortex-a72 -nostdlib -nodefaultlibs -fno-pic -stati
board_specs = stub.o board_specs = stub.o
endif 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 cc = ${toolchain}gcc
ld = ${toolchain}g++ ld = ${toolchain}g++
objdump = ${toolchain}objdump objdump = ${toolchain}objdump

View File

@ -17,6 +17,13 @@ cflags = -Wall -g -std=c11 -mtune=cortex-a72 -nostdlib -nodefaultlibs -fno-pic -
board_specs = stub.o board_specs = stub.o
endif 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 cc = ${toolchain}gcc
ld = ${toolchain}g++ ld = ${toolchain}g++
objdump = ${toolchain}objdump objdump = ${toolchain}objdump

View File

@ -18,6 +18,13 @@ cflags = -Wall -g -std=c11 -mtune=cortex-a72 -nostdlib -nodefaultlibs -fno-pic -
board_specs = $(KERNEL_ROOT)/services/app/stub.o board_specs = $(KERNEL_ROOT)/services/app/stub.o
endif 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 cc = ${toolchain}gcc
ld = ${toolchain}g++ ld = ${toolchain}g++
objdump = ${toolchain}objdump objdump = ${toolchain}objdump