Commit Graph

24 Commits

Author SHA1 Message Date
Dawid Wojtas
2ec5be1061 [BH-1822] Disable Address Sanitizer
Due to using wrappers for the glibc syscalls the ASAN
doesn't work well. We also had trouble with integrating this
tool with GCC12.
The ASAN is still available but is turned off by default.
Use -DLINUX_ENABLE_SANITIZER=ON to turn on.
Our recommendation is to use Valgrind as the runtime
profiling tool. It's added for visual studio code.
2023-11-20 16:45:28 +01:00
Bartosz
ccce9bb19f [MOS-724] CodeQL setup
added CodeQL setup, small fixes to CI
2022-10-19 15:59:32 +02:00
Mateusz Piesta
97e9d7b79f [BH-1449] Fix gui/eink dependencies
* Dependencies between service-gui and service-eink
have been correctly defined.
* System close routine was replaced with the sequential one
which should solve many bell issues.
* It also fixes BH-1406 and BH-1442.
* Fixed some weird CMake issues in module-audio and
several other modules.
* Fixed service-gui closing routine
* Removed unneeded messages/states from service-gui/eink.
* Enhanced app-mgr closing routine. Fixed closing action handling.
2022-04-26 13:47:12 +02:00
Marcin Smoczyński
bd90e57516 [BH-907] Split utils module into components
Split module-utils into smaller components for better dependency
management. Fix many dependencies throughout the project.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-23 15:14:40 +02:00
Marcin Smoczyński
b355d5ce00 [BH-733] Cleanup target dependencies
Remove obsolete target dependencies across modules.
Remove 'cross' and 'unittests' targets.
Refactor some remaining target dependencies to use board include macro.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-08-13 01:43:56 +02:00
Alek Rudnik
81c10ffbf5 [EGD-7143] Fix builds for GCC 11
Make sure our code base is buildable using GCC-11
Removed deprecated asan lib from Linux target.

Co-authored-by: Alek  <aleksander.rudnik@mudita.com>
Co-authored-by: Mateusz Piesta  <mateusz.piesta@mudita.com>
2021-08-02 13:05:10 +02:00
Wiktor S. Ovalle Correa
3fe2bff567 [EGD-3469] Fix assets and image creation
Preparing and copying of assets to the image was unreliable.
Switched from cmake mechanism to rsync, making resulting
scheme universal and reducing output folder pollution.
2021-04-09 12:47:57 +02:00
Wiktor S. Ovalle Correa
6b386720e8 [EGD-5289] Fix VFS folder mapping in emulator
Folder filtering prevented us from accessing /sys folder
of VFS image. This fix redirects all /sys references to
the image by default, requiring us to explicitly specify
all paths we want to redirect to Linux fs.
2021-02-17 17:05:32 +01:00
Lucjan Bryndza
97d865c070 [EGD-4330] file streams ld preload library (#982)
* [EGD-4330] file streams ld preload library

It is concept library LD_PRELOAD for handle syscalls wrapper to the
image fat file.

* [EGD-4330] Stdlib implementation

* [EGD-4330] Stdio syscalls

* [EGD-4330] Dir searching stdlib replacement

* [EGD-4330] NL at end of file

* [EGD-4261] Working version of library wrapper

* [EGD-4330] Script for run emulator on fs image

Run phone emulator using filesystem image

* [EGD-4261] Missing debug file

* [EGD-4330] Not needed to link...

* [EGD-4330] Code review fixes #1
    iosyscalls

* [EGD-4330] Code review fixes round #2

* [EGD-4330] Code review round #3

* Ident fixes

* [EGD-4330] Ident fixes

* [EGD-4330] Code review round #4

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-11-12 16:53:23 +01:00
Marcin Smoczyński
00a4afca1f build: add option to disable sanitizer
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-07-10 14:40:15 +02:00
Roman Kubiak
5ece8c807d VFS: fixes for linux sys/user (emulator does not see db files) 2020-06-18 15:49:43 +02:00
Marcin Smoczyński
7c12b266f5 build: use unsigned char for linux target
Use same signdness of char for both linux and rt1051.
2020-05-22 16:15:15 +02:00
Adam Dobrowolski
6d4b2aeb3a EGD-3055 Target_Linux populate asan to all targets build & linkage
With all flags linking of asan was failing in missing symbols
2020-04-08 12:23:53 +02:00
Przemyslaw Brudny
e7cb0cb579 [EGD-2978] Formatter cleanups 2020-03-20 14:28:57 +01:00
Przemyslaw Brudny
499d6ce5e1 [EGD-2978] Linux target build macro excluded 2020-03-20 14:28:57 +01:00
Przemyslaw Brudny
101bbb1c99 [EGD-2978] Basic SystemView import 2020-03-20 14:28:57 +01:00
pawel-mudita
d1665ed3ba [EGD-2855][EGD-2856] Parser for desktop app (#188)
* [EGD-2306] DESKTOP application initial commit

most of this code is foreign and unverified
it's low level magic numbers for the platform

on Linux i used PTY to simulate a serial line

* [EGD-2306] Add contact-list and contact-count commands

* [EGD-2306] Add command for geting contact by id and minor fixes

* [EGD-2856][WIP] Add basic serial parser

* [EGD-2855] Set usb device config buffer property cacheable

* [EGD-2856] Separate handlers from fsms, add status codes

* [EGD-2855] fd passed to state machine for linux renderer support

* [EGD-2856] Fix warnings

* [EGD-2855] New send task added and buffer queque

* [EGD-2856] Add simple ServiceDesktop documentation

* [EGD-2855] rt1051 worker refactor

* [EGD-2855] Added service workers for desktop app.
Changed linux USB driver mock up.
Added queue name mapping for service workers.
Added queue registry support (maybe redundant with mapping)

* [EGD-2855] Added proper message pointer to queue send and memory free
Added bsp driver namespace for linux and rt1051

* [EGD-2856] Major cleanup

* [EGD-2856] Fix typo

* [EGD-2856] Fix warnings

* [EGD-2856] Delete recursive fsm calling to prevent stack overflow

* [EGD-2856] Reduce http codes

* [EGD-2856] Rename serial parser to parser

* [EGD-2855] USB_CDC drives renames and cleanups
Service Worker queue cleanups

* [EGD-2855] Service Worker queue cleanups

* [EGD2855] Fixed external driver import

* [EGD-2856] Remove redundant message type

* [EGD-2856] Switch on enums instead of ints, and other minor changes requested after code review

* [EGD-2855] usb driver moved to bsp directory structure, pull request fixes

* [EGD-2855] clang #include fix

* [EGD-2856] Add tinyfsm as git submodule, update readme and minor fix

Co-authored-by: rkubiak01 <56821808+rkubiak01@users.noreply.github.com>
Co-authored-by: PrzeBrudny <60609703+PrzeBrudny@users.noreply.github.com>
2020-02-27 15:34:42 +01:00
Radoslaw Wicik
0400e5c18b [EGD-2886] Unify and repair build system. 2020-02-19 14:55:14 +01:00
rkubiak01
6735f85c8f [FEATURE] add -Werror to Linux and RT1051 targets 2020-01-29 05:26:23 -05:00
Mateusz
0fdec40051 WiP: linux audiocodec implementation 2019-07-22 12:12:32 +02:00
Robert Borzecki
eeef91b47f Displaying test image on eink. 2019-05-30 12:27:13 +02:00
Mati
1b627c49a8 Bug fixes 2019-05-08 15:07:32 +02:00
Mati
fbf99e73b8 cross compilation update, refactor 2019-05-08 13:07:58 +02:00
Mati
4244f83d78 Working cross-compilation 2019-05-07 15:41:20 +02:00