Imagebuilder custom package issue, package has no valid architecture

Hello,

I have compiled my own version of a couple of packages to make them work with the latest OpenWrt firmware (22.03.1) but I cannot build my own images using imagebuilder (not just libopenssl)

before running i make clean
i have added the packages to imagebuilderfolder/packages

How can I specify architecture or continue ignoring this error?

repositories.conf

## Place your custom repositories here, they must match the architecture and version.

# src/gz %n https://downloads.openwrt.org/releases/22.03.1
# src custom file:///usr/src/openwrt/bin/x86/packages

src custom file:///home/deployer/proj/builds/openwrt-imagebuilder-22.03.1-x86-generic.Linux-x86_64/packages
## Remote package repositories
src/gz openwrt_core https://downloads.openwrt.org/releases/22.03.1/targets/x86/generic/packages
src/gz openwrt_base https://downloads.openwrt.org/releases/22.03.1/packages/i386_pentium4/base
src/gz openwrt_luci https://downloads.openwrt.org/releases/22.03.1/packages/i386_pentium4/luci
src/gz openwrt_packages https://downloads.openwrt.org/releases/22.03.1/packages/i386_pentium4/packages
src/gz openwrt_routing https://downloads.openwrt.org/releases/22.03.1/packages/i386_pentium4/routing
src/gz openwrt_telephony https://downloads.openwrt.org/releases/22.03.1/packages/i386_pentium4/telephony

Build-command:

make -C /home/deployer/proj/builds/openwrt-imagebuilder-22.03.1-x86-generic.Linux-x86_64 image BIN_DIR="/home/deployer/proj/outfiles/" PROFILE="generic" PACKAGES="kmod-ata-ahci kmod-sdhci kmod-i2c-i801 usb-modeswitch kmod-mii kmod-usb-net kmod-usb-wdm kmod-usb-net-qmi-wwan qmi-utils kmod-usb-net-asix-ax88179 libopenssl " FILES="/home/deployer/proj/configurations/"

Packages file (auto-generated when creating index when building)

Package: libopenssl1.0
Version: 1.0.2u-1
Depends: libc
Provides: libopenssl
Source: package/libs/openssl
SourceName: libopenssl
License: OpenSSL
LicenseFiles: LICENSE
Section: libs
SourceDateEpoch: 1657221756
ABIVersion: 1.0
CPE-ID: cpe:/a:openssl:openssl
Maintainer: Eneas U de Queiroz <cotequeiroz@gmail.com>
Architecture: x86_64
Installed-Size: 1248859
Filename: libopenssl1.0_1.0.2u-1_x86_64.ipk
Size: 1242242

Error

Package libopenssl1.0 version 1.0.2u-1 has no valid architecture, ignoring.
...
Collected errors:
 * opkg_install_cmd: Cannot install package libopenssl.
make[2]: *** [Makefile:169: package_install] Error 255
make[1]: *** [Makefile:124: _call_image] Error 2
make: *** [Makefile:242: image] Error 2

Seems you have built the package for x86_64, while the target you want to create with the imagebuilder is 32bit (i386_pentium4)