forked from paparazzi/paparazzi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build system] clean up makefiles and fix dependencies, parallel buil…
…d with make -j 8 seems to work now
- Loading branch information
Showing
26 changed files
with
438 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Hey Emacs, this is a -*- makefile -*- | ||
|
||
usb_lib: | ||
@[ -d sw/airborne/arch/lpc21/lpcusb ] && (cd sw/airborne/arch/lpc21/lpcusb; $(MAKE)) || echo "Not building usb_lib: sw/airborne/arch/lpc21/lpcusb directory missing" | ||
|
||
bl: | ||
cd $(AIRBORNE)/arch/lpc21/test/bootloader; $(MAKE) clean; $(MAKE) | ||
|
||
BOOTLOADER_DEV=/dev/ttyUSB0 | ||
upload_bl bl.upload: bl | ||
lpc21isp -control $(AIRBORNE)/arch/lpc21/test/bootloader/bl.hex $(BOOTLOADER_DEV) 38400 12000 | ||
|
||
JTAG_INTERFACE = olimex-jtag-tiny.cfg | ||
#JTAG_INTERFACE = olimex-arm-usb-ocd.cfg | ||
|
||
upload_jtag: bl | ||
openocd -f interface/$(JTAG_INTERFACE) -f board/olimex_lpc_h2148.cfg -c init -c halt -c "flash write_image erase $(AIRBORNE)/arch/lpc21/test/bootloader/bl.hex" -c reset -c shutdown | ||
|
||
|
||
|
||
lpc21iap: | ||
$(MAKE) -C sw/ground_segment/lpc21iap | ||
|
||
upgrade_bl bl.upgrade: bl lpc21iap | ||
$(PAPARAZZI_SRC)/sw/ground_segment/lpc21iap/lpc21iap $(AIRBORNE)/arch/lpc21/test/bootloader/bl_ram.elf | ||
$(PAPARAZZI_SRC)/sw/ground_segment/lpc21iap/lpc21iap $(AIRBORNE)/arch/lpc21/test/bootloader/bl.elf | ||
|
||
ms: | ||
$(MAKE) -C $(AIRBORNE)/arch/lpc21/lpcusb | ||
$(MAKE) -C $(AIRBORNE)/arch/lpc21/lpcusb/examples | ||
|
||
upload_ms ms.upload: ms | ||
$(PAPARAZZI_SRC)/sw/ground_segment/lpc21iap/lpc21iap $(AIRBORNE)/arch/lpc21/lpcusb/examples/msc.elf | ||
|
||
.PHONY: usb_lib bl upload_bl upload_jtag ms upload_ms lpc21iap upgrade_bl |
Oops, something went wrong.