There are three ways to customize a package:
- Use the
_OVERRIDE_SRCDIR
feature. This allows you to modify the source of a package as you like.
- Edit the package .mk file directly, i.e.
package/libdrm/libdrm.mk
, and change LIBDRM_VERSION into the version you need. You will also have to update package/libdrm/libdrm.hash
with the correct hash, and most likely you also have to update the patches. One way of achieving this is to revert buildroot to 36e69dc2415f4bd2759c29bdd39a289b0a3776f1.
- Create a new package with a different name, e.g. libdrm2460. The disadvantage of this approach is that if you select other packages that depend on libdrm, they will still force the build of libdrm-2.4.66.
Remember, though, that using a custom version of a package means that you will have to take care of any cross-compilation issues yourself.