Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
60a2147a
Commit
60a2147a
authored
Jun 03, 2012
by
Dean Camera
Browse files
Correct BuildTest makefiles to use LUFA_PATH rather than LUFA_ROOT_PATH.
parent
c7344c22
Changes
5
Hide whitespace changes
Inline
Side-by-side
BuildTests/BoardDriverTest/makefile
View file @
60a2147a
...
...
@@ -11,8 +11,8 @@
# possible board targets using their respective
# compiler.
# Path to the
root of the LUFA tree to scan
LUFA_
ROOT_
PATH
=
../..
# Path to the
LUFA library core
LUFA_PATH
=
../..
/LUFA/
all
:
begin makeboardlist testboards clean end
...
...
@@ -26,7 +26,7 @@ end:
@
echo
makeboardlist
:
@
grep
"BOARD_"
$(
LUFA_ROOT
_PATH)
/LUFA
/Common/BoardTypes.h |
cut
-d
'#'
-f2
|
cut
-d
' '
-f2
|
grep
"BOARD_"
>
BoardList.txt
@
grep
"BOARD_"
$(
patsubst
%/,%,
$(LUFA
_PATH)
)
/Common/BoardTypes.h |
cut
-d
'#'
-f2
|
cut
-d
' '
-f2
|
grep
"BOARD_"
>
BoardList.txt
testboards
:
@
echo
"buildtest:"
>
BuildMakefile
...
...
@@ -63,4 +63,4 @@ clean:
.PHONY
:
all begin end makeboardlist testboards clean
# Include LUFA build script makefiles
include
$(LUFA_
ROOT_PATH)/LUFA
/Build/lufa.core.in
include
$(LUFA_
PATH)
/Build/lufa.core.in
BuildTests/BootloaderTest/makefile
View file @
60a2147a
...
...
@@ -10,8 +10,8 @@
# test attempts to build all the bootloaders
# with all supported device configurations.
# Path to the
root of the LUFA tree to scan
LUFA_
ROOT_
PATH
=
../..
# Path to the
LUFA library core
LUFA_PATH
=
../..
/LUFA/
all
:
begin testbootloaders clean end
...
...
@@ -44,7 +44,7 @@ testbootloaders:
printf
"Found bootloader configuration for bootloader '%s' (FLASH: %3s KB | BOOT: %3s KB | MCU: %12s / %4s)
\n
"
$$
build_bootloader
$$
build_flashsize
$$
build_bootsize
$$
build_mcu
$$
build_arch
;
\
\
printf
"
\t
@echo Building bootloader %s - %s - FLASH: %s KB, BOOT: %s KB
\n
"
$$
build_bootloader
$$
build_mcu
$$
build_flashsize
$$
build_bootsize
>>
BuildMakefile
;
\
printf
"
\t
$(MAKE)
-s -C
$(
LUFA_ROOT
_PATH)
/Bootloaders/%s/ clean elf ARCH=%s MCU=%s BOARD=%s FLASH_SIZE_KB=%s BOOT_SECTION_SIZE_KB=%s
\n\n
"
$$
build_bootloader
$$
build_arch
$$
build_mcu
$$
build_board
$$
build_flashsize
$$
build_bootsize
>>
BuildMakefile
;
\
printf
"
\t
$(MAKE)
-s -C
$(
patsubst
%/,%,
$(LUFA
_PATH)
)
/..
/Bootloaders/%s/ clean elf ARCH=%s MCU=%s BOARD=%s FLASH_SIZE_KB=%s BOOT_SECTION_SIZE_KB=%s
\n\n
"
$$
build_bootloader
$$
build_arch
$$
build_mcu
$$
build_board
$$
build_flashsize
$$
build_bootsize
>>
BuildMakefile
;
\
fi
;
\
done
< BootloaderDeviceMap.cfg
...
...
@@ -58,4 +58,4 @@ clean:
.PHONY
:
all begin end testbootloaders clean
# Include LUFA build script makefiles
include
$(LUFA_
ROOT_PATH)/LUFA
/Build/lufa.core.in
include
$(LUFA_
PATH)
/Build/lufa.core.in
BuildTests/ModuleTest/makefile
View file @
60a2147a
...
...
@@ -12,6 +12,8 @@
# all module headers in a simple C and C++
# application.
# Path to the LUFA library core
LUFA_PATH
=
../../LUFA/
# List of device families per architecture, one device per architecture sub-family
AVR8_FAMILIES
=
at90usb1287 at90usb1286 atmega16u4 atmega16u2 at90usb162
...
...
@@ -55,4 +57,4 @@ clean:
.PHONY
:
all arch_avr8 arch_xmega arch_uc3 begin end
# Include LUFA build script makefiles
include
$(LUFA_
ROOT_PATH)/LUFA
/Build/lufa.core.in
include
$(LUFA_
PATH)
/Build/lufa.core.in
BuildTests/SingleUSBModeTest/makefile
View file @
60a2147a
...
...
@@ -12,6 +12,9 @@
# all module headers in a simple C and C++
# application.
# Path to the LUFA library core
LUFA_PATH
=
../../LUFA/
all
:
begin compile clean end
begin
:
...
...
@@ -41,4 +44,4 @@ clean:
.PHONY
:
begin end compile clean
# Include LUFA build script makefiles
include
$(LUFA_
ROOT_PATH)/LUFA
/Build/lufa.core.in
include
$(LUFA_
PATH)
/Build/lufa.core.in
BuildTests/StaticAnalysisTest/makefile
View file @
60a2147a
...
...
@@ -8,14 +8,15 @@
# Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool.
LUFA_ROOT_PATH
=
../..
# Path to the LUFA library core
LUFA_PATH
=
../../LUFA/
CPPCHECK_EXCLUDES
=
FATFs/
\
PetiteFATFs/
\
uip/
CPPCHECK_INCLUDES
=
$(
LUFA_ROOT
_PATH)
/LUFA
/CodeTemplates/
\
$(
LUFA_ROOT
_PATH)/Projects/AVRISP-MKII/
CPPCHECK_PATH
=
$(
LUFA_ROOT
_PATH)
CPPCHECK_INCLUDES
=
$(
patsubst
%/,%,
$(LUFA
_PATH)
)
/CodeTemplates/
\
$(
patsubst
%/,%,$(LUFA
_PATH)
)/..
/Projects/AVRISP-MKII/
CPPCHECK_PATH
=
$(
patsubst
%/,%,
$(LUFA
_PATH)
)
/..
all
:
begin cppcheck-config cppcheck end
...
...
@@ -32,5 +33,5 @@ end:
.PHONY
:
all begin end
# Include LUFA build script makefiles
include
$(LUFA_ROOT_PATH)/LUFA/Build/lufa.core.in
include
$(LUFA_ROOT_PATH)/LUFA/Build/lufa.cppcheck.in
\ No newline at end of file
include
$(LUFA_PATH)/Build/lufa.core.in
include
$(LUFA_PATH)/Build/lufa.cppcheck.in
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment