diff options
Diffstat (limited to 'meta-quanta')
-rw-r--r-- | meta-quanta/meta-gsj/recipes-gsj/mac-address/files/config.txt | 7 | ||||
-rw-r--r-- | meta-quanta/meta-gsj/recipes-gsj/mac-address/mac-address.bb | 9 |
2 files changed, 15 insertions, 1 deletions
diff --git a/meta-quanta/meta-gsj/recipes-gsj/mac-address/files/config.txt b/meta-quanta/meta-gsj/recipes-gsj/mac-address/files/config.txt new file mode 100644 index 000000000..668b1d485 --- /dev/null +++ b/meta-quanta/meta-gsj/recipes-gsj/mac-address/files/config.txt @@ -0,0 +1,7 @@ +fruBusNum=10 +fruAddr=0x55 +numberMac=4 +mac1=eth1 +mac2=usb0_dev +mac3=usb0_host +mac4=eth0 diff --git a/meta-quanta/meta-gsj/recipes-gsj/mac-address/mac-address.bb b/meta-quanta/meta-gsj/recipes-gsj/mac-address/mac-address.bb index 37e4e44cf..d9fda7ccb 100644 --- a/meta-quanta/meta-gsj/recipes-gsj/mac-address/mac-address.bb +++ b/meta-quanta/meta-gsj/recipes-gsj/mac-address/mac-address.bb @@ -12,6 +12,9 @@ DEPENDS += "autoconf-archive-native" FILESEXTRAPATHS_prepend := "${THISDIR}/files:" SRC_URI_append = " file://mac-address.service" +SRC_URI_append = " file://config.txt" + +FILES_${PN}_append = " ${datadir}/mac-address/config.txt" HASHSTYLE = "gnu" S = "${WORKDIR}/git" @@ -21,7 +24,11 @@ do_install_append() { install -d ${D}${systemd_unitdir}/system/ install -m 0644 ${WORKDIR}/mac-address.service \ ${D}${systemd_unitdir}/system + + install -d ${D}${datadir}/mac-address + install -m 0644 -D ${WORKDIR}/config.txt \ + ${D}${datadir}/mac-address/config.txt } SYSTEMD_PACKAGES = "${PN}" -SYSTEMD_SERVICE_${PN} += "mac-address.service"
\ No newline at end of file +SYSTEMD_SERVICE_${PN} += "mac-address.service" |