Skip to content

Commit af34d24

Browse files
authored
system: add recognition for NXP i.MX8M Mini
not officially supported
1 parent 56c3671 commit af34d24

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scriptmodules/system.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ function get_platform() {
430430
*rockpro64*)
431431
__platform="rockpro64"
432432
;;
433+
*imx8mm*)
434+
__platform="imx8mm"
435+
;;
433436
esac
434437
elif [[ -e "/sys/devices/soc0/family" ]]; then
435438
case "$(tr -d '\0' < /sys/devices/soc0/family)" in
@@ -630,6 +633,12 @@ function platform_imx6() {
630633
cpu_armv7 "cortex-a9"
631634
}
632635

636+
function platform_imx8mm() {
637+
cpu_armv8 "cortex-a53"
638+
__platform_flags+=(x11 gles)
639+
[[ -d /sys/class/drm/card0/device/driver/etnaviv ]] && __platform_flags+=(mesa)
640+
}
641+
633642
function platform_vero4k() {
634643
cpu_armv7 "cortex-a7"
635644
__default_cflags="-I/opt/vero3/include -L/opt/vero3/lib"

0 commit comments

Comments
 (0)