build: do not hardcode endianess of a system

This commit is contained in:
Vladimir Stoiakin 2025-03-17 11:18:59 +03:00
parent 3196e47d51
commit 2627baeea3
4 changed files with 6 additions and 7 deletions

View file

@ -21,6 +21,7 @@ If a change only affects particular applications, they are listed in parentheses
- feat(buffyboard): Add a buffyboard.service systemd service (!34, @uninsane) - feat(buffyboard): Add a buffyboard.service systemd service (!34, @uninsane)
- fix(unl0kr): Select an available DRM device instead of a hard-coded one (!35, thanks @Sorcus) - fix(unl0kr): Select an available DRM device instead of a hard-coded one (!35, thanks @Sorcus)
- feat(unl0kr): Enable software rotation (!32, thanks @xs5871 & @craftyguy) - feat(unl0kr): Enable software rotation (!32, thanks @xs5871 & @craftyguy)
- misc: do not hardcode endianess of a system
## 3.2.0 (2024-06-03) ## 3.2.0 (2024-06-03)

View file

@ -313,9 +313,6 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
* COMPILER SETTINGS * COMPILER SETTINGS
*====================*/ *====================*/
/*For big endian systems set to 1*/
#define LV_BIG_ENDIAN_SYSTEM 0
/*Define a custom attribute to `lv_tick_inc` function*/ /*Define a custom attribute to `lv_tick_inc` function*/
#define LV_ATTRIBUTE_TICK_INC #define LV_ATTRIBUTE_TICK_INC

View file

@ -4,7 +4,11 @@ project('buffybox', 'c',
meson_version: '>= 0.59.0' meson_version: '>= 0.59.0'
) )
add_project_arguments('-DPROJECT_VERSION="@0@"'.format(meson.project_version()), language: 'c') add_project_arguments(
'-DPROJECT_VERSION="@0@"'.format(meson.project_version()),
'-DLV_BIG_ENDIAN_SYSTEM=' + (host_machine.endian() == 'big'? '1' : '0'),
language: 'c'
)
depinih = dependency('inih') depinih = dependency('inih')
deplibinput = dependency('libinput') deplibinput = dependency('libinput')

View file

@ -207,9 +207,6 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
* COMPILER SETTINGS * COMPILER SETTINGS
*====================*/ *====================*/
/*For big endian systems set to 1*/
#define LV_BIG_ENDIAN_SYSTEM 0
/*Define a custom attribute to `lv_tick_inc` function*/ /*Define a custom attribute to `lv_tick_inc` function*/
#define LV_ATTRIBUTE_TICK_INC #define LV_ATTRIBUTE_TICK_INC