forked from mfulz_github/qmk_firmware
Update build test "ModuleTest" to check platform drivers where possible. Add missing copyright/license headers.
This commit is contained in:
parent
b7f4370c8e
commit
0e4ece1d1d
|
@ -1,3 +1,36 @@
|
||||||
|
/*
|
||||||
|
LUFA Library
|
||||||
|
Copyright (C) Dean Camera, 2012.
|
||||||
|
|
||||||
|
dean [at] fourwalledcubicle [dot] com
|
||||||
|
www.lufa-lib.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
|
software and its documentation for any purpose is hereby granted
|
||||||
|
without fee, provided that the above copyright notice appear in
|
||||||
|
all copies and that both that the copyright notice and this
|
||||||
|
permission notice and warranty disclaimer appear in supporting
|
||||||
|
documentation, and that the name of the author not be used in
|
||||||
|
advertising or publicity pertaining to distribution of the
|
||||||
|
software without specific, written prior permission.
|
||||||
|
|
||||||
|
The author disclaim all warranties with regard to this
|
||||||
|
software, including all implied warranties of merchantability
|
||||||
|
and fitness. In no event shall the author be liable for any
|
||||||
|
special, indirect or consequential damages or any damages
|
||||||
|
whatsoever resulting from loss of use, data or profits, whether
|
||||||
|
in an action of contract, negligence or other tortious action,
|
||||||
|
arising out of or in connection with the use or performance of
|
||||||
|
this software.
|
||||||
|
*/
|
||||||
|
|
||||||
|
.section .text
|
||||||
|
|
||||||
|
|
||||||
# Mandatory entry point for successful compilation and link
|
# Mandatory entry point for successful compilation and link
|
||||||
.global main
|
.global main
|
||||||
main:
|
main:
|
||||||
|
|
|
@ -1,3 +1,33 @@
|
||||||
|
/*
|
||||||
|
LUFA Library
|
||||||
|
Copyright (C) Dean Camera, 2012.
|
||||||
|
|
||||||
|
dean [at] fourwalledcubicle [dot] com
|
||||||
|
www.lufa-lib.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
|
software and its documentation for any purpose is hereby granted
|
||||||
|
without fee, provided that the above copyright notice appear in
|
||||||
|
all copies and that both that the copyright notice and this
|
||||||
|
permission notice and warranty disclaimer appear in supporting
|
||||||
|
documentation, and that the name of the author not be used in
|
||||||
|
advertising or publicity pertaining to distribution of the
|
||||||
|
software without specific, written prior permission.
|
||||||
|
|
||||||
|
The author disclaim all warranties with regard to this
|
||||||
|
software, including all implied warranties of merchantability
|
||||||
|
and fitness. In no event shall the author be liable for any
|
||||||
|
special, indirect or consequential damages or any damages
|
||||||
|
whatsoever resulting from loss of use, data or profits, whether
|
||||||
|
in an action of contract, negligence or other tortious action,
|
||||||
|
arising out of or in connection with the use or performance of
|
||||||
|
this software.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <LUFA/Common/Common.h>
|
#include <LUFA/Common/Common.h>
|
||||||
|
|
||||||
#include <LUFA/Drivers/USB/USB.h>
|
#include <LUFA/Drivers/USB/USB.h>
|
||||||
|
@ -14,6 +44,9 @@
|
||||||
#include <LUFA/Drivers/Peripheral/Serial.h>
|
#include <LUFA/Drivers/Peripheral/Serial.h>
|
||||||
#include <LUFA/Drivers/Peripheral/SPI.h>
|
#include <LUFA/Drivers/Peripheral/SPI.h>
|
||||||
#include <LUFA/Drivers/Peripheral/SerialSPI.h>
|
#include <LUFA/Drivers/Peripheral/SerialSPI.h>
|
||||||
#elif (ARCH == ARCH_UC3)
|
|
||||||
|
|
||||||
|
#include <LUFA/Platform/XMEGA/ClockManagement.h>
|
||||||
|
#elif (ARCH == ARCH_UC3)
|
||||||
|
#include <LUFA/Platform/UC3/ClockManagement.h>
|
||||||
|
#include <LUFA/Platform/UC3/InterruptManagement.h>
|
||||||
#endif
|
#endif
|
|
@ -1 +1,31 @@
|
||||||
|
/*
|
||||||
|
LUFA Library
|
||||||
|
Copyright (C) Dean Camera, 2012.
|
||||||
|
|
||||||
|
dean [at] fourwalledcubicle [dot] com
|
||||||
|
www.lufa-lib.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
|
software and its documentation for any purpose is hereby granted
|
||||||
|
without fee, provided that the above copyright notice appear in
|
||||||
|
all copies and that both that the copyright notice and this
|
||||||
|
permission notice and warranty disclaimer appear in supporting
|
||||||
|
documentation, and that the name of the author not be used in
|
||||||
|
advertising or publicity pertaining to distribution of the
|
||||||
|
software without specific, written prior permission.
|
||||||
|
|
||||||
|
The author disclaim all warranties with regard to this
|
||||||
|
software, including all implied warranties of merchantability
|
||||||
|
and fitness. In no event shall the author be liable for any
|
||||||
|
special, indirect or consequential damages or any damages
|
||||||
|
whatsoever resulting from loss of use, data or profits, whether
|
||||||
|
in an action of contract, negligence or other tortious action,
|
||||||
|
arising out of or in connection with the use or performance of
|
||||||
|
this software.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "Modules.h"
|
#include "Modules.h"
|
|
@ -1 +1,31 @@
|
||||||
|
/*
|
||||||
|
LUFA Library
|
||||||
|
Copyright (C) Dean Camera, 2012.
|
||||||
|
|
||||||
|
dean [at] fourwalledcubicle [dot] com
|
||||||
|
www.lufa-lib.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
|
software and its documentation for any purpose is hereby granted
|
||||||
|
without fee, provided that the above copyright notice appear in
|
||||||
|
all copies and that both that the copyright notice and this
|
||||||
|
permission notice and warranty disclaimer appear in supporting
|
||||||
|
documentation, and that the name of the author not be used in
|
||||||
|
advertising or publicity pertaining to distribution of the
|
||||||
|
software without specific, written prior permission.
|
||||||
|
|
||||||
|
The author disclaim all warranties with regard to this
|
||||||
|
software, including all implied warranties of merchantability
|
||||||
|
and fitness. In no event shall the author be liable for any
|
||||||
|
special, indirect or consequential damages or any damages
|
||||||
|
whatsoever resulting from loss of use, data or profits, whether
|
||||||
|
in an action of contract, negligence or other tortious action,
|
||||||
|
arising out of or in connection with the use or performance of
|
||||||
|
this software.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "Modules.h"
|
#include "Modules.h"
|
|
@ -13,6 +13,9 @@
|
||||||
# application.
|
# application.
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
@echo Executing build test "ModuleTest".
|
||||||
|
@echo
|
||||||
|
|
||||||
$(MAKE) -f makefile.avr8 clean
|
$(MAKE) -f makefile.avr8 clean
|
||||||
$(MAKE) -f makefile.avr8
|
$(MAKE) -f makefile.avr8
|
||||||
|
|
||||||
|
@ -22,6 +25,9 @@ all:
|
||||||
$(MAKE) -f makefile.uc3 clean
|
$(MAKE) -f makefile.uc3 clean
|
||||||
$(MAKE) -f makefile.uc3
|
$(MAKE) -f makefile.uc3
|
||||||
|
|
||||||
|
@echo Build test "ModuleTest" complete.
|
||||||
|
@echo
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -f makefile.avr8 clean
|
$(MAKE) -f makefile.avr8 clean
|
||||||
$(MAKE) -f makefile.xmega clean
|
$(MAKE) -f makefile.xmega clean
|
||||||
|
|
|
@ -120,7 +120,8 @@ CPPSRC = Test_CPP.cpp
|
||||||
# Even though the DOS/Win* filesystem matches both .s and .S the same,
|
# Even though the DOS/Win* filesystem matches both .s and .S the same,
|
||||||
# it will preserve the spelling of the filenames, and gcc itself does
|
# it will preserve the spelling of the filenames, and gcc itself does
|
||||||
# care about how the name is spelled on its command-line.
|
# care about how the name is spelled on its command-line.
|
||||||
ASRC = Dummy.S
|
ASRC = Dummy.S \
|
||||||
|
$(LUFA_PATH)/LUFA/Platform/UC3/Exception.S
|
||||||
|
|
||||||
|
|
||||||
# Optimization level, can be [0, 1, 2, 3, s].
|
# Optimization level, can be [0, 1, 2, 3, s].
|
||||||
|
@ -225,7 +226,7 @@ CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
|
||||||
# files -- see avr-libc docs [FIXME: not yet described there]
|
# files -- see avr-libc docs [FIXME: not yet described there]
|
||||||
# -listing-cont-lines: Sets the maximum number of continuation lines of hex
|
# -listing-cont-lines: Sets the maximum number of continuation lines of hex
|
||||||
# dump that will be displayed for a given single line of source input.
|
# dump that will be displayed for a given single line of source input.
|
||||||
ASFLAGS = $(ADEFS) -Wa,-adhlns=$(<:%.S=$(OBJDIR)/%.lst),-gstabs,--listing-cont-lines=100
|
ASFLAGS = $(ADEFS) -Wa,-adhlns=$(<:%.S=$(OBJDIR)/%.lst)
|
||||||
|
|
||||||
|
|
||||||
#---------------- Linker Options ----------------
|
#---------------- Linker Options ----------------
|
||||||
|
|
|
@ -28,6 +28,9 @@
|
||||||
this software.
|
this software.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
.section .text
|
||||||
|
|
||||||
|
|
||||||
# Mandatory entry point for successful compilation and link
|
# Mandatory entry point for successful compilation and link
|
||||||
.global main
|
.global main
|
||||||
main:
|
main:
|
||||||
|
|
|
@ -13,6 +13,9 @@
|
||||||
# application.
|
# application.
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
@echo Executing build test "SingleUSBModeTest".
|
||||||
|
@echo
|
||||||
|
|
||||||
$(MAKE) -f makefile.avr8 clean
|
$(MAKE) -f makefile.avr8 clean
|
||||||
$(MAKE) -f makefile.avr8 LUFA_OPTS='-D USB_DEVICE_ONLY'
|
$(MAKE) -f makefile.avr8 LUFA_OPTS='-D USB_DEVICE_ONLY'
|
||||||
$(MAKE) -f makefile.avr8 clean
|
$(MAKE) -f makefile.avr8 clean
|
||||||
|
@ -26,6 +29,9 @@ all:
|
||||||
$(MAKE) -f makefile.uc3 clean
|
$(MAKE) -f makefile.uc3 clean
|
||||||
$(MAKE) -f makefile.uc3 LUFA_OPTS='-D USB_HOST_ONLY'
|
$(MAKE) -f makefile.uc3 LUFA_OPTS='-D USB_HOST_ONLY'
|
||||||
|
|
||||||
|
@echo Build test "SingleUSBModeTest" complete.
|
||||||
|
@echo
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -f makefile.avr8 clean
|
$(MAKE) -f makefile.avr8 clean
|
||||||
$(MAKE) -f makefile.xmega clean
|
$(MAKE) -f makefile.xmega clean
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
makefile
2
makefile
|
@ -21,7 +21,5 @@ all:
|
||||||
$(MAKE) -C Demos $@ -s
|
$(MAKE) -C Demos $@ -s
|
||||||
$(MAKE) -C Projects $@ -s
|
$(MAKE) -C Projects $@ -s
|
||||||
$(MAKE) -C Bootloaders $@ -s
|
$(MAKE) -C Bootloaders $@ -s
|
||||||
$(MASK) -C BuildTests $@ -s
|
|
||||||
@echo
|
@echo
|
||||||
@echo LUFA \"make $@\" operation complete.
|
@echo LUFA \"make $@\" operation complete.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue