diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fabded01a90d2ecb8340058399bd7112f97dc1f..12e8b93a8f25c438ef44a3c32ee5bdb45504d177 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) - 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) +- misc: do not hardcode endianess of a system ## 3.2.0 (2024-06-03) diff --git a/buffyboard/lv_conf.h b/buffyboard/lv_conf.h index 23acdb9aa48f590daa4aec44952c88df4f1d9375..f711deda8aafb24147df17681ccf3a2343f8dafa 100644 --- a/buffyboard/lv_conf.h +++ b/buffyboard/lv_conf.h @@ -313,9 +313,6 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/ * 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 LV_ATTRIBUTE_TICK_INC diff --git a/meson.build b/meson.build index 042ab15cc0ad883565fee1827f67785d90d1dcf9..3cc51f48044476661732c460926a4099b79be12d 100644 --- a/meson.build +++ b/meson.build @@ -4,7 +4,11 @@ project('buffybox', 'c', 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') deplibinput = dependency('libinput') diff --git a/unl0kr/lv_conf.h b/unl0kr/lv_conf.h index d2597e2b2c7a5139e2337131ba12c8928d5a76c5..de6a8e232ad1064659430c539d7182871cb5b052 100644 --- a/unl0kr/lv_conf.h +++ b/unl0kr/lv_conf.h @@ -207,9 +207,6 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/ * 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 LV_ATTRIBUTE_TICK_INC