HelloWorld info

Hi, I'm working through your helloworld example.
git checkout v17.01.2 and v17.01.4 fail. I did a git init and it still failed. So my first question what should populate source directory? I pulled over openwrt-17.01.4.tar.gz unpacked it and used that. Most of what followed in the tutorial was okay.
Chapter 4
./scripts/feeds update mypackages
./scripts/feeds install -a -p mypackages // it could not find a few thing so I cleaned the file feeds.conf.default to advance a wee bit.
Chapter 5

make package/helloworld/compile 
stan@IanMSI ~/buildbot/source $ make package/helloworld/compile
 make[1] package/helloworld/compile
make -r package/helloworld/compile: build failed. Please re-run make with -j1 V=s to see what's going on
/home/stan/buildbot/source/include/toplevel.mk:198: recipe for target 'package/helloworld/compile' failed
make: *** [package/helloworld/compile] Error 1
stan@IanMSI ~/buildbot/source $ make -j1 V=s  package/helloworld/compile
make[1]: Entering directory '/home/stan/buildbot/source'
make[1]: *** No rule to make target 'package/helloworld/compile'.  Stop.
make[1]: Leaving directory '/home/stan/buildbot/source'
/home/stan/buildbot/source/include/toplevel.mk:198: recipe for target 'package/helloworld/compile' failed
make: *** [package/helloworld/compile] Error 2

Maybe I should start from the beginning with how I should init git and from exactly where to pull in whatever should be in the directory buildbot/source? Please help Ian.

Sounds like the "tarball" might not have gotten you what you needed.

You might have a better experience if you start with something like

git clone https://git.openwrt.org/openwrt/openwrt.git openwrt_source

where ./openwrt_source doesn't exist yet (and will be the name of the root of the checkout, pick what makes sense to you).

Once you have cloned the repo, then you can cd into it and do a checkout such as

git checkout v17.01.4

or

git checkout master

Many thanks Jeff. It is now making more sense to me. I am okay with
the tutorial as far as
make package/helloworld/compile

I eventually ran

make -j1 -np  package/helloworld/compile > junk.txt //resulting in
Argument "Make" isn't numeric in numeric ge (>=) at 
/home/stan/lede_source/lede_source/scripts/feeds line 28.
Unsupported version of make found: make
make: *** [package/helloworld/compile] Error 1

So at least I have the results of stderror (shown above) and stdout in a
big file. The file in question is a perl script and line 28 is
($mkv1 >= 4 || ($mkv1 == 3 && $mkv2 >= 81)) or $valid_mk = 0;

This looks like quite a steep learning curve to figure out all these
make and perl files used to perform the build and I'm sure that there is
something really silly that I am doing or not doing. Any pointers would
be appreciated. Regards Ian.

What OS are you running on? I typically see that kind of thing when I'm on a BSD-based system with a GNU-targeted makefile.