-
Notifications
You must be signed in to change notification settings - Fork 362
systemd: skip blkid probing for Qualcomm raw partitions #2865
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
base: master
Are you sure you want to change the base?
Changes from all commits
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,46 @@ | ||
| SUMMARY = "udev rules for Qualcomm raw partitions" | ||
| DESCRIPTION = "Machine-specific udev rules that skip filesystem probing for reviewed Qualcomm raw GPT partitions" | ||
|
|
||
| require qcom-ptool.inc | ||
|
|
||
| DEPENDS = "qcom-ptool-native" | ||
|
|
||
| QCOM_PARTITION_FILES_SUBDIR ??= "" | ||
| QCOM_PARTITION_FILES_SUBDIR_SPINOR ??= "" | ||
|
|
||
| QCOM_RAW_PARTITIONS_RULES = "${B}/55-qcom-raw-partitions-noblkid.rules" | ||
| QCOM_RAW_PARTITION_LAYOUTS = " \ | ||
| ${QCOM_PARTITION_FILES_SUBDIR} \ | ||
| ${QCOM_PARTITION_FILES_SUBDIR_SPINOR} \ | ||
| " | ||
|
|
||
| PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
|
|
||
| do_compile() { | ||
| rm -f ${QCOM_RAW_PARTITIONS_RULES} | ||
|
|
||
| set -- | ||
| for layout in ${QCOM_RAW_PARTITION_LAYOUTS}; do | ||
| layout=${layout#partitions/} | ||
| set -- "$@" --input "${S}/platforms/$layout/partitions.conf" | ||
| done | ||
|
|
||
| if [ "$#" -gt 0 ]; then | ||
| ${STAGING_BINDIR_NATIVE}/qcom-ptool gen_udev_rules \ | ||
| --output ${QCOM_RAW_PARTITIONS_RULES} \ | ||
| "$@" | ||
| fi | ||
| } | ||
|
|
||
| do_install() { | ||
| if [ -f ${QCOM_RAW_PARTITIONS_RULES} ]; then | ||
| install -Dm 0644 ${QCOM_RAW_PARTITIONS_RULES} \ | ||
| ${D}${nonarch_libdir}/udev/rules.d/55-qcom-raw-partitions-noblkid.rules | ||
| fi | ||
|
Contributor
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. please drop this check, bitbake internal takes care of this
Contributor
Author
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 kept the file check intentionally, but removed the early exit.
With the conditional install, |
||
| } | ||
|
|
||
| FILES:${PN} = " \ | ||
| ${nonarch_libdir}/udev/rules.d/55-qcom-raw-partitions-noblkid.rules \ | ||
| " | ||
|
|
||
| ALLOW_EMPTY:${PN} = "1" | ||
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.
They are no longer machine-specific. So, please rework the recipe.