Commit 0cea9b9b authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

moving network setup to network/interfaces

parent 5d60d2dd
...@@ -35,6 +35,9 @@ ELPHEL393_MKNOD = "mknod" ...@@ -35,6 +35,9 @@ ELPHEL393_MKNOD = "mknod"
INITSTRING ??= "somescript.sh" INITSTRING ??= "somescript.sh"
REMOTE_NETMASK ??= "255.255.255.0"
REMOTE_GATEWAY ??= "192.168.0.15"
EXTRA_OEMAKE = " \ EXTRA_OEMAKE = " \
INSTALL=${ELPHEL393_INSTALL} \ INSTALL=${ELPHEL393_INSTALL} \
MKNOD=${ELPHEL393_MKNOD} \ MKNOD=${ELPHEL393_MKNOD} \
...@@ -45,6 +48,8 @@ EXTRA_OEMAKE = " \ ...@@ -45,6 +48,8 @@ EXTRA_OEMAKE = " \
USERADD='${ELPHEL393_USERADD}' \ USERADD='${ELPHEL393_USERADD}' \
REMOTE_USER=${REMOTE_USER} \ REMOTE_USER=${REMOTE_USER} \
REMOTE_IP=${REMOTE_IP} \ REMOTE_IP=${REMOTE_IP} \
REMOTE_NETMASK=${REMOTE_NETMASK} \
REMOTE_GATEWAY=${REMOTE_GATEWAY} \
SRCREV=${SRCREV} \ SRCREV=${SRCREV} \
VERSION='${PE}.${PV}.${PR}' \ VERSION='${PE}.${PV}.${PR}' \
INITSTRING='${INITSTRING}' \ INITSTRING='${INITSTRING}' \
......
...@@ -20,7 +20,7 @@ SRCDATE = "20131202" ...@@ -20,7 +20,7 @@ SRCDATE = "20131202"
inherit elphel-misc inherit elphel-misc
VPATH = "${TOPDIR}/../../fpga-elphel/x393" VPATH = "${TOPDIR}/../../fpga-elphel/x393"
RDEPENDS_${PN} += "\ RDEPENDS_${PN} += "\
python-core \ python-core \
" "
...@@ -52,10 +52,10 @@ do_install_append() { ...@@ -52,10 +52,10 @@ do_install_append() {
fi fi
install -d ${D}${sysconfdir}/init.d install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/init_elphel393 ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/init_elphel393 ${D}${sysconfdir}/init.d
#install init script to /etc #install init script to /etc
install -m 0755 ${WORKDIR}/init_elphel393.sh ${D}${sysconfdir}/ install -m 0755 ${WORKDIR}/init_elphel393.sh ${D}${sysconfdir}/
for RLOC in ${PRODUCTION_ROOT_LOCATION}; do for RLOC in ${PRODUCTION_ROOT_LOCATION}; do
if [ ! -d ${DEPLOY_DIR_IMAGE}/${RLOC} ]; then if [ ! -d ${DEPLOY_DIR_IMAGE}/${RLOC} ]; then
mkdir -p ${DEPLOY_DIR_IMAGE}/${RLOC} mkdir -p ${DEPLOY_DIR_IMAGE}/${RLOC}
......
# This is a simple dummy config file. The real file is to be generated by # This is a simple dummy config file. The real file is to be generated by
# init-elphel393 yocto poky recipe. # "init" yocto poky recipe.
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
......
FILESEXTRAPATHS_prepend_elphel393 := "${THISDIR}/files:" FILESEXTRAPATHS_prepend_elphel393 := "${THISDIR}/files:"
do_install_append () {
rm -rf ${D}/etc/network/interfaces
}
\ No newline at end of file
SUMMARY = "init scripts" SUMMARY = "init scripts"
AUTHOR = "Elphel Inc." AUTHOR = "Elphel Inc."
HOMEPAGE = "http://www3.elphel.com/" HOMEPAGE = "http://www3.elphel.com/"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment