mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 00:58:14 +00:00
RPM: Build native-tft target (#6613)
This commit is contained in:
parent
5ab1db0142
commit
c6e5ec055f
@ -42,6 +42,10 @@ BuildRequires: pkgconfig(openssl)
|
|||||||
BuildRequires: pkgconfig(liborcania)
|
BuildRequires: pkgconfig(liborcania)
|
||||||
BuildRequires: pkgconfig(libyder)
|
BuildRequires: pkgconfig(libyder)
|
||||||
BuildRequires: pkgconfig(libulfius)
|
BuildRequires: pkgconfig(libulfius)
|
||||||
|
# TFT components:
|
||||||
|
BuildRequires: pkgconfig(x11)
|
||||||
|
BuildRequires: pkgconfig(libinput)
|
||||||
|
BuildRequires: pkgconfig(xkbcommon-x11)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Meshtastic daemon for controlling Meshtastic devices. Meshtastic is an off-grid
|
Meshtastic daemon for controlling Meshtastic devices. Meshtastic is an off-grid
|
||||||
@ -55,12 +59,12 @@ tar -xf %{SOURCE1} -C web
|
|||||||
gzip -dr web
|
gzip -dr web
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Use the “native” environment from platformio to build a Linux binary
|
# Use the “native-tft” environment from platformio to build a Linux binary
|
||||||
platformio run -e native
|
platformio run -e native-tft
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_sbindir}
|
mkdir -p %{buildroot}%{_sbindir}
|
||||||
install -m 0755 .pio/build/native/program %{buildroot}%{_sbindir}/meshtasticd
|
install -m 0755 .pio/build/native-tft/program %{buildroot}%{_sbindir}/meshtasticd
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/meshtasticd
|
mkdir -p %{buildroot}%{_sysconfdir}/meshtasticd
|
||||||
install -m 0644 bin/config-dist.yaml %{buildroot}%{_sysconfdir}/meshtasticd/config.yaml
|
install -m 0644 bin/config-dist.yaml %{buildroot}%{_sysconfdir}/meshtasticd/config.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user