Files
odroid-stamper/custom/npu/fixups/S85-config
phillip.choi aa8f25b1cf custom: Edit NPU custom files to support ODROID-M1/M1S/M2
Support ODROID-M1/M1S/M2 models using the same custom scripts. The basic
structure is almost the same as before, however, minor changes are as follows:

- Remove rga udev rule because same rule is already loaded on the
  startup
- Rename S15-add-repository to S25-add-repository to resolve dependency
  with key-signing at S20-install-packages
- Install packages and edit files differently based on the models.

Signed-off-by: phillip.choi <phillip.choi@hardkernel.com>
Change-Id: I15d658534bf2666cc12f1cd75431825210d09e05
2024-11-19 10:58:11 +09:00

15 lines
255 B
Bash

#!/bin/sh
BOARD=@@DEFAULT_BOARD@@
OVERLAYS="rknpu"
if [ -f /boot/config.ini ]; then
case ${BOARD} in
odroidm1)
OVERLAYS="${OVERLAYS} ov5647"
;;
esac
sed -i '/generic/,/overlays/ s/^\(overlays=".*\)"/\1 '"${OVERLAYS}"'"/' /boot/config.ini
fi