moving board files

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

moving board files

Post by Tabulous »

Tried to move the board files to a folder in the poject, this was named board1. ive now gone back to the original, but the compiler is still complaining about some thing that is not there anymore......

is there something i'm missing or need to clear out, its like it remembers teh old folder



make: *** No rule to make target `board1/board.c', needed by `build/debug/obj/board.o'. Stop.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: moving board files

Post by Giovanni »

The paths in board.mk are hardcoded, are you using it?

Giovanni
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Re: moving board files

Post by Tabulous »

yes its back has default but still showing error

Compiler Options
make: *** No rule to make target `board1/board.c', needed by `build/debug/obj/board.o'. Stop.
arm-none-eabi-gcc -c -mcpu=cortex-m4 -O0 -ggdb -fomit-frame-pointer -falign-functions=16 -ffunction-sections -fdata-sections -fno-common -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -Wall -Wextra -Wundef -Wstrict-prototypes -Wa,-alms=build/debug/lst/ -DCORTEX_USE_FPU=TRUE -DCORTEX_VTOR_INIT=0x0000 -DBUILD_DEBUG -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -MD -MP -MF .dep/debug.d -I. -IC:/chibios/os/common/ports/ARMCMx/compilers/GCC -IC:/chibios/os/common/ports/ARMCMx/devices/STM32F4xx -IC:/chibios/os/ext/CMSIS/include -IC:/chibios/os/ext/CMSIS/ST/STM32F4xx -IC:/chibios/os/rt/include -IC:/chibios/os/rt/ports/ARMCMx -IC:/chibios/os/rt/ports/ARMCMx/compilers/GCC -IC:/chibios/os/hal/osal/rt -IC:/chibios/os/hal/include -IC:/chibios/os/hal/ports/common/ARMCMx -IC:/chibios/os/hal/ports/STM32/STM32F4xx -IC:/chibios/os/hal/ports/STM32/LLD/ADCv2 -IC:/chibios/os/hal/ports/STM32/LLD/CANv1 -IC:/chibios/os/hal/ports/STM32/LLD/DACv1 -IC:/chibios/os/hal/ports/STM32/LLD/DMAv2 -IC:/chibios/os/hal/ports/STM32/LLD/EXTIv1 -IC:/chibios/os/hal/ports/STM32/LLD/GPIOv2 -IC:/chibios/os/hal/ports/STM32/LLD/I2Cv1 -IC:/chibios/os/hal/ports/STM32/LLD/MACv1 -IC:/chibios/os/hal/ports/STM32/LLD/OTGv1 -IC:/chibios/os/hal/ports/STM32/LLD/RTCv2 -IC:/chibios/os/hal/ports/STM32/LLD/SDIOv1 -IC:/chibios/os/hal/ports/STM32/LLD/SPIv1 -IC:/chibios/os/hal/ports/STM32/LLD/TIMv1 -IC:/chibios/os/hal/ports/STM32/LLD/USARTv1 -IC:/chibios/os/hal/ports/STM32/LLD/xWDGv1 -IC:/chibios/os/hal/boards/TG_T822081801 -IC:/chibios/ext/fatfs/src -IC:/chibios/os/hal/lib/peripherals/flash -IC:/chibios/ext/s25f -IC:/chibios/os/hal/lib/streams -IC:/chibios/os/various main.c -o main.o
make: *** Waiting for unfinished jobs....
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Re: moving board files

Post by Tabulous »

sometimes it even compiles alot of files and then

Compiling crt0_v7m.s
Compiling chcoreasm_v7m.s
Compiling crt1.c
Compiling vectors.c
Compiling chsys.c
Compiling chdebug.c
Compiling chvt.c
Compiling chschd.c
Compiling chthreads.c
Compiling chtm.c
Compiling chstats.c
Compiling chdynamic.c
Compiling chregistry.c
Compiling chsem.c
Compiling chmtx.c
Compiling chcond.c
Compiling chevents.c
Compiling chmsg.c
Compiling chmboxes.c
Compiling chqueues.c
Compiling chmemcore.c
Compiling chheap.c
Compiling chmempools.c
Compiling chcore.c
Compiling chcore_v7m.c
Compiling osal.c
Compiling hal.c
Compiling st.c
Compiling hal_buffers.c
Compiling hal_queues.c
Compiling hal_mmcsd.c
Compiling adc.c
Compiling ext.c
Compiling gpt.c
Compiling i2c.c
Compiling pal.c
Compiling rtc.c
Compiling serial.c
Compiling serial_usb.c
Compiling spi.c
Compiling usb.c
Compiling nvic.c
Compiling hal_lld.c
Compiling stm32_dma.c
Compiling st_lld.c
Compiling adc_lld.c
Compiling ext_lld.c
Compiling ext_lld_isr.c
Compiling pal_lld.c
Compiling i2c_lld.c
Compiling usb_lld.c
Compiling rtc_lld.c
Compiling spi_lld.c
Compiling gpt_lld.c
Compiling serial_lld.c
make: *** No rule to make target `board1/board.c', needed by `build/debug/obj/board.o'. Stop.
make: *** Waiting for unfinished jobs....
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Re: moving board files

Post by Tabulous »

Found the issue, seems eclipse remembers things in a folder called .dep ???

deleted this and then it compiled ok.....

what is .dep used for ?
is it how the incremental build knows whats changed ?

If so something is not working right
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: moving board files

Post by Giovanni »

hi,

It is not an eclipse folder, it is generated by the make process in order to create a build dependencies tree, GCC creates is. It you change any path in your project then you need to do a clean before you do build.

Giovanni
Post Reply