summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorDaniel Dickinson <crazycshore@gmail.com>2010-05-30 03:20:38 +0000
committerDaniel Dickinson <crazycshore@gmail.com>2010-05-30 03:20:38 +0000
commitabb91e135f11c3b5cdf41085bce86b8cc7dce56d (patch)
tree5343dbf71e4eb704abc901ea0202432844f478a4 /target
parent50a5ef1200c8aab7a79283cc40132b436a1e7ca7 (diff)
downloadmtk-20170518-abb91e135f11c3b5cdf41085bce86b8cc7dce56d.zip
mtk-20170518-abb91e135f11c3b5cdf41085bce86b8cc7dce56d.tar.gz
mtk-20170518-abb91e135f11c3b5cdf41085bce86b8cc7dce56d.tar.bz2
adm5120: Added preinit script to set vars based on cpuinfo during preinit main; This fixes a bug in which the per-board vars were not set due to cpuinfo not being mounted when the adm5120.sh was run
SVN-Revision: 21633
Diffstat (limited to 'target')
-rw-r--r--target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh b/target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh
new file mode 100644
index 0000000..4fca1e7
--- /dev/null
+++ b/target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+do_adm5120() {
+ . /lib/adm5120.sh
+}
+
+boot_hook_add preinit_main do_adm5120