summaryrefslogtreecommitdiffstats
path: root/meta-raptor/meta-asus/recipes-utils/openbmc-gpio/openbmc-gpio_%.bbappend
diff options
context:
space:
mode:
Diffstat (limited to 'meta-raptor/meta-asus/recipes-utils/openbmc-gpio/openbmc-gpio_%.bbappend')
-rw-r--r--meta-raptor/meta-asus/recipes-utils/openbmc-gpio/openbmc-gpio_%.bbappend35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-raptor/meta-asus/recipes-utils/openbmc-gpio/openbmc-gpio_%.bbappend b/meta-raptor/meta-asus/recipes-utils/openbmc-gpio/openbmc-gpio_%.bbappend
new file mode 100644
index 0000000..dbf34f4
--- /dev/null
+++ b/meta-raptor/meta-asus/recipes-utils/openbmc-gpio/openbmc-gpio_%.bbappend
@@ -0,0 +1,35 @@
+# Copyright 2017 Raptor Engineering
+#
+# This program file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+# for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program in a file named COPYING; if not, write to the
+# Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301 USA
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI += " \
+ file://board_gpio_table_v1.py \
+ file://board_gpio_rev_table.py \
+ file://openbmc_gpio_setup.py \
+ file://setup_board.py \
+ "
+OPENBMC_GPIO_SOC_TABLE = "ast2050_gpio_table.py"
+
+do_install_append() {
+ install -d ${D}${sysconfdir}/init.d
+ install -d ${D}${sysconfdir}/rcS.d
+ install -m 755 openbmc_gpio_setup.py ${D}${sysconfdir}/init.d/openbmc_gpio_setup.py
+ update-rc.d -r ${D} openbmc_gpio_setup.py start 59 S .
+}
+
+FILES_${PN} += "/usr/local/bin ${sysconfdir}"
OpenPOWER on IntegriCloud