Skip to content

imx6ull: build usbacm as a lib driver#252

Open
adamgreloch wants to merge 1 commit into
masterfrom
adamgreloch/imx6ull-libdrv-usbacm
Open

imx6ull: build usbacm as a lib driver#252
adamgreloch wants to merge 1 commit into
masterfrom
adamgreloch/imx6ull-libdrv-usbacm

Conversation

@adamgreloch

Copy link
Copy Markdown
Member

JIRA: RTOS-970

Description

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (refactoring, style fixes, git/CI config, submodule management, no code logic changes)

How Has This Been Tested?

  • Already covered by automatic testing.
  • New test added: (add PR link here).
  • Tested by hand on: DTR.

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing linter checks and tests passed.
  • My changes generate no new compilation warnings for any of the targets.

Special treatment

  • This PR needs additional PRs to work (list the PRs, preferably in merge-order).
  • I will merge this PR by myself when appropriate.

@adamgreloch
adamgreloch requested a review from nalajcie January 9, 2026 13:07
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @adamgreloch, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on enabling the USB CDC ACM driver for the i.MX6ULL platform by modifying the relevant build script. This change is essential for supporting USB serial communication, which is a common requirement for embedded systems needing virtual COM port functionality over USB.

Highlights

  • USB ACM Driver Integration: The build script for the i.MX6ULL platform has been updated to include the libusbdrv-usbacm library. This ensures that the USB CDC ACM (Abstract Control Model) driver is built and integrated into the phoenix-rtos-usb component.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly adds the libusbdrv-usbacm library to the build for the imx6ull target, which aligns with the goal of building usbacm as a library driver. The change is functionally correct. However, I've identified a maintainability issue in the build script where phoenix-rtos-usb is built in two separate steps. Consolidating these would improve the script's clarity and efficiency. Please see the detailed comment.


b_log "Building phoenix-rtos-usb"
make -C "phoenix-rtos-usb" usb usb-install USB_HCD_LIBS="libusbehci"
make -C "phoenix-rtos-usb" usb usb-install USB_HCD_LIBS="libusbehci" USB_HOSTDRV_LIBS="libusbdrv-usbacm"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This is the second make invocation for phoenix-rtos-usb in this script. The first one is on line 31. The log message Building phoenix-rtos-usb is also duplicated on lines 30 and 36. This redundancy makes the script less maintainable and potentially inefficient. Consider consolidating both make calls for phoenix-rtos-usb into a single command to improve the script's readability and structure.

@github-actions

github-actions Bot commented Jan 9, 2026

Copy link
Copy Markdown

Unit Test Results

9 462 tests  ±0   8 873 ✅ ±0   51m 15s ⏱️ - 2m 24s
  561 suites ±0     589 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit e70de85. ± Comparison against base commit 763ddfb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant