How to add assembly file to build?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

I would like to add some assembly file (like test.s) into the hello_sensor app in WICED Smart SDK 2.x.

I also modified the makefile.mk to :

APP_SRC = hello_sensor.c test.s

But failed to build with below error message:

make.exe[1]: *** No rule to make target '../../build/hello_sensor-BCM920736TAG_Q32-rom-ram-Wiced-release/test.s', needed by '../../build/hello_sensor-BCM920736TAG_Q32-rom-ram-Wiced-release/A_20736A1-hello_sensor-rom-ram-spar.elf'.  Stop.

Any idea to fix it?

thanks.

0 Likes
1 Solution

Hi Roger,

Add the following in the makefile

    $(BIN_OUT_DIR)/%.o $(BIN_OUT_DIR)/%.d: $(SRCDIR)/%.s

    $(QUIET)-$(XMD) $(@D)

    $(eval $(info Assembling $(notdir $<)))

    $(QUIET)$(XAS) $(ASM_FLAGS) $(LIST_OPTIONS) -o $@ $< $(REDIRECT_ASM_OUTPUT)

arvindsmwf_mmfaej.t

HTH

vik86

View solution in original post

0 Likes
4 Replies
VikramR_26
Employee
Employee
25 sign-ins 10 sign-ins 10 comments on KBA

I've not tried it, but since you have an assembly file do you want to try by adding the following line in the make file

APP_PATCHES_AND_LIBS += test.s

thnx

0 Likes
Anonymous
Not applicable

hi vik86

thanks for your advice but still failed with the same error message.

0 Likes

Hi Roger,

Add the following in the makefile

    $(BIN_OUT_DIR)/%.o $(BIN_OUT_DIR)/%.d: $(SRCDIR)/%.s

    $(QUIET)-$(XMD) $(@D)

    $(eval $(info Assembling $(notdir $<)))

    $(QUIET)$(XAS) $(ASM_FLAGS) $(LIST_OPTIONS) -o $@ $< $(REDIRECT_ASM_OUTPUT)

arvindsmwf_mmfaej.t

HTH

vik86

0 Likes
Anonymous
Not applicable

thanks a lot.

i'll take a try.

0 Likes