Ipk not getting generated

I've a working Makefile and package compile works fine. But no ipk file is generated.

I am compiling a cmake based c++ project using OpenWrt build tools v23.05.5 on Debian 12 system.

PKG_BUILD folder does contain the compiled binary, but no package (.ipk) file is generated. Is this correct behavior?

Makefile: https://pastebin.com/WnN9fdm5

Any help is appreciated.

Try adding these to your Makefile, and then run make menuconfig to be sure you see your package where you expect it.

define Build/Configure
endef

define Build/Compile
endef

Thanks @efahl.

Adding those defines doesn't fix the problem and no .ipk is being generated. make package/pipy/compile V=s doesn't reveal any error during the compilation process

updated Makefile https://pastebin.com/C3J70xDi

Then run make menuconfig to be sure you see your package where you expect it.

Package is visible in menuconfig in defined category

Aha, it's in the config but you need to select it now. Type y or m or just hit spacebar on it, then once you've done the exit-and-save thing, try your make command again.

But i'm not trying to make it part of image. that's why i'm trying to invoke build/compile process separately via invoking

make package/pipy/{clean,compile} V=s

Right, "y" would put it in the image, so use "m" just to build it. If you don't have either, it's skipped, even with the explicit package build command (i.e., if the package is not "selected", all the other work gets done, but you don't get a package).

1 Like

Thank you @efahl that solves it.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.