aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx/cortexa7/base-files
diff options
context:
space:
mode:
authorPiotr Dymacz <pepe2k@gmail.com>2021-03-31 09:44:36 +0200
committerPiotr Dymacz <pepe2k@gmail.com>2021-11-03 12:45:40 +0100
commitb35cd4d71d9ca761bf1e58465d16006757871ea2 (patch)
tree78d691c5076feb380668abd3257c46da00f76eb3 /target/linux/imx/cortexa7/base-files
parentb6b09bf00cff38cfc8869053afb3dc26e2150edb (diff)
downloadupstream-b35cd4d71d9ca761bf1e58465d16006757871ea2.tar.gz
upstream-b35cd4d71d9ca761bf1e58465d16006757871ea2.tar.bz2
upstream-b35cd4d71d9ca761bf1e58465d16006757871ea2.zip
imx: introduce 'cortexa7' subtarget
This adds some essential files required by new 'cortexa7' subtarget, dedicated for Cortex-A7 based NXP i.MX series. For now, the kernel config-default focuses only on the i.MX 6UL family, as the following changeset will introduce support for i.MX 6ULL based device. Support for more platforms (e.g. i.MX 7) might be enabled later, while adding more devices. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target/linux/imx/cortexa7/base-files')
-rw-r--r--target/linux/imx/cortexa7/base-files/etc/board.d/02_network15
-rw-r--r--target/linux/imx/cortexa7/base-files/lib/upgrade/platform.sh16
2 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/imx/cortexa7/base-files/etc/board.d/02_network b/target/linux/imx/cortexa7/base-files/etc/board.d/02_network
new file mode 100644
index 0000000000..75d1c7d1d8
--- /dev/null
+++ b/target/linux/imx/cortexa7/base-files/etc/board.d/02_network
@@ -0,0 +1,15 @@
+. /lib/functions/uci-defaults.sh
+
+board=$(board_name)
+
+board_config_update
+
+case "$board" in
+*)
+ ucidef_set_interfaces_lan_wan "eth0" "eth1"
+ ;;
+esac
+
+board_config_flush
+
+exit 0
diff --git a/target/linux/imx/cortexa7/base-files/lib/upgrade/platform.sh b/target/linux/imx/cortexa7/base-files/lib/upgrade/platform.sh
new file mode 100644
index 0000000000..9a613c43b1
--- /dev/null
+++ b/target/linux/imx/cortexa7/base-files/lib/upgrade/platform.sh
@@ -0,0 +1,16 @@
+PART_NAME=firmware
+REQUIRE_IMAGE_METADATA=1
+
+platform_check_image() {
+ return 0
+}
+
+platform_do_upgrade() {
+ local board=$(board_name)
+
+ case "$board" in
+ *)
+ default_do_upgrade "$1"
+ ;;
+ esac
+}