Skip to content

fixes to PR8 #185

Open
Open

Description

@nsaulnier-ti

README.md: under "validated HW & SW" list the version of OpenPRU tested with (2026.02?)

project-wide makefile:

  1. Will there be any other examples that might want to use the I2S driver? If so, would it make more sense to place under source/i2s?
  2. consider moving the library makefile elsewhere, e.g. inside of the driver/ directory like source/rpmsg/makefile.
  3. Also, why not just delete the generated lib/ folder instead of deleting specific files when removing the library?
  4. As far as I can tell, the library cannot be cleaned. I assume we should add a clean target like at https://github.com/TexasInstruments/open-pru/blob/main/source/rpmsg/makefile, right?
  5. makefile does not place pru: and host: inside the "ifeq ($(BUILD_PROJECT),y)" guard, and includes lines that don't actually accomplish anything. Proposed rewrite:
  ###########################
  # Make and clean commands #
  ###########################

  ifeq ($(BUILD_PROJECT),y)
  # "make" or "make all" builds PRU firmware then host code for $(DEVICE)
  all: MESSAGE = "Building $(PROJECT_NAME) for $(DEVICE)"
  all: pre_build_message
          $(MAKE) pru
          $(MAKE) host

  # "make pru" builds only PRU firmware for $(DEVICE)
  pru: ARGUMENTS_PRU = all
  pru: MESSAGE = "Building $(PROJECT_NAME) PRU firmware"
  pru: pre_build_message $(DEVICE)

  # "make host" builds only host (R5F) code for $(DEVICE) — requires PRU firmware first
  host: ARGUMENTS_MCUPLUS = all
  host: MESSAGE = "Building $(PROJECT_NAME) host code for $(DEVICE)"
  host: pre_build_message $(DEVICE_NON_PRU)

  # "make clean" cleans projects that match $(DEVICE) set in imports.mak
  clean: ARGUMENTS_PRU = clean
  clean: ARGUMENTS_MCUPLUS = scrub
  clean: MESSAGE = "Cleaning $(PROJECT_NAME) for $(DEVICE)"
  clean: pre_build_message $(DEVICE) $(DEVICE_NON_PRU)

  else
  # if a prebuild check failed, print message and exit
  all clean pru host: pre_build_message
  endif

per-core makefile:

  1. please use the same PRU core make template that is used in the rest of OpenPRU. For an example of passing includes, libraries, and specific defines to the firmware, refer to https://github.com/TexasInstruments/open-pru/blob/main/examples/rpmsg_echo_linux/firmware/am62x-sk/pruss0_pru0_fw/ti-pru-cgt/makefile . If the top-level https://github.com/TexasInstruments/open-pru/blob/main/pru_rules.mak does not work for all the "Add inputs and outputs from these tool invocations to the build variables", let me know and we'll figure it out.
  2. just use the OpenPRU standard way of defining output files and placing them in the ti-pru-cgt/generated/directory. You can update the MCU+ code to point there. This makes sure we don't get any future commits which add your binary outputs to git tracking
  3. My understanding was we pass silicon version 3 for PRUSS & PRU-ICSS that don't have task manager, not V4. We can discuss if this understanding is wrong.

Activity

  1. a1248924 commented on Oct 26, 2026

    @a1248924
    Collaborator

    fixed all issues raised here in #186

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions