I got following message while compiling as said in HowToBuildPackages link.
[root@localhost OpenWrt-SDK-Linux-i686-1]# make compile
make[1]: Entering directory `/home/kalpesh/OpenWrt-SDK-Linux-i686-1/package/helloworld'
Makefile:35: *** commands commence before first target. Stop.
make[1]: Leaving directory `/home/kalpesh/OpenWrt-SDK-Linux-i686-1/package/helloworld'
make: *** [helloworld-prepare] Error 2
Line 35 of package/helloworld/Makefile :
touch $@
Can you please tell me what can be the error? Also I would like to know what " touch $@ " command will do.
If i remove the "@" from " touch $@" I can compile.
[root@localhost OpenWrt-SDK-Linux-i686-1]# make clean
make[1]: Entering directory `/home/kalpesh/OpenWrt-SDK-Linux-i686-1/package/helloworld'
rm -rf /home/kalpesh/OpenWrt-SDK-Linux-i686-1/build_mipsel/hello-2.1.1
make[1]: Leaving directory `/home/kalpesh/OpenWrt-SDK-Linux-i686-1/package/helloworld'
rm -rf /home/kalpesh/OpenWrt-SDK-Linux-i686-1/build_mipsel
rm -rf bin
[root@localhost OpenWrt-SDK-Linux-i686-1]# make compile
mkdir -p /home/kalpesh/OpenWrt-SDK-Linux-i686-1/build_mipsel
mkdir -p /home/kalpesh/OpenWrt-SDK-Linux-i686-1/dl
make[1]: Entering directory `/home/kalpesh/OpenWrt-SDK-Linux-i686-1/package/helloworld'
rm -rf /home/kalpesh/OpenWrt-SDK-Linux-i686-1/build_mipsel/hello-2.1.1
mkdir -p /home/kalpesh/OpenWrt-SDK-Linux-i686-1/build_mipsel/hello-2.1.1
zcat /home/kalpesh/OpenWrt-SDK-Linux-i686-1/dl/hello-2.1.1.tar.gz | tar -C /home/kalpesh/OpenWrt-SDK-Linux-i686-1/build_mipsel/hello-2.1.1/.. -xf -
if [ -d ./patches ]; then \
/home/kalpesh/OpenWrt-SDK-Linux-i686-1/scripts/patch-kernel.sh /home/kalpesh/OpenWrt-SDK-Linux-i686-1/build_mipsel/hello-2.1.1 ./patches ; \
fi
Applying ./patches/* using plaintext:
cat: ./patches/*: No such file or directory
touch /home/kalpesh/OpenWrt-SDK-Linux-i686-1/build_mipsel/hello-2.1.1/.prepared
make[1]: Leaving directory `/home/kalpesh/OpenWrt-SDK-Linux-i686-1/package/helloworld'
make[1]: Entering directory `/home/kalpesh/OpenWrt-SDK-Linux-i686-1/package/helloworld'
make[1]: Nothing to be done for `compile'.
make[1]: Leaving directory `/home/kalpesh/OpenWrt-SDK-Linux-i686-1/package/helloworld'
Now after this the "bin/packages" directory is not present and hence I can't get any compiled package. (ie. hello_2.1.1-1_mipsel.ipk)