1
0

26 Commits

Author SHA1 Message Date
Gergely Nagy
c6d9e5bc88 Generate virtual/boards.txt from avr/boards.txt instead of linking them
When building the virtual boards, we want to have the base core as
`keyboardio:arduino`, instead of `arduino:arduino`, because we provide the base
ourselves. To this end, instead of symlinking `avr/boards.txt` and
`virtual/boards.txt`, generate the latter from the former.

Once we have other architectures, such as SAMD, we can concat all the boards.txt
files and do the same `base.core` replacements.

This is a pre-requisite for keyboardio/Kaleidoscope#851.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2020-06-11 23:17:33 +02:00
Jesse Vincent
35a230e18d
Merge pull request #26 from CapeLeidokos/build_flags
Moved gcc extra flags from kaleidoscope-builder to platform.txt
2020-01-20 16:58:07 -08:00
Florian Fleissner
322ea583de Moved gcc extra flags from kaleidoscope-builder to platform.txt
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2020-01-16 16:11:25 +01:00
Florian Fleissner
8879b38ce1 Added map file creation
A linker .map file will be created as an additional build artifact.
This map file can be used for debugging symbol issues or for
firmware post-processing.

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2020-01-16 15:52:12 +01:00
Florian Fleissner
7201f5a57d Added missing ctag fix to virtual/platform.txt
That part is just copied over from avr/platform.txt

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-12-12 13:58:05 +01:00
Florian Fleissner
7708c601a9 Adds build recipe to paste header/footer to sketch
This change adds a build recipe that pastes a header and footer file
to the preprocessed sketch file.

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-12-12 13:57:47 +01:00
Jesse Vincent
2997644d22
astyle 2019-12-05 12:04:13 -08:00
Florian Fleissner
fd1e397a3e
Removed inaccessible members
Those members cause compiler warnings when using recent
compilers. The members are unused and can be safely removed as
they are inaccessible to derived classes.

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-12-05 12:04:11 -08:00
Florian Fleissner
fb9b1bdff9
Virtual EEPROM implementation moved over to virtual device
Only the virtual device knows about the size of its
EEPROM storage. Including device headers in the virtual
core is not intended (and technical not possible).

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-12-05 12:03:29 -08:00
Florian Fleissner
638306d7b3
Removed unused virtual/cores/mcu/atmega32u4.h
This file was introduced during an earlier stage of the
work on implementing a general virtual hardware. After
Kaleidoscope's device API redesign it is no more required.

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-12-05 12:01:11 -08:00
Florian Fleissner
cf878783ad
Turned the virtual architectures virtual core to an arduino core
This makes the build much simpler as the FQBN
can now e.g. be given as keyboardio:virtual:model01
and the build process will automatically find the
virtual arduino core in virtual/cores/arduino

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-12-05 12:00:43 -08:00
Florian Fleissner
4e1e0693e0
Fixed compiler command line for virtual builds
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-12-05 12:00:42 -08:00
Florian Fleissner
9949308aa9
virtual arch now shares boards.txt with avr arch
Generated a symbolic link from virtual/boards.txt to avr/boards.txt

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-12-05 12:00:39 -08:00
Jesse Vincent
8fe8470067
Blindly pull all plugins up to current 2019-12-05 11:13:27 -08:00
Jesse Vincent
5b9b07b881
Try to make the 'virtual' keyboards less appealing than the real ones,
to not confuse users. Also comment out all the non-model-01s for the
moment
2019-08-20 14:16:53 -07:00
Jesse Vincent
e4466abe92
Rename the 'virtual' keyboards section 2019-08-20 14:03:27 -07:00
Florian Fleissner
f748470608 Protected virtual build system against link order problems
This considers improvements that already had been considered for the avr
architecture.

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-07-07 14:31:35 -07:00
Florian Fleissner
3fd900f7d6 Renamed ARDUINO_VIRUTAL to KALEIDOSCOPE_VIRTUAL_BUILD
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-07-07 14:31:10 -07:00
Florian Fleissner
8a8e5512bc Removed flag -Os for virtual builds
The virtual hardware is among other purposses meant
to be used for debugging firmware issues.

The flag -Os optimizes out specific information that makes
proper debugging difficult in some situations.

Also, the virtual hardware does not come with restrictions
in terms of PROGMEM. That's why space efficiency is not needed there.

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-07-07 14:30:41 -07:00
Florian Fleissner
2acc10f5d6 Restructured the virtual hardware
Some parts were moved over from Kaleidoscope-Hardware-Virtual.
The virtual hardware is now a drop in for the real
pluggable USB interface.

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-07-07 14:30:33 -07:00
Florian Fleissner
bfe2fc9d3e Added a weak callback for command line parsing
Consumer code can access the command line via
an additional callback of the virtual hardware.
This makes it possible to access the name of
the executable that is currently executed.

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-07-07 14:30:25 -07:00
Florian Fleissner
72b0f91c6c Added directory preservation dummy files to virtual variant dirs
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-07-07 14:30:17 -07:00
Florian Fleissner
904f06de09 Run the testing executable of virtual builds as a build step
By this means it is possible to simplify running automatic
simulation based testing with virtual firmare builds.

If a firmware sketch defines a test function it will
be executed.

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-07-07 14:30:08 -07:00
Florian Fleissner
61ac4a1586 Added optional execution of a testing function.
Through a command line parameter, the virtual
firmware executable can be instructed to execute
a testing function instead of processing
stdin/stdout I/O.

This can be used to attach an external
testing interface.

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-07-07 14:29:57 -07:00
Florian Fleissner
cc38d157ae Enable c++ exceptions in virtual builds
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-07-07 14:29:48 -07:00
Florian Fleissner
6e5eee72bd Renamed hardward x86 -> virtual
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-07-07 14:29:38 -07:00