Hi,
I’m new in building packages. I want to compile a package using .c and .o files using a static library when i build this repository i get a static .a file:
https://github.com/Lora-net/sx1302_hal/tree/master/libloragw.
Is it possible to integrate this as a lib in the openwrt feed and then use it in my compiled .c and .o program which is also using some other libraries.
Can someone give some steps?
I tried some further and tested multiple things in the makefile, now i got it done that the package is compiling but i got this error, does someone know how to fix this?
make[2]: Entering directory '/home/marc/openwrt/package/kernel/linux'
can't open file '/home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/linux-6.6.119/.config' at /home/marc/openwrt/scripts/kconfig.pl line 32.
rm -rf /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel.installed /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel
mkdir -p /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel
install -d -m0755 /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel/lib/modules/6.6.119
install -m0644 /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/linux-6.6.119/modules.builtin /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel/lib/modules/6.6.119
/home/marc/openwrt/staging_dir/host/bin/sed -i -e 's,.*/,,' /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel/lib/modules/6.6.119/modules.builtin
strings /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/linux-6.6.119/modules.builtin.modinfo | grep -E -v "\.(file|parmtype)=" | tr '\n' '\0' > /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel/lib/modules/6.6.119/modules.builtin.modinfo
touch /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel.installed
install: cannot stat '/home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/linux-6.6.119/modules.builtin': No such file or directory
make[2]: *** [Makefile:74: /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel.installed] Error 1
make[2]: Leaving directory '/home/marc/openwrt/package/kernel/linux'
time: package/kernel/linux/compile#2.47#0.11#2.56
ERROR: package/kernel/linux failed to build.
make[1]: *** [package/Makefile:176: package/kernel/linux/compile] Error 1
make[1]: Leaving directory '/home/marc/openwrt'
make: *** [/home/marc/openwrt/include/toplevel.mk:233: package/loraopcua/compile] Fout 2