***
Did the following edits:
$ nano -l src/common.make
Code:
7 CPP_FLAGS=-pthread -lpthread -fdata-sections -ffunction-sections -Wno-narrowing -Wl,--gc-sections
$ nano -l src/rmkit/util/machine_id.cpy
Code:
69 // case util::KOBO_DEVICE_ID_E::DEVICE_KOBO_CLARA_HD:
70 // debug "RUNNING ON CLARA HD"
71 // break
$ nano -l src/rmkit/input/events.cpy
Code:
190 swap_xy = false
191 if getenv("INV_Y") != NULL:
192 invert_y = true
193 if getenv("INV_X") != NULL:
194 invert_x = true
195 if getenv("SWP_XY") != NULL:
196 swap_xy = true
197 if getenv("ROT_4") != NULL:
198 rotation %= 4
199 switch version:
$ ARCH=kobo TARGET=kobo FBINK=1 CROSS_TC=arm-kobo-linux-gnueabihf make
$ arm-kobo-linux-gnueabihf-strip src/build/remux
Copied src/build/remux to /mnt/onboard/.adds/rmkit/bin/apps/ and ran from SSH:
# RMKIT_KOBO_ANY=1 INV_X=1 ROT_4=1 sh /opt/bin/remux.sh
And swiping up brings up the menu.
***