Hello everyone,
I’m currently working on building a custom PHP module for OpenWRT, but I’m running into some challenges, and I’m hoping to get some guidance or assistance from the community.
I need to create a custom PHP module that will integrate with OpenWRT for a specific project. The module will include certain custom functionality that’s not included in the default OpenWRT PHP packages.
I’ve started by modifying the Makefile for the PHP package in the package/lang/php8 directory. However, I’m unsure how to add custom PHP extensions or modules beyond the default ones.
you can see php8-pecl is created
no sir or maybe i dont know to where to find it.
better upload your source code to github or wherever. it's hard if you don't see the source code
i create a extension named "test" using command ./ext_skel.php --ext test from the directory build_dir/target-aarch64_cortex-a53_musl/php-8.3.12/ext and then i modify the Makefile from package/feeds/packages/php8
this is the link of the Makefile:https://gist.github.com/akosiramnad/8b94bc49c129ff0d26f029c4a4e8cbe9 and when i run the command make V=sc -j3 package/php8/compile i got this error
install: cannot stat '/home/user/Desktop/openwrt-sdk-24.10.0-sunxi-cortexa53_gcc-13.3.0_musl.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/php-8.3.12/modules/test.so': No such file or directory