Commit Graph

98 Commits

Author SHA1 Message Date
Maciej Gibowicz
08651cef20 [BH-1716] Add versioning for private assets
Private assets will be versioned from now on. By modifying the
repository content we release a new version of the assets.
2024-08-06 13:34:45 +02:00
Lefucjusz
b468e90fe3 [BH-000] Workaround for CI/CD issue
Workaround for an issue that arised after
Jenkins has been migrated to new machine.
Because of some reason build would fail
on rsync'ing non-existent '.db-journal'
files - locally the same rsync works
perfectly fine.
These files are not needed anyway,
so temporary exclude them from
rsync.
This should be reverted after CI/CD
is fixed.
2024-06-06 13:18:31 +02:00
Lefucjusz
0f43423419 [MOS-996] Disable MTP protocol
Disable MTP file transfer protocol.
2023-10-26 16:20:09 +02:00
Mateusz Piesta
b6235923bf [BH-1595] USB charger detection issues
* Fixed issues with USB charging port detection
* Fixed memory leak in usb_stack/OS integration layer
* Fixed incorrect handling of software timer
* Minor cleaning/refactor.

[BH-1595] Turned off USB/PC charging

Charging enabled only for a dedicated charger. Users won't be able
to charger while connected to the PC.
2023-04-28 13:54:36 +02:00
Mateusz Piesta
10553e0567 [MOS-939] Apply target update scripts
* Removed old UDM-related update scripts that are no longer needed.
* Applied target update script
* Removed unneeded data folder from user partition
* Removed dummy personalization.json
2023-03-08 11:45:53 +01:00
Mateusz Piesta
a11a994f22 [MOS-922] Add database migration docs
* Added database migration docs
* Updated database migration tool
2023-03-01 09:34:51 +01:00
Mateusz Piesta
7bb2caed22 [MOS-297] Fixed release build for the simulator
Fixed.
2023-02-21 13:13:53 +01:00
Lefucjusz
5ac4d1e18c [MOS-000] Bump binaries and add Bell target
Change binary assets versions for both
products, fixed missing dependencies
in Bell's CMake, added 'Bell' target
that automatically builds the
image.
2023-01-19 16:41:56 +01:00
Mateusz Piesta
09bab001d0 [MOS-807] Update scripts
Added update scripts for both variants:
UDM update and further 'normal' updates.

Minor updates to the directories layout
2023-01-19 16:41:56 +01:00
Bartosz
ac78d44335 [MOS-835] Fix version.json entry
Renamed boot to os
2023-01-19 16:41:56 +01:00
Bartosz
f731cab807 [MOS-805] Prepare update package - rewritten script
Rewritten script for generating update package
2023-01-19 16:41:56 +01:00
Mateusz Piesta
6f05c75c88 [MOS-835] Per product layout of database migration scripts
Implemented DB init migration and version.json update
2023-01-19 16:41:56 +01:00
Lefucjusz
e33468f54f [MOS-783] Change boot.bin to os.bin
Change the confusing system binary name.
2023-01-19 16:41:56 +01:00
Bartosz
d13a51d044 [MOS-785] Reworked updater dependencies into recovery
Fixed usage of updater in OS build flow to use recovery
2023-01-19 16:41:56 +01:00
Bartosz
a4406ec5a7 [MOS-783] Fixed tests and simulator for Harmony
Fixed tests and simulator for Harmony
after implementation of new filesystem
structure.
2023-01-19 16:41:56 +01:00
Bartosz
e3912a6ba0 [MOS-783] Fix not adding development assets
Small fix for development assets
Fix for jenkins build - changed SSH to HTTPS clone
for pure-core
2023-01-19 16:41:56 +01:00
Lefucjusz
64ff02ab0f [MOS-783] Fixed issues with generating imgs
Fixed:
- improper block count in Harmony,
resulting in ~300MB unallocated space;
- invalid rsync parameters, resulting
in nested 'factory' directory structure
creation;
- minor fixes.
2023-01-19 16:41:56 +01:00
Lefucjusz
afd7e7bc2c [MOS-783] Working Pure simulator after partition changes
Fixed iosyscalls so that Pure simulator
works after directory structure changes.
2023-01-19 16:41:56 +01:00
Lefucjusz
178fba165e [MOS-783] First part of new dir structure implementation
Works:
    - generating .img for Pure;
    - Pure boots after flashing new image and
    seems to be working fine;

    Not yet:
    - generating update package;
    - generating image for Harmony;
    - simulator;
    - path-related unit tests fail
    due to paths being hardcoded
    in test scenarios.
2023-01-19 16:41:56 +01:00
Mateusz Piesta
902a3a315e [MOS-806] Prepare scripts dependencies
* Added scripts dependencies
* Added script to generate scripts package
automatically
* Added integration with PureOS CMake
* [MOS-804] Created factory reset script
2023-01-19 16:41:56 +01:00
Mateusz Piesta
0a9846e4a8 [MOS-694] Move DB initialization from OS to build scripts
* Switched to DB initialization at compile time
* Organized and cleaned up db files directories(not finished completely)
* Fixed DB related unit tests
* Minor improvements to CMake
* Small fixes for GCC12 build
2023-01-19 16:41:56 +01:00
Mateusz Piesta
150f1cfdef [CP-1560] New user directory structure
* New user directory implemented.
* Generate user directory structure at compile
time instead of at runtime(Pure/Harmony).
* Changed MTP root path to /storage
* FileIndexer: Minor refactor
* FileIndexer: Fixed handling incorrect/non-existing
scan directories.
* Updated Repository module to correctly handle
many assets paths.
* MultimediaDB: Minor unit tests refactor and fixed
some issues when using simulator.
* MultimediaDB: Added new queries and unit tests
* Harmony/Relaxation: Updated to correctly
use audio assets from more than one source.
* Harmony/Relaxation: Updated model and list items
provider.
* Harmony/Relaxation: Fixed stack overflow in audio service
2023-01-19 16:41:56 +01:00
Bartosz Cichocki
b78c70051e [MOS-555] Fix misspelled cmake variable
Misspelled variable could cause missing checksum for updater
2022-06-20 13:07:01 +02:00
Marcin Zieliński
adc10108c6 [MOS-477] Fix a typo in a build script
Fix a typo in a build script
2022-05-25 10:55:14 +02:00
Paweł Joński
059d6daf96 [BH-1454] Remove binary dependencies from linux build
Remove binary dependencies from linux build
2022-05-04 14:29:34 +02:00
Paweł Joński
40cddc1760 [MOS-288] Fix upgrade packages build
Rename json-target to match recent changes
2022-03-23 12:18:37 +01:00
Paweł Joński
e833690c8f [MOS-288] Add community build
Add community build
Add targets for community fonts
2022-03-22 12:40:15 +01:00
Adam Dobrowolski
053f270655 [MOS-282] Librarisation of services and test service
* options work a bit better ,now services and apps are
  selectable by option in cmake
* test service example added
* major documentation for module-services
* documentation for project configs and logs

Co-authored-by: Bartosz Cichocki <sp2fet@gmail.com>
Co-authored-by: Mateusz Piesta <mateusz.piesta@mudita.com>
2022-03-18 08:06:21 +01:00
Adam Dobrowolski
30487c6008 [MOS-110] Statistics api for system
Gets data from freertos and prints on frequency change depending
if it's important. Gathering is not costly, printing is though.
For less intrusive checks I would rather disable names gathering
as in worst case scenario it hangs rtos context switching till
thread id is found.
2022-02-17 16:46:56 +01:00
wojtekrzepecki
f0503057f7 [MOS-109] Add current measurement scope
added current measurement transfer over logs to plot
it on PC side
2022-02-14 13:00:47 +01:00
Adam Dobrowolski
e747fb15de [EGD-8032] Changed image compression to multithreaded one
As in description
2022-01-12 09:21:18 +01:00
Adam Dobrowolski
410af7e2e0 [EGD-8145] Download asset untaring accepts any relative path
download_asset.py:
    either ./ or none - both are proper relative paths
music assets are taken from the assets release
    Removed bell mp3 assets from MuditaOS repository
    Removed assets for PurePhone from the repository
2022-01-05 09:23:14 +01:00
Adam Dobrowolski
df7d19658c [EGD-8144] PurePhone assets split mechanism
As we do not have artifactory etc. we download public assets from
public repository.

download_asset mechanism:
* added tar with unpack for releases on github
* download script create parent directory
* When there is no parent directory - then create it, not the file as
  dir
* Lessened logs status
* download release files for Pure works ok
* added option to load multiple elements from tar
* added option to load stuff from own PC

CMake fixes:
* Add option to not pass Luts.bin to the image
* Added dependencies:
    * Assets cmake
    * DiskImage
    * Generall: dependencies instead of runtime globals
    * Fixed UT for bell

Added description file to fownload files:
* Files downloaded from MuditaOSPublicAssets repository Bell
* PurePhone assets copied to build dir not to image dir
* Added test assets and bell assets
* Luts and test assets unpacked to right place
* Luts proper on img on phone

EGD-8066 sq
2022-01-03 15:53:20 +01:00
Alek Rudnik
05c8d3117c [EGD-7860] Fix for call error flow
Make sure it is not possible to request a call twice.
Added new error windows for general call error and
no network connection.
Make sure there are no issues when call is requested
from external app e.g. from callog or phonebook.
2021-12-09 21:06:08 +01:00
Adam Dobrowolski
2fed826c28 [EGD-7947] Unified aproach for download_asset
Improved timing. Uses cached file for both json and direct
downloads if possible.
Improved logging. Clear information what's being downloaded.
Removed older script.
2021-11-18 16:16:25 +01:00
Adam Dobrowolski
22a4979d91 [EGD-7969] Added lacking dependencies in cmake
We didn't have proper dependency for assets
2021-11-15 19:01:27 +01:00
Bartosz Cichocki
3c21710bea [EGD-7969] Fix assets script
Luts were downloaded to the wrong directory
2021-11-15 19:01:27 +01:00
Adam Dobrowolski
c467dc9a2f [EGD-7932] Added downloader for assets for Bell
With this all fonts and Luts bin are downloaed for other repo which
is closed from others. With minimum changes to our cmake and flow
Added cache dir as set in cmake for CI
CI has to use common cache to not download data all the time
Jenkinsfile updated to install lacking dependency
2021-11-10 16:54:36 +01:00
Bartosz Cichocki
260c2a57c7 [EGD-7912] Add signing update package SHA
To fully operate on signed packages we have to sign checksum
2021-11-05 12:20:35 +01:00
Bartosz Cichocki
0887d73b2c [EGD-7912] Enable sign script for CI in CMake
Enabled possibility to sign boot.bin via CI scripts
2021-11-04 11:07:38 +01:00
Adam Dobrowolski
c31c1f23c2 [EGD-7753] Predefined upadter and bootloader versions in cmake
So that we would be able to select proper Uptader and Bootloader
as well as modify them in configuration on demand
2021-10-25 23:34:14 +02:00
Jakub Pyszczak
0d501a63c0 [EGD-7849] Enabled sensitive data in dev build
Sensitive data are enabled by default in developer build.
2021-10-25 13:21:49 +01:00
Marek Niepieklo
a08a2d57cf [CP-747] Make the disk image depend on the version.json target
Added version.json as dependancy for disk image
2021-10-21 10:09:13 +02:00
Adam Dobrowolski
042b15d4c6 [EGD-7764] Cpack script naming update
Take set OS version not CMake project version
2021-10-20 10:11:36 +02:00
Marek Niepieklo
a0677af340 [CP-615] Update existing backup/restore implementation in OS
[CP-648] Handle updated API requests

Updated B&R to handle new API
Extended error reporting
Backup/Restore code clean up

[CP-649] Check OS version compatibility during restore
Added check of OS and backup versions
Fixed adding of version.json to PurePhone.img
2021-10-11 16:19:20 +02:00
Lucjan Bryndza
67c5de4da6 [EGD-7741] Cmake changes in the lwext4 project
Cmake changes in the LWEXT4 project

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-10-07 14:39:28 +02:00
Adam Dobrowolski
d1d34e558b [CP-688] Changed cmake so that it would accept version as parameter
We are guessing verion in scripts, when we should take it as parameter
2021-10-05 17:36:34 +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
Piotr Tański
ac7a942045 [CP-583] Update failure due to version.json on the phone
Added version.json to the image

(cherry picked from commit 395e99e162)
2021-09-15 19:18:58 +02:00
Marek Niepieklo
f4821943b1 [EGD-7224] Add option to enable/disable USB MTP
Added CMake option to enable/disable USB MTP
2021-09-08 14:42:09 +02:00