EDA365电子论坛网

标题: xilinx SDK编译问题,无法编译出.elf文件,请问依赖变量为什么为空的? [打印本页]

作者: cpupygu    时间: 2019-6-20 17:53
标题: xilinx SDK编译问题,无法编译出.elf文件,请问依赖变量为什么为空的?
helloworld.elf: $(OBJS) ../src/lscript.ld $(USER_OBJS)
+ z6 v7 j$ t! A( f2 Q@Echo 'Building target: $@'6 y+ c, @  v: G) Y
@echo 'Invoking: ARM v7 gcc linker'" ~  F- L/ O5 Z
arm-none-eabi-gcc -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -Wl,-build-id=none -specs=Xilinx.spec -Wl,-T -Wl,../src/lscript.ld -L../../helloworld_bsp/ps7_cortexa9_0/lib -o "helloworld.elf" $(OBJS) $(USER_OBJS) $(LIBS)
% ?7 M/ }  @8 F" E- w/ [@echo 'Finished building target: $@'6 _, {* b0 `/ j9 B5 C1 l' s2 x: q0 \
@echo ' '
其中依赖的变量“OBJS”“USER_OBJS”为空的,导致没有编译出*.elf文件USER_OBJS :=
LIBS := -Wl,--start-group,-lxil,-lgcc,-lc,--end-group
LD_SRCS :=
0 e& ~2 A$ o1 d* ?OBJ_SRCS := 1 D: {) m0 e1 O( w1 m9 o
S_SRCS := / d( l+ t/ V# K; d% i# V2 ~1 C, F' t* X
C_SRCS :=
. z# i+ O! W0 N, B; Z' ~S_UPPER_SRCS := 2 }  _/ z5 C) a% K
O_SRCS := , L! f3 `- `! g, L% x. w
EXECUTABLES :=
/ ]* W9 B8 [7 t* `% J$ o0 @- _OBJS := 4 |9 A. v' m5 b
S_UPPER_DEPS :=
+ l% u( A3 Q. K0 Y+ L# Q. PC_DEPS := - U1 n4 Q+ N6 ?' a* B& E6 r
ELFSIZE :=
Every subdirectory with source files must be described here
SUBDIRS := \
; C" e. L2 M  u% Qsrc \
1 _6 g0 T' Q% ]3 P0 ~

作者: uaidenp    时间: 2019-6-20 18:38
仔细检查一下




欢迎光临 EDA365电子论坛网 (https://bbs.eda365.com/) Powered by Discuz! X3.2