Skip to content

add script for the custom libme-core mapper library#243

Merged
sharkwouter merged 4 commits intopspdev:masterfrom
mcidclan:master
Oct 10, 2025
Merged

add script for the custom libme-core mapper library#243
sharkwouter merged 4 commits intopspdev:masterfrom
mcidclan:master

Conversation

@mcidclan
Copy link
Contributor

@mcidclan mcidclan commented Oct 6, 2025

What does this provide?

  • Its primary goal is to provide access to some of the 'native' ME core functions by dynamically switching to the right table mapping according to the device model
  • It is provided as a static library: the core header (me-core.h) must be included once for initialization, while the me-lib headers can be included anywhere to access core and utility functions
  • It does not depend on the ME wrapper
  • It embeds a minimalistic PRX providing kernel callbacks and patching sceMeRpc on the main CPU side
  • It puts the VME in an optimized state, giving the ME CPU core additional resources
  • It redefines the top of the local stack according to the device model, which provides larger local available eDRAM to work with
  • It removes main RAM and hardware register access restrictions
  • It manages suspend events (sleep/wake) callback handlers
  • It provides exception callbacks such as for general exceptions or external soft interrupts
  • It has timer interrupt callback handling

@@ -0,0 +1,29 @@
pkgname=psp-media-engine-custom-core
Copy link
Member

Choose a reason for hiding this comment

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

The name of the package and the name of the directory the package is in have to match for our automated builds to work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! The package now uses libmecore as the folder name to match your build requirements (see last commit).


package() {
cd "$srcdir/$reponame-${pkgver}/build"
make DESTDIR="" install
Copy link
Member

Choose a reason for hiding this comment

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

It seems the package now only contains the license. You should probably apply this change:

Suggested change
make DESTDIR="" install
make DESTDIR="$pkgdir/psp" install

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed the packaging step, files should now be correctly installed under pkgdir/psp. Thx

@mcidclan mcidclan force-pushed the master branch 2 times, most recently from 492739c to 49c1f0c Compare October 10, 2025 10:31
….txt to $pkgdir/psp, remove related empty parent directories, clean script
Comment on lines +24 to +32
make DESTDIR="$pkgdir" install

mv "$pkgdir/${PSPDEV}/"* "$pkgdir"

dir="$pkgdir/$PSPDEV"
while [ "$dir" != "$pkgdir" ]; do
rmdir "$dir" 2>/dev/null || break
dir=$(dirname "$dir")
done
Copy link
Member

Choose a reason for hiding this comment

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

The resulting package does look good now, but this construction looks a bit weird to me. Could you copy the files using the install command instead of using the make install command? There are several examples of this in this repo, for example this one: https://github.com/pspdev/psp-packages/blob/master/libpspftp/PSPBUILD

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated as required

@sharkwouter sharkwouter merged commit b775f06 into pspdev:master Oct 10, 2025
91 checks passed
@sharkwouter
Copy link
Member

Thanks! This looks good now

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.

2 participants