OpenWrt Forum Archive

Topic: Hello World "target pattern contains no %" error in make

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hey guys,

I got into the world of OpenWRT only yesterday. I needed to get Snort inline to work on my WNDR3800 router, but the static binary I had was for x86. I am now trying to write my own ip_queue processing code. I want to first get a Hello World package to work. Here are my steps so far:

1. Followed http://giovanni.wordpress.com/2011/01/2 … r-openwrt/
2. Used CentOS on an x86 platform.
3. Downloaded http://downloads.openwrt.org/backfire/1 … .1.tar.bz2
4. Extracted and ran make (no errors)
5. Got the helloworld.c and Makefile to work on my build platform.
6. Copied helloworld.c and Makefile to package/helloworld/ folder
7. Created the Makefile in the above blog in the package/ folder
8. when I run make in the parent SDK folder, I get:

SDKFolder/tmp/info/.files-packageinfo.mk:1: *** target pattern contains no %. Stop.
make[1]: *** [prepare-tmpinfo] Error 2
make: *** [world] Error 2

The file above contains: $(eval $(call PackageDir,Makefile:$(eval $(call BuildPackage,helloworld)),Makefile:$(eval $(call BuildPackage,helloworld))))

Now, if I remove the helloworld files, I can't make anymore.. I get the above error. I tried make clean as well.

Please help,

Arun

Figured it out.. quite a few first-timer issues.

Maybe you could detail some of your mistakes for posterity

I got the same problem ! has no documentation about openwrt on the web

The discussion might have continued from here.