View Single Post
Old 10-18-2012, 08:44 PM   #19
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
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
Attached Thumbnails
Click image for larger version

Name:	Selection_200.png
Views:	292
Size:	34.2 KB
ID:	94423   Click image for larger version

Name:	Selection_201.png
Views:	283
Size:	6.5 KB
ID:	94424   Click image for larger version

Name:	Selection_202.png
Views:	280
Size:	4.5 KB
ID:	94425   Click image for larger version

Name:	Selection_203.png
Views:	281
Size:	7.9 KB
ID:	94426   Click image for larger version

Name:	Selection_204.png
Views:	292
Size:	18.7 KB
ID:	94429   Click image for larger version

Name:	Selection_205.png
Views:	293
Size:	76.6 KB
ID:	94430   Click image for larger version

Name:	Selection_206.png
Views:	277
Size:	18.1 KB
ID:	94431  
Attached Files
File Type: gz aalib.tar.gz (657 Bytes, 179 views)
File Type: gz Config.in.tar.gz (3.7 KB, 189 views)

Last edited by twobob; 10-18-2012 at 09:18 PM. Reason: extra points, more tips, more pics
twobob is offline   Reply With Quote