-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: add oelint-adv based linter for our own recipes #224
base: scarthgap
Are you sure you want to change the base?
Changes from all commits
65cc41a
e1bb04a
9253ae2
91966cd
f1e9726
9627468
8fb7e89
621b4bf
c3fc800
696e100
be19a66
b878102
e29005d
4dad2f0
ae44f64
d34f86f
691c4bc
f4aaf20
94ce07a
83e89c9
c7a07b6
0bc4ab5
78e03bb
3517acd
cf26f81
c2caf27
f62259d
357f3b9
2077954
c30ee39
f0dcecc
c618afa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: lint | ||
|
||
on: | ||
pull_request: | ||
push: | ||
schedule: | ||
- cron: '10 21 * * 4' | ||
|
||
jobs: | ||
lint: | ||
name: oelint-adv | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: python3 -m pip install oelint_adv | ||
- run: oelint-adv --mode=all --quiet --color $(find meta-lxatac-bsp/ meta-lxatac-software/ -name "*bb") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"functions" : { | ||
"known" : [ | ||
"do_genimage" | ||
] | ||
}, | ||
"variables" : { | ||
"known" : [ | ||
"BAREBOX_IMAGE_DEFAULT", | ||
"BUNDLE_ARGS", | ||
"GENIMAGE_IMAGE_SUFFIX", | ||
"RAUC_BUNDLE_COMPATIBLE", | ||
"RAUC_BUNDLE_FORMAT", | ||
"RAUC_BUNDLE_HOOKS", | ||
"RAUC_BUNDLE_SLOTS", | ||
"RAUC_BUNDLE_VERSION", | ||
"RAUC_SLOT_bootloader", | ||
"RAUC_SLOT_rootfs", | ||
"UMPF_PV" | ||
] | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[oelint] | ||
release = scarthgap | ||
|
||
suppress = | ||
oelint.file.inappropriatemsg | ||
oelint.file.underscores | ||
oelint.task.noanonpython | ||
oelint.var.badimagefeature.empty-root-password | ||
oelint.var.badimagefeature.tools-debug | ||
oelint.var.bbclassextend | ||
oelint.var.licenseremotefile | ||
oelint.var.mandatoryvar.DESCRIPTION | ||
oelint.var.mandatoryvar.HOMEPAGE | ||
oelint.vars.srcuridomains | ||
oelint.var.suggestedvar.BUGTRACKER | ||
oelint.var.suggestedvar.CVE_PRODUCT | ||
oelint.var.suggestedvar.SECTION | ||
|
||
constantmods = +.oelint-constants.json |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,12 @@ | |
# umpf-topic: v2.9/customers/lxa/tac | ||
# umpf-hashinfo: e9c0f04902a5616a0af04fc9490edd9f1273ab7c | ||
# umpf-topic-range: d3e71ead6ea5bc3555ac90a446efec84ef6c6122..927790a02af8f782da3c11fc599017767d175de8 | ||
SRC_URI += "\ | ||
file://patches/0001-fdts-lxa-tac-add-Linux-Automation-GmbH-TAC.patch \ | ||
" | ||
SRC_URI:append = " \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't make sense since this file is auto-generated by umpf. I'm also not fully convinced that ignoring An argument in https://github.com/priv-kweihmann/oelint-adv/blob/8096d573cce0c093179957d5b274b895a63bb352/docs/wiki/oelint.vars.srcuriappend.md is the potential issue with priv-kweihmann/oelint-adv#566 also touches this topic. |
||
file://patches/0001-fdts-lxa-tac-add-Linux-Automation-GmbH-TAC.patch \ | ||
" | ||
# umpf-release: 2.9/customers/lxa/tac/20240130-2 | ||
# umpf-topic-range: 927790a02af8f782da3c11fc599017767d175de8..2c9a028d8673d1b3f8ce99e58ec61c4554b60fda | ||
SRC_URI += "\ | ||
file://patches/0101-Release-2.9-customers-lxa-tac-20240130-2.patch \ | ||
" | ||
SRC_URI:append = " \ | ||
file://patches/0101-Release-2.9-customers-lxa-tac-20240130-2.patch \ | ||
" | ||
# umpf-end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
SUMMARY = "barebox is a bootloader designed for embedded systems. It runs on a variety of architectures including x86, ARM, MIPS, PowerPC and others." | ||
SUMMARY = "barebox is a bootloader designed for embedded systems." | ||
HOMEPAGE = "https://barebox.org/" | ||
SECTION = "bootloaders" | ||
PROVIDES = "virtual/bootloader" | ||
|
||
LICENSE = "GPL-2.0-only" | ||
LIC_FILES_CHKSUM = "file://COPYING;md5=f5125d13e000b9ca1f0d3364286c4192" | ||
|
||
PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
|
||
require conf/image-uefi.conf | ||
|
||
inherit kernel-arch deploy cml1 pkgconfig | ||
|
||
# libusb1 is only required for usb tools like imx-usb-loader. These tools may | ||
# be enabled within the defconfig file so depend on it here to be more user | ||
# friendly (do not abort the build). The actual tools are provided by the | ||
# barebox-tools package. | ||
DEPENDS = "libusb1 bison-native flex-native" | ||
|
||
export KBUILD_BUILD_USER ?= "oe-user" | ||
export KBUILD_BUILD_HOST ?= "oe-host" | ||
DEPENDS:append = " bison-native flex-native libusb1" | ||
PROVIDES = "virtual/bootloader" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd find the solution to set (Will be done in a later commit anyway) |
||
|
||
SRC_URI = "https://barebox.org/download/barebox-${PV}.tar.bz2" | ||
|
||
S = "${WORKDIR}/barebox-${PV}" | ||
B = "${WORKDIR}/build" | ||
|
||
PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
|
||
# nooelint: oelint.file.requirenotfound | ||
require conf/image-uefi.conf | ||
|
||
inherit kernel-arch deploy cml1 pkgconfig | ||
|
||
export KBUILD_BUILD_USER ?= "oe-user" | ||
export KBUILD_BUILD_HOST ?= "oe-host" | ||
|
||
def get_layer_rev(path): | ||
try: | ||
rev, _ = bb.process.run("git describe --match='' --always --dirty --broken", cwd=path) | ||
|
@@ -39,7 +39,7 @@ BAREBOX_BUILDSYSTEM_VERSION ??= "${@get_layer_rev(os.path.dirname(d.getVar('FILE | |
BAREBOX_FIRMWARE_DIR[doc] = "Overwrite barebox' firmware blobs search directory (CONFIG_EXTRA_FIRMWARE_DIR) with this path, default ${B}/firmware" | ||
BAREBOX_FIRMWARE_DIR ??= "${B}/firmware" | ||
|
||
EXTRA_OEMAKE = " \ | ||
EXTRA_OEMAKE = "\ | ||
CROSS_COMPILE=${TARGET_PREFIX} -C ${S} O=${B} \ | ||
BUILDSYSTEM_VERSION=${BAREBOX_BUILDSYSTEM_VERSION} \ | ||
CONFIG_EXTRA_FIRMWARE_DIR=${BAREBOX_FIRMWARE_DIR} \ | ||
|
@@ -123,7 +123,7 @@ do_install () { | |
done | ||
fi | ||
} | ||
FILES:${PN} = "${BAREBOX_INSTALL_PATH}" | ||
FILES:${PN} += "${BAREBOX_INSTALL_PATH}" | ||
|
||
do_deploy () { | ||
if [ -n "${BAREBOX_BINARY}" ]; then | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
SUMMARY = "Configure the lldpd daemon on the switch interface" | ||
|
||
LICENSE = "MIT" | ||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
|
||
inherit allarch | ||
|
||
SRC_URI = " \ | ||
SRC_URI = "\ | ||
file://01-switch.conf \ | ||
" | ||
|
||
do_install() { | ||
install -D -m0644 ${WORKDIR}/01-switch.conf ${D}${sysconfdir}/lldpd.d/01-switch.conf | ||
} | ||
|
||
FILES:${PN} = "${sysconfdir}/lldpd.d/" | ||
FILES:${PN} += "${sysconfdir}/lldpd.d/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't see how this variable is overridden in the .bb file. Unrelated?