Skip to content

Commit

Permalink
var-mii: Split out "common" functionality to an include file
Browse files Browse the repository at this point in the history
Move potentially common functionality for future recipe variants to an
include file. Additionally, simplify the recipe by dropping the
do_compile() definition since it mirrors the default OE task.

Signed-off-by: Ken Sloat <[email protected]>
  • Loading branch information
Ken Sloat authored and nsdrude committed Jul 31, 2023
1 parent faf4024 commit f43382a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
19 changes: 1 addition & 18 deletions recipes-bsp/var-mii/var-mii_git.bb
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
SUMMARY = "Variscite MII tool"
DESCRIPTION = "A tool to read, write, and test MII interfaces on Variscite SOMs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1232ac6a89eecd5b83db0b7f84f3c36b"

SRC_URI = "git://[email protected]/varigit/var-mii.git;protocol=ssh;branch=master"

# Modify these as desired
PV = "1.0+git${SRCPV}"
SRCREV = "40cbec44e3532a46afa0888495a8640105d733a8"

S = "${WORKDIR}/git"

TARGET_CC_ARCH += "${LDFLAGS}"

do_compile() {
oe_runmake
}
require var-mii_git.inc

do_install() {
install -d ${D}${bindir}
Expand Down
13 changes: 13 additions & 0 deletions recipes-bsp/var-mii/var-mii_git.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SUMMARY = "Variscite MII tool"
DESCRIPTION = "A tool to read, write, and test MII interfaces on Variscite SOMs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1232ac6a89eecd5b83db0b7f84f3c36b"

SRC_URI = "git://[email protected]/varigit/var-mii.git;protocol=ssh;branch=master"

PV = "1.0+git${SRCPV}"
SRCREV = "40cbec44e3532a46afa0888495a8640105d733a8"

S = "${WORKDIR}/git"

TARGET_CC_ARCH += "${LDFLAGS}"

0 comments on commit f43382a

Please sign in to comment.