In OpenWrt 23.05, I need to customize/create a new target NEW_TGT similar to x86 architecture. I want the new target name as NEW_TGT to be displayed in menuconfig and it should take the default config options meant for x86.
For this, I created a new target named NEW_TGT under target/linux and copied all the files and folders from x86 folder to my "NEW_TGT".
After this when I tried compiling "make world", some of the packages are not compiling for NEW_TGT as it has depends on @TARGET_x86. How can I remove the tight coupling of these packages with x86 ? For customizing my new target as like x86, what should I do ? Please help.
Under target/linux/NEW_TGT, I created a Makefile with the following content:
include $(TOPDIR)/rules.mk
ARCH:=x86
BOARD:=generic
KERNEL_PATCHVER:=5.15
DEFAULT_PACKAGES:=base-files libc
$(eval $(call BuildTarget))
I need to add custom kernel configuration to my device. Is it possible to add the same under device profile similar to the config file added in target/subtarget ?