5210ba2acf
make: Improve dependency tracking for exe targets
...
- Add wildcarded linker scripts to dependencies
- Run flash-push only on current hex file
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-29 16:44:42 +00:00
9c773838c7
make: Improve flash-fetch targets
...
- Add support MCU_FLASH_BANK_NAME to support multiple banks
- Prefix binaries with TARGET_PRODUCT, if defined
- Fix flash data for stm32f769i-disco
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-29 13:32:16 +00:00
ed76759a42
defs-cpp.mk, mcu-defs.mk, rules.mk: Code beautification and re-ordering
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-22 21:43:16 +00:00
419d3b2a08
defs-cpp.mk, defs.mk, platform.mk: More cleanup to defs-cpp.mk
...
- Group more consistently into overall default choices, template cascade and
compiler flags
- Add definitions for st-nucleo-f103rb (for now)
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-20 15:06:25 +00:00
afffbd2566
defs-cpp.mk: Fix debug / optimize conditions for arm-none-eabi
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-20 13:49:11 +00:00
f09eb174ef
defs-cpp.mk, mcu-defs.mk, mcu-tags.mk: Dissolve mcu-tags.mk into defs-cpp.mk
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-19 13:16:53 +00:00
58ab619f0b
make: Rename CFLAGS, CXXFLAGS and CPPFLAGS variables
...
Rename CFLAGS and friends to follow the conventions of the implicit rules
defined by GNU Make:
- $(CPPFLAGS) is passed to both C++ and C compiler
- $(CXXFLAGS) is passed to C++ compiler only
- $(CFLAGS) is passed to C compiler only
- C++ compiler is in $(CXX)
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-19 07:07:00 +00:00
dcba7d68bd
make.mk: Minor code beautification
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-18 19:14:55 +00:00
4a5ae9c734
mcu-*.mk: Support arm-none-eabi / modm
...
This commit adds compiler flags needed for compilation with modm. Cleanup is
needed, most notably should mcu-tags.mk be dissolved into defs-cpp.mk. The good
part is that it works.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-18 17:35:18 +00:00
714cf468f3
Add more default flags for arm-none-eabi:
...
LIBTYPE ?= static
BUILD_CPPFLAGS += -fno-exceptions -fno-rtti
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-18 11:20:50 +00:00
0657d2104e
process-text-files.py: Change jw-python script directory
...
Don't require process-text-files.py to be copied to jw-python/bin to run.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-18 10:34:02 +00:00
bc7468894e
defs-dev.mk: Default USE_STACK_PROTECTOR to false
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-18 10:34:01 +00:00
2a9cdc5540
debugger.mk, defs-cpp.mk: More consistent compiler flags
...
Implement more consistent handling of flags -std=xx, -gdb, -gdwarf-x.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-18 10:31:15 +00:00
68f25261ba
make: Clean-indented makefiles
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-17 16:24:26 +00:00
aa87adad04
platform.mk: Fix undefined SYSTEM_LIBDIR variable
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-17 15:28:24 +00:00
526d559ca2
targets-tools.mk: Ongoing additions to clang-tidy target
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-17 15:17:58 +00:00
2ea96f88a8
targets-tools.mk: Ongoing additions to clang-tidy-xxx targets
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-17 15:11:14 +00:00
ed6e3fd70f
git-submod.mk: Include $(MODDIR)/make/defs.mk
...
If defs.mk isn't included, CWD is undefined, which leads to an
attempt to add the wrong submodule path upon initialization
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-17 15:10:22 +00:00
594becf931
Fix: CREATE_DEVEL wasn't set to true when it should
...
Fix a situation in which no devel RPM package was built
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-17 15:02:33 +00:00
0c11e65d9c
proj.mk: Rename classes in ytools / jw-cpp
...
Rename namespace:
CppUtils -> jw
Rename classes:
YError -> jw::Error
YLogger -> jw::Logger
YMutex -> jw::Mutex
YDebugMutex -> jw::DebugMutex
YSlogMetaData -> jw::LogMetaData
YTimeB -> jw::Time
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-16 14:48:16 +00:00
d8e76b4400
targets-tools.mk: Add some clang-tidy-xxx targets
...
Still to be refined
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-16 10:43:23 +00:00
d71e6f92f5
dev-utils.mk: Follow change in jw-python/process-text-files.py
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-16 10:42:42 +00:00
18e0fe0d28
pkg.sh: Default wrappers installed with log-install -L to Python 3
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-15 19:05:47 +00:00
275d33d78b
Fix: Libdl was statically linked by default
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-13 16:38:32 +00:00
4a1c5b94df
topdir.mk: Make git-init-remote more robust (at least in theory)
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-13 15:45:01 +00:00
5b38496ce1
lib.mk: Disable building of .so and friends if no .a is present
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-13 15:26:22 +00:00
4d9d10540b
topdir.mk: Use $(PROJECT) instead of $(RPM_PROJECT) for git
...
Identify the remote's name by $(PROJECT) instead of $(RPM_PROJECT) now.
Don't know the exact rationale for $(RPM_PROJECT), but in case of
arm-none-eabi-mcu-blink it was certainly wrong.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-13 12:37:25 +00:00
6f86a51783
mcu-defs.mk: Don't error out on clean target
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-13 12:18:12 +00:00
7eca86c5a1
defs.mk, mcu-defs.mk: Search for openocd config in search path
...
Add variables around MCU_OPENOCD_CFG_SEARCH_PATH and go search
config there
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-13 10:48:15 +00:00
ea7cb92324
defs-cpp.mk, rules.mk: New variables REAL_(CPP|C|LD)FLAGS
...
These variables denote the flags used in compiler and linker rules.
They are defined as REAL_(CPP|C|LD)FLAGS ?= BUILD_(CPP|C|LD)FLAGS
and provide a means to override the flags assembled cumulatively.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-13 08:59:20 +00:00
5aee508df9
defs-*.mk: Add USE_DISABLE_COMPILER_OPTIMISATION_OPTS
...
USE_DISABLE_COMPILER_OPTIMISATION_OPTS = true disables options targeted
at disabling optimization features, which were introduced to facilitate
debugging in the first place, but make the commandline harder to compare
to others while troubleshooting the compile process
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-13 08:53:56 +00:00
a65a1df971
defs-cpp.mk: Treat *.sx as valid extension for assembly sources
...
Now *.sx and *.S are treated as assembly source files.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-13 08:50:18 +00:00
3b75db2867
defs-cpp.mk: Some improvements for LIBTYPE=static
...
Still doesn't compile valdi statically against regular glibc
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-12 12:47:49 +00:00
74d53f9fb3
defs-cpp.mk: Add support for empty LIB_SO
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-12 12:10:16 +00:00
92d3d9c36d
topdir.mk: Remove target list-files et al
...
These are now in dev-utils.mk (which isn't included from topdir.mk)
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-12 11:52:39 +00:00
72e44f330c
dev-utils.mk: Allow calling process-text-files.mk from within tree
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-12 11:43:19 +00:00
4216943215
mcu-defs.mk, mcu-flash.mk: Ongoing improvements
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-12 11:38:19 +00:00
cd6b2d6778
defs-cpp.mk: Add CPP_FILT, OBJCOPY, OBJDUMP
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-12 11:37:44 +00:00
d79e8eee34
bin.mk: Allow for removal of subdirectories in clean target
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-12 11:36:34 +00:00
fe161ff4d6
py-defs.mk, py-mod.mk: Add support for Python3's __pycache__
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-12 11:35:49 +00:00
367dfb90c2
Fix: Basestring missing from python 3
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-10 15:34:08 +00:00
1e3d0f2c60
projects.py: Fix python3 glitches
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-10 15:23:23 +00:00
6c0c3af50f
projects.py: Remove reference to deprecated sets module
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-10 14:58:16 +00:00
e0adaa815d
projects.py: Remove bogus tabs
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-10 14:53:32 +00:00
c5f5a3bb41
git-submod.mk: Fix wrong GIT_REPO_URL
...
Fix wrong GIT_REPO_URL and allow repos without a master while
we're at it.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-09 12:29:32 +00:00
e66aa18e3f
defs.mk: Code beautification
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-09 11:49:40 +00:00
4e04a1aa07
mcu-exe.mk: Remove map file with clean target
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-09 11:38:29 +00:00
493be57057
projects-dir.mk Fix: JANWARE_USER from local.mk wasn't exported
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-09 11:03:45 +00:00
685d642b9e
topdir.mk: Topdir.mk add subdir exe as an alias for utils
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-06 12:48:28 +00:00
aa85417a17
Everywhere: Purge spaces in text files
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-06 12:38:20 +00:00