-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7419ef6
commit 179866e
Showing
1 changed file
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,11 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda | |
|
||
# TODO: Set this with the path to your assignments rep. Use ssh protocol and see lecture notes | ||
# about how to setup ssh-agent for passwordless access | ||
# SRC_URI = "git://git@github.com/cu-ecen-aeld/<your assignments repo>;protocol=ssh;branch=master" | ||
SRC_URI = "[email protected]:cu-ecen-aeld/assignments-3-and-later-hangon1234.git;protocol=ssh;branch=master" | ||
|
||
PV = "1.0+git${SRCPV}" | ||
# TODO: set to reference a specific commit hash in your assignment repo | ||
#SRCREV = "f99b82a5d4cb2a22810104f89d4126f52f4dfaba" | ||
SRCREV = "81c6c40c8d7d33ba4dd4e6be342da9eb5b8874d8" | ||
|
||
# This sets your staging directory based on WORKDIR, where WORKDIR is defined at | ||
# https://docs.yoctoproject.org/ref-manual/variables.html?highlight=workdir#term-WORKDIR | ||
|
@@ -18,13 +18,16 @@ S = "${WORKDIR}/git/server" | |
|
||
# TODO: Add the aesdsocket application and any other files you need to install | ||
# See https://git.yoctoproject.org/poky/plain/meta/conf/bitbake.conf?h=kirkstone | ||
#FILES:${PN} += "${bindir}/aesdsocket" | ||
FILES:${PN} += "${bindir}/aesdsocket" | ||
# TODO: customize these as necessary for any libraries you need for your application | ||
# (and remove comment) | ||
#TARGET_LDFLAGS += "-pthread -lrt" | ||
TARGET_LDFLAGS += "-pthread -lrt" | ||
|
||
# Use initscript | ||
INITSCRIPT_PACKAGES = ${PN} | ||
INITSCRIPT_NAME:${PN} = "aesdsocket-start-stop" | ||
|
||
do_configure () { | ||
: | ||
} | ||
|
||
do_compile () { | ||
|
@@ -39,4 +42,10 @@ do_install () { | |
# and | ||
# https://docs.yoctoproject.org/ref-manual/variables.html?highlight=workdir#term-S | ||
# See example at https://github.com/cu-ecen-aeld/ecen5013-yocto/blob/ecen5013-hello-world/meta-ecen5013/recipes-ecen5013/ecen5013-hello-world/ecen5013-hello-world_git.bb | ||
install -d ${D}${bindir} | ||
install -m 0755 ${S}/aesdsocket ${D}${bindir}/ | ||
|
||
install -d ${D}${sysconfdir}/init.d | ||
install -m 0755 ${S}/aesdsocket-start-stop ${D}${sysconfdir}/init.d | ||
|
||
} |