Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lufa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Strand
lufa
Commits
2fcd50ad
Commit
2fcd50ad
authored
9 years ago
by
Dean Camera
Browse files
Options
Downloads
Patches
Plain Diff
Fix C++ builds, XPLAINBridge project.
parent
09b6c805
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
LUFA/Build/lufa_build.mk
+8
-4
8 additions, 4 deletions
LUFA/Build/lufa_build.mk
Projects/XPLAINBridge/makefile
+3
-3
3 additions, 3 deletions
Projects/XPLAINBridge/makefile
with
11 additions
and
7 deletions
LUFA/Build/lufa_build.mk
+
8
−
4
View file @
2fcd50ad
...
...
@@ -66,15 +66,19 @@ else ifeq ($(ARCH), UC3)
$(
warning
The UC3 device support is currently EXPERIMENTAL
(
incomplete and/or non-functional
)
, and is included
for
preview purposes only.
)
endif
#
LUFA specific standard build op
tions
C_FLAG
S
+
=
-I
.
-I
$(
patsubst %/,%,
$(
LUFA_PATH
))
/..
C_FLAG
S
+
=
-DARCH
=
ARCH_
$(
ARCH
)
-DBOARD
=
BOARD_
$(
BOARD
)
-DF_USB
=
$(
F_USB
)
UL
#
Common LUFA C/C++ includes/defini
tions
LUFA_CXX_INCLUDE
S
=
-I
.
-I
$(
patsubst %/,%,
$(
LUFA_PATH
))
/..
LUFA_CXX_DEFINE
S
=
-DARCH
=
ARCH_
$(
ARCH
)
-DBOARD
=
BOARD_
$(
BOARD
)
-DF_USB
=
$(
F_USB
)
UL
# This flag is required for bootloaders as GCC will emit invalid jump table
# assembly code for devices with large amounts of flash; the jump table target
# is extracted from FLASH without using the correct ELPM instruction, resulting
# in a pseudo-random jump target.
C_FLAGS
+=
-fno-jump-tables
LUFA_CXX_FLAGS
=
-fno-jump-tables
# LUFA specific standard build options
C_FLAGS
+=
$(
LUFA_CXX_INCLUDES
)
$(
LUFA_CXX_DEFINES
)
$(
LUFA_CXX_FLAGS
)
CPP_FLAGS
+=
$(
LUFA_CXX_INCLUDES
)
$(
LUFA_CXX_DEFINES
)
$(
LUFA_CXX_FLAGS
)
DMBS_PATH
:=
$(
LUFA_PATH
)
/Build/DMBS/DMBS
include
$(DMBS_PATH)/gcc.mk
This diff is collapsed.
Click to expand it.
Projects/XPLAINBridge/makefile
+
3
−
3
View file @
2fcd50ad
...
...
@@ -31,13 +31,13 @@ LD_FLAGS =
# Default target
all
:
OBJDIR
:=
obj
# Since this project borrows files from the AVRISP-MKII project which may also have an
# identical OBJDIR directory, we need to enforce the use of this project's object file
# directory as the one where the build object files are to be stored by pre-pending the
# absolute path of the current project to the OBJDIR variable.
ifneq
($(OBJDIR),)
override
OBJDIR
:=
$(
shell
pwd
)
/
$(
OBJDIR
)
endif
# Include LUFA build script makefiles
include
$(LUFA_PATH)/Build/lufa_core.mk
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment