I am changing the question as I could get over the initial issue.
I am having the following define in my package//Makefile
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
define Build/Compile
$(MAKE) -s -C $(PKG_BUILD_DIR)
endef
$(eval $(call BuildPackage,<Module-name>))
I am trying to get a custom kernel module to compile with OpenWRT.
I am building using the command make package/"Module_name"/compile ;
Make never succeeds and it comes out saying :
make[2]: Nothing to be done for `compile'.
Why is make coming out doing nothing eventhough rule exists ? Any suggestion to get over this error would be helpful.