Remove unneeded blobs from firmware packages
All firmware packages are optional in postmarketOS, and users can choose at pmbootstrap init
if they want to install them or not.
However, there are some blobs in the firmware packages, that are unrelated DRM blobs and can be removed.
@IratePorcupine looked into them:
I just checked some of the pmOS firmware packages and they contain some DRM blobs.
Here are the ones I know that can be removed:
- Alibaba AliPay - alipay.b*
- Discretix DRM - dxcprm.b*, dxhdcp2.b*
- Google Widevine - widevine.b*, tzwidevine.b*, tzwvcpybuf.b*
- HTC DRM - htc_drmprov.b*
- Microsoft PlayReady DRM - playread.b*
- Unknown HDCP DRM - hdcp1.b*, tzhdcp.b*
Proposal for an automated check:
- Create a simple shell script, which checks for these file names with
find
, and exits with 1 when it finds any. - Put that script in a
firmwarepkg-dev
aport. - Let existing firmware packages depend on
firmwarepkg-dev
and call that shell script incheck()
of the firmware package's APKBUILD - Fix up existing firmware packages (add the dependency, run the script in check, make sure it passes for all of them, bump pkgrel)
- Add a pmaports CI python test, which makes sure that all firmware packages depend on firmwarepkg-dev and run the check.