Added chuff to buildroot 101
in essence its a small 3 part process
Which I have outlined before but: since a picture and a few files can speak a thousand words.
create folder under packages (pictured - with relevant name)
create two files (provided examples) - edit them to use the "relevant name" - Just make one up.
BIG NOTE!!! YOU MUST REMOVE THE --prefix and --exec-prefix !!! you don't have a custom skeleton !! the target directories will be missing!! just run it without the --prefix etc.. until you build a custom skeleton (I can provide one)
You also need to go find the DL URL and copy the style I have provided.
The layout of the Config.in is VERY PICKY, keep the spacing exactly I have shown it. (four spaces indent is it? something like that)
When you are happy with your two new files:
add an entry - in the "relevant section" in the main packages Config.in (example provided with custom entries, search is your friend) (The placement in the file determines which menu it appears in)
re-run make xconfig. wow! they are there! let's build them!!!
ah shoot it broke! check the error output. it probably requires a lib BR doesn't have or you forgot to add support for in the make. Just add the relevant
requires - or selects - in the PACKAGE Config.in and maybe check the ./configure --help in the PACKAGES BUILD DIRECTORY!
Another trick:
say we have BR in ~/GIT/BRK3
always add it -C to your commands like:
make -C ~/GIT/BRK3 xconfig
(Then you can run the commands from ANYWHERE, not just the root.) helpful!
Err... I think that covers it.
EDIT: Ah yes. also try BR inline autocompletion for packages with the -C blah in place.
BR can delete the ".stamp_somethingLikeBuiltOrWhatever" flag files to help with letting BR know you want to rebuild something. Once it is "built" you have to tell it to rebuild like
make -C ~/GIT/BRK3 someapp-clean-for-rebuild (or whatever)
or you can go delete the flags yourself (I just do that TBH)
it's pretty obvious what they do - want to DL it again? delete .stamp_downloaded - etc...
(EDIT: Added a picture of the stamps - NOTE THE DIRECTORY)
RE MAKEFILE's:
The BR Readme covers the 3 main types of make files (It accepts).
Just get used to spotting the GNU Autotools ones and try adding them first - they work 95% of the time on the Kindle 5, - your milage will be less as the older TC may let you down from time to time.
Well, I'll attach the pics. I also pictured WinSCP ready to transfer built files.
HTH
Last edited by twobob; 10-18-2012 at 09:18 PM.
Reason: extra points, more tips, more pics
|