From 3827ce2c3dc1849033d6de52e58fcbccc7ed74a2 Mon Sep 17 00:00:00 2001 From: Chris Blake Date: Wed, 20 Jul 2016 15:44:50 +0200 Subject: apm821xx: add support for the apm821xx device target This adds a new target for PowerPC APM82181 and APM82161 (464-based) boards, as well as adds support for the booke-wdt watchdog package. Signed-off-by: Chris Blake --- .../apm821xx/base-files/lib/preinit/03_preinit_do_apm821xx.sh | 9 +++++++++ .../base-files/lib/preinit/05_set_preinit_iface_apm821xx | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 target/linux/apm821xx/base-files/lib/preinit/03_preinit_do_apm821xx.sh create mode 100644 target/linux/apm821xx/base-files/lib/preinit/05_set_preinit_iface_apm821xx (limited to 'target/linux/apm821xx/base-files/lib/preinit') diff --git a/target/linux/apm821xx/base-files/lib/preinit/03_preinit_do_apm821xx.sh b/target/linux/apm821xx/base-files/lib/preinit/03_preinit_do_apm821xx.sh new file mode 100644 index 0000000000..5675357533 --- /dev/null +++ b/target/linux/apm821xx/base-files/lib/preinit/03_preinit_do_apm821xx.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +do_apm821xx() { + . /lib/apm821xx.sh + + apm821xx_board_detect +} + +boot_hook_add preinit_main do_apm821xx diff --git a/target/linux/apm821xx/base-files/lib/preinit/05_set_preinit_iface_apm821xx b/target/linux/apm821xx/base-files/lib/preinit/05_set_preinit_iface_apm821xx new file mode 100644 index 0000000000..97ef6dc68f --- /dev/null +++ b/target/linux/apm821xx/base-files/lib/preinit/05_set_preinit_iface_apm821xx @@ -0,0 +1,9 @@ +#!/bin/sh + +. /lib/apm821xx.sh + +apm821xx_set_preinit_iface() { + ifname=eth0 +} + +boot_hook_add preinit_main apm821xx_set_preinit_iface -- cgit v1.2.3