ref-variables.xml 784 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385
  1. <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  2. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
  3. [<!ENTITY % poky SYSTEM "../poky.ent"> %poky; ] >
  4. <!-- Dummy chapter -->
  5. <chapter id='ref-variables-glos'>
  6. <title>Variables Glossary</title>
  7. <para>
  8. This chapter lists common variables used in the OpenEmbedded build system and gives an overview
  9. of their function and contents.
  10. </para>
  11. <glossary id='ref-variables-glossary'>
  12. <para>
  13. <link linkend='var-ABIEXTENSION'>A</link>
  14. <link linkend='var-B'>B</link>
  15. <link linkend='var-CACHE'>C</link>
  16. <link linkend='var-D'>D</link>
  17. <link linkend='var-EFI_PROVIDER'>E</link>
  18. <link linkend='var-FEATURE_PACKAGES'>F</link>
  19. <link linkend='var-GDB'>G</link>
  20. <link linkend='var-HOMEPAGE'>H</link>
  21. <link linkend='var-ICECC_DISABLED'>I</link>
  22. <!-- <link linkend='var-glossary-j'>J</link> -->
  23. <link linkend='var-KARCH'>K</link>
  24. <link linkend='var-LABELS'>L</link>
  25. <link linkend='var-MACHINE'>M</link>
  26. <!-- <link linkend='var-glossary-n'>N</link> -->
  27. <link linkend='var-OBJCOPY'>O</link>
  28. <link linkend='var-P'>P</link>
  29. <!-- <link linkend='var-glossary-q'>Q</link> -->
  30. <link linkend='var-RANLIB'>R</link>
  31. <link linkend='var-S'>S</link>
  32. <link linkend='var-T'>T</link>
  33. <link linkend='var-UBOOT_CONFIG'>U</link>
  34. <!-- <link linkend='var-glossary-v'>V</link> -->
  35. <link linkend='var-WARN_QA'>W</link>
  36. <link linkend='var-XSERVER'>X</link>
  37. <!-- <link linkend='var-glossary-y'>Y</link> -->
  38. <!-- <link linkend='var-glossary-z'>Z</link>-->
  39. </para>
  40. <glossdiv id='var-glossary-a'><title>A</title>
  41. <glossentry id='var-ABIEXTENSION'><glossterm>ABIEXTENSION</glossterm>
  42. <info>
  43. ABIEXTENSION[doc] = "Extension to the Application Binary Interface (ABI) field of the GNU canonical architecture name (e.g. "eabi")."
  44. </info>
  45. <glossdef>
  46. <para role="glossdeffirst">
  47. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  48. Extension to the Application Binary Interface (ABI)
  49. field of the GNU canonical architecture name
  50. (e.g. "eabi").
  51. </para>
  52. <para>
  53. ABI extensions are set in the machine include files.
  54. For example, the
  55. <filename>meta/conf/machine/include/arm/arch-arm.inc</filename>
  56. file sets the following extension:
  57. <literallayout class='monospaced'>
  58. ABIEXTENSION = "eabi"
  59. </literallayout>
  60. </para>
  61. </glossdef>
  62. </glossentry>
  63. <glossentry id='var-ALLOW_EMPTY'><glossterm>ALLOW_EMPTY</glossterm>
  64. <info>
  65. ALLOW_EMPTY[doc] = "Specifies if an output package should still be produced if it is empty."
  66. </info>
  67. <glossdef>
  68. <para role="glossdeffirst">
  69. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  70. Specifies if an output package should still be produced if it is empty.
  71. By default, BitBake does not produce empty packages.
  72. This default behavior can cause issues when there is an
  73. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link> or
  74. some other hard runtime requirement on the existence of the package.
  75. </para>
  76. <para>
  77. Like all package-controlling variables, you must always use them in
  78. conjunction with a package name override, as in:
  79. <literallayout class='monospaced'>
  80. ALLOW_EMPTY_${PN} = "1"
  81. ALLOW_EMPTY_${PN}-dev = "1"
  82. ALLOW_EMPTY_${PN}-staticdev = "1"
  83. </literallayout>
  84. </para>
  85. </glossdef>
  86. </glossentry>
  87. <glossentry id='var-ALTERNATIVE'><glossterm>ALTERNATIVE</glossterm>
  88. <info>
  89. ALTERNATIVE[doc] = "Lists commands in a package that need an alternative binary naming scheme."
  90. </info>
  91. <glossdef>
  92. <para role="glossdeffirst">
  93. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  94. Lists commands in a package that need an alternative
  95. binary naming scheme.
  96. Sometimes the same command is provided in multiple packages.
  97. When this occurs, the OpenEmbedded build system needs to
  98. use the alternatives system to create a different binary
  99. naming scheme so the commands can co-exist.
  100. </para>
  101. <para>
  102. To use the variable, list out the package's commands
  103. that also exist as part of another package.
  104. For example, if the <filename>busybox</filename> package
  105. has four commands that also exist as part of another
  106. package, you identify them as follows:
  107. <literallayout class='monospaced'>
  108. ALTERNATIVE_busybox = "sh sed test bracket"
  109. </literallayout>
  110. For more information on the alternatives system, see the
  111. "<link linkend='ref-classes-update-alternatives'><filename>update-alternatives.bbclass</filename></link>"
  112. section.
  113. </para>
  114. </glossdef>
  115. </glossentry>
  116. <glossentry id='var-ALTERNATIVE_LINK_NAME'><glossterm>ALTERNATIVE_LINK_NAME</glossterm>
  117. <info>
  118. ALTERNATIVE_LINK_NAME[doc] = "Used by the alternatives system to map duplicated commands to actual locations."
  119. </info>
  120. <glossdef>
  121. <para role="glossdeffirst">
  122. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  123. Used by the alternatives system to map duplicated commands
  124. to actual locations.
  125. For example, if the <filename>bracket</filename> command
  126. provided by the <filename>busybox</filename> package is
  127. duplicated through another package, you must use the
  128. <filename>ALTERNATIVE_LINK_NAME</filename> variable to
  129. specify the actual location:
  130. <literallayout class='monospaced'>
  131. ALTERNATIVE_LINK_NAME[bracket] = "/usr/bin/["
  132. </literallayout>
  133. </para>
  134. <para>
  135. In this example, the binary for the
  136. <filename>bracket</filename> command (i.e.
  137. <filename>[</filename>) from the
  138. <filename>busybox</filename> package resides in
  139. <filename>/usr/bin/</filename>.
  140. <note>
  141. If <filename>ALTERNATIVE_LINK_NAME</filename> is not
  142. defined, it defaults to
  143. <filename>${bindir}/<replaceable>name</replaceable></filename>.
  144. </note>
  145. </para>
  146. <para>
  147. For more information on the alternatives system, see the
  148. "<link linkend='ref-classes-update-alternatives'><filename>update-alternatives.bbclass</filename></link>"
  149. section.
  150. </para>
  151. </glossdef>
  152. </glossentry>
  153. <glossentry id='var-ALTERNATIVE_PRIORITY'><glossterm>ALTERNATIVE_PRIORITY</glossterm>
  154. <info>
  155. ALTERNATIVE_PRIORITY[doc] = "Used by the alternatives system to create default priorities for duplicated commands."
  156. </info>
  157. <glossdef>
  158. <para role="glossdeffirst">
  159. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  160. Used by the alternatives system to create default
  161. priorities for duplicated commands.
  162. You can use the variable to create a single default
  163. regardless of the command name or package, a default for
  164. specific duplicated commands regardless of the package, or
  165. a default for specific commands tied to particular packages.
  166. Here are the available syntax forms:
  167. <literallayout class='monospaced'>
  168. ALTERNATIVE_PRIORITY = "<replaceable>priority</replaceable>"
  169. ALTERNATIVE_PRIORITY[<replaceable>name</replaceable>] = "<replaceable>priority</replaceable>"
  170. ALTERNATIVE_PRIORITY_<replaceable>pkg</replaceable>[<replaceable>name</replaceable>] = "<replaceable>priority</replaceable>"
  171. </literallayout>
  172. </para>
  173. <para>
  174. For more information on the alternatives system, see the
  175. "<link linkend='ref-classes-update-alternatives'><filename>update-alternatives.bbclass</filename></link>"
  176. section.
  177. </para>
  178. </glossdef>
  179. </glossentry>
  180. <glossentry id='var-ALTERNATIVE_TARGET'><glossterm>ALTERNATIVE_TARGET</glossterm>
  181. <info>
  182. ALTERNATIVE_TARGET[doc] = "Used by the alternatives system to create default link locations for duplicated commands."
  183. </info>
  184. <glossdef>
  185. <para role="glossdeffirst">
  186. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  187. Used by the alternatives system to create default link
  188. locations for duplicated commands.
  189. You can use the variable to create a single default
  190. location for all duplicated commands regardless of the
  191. command name or package, a default for
  192. specific duplicated commands regardless of the package, or
  193. a default for specific commands tied to particular packages.
  194. Here are the available syntax forms:
  195. <literallayout class='monospaced'>
  196. ALTERNATIVE_TARGET = "<replaceable>target</replaceable>"
  197. ALTERNATIVE_TARGET[<replaceable>name</replaceable>] = "<replaceable>target</replaceable>"
  198. ALTERNATIVE_TARGET_<replaceable>pkg</replaceable>[<replaceable>name</replaceable>] = "<replaceable>target</replaceable>"
  199. </literallayout>
  200. <note>
  201. <para>
  202. If <filename>ALTERNATIVE_TARGET</filename> is not
  203. defined, it inherits the value from the
  204. <link linkend='var-ALTERNATIVE_LINK_NAME'><filename>ALTERNATIVE_LINK_NAME</filename></link>
  205. variable.
  206. </para>
  207. <para>
  208. If <filename>ALTERNATIVE_LINK_NAME</filename> and
  209. <filename>ALTERNATIVE_TARGET</filename> are the
  210. same, the target for
  211. <filename>ALTERNATIVE_TARGET</filename>
  212. has "<filename>.{BPN}</filename>" appended to it.
  213. </para>
  214. <para>
  215. Finally, if the file referenced has not been
  216. renamed, the alternatives system will rename it to
  217. avoid the need to rename alternative files in the
  218. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  219. task while
  220. retaining support for the command if necessary.
  221. </para>
  222. </note>
  223. </para>
  224. <para>
  225. For more information on the alternatives system, see the
  226. "<link linkend='ref-classes-update-alternatives'><filename>update-alternatives.bbclass</filename></link>"
  227. section.
  228. </para>
  229. </glossdef>
  230. </glossentry>
  231. <glossentry id='var-APPEND'><glossterm>APPEND</glossterm>
  232. <info>
  233. APPEND[doc] = "An override list of append strings for each LABEL."
  234. </info>
  235. <glossdef>
  236. <para role="glossdeffirst">
  237. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  238. An override list of append strings for each
  239. <link linkend='var-LABELS'><filename>LABEL</filename></link>.
  240. </para>
  241. <para>
  242. See the
  243. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  244. class for more information on how this variable is used.
  245. </para>
  246. </glossdef>
  247. </glossentry>
  248. <glossentry id='var-AR'><glossterm>AR</glossterm>
  249. <info>
  250. AR[doc] = "Minimal command and arguments to run 'ar'."
  251. </info>
  252. <glossdef>
  253. <para role="glossdeffirst">
  254. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  255. The minimal command and arguments used to run
  256. <filename>ar</filename>.
  257. </para>
  258. </glossdef>
  259. </glossentry>
  260. <glossentry id='var-ARCHIVER_MODE'><glossterm>ARCHIVER_MODE</glossterm>
  261. <info>
  262. ARCHIVER_MODE[doc] = "Controls archive creation used when releasing source files."
  263. </info>
  264. <glossdef>
  265. <para role="glossdeffirst">
  266. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  267. When used with the
  268. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  269. class, determines the type of information used to create
  270. a released archive.
  271. You can use this variable to create archives of patched
  272. source, original source, configured source, and so forth
  273. by employing the following variable flags (varflags):
  274. <literallayout class='monospaced'>
  275. ARCHIVER_MODE[src] = "original" # Uses original (unpacked) source
  276. # files.
  277. ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is
  278. # the default.
  279. ARCHIVER_MODE[src] = "configured" # Uses configured source files.
  280. ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and
  281. # do_patch.
  282. ARCHIVER_MODE[diff-exclude] ?= "<replaceable>file</replaceable> <replaceable>file</replaceable> ..." # Lists files and directories to
  283. # exclude from diff.
  284. ARCHIVER_MODE[dumpdata] = "1" # Uses environment data.
  285. ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files.
  286. ARCHIVER_MODE[srpm] = "1" # Uses RPM package files.
  287. </literallayout>
  288. For information on how the variable works, see the
  289. <filename>meta/classes/archiver.bbclass</filename> file
  290. in the
  291. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  292. </para>
  293. </glossdef>
  294. </glossentry>
  295. <glossentry id='var-AS'><glossterm>AS</glossterm>
  296. <info>
  297. AS[doc] = "Minimal command and arguments to run the assembler."
  298. </info>
  299. <glossdef>
  300. <para role="glossdeffirst">
  301. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  302. The minimal command and arguments used to run the
  303. assembler.
  304. </para>
  305. </glossdef>
  306. </glossentry>
  307. <glossentry id='var-ASSUME_PROVIDED'><glossterm>ASSUME_PROVIDED</glossterm>
  308. <info>
  309. ASSUME_PROVIDED[doc] = "Lists recipe names (PN values) BitBake does not attempt to build."
  310. </info>
  311. <glossdef>
  312. <para role="glossdeffirst">
  313. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  314. Lists recipe names
  315. (<link linkend='var-PN'><filename>PN</filename></link>
  316. values) BitBake does not attempt to build.
  317. Instead, BitBake assumes these recipes have already been
  318. built.
  319. </para>
  320. <para>
  321. In OpenEmbedded Core, <filename>ASSUME_PROVIDED</filename>
  322. mostly specifies native tools that should not be built.
  323. An example is <filename>git-native</filename>, which when
  324. specified, allows for the Git binary from the host to be
  325. used rather than building <filename>git-native</filename>.
  326. </para>
  327. </glossdef>
  328. </glossentry>
  329. <glossentry id='var-ASSUME_SHLIBS'><glossterm>ASSUME_SHLIBS</glossterm>
  330. <info>
  331. ASSUME_SHLIBS[doc] = Provides additional shlibs provider mapping information, which adds to or overwrites the information provided automatically by the system."
  332. </info>
  333. <glossdef>
  334. <para role="glossdeffirst">
  335. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  336. Provides additional <filename>shlibs</filename> provider
  337. mapping information, which adds to or overwrites the
  338. information provided automatically by the system.
  339. Separate multiple entries using spaces.
  340. </para>
  341. <para>
  342. As an example, use the following form to add an
  343. <filename>shlib</filename> provider of
  344. <replaceable>shlibname</replaceable> in
  345. <replaceable>packagename</replaceable> with the optional
  346. <replaceable>version</replaceable>:
  347. <literallayout class='monospaced'>
  348. <replaceable>shlibname:packagename</replaceable>[_<replaceable>version</replaceable>]
  349. </literallayout>
  350. </para>
  351. <para>
  352. Here is an example that adds a shared library named
  353. <filename>libEGL.so.1</filename> as being provided by
  354. the <filename>libegl-implementation</filename> package:
  355. <literallayout class='monospaced'>
  356. ASSUME_SHLIBS = "libEGL.so.1:libegl-implementation"
  357. </literallayout>
  358. </para>
  359. </glossdef>
  360. </glossentry>
  361. <glossentry id='var-AUTHOR'><glossterm>AUTHOR</glossterm>
  362. <info>
  363. AUTHOR[doc] = "Email address used to contact the original author or authors in order to send patches and forward bugs."
  364. </info>
  365. <glossdef>
  366. <para role="glossdeffirst">
  367. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  368. The email address used to contact the original author
  369. or authors in order to send patches and forward bugs.
  370. </para>
  371. </glossdef>
  372. </glossentry>
  373. <glossentry id='var-AUTO_LIBNAME_PKGS'><glossterm>AUTO_LIBNAME_PKGS</glossterm>
  374. <info>
  375. AUTO_LIBNAME_PKGS[doc] = "Specifies which packages should be checked for libraries and renamed according to Debian library package naming."
  376. </info>
  377. <glossdef>
  378. <para role="glossdeffirst">
  379. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  380. When the
  381. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  382. class is inherited, which is the default behavior,
  383. <filename>AUTO_LIBNAME_PKGS</filename> specifies which
  384. packages should be checked for libraries and renamed
  385. according to Debian library package naming.
  386. </para>
  387. <para>
  388. The default value is "${PACKAGES}", which causes the
  389. debian class to act on all packages that are
  390. explicitly generated by the recipe.
  391. </para>
  392. </glossdef>
  393. </glossentry>
  394. <glossentry id='var-AUTO_SYSLINUXMENU'><glossterm>AUTO_SYSLINUXMENU</glossterm>
  395. <info>
  396. AUTO_SYSLINUXMENU[doc] = "Enables creating an automatic menu for the syslinux bootloader."
  397. </info>
  398. <glossdef>
  399. <para role="glossdeffirst">
  400. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  401. Enables creating an automatic menu for the syslinux
  402. bootloader.
  403. You must set this variable in your recipe.
  404. The
  405. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  406. class checks this variable.
  407. </para>
  408. </glossdef>
  409. </glossentry>
  410. <glossentry id='var-AUTOREV'><glossterm>AUTOREV</glossterm>
  411. <info>
  412. AUTOREV[doc] = "When SRCREV is set to the value of this variable, it specifies to use the latest source revision in the repository."
  413. </info>
  414. <glossdef>
  415. <para role="glossdeffirst">
  416. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  417. When
  418. <filename><link linkend='var-SRCREV'>SRCREV</link></filename>
  419. is set to the value of this variable, it specifies to use
  420. the latest source revision in the repository.
  421. Here is an example:
  422. <literallayout class='monospaced'>
  423. SRCREV = "${AUTOREV}"
  424. </literallayout>
  425. </para>
  426. <para>
  427. If you use the previous statement to retrieve the latest
  428. version of software, you need to be sure
  429. <link linkend='var-PV'><filename>PV</filename></link>
  430. contains
  431. <filename>${</filename><link linkend='var-SRCPV'><filename>SRCPV</filename></link><filename>}</filename>.
  432. For example, suppose you have a kernel recipe that
  433. inherits the
  434. <link linkend='ref-classes-kernel'>kernel</link> class
  435. and you use the previous statement.
  436. In this example, <filename>${SRCPV}</filename> does not
  437. automatically get into <filename>PV</filename>.
  438. Consequently, you need to change <filename>PV</filename>
  439. in your recipe so that it does contain
  440. <filename>${SRCPV}</filename>.
  441. </para>
  442. </glossdef>
  443. </glossentry>
  444. <glossentry id='var-AVAILTUNES'><glossterm>AVAILTUNES</glossterm>
  445. <info>
  446. AVAILTUNES[doc] = "The list of defined CPU and Application Binary Interface (ABI) tunings (i.e. "tunes") available for use by the OpenEmbedded build system."
  447. </info>
  448. <glossdef>
  449. <para role="glossdeffirst">
  450. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  451. The list of defined CPU and Application Binary Interface
  452. (ABI) tunings (i.e. "tunes") available for use by the
  453. OpenEmbedded build system.
  454. </para>
  455. <para>
  456. The list simply presents the tunes that are available.
  457. Not all tunes may be compatible with a particular
  458. machine configuration, or with each other in a
  459. <ulink url='&YOCTO_DOCS_DEV_URL;#combining-multiple-versions-library-files-into-one-image'>Multilib</ulink>
  460. configuration.
  461. </para>
  462. <para>
  463. To add a tune to the list, be sure to append it with
  464. spaces using the "+=" BitBake operator.
  465. Do not simply replace the list by using the "=" operator.
  466. See the
  467. "<ulink url='&YOCTO_DOCS_BB_URL;#basic-syntax'>Basic Syntax</ulink>"
  468. section in the BitBake User Manual for more information.
  469. </para>
  470. </glossdef>
  471. </glossentry>
  472. </glossdiv>
  473. <glossdiv id='var-glossary-b'><title>B</title>
  474. <glossentry id='var-B'><glossterm>B</glossterm>
  475. <info>
  476. B[doc] = "The Build Directory. The OpenEmbedded build system places generated objects into the Build Directory during a recipe's build process."
  477. </info>
  478. <glossdef>
  479. <para role="glossdeffirst">
  480. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  481. The directory within the
  482. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>
  483. in which the OpenEmbedded build system places generated
  484. objects during a recipe's build process.
  485. By default, this directory is the same as the <link linkend='var-S'><filename>S</filename></link>
  486. directory, which is defined as:
  487. <literallayout class='monospaced'>
  488. S = "${WORKDIR}/${BP}"
  489. </literallayout>
  490. </para>
  491. <para>
  492. You can separate the (<filename>S</filename>) directory
  493. and the directory pointed to by the <filename>B</filename>
  494. variable.
  495. Most Autotools-based recipes support separating these
  496. directories.
  497. The build system defaults to using separate directories for
  498. <filename>gcc</filename> and some kernel recipes.
  499. </para>
  500. </glossdef>
  501. </glossentry>
  502. <glossentry id='var-BAD_RECOMMENDATIONS'><glossterm>BAD_RECOMMENDATIONS</glossterm>
  503. <info>
  504. BAD_RECOMMENDATIONS[doc] = "A list of packages not to install despite being recommended by a recipe. Support for this variable exists only when using the IPK packaging backend."
  505. </info>
  506. <glossdef>
  507. <para role="glossdeffirst">
  508. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  509. Lists "recommended-only" packages to not install.
  510. Recommended-only packages are packages installed only
  511. through the
  512. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link>
  513. variable.
  514. You can prevent any of these "recommended" packages from
  515. being installed by listing them with the
  516. <filename>BAD_RECOMMENDATIONS</filename> variable:
  517. <literallayout class='monospaced'>
  518. BAD_RECOMMENDATIONS = "<replaceable>package_name</replaceable> <replaceable>package_name</replaceable> <replaceable>package_name</replaceable> ..."
  519. </literallayout>
  520. </para>
  521. <para>
  522. You can set this variable globally in your
  523. <filename>local.conf</filename> file or you can attach it to
  524. a specific image recipe by using the recipe name override:
  525. <literallayout class='monospaced'>
  526. BAD_RECOMMENDATIONS_pn-<replaceable>target_image</replaceable> = "<replaceable>package_name</replaceable>"
  527. </literallayout>
  528. </para>
  529. <para>
  530. It is important to realize that if you choose to not install
  531. packages using this variable and some other packages are
  532. dependent on them (i.e. listed in a recipe's
  533. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  534. variable), the OpenEmbedded build system ignores your
  535. request and will install the packages to avoid dependency
  536. errors.
  537. </para>
  538. <para>
  539. Support for this variable exists only when using the
  540. IPK and RPM packaging backend.
  541. Support does not exist for DEB.
  542. </para>
  543. <para>
  544. See the
  545. <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link>
  546. and the
  547. <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link>
  548. variables for related information.
  549. </para>
  550. </glossdef>
  551. </glossentry>
  552. <glossentry id='var-BASE_LIB'><glossterm>BASE_LIB</glossterm>
  553. <info>
  554. BASE_LIB[doc] = "The library directory name for the CPU or Application Binary Interface (ABI) tune."
  555. </info>
  556. <glossdef>
  557. <para role="glossdeffirst">
  558. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  559. The library directory name for the CPU or Application
  560. Binary Interface (ABI) tune.
  561. The <filename>BASE_LIB</filename> applies only in the
  562. Multilib context.
  563. See the
  564. "<ulink url='&YOCTO_DOCS_DEV_URL;#combining-multiple-versions-library-files-into-one-image'>Combining Multiple Versions of Library Files into One Image</ulink>"
  565. section in the Yocto Project Development Manual for
  566. information on Multilib.
  567. </para>
  568. <para>
  569. The <filename>BASE_LIB</filename> variable is defined in
  570. the machine include files in the
  571. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  572. If Multilib is not being used, the value defaults to "lib".
  573. </para>
  574. </glossdef>
  575. </glossentry>
  576. <glossentry id='var-BASE_WORKDIR'><glossterm>BASE_WORKDIR</glossterm>
  577. <info>
  578. BASE_WORKDIR[doc] = "Points to the base of the work directory for all recipes."
  579. </info>
  580. <glossdef>
  581. <para role="glossdeffirst">
  582. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  583. Points to the base of the work directory for all recipes.
  584. The default value is "${TMPDIR}/work".
  585. </para>
  586. </glossdef>
  587. </glossentry>
  588. <glossentry id='var-BB_ALLOWED_NETWORKS'><glossterm>BB_ALLOWED_NETWORKS</glossterm>
  589. <info>
  590. BB_ALLOWED_NETWORKS[doc] = "A list of hosts that the fetcher is allowed to use to obtain the required source code."
  591. </info>
  592. <glossdef>
  593. <para>
  594. Specifies a space-delimited list of hosts that the fetcher
  595. is allowed to use to obtain the required source code.
  596. Following are considerations surrounding this variable:
  597. <itemizedlist>
  598. <listitem><para>
  599. This host list is only used if
  600. <filename>BB_NO_NETWORK</filename> is either not
  601. set or set to "0".
  602. </para></listitem>
  603. <listitem><para>
  604. Limited support for wildcard matching against the
  605. beginning of host names exists.
  606. For example, the following setting matches
  607. <filename>git.gnu.org</filename>,
  608. <filename>ftp.gnu.org</filename>, and
  609. <filename>foo.git.gnu.org</filename>.
  610. <literallayout class='monospaced'>
  611. BB_ALLOWED_NETWORKS = "*.gnu.org"
  612. </literallayout>
  613. </para></listitem>
  614. <listitem><para>
  615. Mirrors not in the host list are skipped and
  616. logged in debug.
  617. </para></listitem>
  618. <listitem><para>
  619. Attempts to access networks not in the host list
  620. cause a failure.
  621. </para></listitem>
  622. </itemizedlist>
  623. Using <filename>BB_ALLOWED_NETWORKS</filename> in
  624. conjunction with
  625. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  626. is very useful.
  627. Adding the host you want to use to
  628. <filename>PREMIRRORS</filename> results in the source code
  629. being fetched from an allowed location and avoids raising
  630. an error when a host that is not allowed is in a
  631. <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
  632. statement.
  633. This is because the fetcher does not attempt to use the
  634. host listed in <filename>SRC_URI</filename> after a
  635. successful fetch from the
  636. <filename>PREMIRRORS</filename> occurs.
  637. </para>
  638. </glossdef>
  639. </glossentry>
  640. <glossentry id='var-BB_DANGLINGAPPENDS_WARNONLY'><glossterm>BB_DANGLINGAPPENDS_WARNONLY</glossterm>
  641. <info>
  642. BB_DANGLINGAPPENDS_WARNONLY[doc] = "Defines how BitBake handles situations where an append file (.bbappend) has no corresponding recipe file (.bb)."
  643. </info>
  644. <glossdef>
  645. <para role="glossdeffirst">
  646. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  647. Defines how BitBake handles situations where an append
  648. file (<filename>.bbappend</filename>) has no
  649. corresponding recipe file (<filename>.bb</filename>).
  650. This condition often occurs when layers get out of sync
  651. (e.g. <filename>oe-core</filename> bumps a
  652. recipe version and the old recipe no longer exists and the
  653. other layer has not been updated to the new version
  654. of the recipe yet).
  655. </para>
  656. <para>
  657. The default fatal behavior is safest because it is
  658. the sane reaction given something is out of sync.
  659. It is important to realize when your changes are no longer
  660. being applied.
  661. </para>
  662. <para>
  663. You can change the default behavior by setting this
  664. variable to "1", "yes", or "true"
  665. in your <filename>local.conf</filename> file, which is
  666. located in the
  667. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>:
  668. Here is an example:
  669. <literallayout class='monospaced'>
  670. BB_DANGLINGAPPENDS_WARNONLY = "1"
  671. </literallayout>
  672. </para>
  673. </glossdef>
  674. </glossentry>
  675. <glossentry id='var-BB_DISKMON_DIRS'><glossterm>BB_DISKMON_DIRS</glossterm>
  676. <info>
  677. BB_DISKMON_DIRS[doc] = "Monitors disk space and available inodes during the build and allows you to control the build based on these parameters."
  678. </info>
  679. <glossdef>
  680. <para role="glossdeffirst">
  681. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  682. Monitors disk space and available inodes during the build
  683. and allows you to control the build based on these
  684. parameters.
  685. </para>
  686. <para>
  687. Disk space monitoring is disabled by default.
  688. To enable monitoring, add the <filename>BB_DISKMON_DIRS</filename>
  689. variable to your <filename>conf/local.conf</filename> file found in the
  690. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  691. Use the following form:
  692. <literallayout class='monospaced'>
  693. BB_DISKMON_DIRS = "<replaceable>action</replaceable>,<replaceable>dir</replaceable>,<replaceable>threshold</replaceable> [...]"
  694. where:
  695. <replaceable>action</replaceable> is:
  696. ABORT: Immediately abort the build when
  697. a threshold is broken.
  698. STOPTASKS: Stop the build after the currently
  699. executing tasks have finished when
  700. a threshold is broken.
  701. WARN: Issue a warning but continue the
  702. build when a threshold is broken.
  703. Subsequent warnings are issued as
  704. defined by the
  705. <link linkend='var-BB_DISKMON_WARNINTERVAL'>BB_DISKMON_WARNINTERVAL</link> variable,
  706. which must be defined in the
  707. conf/local.conf file.
  708. <replaceable>dir</replaceable> is:
  709. Any directory you choose. You can specify one or
  710. more directories to monitor by separating the
  711. groupings with a space. If two directories are
  712. on the same device, only the first directory
  713. is monitored.
  714. <replaceable>threshold</replaceable> is:
  715. Either the minimum available disk space,
  716. the minimum number of free inodes, or
  717. both. You must specify at least one. To
  718. omit one or the other, simply omit the value.
  719. Specify the threshold using G, M, K for Gbytes,
  720. Mbytes, and Kbytes, respectively. If you do
  721. not specify G, M, or K, Kbytes is assumed by
  722. default. Do not use GB, MB, or KB.
  723. </literallayout>
  724. </para>
  725. <para>
  726. Here are some examples:
  727. <literallayout class='monospaced'>
  728. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  729. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  730. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  731. </literallayout>
  732. The first example works only if you also provide
  733. the <link linkend='var-BB_DISKMON_WARNINTERVAL'><filename>BB_DISKMON_WARNINTERVAL</filename></link> variable
  734. in the <filename>conf/local.conf</filename>.
  735. This example causes the build system to immediately
  736. abort when either the disk space in <filename>${TMPDIR}</filename> drops
  737. below 1 Gbyte or the available free inodes drops below
  738. 100 Kbytes.
  739. Because two directories are provided with the variable, the
  740. build system also issue a
  741. warning when the disk space in the
  742. <filename>${SSTATE_DIR}</filename> directory drops
  743. below 1 Gbyte or the number of free inodes drops
  744. below 100 Kbytes.
  745. Subsequent warnings are issued during intervals as
  746. defined by the <filename>BB_DISKMON_WARNINTERVAL</filename>
  747. variable.
  748. </para>
  749. <para>
  750. The second example stops the build after all currently
  751. executing tasks complete when the minimum disk space
  752. in the <filename>${<link linkend='var-TMPDIR'>TMPDIR</link>}</filename>
  753. directory drops below 1 Gbyte.
  754. No disk monitoring occurs for the free inodes in this case.
  755. </para>
  756. <para>
  757. The final example immediately aborts the build when the
  758. number of free inodes in the <filename>${TMPDIR}</filename> directory
  759. drops below 100 Kbytes.
  760. No disk space monitoring for the directory itself occurs
  761. in this case.
  762. </para>
  763. </glossdef>
  764. </glossentry>
  765. <glossentry id='var-BB_DISKMON_WARNINTERVAL'><glossterm>BB_DISKMON_WARNINTERVAL</glossterm>
  766. <info>
  767. BB_DISKMON_WARNINTERVAL[doc] = "Defines the disk space and free inode warning intervals. To set these intervals, define the variable in the conf/local.conf file in the Build Directory."
  768. </info>
  769. <glossdef>
  770. <para role="glossdeffirst">
  771. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  772. Defines the disk space and free inode warning intervals.
  773. To set these intervals, define the variable in your
  774. <filename>conf/local.conf</filename> file in the
  775. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  776. </para>
  777. <para>
  778. If you are going to use the
  779. <filename>BB_DISKMON_WARNINTERVAL</filename> variable, you must
  780. also use the
  781. <link linkend='var-BB_DISKMON_DIRS'><filename>BB_DISKMON_DIRS</filename></link> variable
  782. and define its action as "WARN".
  783. During the build, subsequent warnings are issued each time
  784. disk space or number of free inodes further reduces by
  785. the respective interval.
  786. </para>
  787. <para>
  788. If you do not provide a <filename>BB_DISKMON_WARNINTERVAL</filename>
  789. variable and you do use <filename>BB_DISKMON_DIRS</filename> with
  790. the "WARN" action, the disk monitoring interval defaults to
  791. the following:
  792. <literallayout class='monospaced'>
  793. BB_DISKMON_WARNINTERVAL = "50M,5K"
  794. </literallayout>
  795. </para>
  796. <para>
  797. When specifying the variable in your configuration file,
  798. use the following form:
  799. <literallayout class='monospaced'>
  800. BB_DISKMON_WARNINTERVAL = "<replaceable>disk_space_interval</replaceable>,<replaceable>disk_inode_interval</replaceable>"
  801. where:
  802. <replaceable>disk_space_interval</replaceable> is:
  803. An interval of memory expressed in either
  804. G, M, or K for Gbytes, Mbytes, or Kbytes,
  805. respectively. You cannot use GB, MB, or KB.
  806. <replaceable>disk_inode_interval</replaceable> is:
  807. An interval of free inodes expressed in either
  808. G, M, or K for Gbytes, Mbytes, or Kbytes,
  809. respectively. You cannot use GB, MB, or KB.
  810. </literallayout>
  811. </para>
  812. <para>
  813. Here is an example:
  814. <literallayout class='monospaced'>
  815. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  816. BB_DISKMON_WARNINTERVAL = "50M,5K"
  817. </literallayout>
  818. These variables cause the OpenEmbedded build system to
  819. issue subsequent warnings each time the available
  820. disk space further reduces by 50 Mbytes or the number
  821. of free inodes further reduces by 5 Kbytes in the
  822. <filename>${SSTATE_DIR}</filename> directory.
  823. Subsequent warnings based on the interval occur each time
  824. a respective interval is reached beyond the initial warning
  825. (i.e. 1 Gbytes and 100 Kbytes).
  826. </para>
  827. </glossdef>
  828. </glossentry>
  829. <glossentry id='var-BB_GENERATE_MIRROR_TARBALLS'><glossterm>BB_GENERATE_MIRROR_TARBALLS</glossterm>
  830. <info>
  831. BB_GENERATE_MIRROR_TARBALLS[doc] = "Causes tarballs of the Git repositories to be placed in the DL_DIR directory."
  832. </info>
  833. <glossdef>
  834. <para role="glossdeffirst">
  835. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  836. Causes tarballs of the Git repositories, including the
  837. Git metadata, to be placed in the
  838. <link linkend='var-DL_DIR'><filename>DL_DIR</filename></link>
  839. directory.
  840. </para>
  841. <para>
  842. For performance reasons, creating and placing tarballs of
  843. the Git repositories is not the default action by the
  844. OpenEmbedded build system.
  845. <literallayout class='monospaced'>
  846. BB_GENERATE_MIRROR_TARBALLS = "1"
  847. </literallayout>
  848. Set this variable in your <filename>local.conf</filename>
  849. file in the
  850. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  851. </para>
  852. </glossdef>
  853. </glossentry>
  854. <glossentry id='var-BB_NUMBER_THREADS'><glossterm>BB_NUMBER_THREADS</glossterm>
  855. <info>
  856. BB_NUMBER_THREADS[doc] = "The maximum number of tasks BitBake should run in parallel at any one time. This variable is automatically configured to be equal to the number of build system cores."
  857. </info>
  858. <glossdef>
  859. <para role="glossdeffirst">
  860. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  861. The maximum number of tasks BitBake should run in parallel
  862. at any one time.
  863. The OpenEmbedded build system automatically configures
  864. this variable to be equal to the number of cores on the
  865. build system.
  866. For example, a system with a dual core processor that
  867. also uses hyper-threading causes the
  868. <filename>BB_NUMBER_THREADS</filename> variable to default
  869. to "4".
  870. </para>
  871. <para>
  872. For single socket systems (i.e. one CPU), you should not
  873. have to override this variable to gain optimal parallelism
  874. during builds.
  875. However, if you have very large systems that employ
  876. multiple physical CPUs, you might want to make sure the
  877. <filename>BB_NUMBER_THREADS</filename> variable is not
  878. set higher than "20".
  879. </para>
  880. <para>
  881. For more information on speeding up builds, see the
  882. "<link linkend='speeding-up-the-build'>Speeding Up the Build</link>"
  883. section.
  884. </para>
  885. </glossdef>
  886. </glossentry>
  887. <glossentry id='var-BBCLASSEXTEND'><glossterm>BBCLASSEXTEND</glossterm>
  888. <info>
  889. BBCLASSEXTEND[doc] = "Allows you to extend a recipe so that it builds variants of the software. Common variants for recipes are 'native', 'cross', 'nativesdk' and multilibs."
  890. </info>
  891. <glossdef>
  892. <para role="glossdeffirst">
  893. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  894. Allows you to extend a recipe so that it builds variants of the software.
  895. Common variants for recipes exist such as "natives" like <filename>quilt-native</filename>,
  896. which is a copy of Quilt built to run on the build system;
  897. "crosses" such as <filename>gcc-cross</filename>,
  898. which is a compiler built to run on the build machine but produces binaries
  899. that run on the target <link linkend='var-MACHINE'><filename>MACHINE</filename></link>;
  900. "nativesdk", which targets the SDK machine instead of <filename>MACHINE</filename>;
  901. and "mulitlibs" in the form "<filename>multilib:</filename><replaceable>multilib_name</replaceable>".
  902. </para>
  903. <para>
  904. To build a different variant of the recipe with a minimal amount of code, it usually
  905. is as simple as adding the following to your recipe:
  906. <literallayout class='monospaced'>
  907. BBCLASSEXTEND =+ "native nativesdk"
  908. BBCLASSEXTEND =+ "multilib:<replaceable>multilib_name</replaceable>"
  909. </literallayout>
  910. <note>
  911. <para>
  912. Internally, the <filename>BBCLASSEXTEND</filename>
  913. mechanism generates recipe variants by rewriting
  914. variable values and applying overrides such as
  915. <filename>_class-native</filename>.
  916. For example, to generate a native version of a recipe,
  917. a
  918. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  919. on "foo" is rewritten to a <filename>DEPENDS</filename>
  920. on "foo-native".
  921. </para>
  922. <para>
  923. Even when using <filename>BBCLASSEXTEND</filename>, the
  924. recipe is only parsed once.
  925. Parsing once adds some limitations.
  926. For example, it is not possible to
  927. include a different file depending on the variant,
  928. since <filename>include</filename> statements are
  929. processed when the recipe is parsed.
  930. </para>
  931. </note>
  932. </para>
  933. </glossdef>
  934. </glossentry>
  935. <glossentry id='var-BBFILE_COLLECTIONS'><glossterm>BBFILE_COLLECTIONS</glossterm>
  936. <info>
  937. BBFILE_COLLECTIONS[doc] = "Lists the names of configured layers. These names are used to find the other BBFILE_* variables."
  938. </info>
  939. <glossdef>
  940. <para role="glossdeffirst">
  941. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  942. Lists the names of configured layers.
  943. These names are used to find the other <filename>BBFILE_*</filename>
  944. variables.
  945. Typically, each layer will append its name to this variable in its
  946. <filename>conf/layer.conf</filename> file.
  947. </para>
  948. </glossdef>
  949. </glossentry>
  950. <glossentry id='var-BBFILE_PATTERN'><glossterm>BBFILE_PATTERN</glossterm>
  951. <info>
  952. BBFILE_PATTERN[doc] = "Variable that expands to match files from BBFILES in a particular layer. This variable is used in the layer.conf file and must be suffixed with the name of a layer."
  953. </info>
  954. <glossdef>
  955. <para role="glossdeffirst">
  956. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  957. Variable that expands to match files from
  958. <link linkend='var-BBFILES'><filename>BBFILES</filename></link>
  959. in a particular layer.
  960. This variable is used in the <filename>conf/layer.conf</filename> file and must
  961. be suffixed with the name of the specific layer (e.g.
  962. <filename>BBFILE_PATTERN_emenlow</filename>).
  963. </para>
  964. </glossdef>
  965. </glossentry>
  966. <glossentry id='var-BBFILE_PRIORITY'><glossterm>BBFILE_PRIORITY</glossterm>
  967. <info>
  968. BBFILE_PRIORITY[doc] = "Assigns the priority for recipe files in each layer. Setting this variable allows you to prioritize a layer against other layers that contain the same recipe."
  969. </info>
  970. <glossdef>
  971. <para role="glossdeffirst">
  972. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  973. Assigns the priority for recipe files in each layer.
  974. </para>
  975. <para>
  976. This variable is useful in situations where the same recipe appears in
  977. more than one layer.
  978. Setting this variable allows you to prioritize a
  979. layer against other layers that contain the same recipe - effectively
  980. letting you control the precedence for the multiple layers.
  981. The precedence established through this variable stands regardless of a
  982. recipe's version
  983. (<link linkend='var-PV'><filename>PV</filename></link> variable).
  984. For example, a layer that has a recipe with a higher <filename>PV</filename> value but for
  985. which the <filename>BBFILE_PRIORITY</filename> is set to have a lower precedence still has a
  986. lower precedence.
  987. </para>
  988. <para>
  989. A larger value for the <filename>BBFILE_PRIORITY</filename> variable results in a higher
  990. precedence.
  991. For example, the value 6 has a higher precedence than the value 5.
  992. If not specified, the <filename>BBFILE_PRIORITY</filename> variable is set based on layer
  993. dependencies (see the
  994. <filename><link linkend='var-LAYERDEPENDS'>LAYERDEPENDS</link></filename> variable for
  995. more information.
  996. The default priority, if unspecified
  997. for a layer with no dependencies, is the lowest defined priority + 1
  998. (or 1 if no priorities are defined).
  999. </para>
  1000. <tip>
  1001. You can use the command <filename>bitbake-layers show-layers</filename> to list
  1002. all configured layers along with their priorities.
  1003. </tip>
  1004. </glossdef>
  1005. </glossentry>
  1006. <glossentry id='var-BBFILES'><glossterm>BBFILES</glossterm>
  1007. <info>
  1008. BBFILES[doc] = "List of recipe files used by BitBake to build software."
  1009. </info>
  1010. <glossdef>
  1011. <para role="glossdeffirst">
  1012. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1013. List of recipe files used by BitBake to build software.
  1014. </para>
  1015. </glossdef>
  1016. </glossentry>
  1017. <glossentry id='var-BBINCLUDELOGS'><glossterm>BBINCLUDELOGS</glossterm>
  1018. <info>
  1019. BBINCLUDELOGS[doc] = "Variable that controls how BitBake displays logs on build failure."
  1020. </info>
  1021. <glossdef>
  1022. <para role="glossdeffirst">
  1023. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1024. Variable that controls how BitBake displays logs on build failure.
  1025. </para>
  1026. </glossdef>
  1027. </glossentry>
  1028. <glossentry id='var-BBINCLUDELOGS_LINES'><glossterm>BBINCLUDELOGS_LINES</glossterm>
  1029. <info>
  1030. BBINCLUDELOGS_LINES[doc] = "Amount of log lines printed on failure."
  1031. </info>
  1032. <glossdef>
  1033. <para role="glossdeffirst">
  1034. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1035. If
  1036. <link linkend='var-BBINCLUDELOGS'><filename>BBINCLUDELOGS</filename></link>
  1037. is set, specifies the maximum number of lines from the
  1038. task log file to print when reporting a failed task.
  1039. If you do not set <filename>BBINCLUDELOGS_LINES</filename>,
  1040. the entire log is printed.
  1041. </para>
  1042. </glossdef>
  1043. </glossentry>
  1044. <glossentry id='var-BBLAYERS'><glossterm>BBLAYERS</glossterm>
  1045. <info>
  1046. BBLAYERS[doc] = "Lists the layers to enable during the build. This variable is defined in the bblayers.conf configuration file."
  1047. </info>
  1048. <glossdef>
  1049. <para role="glossdeffirst">
  1050. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1051. Lists the layers to enable during the build.
  1052. This variable is defined in the <filename>bblayers.conf</filename> configuration
  1053. file in the <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  1054. Here is an example:
  1055. <literallayout class='monospaced'>
  1056. BBLAYERS = " \
  1057. /home/scottrif/poky/meta \
  1058. /home/scottrif/poky/meta-poky \
  1059. /home/scottrif/poky/meta-yocto-bsp \
  1060. /home/scottrif/poky/meta-mykernel \
  1061. "
  1062. </literallayout>
  1063. </para>
  1064. <para>
  1065. This example enables four layers, one of which is a custom, user-defined layer
  1066. named <filename>meta-mykernel</filename>.
  1067. </para>
  1068. </glossdef>
  1069. </glossentry>
  1070. <glossentry id='var-BBMASK'><glossterm>BBMASK</glossterm>
  1071. <info>
  1072. BBMASK[doc] = "Prevents BitBake from processing specific recipes or recipe append files."
  1073. </info>
  1074. <glossdef>
  1075. <para role="glossdeffirst">
  1076. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1077. Prevents BitBake from processing recipes and recipe
  1078. append files.
  1079. </para>
  1080. <para>
  1081. You can use the <filename>BBMASK</filename> variable
  1082. to "hide" these <filename>.bb</filename> and
  1083. <filename>.bbappend</filename> files.
  1084. BitBake ignores any recipe or recipe append files that
  1085. match any of the expressions.
  1086. It is as if BitBake does not see them at all.
  1087. Consequently, matching files are not parsed or otherwise
  1088. used by BitBake.</para>
  1089. <para>
  1090. The values you provide are passed to Python's regular
  1091. expression compiler.
  1092. The expressions are compared against the full paths to
  1093. the files.
  1094. For complete syntax information, see Python's
  1095. documentation at
  1096. <ulink url='http://docs.python.org/release/2.3/lib/re-syntax.html'></ulink>.
  1097. </para>
  1098. <para>
  1099. The following example uses a complete regular expression
  1100. to tell BitBake to ignore all recipe and recipe append
  1101. files in the <filename>meta-ti/recipes-misc/</filename>
  1102. directory:
  1103. <literallayout class='monospaced'>
  1104. BBMASK = "meta-ti/recipes-misc/"
  1105. </literallayout>
  1106. If you want to mask out multiple directories or recipes,
  1107. you can specify multiple regular expression fragments.
  1108. This next example masks out multiple directories and
  1109. individual recipes:
  1110. <literallayout class='monospaced'>
  1111. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  1112. BBMASK += "/meta-oe/recipes-support/"
  1113. BBMASK += "/meta-foo/.*/openldap"
  1114. BBMASK += "opencv.*\.bbappend"
  1115. BBMASK += "lzma"
  1116. </literallayout>
  1117. <note>
  1118. When specifying a directory name, use the trailing
  1119. slash character to ensure you match just that directory
  1120. name.
  1121. </note>
  1122. </para>
  1123. </glossdef>
  1124. </glossentry>
  1125. <glossentry id='var-BBPATH'><glossterm>BBPATH</glossterm>
  1126. <info>
  1127. BBPATH[doc] = "Used by BitBake to locate .bbclass and configuration files. This variable is analogous to the PATH variable."
  1128. </info>
  1129. <glossdef>
  1130. <para role="glossdeffirst">
  1131. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1132. Used by BitBake to locate
  1133. <filename>.bbclass</filename> and configuration files.
  1134. This variable is analogous to the
  1135. <filename>PATH</filename> variable.
  1136. <note>
  1137. If you run BitBake from a directory outside of the
  1138. <ulink url='&YOCTO_DOCS_DEV_URL;build-directory'>Build Directory</ulink>,
  1139. you must be sure to set
  1140. <filename>BBPATH</filename> to point to the
  1141. Build Directory.
  1142. Set the variable as you would any environment variable
  1143. and then run BitBake:
  1144. <literallayout class='monospaced'>
  1145. $ BBPATH = "<replaceable>build_directory</replaceable>"
  1146. $ export BBPATH
  1147. $ bitbake <replaceable>target</replaceable>
  1148. </literallayout>
  1149. </note>
  1150. </para>
  1151. </glossdef>
  1152. </glossentry>
  1153. <glossentry id='var-BBSERVER'><glossterm>BBSERVER</glossterm>
  1154. <info>
  1155. BBSERVER[doc] = "Points to the server that runs memory-resident BitBake."
  1156. </info>
  1157. <glossdef>
  1158. <para role="glossdeffirst">
  1159. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1160. Points to the server that runs memory-resident BitBake.
  1161. This variable is set by the
  1162. <link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link>
  1163. setup script and should not be hand-edited.
  1164. The variable is only used when you employ memory-resident
  1165. BitBake.
  1166. The setup script exports the value as follows:
  1167. <literallayout class='monospaced'>
  1168. export BBSERVER=localhost:$port
  1169. </literallayout>
  1170. </para>
  1171. <para>
  1172. For more information on how the
  1173. <filename>BBSERVER</filename> is used, see the
  1174. <filename>oe-init-build-env-memres</filename> script, which
  1175. is located in the
  1176. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  1177. </para>
  1178. </glossdef>
  1179. </glossentry>
  1180. <glossentry id='var-BINCONFIG'><glossterm>BINCONFIG</glossterm>
  1181. <info>
  1182. BINCONFIG[doc] = "When inheriting the binconfig-disabled class, this variable specifies binary configuration scripts to disable in favor of using pkg-config to query the information."
  1183. </info>
  1184. <glossdef>
  1185. <para role="glossdeffirst">
  1186. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1187. When inheriting the
  1188. <link linkend='ref-classes-binconfig-disabled'><filename>binconfig-disabled</filename></link>
  1189. class, this variable specifies binary configuration
  1190. scripts to disable in favor of using
  1191. <filename>pkg-config</filename> to query the information.
  1192. The <filename>binconfig-disabled</filename> class will
  1193. modify the specified scripts to return an error so that
  1194. calls to them can be easily found and replaced.
  1195. </para>
  1196. <para>
  1197. To add multiple scripts, separate them by spaces.
  1198. Here is an example from the <filename>libpng</filename>
  1199. recipe:
  1200. <literallayout class='monospaced'>
  1201. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  1202. </literallayout>
  1203. </para>
  1204. </glossdef>
  1205. </glossentry>
  1206. <glossentry id='var-BINCONFIG_GLOB'><glossterm>BINCONFIG_GLOB</glossterm>
  1207. <info>
  1208. BINCONFIG_GLOB[doc] = "When inheriting binconfig.bbclass from a recipe, this variable specifies a wildcard for configuration scripts that need editing."
  1209. </info>
  1210. <glossdef>
  1211. <para role="glossdeffirst">
  1212. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1213. When inheriting the
  1214. <link linkend='ref-classes-binconfig'><filename>binconfig</filename></link>
  1215. class, this variable specifies a wildcard for
  1216. configuration scripts that need editing.
  1217. The scripts are edited to correct any paths that have been
  1218. set up during compilation so that they are correct for
  1219. use when installed into the sysroot and called by the
  1220. build processes of other recipes.
  1221. </para>
  1222. <para>
  1223. For more information on how this variable works, see
  1224. <filename>meta/classes/binconfig.bbclass</filename> in the
  1225. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  1226. You can also find general information on the class in the
  1227. "<link linkend='ref-classes-binconfig'><filename>binconfig.bbclass</filename></link>"
  1228. section.
  1229. </para>
  1230. </glossdef>
  1231. </glossentry>
  1232. <glossentry id='var-BP'><glossterm>BP</glossterm>
  1233. <info>
  1234. BP[doc] = "The base recipe name and version but without any special recipe name suffix (i.e. -native, lib64-, and so forth). BP is comprised of ${BPN}-${PV}"
  1235. </info>
  1236. <glossdef>
  1237. <para role="glossdeffirst">
  1238. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1239. The base recipe name and version but without any special
  1240. recipe name suffix (i.e. <filename>-native</filename>, <filename>lib64-</filename>,
  1241. and so forth).
  1242. <filename>BP</filename> is comprised of the following:
  1243. <literallayout class="monospaced">
  1244. ${BPN}-${PV}
  1245. </literallayout>
  1246. </para>
  1247. </glossdef>
  1248. </glossentry>
  1249. <glossentry id='var-BPN'><glossterm>BPN</glossterm>
  1250. <info>
  1251. BPN[doc] = "This variable is a version of the PN variable but removes common suffixes and prefixes."
  1252. </info>
  1253. <glossdef>
  1254. <para role="glossdeffirst">
  1255. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1256. This variable is a version of the
  1257. <link linkend='var-PN'><filename>PN</filename></link>
  1258. variable with common prefixes and suffixes
  1259. removed, such as <filename>nativesdk-</filename>,
  1260. <filename>-cross</filename>,
  1261. <filename>-native</filename>, and multilib's
  1262. <filename>lib64-</filename> and
  1263. <filename>lib32-</filename>.
  1264. The exact lists of prefixes and suffixes removed are
  1265. specified by the
  1266. <link linkend='var-MLPREFIX'><filename>MLPREFIX</filename></link>
  1267. and
  1268. <link linkend='var-SPECIAL_PKGSUFFIX'><filename>SPECIAL_PKGSUFFIX</filename></link>
  1269. variables, respectively.
  1270. </para>
  1271. </glossdef>
  1272. </glossentry>
  1273. <glossentry id='var-BUGTRACKER'><glossterm>BUGTRACKER</glossterm>
  1274. <info>
  1275. BUGTRACKER[doc] = "Specifies a URL for an upstream bug tracking website for a recipe."
  1276. </info>
  1277. <glossdef>
  1278. <para role="glossdeffirst">
  1279. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1280. Specifies a URL for an upstream bug tracking website for
  1281. a recipe.
  1282. The OpenEmbedded build system does not use this variable.
  1283. Rather, the variable is a useful pointer in case a bug
  1284. in the software being built needs to be manually reported.
  1285. </para>
  1286. </glossdef>
  1287. </glossentry>
  1288. <glossentry id='var-BUILD_ARCH'><glossterm>BUILD_ARCH</glossterm>
  1289. <info>
  1290. BUILD_ARCH[doc] = "The name of the building architecture (e.g. i686)."
  1291. </info>
  1292. <glossdef>
  1293. <para role="glossdeffirst">
  1294. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1295. Specifies the architecture of the build host
  1296. (e.g. <filename>i686</filename>).
  1297. The OpenEmbedded build system sets the value of
  1298. <filename>BUILD_ARCH</filename> from the machine name
  1299. reported by the <filename>uname</filename> command.
  1300. </para>
  1301. </glossdef>
  1302. </glossentry>
  1303. <glossentry id='var-BUILD_CFLAGS'><glossterm>BUILD_CFLAGS</glossterm>
  1304. <info>
  1305. BUILD_CFLAGS[doc] = "Specifies the flags to pass to the C compiler when building for the build host."
  1306. </info>
  1307. <glossdef>
  1308. <para role="glossdeffirst">
  1309. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1310. Specifies the flags to pass to the C compiler when building
  1311. for the build host.
  1312. When building in the <filename>-native</filename> context,
  1313. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  1314. is set to the value of this variable by default.
  1315. </para>
  1316. </glossdef>
  1317. </glossentry>
  1318. <glossentry id='var-BUILD_CPPFLAGS'><glossterm>BUILD_CPPFLAGS</glossterm>
  1319. <info>
  1320. BUILD_CPPFLAGS[doc] = "Specifies the flags to pass to the C pre-processor (i.e. to both the C and the C++ compilers) when building for the build host."
  1321. </info>
  1322. <glossdef>
  1323. <para role="glossdeffirst">
  1324. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1325. Specifies the flags to pass to the C pre-processor
  1326. (i.e. to both the C and the C++ compilers) when building
  1327. for the build host.
  1328. When building in the <filename>-native</filename> context,
  1329. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  1330. is set to the value of this variable by default.
  1331. </para>
  1332. </glossdef>
  1333. </glossentry>
  1334. <glossentry id='var-BUILD_CXXFLAGS'><glossterm>BUILD_CXXFLAGS</glossterm>
  1335. <info>
  1336. BUILD_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the build host."
  1337. </info>
  1338. <glossdef>
  1339. <para role="glossdeffirst">
  1340. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1341. Specifies the flags to pass to the C++ compiler when
  1342. building for the build host.
  1343. When building in the <filename>-native</filename> context,
  1344. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  1345. is set to the value of this variable by default.
  1346. </para>
  1347. </glossdef>
  1348. </glossentry>
  1349. <glossentry id='var-BUILD_LDFLAGS'><glossterm>BUILD_LDFLAGS</glossterm>
  1350. <info>
  1351. BUILD_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the build host."
  1352. </info>
  1353. <glossdef>
  1354. <para role="glossdeffirst">
  1355. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1356. Specifies the flags to pass to the linker when building
  1357. for the build host.
  1358. When building in the <filename>-native</filename> context,
  1359. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  1360. is set to the value of this variable by default.
  1361. </para>
  1362. </glossdef>
  1363. </glossentry>
  1364. <glossentry id='var-BUILD_OPTIMIZATION'><glossterm>BUILD_OPTIMIZATION</glossterm>
  1365. <info>
  1366. BUILD_OPTIMIZATION[doc] = "Specifies the optimization flags passed to the C compiler when building for the build host or the SDK."
  1367. </info>
  1368. <glossdef>
  1369. <para role="glossdeffirst">
  1370. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1371. Specifies the optimization flags passed to the C compiler
  1372. when building for the build host or the SDK.
  1373. The flags are passed through the
  1374. <link linkend='var-BUILD_CFLAGS'><filename>BUILD_CFLAGS</filename></link>
  1375. and
  1376. <link linkend='var-BUILDSDK_CFLAGS'><filename>BUILDSDK_CFLAGS</filename></link>
  1377. default values.
  1378. </para>
  1379. <para>
  1380. The default value of the
  1381. <filename>BUILD_OPTIMIZATION</filename> variable is
  1382. "-O2 -pipe".
  1383. </para>
  1384. </glossdef>
  1385. </glossentry>
  1386. <glossentry id='var-BUILD_OS'><glossterm>BUILD_OS</glossterm>
  1387. <info>
  1388. BUILD_OS[doc] = "The operating system (in lower case) of the building architecture (e.g. Linux)."
  1389. </info>
  1390. <glossdef>
  1391. <para role="glossdeffirst">
  1392. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1393. Specifies the operating system in use on the build
  1394. host (e.g. "linux").
  1395. The OpenEmbedded build system sets the value of
  1396. <filename>BUILD_OS</filename> from the OS reported by
  1397. the <filename>uname</filename> command - the first word,
  1398. converted to lower-case characters.
  1399. </para>
  1400. </glossdef>
  1401. </glossentry>
  1402. <glossentry id='var-BUILD_PREFIX'><glossterm>BUILD_PREFIX</glossterm>
  1403. <info>
  1404. BUILD_PREFIX[doc] = "The toolchain binary prefix used for native recipes."
  1405. </info>
  1406. <glossdef>
  1407. <para role="glossdeffirst">
  1408. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1409. The toolchain binary prefix used for native recipes.
  1410. The OpenEmbedded build system uses the
  1411. <filename>BUILD_PREFIX</filename> value to set the
  1412. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  1413. when building for <filename>native</filename> recipes.
  1414. </para>
  1415. </glossdef>
  1416. </glossentry>
  1417. <glossentry id='var-BUILD_SYS'><glossterm>BUILD_SYS</glossterm>
  1418. <info>
  1419. BUILD_SYS[doc] = "The toolchain binary prefix used for native recipes."
  1420. </info>
  1421. <glossdef>
  1422. <para role="glossdeffirst">
  1423. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1424. Specifies the system, including the architecture and
  1425. the operating system, to use when building for the build
  1426. host (i.e. when building <filename>native</filename>
  1427. recipes).
  1428. </para>
  1429. <para>
  1430. The OpenEmbedded build system automatically sets this
  1431. variable based on
  1432. <link linkend='var-BUILD_ARCH'><filename>BUILD_ARCH</filename></link>,
  1433. <link linkend='var-BUILD_VENDOR'><filename>BUILD_VENDOR</filename></link>,
  1434. and
  1435. <link linkend='var-BUILD_OS'><filename>BUILD_OS</filename></link>.
  1436. You do not need to set the <filename>BUILD_SYS</filename>
  1437. variable yourself.
  1438. </para>
  1439. </glossdef>
  1440. </glossentry>
  1441. <glossentry id='var-BUILD_VENDOR'><glossterm>BUILD_VENDOR</glossterm>
  1442. <info>
  1443. BUILD_VENDOR[doc] = "The vendor name to use when building for the build host."
  1444. </info>
  1445. <glossdef>
  1446. <para role="glossdeffirst">
  1447. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1448. Specifies the vendor name to use when building for the
  1449. build host.
  1450. The default value is an empty string ("").
  1451. </para>
  1452. </glossdef>
  1453. </glossentry>
  1454. <glossentry id='var-BUILDDIR'><glossterm>BUILDDIR</glossterm>
  1455. <info>
  1456. BUILDDIR[doc] = "Points to the location of the Build Directory."
  1457. </info>
  1458. <glossdef>
  1459. <para role="glossdeffirst">
  1460. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1461. Points to the location of the
  1462. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  1463. You can define this directory indirectly through the
  1464. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>
  1465. and
  1466. <link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link>
  1467. scripts by passing in a Build Directory path when you run
  1468. the scripts.
  1469. If you run the scripts and do not provide a Build Directory
  1470. path, the <filename>BUILDDIR</filename> defaults to
  1471. <filename>build</filename> in the current directory.
  1472. </para>
  1473. </glossdef>
  1474. </glossentry>
  1475. <glossentry id='var-BUILDHISTORY_COMMIT'><glossterm>BUILDHISTORY_COMMIT</glossterm>
  1476. <info>
  1477. BUILDHISTORY_COMMIT[doc] = "When inheriting the buildhistory class, this variable specifies whether or not to commit the build history output in a local Git repository."
  1478. </info>
  1479. <glossdef>
  1480. <para role="glossdeffirst">
  1481. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1482. When inheriting the
  1483. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1484. class, this variable specifies whether or not to commit the
  1485. build history output in a local Git repository.
  1486. If set to "1", this local repository will be maintained
  1487. automatically by the
  1488. <filename>buildhistory</filename>
  1489. class and a commit will be created on every
  1490. build for changes to each top-level subdirectory of the
  1491. build history output (images, packages, and sdk).
  1492. If you want to track changes to build history over
  1493. time, you should set this value to "1".
  1494. </para>
  1495. <para>
  1496. By default, the <filename>buildhistory</filename> class
  1497. does not commit the build history output in a local
  1498. Git repository:
  1499. <literallayout class='monospaced'>
  1500. BUILDHISTORY_COMMIT ?= "0"
  1501. </literallayout>
  1502. </para>
  1503. </glossdef>
  1504. </glossentry>
  1505. <glossentry id='var-BUILDHISTORY_COMMIT_AUTHOR'><glossterm>BUILDHISTORY_COMMIT_AUTHOR</glossterm>
  1506. <info>
  1507. BUILDHISTORY_COMMIT_AUTHOR[doc] = "When inheriting the buildhistory class, this variable specifies the author to use for each Git commit."
  1508. </info>
  1509. <glossdef>
  1510. <para role="glossdeffirst">
  1511. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1512. When inheriting the
  1513. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1514. class, this variable specifies the author to use for each
  1515. Git commit.
  1516. In order for the <filename>BUILDHISTORY_COMMIT_AUTHOR</filename>
  1517. variable to work, the
  1518. <link linkend='var-BUILDHISTORY_COMMIT'><filename>BUILDHISTORY_COMMIT</filename></link>
  1519. variable must be set to "1".
  1520. </para>
  1521. <para>
  1522. Git requires that the value you provide for the
  1523. <filename>BUILDHISTORY_COMMIT_AUTHOR</filename> variable
  1524. takes the form of "name &lt;email@host&gt;".
  1525. Providing an email address or host that is not valid does
  1526. not produce an error.
  1527. </para>
  1528. <para>
  1529. By default, the <filename>buildhistory</filename> class
  1530. sets the variable as follows:
  1531. <literallayout class='monospaced'>
  1532. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory &lt;buildhistory@${DISTRO}&gt;"
  1533. </literallayout>
  1534. </para>
  1535. </glossdef>
  1536. </glossentry>
  1537. <glossentry id='var-BUILDHISTORY_DIR'><glossterm>BUILDHISTORY_DIR</glossterm>
  1538. <info>
  1539. BUILDHISTORY_DIR[doc] = "When inheriting the buildhistory class, this variable specifies the directory in which build history information is kept."
  1540. </info>
  1541. <glossdef>
  1542. <para role="glossdeffirst">
  1543. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1544. When inheriting the
  1545. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1546. class, this variable specifies the directory in which
  1547. build history information is kept.
  1548. For more information on how the variable works, see the
  1549. <filename>buildhistory.class</filename>.
  1550. </para>
  1551. <para>
  1552. By default, the <filename>buildhistory</filename> class
  1553. sets the directory as follows:
  1554. <literallayout class='monospaced'>
  1555. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  1556. </literallayout>
  1557. </para>
  1558. </glossdef>
  1559. </glossentry>
  1560. <glossentry id='var-BUILDHISTORY_FEATURES'><glossterm>BUILDHISTORY_FEATURES</glossterm>
  1561. <info>
  1562. BUILDHISTORY_FEATURES[doc] = "When inheriting the buildhistory class, this variable specifies the build history features to be enabled."
  1563. </info>
  1564. <glossdef>
  1565. <para role="glossdeffirst">
  1566. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1567. When inheriting the
  1568. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1569. class, this variable specifies the build history features
  1570. to be enabled.
  1571. For more information on how build history works, see the
  1572. "<link linkend='maintaining-build-output-quality'>Maintaining Build Output Quality</link>"
  1573. section.
  1574. </para>
  1575. <para>
  1576. You can specify three features in the form of a
  1577. space-separated list:
  1578. <itemizedlist>
  1579. <listitem><para><emphasis>image:</emphasis>
  1580. Analysis of the contents of images, which
  1581. includes the list of installed packages among other
  1582. things.
  1583. </para></listitem>
  1584. <listitem><para><emphasis>package:</emphasis>
  1585. Analysis of the contents of individual packages.
  1586. </para></listitem>
  1587. <listitem><para><emphasis>sdk:</emphasis>
  1588. Analysis of the contents of the software
  1589. development kit (SDK).
  1590. </para></listitem>
  1591. </itemizedlist>
  1592. </para>
  1593. <para>
  1594. By default, the <filename>buildhistory</filename> class
  1595. enables all three features:
  1596. <literallayout class='monospaced'>
  1597. BUILDHISTORY_FEATURES ?= "image package sdk"
  1598. </literallayout>
  1599. </para>
  1600. </glossdef>
  1601. </glossentry>
  1602. <glossentry id='var-BUILDHISTORY_IMAGE_FILES'><glossterm>BUILDHISTORY_IMAGE_FILES</glossterm>
  1603. <info>
  1604. BUILDHISTORY_IMAGE_FILES[doc] = "When inheriting the buildhistory class, this variable specifies a list of paths to files copied from the image contents into the build history directory under an "image-files" directory in the directory for the image, so that you can track the contents of each file."
  1605. </info>
  1606. <glossdef>
  1607. <para role="glossdeffirst">
  1608. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1609. When inheriting the
  1610. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1611. class, this variable specifies a list of paths to files
  1612. copied from the
  1613. image contents into the build history directory under
  1614. an "image-files" directory in the directory for
  1615. the image, so that you can track the contents of each file.
  1616. The default is to copy <filename>/etc/passwd</filename>
  1617. and <filename>/etc/group</filename>, which allows you to
  1618. monitor for changes in user and group entries.
  1619. You can modify the list to include any file.
  1620. Specifying an invalid path does not produce an error.
  1621. Consequently, you can include files that might
  1622. not always be present.
  1623. </para>
  1624. <para>
  1625. By default, the <filename>buildhistory</filename> class
  1626. provides paths to the following files:
  1627. <literallayout class='monospaced'>
  1628. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  1629. </literallayout>
  1630. </para>
  1631. </glossdef>
  1632. </glossentry>
  1633. <glossentry id='var-BUILDHISTORY_PUSH_REPO'><glossterm>BUILDHISTORY_PUSH_REPO</glossterm>
  1634. <info>
  1635. BUILDHISTORY_PUSH_REPO[doc] = "When inheriting the buildhistory class, this variable optionally specifies a remote repository to which build history pushes Git changes."
  1636. </info>
  1637. <glossdef>
  1638. <para role="glossdeffirst">
  1639. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1640. When inheriting the
  1641. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1642. class, this variable optionally specifies a remote
  1643. repository to which build history pushes Git changes.
  1644. In order for <filename>BUILDHISTORY_PUSH_REPO</filename>
  1645. to work,
  1646. <link linkend='var-BUILDHISTORY_COMMIT'><filename>BUILDHISTORY_COMMIT</filename></link>
  1647. must be set to "1".
  1648. </para>
  1649. <para>
  1650. The repository should correspond to a remote
  1651. address that specifies a repository as understood by
  1652. Git, or alternatively to a remote name that you have
  1653. set up manually using <filename>git remote</filename>
  1654. within the local repository.
  1655. </para>
  1656. <para>
  1657. By default, the <filename>buildhistory</filename> class
  1658. sets the variable as follows:
  1659. <literallayout class='monospaced'>
  1660. BUILDHISTORY_PUSH_REPO ?= ""
  1661. </literallayout>
  1662. </para>
  1663. </glossdef>
  1664. </glossentry>
  1665. <glossentry id='var-BUILDSDK_CFLAGS'><glossterm>BUILDSDK_CFLAGS</glossterm>
  1666. <info>
  1667. BUILDSDK_CFLAGS[doc] = "Specifies the flags to pass to the C compiler when building for the SDK."
  1668. </info>
  1669. <glossdef>
  1670. <para role="glossdeffirst">
  1671. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1672. Specifies the flags to pass to the C compiler when building
  1673. for the SDK.
  1674. When building in the <filename>nativesdk-</filename>
  1675. context,
  1676. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  1677. is set to the value of this variable by default.
  1678. </para>
  1679. </glossdef>
  1680. </glossentry>
  1681. <glossentry id='var-BUILDSDK_CPPFLAGS'><glossterm>BUILDSDK_CPPFLAGS</glossterm>
  1682. <info>
  1683. BUILDSDK_CPPFLAGS[doc] = "Specifies the flags to pass to the C pre-processor (i.e. to both the C and the C++ compilers) when building for the SDK."
  1684. </info>
  1685. <glossdef>
  1686. <para role="glossdeffirst">
  1687. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1688. Specifies the flags to pass to the C pre-processor
  1689. (i.e. to both the C and the C++ compilers) when building
  1690. for the SDK.
  1691. When building in the <filename>nativesdk-</filename>
  1692. context,
  1693. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  1694. is set to the value of this variable by default.
  1695. </para>
  1696. </glossdef>
  1697. </glossentry>
  1698. <glossentry id='var-BUILDSDK_CXXFLAGS'><glossterm>BUILDSDK_CXXFLAGS</glossterm>
  1699. <info>
  1700. BUILDSDK_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the SDK."
  1701. </info>
  1702. <glossdef>
  1703. <para role="glossdeffirst">
  1704. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1705. Specifies the flags to pass to the C++ compiler when
  1706. building for the SDK.
  1707. When building in the <filename>nativesdk-</filename>
  1708. context,
  1709. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  1710. is set to the value of this variable by default.
  1711. </para>
  1712. </glossdef>
  1713. </glossentry>
  1714. <glossentry id='var-BUILDSDK_LDFLAGS'><glossterm>BUILDSDK_LDFLAGS</glossterm>
  1715. <info>
  1716. BUILDSDK_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the SDK."
  1717. </info>
  1718. <glossdef>
  1719. <para role="glossdeffirst">
  1720. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1721. Specifies the flags to pass to the linker when building
  1722. for the SDK.
  1723. When building in the <filename>nativesdk-</filename>
  1724. context,
  1725. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  1726. is set to the value of this variable by default.
  1727. </para>
  1728. </glossdef>
  1729. </glossentry>
  1730. <glossentry id='var-BUILDSTATS_BASE'><glossterm>BUILDSTATS_BASE</glossterm>
  1731. <info>
  1732. BUILDSTATS_BASE[doc] = "Points to the location of the directory that holds build statistics when you use and enable the buildstats class."
  1733. </info>
  1734. <glossdef>
  1735. <para role="glossdeffirst">
  1736. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1737. Points to the location of the directory that holds build
  1738. statistics when you use and enable the
  1739. <link linkend='ref-classes-buildstats'><filename>buildstats</filename></link>
  1740. class.
  1741. The <filename>BUILDSTATS_BASE</filename> directory defaults
  1742. to
  1743. <filename>${</filename><link linkend='var-TMPDIR'><filename>TMPDIR</filename></link><filename>}/buildstats/</filename>.
  1744. </para>
  1745. </glossdef>
  1746. </glossentry>
  1747. <glossentry id='var-BUSYBOX_SPLIT_SUID'><glossterm>BUSYBOX_SPLIT_SUID</glossterm>
  1748. <info>
  1749. BUSYBOX_SPLIT_SUID[doc] = "For the BusyBox recipe, specifies whether to split the output executable file into two parts: one for features that require setuid root, and one for the remaining features."
  1750. </info>
  1751. <glossdef>
  1752. <para role="glossdeffirst">
  1753. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1754. For the BusyBox recipe, specifies whether to split the
  1755. output executable file into two parts: one for features
  1756. that require <filename>setuid root</filename>, and one for
  1757. the remaining features (i.e. those that do not require
  1758. <filename>setuid root</filename>).
  1759. </para>
  1760. <para>
  1761. The <filename>BUSYBOX_SPLIT_SUID</filename> variable
  1762. defaults to "1", which results in a single output
  1763. executable file.
  1764. Set the variable to "0" to split the output file.
  1765. </para>
  1766. </glossdef>
  1767. </glossentry>
  1768. </glossdiv>
  1769. <glossdiv id='var-glossary-c'><title>C</title>
  1770. <glossentry id='var-CACHE'><glossterm>CACHE</glossterm>
  1771. <info>
  1772. CACHE[doc] = "The directory BitBake uses to store a cache of the metadata."
  1773. </info>
  1774. <glossdef>
  1775. <para role="glossdeffirst">
  1776. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1777. Specifies the directory BitBake uses to store a cache
  1778. of the
  1779. <ulink url='&YOCTO_DOCS_DEV_URL;#metadata'>Metadata</ulink>
  1780. so it does not need to be parsed every time BitBake is
  1781. started.
  1782. </para>
  1783. </glossdef>
  1784. </glossentry>
  1785. <glossentry id='var-CC'><glossterm>CC</glossterm>
  1786. <info>
  1787. CC[doc] = "Minimum command and arguments to run the C compiler."
  1788. </info>
  1789. <glossdef>
  1790. <para role="glossdeffirst">
  1791. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1792. The minimal command and arguments used to run the C
  1793. compiler.
  1794. </para>
  1795. </glossdef>
  1796. </glossentry>
  1797. <glossentry id='var-CFLAGS'><glossterm>CFLAGS</glossterm>
  1798. <info>
  1799. CFLAGS[doc] = "Flags passed to the C compiler for the target system. This variable evaluates to the same as TARGET_CFLAGS."
  1800. </info>
  1801. <glossdef>
  1802. <para role="glossdeffirst">
  1803. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1804. Specifies the flags to pass to the C compiler.
  1805. This variable is exported to an environment
  1806. variable and thus made visible to the software being
  1807. built during the compilation step.
  1808. </para>
  1809. <para>
  1810. Default initialization for <filename>CFLAGS</filename>
  1811. varies depending on what is being built:
  1812. <itemizedlist>
  1813. <listitem><para>
  1814. <link linkend='var-TARGET_CFLAGS'><filename>TARGET_CFLAGS</filename></link>
  1815. when building for the target
  1816. </para></listitem>
  1817. <listitem><para>
  1818. <link linkend='var-BUILD_CFLAGS'><filename>BUILD_CFLAGS</filename></link>
  1819. when building for the build host (i.e.
  1820. <filename>-native</filename>)
  1821. </para></listitem>
  1822. <listitem><para>
  1823. <link linkend='var-BUILDSDK_CFLAGS'><filename>BUILDSDK_CFLAGS</filename></link>
  1824. when building for an SDK (i.e.
  1825. <filename>nativesdk-</filename>)
  1826. </para></listitem>
  1827. </itemizedlist>
  1828. </para>
  1829. </glossdef>
  1830. </glossentry>
  1831. <glossentry id='var-CLASSOVERRIDE'><glossterm>CLASSOVERRIDE</glossterm>
  1832. <info>
  1833. CLASSOVERRIDE[doc] = "An internal variable specifying the special class override that should currently apply (e.g. "class-target", "class-native", and so forth)."
  1834. </info>
  1835. <glossdef>
  1836. <para role="glossdeffirst">
  1837. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1838. An internal variable specifying the special class override
  1839. that should currently apply (e.g. "class-target",
  1840. "class-native", and so forth).
  1841. The classes that use this variable (e.g.
  1842. <link linkend='ref-classes-native'><filename>native</filename></link>,
  1843. <link linkend='ref-classes-nativesdk'><filename>nativesdk</filename></link>,
  1844. and so forth) set the variable to appropriate values.
  1845. <note>
  1846. <filename>CLASSOVERRIDE</filename> gets its default
  1847. "class-target" value from the
  1848. <filename>bitbake.conf</filename> file.
  1849. </note>
  1850. </para>
  1851. <para>
  1852. As an example, the following override allows you to install
  1853. extra files, but only when building for the target:
  1854. <literallayout class='monospaced'>
  1855. do_install_append_class-target() {
  1856. install my-extra-file ${D}${sysconfdir}
  1857. }
  1858. </literallayout>
  1859. Here is an example where <filename>FOO</filename>
  1860. is set to "native" when building for the build host, and
  1861. to "other" when not building for the build host:
  1862. <literallayout class='monospaced'>
  1863. FOO_class-native = "native"
  1864. FOO = "other"
  1865. </literallayout>
  1866. The underlying mechanism behind
  1867. <filename>CLASSOVERRIDE</filename> is simply that it is
  1868. included in the default value of
  1869. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  1870. </para>
  1871. </glossdef>
  1872. </glossentry>
  1873. <glossentry id='var-CLEANBROKEN'><glossterm>CLEANBROKEN</glossterm>
  1874. <info>
  1875. CLEANBROKEN[doc] = "Prevents the build system from running 'make clean' during the do_configure task."
  1876. </info>
  1877. <glossdef>
  1878. <para role="glossdeffirst">
  1879. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1880. If set to "1" within a recipe,
  1881. <filename>CLEANBROKEN</filename> specifies that
  1882. the <filename>make clean</filename> command does
  1883. not work for the software being built.
  1884. Consequently, the OpenEmbedded build system will not try
  1885. to run <filename>make clean</filename> during the
  1886. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  1887. task, which is the default behavior.
  1888. </para>
  1889. </glossdef>
  1890. </glossentry>
  1891. <glossentry id='var-COMBINED_FEATURES'><glossterm>COMBINED_FEATURES</glossterm>
  1892. <info>
  1893. COMBINED_FEATURES[doc] = "A set of features common between MACHINE_FEATURES and DISTRO_FEATURES."
  1894. </info>
  1895. <glossdef>
  1896. <para role="glossdeffirst">
  1897. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1898. Provides a list of hardware features that are enabled in
  1899. both
  1900. <link linkend='var-MACHINE_FEATURES'><filename>MACHINE_FEATURES</filename></link>
  1901. and
  1902. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>.
  1903. This select list of features contains features that make
  1904. sense to be controlled both at the machine and distribution
  1905. configuration level.
  1906. For example, the "bluetooth" feature requires hardware
  1907. support but should also be optional at the distribution
  1908. level, in case the hardware supports Bluetooth but you
  1909. do not ever intend to use it.
  1910. </para>
  1911. <para>
  1912. For more information, see the
  1913. <link linkend='var-MACHINE_FEATURES'><filename>MACHINE_FEATURES</filename></link>
  1914. and <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  1915. variables.
  1916. </para>
  1917. </glossdef>
  1918. </glossentry>
  1919. <glossentry id='var-COMMON_LICENSE_DIR'><glossterm>COMMON_LICENSE_DIR</glossterm>
  1920. <info>
  1921. COMMON_LICENSE_DIR[doc] = "Points to meta/files/common-licenses in the Source Directory, which is where generic license files reside."
  1922. </info>
  1923. <glossdef>
  1924. <para role="glossdeffirst">
  1925. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1926. Points to <filename>meta/files/common-licenses</filename>
  1927. in the
  1928. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>,
  1929. which is where generic license files reside.
  1930. </para>
  1931. </glossdef>
  1932. </glossentry>
  1933. <glossentry id='var-COMPATIBLE_HOST'><glossterm>COMPATIBLE_HOST</glossterm>
  1934. <info>
  1935. COMPATIBLE_HOST[doc] = "A regular expression that resolves to one or more hosts (when the recipe is native) or one or more targets (when the recipe is non-native) with which a recipe is compatible."
  1936. </info>
  1937. <glossdef>
  1938. <para role="glossdeffirst">
  1939. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1940. A regular expression that resolves to one or more hosts
  1941. (when the recipe is native) or one or more targets (when
  1942. the recipe is non-native) with which a recipe is compatible.
  1943. The regular expression is matched against
  1944. <link linkend="var-HOST_SYS"><filename>HOST_SYS</filename></link>.
  1945. You can use the variable to stop recipes from being built
  1946. for classes of systems with which the recipes are not
  1947. compatible.
  1948. Stopping these builds is particularly useful with kernels.
  1949. The variable also helps to increase parsing speed
  1950. since the build system skips parsing recipes not
  1951. compatible with the current system.
  1952. </para>
  1953. </glossdef>
  1954. </glossentry>
  1955. <glossentry id='var-COMPATIBLE_MACHINE'><glossterm>COMPATIBLE_MACHINE</glossterm>
  1956. <info>
  1957. COMPATIBLE_MACHINE[doc] = "A regular expression that resolves to one or more target machines with which a recipe is compatible."
  1958. </info>
  1959. <glossdef>
  1960. <para role="glossdeffirst">
  1961. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1962. A regular expression that resolves to one or more
  1963. target machines with which a recipe is compatible.
  1964. The regular expression is matched against
  1965. <link linkend="var-MACHINEOVERRIDES"><filename>MACHINEOVERRIDES</filename></link>.
  1966. You can use the variable to stop recipes from being built
  1967. for machines with which the recipes are not compatible.
  1968. Stopping these builds is particularly useful with kernels.
  1969. The variable also helps to increase parsing speed
  1970. since the build system skips parsing recipes not
  1971. compatible with the current machine.
  1972. </para>
  1973. </glossdef>
  1974. </glossentry>
  1975. <glossentry id='var-COMPLEMENTARY_GLOB'><glossterm>COMPLEMENTARY_GLOB</glossterm>
  1976. <info>
  1977. COMPLEMENTARY_GLOB[doc] = "Defines wildcards to match when installing a list of complementary packages for all the packages installed in an image."
  1978. </info>
  1979. <glossdef>
  1980. <para role="glossdeffirst">
  1981. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1982. Defines wildcards to match when installing a list of
  1983. complementary packages for all the packages explicitly
  1984. (or implicitly) installed in an image.
  1985. The resulting list of complementary packages is associated
  1986. with an item that can be added to
  1987. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  1988. An example usage of this is the "dev-pkgs" item that when
  1989. added to <filename>IMAGE_FEATURES</filename> will
  1990. install -dev packages (containing headers and other
  1991. development files) for every package in the image.
  1992. </para>
  1993. <para>
  1994. To add a new feature item pointing to a wildcard, use a
  1995. variable flag to specify the feature item name and
  1996. use the value to specify the wildcard.
  1997. Here is an example:
  1998. <literallayout class='monospaced'>
  1999. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  2000. </literallayout>
  2001. </para>
  2002. </glossdef>
  2003. </glossentry>
  2004. <glossentry id='var-CONF_VERSION'><glossterm>CONF_VERSION</glossterm>
  2005. <info>
  2006. CONF_VERSION[doc] = "Tracks the version of local.conf. Increased each time build/conf/ changes incompatibly."
  2007. </info>
  2008. <glossdef>
  2009. <para role="glossdeffirst">
  2010. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2011. Tracks the version of the local configuration file
  2012. (i.e. <filename>local.conf</filename>).
  2013. The value for <filename>CONF_VERSION</filename>
  2014. increments each time <filename>build/conf/</filename>
  2015. compatibility changes.
  2016. </para>
  2017. </glossdef>
  2018. </glossentry>
  2019. <glossentry id='var-CONFFILES'><glossterm>CONFFILES</glossterm>
  2020. <info>
  2021. CONFFILES[doc] = "Identifies editable or configurable files that are part of a package."
  2022. </info>
  2023. <glossdef>
  2024. <para role="glossdeffirst">
  2025. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2026. Identifies editable or configurable files that are part of a package.
  2027. If the Package Management System (PMS) is being used to update
  2028. packages on the target system, it is possible that
  2029. configuration files you have changed after the original installation
  2030. and that you now want to remain unchanged are overwritten.
  2031. In other words, editable files might exist in the package that you do not
  2032. want reset as part of the package update process.
  2033. You can use the <filename>CONFFILES</filename> variable to list the files in the
  2034. package that you wish to prevent the PMS from overwriting during this update process.
  2035. </para>
  2036. <para>
  2037. To use the <filename>CONFFILES</filename> variable, provide a package name
  2038. override that identifies the resulting package.
  2039. Then, provide a space-separated list of files.
  2040. Here is an example:
  2041. <literallayout class='monospaced'>
  2042. CONFFILES_${PN} += "${sysconfdir}/file1 \
  2043. ${sysconfdir}/file2 ${sysconfdir}/file3"
  2044. </literallayout>
  2045. </para>
  2046. <para>
  2047. A relationship exists between the <filename>CONFFILES</filename> and
  2048. <filename><link linkend='var-FILES'>FILES</link></filename> variables.
  2049. The files listed within <filename>CONFFILES</filename> must be a subset of
  2050. the files listed within <filename>FILES</filename>.
  2051. Because the configuration files you provide with <filename>CONFFILES</filename>
  2052. are simply being identified so that the PMS will not overwrite them,
  2053. it makes sense that
  2054. the files must already be included as part of the package through the
  2055. <filename>FILES</filename> variable.
  2056. </para>
  2057. <note>
  2058. When specifying paths as part of the <filename>CONFFILES</filename> variable,
  2059. it is good practice to use appropriate path variables.
  2060. For example, <filename>${sysconfdir}</filename> rather than
  2061. <filename>/etc</filename> or <filename>${bindir}</filename> rather
  2062. than <filename>/usr/bin</filename>.
  2063. You can find a list of these variables at the top of the
  2064. <filename>meta/conf/bitbake.conf</filename> file in the
  2065. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  2066. </note>
  2067. </glossdef>
  2068. </glossentry>
  2069. <glossentry id='var-CONFIG_INITRAMFS_SOURCE'><glossterm>CONFIG_INITRAMFS_SOURCE</glossterm>
  2070. <info>
  2071. CONFIG_INITRAMFS_SOURCE[doc] = "Identifies the initial RAM disk (initramfs) source files. The OpenEmbedded build system receives and uses this kernel Kconfig variable as an environment variable."
  2072. </info>
  2073. <glossdef>
  2074. <para role="glossdeffirst">
  2075. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2076. Identifies the initial RAM disk (initramfs) source files.
  2077. The OpenEmbedded build system receives and uses
  2078. this kernel Kconfig variable as an environment variable.
  2079. By default, the variable is set to null ("").
  2080. </para>
  2081. <para>
  2082. The <filename>CONFIG_INITRAMFS_SOURCE</filename> can be
  2083. either a single cpio archive with a
  2084. <filename>.cpio</filename> suffix or a
  2085. space-separated list of directories and files for building
  2086. the initramfs image.
  2087. A cpio archive should contain a filesystem archive
  2088. to be used as an initramfs image.
  2089. Directories should contain a filesystem layout to be
  2090. included in the initramfs image.
  2091. Files should contain entries according to the format
  2092. described by the
  2093. <filename>usr/gen_init_cpio</filename> program in the
  2094. kernel tree.
  2095. </para>
  2096. <para>
  2097. If you specify multiple directories and files, the
  2098. initramfs image will be the aggregate of all of them.
  2099. </para>
  2100. </glossdef>
  2101. </glossentry>
  2102. <glossentry id='var-CONFIG_SITE'><glossterm>CONFIG_SITE</glossterm>
  2103. <info>
  2104. CONFIG_SITE[doc] = "A list of files that contains autoconf test results relevant to the current build. This variable is used by the Autotools utilities when running configure."
  2105. </info>
  2106. <glossdef>
  2107. <para role="glossdeffirst">
  2108. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2109. A list of files that contains <filename>autoconf</filename> test results relevant
  2110. to the current build.
  2111. This variable is used by the Autotools utilities when running
  2112. <filename>configure</filename>.
  2113. </para>
  2114. </glossdef>
  2115. </glossentry>
  2116. <glossentry id='var-CONFIGURE_FLAGS'><glossterm>CONFIGURE_FLAGS</glossterm>
  2117. <info>
  2118. CONFIGURE_FLAGS[doc] = "The minimal arguments for GNU configure."
  2119. </info>
  2120. <glossdef>
  2121. <para role="glossdeffirst">
  2122. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2123. The minimal arguments for GNU configure.
  2124. </para>
  2125. </glossdef>
  2126. </glossentry>
  2127. <glossentry id='var-CONFLICT_DISTRO_FEATURES'><glossterm>CONFLICT_DISTRO_FEATURES</glossterm>
  2128. <info>
  2129. CONFLICT_DISTRO_FEATURES[doc] = "When a recipe inherits the distro_features_check class, this variable identifies distribution features that would be in conflict should the recipe be built."
  2130. </info>
  2131. <glossdef>
  2132. <para role="glossdeffirst">
  2133. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2134. When inheriting the
  2135. <link linkend='ref-classes-distro_features_check'><filename>distro_features_check</filename></link>
  2136. class, this
  2137. variable identifies distribution features that would
  2138. be in conflict should the recipe
  2139. be built.
  2140. In other words, if the
  2141. <filename>CONFLICT_DISTRO_FEATURES</filename> variable
  2142. lists a feature that also appears in
  2143. <filename>DISTRO_FEATURES</filename> within the
  2144. current configuration, an error occurs and the
  2145. build stops.
  2146. </para>
  2147. </glossdef>
  2148. </glossentry>
  2149. <glossentry id='var-COPY_LIC_DIRS'><glossterm>COPY_LIC_DIRS</glossterm>
  2150. <info>
  2151. COPY_LIC_DIRS[doc] = "If set to "1" along with the COPY_LIC_MANIFEST variable, the OpenEmbedded build system copies into the image the license files, which are located in /usr/share/common-licenses, for each package."
  2152. </info>
  2153. <glossdef>
  2154. <para role="glossdeffirst">
  2155. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2156. If set to "1" along with the
  2157. <link linkend='var-COPY_LIC_MANIFEST'><filename>COPY_LIC_MANIFEST</filename></link>
  2158. variable, the OpenEmbedded build system copies
  2159. into the image the license files, which are located in
  2160. <filename>/usr/share/common-licenses</filename>,
  2161. for each package.
  2162. The license files are placed
  2163. in directories within the image itself during build time.
  2164. <note>
  2165. The <filename>COPY_LIC_DIRS</filename> does not
  2166. offer a path for adding licenses for newly installed
  2167. packages to an image, which might be most suitable
  2168. for read-only filesystems that cannot be upgraded.
  2169. See the
  2170. <link linkend='var-LICENSE_CREATE_PACKAGE'><filename>LICENSE_CREATE_PACKAGE</filename></link>
  2171. variable for additional information.
  2172. You can also reference the
  2173. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  2174. section in the Yocto Project Development Manual for
  2175. information on providing license text.
  2176. </note>
  2177. </para>
  2178. </glossdef>
  2179. </glossentry>
  2180. <glossentry id='var-COPY_LIC_MANIFEST'><glossterm>COPY_LIC_MANIFEST</glossterm>
  2181. <info>
  2182. COPY_LIC_MANIFEST[doc] = "If set to "1", the OpenEmbedded build system copies the license manifest for the image to /usr/share/common-licenses/license.manifest within the image itself."
  2183. </info>
  2184. <glossdef>
  2185. <para role="glossdeffirst">
  2186. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2187. If set to "1", the OpenEmbedded build system copies
  2188. the license manifest for the image to
  2189. <filename>/usr/share/common-licenses/license.manifest</filename>
  2190. within the image itself during build time.
  2191. <note>
  2192. The <filename>COPY_LIC_MANIFEST</filename> does not
  2193. offer a path for adding licenses for newly installed
  2194. packages to an image, which might be most suitable
  2195. for read-only filesystems that cannot be upgraded.
  2196. See the
  2197. <link linkend='var-LICENSE_CREATE_PACKAGE'><filename>LICENSE_CREATE_PACKAGE</filename></link>
  2198. variable for additional information.
  2199. You can also reference the
  2200. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  2201. section in the Yocto Project Development Manual for
  2202. information on providing license text.
  2203. </note>
  2204. </para>
  2205. </glossdef>
  2206. </glossentry>
  2207. <glossentry id='var-CORE_IMAGE_EXTRA_INSTALL'><glossterm>CORE_IMAGE_EXTRA_INSTALL</glossterm>
  2208. <info>
  2209. CORE_IMAGE_EXTRA_INSTALL[doc] = "Specifies the list of packages to be added to the image. You should only set this variable in the conf/local.conf file in the Build Directory."
  2210. </info>
  2211. <glossdef>
  2212. <para role="glossdeffirst">
  2213. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2214. Specifies the list of packages to be added to the image.
  2215. You should only set this variable in the
  2216. <filename>local.conf</filename> configuration file found
  2217. in the
  2218. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  2219. </para>
  2220. <para>
  2221. This variable replaces <filename>POKY_EXTRA_INSTALL</filename>, which is no longer supported.
  2222. </para>
  2223. </glossdef>
  2224. </glossentry>
  2225. <glossentry id='var-COREBASE'><glossterm>COREBASE</glossterm>
  2226. <info>
  2227. COREBASE[doc] = "Specifies the parent directory of the OpenEmbedded Core Metadata layer (i.e. meta)."
  2228. </info>
  2229. <glossdef>
  2230. <para role="glossdeffirst">
  2231. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2232. Specifies the parent directory of the OpenEmbedded
  2233. Core Metadata layer (i.e. <filename>meta</filename>).
  2234. </para>
  2235. <para>
  2236. It is an important distinction that
  2237. <filename>COREBASE</filename> points to the parent of this
  2238. layer and not the layer itself.
  2239. Consider an example where you have cloned the Poky Git
  2240. repository and retained the <filename>poky</filename>
  2241. name for your local copy of the repository.
  2242. In this case, <filename>COREBASE</filename> points to
  2243. the <filename>poky</filename> folder because it is the
  2244. parent directory of the <filename>poky/meta</filename>
  2245. layer.
  2246. </para>
  2247. </glossdef>
  2248. </glossentry>
  2249. <glossentry id='var-COREBASE_FILES'><glossterm>COREBASE_FILES</glossterm>
  2250. <info>
  2251. COREBASE_FILES[doc] = "Lists files from the COREBASE directory that should be copied other than the layers listed in the bblayers.conf file."
  2252. </info>
  2253. <glossdef>
  2254. <para role="glossdeffirst">
  2255. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2256. Lists files from the
  2257. <link linkend='var-COREBASE'><filename>COREBASE</filename></link>
  2258. directory that should be copied other than the layers
  2259. listed in the <filename>bblayers.conf</filename> file.
  2260. The <filename>COREBASE_FILES</filename> variable exists
  2261. for the purpose of copying metadata from the
  2262. OpenEmbedded build system into the extensible
  2263. SDK.
  2264. </para>
  2265. <para>
  2266. Explicitly listing files in <filename>COREBASE</filename>
  2267. is needed because it typically contains build
  2268. directories and other files that should not normally
  2269. be copied into the extensible SDK.
  2270. Consequently, the value of
  2271. <filename>COREBASE_FILES</filename> is used in order to
  2272. only copy the files that are actually needed.
  2273. </para>
  2274. </glossdef>
  2275. </glossentry>
  2276. <glossentry id='var-CPP'><glossterm>CPP</glossterm>
  2277. <info>
  2278. CPP[doc] = "Minimum command and arguments to run the C preprocessor."
  2279. </info>
  2280. <glossdef>
  2281. <para role="glossdeffirst">
  2282. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2283. The minimal command and arguments used to run the C
  2284. preprocessor.
  2285. </para>
  2286. </glossdef>
  2287. </glossentry>
  2288. <glossentry id='var-CPPFLAGS'><glossterm>CPPFLAGS</glossterm>
  2289. <info>
  2290. CPPFLAGS[doc] = "Specifies the flags to pass to the C pre-processor (i.e. to both the C and the C++ compilers)."
  2291. </info>
  2292. <glossdef>
  2293. <para role="glossdeffirst">
  2294. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2295. Specifies the flags to pass to the C pre-processor
  2296. (i.e. to both the C and the C++ compilers).
  2297. This variable is exported to an environment
  2298. variable and thus made visible to the software being
  2299. built during the compilation step.
  2300. </para>
  2301. <para>
  2302. Default initialization for <filename>CPPFLAGS</filename>
  2303. varies depending on what is being built:
  2304. <itemizedlist>
  2305. <listitem><para>
  2306. <link linkend='var-TARGET_CPPFLAGS'><filename>TARGET_CPPFLAGS</filename></link>
  2307. when building for the target
  2308. </para></listitem>
  2309. <listitem><para>
  2310. <link linkend='var-BUILD_CPPFLAGS'><filename>BUILD_CPPFLAGS</filename></link>
  2311. when building for the build host (i.e.
  2312. <filename>-native</filename>)
  2313. </para></listitem>
  2314. <listitem><para>
  2315. <link linkend='var-BUILDSDK_CPPFLAGS'><filename>BUILDSDK_CPPFLAGS</filename></link>
  2316. when building for an SDK (i.e.
  2317. <filename>nativesdk-</filename>)
  2318. </para></listitem>
  2319. </itemizedlist>
  2320. </para>
  2321. </glossdef>
  2322. </glossentry>
  2323. <glossentry id='var-CROSS_COMPILE'><glossterm>CROSS_COMPILE</glossterm>
  2324. <info>
  2325. CROSS_COMPILE[doc] = "The toolchain binary prefix for the target tools."
  2326. </info>
  2327. <glossdef>
  2328. <para role="glossdeffirst">
  2329. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2330. The toolchain binary prefix for the target tools.
  2331. The <filename>CROSS_COMPILE</filename> variable is the
  2332. same as the
  2333. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  2334. variable.
  2335. <note>
  2336. The OpenEmbedded build system sets the
  2337. <filename>CROSS_COMPILE</filename> variable only in
  2338. certain contexts (e.g. when building for kernel
  2339. and kernel module recipes).
  2340. </note>
  2341. </para>
  2342. </glossdef>
  2343. </glossentry>
  2344. <glossentry id='var-CVSDIR'><glossterm>CVSDIR</glossterm>
  2345. <info>
  2346. CVSDIR[doc] = "The directory where cvs checkouts will be stored in."
  2347. </info>
  2348. <glossdef>
  2349. <para role="glossdeffirst">
  2350. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2351. The directory in which files checked out under the
  2352. CVS system are stored.
  2353. </para>
  2354. </glossdef>
  2355. </glossentry>
  2356. <glossentry id='var-CXX'><glossterm>CXX</glossterm>
  2357. <info>
  2358. CXX[doc] = "Minimum command and arguments to run the C++ compiler."
  2359. </info>
  2360. <glossdef>
  2361. <para role="glossdeffirst">
  2362. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2363. The minimal command and arguments used to run the C++
  2364. compiler.
  2365. </para>
  2366. </glossdef>
  2367. </glossentry>
  2368. <glossentry id='var-CXXFLAGS'><glossterm>CXXFLAGS</glossterm>
  2369. <info>
  2370. CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler."
  2371. </info>
  2372. <glossdef>
  2373. <para role="glossdeffirst">
  2374. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2375. Specifies the flags to pass to the C++ compiler.
  2376. This variable is exported to an environment
  2377. variable and thus made visible to the software being
  2378. built during the compilation step.
  2379. </para>
  2380. <para>
  2381. Default initialization for <filename>CXXFLAGS</filename>
  2382. varies depending on what is being built:
  2383. <itemizedlist>
  2384. <listitem><para>
  2385. <link linkend='var-TARGET_CXXFLAGS'><filename>TARGET_CXXFLAGS</filename></link>
  2386. when building for the target
  2387. </para></listitem>
  2388. <listitem><para>
  2389. <link linkend='var-BUILD_CXXFLAGS'><filename>BUILD_CXXFLAGS</filename></link>
  2390. when building for the build host (i.e.
  2391. <filename>-native</filename>)
  2392. </para></listitem>
  2393. <listitem><para>
  2394. <link linkend='var-BUILDSDK_CXXFLAGS'><filename>BUILDSDK_CXXFLAGS</filename></link>
  2395. when building for an SDK (i.e.
  2396. <filename>nativesdk-</filename>)
  2397. </para></listitem>
  2398. </itemizedlist>
  2399. </para>
  2400. </glossdef>
  2401. </glossentry>
  2402. </glossdiv>
  2403. <glossdiv id='var-glossary-d'><title>D</title>
  2404. <glossentry id='var-D'><glossterm>D</glossterm>
  2405. <info>
  2406. D[doc] = "The destination directory."
  2407. </info>
  2408. <glossdef>
  2409. <para role="glossdeffirst">
  2410. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2411. The destination directory.
  2412. The location in the <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>
  2413. where components are installed by the
  2414. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  2415. task.
  2416. This location defaults to:
  2417. <literallayout class='monospaced'>
  2418. ${<link linkend='var-WORKDIR'>WORKDIR</link>}/image
  2419. </literallayout>
  2420. <note><title>Caution</title>
  2421. Tasks that read from or write to this directory should
  2422. run under
  2423. <link linkend='fakeroot-and-pseudo'>fakeroot</link>.
  2424. </note>
  2425. </para>
  2426. </glossdef>
  2427. </glossentry>
  2428. <glossentry id='var-DATE'><glossterm>DATE</glossterm>
  2429. <info>
  2430. DATE[doc] = "The date the build was started using YMD format."
  2431. </info>
  2432. <glossdef>
  2433. <para role="glossdeffirst">
  2434. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2435. The date the build was started.
  2436. Dates appear using the year, month, and day (YMD) format
  2437. (e.g. "20150209" for February 9th, 2015).
  2438. </para>
  2439. </glossdef>
  2440. </glossentry>
  2441. <glossentry id='var-DATETIME'><glossterm>DATETIME</glossterm>
  2442. <info>
  2443. DATETIME[doc] = "The date and time the build was started."
  2444. </info>
  2445. <glossdef>
  2446. <para role="glossdeffirst">
  2447. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2448. The date and time on which the current build started.
  2449. The format is suitable for timestamps.
  2450. </para>
  2451. </glossdef>
  2452. </glossentry>
  2453. <glossentry id='var-DEBIAN_NOAUTONAME'><glossterm>DEBIAN_NOAUTONAME</glossterm>
  2454. <info>
  2455. DEBIAN_NOAUTONAME[doc] = "Prevents a particular package from being renamed according to Debian package naming."
  2456. </info>
  2457. <glossdef>
  2458. <para role="glossdeffirst">
  2459. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2460. When the
  2461. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  2462. class is inherited, which is the default behavior,
  2463. <filename>DEBIAN_NOAUTONAME</filename> specifies a
  2464. particular package should not be renamed according to
  2465. Debian library package naming.
  2466. You must use the package name as an override when you
  2467. set this variable.
  2468. Here is an example from the <filename>fontconfig</filename>
  2469. recipe:
  2470. <literallayout class='monospaced'>
  2471. DEBIAN_NOAUTONAME_fontconfig-utils = "1"
  2472. </literallayout>
  2473. </para>
  2474. </glossdef>
  2475. </glossentry>
  2476. <glossentry id='var-DEBIANNAME'><glossterm>DEBIANNAME</glossterm>
  2477. <info>
  2478. DEBIANNAME[doc] = "Allows you to override the library name for an individual package for Debian library package renaming."
  2479. </info>
  2480. <glossdef>
  2481. <para role="glossdeffirst">
  2482. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2483. When the
  2484. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  2485. class is inherited, which is the default behavior,
  2486. <filename>DEBIANNAME</filename> allows you to override the
  2487. library name for an individual package.
  2488. Overriding the library name in these cases is rare.
  2489. You must use the package name as an override when you
  2490. set this variable.
  2491. Here is an example from the <filename>dbus</filename>
  2492. recipe:
  2493. <literallayout class='monospaced'>
  2494. DEBIANNAME_${PN} = "dbus-1"
  2495. </literallayout>
  2496. </para>
  2497. </glossdef>
  2498. </glossentry>
  2499. <glossentry id='var-DEBUG_BUILD'><glossterm>DEBUG_BUILD</glossterm>
  2500. <info>
  2501. DEBUG_BUILD[doc] = "Specifies to build packages with debugging information. This influences the value of the SELECTED_OPTIMIZATION variable."
  2502. </info>
  2503. <glossdef>
  2504. <para role="glossdeffirst">
  2505. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2506. Specifies to build packages with debugging information.
  2507. This influences the value of the
  2508. <filename><link linkend='var-SELECTED_OPTIMIZATION'>SELECTED_OPTIMIZATION</link></filename>
  2509. variable.
  2510. </para>
  2511. </glossdef>
  2512. </glossentry>
  2513. <glossentry id='var-DEBUG_OPTIMIZATION'><glossterm>DEBUG_OPTIMIZATION</glossterm>
  2514. <info>
  2515. DEBUG_OPTIMIZATION[doc] = "The options to pass in TARGET_CFLAGS and CFLAGS when compiling a system for debugging. This variable defaults to '-O -fno-omit-frame-pointer -g'."
  2516. </info>
  2517. <glossdef>
  2518. <para role="glossdeffirst">
  2519. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2520. The options to pass in
  2521. <filename><link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link></filename>
  2522. and <filename><link linkend='var-CFLAGS'>CFLAGS</link></filename> when compiling
  2523. a system for debugging.
  2524. This variable defaults to "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  2525. </para>
  2526. </glossdef>
  2527. </glossentry>
  2528. <glossentry id='var-DEFAULT_PREFERENCE'><glossterm>DEFAULT_PREFERENCE</glossterm>
  2529. <info>
  2530. DEFAULT_PREFERENCE[doc] = "Specifies a weak bias for recipe selection priority."
  2531. </info>
  2532. <glossdef>
  2533. <para role="glossdeffirst">
  2534. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2535. Specifies a weak bias for recipe selection priority.
  2536. </para>
  2537. <para>
  2538. The most common usage of this is variable is to set
  2539. it to "-1" within a recipe for a development version of a
  2540. piece of software.
  2541. Using the variable in this way causes the stable version
  2542. of the recipe to build by default in the absence of
  2543. <filename><link linkend='var-PREFERRED_VERSION'>PREFERRED_VERSION</link></filename>
  2544. being used to build the development version.
  2545. </para>
  2546. <note>
  2547. The bias provided by <filename>DEFAULT_PREFERENCE</filename>
  2548. is weak and is overridden by
  2549. <filename><link linkend='var-BBFILE_PRIORITY'>BBFILE_PRIORITY</link></filename>
  2550. if that variable is different between two layers
  2551. that contain different versions of the same recipe.
  2552. </note>
  2553. </glossdef>
  2554. </glossentry>
  2555. <glossentry id='var-DEFAULTTUNE'><glossterm>DEFAULTTUNE</glossterm>
  2556. <info>
  2557. DEFAULTTUNE[doc] = "The default CPU and Application Binary Interface (ABI) tunings (i.e. the "tune") used by the OpenEmbedded build system."
  2558. </info>
  2559. <glossdef>
  2560. <para role="glossdeffirst">
  2561. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2562. The default CPU and Application Binary Interface (ABI)
  2563. tunings (i.e. the "tune") used by the OpenEmbedded build
  2564. system.
  2565. The <filename>DEFAULTTUNE</filename> helps define
  2566. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  2567. </para>
  2568. <para>
  2569. The default tune is either implicitly or explicitly set
  2570. by the machine
  2571. (<link linkend='var-MACHINE'><filename>MACHINE</filename></link>).
  2572. However, you can override the setting using available tunes
  2573. as defined with
  2574. <link linkend='var-AVAILTUNES'><filename>AVAILTUNES</filename></link>.
  2575. </para>
  2576. </glossdef>
  2577. </glossentry>
  2578. <glossentry id='var-DEPENDS'><glossterm>DEPENDS</glossterm>
  2579. <info>
  2580. DEPENDS[doc] = "Lists a recipe's build-time dependencies (i.e. other recipe files)."
  2581. </info>
  2582. <glossdef>
  2583. <para role="glossdeffirst">
  2584. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2585. Lists a recipe's build-time dependencies
  2586. (i.e. other recipe files).
  2587. The system ensures that all the dependencies listed
  2588. have been built and have their contents in the appropriate
  2589. sysroots before the recipe's configure task is executed.
  2590. </para>
  2591. <para>
  2592. Consider this simple example for two recipes named "a" and
  2593. "b" that produce similarly named packages.
  2594. In this example, the <filename>DEPENDS</filename>
  2595. statement appears in the "a" recipe:
  2596. <literallayout class='monospaced'>
  2597. DEPENDS = "b"
  2598. </literallayout>
  2599. Here, the dependency is such that the
  2600. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  2601. task for recipe "a" depends on the
  2602. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  2603. task of recipe "b".
  2604. This means anything that recipe "b" puts into sysroot
  2605. is available when recipe "a" is configuring itself.
  2606. <note>
  2607. <title>Notes</title>
  2608. <itemizedlist>
  2609. <listitem><para>
  2610. <filename>DEPENDS</filename> is a list of
  2611. recipe names.
  2612. Or, to be more precise, it is a list of
  2613. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  2614. names, which usually match recipe names.
  2615. Putting a package name such as "foo-dev" in
  2616. <filename>DEPENDS</filename> does not make
  2617. sense.
  2618. Use "foo" instead, as this will put files
  2619. from all the packages that make up
  2620. <filename>foo</filename>, which includes
  2621. those from <filename>foo-dev</filename>, into
  2622. the sysroot.
  2623. </para></listitem>
  2624. <listitem><para>
  2625. One recipe having another recipe in
  2626. <filename>DEPENDS</filename> does not by itself
  2627. add any runtime dependencies between the
  2628. packages produced by the two recipes.
  2629. However, as explained in the
  2630. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  2631. glossary entry, runtime dependencies will often
  2632. be added automatically, meaning
  2633. <filename>DEPENDS</filename> alone is
  2634. sufficient for most recipes.
  2635. </para></listitem>
  2636. <listitem><para>
  2637. Counterintuitively,
  2638. <filename>DEPENDS</filename> is often necessary
  2639. even for recipes that install precompiled
  2640. components.
  2641. For example, if <filename>libfoo</filename>
  2642. is a precompiled library that links against
  2643. <filename>libbar</filename>, then
  2644. linking against <filename>libfoo</filename>
  2645. requires both <filename>libfoo</filename>
  2646. and <filename>libbar</filename> to be available
  2647. in the sysroot.
  2648. Without a <filename>DEPENDS</filename> from the
  2649. recipe that installs <filename>libfoo</filename>
  2650. to the recipe that installs
  2651. <filename>libbar</filename>, other recipes might
  2652. fail to link against
  2653. <filename>libfoo</filename>.
  2654. </para></listitem>
  2655. </itemizedlist>
  2656. </note>
  2657. </para>
  2658. <para>
  2659. For information on runtime dependencies, see the
  2660. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  2661. variable.
  2662. You can also see the
  2663. "<ulink url='&YOCTO_DOCS_BB_URL;#tasks'>Tasks</ulink>" and
  2664. "<ulink url='&YOCTO_DOCS_BB_URL;#dependencies'>Dependencies</ulink>"
  2665. sections in the BitBake User Manual for additional
  2666. information on tasks and dependencies.
  2667. </para>
  2668. </glossdef>
  2669. </glossentry>
  2670. <glossentry id='var-DEPLOY_DIR'><glossterm>DEPLOY_DIR</glossterm>
  2671. <info>
  2672. DEPLOY_DIR[doc] = "Points to the general area that the OpenEmbedded build system uses to place images, packages, SDKs and other output files that are ready to be used outside of the build system."
  2673. </info>
  2674. <glossdef>
  2675. <para role="glossdeffirst">
  2676. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2677. Points to the general area that the OpenEmbedded build
  2678. system uses to place images, packages, SDKs and other output
  2679. files that are ready to be used outside of the build system.
  2680. By default, this directory resides within the
  2681. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>
  2682. as <filename>${TMPDIR}/deploy</filename>.
  2683. </para>
  2684. <para>
  2685. For more information on the structure of the Build
  2686. Directory, see
  2687. "<link linkend='structure-build'>The Build Directory - <filename>build/</filename></link>"
  2688. section.
  2689. For more detail on the contents of the
  2690. <filename>deploy</filename> directory, see the
  2691. "<link linkend='images-dev-environment'>Images</link>",
  2692. "<link linkend='package-feeds-dev-environment'>Package Feeds</link>",
  2693. and
  2694. "<link linkend='sdk-dev-environment'>Application Development SDK</link>"
  2695. sections.
  2696. </para>
  2697. </glossdef>
  2698. </glossentry>
  2699. <glossentry id='var-DEPLOY_DIR_DEB'><glossterm>DEPLOY_DIR_DEB</glossterm>
  2700. <info>
  2701. DEPLOY_DIR_DEB[doc] = "Points to a Debian-specific area that the OpenEmbedded build system uses to place images, packages, SDKs and other output files that are ready to be used outside of the build system."
  2702. </info>
  2703. <glossdef>
  2704. <para role="glossdeffirst">
  2705. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2706. Points to the area that the OpenEmbedded build system uses
  2707. to place Debian packages that are ready to be used outside
  2708. of the build system.
  2709. This variable applies only when
  2710. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  2711. contains "package_deb".
  2712. </para>
  2713. <para>
  2714. The BitBake configuration file initially defines the
  2715. <filename>DEPLOY_DIR_DEB</filename> variable as a
  2716. sub-folder of
  2717. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  2718. <literallayout class='monospaced'>
  2719. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  2720. </literallayout>
  2721. </para>
  2722. <para>
  2723. The
  2724. <link linkend='ref-classes-package_deb'><filename>package_deb</filename></link>
  2725. class uses the
  2726. <filename>DEPLOY_DIR_DEB</filename> variable to make sure
  2727. the
  2728. <link linkend='ref-tasks-package_write_deb'><filename>do_package_write_deb</filename></link>
  2729. task writes Debian packages into the appropriate folder.
  2730. For more information on how packaging works, see the
  2731. "<link linkend='package-feeds-dev-environment'>Package Feeds</link>"
  2732. section.
  2733. </para>
  2734. </glossdef>
  2735. </glossentry>
  2736. <glossentry id='var-DEPLOY_DIR_IMAGE'><glossterm>DEPLOY_DIR_IMAGE</glossterm>
  2737. <info>
  2738. DEPLOY_DIR_IMAGE[doc] = "Points to the area that the OpenEmbedded build system uses to place images and other associated output files that are ready to be deployed onto the target machine."
  2739. </info>
  2740. <glossdef>
  2741. <para role="glossdeffirst">
  2742. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2743. Points to the area that the OpenEmbedded build system uses
  2744. to place images and other associated output files that are
  2745. ready to be deployed onto the target machine.
  2746. The directory is machine-specific as it contains the
  2747. <filename>${MACHINE}</filename> name.
  2748. By default, this directory resides within the
  2749. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>
  2750. as <filename>${DEPLOY_DIR}/images/${MACHINE}/</filename>.
  2751. </para>
  2752. <para>
  2753. For more information on the structure of the Build
  2754. Directory, see
  2755. "<link linkend='structure-build'>The Build Directory - <filename>build/</filename></link>"
  2756. section.
  2757. For more detail on the contents of the
  2758. <filename>deploy</filename> directory, see the
  2759. "<link linkend='images-dev-environment'>Images</link>" and
  2760. "<link linkend='sdk-dev-environment'>Application Development SDK</link>"
  2761. sections.
  2762. </para>
  2763. </glossdef>
  2764. </glossentry>
  2765. <glossentry id='var-DEPLOY_DIR_IPK'><glossterm>DEPLOY_DIR_IPK</glossterm>
  2766. <info>
  2767. DEPLOY_DIR_IPK[doc] = "Points to a IPK-specific area that the OpenEmbedded build system uses to place images, packages, SDKs and other output files that are ready to be used outside of the build system."
  2768. </info>
  2769. <glossdef>
  2770. <para role="glossdeffirst">
  2771. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2772. Points to the area that the OpenEmbedded build system uses
  2773. to place IPK packages that are ready to be used outside of
  2774. the build system.
  2775. This variable applies only when
  2776. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  2777. contains "package_ipk".
  2778. </para>
  2779. <para>
  2780. The BitBake configuration file initially defines this
  2781. variable as a sub-folder of
  2782. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  2783. <literallayout class='monospaced'>
  2784. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  2785. </literallayout>
  2786. </para>
  2787. <para>
  2788. The
  2789. <link linkend='ref-classes-package_ipk'><filename>package_ipk</filename></link>
  2790. class uses the
  2791. <filename>DEPLOY_DIR_IPK</filename> variable to make sure
  2792. the
  2793. <link linkend='ref-tasks-package_write_ipk'><filename>do_package_write_ipk</filename></link>
  2794. task writes IPK packages into the appropriate folder.
  2795. For more information on how packaging works, see the
  2796. "<link linkend='package-feeds-dev-environment'>Package Feeds</link>"
  2797. section.
  2798. </para>
  2799. </glossdef>
  2800. </glossentry>
  2801. <glossentry id='var-DEPLOY_DIR_RPM'><glossterm>DEPLOY_DIR_RPM</glossterm>
  2802. <info>
  2803. DEPLOY_DIR_RPM[doc] = "Points to a RPM-specific area that the OpenEmbedded build system uses to place images, packages, SDKs and other output files that are ready to be used outside of the build system."
  2804. </info>
  2805. <glossdef>
  2806. <para role="glossdeffirst">
  2807. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2808. Points to the area that the OpenEmbedded build system uses
  2809. to place RPM packages that are ready to be used outside
  2810. of the build system.
  2811. This variable applies only when
  2812. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  2813. contains "package_rpm".
  2814. </para>
  2815. <para>
  2816. The BitBake configuration file initially defines this
  2817. variable as a sub-folder of
  2818. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  2819. <literallayout class='monospaced'>
  2820. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  2821. </literallayout>
  2822. </para>
  2823. <para>
  2824. The
  2825. <link linkend='ref-classes-package_rpm'><filename>package_rpm</filename></link>
  2826. class uses the
  2827. <filename>DEPLOY_DIR_RPM</filename> variable to make sure
  2828. the
  2829. <link linkend='ref-tasks-package_write_rpm'><filename>do_package_write_rpm</filename></link>
  2830. task writes RPM packages into the appropriate folder.
  2831. For more information on how packaging works, see the
  2832. "<link linkend='package-feeds-dev-environment'>Package Feeds</link>"
  2833. section.
  2834. </para>
  2835. </glossdef>
  2836. </glossentry>
  2837. <glossentry id='var-DEPLOY_DIR_TAR'><glossterm>DEPLOY_DIR_TAR</glossterm>
  2838. <info>
  2839. DEPLOY_DIR_TAR[doc] = "Points to a tarball area that the OpenEmbedded build system uses to place images, packages, SDKs and other output files that are ready to be used outside of the build system."
  2840. </info>
  2841. <glossdef>
  2842. <para role="glossdeffirst">
  2843. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2844. Points to the area that the OpenEmbedded build system uses
  2845. to place tarballs that are ready to be used outside of
  2846. the build system.
  2847. This variable applies only when
  2848. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  2849. contains "package_tar".
  2850. </para>
  2851. <para>
  2852. The BitBake configuration file initially defines this
  2853. variable as a sub-folder of
  2854. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  2855. <literallayout class='monospaced'>
  2856. DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
  2857. </literallayout>
  2858. </para>
  2859. <para>
  2860. The
  2861. <link linkend='ref-classes-package_tar'><filename>package_tar</filename></link>
  2862. class uses the
  2863. <filename>DEPLOY_DIR_TAR</filename> variable to make sure
  2864. the
  2865. <link linkend='ref-tasks-package_write_tar'><filename>do_package_write_tar</filename></link>
  2866. task writes TAR packages into the appropriate folder.
  2867. For more information on how packaging works, see the
  2868. "<link linkend='package-feeds-dev-environment'>Package Feeds</link>"
  2869. section.
  2870. </para>
  2871. </glossdef>
  2872. </glossentry>
  2873. <glossentry id='var-DEPLOYDIR'><glossterm>DEPLOYDIR</glossterm>
  2874. <info>
  2875. DEPLOYDIR[doc] = "For recipes that inherit the deploy class, the DEPLOYDIR points to a temporary work area for deployed files."
  2876. </info>
  2877. <glossdef>
  2878. <para role="glossdeffirst">
  2879. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2880. When inheriting the
  2881. <link linkend='ref-classes-deploy'><filename>deploy</filename></link>
  2882. class, the <filename>DEPLOYDIR</filename> points to a
  2883. temporary work area for deployed files that is set in the
  2884. <filename>deploy</filename> class as follows:
  2885. <literallayout class='monospaced'>
  2886. DEPLOYDIR = "${WORKDIR}/deploy-${<link linkend='var-PN'><filename>PN</filename></link>}"
  2887. </literallayout>
  2888. </para>
  2889. <para>
  2890. Recipes inheriting the <filename>deploy</filename> class
  2891. should copy files to be deployed into
  2892. <filename>DEPLOYDIR</filename>, and the class will take
  2893. care of copying them into
  2894. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>
  2895. afterwards.
  2896. </para>
  2897. </glossdef>
  2898. </glossentry>
  2899. <glossentry id='var-DESCRIPTION'><glossterm>DESCRIPTION</glossterm>
  2900. <info>
  2901. DESCRIPTION[doc] = "The package description used by package managers. If not set, DESCRIPTION takes the value of the SUMMARY variable."
  2902. </info>
  2903. <glossdef>
  2904. <para role="glossdeffirst">
  2905. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2906. The package description used by package managers.
  2907. If not set, <filename>DESCRIPTION</filename> takes
  2908. the value of the
  2909. <link linkend='var-SUMMARY'><filename>SUMMARY</filename></link>
  2910. variable.
  2911. </para>
  2912. </glossdef>
  2913. </glossentry>
  2914. <glossentry id='var-DISK_SIGNATURE'><glossterm>DISK_SIGNATURE</glossterm>
  2915. <info>
  2916. DISK_SIGNATURE[doc] = "A 32-bit MBR disk signature used by directdisk images."
  2917. </info>
  2918. <glossdef>
  2919. <para role="glossdeffirst">
  2920. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2921. A 32-bit MBR disk signature used by
  2922. <filename>directdisk</filename> images.
  2923. </para>
  2924. <para>
  2925. By default, the signature is set to an automatically
  2926. generated random value that allows the OpenEmbedded
  2927. build system to create a boot loader.
  2928. You can override the signature in the image recipe
  2929. by setting <filename>DISK_SIGNATURE</filename> to an
  2930. 8-digit hex string.
  2931. You might want to override
  2932. <filename>DISK_SIGNATURE</filename> if you want the disk
  2933. signature to remain constant between image builds.
  2934. </para>
  2935. <para>
  2936. When using Linux 3.8 or later, you can use
  2937. <filename>DISK_SIGNATURE</filename> to specify the root
  2938. by UUID to allow the kernel to locate the root device
  2939. even if the device name changes due to differences in
  2940. hardware configuration.
  2941. By default, <filename>ROOT_VM</filename> is set
  2942. as follows:
  2943. <literallayout class='monospaced'>
  2944. ROOT_VM ?= "root=/dev/sda2"
  2945. </literallayout>
  2946. However, you can change this to locate the root device
  2947. using the disk signature instead:
  2948. <literallayout class='monospaced'>
  2949. ROOT_VM = "root=PARTUUID=${DISK_SIGNATURE}-02"
  2950. </literallayout>
  2951. </para>
  2952. <para>
  2953. As previously mentioned, it is possible to set the
  2954. <filename>DISK_SIGNATURE</filename> variable in your
  2955. <filename>local.conf</filename> file to a fixed
  2956. value if you do not want <filename>syslinux.cfg</filename>
  2957. changing for each build.
  2958. You might find this useful when you want to upgrade the
  2959. root filesystem on a device without having to recreate or
  2960. modify the master boot record.
  2961. </para>
  2962. </glossdef>
  2963. </glossentry>
  2964. <glossentry id='var-DISTRO'><glossterm>DISTRO</glossterm>
  2965. <info>
  2966. DISTRO[doc] = "The short name of the distribution. If the variable is blank, meta/conf/distro/defaultsetup.conf will be used."
  2967. </info>
  2968. <glossdef>
  2969. <para role="glossdeffirst">
  2970. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2971. The short name of the distribution.
  2972. This variable corresponds to a distribution
  2973. configuration file whose root name is the same as the
  2974. variable's argument and whose filename extension is
  2975. <filename>.conf</filename>.
  2976. For example, the distribution configuration file for the
  2977. Poky distribution is named <filename>poky.conf</filename>
  2978. and resides in the
  2979. <filename>meta-poky/conf/distro</filename> directory of
  2980. the
  2981. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  2982. </para>
  2983. <para>
  2984. Within that <filename>poky.conf</filename> file, the
  2985. <filename>DISTRO</filename> variable is set as follows:
  2986. <literallayout class='monospaced'>
  2987. DISTRO = "poky"
  2988. </literallayout>
  2989. </para>
  2990. <para>
  2991. Distribution configuration files are located in a
  2992. <filename>conf/distro</filename> directory within the
  2993. <ulink url='&YOCTO_DOCS_DEV_URL;#metadata'>Metadata</ulink>
  2994. that contains the distribution configuration.
  2995. The value for <filename>DISTRO</filename> must not contain
  2996. spaces, and is typically all lower-case.
  2997. <note>
  2998. If the <filename>DISTRO</filename> variable is blank, a set
  2999. of default configurations are used, which are specified
  3000. within
  3001. <filename>meta/conf/distro/defaultsetup.conf</filename>
  3002. also in the Source Directory.
  3003. </note>
  3004. </para>
  3005. </glossdef>
  3006. </glossentry>
  3007. <glossentry id='var-DISTRO_CODENAME'><glossterm>DISTRO_CODENAME</glossterm>
  3008. <info>
  3009. DISTRO_CODENAME[doc] = "Specifies a codename for the distribution being built."
  3010. </info>
  3011. <glossdef>
  3012. <para role="glossdeffirst">
  3013. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3014. Specifies a codename for the distribution being built.
  3015. </para>
  3016. </glossdef>
  3017. </glossentry>
  3018. <glossentry id='var-DISTRO_EXTRA_RDEPENDS'><glossterm>DISTRO_EXTRA_RDEPENDS</glossterm>
  3019. <info>
  3020. DISTRO_EXTRA_RDEPENDS[doc] = "Specifies a list of distro-specific packages to add to all images. The variable only applies to the images that include packagegroup-base."
  3021. </info>
  3022. <glossdef>
  3023. <para role="glossdeffirst">
  3024. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3025. Specifies a list of distro-specific packages to add to all images.
  3026. This variable takes affect through
  3027. <filename>packagegroup-base</filename> so the
  3028. variable only really applies to the more full-featured
  3029. images that include <filename>packagegroup-base</filename>.
  3030. You can use this variable to keep distro policy out of
  3031. generic images.
  3032. As with all other distro variables, you set this variable
  3033. in the distro <filename>.conf</filename> file.
  3034. </para>
  3035. </glossdef>
  3036. </glossentry>
  3037. <glossentry id='var-DISTRO_EXTRA_RRECOMMENDS'><glossterm>DISTRO_EXTRA_RRECOMMENDS</glossterm>
  3038. <info>
  3039. DISTRO_EXTRA_RRECOMMENDS[doc] = "Specifies a list of distro-specific packages to add to all images if the packages exist. The list of packages are automatically installed but you can remove them."
  3040. </info>
  3041. <glossdef>
  3042. <para role="glossdeffirst">
  3043. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3044. Specifies a list of distro-specific packages to add to all images
  3045. if the packages exist.
  3046. The packages might not exist or be empty (e.g. kernel modules).
  3047. The list of packages are automatically installed but you can
  3048. remove them.
  3049. </para>
  3050. </glossdef>
  3051. </glossentry>
  3052. <glossentry id='var-DISTRO_FEATURES'><glossterm>DISTRO_FEATURES</glossterm>
  3053. <info>
  3054. DISTRO_FEATURES[doc] = "The features enabled for the distribution."
  3055. </info>
  3056. <glossdef>
  3057. <para role="glossdeffirst">
  3058. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3059. The software support you want in your distribution for
  3060. various features.
  3061. You define your distribution features in the distribution
  3062. configuration file.
  3063. </para>
  3064. <para>
  3065. In most cases, the presence or absence of a feature in
  3066. <filename>DISTRO_FEATURES</filename> is translated to the
  3067. appropriate option supplied to the configure script
  3068. during the
  3069. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  3070. task for recipes that optionally support the feature.
  3071. For example, specifying "x11" in
  3072. <filename>DISTRO_FEATURES</filename>, causes
  3073. every piece of software built for the target that can
  3074. optionally support X11 to have its X11 support enabled.
  3075. </para>
  3076. <para>
  3077. Two more examples are Bluetooth and NFS support.
  3078. For a more complete list of features that ships with the
  3079. Yocto Project and that you can provide with this variable,
  3080. see the
  3081. "<link linkend='ref-features-distro'>Distro Features</link>"
  3082. section.
  3083. </para>
  3084. </glossdef>
  3085. </glossentry>
  3086. <glossentry id='var-DISTRO_FEATURES_BACKFILL'><glossterm>DISTRO_FEATURES_BACKFILL</glossterm>
  3087. <info>
  3088. DISTRO_FEATURES_BACKFILL[doc] = "Features to be added to DISTRO_FEATURES if not also present in DISTRO_FEATURES_BACKFILL_CONSIDERED. This variable is set in the meta/conf/bitbake.conf file and it is not intended to be user-configurable."
  3089. </info>
  3090. <glossdef>
  3091. <para role="glossdeffirst">
  3092. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3093. Features to be added to
  3094. <filename><link linkend='var-DISTRO_FEATURES'>DISTRO_FEATURES</link></filename>
  3095. if not also present in
  3096. <filename><link linkend='var-DISTRO_FEATURES_BACKFILL_CONSIDERED'>DISTRO_FEATURES_BACKFILL_CONSIDERED</link></filename>.
  3097. </para>
  3098. <para>
  3099. This variable is set in the <filename>meta/conf/bitbake.conf</filename> file.
  3100. It is not intended to be user-configurable.
  3101. It is best to just reference the variable to see which distro features are
  3102. being backfilled for all distro configurations.
  3103. See the <link linkend='ref-features-backfill'>Feature backfilling</link> section for
  3104. more information.
  3105. </para>
  3106. </glossdef>
  3107. </glossentry>
  3108. <glossentry id='var-DISTRO_FEATURES_BACKFILL_CONSIDERED'><glossterm>DISTRO_FEATURES_BACKFILL_CONSIDERED</glossterm>
  3109. <info>
  3110. DISTRO_FEATURES_BACKFILL_CONSIDERED[doc] = "Features from DISTRO_FEATURES_BACKFILL that should not be backfilled (i.e. added to DISTRO_FEATURES) during the build."
  3111. </info>
  3112. <glossdef>
  3113. <para role="glossdeffirst">
  3114. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3115. Features from
  3116. <filename><link linkend='var-DISTRO_FEATURES_BACKFILL'>DISTRO_FEATURES_BACKFILL</link></filename>
  3117. that should not be backfilled (i.e. added to
  3118. <filename><link linkend='var-DISTRO_FEATURES'>DISTRO_FEATURES</link></filename>)
  3119. during the build.
  3120. See the "<link linkend='ref-features-backfill'>Feature Backfilling</link>" section for
  3121. more information.
  3122. </para>
  3123. </glossdef>
  3124. </glossentry>
  3125. <glossentry id='var-DISTRO_FEATURES_DEFAULT'><glossterm>DISTRO_FEATURES_DEFAULT</glossterm>
  3126. <info>
  3127. DISTRO_FEATURES_DEFAULT[doc] = "Provides the default list of distro features with the exception of any libc-specific features."
  3128. </info>
  3129. <glossdef>
  3130. <para role="glossdeffirst">
  3131. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3132. A convenience variable that gives you the default
  3133. list of distro features with the exception of any
  3134. features specific to the C library
  3135. (<filename>libc</filename>).
  3136. </para>
  3137. <para>
  3138. When creating a custom distribution, you might find it
  3139. useful to be able to reuse the default
  3140. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3141. options without the need to write out the full set.
  3142. Here is an example that uses
  3143. <filename>DISTRO_FEATURES_DEFAULT</filename> from a
  3144. custom distro configuration file:
  3145. <literallayout class='monospaced'>
  3146. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} myfeature"
  3147. </literallayout>
  3148. </para>
  3149. </glossdef>
  3150. </glossentry>
  3151. <glossentry id='var-DISTRO_FEATURES_LIBC'><glossterm>DISTRO_FEATURES_LIBC</glossterm>
  3152. <info>
  3153. DISTRO_FEATURES_LIBC[doc] = "Specifies the list of distro features that are specific to the C library (libc)."
  3154. </info>
  3155. <glossdef>
  3156. <para role="glossdeffirst">
  3157. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3158. A convenience variable that specifies the list of distro
  3159. features that are specific to the C library
  3160. (<filename>libc</filename>).
  3161. Typically, these features are prefixed with "libc-" and
  3162. control which features are enabled at during the build
  3163. within the C library itself.
  3164. </para>
  3165. </glossdef>
  3166. </glossentry>
  3167. <glossentry id='var-DISTRO_NAME'><glossterm>DISTRO_NAME</glossterm>
  3168. <info>
  3169. DISTRO_NAME[doc] = "The long name of the distribution."
  3170. </info>
  3171. <glossdef>
  3172. <para role="glossdeffirst">
  3173. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3174. The long name of the distribution.
  3175. </para>
  3176. </glossdef>
  3177. </glossentry>
  3178. <glossentry id='var-DISTRO_VERSION'><glossterm>DISTRO_VERSION</glossterm>
  3179. <info>
  3180. DISTRO_VERSION[doc] = "The version of the distribution."
  3181. </info>
  3182. <glossdef>
  3183. <para role="glossdeffirst">
  3184. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3185. The version of the distribution.
  3186. </para>
  3187. </glossdef>
  3188. </glossentry>
  3189. <glossentry id='var-DISTROOVERRIDES'><glossterm>DISTROOVERRIDES</glossterm>
  3190. <info>
  3191. DISTROOVERRIDES[doc] = "A colon-separated list of overrides specific to the current distribution."
  3192. </info>
  3193. <glossdef>
  3194. <para role="glossdeffirst">
  3195. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3196. A colon-separated list of overrides specific to the
  3197. current distribution.
  3198. By default, this list includes the value of
  3199. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>.
  3200. </para>
  3201. <para>
  3202. You can extend <filename>DISTROOVERRIDES</filename>
  3203. to add extra overrides that should apply to
  3204. the distribution.
  3205. </para>
  3206. <para>
  3207. The underlying mechanism behind
  3208. <filename>DISTROOVERRIDES</filename> is simply that it
  3209. is included in the default value of
  3210. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  3211. </para>
  3212. </glossdef>
  3213. </glossentry>
  3214. <glossentry id='var-DL_DIR'><glossterm>DL_DIR</glossterm>
  3215. <info>
  3216. DL_DIR[doc] = "The central download directory used by the build process to store downloads. By default, the directory is 'downloads' in the Build Directory."
  3217. </info>
  3218. <glossdef>
  3219. <para role="glossdeffirst">
  3220. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3221. The central download directory used by the build process to
  3222. store downloads.
  3223. By default, <filename>DL_DIR</filename> gets files
  3224. suitable for mirroring for everything except Git
  3225. repositories.
  3226. If you want tarballs of Git repositories, use the
  3227. <link linkend='var-BB_GENERATE_MIRROR_TARBALLS'><filename>BB_GENERATE_MIRROR_TARBALLS</filename></link>
  3228. variable.
  3229. </para>
  3230. <para>
  3231. You can set this directory by defining the
  3232. <filename>DL_DIR</filename> variable in the
  3233. <filename>conf/local.conf</filename> file.
  3234. This directory is self-maintaining and you should not have
  3235. to touch it.
  3236. By default, the directory is <filename>downloads</filename>
  3237. in the
  3238. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  3239. <literallayout class='monospaced'>
  3240. #DL_DIR ?= "${TOPDIR}/downloads"
  3241. </literallayout>
  3242. To specify a different download directory, simply remove
  3243. the comment from the line and provide your directory.
  3244. </para>
  3245. <para>
  3246. During a first build, the system downloads many different
  3247. source code tarballs from various upstream projects.
  3248. Downloading can take a while, particularly if your network
  3249. connection is slow.
  3250. Tarballs are all stored in the directory defined by
  3251. <filename>DL_DIR</filename> and the build system looks there
  3252. first to find source tarballs.
  3253. <note>
  3254. When wiping and rebuilding, you can preserve this
  3255. directory to speed up this part of subsequent
  3256. builds.
  3257. </note>
  3258. </para>
  3259. <para>
  3260. You can safely share this directory between multiple builds
  3261. on the same development machine.
  3262. For additional information on how the build process gets
  3263. source files when working behind a firewall or proxy server,
  3264. see this specific question in the
  3265. "<link linkend='how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server'>FAQ</link>"
  3266. chapter.
  3267. You can also refer to the
  3268. "<ulink url='&YOCTO_WIKI_URL;/wiki/Working_Behind_a_Network_Proxy'>Working Behind a Network Proxy</ulink>"
  3269. Wiki page.
  3270. </para>
  3271. </glossdef>
  3272. </glossentry>
  3273. <glossentry id='var-DOC_COMPRESS'><glossterm>DOC_COMPRESS</glossterm>
  3274. <info>
  3275. DOC_COMPRESS[doc] = "When inheriting the compress_doc class, this variable sets the compression policy used when the OpenEmbedded build system compresses man pages and info pages."
  3276. </info>
  3277. <glossdef>
  3278. <para role="glossdeffirst">
  3279. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3280. When inheriting the
  3281. <link linkend='ref-classes-compress_doc'><filename>compress_doc</filename></link>
  3282. class, this variable sets the compression policy used when
  3283. the OpenEmbedded build system compresses man pages and info
  3284. pages.
  3285. By default, the compression method used is gz (gzip).
  3286. Other policies available are xz and bz2.
  3287. </para>
  3288. <para>
  3289. For information on policies and on how to use this
  3290. variable, see the comments in the
  3291. <filename>meta/classes/compress_doc.bbclass</filename> file.
  3292. </para>
  3293. </glossdef>
  3294. </glossentry>
  3295. </glossdiv>
  3296. <glossdiv id='var-glossary-e'><title>E</title>
  3297. <glossentry id='var-EFI_PROVIDER'><glossterm>EFI_PROVIDER</glossterm>
  3298. <info>
  3299. EFI_PROVIDER[doc] = "When building bootable images (i.e. where hddimg or vmdk is in IMAGE_FSTYPES), the EFI_PROVIDER variable specifies the EFI bootloader to use."
  3300. </info>
  3301. <glossdef>
  3302. <para role="glossdeffirst">
  3303. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3304. When building bootable images (i.e. where
  3305. <filename>hddimg</filename> or <filename>vmdk</filename>
  3306. is in
  3307. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>),
  3308. the <filename>EFI_PROVIDER</filename> variable specifies
  3309. the EFI bootloader to use.
  3310. The default is "grub-efi", but "systemd-boot" can be used
  3311. instead.
  3312. </para>
  3313. <para>
  3314. See the
  3315. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  3316. class for more information.
  3317. </para>
  3318. </glossdef>
  3319. </glossentry>
  3320. <glossentry id='var-ENABLE_BINARY_LOCALE_GENERATION'><glossterm>ENABLE_BINARY_LOCALE_GENERATION</glossterm>
  3321. <info>
  3322. ENABLE_BINARY_LOCALE_GENERATION[doc] = "Controls which locales for glibc are generated during the build. The variable is useful if the target device has 64Mbytes of RAM or less."
  3323. </info>
  3324. <glossdef>
  3325. <para role="glossdeffirst">
  3326. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3327. Variable that controls which locales for
  3328. <filename>glibc</filename> are generated during the
  3329. build (useful if the target device has 64Mbytes
  3330. of RAM or less).
  3331. </para>
  3332. </glossdef>
  3333. </glossentry>
  3334. <glossentry id='var-ERR_REPORT_DIR'><glossterm>ERR_REPORT_DIR</glossterm>
  3335. <info>
  3336. ERR_REPORT_DIR[doc] = "When used with the report-error class, specifies the path used for storing the debug files created by the error reporting tool, which allows you to submit build errors you encounter to a central database."
  3337. </info>
  3338. <glossdef>
  3339. <para role="glossdeffirst">
  3340. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3341. When used with the
  3342. <link linkend='ref-classes-report-error'><filename>report-error</filename></link>
  3343. class, specifies the path used for storing the debug files
  3344. created by the
  3345. <ulink url='&YOCTO_DOCS_DEV_URL;#using-the-error-reporting-tool'>error reporting tool</ulink>,
  3346. which allows you to submit build errors you encounter to a
  3347. central database.
  3348. By default, the value of this variable is
  3349. <filename>${</filename><link linkend='var-LOG_DIR'><filename>LOG_DIR</filename></link><filename>}/error-report</filename>.
  3350. </para>
  3351. <para>
  3352. You can set <filename>ERR_REPORT_DIR</filename> to the path
  3353. you want the error reporting tool to store the debug files
  3354. as follows in your <filename>local.conf</filename> file:
  3355. <literallayout class='monospaced'>
  3356. ERR_REPORT_DIR = "<replaceable>path</replaceable>"
  3357. </literallayout>
  3358. </para>
  3359. </glossdef>
  3360. </glossentry>
  3361. <glossentry id='var-ERROR_QA'><glossterm>ERROR_QA</glossterm>
  3362. <info>
  3363. ERROR_QA[doc] = "Specifies the quality assurance checks whose failures are reported as errors by the OpenEmbedded build system."
  3364. </info>
  3365. <glossdef>
  3366. <para role="glossdeffirst">
  3367. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3368. Specifies the quality assurance checks whose failures are
  3369. reported as errors by the OpenEmbedded build system.
  3370. You set this variable in your distribution configuration
  3371. file.
  3372. For a list of the checks you can control with this variable,
  3373. see the
  3374. "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  3375. section.
  3376. </para>
  3377. </glossdef>
  3378. </glossentry>
  3379. <glossentry id='var-EXCLUDE_FROM_SHLIBS'><glossterm>EXCLUDE_FROM_SHLIBS</glossterm>
  3380. <info>
  3381. EXCLUDE_FROM_SHLIBS[doc] = "Causes the OpenEmbedded build system's shared libraries resolver to exclude an entire package when scanning for shared libraries."
  3382. </info>
  3383. <glossdef>
  3384. <para role="glossdeffirst">
  3385. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3386. Triggers the OpenEmbedded build system's shared libraries
  3387. resolver to exclude an entire package when scanning for
  3388. shared libraries.
  3389. <note>
  3390. The shared libraries resolver's functionality results
  3391. in part from the internal function
  3392. <filename>package_do_shlibs</filename>, which is part of
  3393. the
  3394. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  3395. task.
  3396. You should be aware that the shared libraries resolver
  3397. might implicitly define some dependencies between
  3398. packages.
  3399. </note>
  3400. The <filename>EXCLUDE_FROM_SHLIBS</filename> variable is
  3401. similar to the
  3402. <link linkend='var-PRIVATE_LIBS'><filename>PRIVATE_LIBS</filename></link>
  3403. variable, which excludes a package's particular libraries
  3404. only and not the whole package.
  3405. </para>
  3406. <para>
  3407. Use the
  3408. <filename>EXCLUDE_FROM_SHLIBS</filename> variable by
  3409. setting it to "1" for a particular package:
  3410. <literallayout class='monospaced'>
  3411. EXCLUDE_FROM_SHLIBS = "1"
  3412. </literallayout>
  3413. </para>
  3414. </glossdef>
  3415. </glossentry>
  3416. <glossentry id='var-EXCLUDE_FROM_WORLD'><glossterm>EXCLUDE_FROM_WORLD</glossterm>
  3417. <info>
  3418. EXCLUDE_FROM_WORLD[doc] = "Directs BitBake to exclude a recipe from world builds (i.e. bitbake world)."
  3419. </info>
  3420. <glossdef>
  3421. <para role="glossdeffirst">
  3422. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3423. Directs BitBake to exclude a recipe from world builds (i.e.
  3424. <filename>bitbake world</filename>).
  3425. During world builds, BitBake locates, parses and builds all
  3426. recipes found in every layer exposed in the
  3427. <filename>bblayers.conf</filename> configuration file.
  3428. </para>
  3429. <para>
  3430. To exclude a recipe from a world build using this variable,
  3431. set the variable to "1" in the recipe.
  3432. </para>
  3433. <note>
  3434. Recipes added to <filename>EXCLUDE_FROM_WORLD</filename>
  3435. may still be built during a world build in order to satisfy
  3436. dependencies of other recipes.
  3437. Adding a recipe to <filename>EXCLUDE_FROM_WORLD</filename>
  3438. only ensures that the recipe is not explicitly added
  3439. to the list of build targets in a world build.
  3440. </note>
  3441. </glossdef>
  3442. </glossentry>
  3443. <glossentry id='var-EXTENDPE'><glossterm>EXTENDPE</glossterm>
  3444. <info>
  3445. EXTENDPE[doc] = "Used with file and pathnames to create a prefix for a recipe's version based on the recipe's PE value. If PE is set and greater than zero for a recipe, EXTENDPE becomes that value."
  3446. </info>
  3447. <glossdef>
  3448. <para role="glossdeffirst">
  3449. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3450. Used with file and pathnames to create a prefix for a recipe's
  3451. version based on the recipe's
  3452. <link linkend='var-PE'><filename>PE</filename></link> value.
  3453. If <filename>PE</filename> is set and greater than zero for a recipe,
  3454. <filename>EXTENDPE</filename> becomes that value (e.g if
  3455. <filename>PE</filename> is equal to "1" then <filename>EXTENDPE</filename>
  3456. becomes "1_").
  3457. If a recipe's <filename>PE</filename> is not set (the default) or is equal to
  3458. zero, <filename>EXTENDPE</filename> becomes "".</para>
  3459. <para>See the <link linkend='var-STAMP'><filename>STAMP</filename></link>
  3460. variable for an example.
  3461. </para>
  3462. </glossdef>
  3463. </glossentry>
  3464. <glossentry id='var-EXTENDPKGV'><glossterm>EXTENDPKGV</glossterm>
  3465. <info>
  3466. EXTENDPKGV[doc] = "The full package version specification as it appears on the final packages produced by a recipe."
  3467. </info>
  3468. <glossdef>
  3469. <para role="glossdeffirst">
  3470. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3471. The full package version specification as it appears on the
  3472. final packages produced by a recipe.
  3473. The variable's value is normally used to fix a runtime
  3474. dependency to the exact same version of another package
  3475. in the same recipe:
  3476. <literallayout class='monospaced'>
  3477. RDEPENDS_${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  3478. </literallayout>
  3479. </para>
  3480. <para>
  3481. The dependency relationships are intended to force the
  3482. package manager to upgrade these types of packages in
  3483. lock-step.
  3484. </para>
  3485. </glossdef>
  3486. </glossentry>
  3487. <glossentry id='var-EXTERNAL_KERNEL_TOOLS'><glossterm>EXTERNAL_KERNEL_TOOLS</glossterm>
  3488. <info>
  3489. EXTERNAL_KERNEL_TOOLS[doc] = "Indicates kernel tools are external to the source tree."
  3490. </info>
  3491. <glossdef>
  3492. <para role="glossdeffirst">
  3493. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3494. When set, the <filename>EXTERNAL_KERNEL_TOOLS</filename>
  3495. variable indicates that these tools are not in the
  3496. source tree.
  3497. </para>
  3498. <para>
  3499. When kernel tools are available in the tree, they are
  3500. preferred over any externally installed tools.
  3501. Setting the <filename>EXTERNAL_KERNEL_TOOLS</filename>
  3502. variable tells the OpenEmbedded build system to prefer
  3503. the installed external tools.
  3504. See the
  3505. <link linkend='ref-classes-kernel-yocto'><filename>kernel-yocto</filename></link>
  3506. class in <filename>meta/classes</filename> to see how
  3507. the variable is used.
  3508. </para>
  3509. </glossdef>
  3510. </glossentry>
  3511. <glossentry id='var-EXTERNALSRC'><glossterm>EXTERNALSRC</glossterm>
  3512. <info>
  3513. EXTERNALSRC[doc] = "If externalsrc.bbclass is inherited, this variable points to the source tree, which is outside of the OpenEmbedded build system."
  3514. </info>
  3515. <glossdef>
  3516. <para role="glossdeffirst">
  3517. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3518. When inheriting the
  3519. <link linkend='ref-classes-externalsrc'><filename>externalsrc</filename></link>
  3520. class, this variable points to the source tree, which is
  3521. outside of the OpenEmbedded build system.
  3522. When set, this variable sets the
  3523. <link linkend='var-S'><filename>S</filename></link>
  3524. variable, which is what the OpenEmbedded build system uses
  3525. to locate unpacked recipe source code.
  3526. </para>
  3527. <para>
  3528. For more information on
  3529. <filename>externalsrc.bbclass</filename>, see the
  3530. "<link linkend='ref-classes-externalsrc'><filename>externalsrc.bbclass</filename></link>"
  3531. section.
  3532. You can also find information on how to use this variable
  3533. in the
  3534. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-software-from-an-external-source'>Building Software from an External Source</ulink>"
  3535. section in the Yocto Project Development Manual.
  3536. </para>
  3537. </glossdef>
  3538. </glossentry>
  3539. <glossentry id='var-EXTERNALSRC_BUILD'><glossterm>EXTERNALSRC_BUILD</glossterm>
  3540. <info>
  3541. EXTERNALSRC_BUILD[doc] = "If externalsrc.bbclass is inherited, this variable points to the directory in which the recipe's source code is built, which is outside of the OpenEmbedded build system."
  3542. </info>
  3543. <glossdef>
  3544. <para role="glossdeffirst">
  3545. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3546. When inheriting the
  3547. <link linkend='ref-classes-externalsrc'><filename>externalsrc</filename></link>
  3548. class, this variable points to the directory in which the
  3549. recipe's source code is built, which is outside of the
  3550. OpenEmbedded build system.
  3551. When set, this variable sets the
  3552. <link linkend='var-B'><filename>B</filename></link>
  3553. variable, which is what the OpenEmbedded build system uses
  3554. to locate the Build Directory.
  3555. </para>
  3556. <para>
  3557. For more information on
  3558. <filename>externalsrc.bbclass</filename>, see the
  3559. "<link linkend='ref-classes-externalsrc'><filename>externalsrc.bbclass</filename></link>"
  3560. section.
  3561. You can also find information on how to use this variable
  3562. in the
  3563. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-software-from-an-external-source'>Building Software from an External Source</ulink>"
  3564. section in the Yocto Project Development Manual.
  3565. </para>
  3566. </glossdef>
  3567. </glossentry>
  3568. <glossentry id='var-EXTRA_AUTORECONF'><glossterm>EXTRA_AUTORECONF</glossterm>
  3569. <info>
  3570. EXTRA_AUTORECONF[doc] = "Extra options passed to the autoreconf command, which is executed during do_configure."
  3571. </info>
  3572. <glossdef>
  3573. <para role="glossdeffirst">
  3574. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3575. For recipes inheriting the
  3576. <link linkend='ref-classes-autotools'><filename>autotools</filename></link>
  3577. class, you can use <filename>EXTRA_AUTORECONF</filename> to
  3578. specify extra options to pass to the
  3579. <filename>autoreconf</filename> command that is
  3580. executed during the
  3581. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  3582. task.
  3583. </para>
  3584. <para>
  3585. The default value is "--exclude=autopoint".
  3586. </para>
  3587. </glossdef>
  3588. </glossentry>
  3589. <glossentry id='var-EXTRA_IMAGE_FEATURES'><glossterm>EXTRA_IMAGE_FEATURES</glossterm>
  3590. <info>
  3591. EXTRA_IMAGE_FEATURES[doc] = "The list of additional features to include in an image. Configure this variable in the conf/local.conf file in the Build Directory."
  3592. </info>
  3593. <glossdef>
  3594. <para role="glossdeffirst">
  3595. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3596. A list of additional features to include in an image.
  3597. When listing more than one feature, separate them with
  3598. a space.
  3599. </para>
  3600. <para>
  3601. Typically, you configure this variable in your
  3602. <filename>local.conf</filename> file, which is found in the
  3603. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  3604. Although you can use this variable from within a recipe,
  3605. best practices dictate that you do not.
  3606. <note>
  3607. To enable primary features from within the image
  3608. recipe, use the
  3609. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  3610. variable.
  3611. </note>
  3612. </para>
  3613. <para>
  3614. Here are some examples of features you can add:
  3615. <literallayout class='monospaced'>
  3616. "dbg-pkgs" - Adds -dbg packages for all installed packages
  3617. including symbol information for debugging and
  3618. profiling.
  3619. "debug-tweaks" - Makes an image suitable for debugging.
  3620. For example, allows root logins without
  3621. passwords and enables post-installation
  3622. logging. See the 'allow-empty-password'
  3623. and 'post-install-logging' features in
  3624. the "<link linkend='ref-features-image'>Image Features</link>" section for
  3625. more information.
  3626. "dev-pkgs" - Adds -dev packages for all installed packages.
  3627. This is useful if you want to develop against
  3628. the libraries in the image.
  3629. "read-only-rootfs" - Creates an image whose root
  3630. filesystem is read-only. See the
  3631. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-a-read-only-root-filesystem'>Creating a Read-Only Root Filesystem</ulink>"
  3632. section in the Yocto Project
  3633. Development Manual for more
  3634. information
  3635. "tools-debug" - Adds debugging tools such as gdb and
  3636. strace.
  3637. "tools-sdk" - Adds development tools such as gcc, make,
  3638. pkgconfig and so forth.
  3639. "tools-testapps" - Adds useful testing tools such as
  3640. ts_print, aplay, arecord and so
  3641. forth.
  3642. </literallayout>
  3643. </para>
  3644. <para>
  3645. For a complete list of image features that ships with the
  3646. Yocto Project, see the
  3647. "<link linkend="ref-features-image">Image Features</link>"
  3648. section.
  3649. </para>
  3650. <para>
  3651. For an example that shows how to customize your image by
  3652. using this variable, see the
  3653. "<ulink url='&YOCTO_DOCS_DEV_URL;#usingpoky-extend-customimage-imagefeatures'>Customizing Images Using Custom <filename>IMAGE_FEATURES</filename> and <filename>EXTRA_IMAGE_FEATURES</filename></ulink>"
  3654. section in the Yocto Project Development Manual.
  3655. </para>
  3656. </glossdef>
  3657. </glossentry>
  3658. <glossentry id='var-EXTRA_IMAGECMD'><glossterm>EXTRA_IMAGECMD</glossterm>
  3659. <info>
  3660. EXTRA_IMAGECMD[doc] = "Specifies additional options for the image creation command that has been specified in IMAGE_CMD. When setting this variable, you should use an override for the associated type."
  3661. </info>
  3662. <glossdef>
  3663. <para role="glossdeffirst">
  3664. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3665. Specifies additional options for the image
  3666. creation command that has been specified in
  3667. <link linkend='var-IMAGE_CMD'><filename>IMAGE_CMD</filename></link>.
  3668. When setting this variable, you should
  3669. use an override for the associated type.
  3670. Here is an example:
  3671. <literallayout class='monospaced'>
  3672. EXTRA_IMAGECMD_ext3 ?= "-i 4096"
  3673. </literallayout>
  3674. </para>
  3675. </glossdef>
  3676. </glossentry>
  3677. <glossentry id='var-EXTRA_IMAGEDEPENDS'><glossterm>EXTRA_IMAGEDEPENDS</glossterm>
  3678. <info>
  3679. EXTRA_IMAGEDEPENDS[doc] = "A list of recipes to build that do not provide packages for installing into the root filesystem. Use this variable to list recipes that are required to build the final image, but not needed in the root filesystem."
  3680. </info>
  3681. <glossdef>
  3682. <para role="glossdeffirst">
  3683. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3684. A list of recipes to build that do not provide packages
  3685. for installing into the root filesystem.
  3686. </para>
  3687. <para>
  3688. Sometimes a recipe is required to build the final image but is not
  3689. needed in the root filesystem.
  3690. You can use the <filename>EXTRA_IMAGEDEPENDS</filename> variable to
  3691. list these recipes and thus specify the dependencies.
  3692. A typical example is a required bootloader in a machine configuration.
  3693. </para>
  3694. <note>
  3695. To add packages to the root filesystem, see the various
  3696. <filename>*<link linkend='var-RDEPENDS'>RDEPENDS</link></filename>
  3697. and <filename>*<link linkend='var-RRECOMMENDS'>RRECOMMENDS</link></filename>
  3698. variables.
  3699. </note>
  3700. </glossdef>
  3701. </glossentry>
  3702. <glossentry id='var-EXTRANATIVEPATH'><glossterm>EXTRANATIVEPATH</glossterm>
  3703. <info>
  3704. EXTRANATIVEPATH[doc] = "A list of subdirectories of ${STAGING_BINDIR_NATIVE} added to the beginning of the environment variable PATH."
  3705. </info>
  3706. <glossdef>
  3707. <para role="glossdeffirst">
  3708. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3709. A list of subdirectories of
  3710. <filename>${</filename><link linkend='var-STAGING_BINDIR_NATIVE'><filename>STAGING_BINDIR_NATIVE</filename></link><filename>}</filename>
  3711. added to the beginning of the environment variable
  3712. <filename>PATH</filename>.
  3713. As an example, the following prepends
  3714. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:"
  3715. to <filename>PATH</filename>:
  3716. <literallayout class='monospaced'>
  3717. EXTRANATIVEPATH = "foo bar"
  3718. </literallayout>
  3719. </para>
  3720. </glossdef>
  3721. </glossentry>
  3722. <glossentry id='var-EXTRA_OECMAKE'><glossterm>EXTRA_OECMAKE</glossterm>
  3723. <info>
  3724. EXTRA_OECMAKE[doc] = "Additional cmake options."
  3725. </info>
  3726. <glossdef>
  3727. <para role="glossdeffirst">
  3728. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3729. Additional <filename>cmake</filename> options.
  3730. </para>
  3731. </glossdef>
  3732. </glossentry>
  3733. <glossentry id='var-EXTRA_OECONF'><glossterm>EXTRA_OECONF</glossterm>
  3734. <info>
  3735. EXTRA_OECONF[doc] = "Additional configure script options."
  3736. </info>
  3737. <glossdef>
  3738. <para role="glossdeffirst">
  3739. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3740. Additional <filename>configure</filename> script options.
  3741. See
  3742. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>
  3743. for additional information on passing configure script
  3744. options.
  3745. </para>
  3746. </glossdef>
  3747. </glossentry>
  3748. <glossentry id='var-EXTRA_OEMAKE'><glossterm>EXTRA_OEMAKE</glossterm>
  3749. <info>
  3750. EXTRA_OEMAKE[doc] = "Additional GNU make options."
  3751. </info>
  3752. <glossdef>
  3753. <para role="glossdeffirst">
  3754. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3755. Additional GNU <filename>make</filename> options.
  3756. </para>
  3757. <para>
  3758. Because the <filename>EXTRA_OEMAKE</filename> defaults to
  3759. "", you need to set the variable to specify any required
  3760. GNU options.
  3761. </para>
  3762. <para>
  3763. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  3764. and
  3765. <link linkend='var-PARALLEL_MAKEINST'><filename>PARALLEL_MAKEINST</filename></link>
  3766. also make use of
  3767. <filename>EXTRA_OEMAKE</filename> to pass the required
  3768. flags.
  3769. </para>
  3770. </glossdef>
  3771. </glossentry>
  3772. <glossentry id='var-EXTRA_OESCONS'><glossterm>EXTRA_OESCONS</glossterm>
  3773. <info>
  3774. EXTRA_OESCONS[doc] = "When a recipe inherits the scons class, this variable specifies additional configuration options you want to pass to the scons command line."
  3775. </info>
  3776. <glossdef>
  3777. <para role="glossdeffirst">
  3778. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3779. When inheriting the
  3780. <link linkend='ref-classes-scons'><filename>scons</filename></link>
  3781. class, this variable specifies additional configuration
  3782. options you want to pass to the
  3783. <filename>scons</filename> command line.
  3784. </para>
  3785. </glossdef>
  3786. </glossentry>
  3787. <glossentry id='var-EXTRA_USERS_PARAMS'><glossterm>EXTRA_USERS_PARAMS</glossterm>
  3788. <info>
  3789. EXTRA_USERS_PARAMS[doc] = "When a recipe inherits the extrausers class, this variable provides image level user and group operations."
  3790. </info>
  3791. <glossdef>
  3792. <para role="glossdeffirst">
  3793. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3794. When inheriting the
  3795. <link linkend='ref-classes-extrausers'><filename>extrausers</filename></link>
  3796. class, this variable provides image level user and group
  3797. operations.
  3798. This is a more global method of providing user and group
  3799. configuration as compared to using the
  3800. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  3801. class, which ties user and group configurations to a
  3802. specific recipe.
  3803. </para>
  3804. <para>
  3805. The set list of commands you can configure using the
  3806. <filename>EXTRA_USERS_PARAMS</filename> is shown in the
  3807. <filename>extrausers</filename> class.
  3808. These commands map to the normal Unix commands of the same
  3809. names:
  3810. <literallayout class='monospaced'>
  3811. # EXTRA_USERS_PARAMS = "\
  3812. # useradd -p '' tester; \
  3813. # groupadd developers; \
  3814. # userdel nobody; \
  3815. # groupdel -g video; \
  3816. # groupmod -g 1020 developers; \
  3817. # usermod -s /bin/sh tester; \
  3818. # "
  3819. </literallayout>
  3820. </para>
  3821. </glossdef>
  3822. </glossentry>
  3823. </glossdiv>
  3824. <glossdiv id='var-glossary-f'><title>F</title>
  3825. <glossentry id='var-FEATURE_PACKAGES'><glossterm>FEATURE_PACKAGES</glossterm>
  3826. <info>
  3827. FEATURE_PACKAGES[doc] = "Defines one or more packages to include in an image when a specific item is included in IMAGE_FEATURES. When setting the value, FEATURE_PACKAGES should have the name of the feature item as an override."
  3828. </info>
  3829. <glossdef>
  3830. <para role="glossdeffirst">
  3831. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3832. Defines one or more packages to include in an image when
  3833. a specific item is included in
  3834. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  3835. When setting the value, <filename>FEATURE_PACKAGES</filename>
  3836. should have the name of the feature item as an override.
  3837. Here is an example:
  3838. <literallayout class='monospaced'>
  3839. FEATURE_PACKAGES_widget = "<replaceable>package1</replaceable> <replaceable>package2</replaceable>"
  3840. </literallayout>
  3841. </para>
  3842. <para>
  3843. In this example, if "widget" were added to
  3844. <filename>IMAGE_FEATURES</filename>, <replaceable>package1</replaceable> and
  3845. <replaceable>package2</replaceable> would be included in the image.
  3846. <note>
  3847. Packages installed by features defined through
  3848. <filename>FEATURE_PACKAGES</filename> are often package
  3849. groups.
  3850. While similarly named, you should not confuse the
  3851. <filename>FEATURE_PACKAGES</filename> variable with
  3852. package groups, which are discussed elsewhere in the
  3853. documentation.
  3854. </note>
  3855. </para>
  3856. </glossdef>
  3857. </glossentry>
  3858. <glossentry id='var-FEED_DEPLOYDIR_BASE_URI'><glossterm>FEED_DEPLOYDIR_BASE_URI</glossterm>
  3859. <info>
  3860. FEED_DEPLOYDIR_BASE_URI[doc] = "Allow to serve ipk deploy directory as an ad hoc feed (bogofeed). Set to base URL of the directory as exported by HTTP. Set of ad hoc feed configs will be generated in the image."
  3861. </info>
  3862. <glossdef>
  3863. <para role="glossdeffirst">
  3864. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3865. Points to the base URL of the server and location within
  3866. the document-root that provides the metadata and
  3867. packages required by OPKG to support runtime package
  3868. management of IPK packages.
  3869. You set this variable in your
  3870. <filename>local.conf</filename> file.
  3871. </para>
  3872. <para>
  3873. Consider the following example:
  3874. <literallayout class='monospaced'>
  3875. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  3876. </literallayout>
  3877. This example assumes you are serving your packages over
  3878. HTTP and your databases are located in a directory
  3879. named <filename>BOARD-dir</filename>, which is underneath
  3880. your HTTP server's document-root.
  3881. In this case, the OpenEmbedded build system generates a set
  3882. of configuration files for you in your target that work
  3883. with the feed.
  3884. </para>
  3885. </glossdef>
  3886. </glossentry>
  3887. <glossentry id='var-FILES'><glossterm>FILES</glossterm>
  3888. <info>
  3889. FILES[doc] = "The list of directories or files that are placed in a package."
  3890. </info>
  3891. <glossdef>
  3892. <para role="glossdeffirst">
  3893. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3894. The list of files and directories that are placed in a
  3895. package.
  3896. The
  3897. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  3898. variable lists the packages generated by a recipe.
  3899. </para>
  3900. <para>
  3901. To use the <filename>FILES</filename> variable, provide a
  3902. package name override that identifies the resulting package.
  3903. Then, provide a space-separated list of files or paths
  3904. that identify the files you want included as part of the
  3905. resulting package.
  3906. Here is an example:
  3907. <literallayout class='monospaced'>
  3908. FILES_${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  3909. </literallayout>
  3910. </para>
  3911. <note>
  3912. When specifying paths as part of the
  3913. <filename>FILES</filename> variable, it is good practice
  3914. to use appropriate path variables.
  3915. For example, use <filename>${sysconfdir}</filename> rather
  3916. than <filename>/etc</filename>, or
  3917. <filename>${bindir}</filename> rather than
  3918. <filename>/usr/bin</filename>.
  3919. You can find a list of these variables at the top of the
  3920. <filename>meta/conf/bitbake.conf</filename> file in the
  3921. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  3922. You will also find the default values of the various
  3923. <filename>FILES_*</filename> variables in this file.
  3924. </note>
  3925. <para>
  3926. If some of the files you provide with the
  3927. <filename>FILES</filename> variable are editable and you
  3928. know they should not be overwritten during the package
  3929. update process by the Package Management System (PMS), you
  3930. can identify these files so that the PMS will not
  3931. overwrite them.
  3932. See the
  3933. <link linkend='var-CONFFILES'><filename>CONFFILES</filename></link>
  3934. variable for information on how to identify these files to
  3935. the PMS.
  3936. </para>
  3937. </glossdef>
  3938. </glossentry>
  3939. <glossentry id='var-FILES_SOLIBSDEV'><glossterm>FILES_SOLIBSDEV</glossterm>
  3940. <info>
  3941. FILES_SOLIBSDEV[doc] = "Defines the full path name of the development symbolic link (symlink) for shared libraries on the target platform."
  3942. </info>
  3943. <glossdef>
  3944. <para role="glossdeffirst">
  3945. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3946. Defines the file specification to match
  3947. <link linkend='var-SOLIBSDEV'><filename>SOLIBSDEV</filename></link>.
  3948. In other words, <filename>FILES_SOLIBSDEV</filename>
  3949. defines the full path name of the development symbolic link
  3950. (symlink) for shared libraries on the target platform.
  3951. </para>
  3952. <para>
  3953. The following statement from the
  3954. <filename>bitbake.conf</filename> shows how it is set:
  3955. <literallayout class='monospaced'>
  3956. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  3957. </literallayout>
  3958. </para>
  3959. </glossdef>
  3960. </glossentry>
  3961. <glossentry id='var-FILESEXTRAPATHS'><glossterm>FILESEXTRAPATHS</glossterm>
  3962. <info>
  3963. FILESEXTRAPATHS[doc] = "Extends the search path the OpenEmbedded build system uses when looking for files and patches as it processes recipes and append files."
  3964. </info>
  3965. <glossdef>
  3966. <para role="glossdeffirst">
  3967. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3968. Extends the search path the OpenEmbedded build system uses
  3969. when looking for files and patches as it processes recipes
  3970. and append files.
  3971. The default directories BitBake uses when it processes
  3972. recipes are initially defined by the
  3973. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>
  3974. variable.
  3975. You can extend <filename>FILESPATH</filename> variable
  3976. by using <filename>FILESEXTRAPATHS</filename>.
  3977. </para>
  3978. <para>
  3979. Best practices dictate that you accomplish this by using
  3980. <filename>FILESEXTRAPATHS</filename> from within a
  3981. <filename>.bbappend</filename> file and that you prepend
  3982. paths as follows:
  3983. <literallayout class='monospaced'>
  3984. FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
  3985. </literallayout>
  3986. In the above example, the build system first looks for files
  3987. in a directory that has the same name as the corresponding
  3988. append file.
  3989. <note>
  3990. <para>When extending <filename>FILESEXTRAPATHS</filename>,
  3991. be sure to use the immediate expansion
  3992. (<filename>:=</filename>) operator.
  3993. Immediate expansion makes sure that BitBake evaluates
  3994. <link linkend='var-THISDIR'><filename>THISDIR</filename></link>
  3995. at the time the directive is encountered rather than at
  3996. some later time when expansion might result in a
  3997. directory that does not contain the files you need.
  3998. </para>
  3999. <para>Also, include the trailing separating colon
  4000. character if you are prepending.
  4001. The trailing colon character is necessary because you
  4002. are directing BitBake to extend the path by prepending
  4003. directories to the search path.</para>
  4004. </note>
  4005. Here is another common use:
  4006. <literallayout class='monospaced'>
  4007. FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
  4008. </literallayout>
  4009. In this example, the build system extends the
  4010. <filename>FILESPATH</filename> variable to include a
  4011. directory named <filename>files</filename> that is in the
  4012. same directory as the corresponding append file.
  4013. </para>
  4014. <para>
  4015. Here is a final example that specifically adds three paths:
  4016. <literallayout class='monospaced'>
  4017. FILESEXTRAPATHS_prepend := "path_1:path_2:path_3:"
  4018. </literallayout>
  4019. </para>
  4020. <para>
  4021. By prepending paths in <filename>.bbappend</filename>
  4022. files, you allow multiple append files that reside in
  4023. different layers but are used for the same recipe to
  4024. correctly extend the path.
  4025. </para>
  4026. </glossdef>
  4027. </glossentry>
  4028. <glossentry id='var-FILESOVERRIDES'><glossterm>FILESOVERRIDES</glossterm>
  4029. <info>
  4030. FILESOVERRIDES[doc] = "A subset of OVERRIDES used by the OpenEmbedded build system for creating FILESPATH."
  4031. </info>
  4032. <glossdef>
  4033. <para role="glossdeffirst">
  4034. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4035. A subset of <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>
  4036. used by the OpenEmbedded build system for creating
  4037. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>.
  4038. You can find more information on how overrides are handled
  4039. in the
  4040. <ulink url='&YOCTO_DOCS_BB_URL;'>BitBake Manual</ulink>.
  4041. </para>
  4042. <para>
  4043. By default, the <filename>FILESOVERRIDES</filename>
  4044. variable is defined as:
  4045. <literallayout class='monospaced'>
  4046. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  4047. </literallayout>
  4048. <note>
  4049. Do not hand-edit the <filename>FILESOVERRIDES</filename>
  4050. variable.
  4051. The values match up with expected overrides and are
  4052. used in an expected manner by the build system.
  4053. </note>
  4054. </para>
  4055. </glossdef>
  4056. </glossentry>
  4057. <glossentry id='var-FILESPATH'><glossterm>FILESPATH</glossterm>
  4058. <info>
  4059. FILESPATH[doc] = "The default set of directories the OpenEmbedded build system uses when searching for patches and files. It is defined in the base.bbclass class found in meta/classes in the Source Directory. Do not hand-edit the FILESPATH variable."
  4060. </info>
  4061. <glossdef>
  4062. <para role="glossdeffirst">
  4063. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4064. The default set of directories the OpenEmbedded build system
  4065. uses when searching for patches and files.
  4066. During the build process, BitBake searches each directory in
  4067. <filename>FILESPATH</filename> in the specified order when
  4068. looking for files and patches specified by each
  4069. <filename>file://</filename> URI in a recipe.
  4070. </para>
  4071. <para>
  4072. The default value for the <filename>FILESPATH</filename>
  4073. variable is defined in the <filename>base.bbclass</filename>
  4074. class found in <filename>meta/classes</filename> in the
  4075. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>:
  4076. <literallayout class='monospaced'>
  4077. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  4078. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  4079. </literallayout>
  4080. <note>
  4081. Do not hand-edit the <filename>FILESPATH</filename>
  4082. variable.
  4083. If you want the build system to look in directories
  4084. other than the defaults, extend the
  4085. <filename>FILESPATH</filename> variable by using the
  4086. <link linkend='var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></link>
  4087. variable.
  4088. </note>
  4089. Be aware that the default <filename>FILESPATH</filename>
  4090. directories do not map to directories in custom layers
  4091. where append files (<filename>.bbappend</filename>)
  4092. are used.
  4093. If you want the build system to find patches or files
  4094. that reside with your append files, you need to extend
  4095. the <filename>FILESPATH</filename> variable by using
  4096. the
  4097. <link linkend='var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></link>
  4098. variable.
  4099. </para>
  4100. </glossdef>
  4101. </glossentry>
  4102. <glossentry id='var-FILESYSTEM_PERMS_TABLES'><glossterm>FILESYSTEM_PERMS_TABLES</glossterm>
  4103. <info>
  4104. FILESYSTEM_PERMS_TABLES[doc] = "Allows you to define your own file permissions settings table as part of your configuration for the packaging process."
  4105. </info>
  4106. <glossdef>
  4107. <para role="glossdeffirst">
  4108. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4109. Allows you to define your own file permissions settings table as part of
  4110. your configuration for the packaging process.
  4111. For example, suppose you need a consistent set of custom permissions for
  4112. a set of groups and users across an entire work project.
  4113. It is best to do this in the packages themselves but this is not always
  4114. possible.
  4115. </para>
  4116. <para>
  4117. By default, the OpenEmbedded build system uses the <filename>fs-perms.txt</filename>, which
  4118. is located in the <filename>meta/files</filename> folder in the
  4119. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  4120. If you create your own file permissions setting table, you should place it in your
  4121. layer or the distro's layer.
  4122. </para>
  4123. <para>
  4124. You define the <filename>FILESYSTEM_PERMS_TABLES</filename> variable in the
  4125. <filename>conf/local.conf</filename> file, which is found in the
  4126. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>, to
  4127. point to your custom <filename>fs-perms.txt</filename>.
  4128. You can specify more than a single file permissions setting table.
  4129. The paths you specify to these files must be defined within the
  4130. <link linkend='var-BBPATH'><filename>BBPATH</filename></link> variable.
  4131. </para>
  4132. <para>
  4133. For guidance on how to create your own file permissions settings table file,
  4134. examine the existing <filename>fs-perms.txt</filename>.
  4135. </para>
  4136. </glossdef>
  4137. </glossentry>
  4138. <glossentry id='var-FONT_EXTRA_RDEPENDS'><glossterm>FONT_EXTRA_RDEPENDS</glossterm>
  4139. <info>
  4140. FONT_EXTRA_RDEPENDS[doc] = "When a recipe inherits the fontcache class, this variable specifies runtime dependencies for font packages. This variable defaults to 'fontconfig-utils'."
  4141. </info>
  4142. <glossdef>
  4143. <para role="glossdeffirst">
  4144. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4145. When inheriting the
  4146. <link linkend='ref-classes-fontcache'><filename>fontcache</filename></link>
  4147. class, this variable specifies the runtime dependencies
  4148. for font packages.
  4149. By default, the <filename>FONT_EXTRA_RDEPENDS</filename>
  4150. is set to "fontconfig-utils".
  4151. </para>
  4152. </glossdef>
  4153. </glossentry>
  4154. <glossentry id='var-FONT_PACKAGES'><glossterm>FONT_PACKAGES</glossterm>
  4155. <info>
  4156. FONT_PACKAGES[doc] = "When a recipe inherits the fontcache class, this variable identifies packages containing font files that need to be cached by Fontconfig."
  4157. </info>
  4158. <glossdef>
  4159. <para role="glossdeffirst">
  4160. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4161. When inheriting the
  4162. <link linkend='ref-classes-fontcache'><filename>fontcache</filename></link>
  4163. class, this variable identifies packages containing font
  4164. files that need to be cached by Fontconfig.
  4165. By default, the <filename>fontcache</filename> class assumes
  4166. that fonts are in the recipe's main package
  4167. (i.e. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  4168. Use this variable if fonts you need are in a package
  4169. other than that main package.
  4170. </para>
  4171. </glossdef>
  4172. </glossentry>
  4173. <glossentry id='var-FORCE_RO_REMOVE'><glossterm>FORCE_RO_REMOVE</glossterm>
  4174. <info>
  4175. FORCE_RO_REMOVE[doc] = "Forces the removal of the packages listed in ROOTFS_RO_UNNEEDED during the generation of the root filesystem."
  4176. </info>
  4177. <glossdef>
  4178. <para role="glossdeffirst">
  4179. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4180. Forces the removal of the packages listed in
  4181. <filename>ROOTFS_RO_UNNEEDED</filename> during the
  4182. generation of the root filesystem.
  4183. </para>
  4184. <para>
  4185. Set the variable to "1" to force the removal of these
  4186. packages.
  4187. </para>
  4188. </glossdef>
  4189. </glossentry>
  4190. <glossentry id='var-FULL_OPTIMIZATION'><glossterm>FULL_OPTIMIZATION</glossterm>
  4191. <info>
  4192. FULL_OPTIMIZATION[doc]= "The options to pass in TARGET_CFLAGS and CFLAGS when compiling an optimized system. This variable defaults to '-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2'."
  4193. </info>
  4194. <glossdef>
  4195. <para role="glossdeffirst">
  4196. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4197. The options to pass in
  4198. <filename><link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link></filename>
  4199. and <filename><link linkend='var-CFLAGS'>CFLAGS</link></filename>
  4200. when compiling an optimized system.
  4201. This variable defaults to
  4202. "-O2 -pipe ${DEBUG_FLAGS}".
  4203. </para>
  4204. </glossdef>
  4205. </glossentry>
  4206. </glossdiv>
  4207. <glossdiv id='var-glossary-g'><title>G</title>
  4208. <glossentry id='var-GDB'><glossterm>GDB</glossterm>
  4209. <info>
  4210. GDB[doc] = "The minimal command and arguments to run the GNU Debugger."
  4211. </info>
  4212. <glossdef>
  4213. <para role="glossdeffirst">
  4214. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4215. The minimal command and arguments to run the GNU Debugger.
  4216. </para>
  4217. </glossdef>
  4218. </glossentry>
  4219. <glossentry id='var-GITDIR'><glossterm>GITDIR</glossterm>
  4220. <info>
  4221. GITDIR[doc] = "The directory where Git clones will be stored."
  4222. </info>
  4223. <glossdef>
  4224. <para role="glossdeffirst">
  4225. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4226. The directory in which a local copy of a Git repository
  4227. is stored when it is cloned.
  4228. </para>
  4229. </glossdef>
  4230. </glossentry>
  4231. <glossentry id='var-GLIBC_GENERATE_LOCALES'><glossterm>GLIBC_GENERATE_LOCALES</glossterm>
  4232. <info>
  4233. GLIBC_GENERATE_LOCALES[doc]= "Specifies the list of GLIBC locales to generate should you not wish generate all LIBC locals, which can be time consuming."
  4234. </info>
  4235. <glossdef>
  4236. <para role="glossdeffirst">
  4237. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4238. Specifies the list of GLIBC locales to generate should you
  4239. not wish generate all LIBC locals, which can be time
  4240. consuming.
  4241. <note>
  4242. If you specifically remove the locale
  4243. <filename>en_US.UTF-8</filename>, you must set
  4244. <link linkend='var-IMAGE_LINGUAS'><filename>IMAGE_LINGUAS</filename></link>
  4245. appropriately.
  4246. </note>
  4247. </para>
  4248. <para>
  4249. You can set <filename>GLIBC_GENERATE_LOCALES</filename>
  4250. in your <filename>local.conf</filename> file.
  4251. By default, all locales are generated.
  4252. <literallayout class='monospaced'>
  4253. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  4254. </literallayout>
  4255. </para>
  4256. </glossdef>
  4257. </glossentry>
  4258. <glossentry id='var-GROUPADD_PARAM'><glossterm>GROUPADD_PARAM</glossterm>
  4259. <info>
  4260. GROUPADD_PARAM[doc] = "When a recipe inherits the useradd class, this variable specifies for a package what parameters should be passed to the groupadd command if you wish to add a group to the system when the package is installed."
  4261. </info>
  4262. <glossdef>
  4263. <para role="glossdeffirst">
  4264. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4265. When inheriting the
  4266. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  4267. class, this variable
  4268. specifies for a package what parameters should be passed
  4269. to the <filename>groupadd</filename> command
  4270. if you wish to add a group to the system when the package
  4271. is installed.
  4272. </para>
  4273. <para>
  4274. Here is an example from the <filename>dbus</filename>
  4275. recipe:
  4276. <literallayout class='monospaced'>
  4277. GROUPADD_PARAM_${PN} = "-r netdev"
  4278. </literallayout>
  4279. For information on the standard Linux shell command
  4280. <filename>groupadd</filename>, see
  4281. <ulink url='http://linux.die.net/man/8/groupadd'></ulink>.
  4282. </para>
  4283. </glossdef>
  4284. </glossentry>
  4285. <glossentry id='var-GROUPMEMS_PARAM'><glossterm>GROUPMEMS_PARAM</glossterm>
  4286. <info>
  4287. GROUPMEMS_PARAM[doc] = "When a recipe inherits the useradd class, this variable specifies for a package what parameters should be passed to the groupmems command if you wish to modify the members of a group when the package is installed."
  4288. </info>
  4289. <glossdef>
  4290. <para role="glossdeffirst">
  4291. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4292. When inheriting the
  4293. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  4294. class, this variable
  4295. specifies for a package what parameters should be passed
  4296. to the <filename>groupmems</filename> command
  4297. if you wish to modify the members of a group when the
  4298. package is installed.
  4299. </para>
  4300. <para>
  4301. For information on the standard Linux shell command
  4302. <filename>groupmems</filename>, see
  4303. <ulink url='http://linux.die.net/man/8/groupmems'></ulink>.
  4304. </para>
  4305. </glossdef>
  4306. </glossentry>
  4307. <glossentry id='var-GRUB_GFXSERIAL'><glossterm>GRUB_GFXSERIAL</glossterm>
  4308. <info>
  4309. GRUB_GFXSERIAL[doc] = "Configures the GNU GRand Unified Bootloader (GRUB) to have graphics and serial in the boot menu."
  4310. </info>
  4311. <glossdef>
  4312. <para role="glossdeffirst">
  4313. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4314. Configures the GNU GRand Unified Bootloader (GRUB) to have
  4315. graphics and serial in the boot menu.
  4316. Set this variable to "1" in your
  4317. <filename>local.conf</filename> or distribution
  4318. configuration file to enable graphics and serial
  4319. in the menu.
  4320. </para>
  4321. <para>
  4322. See the
  4323. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  4324. class for more information on how this variable is used.
  4325. </para>
  4326. </glossdef>
  4327. </glossentry>
  4328. <glossentry id='var-GRUB_OPTS'><glossterm>GRUB_OPTS</glossterm>
  4329. <info>
  4330. GRUB_OPTS[doc] = "Additional options to add to the GNU GRand Unified Bootloader (GRUB) configuration."
  4331. </info>
  4332. <glossdef>
  4333. <para role="glossdeffirst">
  4334. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4335. Additional options to add to the GNU GRand Unified
  4336. Bootloader (GRUB) configuration.
  4337. Use a semi-colon character (<filename>;</filename>) to
  4338. separate multiple options.
  4339. </para>
  4340. <para>
  4341. The <filename>GRUB_OPTS</filename> variable is optional.
  4342. See the
  4343. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  4344. class for more information on how this variable is used.
  4345. </para>
  4346. </glossdef>
  4347. </glossentry>
  4348. <glossentry id='var-GRUB_TIMEOUT'><glossterm>GRUB_TIMEOUT</glossterm>
  4349. <info>
  4350. GRUB_TIMEOUT[doc] = "Specifies the timeout before executing the default LABEL in the GNU GRand Unified Bootloader (GRUB)."
  4351. </info>
  4352. <glossdef>
  4353. <para role="glossdeffirst">
  4354. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4355. Specifies the timeout before executing the default
  4356. <filename>LABEL</filename> in the GNU GRand Unified
  4357. Bootloader (GRUB).
  4358. </para>
  4359. <para>
  4360. The <filename>GRUB_TIMEOUT</filename> variable is optional.
  4361. See the
  4362. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  4363. class for more information on how this variable is used.
  4364. </para>
  4365. </glossdef>
  4366. </glossentry>
  4367. <glossentry id='var-GTKIMMODULES_PACKAGES'><glossterm>GTKIMMODULES_PACKAGES</glossterm>
  4368. <info>
  4369. GTKIMMODULES_PACKAGES[doc] = "For recipes that inherit the gtk-immodules-cache class, this variable specifies the packages that contain the GTK+ input method modules being installed when the modules are in packages other than the main package."
  4370. </info>
  4371. <glossdef>
  4372. <para role="glossdeffirst">
  4373. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4374. When inheriting the
  4375. <link linkend='ref-classes-gtk-immodules-cache'><filename>gtk-immodules-cache</filename></link>
  4376. class, this variable specifies the packages that contain the
  4377. GTK+ input method modules being installed when the modules
  4378. are in packages other than the main package.
  4379. </para>
  4380. </glossdef>
  4381. </glossentry>
  4382. </glossdiv>
  4383. <glossdiv id='var-glossary-h'><title>H</title>
  4384. <glossentry id='var-HOMEPAGE'><glossterm>HOMEPAGE</glossterm>
  4385. <info>
  4386. HOMEPAGE[doc] = "Website where more information about the software the recipe is building can be found."
  4387. </info>
  4388. <glossdef>
  4389. <para role="glossdeffirst">
  4390. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4391. Website where more information about the software the recipe is building
  4392. can be found.
  4393. </para>
  4394. </glossdef>
  4395. </glossentry>
  4396. <glossentry id='var-HOST_ARCH'><glossterm>HOST_ARCH</glossterm>
  4397. <info>
  4398. HOST_ARCH[doc] = "The name of the target architecture. Normally same as the TARGET_ARCH."
  4399. </info>
  4400. <glossdef>
  4401. <para role="glossdeffirst">
  4402. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4403. The name of the target architecture, which is normally
  4404. the same as
  4405. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>.
  4406. The OpenEmbedded build system supports many
  4407. architectures.
  4408. Here is an example list of architectures supported.
  4409. This list is by no means complete as the architecture
  4410. is configurable:
  4411. <literallayout class='monospaced'>
  4412. arm
  4413. i586
  4414. x86_64
  4415. powerpc
  4416. powerpc64
  4417. mips
  4418. mipsel
  4419. </literallayout>
  4420. </para>
  4421. </glossdef>
  4422. </glossentry>
  4423. <glossentry id='var-HOST_CC_ARCH'><glossterm>HOST_CC_ARCH</glossterm>
  4424. <info>
  4425. HOST_CC_ARCH[doc] = "The name of the host architecture. Normally same as the TARGET_CC_ARCH."
  4426. </info>
  4427. <glossdef>
  4428. <para role="glossdeffirst">
  4429. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4430. Specifies architecture-specific compiler flags that are
  4431. passed to the C compiler.
  4432. </para>
  4433. <para>
  4434. Default initialization for <filename>HOST_CC_ARCH</filename>
  4435. varies depending on what is being built:
  4436. <itemizedlist>
  4437. <listitem><para>
  4438. <link linkend='var-TARGET_CC_ARCH'><filename>TARGET_CC_ARCH</filename></link>
  4439. when building for the target
  4440. </para></listitem>
  4441. <listitem><para>
  4442. <filename>BUILD_CC_ARCH</filename>
  4443. when building for the build host (i.e.
  4444. <filename>-native</filename>)
  4445. </para></listitem>
  4446. <listitem><para>
  4447. <filename>BUILDSDK_CC_ARCH</filename>
  4448. when building for an SDK (i.e.
  4449. <filename>nativesdk-</filename>)
  4450. </para></listitem>
  4451. </itemizedlist>
  4452. </para>
  4453. </glossdef>
  4454. </glossentry>
  4455. <glossentry id='var-HOST_OS'><glossterm>HOST_OS</glossterm>
  4456. <info>
  4457. HOST_OS[doc] = "The name of the target operating system. Normally the same as the TARGET_OS."
  4458. </info>
  4459. <glossdef>
  4460. <para role="glossdeffirst">
  4461. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4462. Specifies the name of the target operating system, which
  4463. is normally the same as the
  4464. <link linkend='var-TARGET_OS'><filename>TARGET_OS</filename></link>.
  4465. The variable can be set to "linux" for <filename>glibc</filename>-based systems and
  4466. to "linux-uclibc" for <filename>uclibc</filename>.
  4467. For ARM/EABI targets, there are also "linux-gnueabi" and
  4468. "linux-uclibc-gnueabi" values possible.
  4469. </para>
  4470. </glossdef>
  4471. </glossentry>
  4472. <glossentry id='var-HOST_PREFIX'><glossterm>HOST_PREFIX</glossterm>
  4473. <info>
  4474. HOST_PREFIX[doc] = "The prefix for the cross compile toolchain. Normally same as the TARGET_PREFIX."
  4475. </info>
  4476. <glossdef>
  4477. <para role="glossdeffirst">
  4478. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4479. Specifies the prefix for the cross-compile toolchain.
  4480. <filename>HOST_PREFIX</filename> is normally the same as
  4481. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>.
  4482. </para>
  4483. </glossdef>
  4484. </glossentry>
  4485. <glossentry id='var-HOST_SYS'><glossterm>HOST_SYS</glossterm>
  4486. <info>
  4487. HOST_SYS[doc] = "Specifies the system, including the architecture and the operating system, for with the build is occurring in the context of the current recipe."
  4488. </info>
  4489. <glossdef>
  4490. <para role="glossdeffirst">
  4491. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4492. Specifies the system, including the architecture and the
  4493. operating system, for which the build is occurring
  4494. in the context of the current recipe.
  4495. </para>
  4496. <para>
  4497. The OpenEmbedded build system automatically sets this
  4498. variable based on
  4499. <link linkend='var-HOST_ARCH'><filename>HOST_ARCH</filename></link>,
  4500. <link linkend='var-HOST_VENDOR'><filename>HOST_VENDOR</filename></link>,
  4501. and
  4502. <link linkend='var-HOST_OS'><filename>HOST_OS</filename></link>
  4503. variables.
  4504. <note>
  4505. You do not need to set the variable yourself.
  4506. </note>
  4507. </para>
  4508. <para>
  4509. Consider these two examples:
  4510. <itemizedlist>
  4511. <listitem><para>Given a native recipe on a 32-bit
  4512. x86 machine running Linux, the value is
  4513. "i686-linux".
  4514. </para></listitem>
  4515. <listitem><para>Given a recipe being built for a
  4516. little-endian MIPS target running Linux,
  4517. the value might be "mipsel-linux".
  4518. </para></listitem>
  4519. </itemizedlist>
  4520. </para>
  4521. </glossdef>
  4522. </glossentry>
  4523. <glossentry id='var-HOST_VENDOR'><glossterm>HOST_VENDOR</glossterm>
  4524. <info>
  4525. HOST_VENDOR[doc] = "The name of the vendor. Normally same as the TARGET_VENDOR."
  4526. </info>
  4527. <glossdef>
  4528. <para role="glossdeffirst">
  4529. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4530. Specifies the name of the vendor.
  4531. <filename>HOST_VENDOR</filename> is normally the same as
  4532. <link linkend='var-TARGET_PREFIX'><filename>TARGET_VENDOR</filename></link>.
  4533. </para>
  4534. </glossdef>
  4535. </glossentry>
  4536. </glossdiv>
  4537. <glossdiv id='var-glossary-i'><title>I</title>
  4538. <glossentry id='var-ICECC_DISABLED'><glossterm>ICECC_DISABLED</glossterm>
  4539. <info>
  4540. ICECC_DISABLED[doc] = "Disables or enables the icecc (Icecream) function."
  4541. </info>
  4542. <glossdef>
  4543. <para role="glossdeffirst">
  4544. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4545. Disables or enables the <filename>icecc</filename>
  4546. (Icecream) function.
  4547. For more information on this function and best practices
  4548. for using this variable, see the
  4549. "<link linkend='ref-classes-icecc'><filename>icecc.bbclass</filename></link>"
  4550. section.
  4551. </para>
  4552. <para>
  4553. Setting this variable to "1" in your
  4554. <filename>local.conf</filename> disables the function:
  4555. <literallayout class='monospaced'>
  4556. ICECC_DISABLED ??= "1"
  4557. </literallayout>
  4558. To enable the function, set the variable as follows:
  4559. <literallayout class='monospaced'>
  4560. ICECC_DISABLED = ""
  4561. </literallayout>
  4562. </para>
  4563. </glossdef>
  4564. </glossentry>
  4565. <glossentry id='var-ICECC_ENV_EXEC'><glossterm>ICECC_ENV_EXEC</glossterm>
  4566. <info>
  4567. ICECC_ENV_EXEC[doc] = "Points to the icecc-create-env script that you provide."
  4568. </info>
  4569. <glossdef>
  4570. <para role="glossdeffirst">
  4571. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4572. Points to the <filename>icecc-create-env</filename> script
  4573. that you provide.
  4574. This variable is used by the
  4575. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  4576. class.
  4577. You set this variable in your
  4578. <filename>local.conf</filename> file.
  4579. </para>
  4580. <para>
  4581. If you do not point to a script that you provide, the
  4582. OpenEmbedded build system uses the default script provided
  4583. by the <filename>icecc-create-env.bb</filename> recipe,
  4584. which is a modified version and not the one that comes with
  4585. <filename>icecc</filename>.
  4586. </para>
  4587. </glossdef>
  4588. </glossentry>
  4589. <glossentry id='var-ICECC_PARALLEL_MAKE'><glossterm>ICECC_PARALLEL_MAKE</glossterm>
  4590. <info>
  4591. ICECC_PARALLEL_MAKE[doc] = "Extra options passed to the make command during the do_compile task that specify parallel compilation."
  4592. </info>
  4593. <glossdef>
  4594. <para role="glossdeffirst">
  4595. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4596. Extra options passed to the <filename>make</filename>
  4597. command during the
  4598. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>
  4599. task that specify parallel compilation.
  4600. This variable usually takes the form of
  4601. "-j <replaceable>x</replaceable>", where
  4602. <replaceable>x</replaceable> represents the maximum
  4603. number of parallel threads <filename>make</filename> can
  4604. run.
  4605. <note>
  4606. The options passed affect builds on all enabled
  4607. machines on the network, which are machines running the
  4608. <filename>iceccd</filename> daemon.
  4609. </note>
  4610. </para>
  4611. <para>
  4612. If your enabled machines support multiple cores,
  4613. coming up with the maximum number of parallel threads
  4614. that gives you the best performance could take some
  4615. experimentation since machine speed, network lag,
  4616. available memory, and existing machine loads can all
  4617. affect build time.
  4618. Consequently, unlike the
  4619. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  4620. variable, there is no rule-of-thumb for setting
  4621. <filename>ICECC_PARALLEL_MAKE</filename> to achieve
  4622. optimal performance.
  4623. </para>
  4624. <para>
  4625. If you do not set <filename>ICECC_PARALLEL_MAKE</filename>,
  4626. the build system does not use it (i.e. the system does
  4627. not detect and assign the number of cores as is done with
  4628. <filename>PARALLEL_MAKE</filename>).
  4629. </para>
  4630. </glossdef>
  4631. </glossentry>
  4632. <glossentry id='var-ICECC_PATH'><glossterm>ICECC_PATH</glossterm>
  4633. <info>
  4634. ICECC_PATH[doc] = "The location of the icecc binary."
  4635. </info>
  4636. <glossdef>
  4637. <para role="glossdeffirst">
  4638. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4639. The location of the <filename>icecc</filename> binary.
  4640. You can set this variable in your
  4641. <filename>local.conf</filename> file.
  4642. If your <filename>local.conf</filename> file does not define
  4643. this variable, the
  4644. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  4645. class attempts to define it by locating
  4646. <filename>icecc</filename> using <filename>which</filename>.
  4647. </para>
  4648. </glossdef>
  4649. </glossentry>
  4650. <glossentry id='var-ICECC_USER_CLASS_BL'><glossterm>ICECC_USER_CLASS_BL</glossterm>
  4651. <info>
  4652. ICECC_USER_CLASS_BL[doc] = "Identifies user classes that you do not want the Icecream distributed compile support to consider."
  4653. </info>
  4654. <glossdef>
  4655. <para role="glossdeffirst">
  4656. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4657. Identifies user classes that you do not want the
  4658. Icecream distributed compile support to consider.
  4659. This variable is used by the
  4660. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  4661. class.
  4662. You set this variable in your
  4663. <filename>local.conf</filename> file.
  4664. </para>
  4665. <para>
  4666. When you list classes using this variable, you are
  4667. "blacklisting" them from distributed compilation across
  4668. remote hosts.
  4669. Any classes you list will be distributed and compiled
  4670. locally.
  4671. </para>
  4672. </glossdef>
  4673. </glossentry>
  4674. <glossentry id='var-ICECC_USER_PACKAGE_BL'><glossterm>ICECC_USER_PACKAGE_BL</glossterm>
  4675. <info>
  4676. ICECC_USER_PACKAGE_BL[doc] = "Identifies user recipes that you do not want the Icecream distributed compile support to consider."
  4677. </info>
  4678. <glossdef>
  4679. <para role="glossdeffirst">
  4680. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4681. Identifies user recipes that you do not want the
  4682. Icecream distributed compile support to consider.
  4683. This variable is used by the
  4684. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  4685. class.
  4686. You set this variable in your
  4687. <filename>local.conf</filename> file.
  4688. </para>
  4689. <para>
  4690. When you list packages using this variable, you are
  4691. "blacklisting" them from distributed compilation across
  4692. remote hosts.
  4693. Any packages you list will be distributed and compiled
  4694. locally.
  4695. </para>
  4696. </glossdef>
  4697. </glossentry>
  4698. <glossentry id='var-ICECC_USER_PACKAGE_WL'><glossterm>ICECC_USER_PACKAGE_WL</glossterm>
  4699. <info>
  4700. ICECC_USER_PACKAGE_WL[doc] = "Identifies user recipes that use an empty PARALLEL_MAKE variable that you want to force remote distributed compilation on using the Icecream distributed compile support."
  4701. </info>
  4702. <glossdef>
  4703. <para role="glossdeffirst">
  4704. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4705. Identifies user recipes that use an empty
  4706. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  4707. variable that you want to force remote distributed
  4708. compilation on using the Icecream distributed compile
  4709. support.
  4710. This variable is used by the
  4711. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  4712. class.
  4713. You set this variable in your
  4714. <filename>local.conf</filename> file.
  4715. </para>
  4716. </glossdef>
  4717. </glossentry>
  4718. <glossentry id='var-IMAGE_BASENAME'><glossterm>IMAGE_BASENAME</glossterm>
  4719. <info>
  4720. IMAGE_BASENAME[doc] = "The base name of image output files."
  4721. </info>
  4722. <glossdef>
  4723. <para role="glossdeffirst">
  4724. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4725. The base name of image output files.
  4726. This variable defaults to the recipe name
  4727. (<filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  4728. </para>
  4729. </glossdef>
  4730. </glossentry>
  4731. <glossentry id='var-IMAGE_BOOT_FILES'><glossterm>IMAGE_BOOT_FILES</glossterm>
  4732. <info>
  4733. IMAGE_BOOT_FILES[doc] = "Whitespace separated list of files from ${DEPLOY_DIR_IMAGE} to place in boot partition. Entries will be installed under a same name as the source file. To change the destination file name, pass a desired name after a semicolon (eg. u-boot.img;uboot)."
  4734. </info>
  4735. <glossdef>
  4736. <para role="glossdeffirst">
  4737. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4738. A space-separated list of files installed into the
  4739. boot partition when preparing an image using the
  4740. <filename>wic</filename> tool with the
  4741. <filename>bootimg-partition</filename> source
  4742. plugin.
  4743. By default, the files are installed under
  4744. the same name as the source files.
  4745. To change the installed name, separate it from the
  4746. original name with a semi-colon (;).
  4747. Source files need to be located in
  4748. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>.
  4749. Here are two examples:
  4750. <literallayout class="monospaced">
  4751. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  4752. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  4753. </literallayout>
  4754. </para>
  4755. <para>
  4756. Alternatively, source files can be picked up using
  4757. a glob pattern.
  4758. In this case, the destination file
  4759. will have the same name as the base name of the source file
  4760. path.
  4761. To install files into a directory within the
  4762. target location, pass its name after a semi-colon
  4763. (;).
  4764. Here are two examples:
  4765. <literallayout class="monospaced">
  4766. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  4767. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  4768. </literallayout>
  4769. The first example installs all files from
  4770. <filename>${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles</filename>
  4771. into the root of the target partition.
  4772. The second example installs the same files into a
  4773. <filename>boot</filename> directory within the
  4774. target partition.
  4775. </para>
  4776. </glossdef>
  4777. </glossentry>
  4778. <glossentry id='var-IMAGE_CLASSES'><glossterm>IMAGE_CLASSES</glossterm>
  4779. <info>
  4780. IMAGE_CLASSES[doc] = "A list of classes that all images should inherit."
  4781. </info>
  4782. <glossdef>
  4783. <para role="glossdeffirst">
  4784. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4785. A list of classes that all images should inherit.
  4786. You typically use this variable to specify the list of
  4787. classes that register the different types of images
  4788. the OpenEmbedded build system creates.
  4789. </para>
  4790. <para>
  4791. The default value for <filename>IMAGE_CLASSES</filename> is
  4792. <filename>image_types</filename>.
  4793. You can set this variable in your
  4794. <filename>local.conf</filename> or in a distribution
  4795. configuration file.
  4796. </para>
  4797. <para>
  4798. For more information, see
  4799. <filename>meta/classes/image_types.bbclass</filename> in the
  4800. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  4801. </para>
  4802. </glossdef>
  4803. </glossentry>
  4804. <glossentry id='var-IMAGE_CMD'><glossterm>IMAGE_CMD</glossterm>
  4805. <info>
  4806. IMAGE_CMD[doc] = "Specifies the command to create the image file for a specific image type, which corresponds to the value set set in IMAGE_FSTYPES, (e.g. ext3, btrfs, and so forth)."
  4807. </info>
  4808. <glossdef>
  4809. <para role="glossdeffirst">
  4810. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4811. Specifies the command to create the image file for a
  4812. specific image type, which corresponds to the value set
  4813. set in
  4814. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>,
  4815. (e.g. <filename>ext3</filename>,
  4816. <filename>btrfs</filename>, and so forth).
  4817. When setting this variable, you should use
  4818. an override for the associated type.
  4819. Here is an example:
  4820. <literallayout class='monospaced'>
  4821. IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} \
  4822. --faketime --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
  4823. ${EXTRA_IMAGECMD}"
  4824. </literallayout>
  4825. </para>
  4826. <para>
  4827. You typically do not need to set this variable unless
  4828. you are adding support for a new image type.
  4829. For more examples on how to set this variable, see the
  4830. <link linkend='ref-classes-image_types'><filename>image_types</filename></link>
  4831. class file, which is
  4832. <filename>meta/classes/image_types.bbclass</filename>.
  4833. </para>
  4834. </glossdef>
  4835. </glossentry>
  4836. <glossentry id='var-IMAGE_DEVICE_TABLES'><glossterm>IMAGE_DEVICE_TABLES</glossterm>
  4837. <info>
  4838. IMAGE_DEVICE_TABLES[doc] = "Specifies one or more files that contain custom device tables that are passed to the makedevs command as part of creating an image."
  4839. </info>
  4840. <glossdef>
  4841. <para role="glossdeffirst">
  4842. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4843. Specifies one or more files that contain custom device
  4844. tables that are passed to the
  4845. <filename>makedevs</filename> command as part of creating
  4846. an image.
  4847. These files list basic device nodes that should be
  4848. created under <filename>/dev</filename> within the image.
  4849. If <filename>IMAGE_DEVICE_TABLES</filename> is not set,
  4850. <filename>files/device_table-minimal.txt</filename> is
  4851. used, which is located by
  4852. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>.
  4853. For details on how you should write device table files,
  4854. see <filename>meta/files/device_table-minimal.txt</filename>
  4855. as an example.
  4856. </para>
  4857. </glossdef>
  4858. </glossentry>
  4859. <glossentry id='var-IMAGE_FEATURES'><glossterm>IMAGE_FEATURES</glossterm>
  4860. <info>
  4861. IMAGE_FEATURES[doc] = "The primary list of features to include in an image. Configure this variable in an image recipe."
  4862. </info>
  4863. <glossdef>
  4864. <para role="glossdeffirst">
  4865. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4866. The primary list of features to include in an image.
  4867. Typically, you configure this variable in an image recipe.
  4868. Although you can use this variable from your
  4869. <filename>local.conf</filename> file, which is found in the
  4870. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>,
  4871. best practices dictate that you do not.
  4872. <note>
  4873. To enable extra features from outside the image recipe,
  4874. use the
  4875. <filename><link linkend='var-EXTRA_IMAGE_FEATURES'>EXTRA_IMAGE_FEATURES</link></filename> variable.
  4876. </note>
  4877. </para>
  4878. <para>
  4879. For a list of image features that ships with the Yocto
  4880. Project, see the
  4881. "<link linkend="ref-features-image">Image Features</link>"
  4882. section.
  4883. </para>
  4884. <para>
  4885. For an example that shows how to customize your image by
  4886. using this variable, see the
  4887. "<ulink url='&YOCTO_DOCS_DEV_URL;#usingpoky-extend-customimage-imagefeatures'>Customizing Images Using Custom <filename>IMAGE_FEATURES</filename> and <filename>EXTRA_IMAGE_FEATURES</filename></ulink>"
  4888. section in the Yocto Project Development Manual.
  4889. </para>
  4890. </glossdef>
  4891. </glossentry>
  4892. <glossentry id='var-IMAGE_FSTYPES'><glossterm>IMAGE_FSTYPES</glossterm>
  4893. <info>
  4894. IMAGE_FSTYPES[doc] = "Formats of root filesystem images that you want to have created."
  4895. </info>
  4896. <glossdef>
  4897. <para role="glossdeffirst">
  4898. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4899. Specifies the formats the OpenEmbedded build system uses
  4900. during the build when creating the root filesystem.
  4901. For example, setting <filename>IMAGE_FSTYPES</filename>
  4902. as follows causes the build system to create root
  4903. filesystems using two formats: <filename>.ext3</filename>
  4904. and <filename>.tar.bz2</filename>:
  4905. <literallayout class='monospaced'>
  4906. IMAGE_FSTYPES = "ext3 tar.bz2"
  4907. </literallayout>
  4908. </para>
  4909. <para>
  4910. For the complete list of supported image formats from which
  4911. you can choose, see
  4912. <link linkend='var-IMAGE_TYPES'><filename>IMAGE_TYPES</filename></link>.
  4913. </para>
  4914. <note>
  4915. If you add "live" to <filename>IMAGE_FSTYPES</filename>
  4916. inside an image recipe, be sure that you do so prior to the
  4917. "inherit image" line of the recipe or the live image will
  4918. not build.
  4919. </note>
  4920. <note>
  4921. Due to the way this variable is processed, it is not
  4922. possible to update its contents using
  4923. <filename>_append</filename> or
  4924. <filename>_prepend</filename>. To add one or more
  4925. additional options to this variable the
  4926. <filename>+=</filename> operator must be used.
  4927. </note>
  4928. </glossdef>
  4929. </glossentry>
  4930. <glossentry id='var-IMAGE_INSTALL'><glossterm>IMAGE_INSTALL</glossterm>
  4931. <info>
  4932. IMAGE_INSTALL[doc] = "Specifies the packages to install into an image. Image recipes set IMAGE_INSTALL to specify the packages to install into an image through image.bbclass."
  4933. </info>
  4934. <glossdef>
  4935. <para role="glossdeffirst">
  4936. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4937. Specifies the packages to install into an image.
  4938. The <filename>IMAGE_INSTALL</filename> variable is a
  4939. mechanism for an image recipe and you should use it
  4940. with care to avoid ordering issues.
  4941. <note>
  4942. When working with an
  4943. <link linkend='images-core-image-minimal-initramfs'><filename>core-image-minimal-initramfs</filename></link>
  4944. image, do not use the <filename>IMAGE_INSTALL</filename>
  4945. variable to specify packages for installation.
  4946. Instead, use the
  4947. <link linkend='var-PACKAGE_INSTALL'><filename>PACKAGE_INSTALL</filename></link>
  4948. variable, which allows the initial RAM disk (initramfs)
  4949. recipe to use a fixed set of packages and not be
  4950. affected by <filename>IMAGE_INSTALL</filename>.
  4951. </note>
  4952. </para>
  4953. <para>
  4954. Image recipes set <filename>IMAGE_INSTALL</filename>
  4955. to specify the packages to install into an image through
  4956. <filename>image.bbclass</filename>.
  4957. Additionally, "helper" classes exist, such as
  4958. <filename>core-image.bbclass</filename>, that can take
  4959. <filename><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></filename>
  4960. lists and turn these into auto-generated entries in
  4961. <filename>IMAGE_INSTALL</filename> in addition to its
  4962. default contents.
  4963. </para>
  4964. <para>
  4965. Using <filename>IMAGE_INSTALL</filename> with the
  4966. <filename>+=</filename> operator from the
  4967. <filename>/conf/local.conf</filename> file or from within
  4968. an image recipe is not recommended as it can cause ordering
  4969. issues.
  4970. Since <filename>core-image.bbclass</filename> sets
  4971. <filename>IMAGE_INSTALL</filename> to a default value using
  4972. the <filename>?=</filename> operator, using a
  4973. <filename>+=</filename> operation against
  4974. <filename>IMAGE_INSTALL</filename> will result in
  4975. unexpected behavior when used in
  4976. <filename>conf/local.conf</filename>.
  4977. Furthermore, the same operation from within an image
  4978. recipe may or may not succeed depending on the specific
  4979. situation.
  4980. In both these cases, the behavior is contrary to how most
  4981. users expect the <filename>+=</filename> operator to work.
  4982. </para>
  4983. <para>
  4984. When you use this variable, it is best to use it as follows:
  4985. <literallayout class='monospaced'>
  4986. IMAGE_INSTALL_append = " <replaceable>package-name</replaceable>"
  4987. </literallayout>
  4988. Be sure to include the space between the quotation character
  4989. and the start of the package name or names.
  4990. </para>
  4991. </glossdef>
  4992. </glossentry>
  4993. <glossentry id='var-IMAGE_LINGUAS'><glossterm>IMAGE_LINGUAS</glossterm>
  4994. <info>
  4995. IMAGE_LINGUAS[doc] = "Specifies the list of locales to install into the image during the root filesystem construction process."
  4996. </info>
  4997. <glossdef>
  4998. <para role="glossdeffirst">
  4999. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5000. Specifies the list of locales to install into the image
  5001. during the root filesystem construction process.
  5002. The OpenEmbedded build system automatically splits locale
  5003. files, which are used for localization, into separate
  5004. packages.
  5005. Setting the <filename>IMAGE_LINGUAS</filename> variable
  5006. ensures that any locale packages that correspond to packages
  5007. already selected for installation into the image are also
  5008. installed.
  5009. Here is an example:
  5010. <literallayout class='monospaced'>
  5011. IMAGE_LINGUAS = "pt-br de-de"
  5012. </literallayout>
  5013. </para>
  5014. <para>
  5015. In this example, the build system ensures any Brazilian
  5016. Portuguese and German locale files that correspond to
  5017. packages in the image are installed (i.e.
  5018. <filename>*-locale-pt-br</filename>
  5019. and <filename>*-locale-de-de</filename> as well as
  5020. <filename>*-locale-pt</filename>
  5021. and <filename>*-locale-de</filename>, since some software
  5022. packages only provide locale files by language and not by
  5023. country-specific language).
  5024. </para>
  5025. <para>
  5026. See the
  5027. <link linkend='var-GLIBC_GENERATE_LOCALES'><filename>GLIBC_GENERATE_LOCALES</filename></link>
  5028. variable for information on generating GLIBC locales.
  5029. </para>
  5030. </glossdef>
  5031. </glossentry>
  5032. <glossentry id='var-IMAGE_MANIFEST'><glossterm>IMAGE_MANIFEST</glossterm>
  5033. <info>
  5034. IMAGE_MANIFEST[doc] = "The manifest file for the image. This file lists all the installed packages that make up the image."
  5035. </info>
  5036. <glossdef>
  5037. <para role="glossdeffirst">
  5038. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5039. The manifest file for the image.
  5040. This file lists all the installed packages that make up
  5041. the image.
  5042. The file contains package information on a line-per-package
  5043. basis as follows:
  5044. <literallayout class='monospaced'>
  5045. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  5046. </literallayout>
  5047. </para>
  5048. <para>
  5049. The
  5050. <link linkend='ref-classes-image'><filename>image</filename></link>
  5051. class defines the manifest file as follows:
  5052. <literallayout class='monospaced'>
  5053. IMAGE_MANIFEST = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest"
  5054. </literallayout>
  5055. The location is derived using the
  5056. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>
  5057. and
  5058. <link linkend='var-IMAGE_NAME'><filename>IMAGE_NAME</filename></link>
  5059. variables.
  5060. You can find information on how the image
  5061. is created in the
  5062. "<link linkend='image-generation-dev-environment'>Image Generation</link>"
  5063. section.
  5064. </para>
  5065. </glossdef>
  5066. </glossentry>
  5067. <glossentry id='var-IMAGE_NAME'><glossterm>IMAGE_NAME</glossterm>
  5068. <info>
  5069. IMAGE_NAME[doc] = "The name of the output image files minus the extension."
  5070. </info>
  5071. <glossdef>
  5072. <para role="glossdeffirst">
  5073. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5074. The name of the output image files minus the extension.
  5075. This variable is derived using the
  5076. <link linkend='var-IMAGE_BASENAME'><filename>IMAGE_BASENAME</filename></link>,
  5077. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>,
  5078. and
  5079. <link linkend='var-DATETIME'><filename>DATETIME</filename></link>
  5080. variables:
  5081. <literallayout class='monospaced'>
  5082. IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}"
  5083. </literallayout>
  5084. </para>
  5085. </glossdef>
  5086. </glossentry>
  5087. <glossentry id='var-IMAGE_OVERHEAD_FACTOR'><glossterm>IMAGE_OVERHEAD_FACTOR</glossterm>
  5088. <info>
  5089. IMAGE_OVERHEAD_FACTOR[doc] = "Defines a multiplier that the build system applies to the initial image size for cases when the multiplier times the returned disk usage value for the image is greater than the sum of IMAGE_ROOTFS_SIZE and IMAGE_ROOTFS_EXTRA_SPACE."
  5090. </info>
  5091. <glossdef>
  5092. <para role="glossdeffirst">
  5093. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5094. Defines a multiplier that the build system applies to the initial image
  5095. size for cases when the multiplier times the returned disk usage value
  5096. for the image is greater than the sum of
  5097. <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>
  5098. and
  5099. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>.
  5100. The result of the multiplier applied to the initial image size creates
  5101. free disk space in the image as overhead.
  5102. By default, the build process uses a multiplier of 1.3 for this variable.
  5103. This default value results in 30% free disk space added to the image when this
  5104. method is used to determine the final generated image size.
  5105. You should be aware that post install scripts and the package management
  5106. system uses disk space inside this overhead area.
  5107. Consequently, the multiplier does not produce an image with
  5108. all the theoretical free disk space.
  5109. See <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>
  5110. for information on how the build system determines the overall image size.
  5111. </para>
  5112. <para>
  5113. The default 30% free disk space typically gives the image enough room to boot
  5114. and allows for basic post installs while still leaving a small amount of
  5115. free disk space.
  5116. If 30% free space is inadequate, you can increase the default value.
  5117. For example, the following setting gives you 50% free space added to the image:
  5118. <literallayout class='monospaced'>
  5119. IMAGE_OVERHEAD_FACTOR = "1.5"
  5120. </literallayout>
  5121. </para>
  5122. <para>
  5123. Alternatively, you can ensure a specific amount of free disk space is added
  5124. to the image by using the
  5125. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>
  5126. variable.
  5127. </para>
  5128. </glossdef>
  5129. </glossentry>
  5130. <glossentry id='var-IMAGE_PKGTYPE'><glossterm>IMAGE_PKGTYPE</glossterm>
  5131. <info>
  5132. IMAGE_PKGTYPE[doc] = "Defines the package type (DEB, RPM, IPK, or TAR) used by the OpenEmbedded build system."
  5133. </info>
  5134. <glossdef>
  5135. <para role="glossdeffirst">
  5136. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5137. Defines the package type (DEB, RPM, IPK, or TAR) used
  5138. by the OpenEmbedded build system.
  5139. The variable is defined appropriately by the
  5140. <link linkend='ref-classes-package_deb'><filename>package_deb</filename></link>,
  5141. <link linkend='ref-classes-package_rpm'><filename>package_rpm</filename></link>,
  5142. <link linkend='ref-classes-package_ipk'><filename>package_ipk</filename></link>,
  5143. or
  5144. <link linkend='ref-classes-package_tar'><filename>package_tar</filename></link>
  5145. class.
  5146. <note><title>Warning</title>
  5147. The <filename>package_tar</filename> class is broken
  5148. and is not supported.
  5149. It is recommended that you do not use it.
  5150. </note>
  5151. </para>
  5152. <para>
  5153. The
  5154. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_*</filename></link>
  5155. and
  5156. <link linkend='ref-classes-image'><filename>image</filename></link>
  5157. classes use the <filename>IMAGE_PKGTYPE</filename> for
  5158. packaging up images and SDKs.
  5159. </para>
  5160. <para>
  5161. You should not set the <filename>IMAGE_PKGTYPE</filename>
  5162. manually.
  5163. Rather, the variable is set indirectly through the
  5164. appropriate
  5165. <link linkend='ref-classes-package'><filename>package_*</filename></link>
  5166. class using the
  5167. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  5168. variable.
  5169. The OpenEmbedded build system uses the first package type
  5170. (e.g. DEB, RPM, or IPK) that appears with the variable
  5171. <note>
  5172. Files using the <filename>.tar</filename> format are
  5173. never used as a substitute packaging format for DEB,
  5174. RPM, and IPK formatted files for your image or SDK.
  5175. </note>
  5176. </para>
  5177. </glossdef>
  5178. </glossentry>
  5179. <glossentry id='var-IMAGE_POSTPROCESS_COMMAND'><glossterm>IMAGE_POSTPROCESS_COMMAND</glossterm>
  5180. <info>
  5181. IMAGE_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system has created the final image output files."
  5182. </info>
  5183. <glossdef>
  5184. <para role="glossdeffirst">
  5185. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5186. Specifies a list of functions to call once the
  5187. OpenEmbedded build system has created the final image
  5188. output files.
  5189. You can specify functions separated by semicolons:
  5190. <literallayout class='monospaced'>
  5191. IMAGE_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  5192. </literallayout>
  5193. </para>
  5194. <para>
  5195. If you need to pass the root filesystem path to a command
  5196. within the function, you can use
  5197. <filename>${IMAGE_ROOTFS}</filename>, which points to
  5198. the directory that becomes the root filesystem image.
  5199. See the
  5200. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  5201. variable for more information.
  5202. </para>
  5203. </glossdef>
  5204. </glossentry>
  5205. <glossentry id='var-IMAGE_PREPROCESS_COMMAND'><glossterm>IMAGE_PREPROCESS_COMMAND</glossterm>
  5206. <info>
  5207. IMAGE_PREPROCESS_COMMAND[doc] = "Specifies a list of functions to call before the OpenEmbedded build system has created the final image output files."
  5208. </info>
  5209. <glossdef>
  5210. <para role="glossdeffirst">
  5211. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5212. Specifies a list of functions to call before the
  5213. OpenEmbedded build system has created the final image
  5214. output files.
  5215. You can specify functions separated by semicolons:
  5216. <literallayout class='monospaced'>
  5217. IMAGE_PREPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  5218. </literallayout>
  5219. </para>
  5220. <para>
  5221. If you need to pass the root filesystem path to a command
  5222. within the function, you can use
  5223. <filename>${IMAGE_ROOTFS}</filename>, which points to
  5224. the directory that becomes the root filesystem image.
  5225. See the
  5226. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  5227. variable for more information.
  5228. </para>
  5229. </glossdef>
  5230. </glossentry>
  5231. <glossentry id='var-IMAGE_ROOTFS'><glossterm>IMAGE_ROOTFS</glossterm>
  5232. <info>
  5233. IMAGE_ROOTFS[doc] = "The location of the root filesystem while it is under construction (i.e. during do_rootfs)."
  5234. </info>
  5235. <glossdef>
  5236. <para role="glossdeffirst">
  5237. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5238. The location of the root filesystem while it is under
  5239. construction (i.e. during the
  5240. <link linkend='ref-tasks-rootfs'><filename>do_rootfs</filename></link>
  5241. task).
  5242. This variable is not configurable.
  5243. Do not change it.
  5244. </para>
  5245. </glossdef>
  5246. </glossentry>
  5247. <glossentry id='var-IMAGE_ROOTFS_ALIGNMENT'><glossterm>IMAGE_ROOTFS_ALIGNMENT</glossterm>
  5248. <info>
  5249. IMAGE_ROOTFS_ALIGNMENT[doc] = "Specifies the alignment for the output image file in Kbytes."
  5250. </info>
  5251. <glossdef>
  5252. <para role="glossdeffirst">
  5253. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5254. Specifies the alignment for the output image file in
  5255. Kbytes.
  5256. If the size of the image is not a multiple of
  5257. this value, then the size is rounded up to the nearest
  5258. multiple of the value.
  5259. The default value is "1".
  5260. See
  5261. <link linkend='var-IMAGE_ROOTFS_SIZE'><filename>IMAGE_ROOTFS_SIZE</filename></link>
  5262. for additional information.
  5263. </para>
  5264. </glossdef>
  5265. </glossentry>
  5266. <glossentry id='var-IMAGE_ROOTFS_EXTRA_SPACE'><glossterm>IMAGE_ROOTFS_EXTRA_SPACE</glossterm>
  5267. <info>
  5268. IMAGE_ROOTFS_EXTRA_SPACE[doc] = "Defines additional free disk space created in the image in Kbytes. By default, this variable is set to '0'."
  5269. </info>
  5270. <glossdef>
  5271. <para role="glossdeffirst">
  5272. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5273. Defines additional free disk space created in the image in Kbytes.
  5274. By default, this variable is set to "0".
  5275. This free disk space is added to the image after the build system determines
  5276. the image size as described in
  5277. <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>.
  5278. </para>
  5279. <para>
  5280. This variable is particularly useful when you want to ensure that a
  5281. specific amount of free disk space is available on a device after an image
  5282. is installed and running.
  5283. For example, to be sure 5 Gbytes of free disk space is available, set the
  5284. variable as follows:
  5285. <literallayout class='monospaced'>
  5286. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  5287. </literallayout>
  5288. </para>
  5289. <para>
  5290. For example, the Yocto Project Build Appliance specifically requests 40 Gbytes
  5291. of extra space with the line:
  5292. <literallayout class='monospaced'>
  5293. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  5294. </literallayout>
  5295. </para>
  5296. </glossdef>
  5297. </glossentry>
  5298. <glossentry id='var-IMAGE_ROOTFS_SIZE'><glossterm>IMAGE_ROOTFS_SIZE</glossterm>
  5299. <info>
  5300. IMAGE_ROOTFS_SIZE[doc] = "Defines the size in Kbytes for the generated image."
  5301. </info>
  5302. <glossdef>
  5303. <para role="glossdeffirst">
  5304. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5305. Defines the size in Kbytes for the generated image.
  5306. The OpenEmbedded build system determines the final size for the generated
  5307. image using an algorithm that takes into account the initial disk space used
  5308. for the generated image, a requested size for the image, and requested
  5309. additional free disk space to be added to the image.
  5310. Programatically, the build system determines the final size of the
  5311. generated image as follows:
  5312. <literallayout class='monospaced'>
  5313. if (image-du * overhead) &lt; rootfs-size:
  5314. internal-rootfs-size = rootfs-size + xspace
  5315. else:
  5316. internal-rootfs-size = (image-du * overhead) + xspace
  5317. where:
  5318. image-du = Returned value of the du command on
  5319. the image.
  5320. overhead = IMAGE_OVERHEAD_FACTOR
  5321. rootfs-size = IMAGE_ROOTFS_SIZE
  5322. internal-rootfs-size = Initial root filesystem
  5323. size before any modifications.
  5324. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  5325. </literallayout>
  5326. </para>
  5327. <para>
  5328. See the <link linkend='var-IMAGE_OVERHEAD_FACTOR'><filename>IMAGE_OVERHEAD_FACTOR</filename></link>
  5329. and <link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'><filename>IMAGE_ROOTFS_EXTRA_SPACE</filename></link>
  5330. variables for related information.
  5331. <!-- In the above example, <filename>overhead</filename> is defined by the
  5332. <filename><link linkend='var-IMAGE_OVERHEAD_FACTOR'>IMAGE_OVERHEAD_FACTOR</link></filename>
  5333. variable, <filename>xspace</filename> is defined by the
  5334. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>
  5335. variable, and <filename>du</filename> is the results of the disk usage command
  5336. on the initially generated image. -->
  5337. </para>
  5338. </glossdef>
  5339. </glossentry>
  5340. <glossentry id='var-IMAGE_TYPEDEP'><glossterm>IMAGE_TYPEDEP</glossterm>
  5341. <info>
  5342. IMAGE_TYPEDEP[doc] = "Specifies a dependency from one image type on another."
  5343. </info>
  5344. <glossdef>
  5345. <para role="glossdeffirst">
  5346. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5347. Specifies a dependency from one image type on another.
  5348. Here is an example from the
  5349. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  5350. class:
  5351. <literallayout class='monospaced'>
  5352. IMAGE_TYPEDEP_live = "ext3"
  5353. </literallayout>
  5354. </para>
  5355. <para>
  5356. In the previous example, the variable ensures that when
  5357. "live" is listed with the
  5358. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  5359. variable, the OpenEmbedded build system produces an
  5360. <filename>ext3</filename> image first since one of the
  5361. components of the live
  5362. image is an <filename>ext3</filename>
  5363. formatted partition containing the root
  5364. filesystem.
  5365. </para>
  5366. </glossdef>
  5367. </glossentry>
  5368. <glossentry id='var-IMAGE_TYPES'><glossterm>IMAGE_TYPES</glossterm>
  5369. <info>
  5370. IMAGE_TYPES[doc] = "Specifies the complete list of supported image types by default."
  5371. </info>
  5372. <glossdef>
  5373. <para role="glossdeffirst">
  5374. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5375. Specifies the complete list of supported image types
  5376. by default:
  5377. <literallayout class='monospaced'>
  5378. btrfs
  5379. cpio
  5380. cpio.gz
  5381. cpio.lz4
  5382. cpio.lzma
  5383. cpio.xz
  5384. cramfs
  5385. elf
  5386. ext2
  5387. ext2.bz2
  5388. ext2.gz
  5389. ext2.lzma
  5390. ext3
  5391. ext3.gz
  5392. ext4
  5393. ext4.gz
  5394. hdddirect
  5395. hddimg
  5396. iso
  5397. jffs2
  5398. jffs2.sum
  5399. multiubi
  5400. qcow2
  5401. squashfs
  5402. squashfs-lzo
  5403. squashfs-xz
  5404. tar
  5405. tar.bz2
  5406. tar.gz
  5407. tar.lz4
  5408. tar.xz
  5409. ubi
  5410. ubifs
  5411. vdi
  5412. vmdk
  5413. wic
  5414. wic.bz2
  5415. wic.gz
  5416. wic.lzma
  5417. </literallayout>
  5418. </para>
  5419. <para>
  5420. For more information about these types of images, see
  5421. <filename>meta/classes/image_types*.bbclass</filename>
  5422. in the
  5423. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  5424. </para>
  5425. </glossdef>
  5426. </glossentry>
  5427. <glossentry id='var-INC_PR'><glossterm>INC_PR</glossterm>
  5428. <info>
  5429. INC_PR[doc] = "Helps define the recipe revision for recipes that share a common include file."
  5430. </info>
  5431. <glossdef>
  5432. <para role="glossdeffirst">
  5433. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5434. Helps define the recipe revision for recipes that share
  5435. a common <filename>include</filename> file.
  5436. You can think of this variable as part of the recipe revision
  5437. as set from within an include file.
  5438. </para>
  5439. <para>
  5440. Suppose, for example, you have a set of recipes that
  5441. are used across several projects.
  5442. And, within each of those recipes the revision
  5443. (its <link linkend='var-PR'><filename>PR</filename></link>
  5444. value) is set accordingly.
  5445. In this case, when the revision of those recipes changes,
  5446. the burden is on you to find all those recipes and
  5447. be sure that they get changed to reflect the updated
  5448. version of the recipe.
  5449. In this scenario, it can get complicated when recipes
  5450. that are used in many places and provide common functionality
  5451. are upgraded to a new revision.
  5452. </para>
  5453. <para>
  5454. A more efficient way of dealing with this situation is
  5455. to set the <filename>INC_PR</filename> variable inside
  5456. the <filename>include</filename> files that the recipes
  5457. share and then expand the <filename>INC_PR</filename>
  5458. variable within the recipes to help
  5459. define the recipe revision.
  5460. </para>
  5461. <para>
  5462. The following provides an example that shows how to use
  5463. the <filename>INC_PR</filename> variable
  5464. given a common <filename>include</filename> file that
  5465. defines the variable.
  5466. Once the variable is defined in the
  5467. <filename>include</filename> file, you can use the
  5468. variable to set the <filename>PR</filename> values in
  5469. each recipe.
  5470. You will notice that when you set a recipe's
  5471. <filename>PR</filename> you can provide more granular
  5472. revisioning by appending values to the
  5473. <filename>INC_PR</filename> variable:
  5474. <literallayout class='monospaced'>
  5475. recipes-graphics/xorg-font/xorg-font-common.inc:INC_PR = "r2"
  5476. recipes-graphics/xorg-font/encodings_1.0.4.bb:PR = "${INC_PR}.1"
  5477. recipes-graphics/xorg-font/font-util_1.3.0.bb:PR = "${INC_PR}.0"
  5478. recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
  5479. </literallayout>
  5480. The first line of the example establishes the baseline
  5481. revision to be used for all recipes that use the
  5482. <filename>include</filename> file.
  5483. The remaining lines in the example are from individual
  5484. recipes and show how the <filename>PR</filename> value
  5485. is set.
  5486. </para>
  5487. </glossdef>
  5488. </glossentry>
  5489. <glossentry id='var-INCOMPATIBLE_LICENSE'><glossterm>INCOMPATIBLE_LICENSE</glossterm>
  5490. <info>
  5491. INCOMPATIBLE_LICENSE[doc] = "Specifies a space-separated list of license names (as they would appear in LICENSE) that should be excluded from the build."
  5492. </info>
  5493. <glossdef>
  5494. <para role="glossdeffirst">
  5495. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5496. Specifies a space-separated list of license names
  5497. (as they would appear in
  5498. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>)
  5499. that should be excluded from the build.
  5500. Recipes that provide no alternatives to listed incompatible
  5501. licenses are not built.
  5502. Packages that are individually licensed with the specified
  5503. incompatible licenses will be deleted.
  5504. </para>
  5505. <note>
  5506. This functionality is only regularly tested using
  5507. the following setting:
  5508. <literallayout class='monospaced'>
  5509. INCOMPATIBLE_LICENSE = "GPL-3.0 LGPL-3.0 AGPL-3.0"
  5510. </literallayout>
  5511. Although you can use other settings, you might be required
  5512. to remove dependencies on or provide alternatives to
  5513. components that are required to produce a functional system
  5514. image.
  5515. </note>
  5516. </glossdef>
  5517. </glossentry>
  5518. <glossentry id='var-INHERIT'><glossterm>INHERIT</glossterm>
  5519. <info>
  5520. INHERIT[doc] = "Causes the named class to be inherited at this point during parsing. The variable is only valid in configuration files."
  5521. </info>
  5522. <glossdef>
  5523. <para role="glossdeffirst">
  5524. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5525. Causes the named class to be inherited at
  5526. this point during parsing.
  5527. The variable is only valid in configuration files.
  5528. </para>
  5529. </glossdef>
  5530. </glossentry>
  5531. <glossentry id='var-INHERIT_DISTRO'><glossterm>INHERIT_DISTRO</glossterm>
  5532. <info>
  5533. INHERIT_DISTRO[doc] = "Lists classes that will be inherited at the distribution level. It is unlikely that you want to edit this variable."
  5534. </info>
  5535. <glossdef>
  5536. <para role="glossdeffirst">
  5537. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5538. Lists classes that will be inherited at the
  5539. distribution level.
  5540. It is unlikely that you want to edit this variable.
  5541. </para>
  5542. <para>
  5543. The default value of the variable is set as follows in the
  5544. <filename>meta/conf/distro/defaultsetup.conf</filename>
  5545. file:
  5546. <literallayout class='monospaced'>
  5547. INHERIT_DISTRO ?= "debian devshell sstate license"
  5548. </literallayout>
  5549. </para>
  5550. </glossdef>
  5551. </glossentry>
  5552. <glossentry id='var-INHIBIT_DEFAULT_DEPS'><glossterm>INHIBIT_DEFAULT_DEPS</glossterm>
  5553. <info>
  5554. INHIBIT_DEFAULT_DEPS[doc] = "Prevents the default dependencies, namely the C compiler and standard C library (libc), from being added to DEPENDS."
  5555. </info>
  5556. <glossdef>
  5557. <para role="glossdeffirst">
  5558. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5559. Prevents the default dependencies, namely the C compiler
  5560. and standard C library (libc), from being added to
  5561. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>.
  5562. This variable is usually used within recipes that do not
  5563. require any compilation using the C compiler.
  5564. </para>
  5565. <para>
  5566. Set the variable to "1" to prevent the default dependencies
  5567. from being added.
  5568. </para>
  5569. </glossdef>
  5570. </glossentry>
  5571. <glossentry id='var-INHIBIT_PACKAGE_DEBUG_SPLIT'><glossterm>INHIBIT_PACKAGE_DEBUG_SPLIT</glossterm>
  5572. <info>
  5573. INHIBIT_PACKAGE_DEBUG_SPLIT[doc] = "If set to "1", prevents the OpenEmbedded build system from splitting out debug information during packaging"
  5574. </info>
  5575. <glossdef>
  5576. <para role="glossdeffirst">
  5577. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5578. Prevents the OpenEmbedded build system from splitting
  5579. out debug information during packaging.
  5580. By default, the build system splits out debugging
  5581. information during the
  5582. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  5583. task.
  5584. For more information on how debug information is split out,
  5585. see the
  5586. <link linkend='var-PACKAGE_DEBUG_SPLIT_STYLE'><filename>PACKAGE_DEBUG_SPLIT_STYLE</filename></link>
  5587. variable.
  5588. </para>
  5589. <para>
  5590. To prevent the build system from splitting out
  5591. debug information during packaging, set the
  5592. <filename>INHIBIT_PACKAGE_DEBUG_SPLIT</filename> variable
  5593. as follows:
  5594. <literallayout class='monospaced'>
  5595. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  5596. </literallayout>
  5597. </para>
  5598. </glossdef>
  5599. </glossentry>
  5600. <glossentry id='var-INHIBIT_PACKAGE_STRIP'><glossterm>INHIBIT_PACKAGE_STRIP</glossterm>
  5601. <info>
  5602. INHIBIT_PACKAGE_STRIP[doc] = "If set to "1", causes the build to not strip binaries in resulting packages."
  5603. </info>
  5604. <glossdef>
  5605. <para role="glossdeffirst">
  5606. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5607. If set to "1", causes the build to not strip binaries in
  5608. resulting packages and prevents the
  5609. <filename>-dbg</filename> package from containing the
  5610. source files.
  5611. </para>
  5612. <para>
  5613. By default, the OpenEmbedded build system strips
  5614. binaries and puts the debugging symbols into
  5615. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}-dbg</filename>.
  5616. Consequently, you should not set
  5617. <filename>INHIBIT_PACKAGE_STRIP</filename> when you plan
  5618. to debug in general.
  5619. </para>
  5620. </glossdef>
  5621. </glossentry>
  5622. <glossentry id='var-INITRAMFS_FSTYPES'><glossterm>INITRAMFS_FSTYPES</glossterm>
  5623. <info>
  5624. INITRAMFS_FSTYPES[doc] = "Defines the format for the output image of an initial RAM disk (initramfs), which is used during boot."
  5625. </info>
  5626. <glossdef>
  5627. <para role="glossdeffirst">
  5628. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5629. Defines the format for the output image of an initial
  5630. RAM disk (initramfs), which is used during boot.
  5631. Supported formats are the same as those supported by the
  5632. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  5633. variable.
  5634. </para>
  5635. <para>
  5636. The default value of this variable, which is set in the
  5637. <filename>meta/conf/bitbake.conf</filename> configuration
  5638. file in the
  5639. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>,
  5640. is "cpio.gz".
  5641. The Linux kernel's initramfs mechanism, as opposed to the
  5642. initial RAM disk
  5643. <ulink url='https://en.wikipedia.org/wiki/Initrd'>initrd</ulink>
  5644. mechanism, expects an optionally compressed cpio
  5645. archive.
  5646. </para>
  5647. </glossdef>
  5648. </glossentry>
  5649. <glossentry id='var-INITRAMFS_IMAGE'><glossterm>INITRAMFS_IMAGE</glossterm>
  5650. <info>
  5651. INITRAMFS_IMAGE[doc] = "Specifies the PROVIDES name of an image recipe that is used to build an initial RAM disk (initramfs) image."
  5652. </info>
  5653. <glossdef>
  5654. <para role="glossdeffirst">
  5655. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5656. Specifies the
  5657. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  5658. name of an image recipe that is used to build an initial
  5659. RAM disk (initramfs) image.
  5660. An initramfs provides a temporary root filesystem used for
  5661. early system initialization (e.g. loading of modules
  5662. needed to locate and mount the "real" root filesystem).
  5663. The specified recipe is added as a dependency of the root
  5664. filesystem recipe (e.g.
  5665. <filename>core-image-sato</filename>).
  5666. See the <filename>meta/recipes-core/images/core-image-minimal-initramfs.bb</filename>
  5667. recipe in the
  5668. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  5669. for an example initramfs recipe.
  5670. To select this recipe to provide the initramfs,
  5671. set <filename>INITRAMFS_IMAGE</filename> to
  5672. "core-image-minimal-initramfs".
  5673. <note>
  5674. The initramfs image recipe should set
  5675. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  5676. to
  5677. <link linkend='var-INITRAMFS_FSTYPES'><filename>INITRAMFS_FSTYPES</filename></link>.
  5678. </note>
  5679. </para>
  5680. <para>
  5681. You can also find more information by referencing the
  5682. <filename>meta/poky/conf/local.conf.sample.extended</filename>
  5683. configuration file in the
  5684. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>,
  5685. the
  5686. <link linkend='ref-classes-image'><filename>image</filename></link>
  5687. class, and the
  5688. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  5689. class to see how to use the
  5690. <filename>INITRAMFS_IMAGE</filename> variable.
  5691. </para>
  5692. <para>
  5693. If <filename>INITRAMFS_IMAGE</filename> is empty, which is
  5694. the default, then no initramfs is built.
  5695. </para>
  5696. <para>
  5697. Finally, for more information you can also see the
  5698. <link linkend='var-INITRAMFS_IMAGE_BUNDLE'><filename>INITRAMFS_IMAGE_BUNDLE</filename></link>
  5699. variable, which allows the generated image to be bundled
  5700. inside the kernel image.
  5701. </para>
  5702. </glossdef>
  5703. </glossentry>
  5704. <glossentry id='var-INITRAMFS_IMAGE_BUNDLE'><glossterm>INITRAMFS_IMAGE_BUNDLE</glossterm>
  5705. <info>
  5706. INITRAMFS_IMAGE_BUNDLE[doc] = "Controls whether or not the image recipe specified by INITRAMFS_IMAGE is run through an extra pass (do_bundle_initramfs) during kernel compilation in order to build a single binary that contains both the kernel image and the initial RAM disk (initramfs)."
  5707. </info>
  5708. <glossdef>
  5709. <para role="glossdeffirst">
  5710. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5711. Controls whether or not the image recipe specified by
  5712. <link linkend='var-INITRAMFS_IMAGE'><filename>INITRAMFS_IMAGE</filename></link>
  5713. is run through an extra pass
  5714. (<link linkend='ref-tasks-bundle_initramfs'><filename>do_bundle_initramfs</filename></link>)
  5715. during kernel compilation in order to build a single binary
  5716. that contains both the kernel image and the initial RAM disk
  5717. (initramfs).
  5718. This makes use of the
  5719. <link linkend='var-CONFIG_INITRAMFS_SOURCE'><filename>CONFIG_INITRAMFS_SOURCE</filename></link>
  5720. kernel feature.
  5721. <note>
  5722. Using an extra compilation pass to bundle the initramfs
  5723. avoids a circular dependency between the kernel recipe and
  5724. the initramfs recipe should the initramfs include kernel
  5725. modules.
  5726. Should that be the case, the initramfs recipe depends on
  5727. the kernel for the kernel modules, and the kernel depends
  5728. on the initramfs recipe since the initramfs is bundled
  5729. inside the kernel image.
  5730. </note>
  5731. </para>
  5732. <para>
  5733. The combined binary is deposited into the
  5734. <filename>tmp/deploy</filename> directory, which is part
  5735. of the
  5736. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  5737. </para>
  5738. <para>
  5739. Setting the variable to "1" in a configuration file causes the
  5740. OpenEmbedded build system to generate a kernel image with the
  5741. initramfs specified in
  5742. <link linkend='var-INITRAMFS_IMAGE'><filename>INITRAMFS_IMAGE</filename></link>
  5743. bundled within:
  5744. <literallayout class='monospaced'>
  5745. INITRAMFS_IMAGE_BUNDLE = "1"
  5746. </literallayout>
  5747. By default, the
  5748. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  5749. class sets this variable to a null string as follows:
  5750. <literallayout class='monospaced'>
  5751. INITRAMFS_IMAGE_BUNDLE ?= ""
  5752. </literallayout>
  5753. <note>
  5754. You must set the
  5755. <filename>INITRAMFS_IMAGE_BUNDLE</filename> variable in
  5756. a configuration file.
  5757. You cannot set the variable in a recipe file.
  5758. </note>
  5759. See the
  5760. <ulink url='&YOCTO_GIT_URL;/cgit/cgit.cgi/poky/tree/meta-poky/conf/local.conf.sample.extended'><filename>local.conf.sample.extended</filename></ulink>
  5761. file for additional information.
  5762. </para>
  5763. </glossdef>
  5764. </glossentry>
  5765. <glossentry id='var-INITRD'><glossterm>INITRD</glossterm>
  5766. <info>
  5767. INITRD[doc] = "Indicates a list of filesystem images to concatenate and use as an initial RAM disk (initrd)."
  5768. </info>
  5769. <glossdef>
  5770. <para role="glossdeffirst">
  5771. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5772. Indicates list of filesystem images to concatenate and use
  5773. as an initial RAM disk (<filename>initrd</filename>).
  5774. </para>
  5775. <para>
  5776. The <filename>INITRD</filename> variable is an optional
  5777. variable used with the
  5778. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  5779. class.
  5780. </para>
  5781. </glossdef>
  5782. </glossentry>
  5783. <glossentry id='var-INITRD_IMAGE'><glossterm>INITRD_IMAGE</glossterm>
  5784. <info>
  5785. INITRD_IMAGE[doc] = "When building a "live" bootable image (i.e. when IMAGE_FSTYPES contains "live"), INITRD_IMAGE specifies the image recipe that should be built to provide the initial RAM disk image."
  5786. </info>
  5787. <glossdef>
  5788. <para role="glossdeffirst">
  5789. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5790. When building a "live" bootable image (i.e. when
  5791. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  5792. contains "live"), <filename>INITRD_IMAGE</filename>
  5793. specifies the image recipe that should be built
  5794. to provide the initial RAM disk image.
  5795. The default value is "core-image-minimal-initramfs".
  5796. </para>
  5797. <para>
  5798. See the
  5799. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  5800. class for more information.
  5801. </para>
  5802. </glossdef>
  5803. </glossentry>
  5804. <glossentry id='var-INITSCRIPT_NAME'><glossterm>INITSCRIPT_NAME</glossterm>
  5805. <info>
  5806. INITSCRIPT_NAME[doc] = "The filename of the initialization script as installed to ${sysconfdir}/init.d."
  5807. </info>
  5808. <glossdef>
  5809. <para role="glossdeffirst">
  5810. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5811. The filename of the initialization script as installed to
  5812. <filename>${sysconfdir}/init.d</filename>.
  5813. </para>
  5814. <para>
  5815. This variable is used in recipes when using <filename>update-rc.d.bbclass</filename>.
  5816. The variable is mandatory.
  5817. </para>
  5818. </glossdef>
  5819. </glossentry>
  5820. <glossentry id='var-INITSCRIPT_PACKAGES'><glossterm>INITSCRIPT_PACKAGES</glossterm>
  5821. <info>
  5822. INITSCRIPT_PACKAGES[doc] = "A list of the packages that contain initscripts. This variable is used in recipes when using update-rc.d.bbclass. The variable is optional and defaults to the PN variable."
  5823. </info>
  5824. <glossdef>
  5825. <para role="glossdeffirst">
  5826. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5827. A list of the packages that contain initscripts.
  5828. If multiple packages are specified, you need to append the package name
  5829. to the other <filename>INITSCRIPT_*</filename> as an override.
  5830. </para>
  5831. <para>
  5832. This variable is used in recipes when using <filename>update-rc.d.bbclass</filename>.
  5833. The variable is optional and defaults to the
  5834. <link linkend='var-PN'><filename>PN</filename></link> variable.
  5835. </para>
  5836. </glossdef>
  5837. </glossentry>
  5838. <glossentry id='var-INITSCRIPT_PARAMS'><glossterm>INITSCRIPT_PARAMS</glossterm>
  5839. <info>
  5840. INITSCRIPT_PARAMS[doc] = "Specifies the options to pass to update-rc.d. The variable is mandatory and is used in recipes when using update-rc.d.bbclass."
  5841. </info>
  5842. <glossdef>
  5843. <para role="glossdeffirst">
  5844. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5845. Specifies the options to pass to <filename>update-rc.d</filename>.
  5846. Here is an example:
  5847. <literallayout class='monospaced'>
  5848. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  5849. </literallayout>
  5850. </para>
  5851. <para>
  5852. In this example, the script has a runlevel of 99,
  5853. starts the script in initlevels 2 and 5, and
  5854. stops the script in levels 0, 1 and 6.
  5855. </para>
  5856. <para>
  5857. The variable's default value is "defaults", which is
  5858. set in the
  5859. <link linkend='ref-classes-update-rc.d'><filename>update-rc.d</filename></link>
  5860. class.
  5861. </para>
  5862. <para>
  5863. The value in
  5864. <filename>INITSCRIPT_PARAMS</filename> is passed through
  5865. to the <filename>update-rc.d</filename> command.
  5866. For more information on valid parameters, please see the
  5867. <filename>update-rc.d</filename> manual page at
  5868. <ulink url='http://www.tin.org/bin/man.cgi?section=8&amp;topic=update-rc.d'></ulink>.
  5869. </para>
  5870. </glossdef>
  5871. </glossentry>
  5872. <glossentry id='var-INSANE_SKIP'><glossterm>INSANE_SKIP</glossterm>
  5873. <info>
  5874. INSANE_SKIP[doc] = "Specifies the QA checks to skip for a specific package within a recipe."
  5875. </info>
  5876. <glossdef>
  5877. <para role="glossdeffirst">
  5878. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5879. Specifies the QA checks to skip for a specific package
  5880. within a recipe.
  5881. For example, to skip the check for symbolic link
  5882. <filename>.so</filename> files in the main package of a
  5883. recipe, add the following to the recipe.
  5884. The package name override must be used, which in this
  5885. example is <filename>${PN}</filename>:
  5886. <literallayout class='monospaced'>
  5887. INSANE_SKIP_${PN} += "dev-so"
  5888. </literallayout>
  5889. </para>
  5890. <para>
  5891. See the "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  5892. section for a list of the valid QA checks you can
  5893. specify using this variable.
  5894. </para>
  5895. </glossdef>
  5896. </glossentry>
  5897. <glossentry id='var-INSTALL_TIMEZONE_FILE'><glossterm>INSTALL_TIMEZONE_FILE</glossterm>
  5898. <info>
  5899. INSTALL_TIMEZONE_FILE[doc] = "Enables installation of the /etc/timezone file."
  5900. </info>
  5901. <glossdef>
  5902. <para role="glossdeffirst">
  5903. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5904. By default, the <filename>tzdata</filename> recipe packages
  5905. an <filename>/etc/timezone</filename> file.
  5906. Set the <filename>INSTALL_TIMEZONE_FILE</filename>
  5907. variable to "0" at the configuration level to disable this
  5908. behavior.
  5909. </para>
  5910. </glossdef>
  5911. </glossentry>
  5912. <glossentry id='var-IPK_FEED_URIS'><glossterm>IPK_FEED_URIS</glossterm>
  5913. <info>
  5914. IPK_FEED_URIS[doc] = "List of ipkg feed records to put into generated image."
  5915. </info>
  5916. <glossdef>
  5917. <para role="glossdeffirst">
  5918. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5919. When the IPK backend is in use and package management
  5920. is enabled on the target, you can use this variable to
  5921. set up <filename>opkg</filename> in the target image
  5922. to point to package feeds on a nominated server.
  5923. Once the feed is established, you can perform
  5924. installations or upgrades using the package manager
  5925. at runtime.
  5926. </para>
  5927. </glossdef>
  5928. </glossentry>
  5929. <!--
  5930. <glossentry id='var-INTERCEPT_DIR'><glossterm>INTERCEPT_DIR</glossterm>
  5931. <glossdef>
  5932. <para>
  5933. An environment variable that defines the directory where
  5934. post installation hooks are installed for the
  5935. post install environment.
  5936. This variable is fixed as follows:
  5937. <literallayout class='monospaced'>
  5938. ${WORKDIR}/intercept_scripts
  5939. </literallayout>
  5940. </para>
  5941. <para>
  5942. After installation of a target's root filesystem,
  5943. post installation scripts, which are essentially bash scripts,
  5944. are all executed just a single time.
  5945. Limiting execution of these scripts minimizes installation
  5946. time that would be lengthened due to certain packages
  5947. triggering redundant operations.
  5948. For example, consider the installation of font packages
  5949. as a common example.
  5950. Without limiting the execution of post installation scripts,
  5951. all font directories would be rescanned to create the
  5952. cache after each individual font package was installed.
  5953. </para>
  5954. <para>
  5955. Do not edit the <filename>INTERCEPT_DIR</filename>
  5956. variable.
  5957. </para>
  5958. </glossdef>
  5959. </glossentry>
  5960. -->
  5961. </glossdiv>
  5962. <!-- <glossdiv id='var-glossary-j'><title>J</title>-->
  5963. <!-- </glossdiv>-->
  5964. <glossdiv id='var-glossary-k'><title>K</title>
  5965. <glossentry id='var-KARCH'><glossterm>KARCH</glossterm>
  5966. <info>
  5967. KARCH[doc] = "Defines the kernel architecture used when assembling the configuration. You define the KARCH variable in the BSP Descriptions."
  5968. </info>
  5969. <glossdef>
  5970. <para role="glossdeffirst">
  5971. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5972. Defines the kernel architecture used when assembling
  5973. the configuration.
  5974. Architectures supported for this release are:
  5975. <literallayout class='monospaced'>
  5976. powerpc
  5977. i386
  5978. x86_64
  5979. arm
  5980. qemu
  5981. mips
  5982. </literallayout>
  5983. </para>
  5984. <para>
  5985. You define the <filename>KARCH</filename> variable in the
  5986. <ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#bsp-descriptions'>BSP Descriptions</ulink>.
  5987. </para>
  5988. </glossdef>
  5989. </glossentry>
  5990. <glossentry id='var-KBRANCH'><glossterm>KBRANCH</glossterm>
  5991. <info>
  5992. KBRANCH[doc] = "A regular expression used by the build process to explicitly identify the kernel branch that is validated, patched and configured during a build."
  5993. </info>
  5994. <glossdef>
  5995. <para role="glossdeffirst">
  5996. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5997. A regular expression used by the build process to explicitly
  5998. identify the kernel branch that is validated, patched,
  5999. and configured during a build.
  6000. You must set this variable to ensure the exact kernel
  6001. branch you want is being used by the build process.
  6002. </para>
  6003. <para>
  6004. Values for this variable are set in the kernel's recipe
  6005. file and the kernel's append file.
  6006. For example, if you are using the Yocto Project kernel that
  6007. is based on the Linux 3.14 kernel, the kernel recipe file
  6008. is the
  6009. <filename>meta/recipes-kernel/linux/linux-yocto_3.14.bb</filename>
  6010. file.
  6011. Following is an example for a kernel recipe file:
  6012. <literallayout class='monospaced'>
  6013. KBRANCH ?= "standard/base"
  6014. </literallayout>
  6015. </para>
  6016. <para>
  6017. This variable is also used from the kernel's append file
  6018. to identify the kernel branch specific to a particular
  6019. machine or target hardware.
  6020. The kernel's append file is located in the BSP layer for
  6021. a given machine.
  6022. For example, the kernel append file for the Emenlow BSP is in the
  6023. <filename>meta-intel</filename> Git repository and is named
  6024. <filename>meta-emenlow/recipes-kernel/linux/linux-yocto_3.14.bbappend</filename>.
  6025. Here are the related statements from the append file:
  6026. <literallayout class='monospaced'>
  6027. COMPATIBLE_MACHINE_emenlow-noemgd = "emenlow-noemgd"
  6028. KMACHINE_emenlow-noemgd = "emenlow"
  6029. KBRANCH_emenlow-noemgd = "standard/base"
  6030. KERNEL_FEATURES_append_emenlow-noemgd = " features/drm-gma500/drm-gma500.scc"
  6031. </literallayout>
  6032. The <filename>KBRANCH</filename> statement identifies
  6033. the kernel branch to use when building for the Emenlow
  6034. BSP.
  6035. </para>
  6036. </glossdef>
  6037. </glossentry>
  6038. <glossentry id='var-KBUILD_DEFCONFIG'><glossterm>KBUILD_DEFCONFIG</glossterm>
  6039. <info>
  6040. KBUILD_DEFCONFIG[doc] = "Specifies an "in-tree" kernel configuration file for use during a kernel build."
  6041. </info>
  6042. <glossdef>
  6043. <para role="glossdeffirst">
  6044. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6045. When used with the
  6046. <link linkend='ref-classes-kernel-yocto'><filename>kernel-yocto</filename></link>
  6047. class, specifies an "in-tree" kernel configuration file
  6048. for use during a kernel build.
  6049. </para>
  6050. <para>
  6051. Typically, when using a <filename>defconfig</filename> to
  6052. configure a kernel during a build, you place the
  6053. file in your layer in the same manner as you would
  6054. patch files and configuration fragment files (i.e.
  6055. "out-of-tree").
  6056. However, if you want to use a <filename>defconfig</filename>
  6057. file that is part of the kernel tree (i.e. "in-tree"),
  6058. you can use the
  6059. <filename>KBUILD_DEFCONFIG</filename> variable to point
  6060. to the <filename>defconfig</filename> file.
  6061. </para>
  6062. <para>
  6063. To use the variable, set it in the append file for your
  6064. kernel recipe using the following form:
  6065. <literallayout class='monospaced'>
  6066. KBUILD_DEFCONFIG_<link linkend='var-KMACHINE'>KMACHINE</link> ?= <replaceable>defconfig_file</replaceable>
  6067. </literallayout>
  6068. Here is an example from a "raspberrypi2"
  6069. <filename>KMACHINE</filename> build that uses a
  6070. <filename>defconfig</filename> file named
  6071. "bcm2709_defconfig":
  6072. <literallayout class='monospaced'>
  6073. KBUILD_DEFCONFIG_raspberrypi2 = "bcm2709_defconfig"
  6074. </literallayout>
  6075. As an alternative, you can use the following within your
  6076. append file:
  6077. <literallayout class='monospaced'>
  6078. KBUILD_DEFCONFIG_pn-linux-yocto ?= <replaceable>defconfig_file</replaceable>
  6079. </literallayout>
  6080. For more information on how to use the
  6081. <filename>KBUILD_DEFCONFIG</filename> variable, see the
  6082. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#using-an-in-tree-defconfig-file'>Using an "In-Tree" <filename>defconfig</filename> File</ulink>"
  6083. section.
  6084. </para>
  6085. </glossdef>
  6086. </glossentry>
  6087. <glossentry id='var-KERNEL_ALT_IMAGETYPE'><glossterm>KERNEL_ALT_IMAGETYPE</glossterm>
  6088. <info>
  6089. KERNEL_ALT_IMAGETYPE[doc] = "Specifies an alternate kernel image type for creation."
  6090. </info>
  6091. <glossdef>
  6092. <para role="glossdeffirst">
  6093. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6094. Specifies an alternate kernel image type for creation in
  6095. addition to the kernel image type specified using the
  6096. <link linkend='var-KERNEL_IMAGETYPE'><filename>KERNEL_IMAGETYPE</filename></link>
  6097. variable.
  6098. </para>
  6099. </glossdef>
  6100. </glossentry>
  6101. <glossentry id='var-KERNEL_CLASSES'><glossterm>KERNEL_CLASSES</glossterm>
  6102. <info>
  6103. KERNEL_CLASSES[doc] = "A list of classes defining kernel image types that kernel class should inherit."
  6104. </info>
  6105. <glossdef>
  6106. <para role="glossdeffirst">
  6107. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6108. A list of classes defining kernel image types that the
  6109. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  6110. class should inherit.
  6111. You typically append this variable to enable extended image
  6112. types.
  6113. An example is the "kernel-fitimage", which enables
  6114. fitImage support and resides in
  6115. <filename>meta/classes/kernel-fitimage.bbclass</filename>.
  6116. You can register custom kernel image types with the
  6117. <filename>kernel</filename> class using this variable.
  6118. </para>
  6119. </glossdef>
  6120. </glossentry>
  6121. <glossentry id='var-KERNEL_DEVICETREE'><glossterm>KERNEL_DEVICETREE</glossterm>
  6122. <info>
  6123. KERNEL_DEVICETREE[doc] = "Specifies the name of the generated Linux kernel device tree (i.e. the <filename>.dtb</filename>) file."
  6124. </info>
  6125. <glossdef>
  6126. <para role="glossdeffirst">
  6127. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6128. Specifies the name of the generated Linux kernel device tree
  6129. (i.e. the <filename>.dtb</filename>) file.
  6130. <note>
  6131. Legacy support exists for specifying the full path
  6132. to the device tree.
  6133. However, providing just the <filename>.dtb</filename>
  6134. file is preferred.
  6135. </note>
  6136. In order to use this variable, you must have the include
  6137. files in your kernel recipe:
  6138. <literallayout class='monospaced'>
  6139. require recipes-kernel/linux/linux-dtb.inc
  6140. </literallayout>
  6141. or
  6142. <literallayout class='monospaced'>
  6143. require recipes-kernel/linux/linux-yocto.inc
  6144. </literallayout>
  6145. </para>
  6146. </glossdef>
  6147. </glossentry>
  6148. <glossentry id='var-KERNEL_EXTRA_ARGS'><glossterm>KERNEL_EXTRA_ARGS</glossterm>
  6149. <info>
  6150. KERNEL_EXTRA_ARGS[doc] = "Specifies additional make command-line arguments the OpenEmbedded build system passes on when compiling the kernel."
  6151. </info>
  6152. <glossdef>
  6153. <para role="glossdeffirst">
  6154. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6155. Specifies additional <filename>make</filename>
  6156. command-line arguments the OpenEmbedded build system
  6157. passes on when compiling the kernel.
  6158. </para>
  6159. </glossdef>
  6160. </glossentry>
  6161. <glossentry id='var-KERNEL_FEATURES'><glossterm>KERNEL_FEATURES</glossterm>
  6162. <info>
  6163. KERNEL_FEATURES[doc] = "Includes additional metadata from the Yocto Project kernel Git repository. The metadata you add through this variable includes config fragments and features descriptions."
  6164. </info>
  6165. <glossdef>
  6166. <para role="glossdeffirst">
  6167. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6168. Includes additional metadata from the Yocto Project kernel Git repository.
  6169. In the OpenEmbedded build system, the default Board Support Packages (BSPs)
  6170. <ulink url='&YOCTO_DOCS_DEV_URL;#metadata'>Metadata</ulink>
  6171. is provided through
  6172. the <link linkend='var-KMACHINE'><filename>KMACHINE</filename></link>
  6173. and <link linkend='var-KBRANCH'><filename>KBRANCH</filename></link> variables.
  6174. You can use the <filename>KERNEL_FEATURES</filename> variable to further
  6175. add metadata for all BSPs.
  6176. </para>
  6177. <para>
  6178. The metadata you add through this variable includes config fragments and
  6179. features descriptions,
  6180. which usually includes patches as well as config fragments.
  6181. You typically override the <filename>KERNEL_FEATURES</filename> variable
  6182. for a specific machine.
  6183. In this way, you can provide validated, but optional, sets of kernel
  6184. configurations and features.
  6185. </para>
  6186. <para>
  6187. For example, the following adds <filename>netfilter</filename> to all
  6188. the Yocto Project kernels and adds sound support to the <filename>qemux86</filename>
  6189. machine:
  6190. <literallayout class='monospaced'>
  6191. # Add netfilter to all linux-yocto kernels
  6192. KERNEL_FEATURES="features/netfilter/netfilter.scc"
  6193. # Add sound support to the qemux86 machine
  6194. KERNEL_FEATURES_append_qemux86=" cfg/sound.scc"
  6195. </literallayout></para>
  6196. </glossdef>
  6197. </glossentry>
  6198. <glossentry id='var-KERNEL_IMAGE_BASE_NAME'><glossterm>KERNEL_IMAGE_BASE_NAME</glossterm>
  6199. <info>
  6200. KERNEL_IMAGE_BASE_NAME[doc] = "The base name of the kernel image."
  6201. </info>
  6202. <glossdef>
  6203. <para role="glossdeffirst">
  6204. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6205. The base name of the kernel image.
  6206. This variable is set in the
  6207. <link linkend='ref-classes-kernel'>kernel</link> class
  6208. as follows:
  6209. <literallayout class='monospaced'>
  6210. KERNEL_IMAGE_BASE_NAME ?= "${KERNEL_IMAGETYPE}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
  6211. </literallayout>
  6212. </para>
  6213. <para>
  6214. See the
  6215. <link linkend='var-KERNEL_IMAGETYPE'><filename>KERNEL_IMAGETYPE</filename></link>,
  6216. <link linkend='var-PKGE'><filename>PKGE</filename></link>,
  6217. <link linkend='var-PKGV'><filename>PKGV</filename></link>,
  6218. <link linkend='var-PKGR'><filename>PKGR</filename></link>,
  6219. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>,
  6220. and
  6221. <link linkend='var-DATETIME'><filename>DATETIME</filename></link>
  6222. variables for additional information.
  6223. </para>
  6224. </glossdef>
  6225. </glossentry>
  6226. <glossentry id='var-KERNEL_IMAGE_MAXSIZE'><glossterm>KERNEL_IMAGE_MAXSIZE</glossterm>
  6227. <info>
  6228. KERNEL_IMAGE_MAXSIZE[doc] = "The maximum allowable size in kilobytes of the kernel image file."
  6229. </info>
  6230. <glossdef>
  6231. <para role="glossdeffirst">
  6232. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6233. Specifies the maximum size of the kernel image file in
  6234. kilobytes.
  6235. If <filename>KERNEL_IMAGE_MAXSIZE</filename> is set,
  6236. the size of the kernel image file is checked against
  6237. the set value during the
  6238. <link linkend='ref-tasks-sizecheck'><filename>do_sizecheck</filename></link>
  6239. task.
  6240. The task fails if the kernel image file is larger than
  6241. the setting.
  6242. </para>
  6243. <para>
  6244. <filename>KERNEL_IMAGE_MAXSIZE</filename> is useful for
  6245. target devices that have a limited amount of space in
  6246. which the kernel image must be stored.
  6247. </para>
  6248. <para>
  6249. By default, this variable is not set, which means the
  6250. size of the kernel image is not checked.
  6251. </para>
  6252. </glossdef>
  6253. </glossentry>
  6254. <glossentry id='var-KERNEL_IMAGETYPE'><glossterm>KERNEL_IMAGETYPE</glossterm>
  6255. <info>
  6256. KERNEL_IMAGETYPE[doc] = "The type of kernel to build for a device, usually set by the machine configuration files and defaults to 'zImage'."
  6257. </info>
  6258. <glossdef>
  6259. <para role="glossdeffirst">
  6260. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6261. The type of kernel to build for a device, usually set by the
  6262. machine configuration files and defaults to "zImage".
  6263. This variable is used
  6264. when building the kernel and is passed to <filename>make</filename> as the target to
  6265. build.
  6266. </para>
  6267. <para>
  6268. If you want to build an alternate kernel image type, use the
  6269. <link linkend='var-KERNEL_ALT_IMAGETYPE'><filename>KERNEL_ALT_IMAGETYPE</filename></link>
  6270. variable.
  6271. </para>
  6272. </glossdef>
  6273. </glossentry>
  6274. <glossentry id='var-KERNEL_MODULE_AUTOLOAD'><glossterm>KERNEL_MODULE_AUTOLOAD</glossterm>
  6275. <info>
  6276. KERNEL_MODULE_AUTOLOAD[doc] = "Lists kernel modules that need to be auto-loaded during boot"
  6277. </info>
  6278. <glossdef>
  6279. <para role="glossdeffirst">
  6280. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6281. Lists kernel modules that need to be auto-loaded during
  6282. boot.
  6283. <note>
  6284. This variable replaces the deprecated
  6285. <link linkend='var-module_autoload'><filename>module_autoload</filename></link>
  6286. variable.
  6287. </note>
  6288. </para>
  6289. <para>
  6290. You can use the <filename>KERNEL_MODULE_AUTOLOAD</filename>
  6291. variable anywhere that it can be
  6292. recognized by the kernel recipe or by an out-of-tree kernel
  6293. module recipe (e.g. a machine configuration file, a
  6294. distribution configuration file, an append file for the
  6295. recipe, or the recipe itself).
  6296. </para>
  6297. <para>
  6298. Specify it as follows:
  6299. <literallayout class='monospaced'>
  6300. KERNEL_MODULE_AUTOLOAD += "<replaceable>module_name1</replaceable> <replaceable>module_name2</replaceable> <replaceable>module_name3</replaceable>"
  6301. </literallayout>
  6302. </para>
  6303. <para>
  6304. Including <filename>KERNEL_MODULE_AUTOLOAD</filename> causes
  6305. the OpenEmbedded build system to populate the
  6306. <filename>/etc/modules-load.d/modname.conf</filename>
  6307. file with the list of modules to be auto-loaded on boot.
  6308. The modules appear one-per-line in the file.
  6309. Here is an example of the most common use case:
  6310. <literallayout class='monospaced'>
  6311. KERNEL_MODULE_AUTOLOAD += "<replaceable>module_name</replaceable>"
  6312. </literallayout>
  6313. </para>
  6314. <para>
  6315. For information on how to populate the
  6316. <filename>modname.conf</filename> file with
  6317. <filename>modprobe.d</filename> syntax lines, see the
  6318. <link linkend='var-KERNEL_MODULE_PROBECONF'><filename>KERNEL_MODULE_PROBECONF</filename></link>
  6319. variable.
  6320. </para>
  6321. </glossdef>
  6322. </glossentry>
  6323. <glossentry id='var-KERNEL_MODULE_PROBECONF'><glossterm>KERNEL_MODULE_PROBECONF</glossterm>
  6324. <info>
  6325. KERNEL_MODULE_PROBECONF[doc] = "Lists kernel modules for which the build system expects to find module_conf_* values that specify configuration for each of the modules."
  6326. </info>
  6327. <glossdef>
  6328. <para role="glossdeffirst">
  6329. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6330. Provides a list of modules for which the OpenEmbedded
  6331. build system expects to find
  6332. <filename>module_conf_</filename><replaceable>modname</replaceable>
  6333. values that specify configuration for each of the modules.
  6334. For information on how to provide those module
  6335. configurations, see the
  6336. <link linkend='var-module_conf'><filename>module_conf_*</filename></link>
  6337. variable.
  6338. </para>
  6339. </glossdef>
  6340. </glossentry>
  6341. <glossentry id='var-KERNEL_PATH'><glossterm>KERNEL_PATH</glossterm>
  6342. <info>
  6343. KERNEL_PATH[doc] = "The location of the kernel sources. This variable is set to the value of the STAGING_KERNEL_DIR within the module class (module.bbclass)."
  6344. </info>
  6345. <glossdef>
  6346. <para role="glossdeffirst">
  6347. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6348. The location of the kernel sources.
  6349. This variable is set to the value of the
  6350. <link linkend='var-STAGING_KERNEL_DIR'><filename>STAGING_KERNEL_DIR</filename></link>
  6351. within the
  6352. <link linkend='ref-classes-module'><filename>module</filename></link>
  6353. class.
  6354. For information on how this variable is used, see the
  6355. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#incorporating-out-of-tree-modules'>Incorporating Out-of-Tree Modules</ulink>"
  6356. section.
  6357. </para>
  6358. <para>
  6359. To help maximize compatibility with out-of-tree drivers
  6360. used to build modules, the OpenEmbedded build system also
  6361. recognizes and uses the
  6362. <link linkend='var-KERNEL_SRC'><filename>KERNEL_SRC</filename></link>
  6363. variable, which is identical to the
  6364. <filename>KERNEL_PATH</filename> variable.
  6365. Both variables are common variables used by external
  6366. Makefiles to point to the kernel source directory.
  6367. </para>
  6368. </glossdef>
  6369. </glossentry>
  6370. <glossentry id='var-KERNEL_SRC'><glossterm>KERNEL_SRC</glossterm>
  6371. <info>
  6372. KERNEL_SRC[doc] = "The location of the kernel sources. This variable is set to the value of the STAGING_KERNEL_DIR within the module class (module.bbclass)."
  6373. </info>
  6374. <glossdef>
  6375. <para role="glossdeffirst">
  6376. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6377. The location of the kernel sources.
  6378. This variable is set to the value of the
  6379. <link linkend='var-STAGING_KERNEL_DIR'><filename>STAGING_KERNEL_DIR</filename></link>
  6380. within the
  6381. <link linkend='ref-classes-module'><filename>module</filename></link>
  6382. class.
  6383. For information on how this variable is used, see the
  6384. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#incorporating-out-of-tree-modules'>Incorporating Out-of-Tree Modules</ulink>"
  6385. section.
  6386. </para>
  6387. <para>
  6388. To help maximize compatibility with out-of-tree drivers
  6389. used to build modules, the OpenEmbedded build system also
  6390. recognizes and uses the
  6391. <link linkend='var-KERNEL_PATH'><filename>KERNEL_PATH</filename></link>
  6392. variable, which is identical to the
  6393. <filename>KERNEL_SRC</filename> variable.
  6394. Both variables are common variables used by external
  6395. Makefiles to point to the kernel source directory.
  6396. </para>
  6397. </glossdef>
  6398. </glossentry>
  6399. <glossentry id='var-KERNEL_VERSION'><glossterm>KERNEL_VERSION</glossterm>
  6400. <info>
  6401. KERNEL_VERSION[doc] = "Specifies the version of the kernel as extracted from version.h or utsrelease.h within the kernel sources."
  6402. </info>
  6403. <glossdef>
  6404. <para role="glossdeffirst">
  6405. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6406. Specifies the version of the kernel as extracted from
  6407. <filename>version.h</filename> or
  6408. <filename>utsrelease.h</filename> within the kernel sources.
  6409. Effects of setting this variable do not take affect until
  6410. the kernel has been configured.
  6411. Consequently, attempting to refer to this variable in
  6412. contexts prior to configuration will not work.
  6413. </para>
  6414. </glossdef>
  6415. </glossentry>
  6416. <glossentry id='var-KERNELDEPMODDEPEND'><glossterm>KERNELDEPMODDEPEND</glossterm>
  6417. <info>
  6418. KERNELDEPMODDEPEND[doc] = "Specifies whether or not to use the data referenced through the PKGDATA_DIR directory."
  6419. </info>
  6420. <glossdef>
  6421. <para role="glossdeffirst">
  6422. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6423. Specifies whether the data referenced through
  6424. <link linkend='var-PKGDATA_DIR'><filename>PKGDATA_DIR</filename></link>
  6425. is needed or not.
  6426. The <filename>KERNELDEPMODDEPEND</filename> does not
  6427. control whether or not that data exists,
  6428. but simply whether or not it is used.
  6429. If you do not need to use the data, set the
  6430. <filename>KERNELDEPMODDEPEND</filename> variable in your
  6431. <filename>initramfs</filename> recipe.
  6432. Setting the variable there when the data is not needed
  6433. avoids a potential dependency loop.
  6434. </para>
  6435. </glossdef>
  6436. </glossentry>
  6437. <glossentry id='var-KFEATURE_DESCRIPTION'><glossterm>KFEATURE_DESCRIPTION</glossterm>
  6438. <info>
  6439. KFEATURE_DESCRIPTION[doc] = "Provides a short description of a configuration fragment. You use this variable in the .scc file that describes a configuration fragment file."
  6440. </info>
  6441. <glossdef>
  6442. <para role="glossdeffirst">
  6443. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6444. Provides a short description of a configuration fragment.
  6445. You use this variable in the <filename>.scc</filename>
  6446. file that describes a configuration fragment file.
  6447. Here is the variable used in a file named
  6448. <filename>smp.scc</filename> to describe SMP being
  6449. enabled:
  6450. <literallayout class='monospaced'>
  6451. define KFEATURE_DESCRIPTION "Enable SMP"
  6452. </literallayout>
  6453. </para>
  6454. </glossdef>
  6455. </glossentry>
  6456. <glossentry id='var-KMACHINE'><glossterm>KMACHINE</glossterm>
  6457. <info>
  6458. KMACHINE[doc] = "The machine as known by the kernel."
  6459. </info>
  6460. <glossdef>
  6461. <para role="glossdeffirst">
  6462. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6463. The machine as known by the kernel.
  6464. Sometimes the machine name used by the kernel does not
  6465. match the machine name used by the OpenEmbedded build
  6466. system.
  6467. For example, the machine name that the OpenEmbedded build
  6468. system understands as
  6469. <filename>core2-32-intel-common</filename> goes by a
  6470. different name in the Linux Yocto kernel.
  6471. The kernel understands that machine as
  6472. <filename>intel-core2-32</filename>.
  6473. For cases like these, the <filename>KMACHINE</filename>
  6474. variable maps the kernel machine name to the OpenEmbedded
  6475. build system machine name.
  6476. </para>
  6477. <para>
  6478. These mappings between different names occur in the
  6479. Yocto Linux Kernel's <filename>meta</filename> branch.
  6480. As an example take a look in the
  6481. <filename>common/recipes-kernel/linux/linux-yocto_3.19.bbappend</filename>
  6482. file:
  6483. <literallayout class='monospaced'>
  6484. LINUX_VERSION_core2-32-intel-common = "3.19.0"
  6485. COMPATIBLE_MACHINE_core2-32-intel-common = "${MACHINE}"
  6486. SRCREV_meta_core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  6487. SRCREV_machine_core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  6488. KMACHINE_core2-32-intel-common = "intel-core2-32"
  6489. KBRANCH_core2-32-intel-common = "standard/base"
  6490. KERNEL_FEATURES_append_core2-32-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}"
  6491. </literallayout>
  6492. The <filename>KMACHINE</filename> statement says that
  6493. the kernel understands the machine name as
  6494. "intel-core2-32".
  6495. However, the OpenEmbedded build system understands the
  6496. machine as "core2-32-intel-common".
  6497. </para>
  6498. </glossdef>
  6499. </glossentry>
  6500. <glossentry id='var-KTYPE'><glossterm>KTYPE</glossterm>
  6501. <info>
  6502. KTYPE[doc] = "Defines the kernel type to be used in assembling the configuration."
  6503. </info>
  6504. <glossdef>
  6505. <para role="glossdeffirst">
  6506. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6507. Defines the kernel type to be used in assembling the
  6508. configuration.
  6509. The linux-yocto recipes define "standard", "tiny",
  6510. and "preempt-rt" kernel types.
  6511. See the
  6512. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#kernel-types'>Kernel Types</ulink>"
  6513. section in the Yocto Project Linux Kernel Development
  6514. Manual for more information on kernel types.
  6515. </para>
  6516. <para>
  6517. You define the <filename>KTYPE</filename> variable in the
  6518. <ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#bsp-descriptions'>BSP Descriptions</ulink>.
  6519. The value you use must match the value used for the
  6520. <link linkend='var-LINUX_KERNEL_TYPE'><filename>LINUX_KERNEL_TYPE</filename></link>
  6521. value used by the kernel recipe.
  6522. </para>
  6523. </glossdef>
  6524. </glossentry>
  6525. </glossdiv>
  6526. <glossdiv id='var-glossary-l'><title>L</title>
  6527. <glossentry id='var-LABELS'><glossterm>LABELS</glossterm>
  6528. <info>
  6529. LABELS[doc] = "Provides a list of targets for automatic configuration."
  6530. </info>
  6531. <glossdef>
  6532. <para role="glossdeffirst">
  6533. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6534. Provides a list of targets for automatic configuration.
  6535. </para>
  6536. <para>
  6537. See the
  6538. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  6539. class for more information on how this variable is used.
  6540. </para>
  6541. </glossdef>
  6542. </glossentry>
  6543. <glossentry id='var-LAYERDEPENDS'><glossterm>LAYERDEPENDS</glossterm>
  6544. <info>
  6545. LAYERDEPENDS[doc] = "Lists the layers, separated by spaces, upon which this recipe depends. This variable is used in the conf/layer.conf file and must be suffixed with the name of the specific layer."
  6546. </info>
  6547. <glossdef>
  6548. <para role="glossdeffirst">
  6549. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6550. Lists the layers that this recipe depends upon, separated by spaces.
  6551. Optionally, you can specify a specific layer version for a dependency
  6552. by adding it to the end of the layer name with a colon, (e.g. "anotherlayer:3"
  6553. to be compared against
  6554. <link linkend='var-LAYERVERSION'><filename>LAYERVERSION</filename></link><filename>_anotherlayer</filename>
  6555. in this case).
  6556. An error will be produced if any dependency is missing or
  6557. the version numbers do not match exactly (if specified).
  6558. This variable is used in the <filename>conf/layer.conf</filename> file
  6559. and must be suffixed with the name of the specific layer (e.g.
  6560. <filename>LAYERDEPENDS_mylayer</filename>).
  6561. </para>
  6562. </glossdef>
  6563. </glossentry>
  6564. <glossentry id='var-LAYERDIR'><glossterm>LAYERDIR</glossterm>
  6565. <info>
  6566. LAYERDIR[doc] = "When used inside the layer.conf configuration file, this variable provides the path of the current layer."
  6567. </info>
  6568. <glossdef>
  6569. <para role="glossdeffirst">
  6570. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6571. When used inside the <filename>layer.conf</filename> configuration
  6572. file, this variable provides the path of the current layer.
  6573. This variable is not available outside of <filename>layer.conf</filename>
  6574. and references are expanded immediately when parsing of the file completes.
  6575. </para>
  6576. </glossdef>
  6577. </glossentry>
  6578. <glossentry id='var-LAYERVERSION'><glossterm>LAYERVERSION</glossterm>
  6579. <info>
  6580. LAYERVERSION[doc] = "Optionally specifies the version of a layer as a single number. This variable is used in the conf/layer.conf file and must be suffixed with the name of the specific layer."
  6581. </info>
  6582. <glossdef>
  6583. <para role="glossdeffirst">
  6584. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6585. Optionally specifies the version of a layer as a single number.
  6586. You can use this within
  6587. <link linkend='var-LAYERDEPENDS'><filename>LAYERDEPENDS</filename></link>
  6588. for another layer in order to depend on a specific version
  6589. of the layer.
  6590. This variable is used in the <filename>conf/layer.conf</filename> file
  6591. and must be suffixed with the name of the specific layer (e.g.
  6592. <filename>LAYERVERSION_mylayer</filename>).
  6593. </para>
  6594. </glossdef>
  6595. </glossentry>
  6596. <glossentry id='var-LD'><glossterm>LD</glossterm>
  6597. <info>
  6598. LD[doc] = "Minimal command and arguments to run the linker."
  6599. </info>
  6600. <glossdef>
  6601. <para role="glossdeffirst">
  6602. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6603. The minimal command and arguments used to run the
  6604. linker.
  6605. </para>
  6606. </glossdef>
  6607. </glossentry>
  6608. <glossentry id='var-LDFLAGS'><glossterm>LDFLAGS</glossterm>
  6609. <info>
  6610. LDFLAGS[doc] = "Specifies the flags to pass to the linker."
  6611. </info>
  6612. <glossdef>
  6613. <para role="glossdeffirst">
  6614. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6615. Specifies the flags to pass to the linker.
  6616. This variable is exported to an environment
  6617. variable and thus made visible to the software being
  6618. built during the compilation step.
  6619. </para>
  6620. <para>
  6621. Default initialization for <filename>LDFLAGS</filename>
  6622. varies depending on what is being built:
  6623. <itemizedlist>
  6624. <listitem><para>
  6625. <link linkend='var-TARGET_LDFLAGS'><filename>TARGET_LDFLAGS</filename></link>
  6626. when building for the target
  6627. </para></listitem>
  6628. <listitem><para>
  6629. <link linkend='var-BUILD_LDFLAGS'><filename>BUILD_LDFLAGS</filename></link>
  6630. when building for the build host (i.e.
  6631. <filename>-native</filename>)
  6632. </para></listitem>
  6633. <listitem><para>
  6634. <link linkend='var-BUILDSDK_LDFLAGS'><filename>BUILDSDK_LDFLAGS</filename></link>
  6635. when building for an SDK (i.e.
  6636. <filename>nativesdk-</filename>)
  6637. </para></listitem>
  6638. </itemizedlist>
  6639. </para>
  6640. </glossdef>
  6641. </glossentry>
  6642. <glossentry id='var-LEAD_SONAME'><glossterm>LEAD_SONAME</glossterm>
  6643. <info>
  6644. LEAD_SONAME[doc] = "Specifies the lead (or primary) compiled library file (.so) that the debian class applies its naming policy to given a recipe that packages multiple libraries."
  6645. </info>
  6646. <glossdef>
  6647. <para role="glossdeffirst">
  6648. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6649. Specifies the lead (or primary) compiled library file
  6650. (<filename>.so</filename>) that the
  6651. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  6652. class applies its naming policy to given a recipe that
  6653. packages multiple libraries.
  6654. </para>
  6655. <para>
  6656. This variable works in conjunction with the
  6657. <filename>debian</filename> class.
  6658. </para>
  6659. </glossdef>
  6660. </glossentry>
  6661. <glossentry id='var-LIC_FILES_CHKSUM'><glossterm>LIC_FILES_CHKSUM</glossterm>
  6662. <info>
  6663. LIC_FILES_CHKSUM[doc] = "Checksums of the license text in the recipe source code."
  6664. </info>
  6665. <glossdef>
  6666. <para role="glossdeffirst">
  6667. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6668. Checksums of the license text in the recipe source code.
  6669. </para>
  6670. <para>
  6671. This variable tracks changes in license text of the source
  6672. code files.
  6673. If the license text is changed, it will trigger a build
  6674. failure, which gives the developer an opportunity to review any
  6675. license change.
  6676. </para>
  6677. <para>
  6678. This variable must be defined for all recipes (unless
  6679. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  6680. is set to "CLOSED").</para>
  6681. <para>For more information, see the
  6682. "<link linkend='usingpoky-configuring-LIC_FILES_CHKSUM'>
  6683. Tracking License Changes</link>" section.
  6684. </para>
  6685. </glossdef>
  6686. </glossentry>
  6687. <glossentry id='var-LICENSE'><glossterm>LICENSE</glossterm>
  6688. <info>
  6689. LICENSE[doc] = "The list of source licenses for the recipe. The logical operators &amp;, '|', and parentheses can be used."
  6690. </info>
  6691. <glossdef>
  6692. <para role="glossdeffirst">
  6693. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6694. The list of source licenses for the recipe.
  6695. Follow these rules:
  6696. <itemizedlist>
  6697. <listitem><para>Do not use spaces within individual
  6698. license names.</para></listitem>
  6699. <listitem><para>Separate license names using
  6700. | (pipe) when there is a choice between licenses.
  6701. </para></listitem>
  6702. <listitem><para>Separate license names using
  6703. &amp; (ampersand) when multiple licenses exist
  6704. that cover different parts of the source.
  6705. </para></listitem>
  6706. <listitem><para>You can use spaces between license
  6707. names.</para></listitem>
  6708. <listitem><para>For standard licenses, use the names
  6709. of the files in
  6710. <filename>meta/files/common-licenses/</filename>
  6711. or the
  6712. <link linkend='var-SPDXLICENSEMAP'><filename>SPDXLICENSEMAP</filename></link>
  6713. flag names defined in
  6714. <filename>meta/conf/licenses.conf</filename>.
  6715. </para></listitem>
  6716. </itemizedlist>
  6717. </para>
  6718. <para>
  6719. Here are some examples:
  6720. <literallayout class='monospaced'>
  6721. LICENSE = "LGPLv2.1 | GPLv3"
  6722. LICENSE = "MPL-1 &amp; LGPLv2.1"
  6723. LICENSE = "GPLv2+"
  6724. </literallayout>
  6725. The first example is from the recipes for Qt, which the user
  6726. may choose to distribute under either the LGPL version
  6727. 2.1 or GPL version 3.
  6728. The second example is from Cairo where two licenses cover
  6729. different parts of the source code.
  6730. The final example is from <filename>sysstat</filename>,
  6731. which presents a single license.
  6732. </para>
  6733. <para>
  6734. You can also specify licenses on a per-package basis to
  6735. handle situations where components of the output have
  6736. different licenses.
  6737. For example, a piece of software whose code is
  6738. licensed under GPLv2 but has accompanying documentation
  6739. licensed under the GNU Free Documentation License 1.2 could
  6740. be specified as follows:
  6741. <literallayout class='monospaced'>
  6742. LICENSE = "GFDL-1.2 &amp; GPLv2"
  6743. LICENSE_${PN} = "GPLv2"
  6744. LICENSE_${PN}-doc = "GFDL-1.2"
  6745. </literallayout>
  6746. </para>
  6747. </glossdef>
  6748. </glossentry>
  6749. <glossentry id='var-LICENSE_CREATE_PACKAGE'><glossterm>LICENSE_CREATE_PACKAGE</glossterm>
  6750. <info>
  6751. LICENSE_CREATE_PACKAGE[doc] = "Creates an extra package (i.e. ${PN}-lic) for each recipe and adds that package to the RRECOMMENDS+${PN}."
  6752. </info>
  6753. <glossdef>
  6754. <para role="glossdeffirst">
  6755. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6756. Setting <filename>LICENSE_CREATE_PACKAGE</filename>
  6757. to "1" causes the OpenEmbedded build system to create
  6758. an extra package (i.e.
  6759. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}-lic</filename>)
  6760. for each recipe and to add those packages to the
  6761. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link><filename>_${PN}</filename>.
  6762. </para>
  6763. <para>
  6764. The <filename>${PN}-lic</filename> package installs a
  6765. directory in <filename>/usr/share/licenses</filename>
  6766. named <filename>${PN}</filename>, which is the recipe's
  6767. base name, and installs files in that directory that
  6768. contain license and copyright information (i.e. copies of
  6769. the appropriate license files from
  6770. <filename>meta/common-licenses</filename> that match the
  6771. licenses specified in the
  6772. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  6773. variable of the recipe metadata and copies of files marked
  6774. in
  6775. <link linkend='var-LIC_FILES_CHKSUM'><filename>LIC_FILES_CHKSUM</filename></link>
  6776. as containing license text).
  6777. </para>
  6778. <para>
  6779. For related information on providing license text, see the
  6780. <link linkend='var-COPY_LIC_DIRS'><filename>COPY_LIC_DIRS</filename></link>
  6781. variable, the
  6782. <link linkend='var-COPY_LIC_MANIFEST'><filename>COPY_LIC_MANIFEST</filename></link>
  6783. variable, and the
  6784. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  6785. section in the Yocto Project Development Manual.
  6786. </para>
  6787. </glossdef>
  6788. </glossentry>
  6789. <glossentry id='var-LICENSE_FLAGS'><glossterm>LICENSE_FLAGS</glossterm>
  6790. <info>
  6791. LICENSE_FLAGS[doc] = "Specifies additional flags for a recipe you must whitelist through LICENSE_FLAGS_WHITELIST in order to allow the recipe to be built."
  6792. </info>
  6793. <glossdef>
  6794. <para role="glossdeffirst">
  6795. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6796. Specifies additional flags for a recipe you must
  6797. whitelist through
  6798. <link linkend='var-LICENSE_FLAGS_WHITELIST'><filename>LICENSE_FLAGS_WHITELIST</filename></link>
  6799. in order to allow the recipe to be built.
  6800. When providing multiple flags, separate them with
  6801. spaces.
  6802. </para>
  6803. <para>
  6804. This value is independent of
  6805. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  6806. and is typically used to mark recipes that might
  6807. require additional licenses in order to be used in a
  6808. commercial product.
  6809. For more information, see the
  6810. "<link linkend='enabling-commercially-licensed-recipes'>Enabling Commercially Licensed Recipes</link>"
  6811. section.
  6812. </para>
  6813. </glossdef>
  6814. </glossentry>
  6815. <glossentry id='var-LICENSE_FLAGS_WHITELIST'><glossterm>LICENSE_FLAGS_WHITELIST</glossterm>
  6816. <info>
  6817. LICENSE_FLAGS_WHITELIST[doc] = "Lists license flags that when specified in LICENSE_FLAGS within a recipe should not prevent that recipe from being built."
  6818. </info>
  6819. <glossdef>
  6820. <para role="glossdeffirst">
  6821. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6822. Lists license flags that when specified in
  6823. <link linkend='var-LICENSE_FLAGS'><filename>LICENSE_FLAGS</filename></link>
  6824. within a recipe should not prevent that recipe from being
  6825. built.
  6826. This practice is otherwise known as "whitelisting"
  6827. license flags.
  6828. For more information, see the
  6829. <link linkend='enabling-commercially-licensed-recipes'>Enabling Commercially Licensed Recipes</link>"
  6830. section.
  6831. </para>
  6832. </glossdef>
  6833. </glossentry>
  6834. <glossentry id='var-LICENSE_PATH'><glossterm>LICENSE_PATH</glossterm>
  6835. <info>
  6836. LICENSE_PATH[doc] = "Path to additional licenses used during the build."
  6837. </info>
  6838. <glossdef>
  6839. <para role="glossdeffirst">
  6840. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6841. Path to additional licenses used during the build.
  6842. By default, the OpenEmbedded build system uses <filename>COMMON_LICENSE_DIR</filename>
  6843. to define the directory that holds common license text used during the build.
  6844. The <filename>LICENSE_PATH</filename> variable allows you to extend that
  6845. location to other areas that have additional licenses:
  6846. <literallayout class='monospaced'>
  6847. LICENSE_PATH += "<replaceable>path-to-additional-common-licenses</replaceable>"
  6848. </literallayout>
  6849. </para>
  6850. </glossdef>
  6851. </glossentry>
  6852. <glossentry id='var-LINUX_KERNEL_TYPE'><glossterm>LINUX_KERNEL_TYPE</glossterm>
  6853. <info>
  6854. LINUX_KERNEL_TYPE[doc] = "Defines the kernel type to be used in assembling the configuration."
  6855. </info>
  6856. <glossdef>
  6857. <para role="glossdeffirst">
  6858. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6859. Defines the kernel type to be used in assembling the
  6860. configuration.
  6861. The linux-yocto recipes define "standard", "tiny", and
  6862. "preempt-rt" kernel types.
  6863. See the
  6864. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#kernel-types'>Kernel Types</ulink>"
  6865. section in the Yocto Project Linux Kernel Development
  6866. Manual for more information on kernel types.
  6867. </para>
  6868. <para>
  6869. If you do not specify a
  6870. <filename>LINUX_KERNEL_TYPE</filename>, it defaults to
  6871. "standard".
  6872. Together with
  6873. <link linkend='var-KMACHINE'><filename>KMACHINE</filename></link>,
  6874. the <filename>LINUX_KERNEL_TYPE</filename> variable
  6875. defines the search
  6876. arguments used by the kernel tools to find the appropriate
  6877. description within the kernel
  6878. <ulink url='&YOCTO_DOCS_DEV_URL;#metadata'>Metadata</ulink>
  6879. with which to build out the sources and configuration.
  6880. </para>
  6881. </glossdef>
  6882. </glossentry>
  6883. <glossentry id='var-LINUX_VERSION'><glossterm>LINUX_VERSION</glossterm>
  6884. <info>
  6885. LINUX_VERSION[doc] = "The Linux version from kernel.org on which the Linux kernel image being built using the OpenEmbedded build system is based. You define this variable in the kernel recipe."
  6886. </info>
  6887. <glossdef>
  6888. <para role="glossdeffirst">
  6889. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6890. The Linux version from <filename>kernel.org</filename>
  6891. on which the Linux kernel image being built using the
  6892. OpenEmbedded build system is based.
  6893. You define this variable in the kernel recipe.
  6894. For example, the <filename>linux-yocto-3.4.bb</filename>
  6895. kernel recipe found in
  6896. <filename>meta/recipes-kernel/linux</filename>
  6897. defines the variables as follows:
  6898. <literallayout class='monospaced'>
  6899. LINUX_VERSION ?= "3.4.24"
  6900. </literallayout>
  6901. </para>
  6902. <para>
  6903. The <filename>LINUX_VERSION</filename> variable is used to
  6904. define <link linkend='var-PV'><filename>PV</filename></link>
  6905. for the recipe:
  6906. <literallayout class='monospaced'>
  6907. PV = "${LINUX_VERSION}+git${SRCPV}"
  6908. </literallayout>
  6909. </para>
  6910. </glossdef>
  6911. </glossentry>
  6912. <glossentry id='var-LINUX_VERSION_EXTENSION'><glossterm>LINUX_VERSION_EXTENSION</glossterm>
  6913. <info>
  6914. LINUX_VERSION_EXTENSION[doc] = "A string extension compiled into the version string of the Linux kernel built with the OpenEmbedded build system. You define this variable in the kernel recipe."
  6915. </info>
  6916. <glossdef>
  6917. <para role="glossdeffirst">
  6918. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6919. A string extension compiled into the version
  6920. string of the Linux kernel built with the OpenEmbedded
  6921. build system.
  6922. You define this variable in the kernel recipe.
  6923. For example, the linux-yocto kernel recipes all define
  6924. the variable as follows:
  6925. <literallayout class='monospaced'>
  6926. LINUX_VERSION_EXTENSION ?= "-yocto-${<link linkend='var-LINUX_KERNEL_TYPE'>LINUX_KERNEL_TYPE</link>}"
  6927. </literallayout>
  6928. </para>
  6929. <para>
  6930. Defining this variable essentially sets the
  6931. Linux kernel configuration item
  6932. <filename>CONFIG_LOCALVERSION</filename>, which is visible
  6933. through the <filename>uname</filename> command.
  6934. Here is an example that shows the extension assuming it
  6935. was set as previously shown:
  6936. <literallayout class='monospaced'>
  6937. $ uname -r
  6938. 3.7.0-rc8-custom
  6939. </literallayout>
  6940. </para>
  6941. </glossdef>
  6942. </glossentry>
  6943. <glossentry id='var-LOG_DIR'><glossterm>LOG_DIR</glossterm>
  6944. <info>
  6945. LOG_DIR[doc] = "Specifies the directory to which the OpenEmbedded build system writes overall log files. The default directory is ${TMPDIR}/log"
  6946. </info>
  6947. <glossdef>
  6948. <para role="glossdeffirst">
  6949. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6950. Specifies the directory to which the OpenEmbedded build
  6951. system writes overall log files.
  6952. The default directory is <filename>${TMPDIR}/log</filename>.
  6953. </para>
  6954. <para>
  6955. For the directory containing logs specific to each task,
  6956. see the <link linkend='var-T'><filename>T</filename></link>
  6957. variable.
  6958. </para>
  6959. </glossdef>
  6960. </glossentry>
  6961. </glossdiv>
  6962. <glossdiv id='var-glossary-m'><title>M</title>
  6963. <glossentry id='var-MACHINE'><glossterm>MACHINE</glossterm>
  6964. <info>
  6965. MACHINE[doc] = "Specifies the target device for which the image is built. You define MACHINE in the conf/local.conf file in the Build Directory."
  6966. </info>
  6967. <glossdef>
  6968. <para role="glossdeffirst">
  6969. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6970. Specifies the target device for which the image is built.
  6971. You define <filename>MACHINE</filename> in the
  6972. <filename>local.conf</filename> file found in the
  6973. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  6974. By default, <filename>MACHINE</filename> is set to
  6975. "qemux86", which is an x86-based architecture machine to
  6976. be emulated using QEMU:
  6977. <literallayout class='monospaced'>
  6978. MACHINE ?= "qemux86"
  6979. </literallayout>
  6980. </para>
  6981. <para>
  6982. The variable corresponds to a machine configuration file of the
  6983. same name, through which machine-specific configurations are set.
  6984. Thus, when <filename>MACHINE</filename> is set to "qemux86" there
  6985. exists the corresponding <filename>qemux86.conf</filename> machine
  6986. configuration file, which can be found in the
  6987. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  6988. in <filename>meta/conf/machine</filename>.
  6989. </para>
  6990. <para>
  6991. The list of machines supported by the Yocto Project as
  6992. shipped include the following:
  6993. <literallayout class='monospaced'>
  6994. MACHINE ?= "qemuarm"
  6995. MACHINE ?= "qemuarm64"
  6996. MACHINE ?= "qemumips"
  6997. MACHINE ?= "qemumips64"
  6998. MACHINE ?= "qemuppc"
  6999. MACHINE ?= "qemux86"
  7000. MACHINE ?= "qemux86-64"
  7001. MACHINE ?= "genericx86"
  7002. MACHINE ?= "genericx86-64"
  7003. MACHINE ?= "beaglebone"
  7004. MACHINE ?= "mpc8315e-rdb"
  7005. MACHINE ?= "edgerouter"
  7006. </literallayout>
  7007. The last five are Yocto Project reference hardware boards, which
  7008. are provided in the <filename>meta-yocto-bsp</filename> layer.
  7009. <note>Adding additional Board Support Package (BSP) layers
  7010. to your configuration adds new possible settings for
  7011. <filename>MACHINE</filename>.
  7012. </note>
  7013. </para>
  7014. </glossdef>
  7015. </glossentry>
  7016. <glossentry id='var-MACHINE_ARCH'><glossterm>MACHINE_ARCH</glossterm>
  7017. <info>
  7018. MACHINE_ARCH[doc] = "Specifies the name of the machine-specific architecture. This variable is set automatically from MACHINE or TUNE_PKGARCH."
  7019. </info>
  7020. <glossdef>
  7021. <para role="glossdeffirst">
  7022. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7023. Specifies the name of the machine-specific architecture.
  7024. This variable is set automatically from
  7025. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>
  7026. or
  7027. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>.
  7028. You should not hand-edit the
  7029. <filename>MACHINE_ARCH</filename> variable.
  7030. </para>
  7031. </glossdef>
  7032. </glossentry>
  7033. <glossentry id='var-MACHINE_ESSENTIAL_EXTRA_RDEPENDS'><glossterm>MACHINE_ESSENTIAL_EXTRA_RDEPENDS</glossterm>
  7034. <info>
  7035. MACHINE_ESSENTIAL_EXTRA_RDEPENDS[doc] = "A list of required machine-specific packages to install as part of the image being built. Because this is a 'machine essential' variable, the list of packages are essential for the machine to boot."
  7036. </info>
  7037. <glossdef>
  7038. <para role="glossdeffirst">
  7039. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7040. A list of required machine-specific packages to install as part of
  7041. the image being built.
  7042. The build process depends on these packages being present.
  7043. Furthermore, because this is a "machine essential" variable, the list of
  7044. packages are essential for the machine to boot.
  7045. The impact of this variable affects images based on
  7046. <filename>packagegroup-core-boot</filename>,
  7047. including the <filename>core-image-minimal</filename> image.
  7048. </para>
  7049. <para>
  7050. This variable is similar to the
  7051. <filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'>MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</link></filename>
  7052. variable with the exception that the image being built has a build
  7053. dependency on the variable's list of packages.
  7054. In other words, the image will not build if a file in this list is not found.
  7055. </para>
  7056. <para>
  7057. As an example, suppose the machine for which you are building requires
  7058. <filename>example-init</filename> to be run during boot to initialize the hardware.
  7059. In this case, you would use the following in the machine's
  7060. <filename>.conf</filename> configuration file:
  7061. <literallayout class='monospaced'>
  7062. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  7063. </literallayout>
  7064. </para>
  7065. </glossdef>
  7066. </glossentry>
  7067. <glossentry id='var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'><glossterm>MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</glossterm>
  7068. <info>
  7069. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS[doc] = "A list of recommended machine-specific packages to install as part of the image being built. Because this is a 'machine essential' variable, the list of packages are essential for the machine to boot."
  7070. </info>
  7071. <glossdef>
  7072. <para role="glossdeffirst">
  7073. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7074. A list of recommended machine-specific packages to install as part of
  7075. the image being built.
  7076. The build process does not depend on these packages being present.
  7077. However, because this is a "machine essential" variable, the list of
  7078. packages are essential for the machine to boot.
  7079. The impact of this variable affects images based on
  7080. <filename>packagegroup-core-boot</filename>,
  7081. including the <filename>core-image-minimal</filename> image.
  7082. </para>
  7083. <para>
  7084. This variable is similar to the
  7085. <filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RDEPENDS'>MACHINE_ESSENTIAL_EXTRA_RDEPENDS</link></filename>
  7086. variable with the exception that the image being built does not have a build
  7087. dependency on the variable's list of packages.
  7088. In other words, the image will still build if a package in this list is not found.
  7089. Typically, this variable is used to handle essential kernel modules, whose
  7090. functionality may be selected to be built into the kernel rather than as a module,
  7091. in which case a package will not be produced.
  7092. </para>
  7093. <para>
  7094. Consider an example where you have a custom kernel where a specific touchscreen
  7095. driver is required for the machine to be usable.
  7096. However, the driver can be built as a module or
  7097. into the kernel depending on the kernel configuration.
  7098. If the driver is built as a module, you want it to be installed.
  7099. But, when the driver is built into the kernel, you still want the
  7100. build to succeed.
  7101. This variable sets up a "recommends" relationship so that in the latter case,
  7102. the build will not fail due to the missing package.
  7103. To accomplish this, assuming the package for the module was called
  7104. <filename>kernel-module-ab123</filename>, you would use the
  7105. following in the machine's <filename>.conf</filename> configuration
  7106. file:
  7107. <literallayout class='monospaced'>
  7108. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  7109. </literallayout>
  7110. <note>
  7111. In this example, the
  7112. <filename>kernel-module-ab123</filename> recipe
  7113. needs to explicitly set its
  7114. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  7115. variable to ensure that BitBake does not use the
  7116. kernel recipe's
  7117. <link linkend='var-PACKAGES_DYNAMIC'><filename>PACKAGES_DYNAMIC</filename></link>
  7118. variable to satisfy the dependency.
  7119. </note>
  7120. </para>
  7121. <para>
  7122. Some examples of these machine essentials are flash, screen, keyboard, mouse,
  7123. or touchscreen drivers (depending on the machine).
  7124. </para>
  7125. </glossdef>
  7126. </glossentry>
  7127. <glossentry id='var-MACHINE_EXTRA_RDEPENDS'><glossterm>MACHINE_EXTRA_RDEPENDS</glossterm>
  7128. <info>
  7129. MACHINE_EXTRA_RDEPENDS[doc] = "A list of machine-specific packages to install as part of the image being built that are not essential for the machine to boot. However, the build process for more fully-featured images depends on the packages being present."
  7130. </info>
  7131. <glossdef>
  7132. <para role="glossdeffirst">
  7133. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7134. A list of machine-specific packages to install as part of the
  7135. image being built that are not essential for the machine to boot.
  7136. However, the build process for more fully-featured images
  7137. depends on the packages being present.
  7138. </para>
  7139. <para>
  7140. This variable affects all images based on
  7141. <filename>packagegroup-base</filename>, which does not include the
  7142. <filename>core-image-minimal</filename> or <filename>core-image-full-cmdline</filename>
  7143. images.
  7144. </para>
  7145. <para>
  7146. The variable is similar to the
  7147. <filename><link linkend='var-MACHINE_EXTRA_RRECOMMENDS'>MACHINE_EXTRA_RRECOMMENDS</link></filename>
  7148. variable with the exception that the image being built has a build
  7149. dependency on the variable's list of packages.
  7150. In other words, the image will not build if a file in this list is not found.
  7151. </para>
  7152. <para>
  7153. An example is a machine that has WiFi capability but is not
  7154. essential for the machine to boot the image.
  7155. However, if you are building a more fully-featured image, you want to enable
  7156. the WiFi.
  7157. The package containing the firmware for the WiFi hardware is always
  7158. expected to exist, so it is acceptable for the build process to depend upon
  7159. finding the package.
  7160. In this case, assuming the package for the firmware was called
  7161. <filename>wifidriver-firmware</filename>, you would use the following in the
  7162. <filename>.conf</filename> file for the machine:
  7163. <literallayout class='monospaced'>
  7164. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  7165. </literallayout>
  7166. </para>
  7167. </glossdef>
  7168. </glossentry>
  7169. <glossentry id='var-MACHINE_EXTRA_RRECOMMENDS'><glossterm>MACHINE_EXTRA_RRECOMMENDS</glossterm>
  7170. <info>
  7171. MACHINE_EXTRA_RRECOMMENDS[doc] = "A list of machine-specific packages to install as part of the image being built that are not essential for booting the machine. The image being built has no build dependencies on the packages in this list."
  7172. </info>
  7173. <glossdef>
  7174. <para role="glossdeffirst">
  7175. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7176. A list of machine-specific packages to install as part of the
  7177. image being built that are not essential for booting the machine.
  7178. The image being built has no build dependency on this list of packages.
  7179. </para>
  7180. <para>
  7181. This variable affects only images based on
  7182. <filename>packagegroup-base</filename>, which does not include the
  7183. <filename>core-image-minimal</filename> or <filename>core-image-full-cmdline</filename>
  7184. images.
  7185. </para>
  7186. <para>
  7187. This variable is similar to the
  7188. <filename><link linkend='var-MACHINE_EXTRA_RDEPENDS'>MACHINE_EXTRA_RDEPENDS</link></filename>
  7189. variable with the exception that the image being built does not have a build
  7190. dependency on the variable's list of packages.
  7191. In other words, the image will build if a file in this list is not found.
  7192. </para>
  7193. <para>
  7194. An example is a machine that has WiFi capability but is not essential
  7195. For the machine to boot the image.
  7196. However, if you are building a more fully-featured image, you want to enable
  7197. WiFi.
  7198. In this case, the package containing the WiFi kernel module will not be produced
  7199. if the WiFi driver is built into the kernel, in which case you still want the
  7200. build to succeed instead of failing as a result of the package not being found.
  7201. To accomplish this, assuming the package for the module was called
  7202. <filename>kernel-module-examplewifi</filename>, you would use the
  7203. following in the <filename>.conf</filename> file for the machine:
  7204. <literallayout class='monospaced'>
  7205. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  7206. </literallayout>
  7207. </para>
  7208. </glossdef>
  7209. </glossentry>
  7210. <glossentry id='var-MACHINE_FEATURES'><glossterm>MACHINE_FEATURES</glossterm>
  7211. <info>
  7212. MACHINE_FEATURES[doc] = "Specifies the list of hardware features the MACHINE supports."
  7213. </info>
  7214. <glossdef>
  7215. <para role="glossdeffirst">
  7216. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7217. Specifies the list of hardware features the
  7218. <link linkend='var-MACHINE'><filename>MACHINE</filename></link> is capable
  7219. of supporting.
  7220. For related information on enabling features, see the
  7221. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>,
  7222. <link linkend='var-COMBINED_FEATURES'><filename>COMBINED_FEATURES</filename></link>,
  7223. and
  7224. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  7225. variables.
  7226. </para>
  7227. <para>
  7228. For a list of hardware features supported by the Yocto
  7229. Project as shipped, see the
  7230. "<link linkend='ref-features-machine'>Machine Features</link>"
  7231. section.
  7232. </para>
  7233. </glossdef>
  7234. </glossentry>
  7235. <glossentry id='var-MACHINE_FEATURES_BACKFILL'><glossterm>MACHINE_FEATURES_BACKFILL</glossterm>
  7236. <info>
  7237. MACHINE_FEATURES_BACKFILL[doc] = "Features to be added to MACHINE_FEATURES if not also present in MACHINE_FEATURES_BACKFILL_CONSIDERED. This variable is set in the meta/conf/bitbake.conf file and is not intended to be user-configurable."
  7238. </info>
  7239. <glossdef>
  7240. <para role="glossdeffirst">
  7241. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7242. Features to be added to
  7243. <filename><link linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link></filename>
  7244. if not also present in
  7245. <filename><link linkend='var-MACHINE_FEATURES_BACKFILL_CONSIDERED'>MACHINE_FEATURES_BACKFILL_CONSIDERED</link></filename>.
  7246. </para>
  7247. <para>
  7248. This variable is set in the <filename>meta/conf/bitbake.conf</filename> file.
  7249. It is not intended to be user-configurable.
  7250. It is best to just reference the variable to see which machine features are
  7251. being backfilled for all machine configurations.
  7252. See the "<link linkend='ref-features-backfill'>Feature backfilling</link>" section for
  7253. more information.
  7254. </para>
  7255. </glossdef>
  7256. </glossentry>
  7257. <glossentry id='var-MACHINE_FEATURES_BACKFILL_CONSIDERED'><glossterm>MACHINE_FEATURES_BACKFILL_CONSIDERED</glossterm>
  7258. <info>
  7259. MACHINE_FEATURES_BACKFILL_CONSIDERED[doc] = "Features from MACHINE_FEATURES_BACKFILL that should not be backfilled (i.e. added to MACHINE_FEATURES) during the build."
  7260. </info>
  7261. <glossdef>
  7262. <para role="glossdeffirst">
  7263. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7264. Features from
  7265. <filename><link linkend='var-MACHINE_FEATURES_BACKFILL'>MACHINE_FEATURES_BACKFILL</link></filename>
  7266. that should not be backfilled (i.e. added to
  7267. <filename><link linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link></filename>)
  7268. during the build.
  7269. See the "<link linkend='ref-features-backfill'>Feature backfilling</link>" section for
  7270. more information.
  7271. </para>
  7272. </glossdef>
  7273. </glossentry>
  7274. <glossentry id='var-MACHINEOVERRIDES'><glossterm>MACHINEOVERRIDES</glossterm>
  7275. <info>
  7276. MACHINEOVERRIDES[doc] = "A colon-separated list of overrides that apply to the current machine."
  7277. </info>
  7278. <glossdef>
  7279. <para role="glossdeffirst">
  7280. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7281. A colon-separated list of overrides that apply to the
  7282. current machine.
  7283. By default, this list includes the value of
  7284. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>.
  7285. </para>
  7286. <para>
  7287. You can extend <filename>MACHINEOVERRIDES</filename>
  7288. to add extra overrides that should apply to a machine.
  7289. For example, all machines emulated in QEMU (e.g.
  7290. <filename>qemuarm</filename>, <filename>qemux86</filename>,
  7291. and so forth) include a file named
  7292. <filename>meta/conf/machine/include/qemu.inc</filename>
  7293. that prepends the following override to
  7294. <filename>MACHINEOVERRIDES</filename>:
  7295. <literallayout class='monospaced'>
  7296. MACHINEOVERRIDES =. "qemuall:"
  7297. </literallayout>
  7298. This override allows variables to be overriden for all
  7299. machines emulated in QEMU, like in the following example
  7300. from the <filename>connman-conf</filename> recipe:
  7301. <literallayout class='monospaced'>
  7302. SRC_URI_append_qemuall = "file://wired.config \
  7303. file://wired-setup \
  7304. "
  7305. </literallayout>
  7306. The underlying mechanism behind
  7307. <filename>MACHINEOVERRIDES</filename> is simply that it is
  7308. included in the default value of
  7309. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  7310. </para>
  7311. </glossdef>
  7312. </glossentry>
  7313. <glossentry id='var-MAINTAINER'><glossterm>MAINTAINER</glossterm>
  7314. <info>
  7315. MAINTAINER[doc] = "The email address of the distribution maintainer."
  7316. </info>
  7317. <glossdef>
  7318. <para role="glossdeffirst">
  7319. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7320. The email address of the distribution maintainer.
  7321. </para>
  7322. </glossdef>
  7323. </glossentry>
  7324. <glossentry id='var-MIRRORS'><glossterm>MIRRORS</glossterm>
  7325. <info>
  7326. MIRRORS[doc] = "Specifies additional paths from which the OpenEmbedded build system gets source code."
  7327. </info>
  7328. <glossdef>
  7329. <para role="glossdeffirst">
  7330. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7331. Specifies additional paths from which the OpenEmbedded
  7332. build system gets source code.
  7333. When the build system searches for source code, it first
  7334. tries the local download directory.
  7335. If that location fails, the build system tries locations
  7336. defined by
  7337. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>,
  7338. the upstream source, and then locations specified by
  7339. <filename>MIRRORS</filename> in that order.
  7340. </para>
  7341. <para>
  7342. Assuming your distribution
  7343. (<link linkend='var-DISTRO'><filename>DISTRO</filename></link>)
  7344. is "poky", the default value for
  7345. <filename>MIRRORS</filename> is defined in the
  7346. <filename>conf/distro/poky.conf</filename> file in the
  7347. <filename>meta-poky</filename> Git repository.
  7348. </para>
  7349. </glossdef>
  7350. </glossentry>
  7351. <glossentry id='var-MLPREFIX'><glossterm>MLPREFIX</glossterm>
  7352. <info>
  7353. MLPREFIX[doc] = "Specifies a prefix has been added to PN to create a special version of a recipe or package, such as a Multilib version."
  7354. </info>
  7355. <glossdef>
  7356. <para role="glossdeffirst">
  7357. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7358. Specifies a prefix has been added to
  7359. <link linkend='var-PN'><filename>PN</filename></link> to create a special version
  7360. of a recipe or package, such as a Multilib version.
  7361. The variable is used in places where the prefix needs to be
  7362. added to or removed from a the name (e.g. the
  7363. <link linkend='var-BPN'><filename>BPN</filename></link> variable).
  7364. <filename>MLPREFIX</filename> gets set when a prefix has been
  7365. added to <filename>PN</filename>.
  7366. <note>
  7367. The "ML" in <filename>MLPREFIX</filename> stands for
  7368. "MultiLib".
  7369. This representation is historical and comes from
  7370. a time when <filename>nativesdk</filename> was a suffix
  7371. rather than a prefix on the recipe name.
  7372. When <filename>nativesdk</filename> was turned into a
  7373. prefix, it made sense to set
  7374. <filename>MLPREFIX</filename> for it as well.
  7375. </note>
  7376. </para>
  7377. <para>
  7378. To help understand when <filename>MLPREFIX</filename>
  7379. might be needed, consider when
  7380. <link linkend='var-BBCLASSEXTEND'><filename>BBCLASSEXTEND</filename></link>
  7381. is used to provide a <filename>nativesdk</filename> version
  7382. of a recipe in addition to the target version.
  7383. If that recipe declares build-time dependencies on tasks in
  7384. other recipes by using
  7385. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>,
  7386. then a dependency on "foo" will automatically get rewritten
  7387. to a dependency on "nativesdk-foo".
  7388. However, dependencies like the following will not get
  7389. rewritten automatically:
  7390. <literallayout class='monospaced'>
  7391. do_foo[depends] += "<replaceable>recipe</replaceable>:do_foo"
  7392. </literallayout>
  7393. If you want such a dependency to also get transformed,
  7394. you can do the following:
  7395. <literallayout class='monospaced'>
  7396. do_foo[depends] += "${MLPREFIX}<replaceable>recipe</replaceable>:do_foo"
  7397. </literallayout>
  7398. </para>
  7399. </glossdef>
  7400. </glossentry>
  7401. <glossentry id='var-module_autoload'><glossterm>module_autoload</glossterm>
  7402. <info>
  7403. module_autoload[doc] = "This variable has been replaced by the KERNEL_MODULE_AUTOLOAD variable. You should replace all occurrences of module_autoload with additions to KERNEL_MODULE_AUTOLOAD."
  7404. </info>
  7405. <glossdef>
  7406. <para role="glossdeffirst">
  7407. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7408. This variable has been replaced by the
  7409. <filename>KERNEL_MODULE_AUTOLOAD</filename> variable.
  7410. You should replace all occurrences of
  7411. <filename>module_autoload</filename> with additions to
  7412. <filename>KERNEL_MODULE_AUTOLOAD</filename>, for example:
  7413. <literallayout class='monospaced'>
  7414. module_autoload_rfcomm = "rfcomm"
  7415. </literallayout>
  7416. </para>
  7417. <para>
  7418. should now be replaced with:
  7419. <literallayout class='monospaced'>
  7420. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  7421. </literallayout>
  7422. See the
  7423. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  7424. variable for more information.
  7425. </para>
  7426. </glossdef>
  7427. </glossentry>
  7428. <glossentry id='var-module_conf'><glossterm>module_conf</glossterm>
  7429. <info>
  7430. module_conf[doc] = "Specifies modprobe.d syntax lines for inclusion in the /etc/modprobe.d/modname.conf file."
  7431. </info>
  7432. <glossdef>
  7433. <para role="glossdeffirst">
  7434. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7435. Specifies
  7436. <ulink url='http://linux.die.net/man/5/modprobe.d'><filename>modprobe.d</filename></ulink>
  7437. syntax lines for inclusion in the
  7438. <filename>/etc/modprobe.d/modname.conf</filename> file.
  7439. </para>
  7440. <para>
  7441. You can use this variable anywhere that it can be
  7442. recognized by the kernel recipe or out-of-tree kernel
  7443. module recipe (e.g. a machine configuration file, a
  7444. distribution configuration file, an append file for the
  7445. recipe, or the recipe itself).
  7446. If you use this variable, you must also be sure to list
  7447. the module name in the
  7448. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  7449. variable.
  7450. </para>
  7451. <para>
  7452. Here is the general syntax:
  7453. <literallayout class='monospaced'>
  7454. module_conf_<replaceable>module_name</replaceable> = "<replaceable>modprobe.d-syntax</replaceable>"
  7455. </literallayout>
  7456. You must use the kernel module name override.
  7457. </para>
  7458. <para>
  7459. Run <filename>man modprobe.d</filename> in the shell to
  7460. find out more information on the exact syntax
  7461. you want to provide with <filename>module_conf</filename>.
  7462. </para>
  7463. <para>
  7464. Including <filename>module_conf</filename> causes the
  7465. OpenEmbedded build system to populate the
  7466. <filename>/etc/modprobe.d/modname.conf</filename>
  7467. file with <filename>modprobe.d</filename> syntax lines.
  7468. Here is an example that adds the options
  7469. <filename>arg1</filename> and <filename>arg2</filename>
  7470. to a module named <filename>mymodule</filename>:
  7471. <literallayout class='monospaced'>
  7472. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  7473. </literallayout>
  7474. </para>
  7475. <para>
  7476. For information on how to specify kernel modules to
  7477. auto-load on boot, see the
  7478. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  7479. variable.
  7480. </para>
  7481. </glossdef>
  7482. </glossentry>
  7483. <glossentry id='var-MODULE_IMAGE_BASE_NAME'><glossterm>MODULE_IMAGE_BASE_NAME</glossterm>
  7484. <info>
  7485. MODULE_IMAGE_BASE_NAME[doc] = "The base name of the kernel modules tarball."
  7486. </info>
  7487. <glossdef>
  7488. <para role="glossdeffirst">
  7489. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7490. The base name of the kernel modules tarball.
  7491. This variable is set in the
  7492. <link linkend='ref-classes-kernel'>kernel</link> class
  7493. as follows:
  7494. <literallayout class='monospaced'>
  7495. MODULE_IMAGE_BASE_NAME ?= "modules-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
  7496. </literallayout>
  7497. </para>
  7498. <para>
  7499. See the
  7500. <link linkend='var-PKGE'><filename>PKGE</filename></link>,
  7501. <link linkend='var-PKGV'><filename>PKGV</filename></link>,
  7502. <link linkend='var-PKGR'><filename>PKGR</filename></link>,
  7503. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>,
  7504. and
  7505. <link linkend='var-DATETIME'><filename>DATETIME</filename></link>
  7506. variables for additional information.
  7507. </para>
  7508. </glossdef>
  7509. </glossentry>
  7510. <glossentry id='var-MODULE_TARBALL_DEPLOY'><glossterm>MODULE_TARBALL_DEPLOY</glossterm>
  7511. <info>
  7512. MODULE_TARBALL_DEPLOY[doc] = "Controls creation of the modules-*.tgz file. Set this variable to "0" to disable creation of this file, which contains all of the kernel modules resulting from a kernel build."
  7513. </info>
  7514. <glossdef>
  7515. <para role="glossdeffirst">
  7516. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7517. Controls creation of the <filename>modules-*.tgz</filename>
  7518. file.
  7519. Set this variable to "0" to disable creation of this
  7520. file, which contains all of the kernel modules resulting
  7521. from a kernel build.
  7522. </para>
  7523. </glossdef>
  7524. </glossentry>
  7525. <glossentry id='var-MULTIMACH_HOST_SYS'><glossterm>MULTIMACH_HOST_SYS</glossterm>
  7526. <info>
  7527. MULTIMACH_HOST_SYS[doc] = "Separates files for different machines such that you can build for multiple host machines using the same output directories."
  7528. </info>
  7529. <glossdef>
  7530. <para role="glossdeffirst">
  7531. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7532. Serves the same purpose as
  7533. <link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>,
  7534. but for the "HOST" system, in situations that involve a
  7535. "HOST" and a "TARGET" system.
  7536. See the
  7537. <link linkend='var-STAGING_DIR_TARGET'><filename>STAGING_DIR_TARGET</filename></link>
  7538. variable for more information.
  7539. </para>
  7540. <para>
  7541. The default value of this variable is:
  7542. <literallayout class='monospaced'>
  7543. ${PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}
  7544. </literallayout>
  7545. </para>
  7546. </glossdef>
  7547. </glossentry>
  7548. <glossentry id='var-MULTIMACH_TARGET_SYS'><glossterm>MULTIMACH_TARGET_SYS</glossterm>
  7549. <info>
  7550. MULTIMACH_TARGET_SYS[doc] = "Separates files for different machines such that you can build for multiple target machines using the same output directories."
  7551. </info>
  7552. <glossdef>
  7553. <para role="glossdeffirst">
  7554. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7555. Uniquely identifies the type of the target system for
  7556. which packages are being built.
  7557. This variable allows output for different types of target
  7558. systems to be put into different subdirectories of the same
  7559. output directory.
  7560. </para>
  7561. <para>
  7562. The default value of this variable is:
  7563. <literallayout class='monospaced'>
  7564. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  7565. </literallayout>
  7566. Some classes (e.g.
  7567. <link linkend='ref-classes-cross-canadian'><filename>cross-canadian</filename></link>)
  7568. modify the <filename>MULTIMACH_TARGET_SYS</filename> value.
  7569. </para>
  7570. <para>
  7571. See the
  7572. <link linkend='var-STAMP'><filename>STAMP</filename></link>
  7573. variable for an example.
  7574. <link linkend='var-MULTIMACH_HOST_SYS'><filename>MULTIMACH_HOST_SYS</filename></link>
  7575. is the corresponding variable for the host system in
  7576. situations that involve a "HOST" and a "TARGET" system.
  7577. See the
  7578. <link linkend='var-STAGING_DIR_TARGET'><filename>STAGING_DIR_TARGET</filename></link>
  7579. variable for more information.
  7580. </para>
  7581. </glossdef>
  7582. </glossentry>
  7583. </glossdiv>
  7584. <glossdiv id='var-glossary-n'><title>N</title>
  7585. <glossentry id='var-NATIVELSBSTRING'><glossterm>NATIVELSBSTRING</glossterm>
  7586. <info>
  7587. NATIVELSBSTRING[doc] = "A string identifying the host distribution."
  7588. </info>
  7589. <glossdef>
  7590. <para role="glossdeffirst">
  7591. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7592. A string identifying the host distribution.
  7593. Strings consist of the host distributor ID
  7594. followed by the release, as reported by the
  7595. <filename>lsb_release</filename> tool
  7596. or as read from <filename>/etc/lsb-release</filename>.
  7597. For example, when running a build on Ubuntu 12.10, the value
  7598. is "Ubuntu-12.10".
  7599. If this information is unable to be determined, the value
  7600. resolves to "Unknown".
  7601. </para>
  7602. <para>
  7603. This variable is used by default to isolate native shared
  7604. state packages for different distributions (e.g. to avoid
  7605. problems with <filename>glibc</filename> version
  7606. incompatibilities).
  7607. Additionally, the variable is checked against
  7608. <link linkend='var-SANITY_TESTED_DISTROS'><filename>SANITY_TESTED_DISTROS</filename></link>
  7609. if that variable is set.
  7610. </para>
  7611. </glossdef>
  7612. </glossentry>
  7613. <glossentry id='var-NM'><glossterm>NM</glossterm>
  7614. <info>
  7615. NM[doc] = "Minimal command and arguments to run 'nm'."
  7616. </info>
  7617. <glossdef>
  7618. <para role="glossdeffirst">
  7619. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7620. The minimal command and arguments to run
  7621. <filename>nm</filename>.
  7622. </para>
  7623. </glossdef>
  7624. </glossentry>
  7625. <glossentry id='var-NO_RECOMMENDATIONS'><glossterm>NO_RECOMMENDATIONS</glossterm>
  7626. <info>
  7627. NO_RECOMMENDATIONS[doc] = "When set to '1', no recommended packages will be installed. Realize that some recommended packages might be required for certain system functionality, such as kernel-modules. It is up to the user to add packages to IMAGE_INSTALL as needed."
  7628. </info>
  7629. <glossdef>
  7630. <para role="glossdeffirst">
  7631. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7632. Prevents installation of all "recommended-only" packages.
  7633. Recommended-only packages are packages installed only
  7634. through the
  7635. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link>
  7636. variable).
  7637. Setting the <filename>NO_RECOMMENDATIONS</filename> variable
  7638. to "1" turns this feature on:
  7639. <literallayout class='monospaced'>
  7640. NO_RECOMMENDATIONS = "1"
  7641. </literallayout>
  7642. </para>
  7643. <para>
  7644. You can set this variable globally in your
  7645. <filename>local.conf</filename> file or you can attach it to
  7646. a specific image recipe by using the recipe name override:
  7647. <literallayout class='monospaced'>
  7648. NO_RECOMMENDATIONS_pn-<replaceable>target_image</replaceable> = "<replaceable>package_name</replaceable>"
  7649. </literallayout>
  7650. </para>
  7651. <para>
  7652. It is important to realize that if you choose to not install
  7653. packages using this variable and some other packages are
  7654. dependent on them (i.e. listed in a recipe's
  7655. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  7656. variable), the OpenEmbedded build system ignores your
  7657. request and will install the packages to avoid dependency
  7658. errors.
  7659. <note>
  7660. Some recommended packages might be required for certain
  7661. system functionality, such as kernel modules.
  7662. It is up to you to add packages with the
  7663. <link linkend='var-IMAGE_INSTALL'><filename>IMAGE_INSTALL</filename></link>
  7664. variable.
  7665. </note>
  7666. </para>
  7667. <para>
  7668. Support for this variable exists only when using the
  7669. IPK and RPM packaging backend.
  7670. Support does not exist for DEB.
  7671. </para>
  7672. <para>
  7673. See the
  7674. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>
  7675. and the
  7676. <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link>
  7677. variables for related information.
  7678. </para>
  7679. </glossdef>
  7680. </glossentry>
  7681. <glossentry id='var-NOHDD'><glossterm>NOHDD</glossterm>
  7682. <info>
  7683. NOHDD[doc] = "Causes the OpenEmbedded build system to skip building the .hddimg image."
  7684. </info>
  7685. <glossdef>
  7686. <para role="glossdeffirst">
  7687. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7688. Causes the OpenEmbedded build system to skip building the
  7689. <filename>.hddimg</filename> image.
  7690. The <filename>NOHDD</filename> variable is used with the
  7691. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  7692. class.
  7693. Set the variable to "1" to prevent the
  7694. <filename>.hddimg</filename> image from being built.
  7695. </para>
  7696. </glossdef>
  7697. </glossentry>
  7698. <glossentry id='var-NOISO'><glossterm>NOISO</glossterm>
  7699. <info>
  7700. NOISO[doc] = "Causes the OpenEmbedded build system to skip building the ISO image."
  7701. </info>
  7702. <glossdef>
  7703. <para role="glossdeffirst">
  7704. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7705. Causes the OpenEmbedded build system to skip building the
  7706. ISO image.
  7707. The <filename>NOISO</filename> variable is used with the
  7708. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  7709. class.
  7710. Set the variable to "1" to prevent the ISO image from
  7711. being built.
  7712. To enable building an ISO image, set the variable to "0".
  7713. </para>
  7714. </glossdef>
  7715. </glossentry>
  7716. </glossdiv>
  7717. <glossdiv id='var-glossary-o'><title>O</title>
  7718. <glossentry id='var-OBJCOPY'><glossterm>OBJCOPY</glossterm>
  7719. <info>
  7720. OBJCOPY[doc] = "Minimal command and arguments to run 'objcopy'."
  7721. </info>
  7722. <glossdef>
  7723. <para role="glossdeffirst">
  7724. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7725. The minimal command and arguments to run
  7726. <filename>objcopy</filename>.
  7727. </para>
  7728. </glossdef>
  7729. </glossentry>
  7730. <glossentry id='var-OBJDUMP'><glossterm>OBJDUMP</glossterm>
  7731. <info>
  7732. OBJDUMP[doc] = "Minimal command and arguments to run 'objdump'."
  7733. </info>
  7734. <glossdef>
  7735. <para role="glossdeffirst">
  7736. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7737. The minimal command and arguments to run
  7738. <filename>objdump</filename>.
  7739. </para>
  7740. </glossdef>
  7741. </glossentry>
  7742. <glossentry id='var-OE_BINCONFIG_EXTRA_MANGLE'><glossterm>OE_BINCONFIG_EXTRA_MANGLE</glossterm>
  7743. <info>
  7744. OE_BINCONFIG_EXTRA_MANGLE[doc] = "When a recipe inherits the binconfig.bbclass class, this variable specifies additional arguments passed to the "sed" command."
  7745. </info>
  7746. <glossdef>
  7747. <para role="glossdeffirst">
  7748. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7749. When inheriting the
  7750. <link linkend='ref-classes-binconfig'><filename>binconfig</filename></link>
  7751. class, this variable
  7752. specifies additional arguments passed to the "sed" command.
  7753. The sed command alters any paths in configuration scripts
  7754. that have been set up during compilation.
  7755. Inheriting this class results in all paths in these scripts
  7756. being changed to point into the
  7757. <filename>sysroots/</filename> directory so that all builds
  7758. that use the script will use the correct directories
  7759. for the cross compiling layout.
  7760. </para>
  7761. <para>
  7762. See the <filename>meta/classes/binconfig.bbclass</filename>
  7763. in the
  7764. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  7765. for details on how this class applies these additional
  7766. sed command arguments.
  7767. For general information on the
  7768. <filename>binconfig.bbclass</filename> class, see the
  7769. "<link linkend='ref-classes-binconfig'>Binary Configuration Scripts - <filename>binconfig.bbclass</filename></link>"
  7770. section.
  7771. </para>
  7772. </glossdef>
  7773. </glossentry>
  7774. <glossentry id='var-OE_IMPORTS'><glossterm>OE_IMPORTS</glossterm>
  7775. <info>
  7776. OE_IMPORTS[doc] = "An internal variable used to tell the OpenEmbedded build system what Python modules to import for every Python function run by the system."
  7777. </info>
  7778. <glossdef>
  7779. <para role="glossdeffirst">
  7780. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7781. An internal variable used to tell the OpenEmbedded build
  7782. system what Python modules to import for every Python
  7783. function run by the system.
  7784. </para>
  7785. <note>
  7786. Do not set this variable.
  7787. It is for internal use only.
  7788. </note>
  7789. </glossdef>
  7790. </glossentry>
  7791. <glossentry id='var-OE_INIT_ENV_SCRIPT'><glossterm>OE_INIT_ENV_SCRIPT</glossterm>
  7792. <info>
  7793. OE_INIT_ENV_SCRIPT[doc] = "The name of the build environment setup script for the purposes of setting up the environment within the extensible SDK."
  7794. </info>
  7795. <glossdef>
  7796. <para role="glossdeffirst">
  7797. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7798. The name of the build environment setup script for the
  7799. purposes of setting up the environment within the
  7800. extensible SDK.
  7801. The default value is "oe-init-build-env".
  7802. </para>
  7803. <para>
  7804. If you use a custom script to set up your build
  7805. environment, set the
  7806. <filename>OE_INIT_ENV_SCRIPT</filename> variable to its
  7807. name.
  7808. </para>
  7809. </glossdef>
  7810. </glossentry>
  7811. <glossentry id='var-OE_TERMINAL'><glossterm>OE_TERMINAL</glossterm>
  7812. <info>
  7813. OE_TERMINAL[doc] = "Controls how the OpenEmbedded build system spawns interactive terminals on the host development system."
  7814. </info>
  7815. <glossdef>
  7816. <para role="glossdeffirst">
  7817. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7818. Controls how the OpenEmbedded build system spawns
  7819. interactive terminals on the host development system
  7820. (e.g. using the BitBake command with the
  7821. <filename>-c devshell</filename> command-line option).
  7822. For more information, see the
  7823. "<ulink url='&YOCTO_DOCS_DEV_URL;#platdev-appdev-devshell'>Using a Development Shell</ulink>" section
  7824. in the Yocto Project Development Manual.
  7825. </para>
  7826. <para>
  7827. You can use the following values for the
  7828. <filename>OE_TERMINAL</filename> variable:
  7829. <literallayout class='monospaced'>
  7830. auto
  7831. gnome
  7832. xfce
  7833. rxvt
  7834. screen
  7835. konsole
  7836. none
  7837. </literallayout>
  7838. </para>
  7839. </glossdef>
  7840. </glossentry>
  7841. <glossentry id='var-OEROOT'><glossterm>OEROOT</glossterm>
  7842. <info>
  7843. OEROOT[doc] = "The directory from which the top-level build environment setup script is sourced."
  7844. </info>
  7845. <glossdef>
  7846. <para role="glossdeffirst">
  7847. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7848. The directory from which the top-level build environment
  7849. setup script is sourced.
  7850. The Yocto Project makes two top-level build environment
  7851. setup scripts available:
  7852. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>
  7853. and
  7854. <link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link>.
  7855. When you run one of these scripts, the
  7856. <filename>OEROOT</filename> variable resolves to the
  7857. directory that contains the script.
  7858. </para>
  7859. <para>
  7860. For additional information on how this variable is used,
  7861. see the initialization scripts.
  7862. </para>
  7863. </glossdef>
  7864. </glossentry>
  7865. <glossentry id='var-OLDEST_KERNEL'><glossterm>OLDEST_KERNEL</glossterm>
  7866. <info>
  7867. OLDEST_KERNEL[doc] = "Declares the oldest version of the Linux kernel that the produced binaries must support."
  7868. </info>
  7869. <glossdef>
  7870. <para role="glossdeffirst">
  7871. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7872. Declares the oldest version of the Linux kernel that the
  7873. produced binaries must support.
  7874. This variable is passed into the build of the Embedded
  7875. GNU C Library (<filename>glibc</filename>).
  7876. </para>
  7877. <para>
  7878. The default for this variable comes from the
  7879. <filename>meta/conf/bitbake.conf</filename> configuration
  7880. file.
  7881. You can override this default by setting the variable
  7882. in a custom distribution configuration file.
  7883. </para>
  7884. </glossdef>
  7885. </glossentry>
  7886. <glossentry id='var-OVERRIDES'><glossterm>OVERRIDES</glossterm>
  7887. <info>
  7888. OVERRIDES[doc] = "A colon-separated list of overrides that currently apply."
  7889. </info>
  7890. <glossdef>
  7891. <para role="glossdeffirst">
  7892. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7893. A colon-separated list of overrides that currently apply.
  7894. Overrides are a BitBake mechanism that allows variables to
  7895. be selectively overridden at the end of parsing.
  7896. The set of overrides in <filename>OVERRIDES</filename>
  7897. represents the "state" during building, which includes
  7898. the current recipe being built, the machine for which
  7899. it is being built, and so forth.
  7900. </para>
  7901. <para>
  7902. As an example, if the string "an-override" appears as an
  7903. element in the colon-separated list in
  7904. <filename>OVERRIDES</filename>, then the following
  7905. assignment will override <filename>FOO</filename> with the
  7906. value "overridden" at the end of parsing:
  7907. <literallayout class='monospaced'>
  7908. FOO_an-override = "overridden"
  7909. </literallayout>
  7910. See the
  7911. "<ulink url='&YOCTO_DOCS_BB_URL;#conditional-syntax-overrides'>Conditional Syntax (Overrides)</ulink>"
  7912. section in the BitBake User Manual for more information on
  7913. the overrides mechanism.
  7914. </para>
  7915. <para>
  7916. The default value of <filename>OVERRIDES</filename>
  7917. includes the values of the
  7918. <link linkend='var-CLASSOVERRIDE'><filename>CLASSOVERRIDE</filename></link>,
  7919. <link linkend='var-MACHINEOVERRIDES'><filename>MACHINEOVERRIDES</filename></link>,
  7920. and
  7921. <link linkend='var-DISTROOVERRIDES'><filename>DISTROOVERRIDES</filename></link>
  7922. variables.
  7923. Another important override included by default is
  7924. <filename>pn-${PN}</filename>.
  7925. This override allows variables to be set for a single
  7926. recipe within configuration (<filename>.conf</filename>)
  7927. files.
  7928. Here is an example:
  7929. <literallayout class='monospaced'>
  7930. FOO_pn-myrecipe = "myrecipe-specific value"
  7931. </literallayout>
  7932. <note><title>Tip</title>
  7933. An easy way to see what overrides apply is to search for
  7934. <filename>OVERRIDES</filename> in the output of the
  7935. <filename>bitbake -e</filename> command.
  7936. See the
  7937. "<link linkend='usingpoky-debugging-viewing-variable-values'>Viewing Variable Values</link>"
  7938. section for more information.
  7939. </note>
  7940. </para>
  7941. </glossdef>
  7942. </glossentry>
  7943. </glossdiv>
  7944. <glossdiv id='var-glossary-p'><title>P</title>
  7945. <glossentry id='var-P'><glossterm>P</glossterm>
  7946. <info>
  7947. P[doc] = "The recipe name and version. P is comprised of ${PN}-${PV}."
  7948. </info>
  7949. <glossdef>
  7950. <para role="glossdeffirst">
  7951. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7952. The recipe name and version.
  7953. <filename>P</filename> is comprised of the following:
  7954. <literallayout class='monospaced'>
  7955. ${PN}-${PV}
  7956. </literallayout>
  7957. </para>
  7958. </glossdef>
  7959. </glossentry>
  7960. <glossentry id='var-PACKAGE_ARCH'><glossterm>PACKAGE_ARCH</glossterm>
  7961. <info>
  7962. PACKAGE_ARCH[doc] = "The architecture of the resulting package or packages."
  7963. </info>
  7964. <glossdef>
  7965. <para role="glossdeffirst">
  7966. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7967. The architecture of the resulting package or packages.
  7968. </para>
  7969. <para>
  7970. By default, the value of this variable is set to
  7971. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>
  7972. when building for the target,
  7973. <filename>BUILD_ARCH</filename> when building for the
  7974. build host and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building
  7975. for the SDK.
  7976. However, if your recipe's output packages are built
  7977. specific to the target machine rather than general for
  7978. the architecture of the machine, you should set
  7979. <filename>PACKAGE_ARCH</filename> to the value of
  7980. <link linkend='var-MACHINE_ARCH'><filename>MACHINE_ARCH</filename></link>
  7981. in the recipe as follows:
  7982. <literallayout class='monospaced'>
  7983. PACKAGE_ARCH = "${MACHINE_ARCH}"
  7984. </literallayout>
  7985. </para>
  7986. </glossdef>
  7987. </glossentry>
  7988. <glossentry id='var-PACKAGE_ARCHS'><glossterm>PACKAGE_ARCHS</glossterm>
  7989. <info>
  7990. PACKAGE_ARCHS[doc] = "A list of architectures compatible with the given target in order of priority."
  7991. </info>
  7992. <glossdef>
  7993. <para role="glossdeffirst">
  7994. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7995. Specifies a list of architectures compatible with
  7996. the target machine.
  7997. This variable is set automatically and should not
  7998. normally be hand-edited.
  7999. Entries are separated using spaces and listed in order
  8000. of priority.
  8001. The default value for
  8002. <filename>PACKAGE_ARCHS</filename> is "all any noarch
  8003. ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  8004. </para>
  8005. </glossdef>
  8006. </glossentry>
  8007. <glossentry id='var-PACKAGE_BEFORE_PN'><glossterm>PACKAGE_BEFORE_PN</glossterm>
  8008. <info>
  8009. PACKAGE_BEFORE_PN[doc] = "Enables easily adding packages to PACKAGES before ${PN} so that the packages can pick up files that would normally be included in the default package."
  8010. </info>
  8011. <glossdef>
  8012. <para role="glossdeffirst">
  8013. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8014. Enables easily adding packages to
  8015. <filename><link linkend='var-PACKAGES'>PACKAGES</link></filename>
  8016. before <filename>${<link linkend='var-PN'>PN</link>}</filename>
  8017. so that those added packages can pick up files that would normally be
  8018. included in the default package.
  8019. </para>
  8020. </glossdef>
  8021. </glossentry>
  8022. <glossentry id='var-PACKAGE_CLASSES'><glossterm>PACKAGE_CLASSES</glossterm>
  8023. <info>
  8024. PACKAGE_CLASSES[doc] = "This variable specifies the package manager to use when packaging data. It is set in the conf/local.conf file in the Build Directory."
  8025. </info>
  8026. <glossdef>
  8027. <para role="glossdeffirst">
  8028. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8029. This variable, which is set in the
  8030. <filename>local.conf</filename> configuration file found in
  8031. the <filename>conf</filename> folder of the
  8032. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>,
  8033. specifies the package manager the OpenEmbedded build system
  8034. uses when packaging data.
  8035. </para>
  8036. <para>
  8037. You can provide one or more of the following arguments for
  8038. the variable:
  8039. <literallayout class='monospaced'>
  8040. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk package_tar"
  8041. </literallayout>
  8042. <note><title>Warning</title>
  8043. While it is a legal option, the
  8044. <filename>package_tar</filename> class is broken
  8045. and is not supported.
  8046. It is recommended that you do not use it.
  8047. </note>
  8048. The build system uses only the first argument in the list
  8049. as the package manager when creating your image or SDK.
  8050. However, packages will be created using any additional
  8051. packaging classes you specify.
  8052. For example, if you use the following in your
  8053. <filename>local.conf</filename> file:
  8054. <literallayout class='monospaced'>
  8055. PACKAGE_CLASSES ?= "package_ipk"
  8056. </literallayout>
  8057. The OpenEmbedded build system uses the IPK package manager
  8058. to create your image or SDK.
  8059. </para>
  8060. <para>
  8061. For information on packaging and build performance effects
  8062. as a result of the package manager in use, see the
  8063. "<link linkend='ref-classes-package'><filename>package.bbclass</filename></link>"
  8064. section.
  8065. </para>
  8066. </glossdef>
  8067. </glossentry>
  8068. <glossentry id='var-PACKAGE_DEBUG_SPLIT_STYLE'><glossterm>PACKAGE_DEBUG_SPLIT_STYLE</glossterm>
  8069. <info>
  8070. PACKAGE_DEBUG_SPLIT_STYLE[doc] = "Determines how to split up the binary and debug information when creating *-dbg packages to be used with the GNU Project Debugger (GDB)."
  8071. </info>
  8072. <glossdef>
  8073. <para role="glossdeffirst">
  8074. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8075. Determines how to split up the binary and debug information
  8076. when creating <filename>*-dbg</filename> packages to be
  8077. used with the GNU Project Debugger (GDB).
  8078. </para>
  8079. <para>
  8080. With the
  8081. <filename>PACKAGE_DEBUG_SPLIT_STYLE</filename> variable,
  8082. you can control where debug information, which can include
  8083. or exclude source files, is stored:
  8084. <itemizedlist>
  8085. <listitem><para>
  8086. ".debug": Debug symbol files are placed next
  8087. to the binary in a <filename>.debug</filename>
  8088. directory on the target.
  8089. For example, if a binary is installed into
  8090. <filename>/bin</filename>, the corresponding debug
  8091. symbol files are installed in
  8092. <filename>/bin/.debug</filename>.
  8093. Source files are placed in
  8094. <filename>/usr/src/debug</filename>.
  8095. This is the default behavior.
  8096. </para></listitem>
  8097. <listitem><para>
  8098. "debug-file-directory": Debug symbol files are
  8099. placed under <filename>/usr/lib/debug</filename>
  8100. on the target, and separated by the path from where
  8101. the binary is installed.
  8102. For example, if a binary is installed in
  8103. <filename>/bin</filename>, the corresponding debug
  8104. symbols are installed in
  8105. <filename>/usr/lib/debug/bin</filename>.
  8106. Source files are placed in
  8107. <filename>/usr/src/debug</filename>.
  8108. </para></listitem>
  8109. <listitem><para>
  8110. "debug-without-src": The same behavior as
  8111. ".debug" previously described with the exception
  8112. that no source files are installed.
  8113. </para></listitem>.
  8114. </itemizedlist>
  8115. </para>
  8116. <para>
  8117. You can find out more about debugging using GDB by reading
  8118. the
  8119. "<ulink url='&YOCTO_DOCS_DEV_URL;#platdev-gdb-remotedebug'>Debugging With the GNU Project Debugger (GDB) Remotely</ulink>"
  8120. section in the Yocto Project Development Manual.
  8121. </para>
  8122. </glossdef>
  8123. </glossentry>
  8124. <glossentry id='var-PACKAGE_EXCLUDE_COMPLEMENTARY'><glossterm>PACKAGE_EXCLUDE_COMPLEMENTARY</glossterm>
  8125. <info>
  8126. PACKAGE_EXCLUDE_COMPLEMENTARY[doc] = "Prevents specific packages from being installed when you are installing complementary packages."
  8127. </info>
  8128. <glossdef>
  8129. <para role="glossdeffirst">
  8130. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8131. Prevents specific packages from being installed when
  8132. you are installing complementary packages.
  8133. </para>
  8134. <para>
  8135. You might find that you want to prevent installing certain
  8136. packages when you are installing complementary packages.
  8137. For example, if you are using
  8138. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  8139. to install <filename>dev-pkgs</filename>, you might not want
  8140. to install all packages from a particular multilib.
  8141. If you find yourself in this situation, you can use the
  8142. <filename>PACKAGE_EXCLUDE_COMPLEMENTARY</filename> variable
  8143. to specify regular expressions to match the packages you
  8144. want to exclude.
  8145. </para>
  8146. </glossdef>
  8147. </glossentry>
  8148. <glossentry id='var-PACKAGE_EXCLUDE'><glossterm>PACKAGE_EXCLUDE</glossterm>
  8149. <info>
  8150. PACKAGE_EXCLUDE[doc] = "Packages to exclude from the installation. If a listed package is required, an error is generated."
  8151. </info>
  8152. <glossdef>
  8153. <para role="glossdeffirst">
  8154. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8155. Lists packages that should not be installed into an image.
  8156. For example:
  8157. <literallayout class='monospaced'>
  8158. PACKAGE_EXCLUDE = "<replaceable>package_name</replaceable> <replaceable>package_name</replaceable> <replaceable>package_name</replaceable> ..."
  8159. </literallayout>
  8160. </para>
  8161. <para>
  8162. You can set this variable globally in your
  8163. <filename>local.conf</filename> file or you can attach it to
  8164. a specific image recipe by using the recipe name override:
  8165. <literallayout class='monospaced'>
  8166. PACKAGE_EXCLUDE_pn-<replaceable>target_image</replaceable> = "<replaceable>package_name</replaceable>"
  8167. </literallayout>
  8168. </para>
  8169. <para>
  8170. If you choose to not install
  8171. a package using this variable and some other package is
  8172. dependent on it (i.e. listed in a recipe's
  8173. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  8174. variable), the OpenEmbedded build system generates a fatal
  8175. installation error.
  8176. Because the build system halts the process with a fatal
  8177. error, you can use the variable with an iterative
  8178. development process to remove specific components from a
  8179. system.
  8180. </para>
  8181. <para>
  8182. Support for this variable exists only when using the
  8183. IPK and RPM packaging backend.
  8184. Support does not exist for DEB.
  8185. </para>
  8186. <para>
  8187. See the
  8188. <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link>
  8189. and the
  8190. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>
  8191. variables for related information.
  8192. </para>
  8193. </glossdef>
  8194. </glossentry>
  8195. <glossentry id='var-PACKAGE_EXTRA_ARCHS'><glossterm>PACKAGE_EXTRA_ARCHS</glossterm>
  8196. <info>
  8197. PACKAGE_EXTRA_ARCHS[doc] = "Specifies the list of architectures compatible with the device CPU. This variable is useful when you build for several different devices that use miscellaneous processors."
  8198. </info>
  8199. <glossdef>
  8200. <para role="glossdeffirst">
  8201. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8202. Specifies the list of architectures compatible with the device CPU.
  8203. This variable is useful when you build for several different devices that use
  8204. miscellaneous processors such as XScale and ARM926-EJS.
  8205. </para>
  8206. </glossdef>
  8207. </glossentry>
  8208. <glossentry id='var-PACKAGE_FEED_ARCHS'><glossterm>PACKAGE_FEED_ARCHS</glossterm>
  8209. <info>
  8210. PACKAGE_FEED_ARCHS[doc] = "Specifies user-defined package architectures when constructing package feed URIs."
  8211. </info>
  8212. <glossdef>
  8213. <para role="glossdeffirst">
  8214. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8215. Specifies the package architectures used as part of the
  8216. package feed URIs during the build.
  8217. The <filename>PACKAGE_FEED_ARCHS</filename> variable is
  8218. appended to the final package feed URI, which is constructed
  8219. using the
  8220. <link linkend='var-PACKAGE_FEED_URIS'><filename>PACKAGE_FEED_URIS</filename></link>
  8221. and
  8222. <link linkend='var-PACKAGE_FEED_BASE_PATHS'><filename>PACKAGE_FEED_BASE_PATHS</filename></link>
  8223. variables.
  8224. </para>
  8225. <para>
  8226. Consider the following example where the
  8227. <filename>PACKAGE_FEED_URIS</filename>,
  8228. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  8229. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  8230. defined in your <filename>local.conf</filename> file:
  8231. <literallayout class='monospaced'>
  8232. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  8233. https://example.com/packagerepos/updates"
  8234. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  8235. PACKAGE_FEED_ARCHS = "all core2-64"
  8236. </literallayout>
  8237. Given these settings, the resulting package feeds are
  8238. as follows:
  8239. <literallayout class='monospaced'>
  8240. https://example.com/packagerepos/release/rpm/all
  8241. https://example.com/packagerepos/release/rpm/core2-64
  8242. https://example.com/packagerepos/release/rpm-dev/all
  8243. https://example.com/packagerepos/release/rpm-dev/core2-64
  8244. https://example.com/packagerepos/updates/rpm/all
  8245. https://example.com/packagerepos/updates/rpm/core2-64
  8246. https://example.com/packagerepos/updates/rpm-dev/all
  8247. https://example.com/packagerepos/updates/rpm-dev/core2-64
  8248. </literallayout>
  8249. </para>
  8250. </glossdef>
  8251. </glossentry>
  8252. <glossentry id='var-PACKAGE_FEED_BASE_PATHS'><glossterm>PACKAGE_FEED_BASE_PATHS</glossterm>
  8253. <info>
  8254. PACKAGE_FEED_BASE_PATHS[doc] = "Specifies base path used when constructing package feed URIs."
  8255. </info>
  8256. <glossdef>
  8257. <para role="glossdeffirst">
  8258. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8259. Specifies the base path used when constructing package feed
  8260. URIs.
  8261. The <filename>PACKAGE_FEED_BASE_PATHS</filename> variable
  8262. makes up the middle portion of a package feed URI used
  8263. by the OpenEmbedded build system.
  8264. The base path lies between the
  8265. <link linkend='var-PACKAGE_FEED_URIS'><filename>PACKAGE_FEED_URIS</filename></link>
  8266. and
  8267. <link linkend='var-PACKAGE_FEED_ARCHS'><filename>PACKAGE_FEED_ARCHS</filename></link>
  8268. variables.
  8269. </para>
  8270. <para>
  8271. Consider the following example where the
  8272. <filename>PACKAGE_FEED_URIS</filename>,
  8273. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  8274. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  8275. defined in your <filename>local.conf</filename> file:
  8276. <literallayout class='monospaced'>
  8277. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  8278. https://example.com/packagerepos/updates"
  8279. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  8280. PACKAGE_FEED_ARCHS = "all core2-64"
  8281. </literallayout>
  8282. Given these settings, the resulting package feeds are
  8283. as follows:
  8284. <literallayout class='monospaced'>
  8285. https://example.com/packagerepos/release/rpm/all
  8286. https://example.com/packagerepos/release/rpm/core2-64
  8287. https://example.com/packagerepos/release/rpm-dev/all
  8288. https://example.com/packagerepos/release/rpm-dev/core2-64
  8289. https://example.com/packagerepos/updates/rpm/all
  8290. https://example.com/packagerepos/updates/rpm/core2-64
  8291. https://example.com/packagerepos/updates/rpm-dev/all
  8292. https://example.com/packagerepos/updates/rpm-dev/core2-64
  8293. </literallayout>
  8294. </para>
  8295. </glossdef>
  8296. </glossentry>
  8297. <glossentry id='var-PACKAGE_FEED_URIS'><glossterm>PACKAGE_FEED_URIS</glossterm>
  8298. <info>
  8299. PACKAGE_FEED_URIS[doc] = "Specifies the front portion of the package feed URI used by the OpenEmbedded build system."
  8300. </info>
  8301. <glossdef>
  8302. <para role="glossdeffirst">
  8303. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8304. Specifies the front portion of the package feed URI
  8305. used by the OpenEmbedded build system.
  8306. Each final package feed URI is comprised of
  8307. <filename>PACKAGE_FEED_URIS</filename>,
  8308. <link linkend='var-PACKAGE_FEED_BASE_PATHS'><filename>PACKAGE_FEED_BASE_PATHS</filename></link>,
  8309. and
  8310. <link linkend='var-PACKAGE_FEED_ARCHS'><filename>PACKAGE_FEED_ARCHS</filename></link>
  8311. variables.
  8312. </para>
  8313. <para>
  8314. Consider the following example where the
  8315. <filename>PACKAGE_FEED_URIS</filename>,
  8316. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  8317. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  8318. defined in your <filename>local.conf</filename> file:
  8319. <literallayout class='monospaced'>
  8320. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  8321. https://example.com/packagerepos/updates"
  8322. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  8323. PACKAGE_FEED_ARCHS = "all core2-64"
  8324. </literallayout>
  8325. Given these settings, the resulting package feeds are
  8326. as follows:
  8327. <literallayout class='monospaced'>
  8328. https://example.com/packagerepos/release/rpm/all
  8329. https://example.com/packagerepos/release/rpm/core2-64
  8330. https://example.com/packagerepos/release/rpm-dev/all
  8331. https://example.com/packagerepos/release/rpm-dev/core2-64
  8332. https://example.com/packagerepos/updates/rpm/all
  8333. https://example.com/packagerepos/updates/rpm/core2-64
  8334. https://example.com/packagerepos/updates/rpm-dev/all
  8335. https://example.com/packagerepos/updates/rpm-dev/core2-64
  8336. </literallayout>
  8337. </para>
  8338. </glossdef>
  8339. </glossentry>
  8340. <glossentry id='var-PACKAGE_GROUP'><glossterm>PACKAGE_GROUP</glossterm>
  8341. <info>
  8342. PACKAGE_GROUP[doc] = "Defines one or more packages to include in an image when a specific item is included in IMAGE_FEATURES."
  8343. </info>
  8344. <glossdef>
  8345. <para role="glossdeffirst">
  8346. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8347. The <filename>PACKAGE_GROUP</filename> variable has been
  8348. renamed to
  8349. <link linkend='var-FEATURE_PACKAGES'><filename>FEATURE_PACKAGES</filename></link>.
  8350. See the variable description for
  8351. <filename>FEATURE_PACKAGES</filename> for information.
  8352. </para>
  8353. <para>
  8354. If if you use the <filename>PACKAGE_GROUP</filename>
  8355. variable, the OpenEmbedded build system issues a warning
  8356. message.
  8357. </para>
  8358. </glossdef>
  8359. </glossentry>
  8360. <glossentry id='var-PACKAGE_INSTALL'><glossterm>PACKAGE_INSTALL</glossterm>
  8361. <info>
  8362. PACKAGE_INSTALL[doc] = "List of the packages to be installed into the image. The variable is generally not user-defined and uses IMAGE_INSTALL as part of the list."
  8363. </info>
  8364. <glossdef>
  8365. <para role="glossdeffirst">
  8366. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8367. The final list of packages passed to the package manager
  8368. for installation into the image.
  8369. </para>
  8370. <para>
  8371. Because the package manager controls actual installation
  8372. of all packages, the list of packages passed using
  8373. <filename>PACKAGE_INSTALL</filename> is not the final list
  8374. of packages that are actually installed.
  8375. This variable is internal to the image construction
  8376. code.
  8377. Consequently, in general, you should use the
  8378. <link linkend='var-IMAGE_INSTALL'><filename>IMAGE_INSTALL</filename></link>
  8379. variable to specify packages for installation.
  8380. The exception to this is when working with
  8381. the
  8382. <link linkend='images-core-image-minimal-initramfs'><filename>core-image-minimal-initramfs</filename></link>
  8383. image.
  8384. When working with an initial RAM disk (initramfs)
  8385. image, use the <filename>PACKAGE_INSTALL</filename>
  8386. variable.
  8387. </para>
  8388. </glossdef>
  8389. </glossentry>
  8390. <glossentry id='var-PACKAGE_INSTALL_ATTEMPTONLY'><glossterm>PACKAGE_INSTALL_ATTEMPTONLY</glossterm>
  8391. <info>
  8392. PACKAGE_INSTALL_ATTEMPTONLY[doc] = "List of packages attempted to be installed when creating an image. If a listed package fails to install, the build system does not generate an error. This variable is generally not user-defined."
  8393. </info>
  8394. <glossdef>
  8395. <para role="glossdeffirst">
  8396. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8397. Specifies a list of packages the OpenEmbedded build
  8398. system attempts to install when creating an image.
  8399. If a listed package fails to install, the build system
  8400. does not generate an error.
  8401. This variable is generally not user-defined.
  8402. </para>
  8403. </glossdef>
  8404. </glossentry>
  8405. <glossentry id='var-PACKAGE_PREPROCESS_FUNCS'><glossterm>PACKAGE_PREPROCESS_FUNCS</glossterm>
  8406. <info>
  8407. PACKAGE_PREPROCESS_FUNCS[doc] = "Specifies a list of functions run to pre-process the PKGD directory prior to splitting the files out to individual packages."
  8408. </info>
  8409. <glossdef>
  8410. <para role="glossdeffirst">
  8411. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8412. Specifies a list of functions run to pre-process the
  8413. <link linkend='var-PKGD'><filename>PKGD</filename></link>
  8414. directory prior to splitting the files out to individual
  8415. packages.
  8416. </para>
  8417. </glossdef>
  8418. </glossentry>
  8419. <glossentry id='var-PACKAGECONFIG'><glossterm>PACKAGECONFIG</glossterm>
  8420. <info>
  8421. PACKAGECONFIG[doc] = "This variable provides a means of enabling or disabling features of a recipe on a per-recipe basis."
  8422. </info>
  8423. <glossdef>
  8424. <para role="glossdeffirst">
  8425. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8426. This variable provides a means of enabling or disabling
  8427. features of a recipe on a per-recipe basis.
  8428. <filename>PACKAGECONFIG</filename> blocks are defined
  8429. in recipes when you specify features and then arguments
  8430. that define feature behaviors.
  8431. Here is the basic block structure:
  8432. <literallayout class='monospaced'>
  8433. PACKAGECONFIG ??= "f1 f2 f3 ..."
  8434. PACKAGECONFIG[f1] = "--with-f1,--without-f1,build-deps-f1,rt-deps-f1"
  8435. PACKAGECONFIG[f2] = "--with-f2,--without-f2,build-deps-f2,rt-deps-f2"
  8436. PACKAGECONFIG[f3] = "--with-f3,--without-f3,build-deps-f3,rt-deps-f3"
  8437. </literallayout>
  8438. </para>
  8439. <para>
  8440. The <filename>PACKAGECONFIG</filename>
  8441. variable itself specifies a space-separated list of the
  8442. features to enable.
  8443. Following the features, you can determine the behavior of
  8444. each feature by providing up to four order-dependent
  8445. arguments, which are separated by commas.
  8446. You can omit any argument you like but must retain the
  8447. separating commas.
  8448. The order is important and specifies the following:
  8449. <orderedlist>
  8450. <listitem><para>Extra arguments
  8451. that should be added to the configure script
  8452. argument list
  8453. (<link linkend='var-EXTRA_OECONF'><filename>EXTRA_OECONF</filename></link>
  8454. or
  8455. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>)
  8456. if the feature is enabled.</para></listitem>
  8457. <listitem><para>Extra arguments
  8458. that should be added to <filename>EXTRA_OECONF</filename>
  8459. or <filename>PACKAGECONFIG_CONFARGS</filename>
  8460. if the feature is disabled.
  8461. </para></listitem>
  8462. <listitem><para>Additional build dependencies
  8463. (<link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>)
  8464. that should be added if the feature is enabled.
  8465. </para></listitem>
  8466. <listitem><para>Additional runtime dependencies
  8467. (<link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>)
  8468. that should be added if the feature is enabled.
  8469. </para></listitem>
  8470. </orderedlist>
  8471. </para>
  8472. <para>
  8473. Consider the following
  8474. <filename>PACKAGECONFIG</filename> block taken from the
  8475. <filename>librsvg</filename> recipe.
  8476. In this example the feature is <filename>croco</filename>,
  8477. which has three arguments that determine the feature's
  8478. behavior.
  8479. <literallayout class='monospaced'>
  8480. PACKAGECONFIG ??= "croco"
  8481. PACKAGECONFIG[croco] = "--with-croco,--without-croco,libcroco"
  8482. </literallayout>
  8483. The <filename>--with-croco</filename> and
  8484. <filename>libcroco</filename> arguments apply only if
  8485. the feature is enabled.
  8486. In this case, <filename>--with-croco</filename> is
  8487. added to the configure script argument list and
  8488. <filename>libcroco</filename> is added to
  8489. <filename><link linkend='var-DEPENDS'>DEPENDS</link></filename>.
  8490. On the other hand, if the feature is disabled say through
  8491. a <filename>.bbappend</filename> file in another layer, then
  8492. the second argument <filename>--without-croco</filename> is
  8493. added to the configure script rather than
  8494. <filename>--with-croco</filename>.
  8495. </para>
  8496. <para>
  8497. The basic <filename>PACKAGECONFIG</filename> structure
  8498. previously described holds true regardless of whether you
  8499. are creating a block or changing a block.
  8500. When creating a block, use the structure inside your
  8501. recipe.
  8502. </para>
  8503. <para>
  8504. If you want to change an existing
  8505. <filename>PACKAGECONFIG</filename> block, you can do so
  8506. one of two ways:
  8507. <itemizedlist>
  8508. <listitem><para><emphasis>Append file:</emphasis>
  8509. Create an append file named
  8510. <replaceable>recipename</replaceable><filename>.bbappend</filename>
  8511. in your layer and override the value of
  8512. <filename>PACKAGECONFIG</filename>.
  8513. You can either completely override the variable:
  8514. <literallayout class='monospaced'>
  8515. PACKAGECONFIG="f4 f5"
  8516. </literallayout>
  8517. Or, you can just append the variable:
  8518. <literallayout class='monospaced'>
  8519. PACKAGECONFIG_append = " f4"
  8520. </literallayout></para></listitem>
  8521. <listitem><para><emphasis>Configuration file:</emphasis>
  8522. This method is identical to changing the block
  8523. through an append file except you edit your
  8524. <filename>local.conf</filename> or
  8525. <filename><replaceable>mydistro</replaceable>.conf</filename> file.
  8526. As with append files previously described,
  8527. you can either completely override the variable:
  8528. <literallayout class='monospaced'>
  8529. PACKAGECONFIG_pn-<replaceable>recipename</replaceable>="f4 f5"
  8530. </literallayout>
  8531. Or, you can just amend the variable:
  8532. <literallayout class='monospaced'>
  8533. PACKAGECONFIG_append_pn-<replaceable>recipename</replaceable> = " f4"
  8534. </literallayout></para></listitem>
  8535. </itemizedlist>
  8536. </para>
  8537. </glossdef>
  8538. </glossentry>
  8539. <glossentry id='var-PACKAGECONFIG_CONFARGS'><glossterm>PACKAGECONFIG_CONFARGS</glossterm>
  8540. <info>
  8541. PACKAGECONFIG_CONFARGS[doc] = "A space-separated list of configuration options generated from PACKAGECONFIG."
  8542. </info>
  8543. <glossdef>
  8544. <para role="glossdeffirst">
  8545. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8546. A space-separated list of configuration options generated
  8547. from the
  8548. <link linkend='var-PACKAGECONFIG'><filename>PACKAGECONFIG</filename></link>
  8549. setting.
  8550. This list of options helps other classes and
  8551. recipes take advantage of the
  8552. <filename>PACKAGECONFIG</filename> mechanism without
  8553. having to include options from
  8554. <link linkend='var-EXTRA_OECONF'><filename>EXTRA_OECONF</filename></link>.
  8555. </para>
  8556. <para>
  8557. To illustrate how to use
  8558. <filename>PACKAGECONFIG_CONFARGS</filename>, consider the
  8559. following example:
  8560. <literallayout class='monospaced'>
  8561. PACKAGECONFIG_CONFARGS = " \
  8562. -prefix ${prefix} \
  8563. -sysroot ${STAGING_DIR_NATIVE} \
  8564. -no-gcc-sysroot
  8565. "
  8566. </literallayout>
  8567. In the previous example,
  8568. <filename>PACKAGECONFIG_CONFARGS</filename> is set with
  8569. three configuration options that can be passed using the
  8570. <filename>PACKAGECONFIG</filename> mechanism, thus
  8571. avoiding having to use <filename>EXTRA_OECONF</filename>.
  8572. </para>
  8573. <para>
  8574. For additional information, see the
  8575. <link linkend='var-PACKAGECONFIG'><filename>PACKAGECONFIG</filename></link>
  8576. variable.
  8577. </para>
  8578. </glossdef>
  8579. </glossentry>
  8580. <glossentry id='var-PACKAGEGROUP_DISABLE_COMPLEMENTARY'><glossterm>PACKAGEGROUP_DISABLE_COMPLEMENTARY</glossterm>
  8581. <info>
  8582. PACKAGEGROUP_DISABLE_COMPLEMENTARY[doc] = "Prevents automatic creation of the normal complementary packages such as -dev and -dbg in a packagegroup recipe."
  8583. </info>
  8584. <glossdef>
  8585. <para role="glossdeffirst">
  8586. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8587. For recipes inheriting the
  8588. <link linkend='ref-classes-packagegroup'><filename>packagegroup</filename></link>
  8589. class, setting
  8590. <filename>PACKAGEGROUP_DISABLE_COMPLEMENTARY</filename> to
  8591. "1" specifies that the normal complementary packages
  8592. (i.e. <filename>-dev</filename>,
  8593. <filename>-dbg</filename>, and so forth) should not be
  8594. automatically created by the
  8595. <filename>packagegroup</filename> recipe, which is the
  8596. default behavior.
  8597. </para>
  8598. </glossdef>
  8599. </glossentry>
  8600. <glossentry id='var-PACKAGES'><glossterm>PACKAGES</glossterm>
  8601. <info>
  8602. PACKAGES[doc] = "The list of packages to be created from the recipe."
  8603. </info>
  8604. <glossdef>
  8605. <para role="glossdeffirst">
  8606. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8607. The list of packages to be created from the recipe.
  8608. The default value is the following:
  8609. <literallayout class='monospaced'>
  8610. ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  8611. </literallayout>
  8612. </para>
  8613. <para>
  8614. During packaging, the
  8615. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  8616. task goes through <filename>PACKAGES</filename> and uses
  8617. the
  8618. <link linkend='var-FILES'><filename>FILES</filename></link>
  8619. variable corresponding to each package to assign files to
  8620. the package.
  8621. If a file matches the <filename>FILES</filename> variable
  8622. for more than one package in <filename>PACKAGES</filename>,
  8623. it will be assigned to the earliest (leftmost) package.
  8624. </para>
  8625. </glossdef>
  8626. </glossentry>
  8627. <glossentry id='var-PACKAGES_DYNAMIC'><glossterm>PACKAGES_DYNAMIC</glossterm>
  8628. <info>
  8629. PACKAGES_DYNAMIC[doc] = "A promise that your recipe satisfies runtime dependencies for optional modules that are found in other recipes."
  8630. </info>
  8631. <glossdef>
  8632. <para role="glossdeffirst">
  8633. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8634. A promise that your recipe satisfies runtime dependencies
  8635. for optional modules that are found in other recipes.
  8636. <filename>PACKAGES_DYNAMIC</filename>
  8637. does not actually satisfy the dependencies, it only states that
  8638. they should be satisfied.
  8639. For example, if a hard, runtime dependency
  8640. (<link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>)
  8641. of another package is satisfied
  8642. at build time through the <filename>PACKAGES_DYNAMIC</filename>
  8643. variable, but a package with the module name is never actually
  8644. produced, then the other package will be broken.
  8645. Thus, if you attempt to include that package in an image,
  8646. you will get a dependency failure from the packaging system
  8647. during the
  8648. <link linkend='ref-tasks-rootfs'><filename>do_rootfs</filename></link>
  8649. task.
  8650. </para>
  8651. <para>
  8652. Typically, if there is a chance that such a situation can
  8653. occur and the package that is not created is valid
  8654. without the dependency being satisfied, then you should use
  8655. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link>
  8656. (a soft runtime dependency) instead of
  8657. <filename>RDEPENDS</filename>.
  8658. </para>
  8659. <para>
  8660. For an example of how to use the <filename>PACKAGES_DYNAMIC</filename>
  8661. variable when you are splitting packages, see the
  8662. "<ulink url='&YOCTO_DOCS_DEV_URL;#handling-optional-module-packaging'>Handling Optional Module Packaging</ulink>" section
  8663. in the Yocto Project Development Manual.
  8664. </para>
  8665. </glossdef>
  8666. </glossentry>
  8667. <glossentry id='var-PACKAGESPLITFUNCS'><glossterm>PACKAGESPLITFUNCS</glossterm>
  8668. <info>
  8669. PACKAGESPLITFUNCS[doc] = "Specifies a list of functions run to perform additional splitting of files into individual packages."
  8670. </info>
  8671. <glossdef>
  8672. <para role="glossdeffirst">
  8673. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8674. Specifies a list of functions run to perform additional
  8675. splitting of files into individual packages.
  8676. Recipes can either prepend to this variable or prepend
  8677. to the <filename>populate_packages</filename> function
  8678. in order to perform additional package splitting.
  8679. In either case, the function should set
  8680. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>,
  8681. <link linkend='var-FILES'><filename>FILES</filename></link>,
  8682. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  8683. and other packaging variables appropriately in order to
  8684. perform the desired splitting.
  8685. </para>
  8686. </glossdef>
  8687. </glossentry>
  8688. <glossentry id='var-PARALLEL_MAKE'><glossterm>PARALLEL_MAKE</glossterm>
  8689. <info>
  8690. PARALLEL_MAKE[doc] = "Specifies extra options that are passed to the make command during the compile tasks. This variable is usually in the form -j x, where x represents the maximum number of parallel threads make can run."
  8691. </info>
  8692. <glossdef>
  8693. <para role="glossdeffirst">
  8694. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8695. Extra options passed to the <filename>make</filename>
  8696. command during the
  8697. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>
  8698. task in order to specify parallel compilation on the local
  8699. build host.
  8700. This variable is usually in the form "-j <replaceable>x</replaceable>",
  8701. where <replaceable>x</replaceable> represents the maximum
  8702. number of parallel threads <filename>make</filename> can
  8703. run.
  8704. <note><title>Caution</title>
  8705. In order for <filename>PARALLEL_MAKE</filename> to be
  8706. effective, <filename>make</filename> must be called
  8707. with
  8708. <filename>${</filename><link linkend='var-EXTRA_OEMAKE'><filename>EXTRA_OEMAKE</filename></link><filename>}</filename>.
  8709. An easy way to ensure this is to use the
  8710. <filename>oe_runmake</filename> function.
  8711. </note>
  8712. </para>
  8713. <para>
  8714. By default, the OpenEmbedded build system automatically
  8715. sets this variable to be equal to the number of cores the
  8716. build system uses.
  8717. <note>
  8718. If the software being built experiences dependency
  8719. issues during the <filename>do_compile</filename>
  8720. task that result in race conditions, you can clear
  8721. the <filename>PARALLEL_MAKE</filename> variable within
  8722. the recipe as a workaround.
  8723. For information on addressing race conditions, see the
  8724. "<ulink url='&YOCTO_DOCS_DEV_URL;#debugging-parallel-make-races'>Debugging Parallel Make Races</ulink>"
  8725. section in the Yocto Project Development Manual.
  8726. </note>
  8727. For single socket systems (i.e. one CPU), you should not
  8728. have to override this variable to gain optimal parallelism
  8729. during builds.
  8730. However, if you have very large systems that employ
  8731. multiple physical CPUs, you might want to make sure the
  8732. <filename>PARALLEL_MAKE</filename> variable is not
  8733. set higher than "-j 20".
  8734. </para>
  8735. <para>
  8736. For more information on speeding up builds, see the
  8737. "<link linkend='speeding-up-the-build'>Speeding Up the Build</link>"
  8738. section.
  8739. </para>
  8740. </glossdef>
  8741. </glossentry>
  8742. <glossentry id='var-PARALLEL_MAKEINST'><glossterm>PARALLEL_MAKEINST</glossterm>
  8743. <info>
  8744. PARALLEL_MAKEINST[doc] = "Extra options passed to the make install command during the do_install task in order to specify parallel installation."
  8745. </info>
  8746. <glossdef>
  8747. <para role="glossdeffirst">
  8748. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8749. Extra options passed to the
  8750. <filename>make install</filename> command during the
  8751. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  8752. task in order to specify parallel installation.
  8753. This variable defaults to the value of
  8754. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>.
  8755. <note><title>Notes and Cautions</title>
  8756. <para>In order for <filename>PARALLEL_MAKEINST</filename>
  8757. to be
  8758. effective, <filename>make</filename> must be called
  8759. with
  8760. <filename>${</filename><link linkend='var-EXTRA_OEMAKE'><filename>EXTRA_OEMAKE</filename></link><filename>}</filename>.
  8761. An easy way to ensure this is to use the
  8762. <filename>oe_runmake</filename> function.</para>
  8763. <para>If the software being built experiences
  8764. dependency issues during the
  8765. <filename>do_install</filename> task that result in
  8766. race conditions, you can clear the
  8767. <filename>PARALLEL_MAKEINST</filename> variable within
  8768. the recipe as a workaround.
  8769. For information on addressing race conditions, see the
  8770. "<ulink url='&YOCTO_DOCS_DEV_URL;#debugging-parallel-make-races'>Debugging Parallel Make Races</ulink>"
  8771. section in the Yocto Project Development Manual.</para>
  8772. </note>
  8773. </para>
  8774. </glossdef>
  8775. </glossentry>
  8776. <glossentry id='var-PATCHRESOLVE'><glossterm>PATCHRESOLVE</glossterm>
  8777. <info>
  8778. PATCHRESOLVE[doc] = "Enable or disable interactive patch resolution."
  8779. </info>
  8780. <glossdef>
  8781. <para role="glossdeffirst">
  8782. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8783. Determines the action to take when a patch fails.
  8784. You can set this variable to one of two values: "noop" and
  8785. "user".
  8786. </para>
  8787. <para>
  8788. The default value of "noop" causes the build to simply fail
  8789. when the OpenEmbedded build system cannot successfully
  8790. apply a patch.
  8791. Setting the value to "user" causes the build system to
  8792. launch a shell and places you in the right location so that
  8793. you can manually resolve the conflicts.
  8794. </para>
  8795. <para>
  8796. Set this variable in your
  8797. <filename>local.conf</filename> file.
  8798. </para>
  8799. </glossdef>
  8800. </glossentry>
  8801. <glossentry id='var-PATCHTOOL'><glossterm>PATCHTOOL</glossterm>
  8802. <info>
  8803. PATCHTOOL[doc] = "Specifies the utility used to apply patches for a recipe during do_patch."
  8804. </info>
  8805. <glossdef>
  8806. <para role="glossdeffirst">
  8807. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8808. Specifies the utility used to apply patches for a recipe
  8809. during the
  8810. <link linkend='ref-tasks-patch'><filename>do_patch</filename></link>
  8811. task.
  8812. You can specify one of three utilities: "patch", "quilt", or
  8813. "git".
  8814. The default utility used is "quilt" except for the
  8815. quilt-native recipe itself.
  8816. Because the quilt tool is not available at the
  8817. time quilt-native is being patched, it uses "patch".
  8818. </para>
  8819. <para>
  8820. If you wish to use an alternative patching tool, set the
  8821. variable in the recipe using one of the following:
  8822. <literallayout class='monospaced'>
  8823. PATCHTOOL = "patch"
  8824. PATCHTOOL = "quilt"
  8825. PATCHTOOL = "git"
  8826. </literallayout>
  8827. </para>
  8828. </glossdef>
  8829. </glossentry>
  8830. <glossentry id='var-PE'><glossterm>PE</glossterm>
  8831. <info>
  8832. PE[doc] = "The epoch of the recipe. The default value is '0'. The field is used to make upgrades possible when the versioning scheme changes in some backwards incompatible way."
  8833. </info>
  8834. <glossdef>
  8835. <para role="glossdeffirst">
  8836. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8837. The epoch of the recipe.
  8838. By default, this variable is unset.
  8839. The variable is used to make upgrades possible when the
  8840. versioning scheme changes in some backwards incompatible
  8841. way.
  8842. </para>
  8843. <para>
  8844. <filename>PE</filename> is the default value of the
  8845. <link linkend='var-PKGE'><filename>PKGE</filename></link>
  8846. variable.
  8847. </para>
  8848. </glossdef>
  8849. </glossentry>
  8850. <glossentry id='var-PF'><glossterm>PF</glossterm>
  8851. <info>
  8852. PF[doc] = "Specifies the recipe or package name and includes all version and revision numbers. This variable is comprised of ${PN}-${EXTENDPE}${PV}-${PR}."
  8853. </info>
  8854. <glossdef>
  8855. <para role="glossdeffirst">
  8856. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8857. Specifies the recipe or package name and includes all version and revision
  8858. numbers (i.e. <filename>glibc-2.13-r20+svnr15508/</filename> and
  8859. <filename>bash-4.2-r1/</filename>).
  8860. This variable is comprised of the following:
  8861. <literallayout class='monospaced'>
  8862. ${<link linkend='var-PN'>PN</link>}-${<link linkend='var-EXTENDPE'>EXTENDPE</link>}${<link linkend='var-PV'>PV</link>}-${<link linkend='var-PR'>PR</link>}
  8863. </literallayout>
  8864. </para>
  8865. </glossdef>
  8866. </glossentry>
  8867. <glossentry id='var-PIXBUF_PACKAGES'><glossterm>PIXBUF_PACKAGES</glossterm>
  8868. <info>
  8869. PIXBUF_PACKAGES[doc] = "When a recipe inherits the pixbufcache class, this variable identifies packages that contain the pixbuf loaders used with gdk-pixbuf."
  8870. </info>
  8871. <glossdef>
  8872. <para role="glossdeffirst">
  8873. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8874. When inheriting the
  8875. <link linkend='ref-classes-pixbufcache'><filename>pixbufcache</filename></link>
  8876. class, this variable identifies packages that contain
  8877. the pixbuf loaders used with
  8878. <filename>gdk-pixbuf</filename>.
  8879. By default, the <filename>pixbufcache</filename> class
  8880. assumes that the loaders are in the recipe's main package
  8881. (i.e. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  8882. Use this variable if the loaders you need are in a package
  8883. other than that main package.
  8884. </para>
  8885. </glossdef>
  8886. </glossentry>
  8887. <glossentry id='var-PKG'><glossterm>PKG</glossterm>
  8888. <info>
  8889. PKG[doc] = "The name of the resulting package created by the OpenEmbedded build system. When you use this variable, you must use a package name override."
  8890. </info>
  8891. <glossdef>
  8892. <para role="glossdeffirst">
  8893. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8894. The name of the resulting package created by the
  8895. OpenEmbedded build system.
  8896. <note>
  8897. When using the <filename>PKG</filename> variable, you
  8898. must use a package name override.
  8899. </note>
  8900. </para>
  8901. <para>
  8902. For example, when the
  8903. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  8904. class renames the output package, it does so by setting
  8905. <filename>PKG_<replaceable>packagename</replaceable></filename>.
  8906. </para>
  8907. </glossdef>
  8908. </glossentry>
  8909. <glossentry id='var-PKG_CONFIG_PATH'><glossterm>PKG_CONFIG_PATH</glossterm>
  8910. <info>
  8911. PKG_CONFIG_PATH[doc] = "Path to pkg-config files for the current build context."
  8912. </info>
  8913. <glossdef>
  8914. <para role="glossdeffirst">
  8915. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8916. The path to <filename>pkg-config</filename> files for the
  8917. current build context.
  8918. <filename>pkg-config</filename> reads this variable
  8919. from the environment.
  8920. </para>
  8921. </glossdef>
  8922. </glossentry>
  8923. <glossentry id='var-PKGD'><glossterm>PKGD</glossterm>
  8924. <info>
  8925. PKGD[doc] = "Points to the destination directory for files to be packaged before they are split into individual packages."
  8926. </info>
  8927. <glossdef>
  8928. <para role="glossdeffirst">
  8929. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8930. Points to the destination directory for files to be
  8931. packaged before they are split into individual packages.
  8932. This directory defaults to the following:
  8933. <literallayout class='monospaced'>
  8934. ${WORKDIR}/package
  8935. </literallayout>
  8936. </para>
  8937. <para>
  8938. Do not change this default.
  8939. </para>
  8940. </glossdef>
  8941. </glossentry>
  8942. <glossentry id='var-PKGDATA_DIR'><glossterm>PKGDATA_DIR</glossterm>
  8943. <info>
  8944. PKGDATA_DIR[doc] = "Points to a shared, global-state directory that holds data generated during the packaging process."
  8945. </info>
  8946. <glossdef>
  8947. <para role="glossdeffirst">
  8948. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8949. Points to a shared, global-state directory that holds data
  8950. generated during the packaging process.
  8951. During the packaging process, the
  8952. <link linkend='ref-tasks-packagedata'><filename>do_packagedata</filename></link>
  8953. task packages data for each recipe and installs it into
  8954. this temporary, shared area.
  8955. This directory defaults to the following:
  8956. <literallayout class='monospaced'>
  8957. ${STAGING_DIR_HOST}/pkgdata
  8958. </literallayout>
  8959. </para>
  8960. <para>
  8961. Do not change this default.
  8962. </para>
  8963. </glossdef>
  8964. </glossentry>
  8965. <glossentry id='var-PKGDEST'><glossterm>PKGDEST</glossterm>
  8966. <info>
  8967. PKGDEST[doc] = "Points to the parent directory for files to be packaged after they have been split into individual packages."
  8968. </info>
  8969. <glossdef>
  8970. <para role="glossdeffirst">
  8971. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8972. Points to the parent directory for files to be packaged
  8973. after they have been split into individual packages.
  8974. This directory defaults to the following:
  8975. <literallayout class='monospaced'>
  8976. ${WORKDIR}/packages-split
  8977. </literallayout>
  8978. </para>
  8979. <para>
  8980. Under this directory, the build system creates
  8981. directories for each package specified in
  8982. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>.
  8983. Do not change this default.
  8984. </para>
  8985. </glossdef>
  8986. </glossentry>
  8987. <glossentry id='var-PKGDESTWORK'><glossterm>PKGDESTWORK</glossterm>
  8988. <info>
  8989. PKGDESTWORK[doc] = "Points to a temporary work area used by the do_package task to write output from the do_packagedata task."
  8990. </info>
  8991. <glossdef>
  8992. <para role="glossdeffirst">
  8993. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8994. Points to a temporary work area used by the
  8995. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  8996. task to write output from the
  8997. <link linkend='ref-tasks-packagedata'><filename>do_packagedata</filename></link>
  8998. task.
  8999. The <filename>PKGDESTWORK</filename> location defaults to
  9000. the following:
  9001. <literallayout class='monospaced'>
  9002. ${WORKDIR}/pkgdata
  9003. </literallayout>
  9004. </para>
  9005. <para>
  9006. The <filename>do_packagedata</filename> task then packages
  9007. the data in the temporary work area and installs it into a
  9008. shared directory pointed to by
  9009. <link linkend='var-PKGDATA_DIR'><filename>PKGDATA_DIR</filename></link>.
  9010. </para>
  9011. <para>
  9012. Do not change this default.
  9013. </para>
  9014. </glossdef>
  9015. </glossentry>
  9016. <glossentry id='var-PKGE'><glossterm>PKGE</glossterm>
  9017. <info>
  9018. PKGE[doc] = "The epoch of the package(s) built by the recipe."
  9019. </info>
  9020. <glossdef>
  9021. <para role="glossdeffirst">
  9022. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9023. The epoch of the package(s) built by the recipe.
  9024. By default, <filename>PKGE</filename> is set to
  9025. <link linkend='var-PE'><filename>PE</filename></link>.
  9026. </para>
  9027. </glossdef>
  9028. </glossentry>
  9029. <glossentry id='var-PKGR'><glossterm>PKGR</glossterm>
  9030. <info>
  9031. PKGR[doc] = "The revision of the package(s) built by the recipe."
  9032. </info>
  9033. <glossdef>
  9034. <para role="glossdeffirst">
  9035. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9036. The revision of the package(s) built by the recipe.
  9037. By default, <filename>PKGR</filename> is set to
  9038. <link linkend='var-PR'><filename>PR</filename></link>.
  9039. </para>
  9040. </glossdef>
  9041. </glossentry>
  9042. <glossentry id='var-PKGV'><glossterm>PKGV</glossterm>
  9043. <info>
  9044. PKGV[doc] = "The version of the package(s) built by the recipe."
  9045. </info>
  9046. <glossdef>
  9047. <para role="glossdeffirst">
  9048. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9049. The version of the package(s) built by the
  9050. recipe.
  9051. By default, <filename>PKGV</filename> is set to
  9052. <link linkend='var-PV'><filename>PV</filename></link>.
  9053. </para>
  9054. </glossdef>
  9055. </glossentry>
  9056. <glossentry id='var-PN'><glossterm>PN</glossterm>
  9057. <info>
  9058. PN[doc] = "PN refers to a recipe name in the context of a file used by the OpenEmbedded build system as input to create a package. It refers to a package name in the context of a file created or produced by the OpenEmbedded build system."
  9059. </info>
  9060. <glossdef>
  9061. <para role="glossdeffirst">
  9062. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9063. This variable can have two separate functions depending on the context: a recipe
  9064. name or a resulting package name.
  9065. </para>
  9066. <para>
  9067. <filename>PN</filename> refers to a recipe name in the context of a file used
  9068. by the OpenEmbedded build system as input to create a package.
  9069. The name is normally extracted from the recipe file name.
  9070. For example, if the recipe is named
  9071. <filename>expat_2.0.1.bb</filename>, then the default value of <filename>PN</filename>
  9072. will be "expat".
  9073. </para>
  9074. <para>
  9075. The variable refers to a package name in the context of a file created or produced by the
  9076. OpenEmbedded build system.
  9077. </para>
  9078. <para>
  9079. If applicable, the <filename>PN</filename> variable also contains any special
  9080. suffix or prefix.
  9081. For example, using <filename>bash</filename> to build packages for the native
  9082. machine, <filename>PN</filename> is <filename>bash-native</filename>.
  9083. Using <filename>bash</filename> to build packages for the target and for Multilib,
  9084. <filename>PN</filename> would be <filename>bash</filename> and
  9085. <filename>lib64-bash</filename>, respectively.
  9086. </para>
  9087. </glossdef>
  9088. </glossentry>
  9089. <glossentry id='var-PNBLACKLIST'><glossterm>PNBLACKLIST</glossterm>
  9090. <info>
  9091. PNBLACKLIST[doc] = "Lists recipes you do not want the OpenEmbedded build system to build."
  9092. </info>
  9093. <glossdef>
  9094. <para role="glossdeffirst">
  9095. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9096. Lists recipes you do not want the OpenEmbedded build system
  9097. to build.
  9098. This variable works in conjunction with the
  9099. <link linkend='ref-classes-blacklist'><filename>blacklist</filename></link>
  9100. class, which the recipe must inherit globally.
  9101. </para>
  9102. <para>
  9103. To prevent a recipe from being built, inherit the class
  9104. globally and use the variable in your
  9105. <filename>local.conf</filename> file.
  9106. Here is an example that prevents
  9107. <filename>myrecipe</filename> from being built:
  9108. <literallayout class='monospaced'>
  9109. INHERIT += "blacklist"
  9110. PNBLACKLIST[myrecipe] = "Not supported by our organization."
  9111. </literallayout>
  9112. </para>
  9113. </glossdef>
  9114. </glossentry>
  9115. <glossentry id='var-POPULATE_SDK_POST_HOST_COMMAND'><glossterm>POPULATE_SDK_POST_HOST_COMMAND</glossterm>
  9116. <info>
  9117. POPULATE_SDK_POST_HOST_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system has created host part of the SDK."
  9118. </info>
  9119. <glossdef>
  9120. <para role="glossdeffirst">
  9121. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9122. Specifies a list of functions to call once the
  9123. OpenEmbedded build system has created the host part of
  9124. the SDK.
  9125. You can specify functions separated by semicolons:
  9126. <literallayout class='monospaced'>
  9127. POPULATE_SDK_POST_HOST_COMMAND += "<replaceable>function</replaceable>; ... "
  9128. </literallayout>
  9129. </para>
  9130. <para>
  9131. If you need to pass the SDK path to a command
  9132. within a function, you can use
  9133. <filename>${SDK_DIR}</filename>, which points to
  9134. the parent directory used by the OpenEmbedded build
  9135. system when creating SDK output.
  9136. See the
  9137. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  9138. variable for more information.
  9139. </para>
  9140. </glossdef>
  9141. </glossentry>
  9142. <glossentry id='var-POPULATE_SDK_POST_TARGET_COMMAND'><glossterm>POPULATE_SDK_POST_TARGET_COMMAND</glossterm>
  9143. <info>
  9144. POPULATE_SDK_POST_TARGET_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system has created target part of the SDK."
  9145. </info>
  9146. <glossdef>
  9147. <para role="glossdeffirst">
  9148. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9149. Specifies a list of functions to call once the
  9150. OpenEmbedded build system has created the target part of
  9151. the SDK.
  9152. You can specify functions separated by semicolons:
  9153. <literallayout class='monospaced'>
  9154. POPULATE_SDK_POST_TARGET_COMMAND += "<replaceable>function</replaceable>; ... "
  9155. </literallayout>
  9156. </para>
  9157. <para>
  9158. If you need to pass the SDK path to a command
  9159. within a function, you can use
  9160. <filename>${SDK_DIR}</filename>, which points to
  9161. the parent directory used by the OpenEmbedded build
  9162. system when creating SDK output.
  9163. See the
  9164. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  9165. variable for more information.
  9166. </para>
  9167. </glossdef>
  9168. </glossentry>
  9169. <glossentry id='var-PR'><glossterm>PR</glossterm>
  9170. <info>
  9171. PR[doc] = "The revision of the recipe. The default value for this variable is 'r0'."
  9172. </info>
  9173. <glossdef>
  9174. <para role="glossdeffirst">
  9175. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9176. The revision of the recipe. The default value for this
  9177. variable is "r0".
  9178. Subsequent revisions of the recipe conventionally have the
  9179. values "r1", "r2", and so forth.
  9180. When
  9181. <link linkend='var-PV'><filename>PV</filename></link>
  9182. increases, <filename>PR</filename> is conventionally reset
  9183. to "r0".
  9184. <note>
  9185. The OpenEmbedded build system does not need the aid of
  9186. <filename>PR</filename> to know when to rebuild a
  9187. recipe.
  9188. The build system uses the task
  9189. <ulink url='&YOCTO_DOCS_BB_URL;#checksums'>input checksums</ulink>
  9190. along with the
  9191. <link linkend='structure-build-tmp-stamps'>stamp</link>
  9192. and
  9193. <link linkend='shared-state-cache'>shared state cache</link>
  9194. mechanisms.
  9195. </note>
  9196. The <filename>PR</filename> variable primarily becomes
  9197. significant when a package manager dynamically installs
  9198. packages on an already built image.
  9199. In this case, <filename>PR</filename>, which is the default
  9200. value of
  9201. <link linkend='var-PKGR'><filename>PKGR</filename></link>,
  9202. helps the package manager distinguish which package is the
  9203. most recent one in cases where many packages have the same
  9204. <filename>PV</filename> (i.e. <filename>PKGV</filename>).
  9205. A component having many packages with the same
  9206. <filename>PV</filename> usually means that the packages all
  9207. install the same upstream version, but with later
  9208. (<filename>PR</filename>) version packages including
  9209. packaging fixes.
  9210. <note>
  9211. <filename>PR</filename> does not need to be increased
  9212. for changes that do not change the package contents or
  9213. metadata.
  9214. </note>
  9215. Because manually managing <filename>PR</filename> can be
  9216. cumbersome and error-prone, an automated solution exists.
  9217. See the
  9218. "<ulink url='&YOCTO_DOCS_DEV_URL;#working-with-a-pr-service'>Working With a PR Service</ulink>"
  9219. section for more information.
  9220. </para>
  9221. </glossdef>
  9222. </glossentry>
  9223. <glossentry id='var-PREFERRED_PROVIDER'><glossterm>PREFERRED_PROVIDER</glossterm>
  9224. <info>
  9225. PREFERRED_PROVIDER[doc] = "If multiple recipes provide an item, this variable determines which recipe should be given preference."
  9226. </info>
  9227. <glossdef>
  9228. <para role="glossdeffirst">
  9229. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9230. If multiple recipes provide an item, this variable
  9231. determines which recipe should be given preference.
  9232. You should always suffix the variable with the name of the
  9233. provided item, and you should set it to the
  9234. <link linkend='var-PN'><filename>PN</filename></link>
  9235. of the recipe to which you want to give precedence.
  9236. Some examples:
  9237. <literallayout class='monospaced'>
  9238. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  9239. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  9240. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  9241. </literallayout>
  9242. <note>
  9243. If you set <filename>PREFERRED_PROVIDER</filename>
  9244. for a <filename>virtual/*</filename> item, then any
  9245. recipe that
  9246. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  9247. that item that is not selected by
  9248. <filename>PREFERRED_PROVIDER</filename> is prevented
  9249. from building, which is usually desirable since this
  9250. mechanism is designed to select between mutually
  9251. exclusive alternative providers.
  9252. </note>
  9253. </para>
  9254. </glossdef>
  9255. </glossentry>
  9256. <glossentry id='var-PREFERRED_VERSION'><glossterm>PREFERRED_VERSION</glossterm>
  9257. <info>
  9258. PREFERRED_VERSION[doc] = "If there are multiple versions of recipes available, this variable determines which recipe should be given preference."
  9259. </info>
  9260. <glossdef>
  9261. <para role="glossdeffirst">
  9262. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9263. If there are multiple versions of recipes available, this
  9264. variable determines which recipe should be given preference.
  9265. You must always suffix the variable with the
  9266. <link linkend='var-PN'><filename>PN</filename></link>
  9267. you want to select, and you should set the
  9268. <link linkend='var-PV'><filename>PV</filename></link>
  9269. accordingly for precedence.
  9270. You can use the "<filename>%</filename>" character as a
  9271. wildcard to match any number of characters, which can be
  9272. useful when specifying versions that contain long revision
  9273. numbers that could potentially change.
  9274. Here are two examples:
  9275. <literallayout class='monospaced'>
  9276. PREFERRED_VERSION_python = "3.4.0"
  9277. PREFERRED_VERSION_linux-yocto = "3.19%"
  9278. </literallayout>
  9279. Sometimes the <filename>PREFERRED_VERSION</filename>
  9280. variable can be set by configuration files in a way that
  9281. is hard to change.
  9282. You can use
  9283. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>
  9284. to set a machine-specific override.
  9285. Here is an example:
  9286. <literallayout class='monospaced'>
  9287. PREFERRED_VERSION_linux-yocto_qemux86 = "3.4%"
  9288. </literallayout>
  9289. Although not recommended, worst case, you can also use the
  9290. "forcevariable" override, which is the strongest override
  9291. possible.
  9292. Here is an example:
  9293. <literallayout class='monospaced'>
  9294. PREFERRED_VERSION_linux-yocto_forcevariable = "3.4%"
  9295. </literallayout>
  9296. <note>
  9297. The <filename>_forcevariable</filename> override is
  9298. not handled specially.
  9299. This override only works because the default value of
  9300. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>
  9301. includes "forcevariable".
  9302. </note>
  9303. </para>
  9304. </glossdef>
  9305. </glossentry>
  9306. <glossentry id='var-PREMIRRORS'><glossterm>PREMIRRORS</glossterm>
  9307. <info>
  9308. PREMIRRORS[doc] = "Specifies additional paths from which the OpenEmbedded build system gets source code."
  9309. </info>
  9310. <glossdef>
  9311. <para role="glossdeffirst">
  9312. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9313. Specifies additional paths from which the OpenEmbedded
  9314. build system gets source code.
  9315. When the build system searches for source code, it first
  9316. tries the local download directory.
  9317. If that location fails, the build system tries locations
  9318. defined by <filename>PREMIRRORS</filename>, the upstream
  9319. source, and then locations specified by
  9320. <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link>
  9321. in that order.
  9322. </para>
  9323. <para>
  9324. Assuming your distribution
  9325. (<link linkend='var-DISTRO'><filename>DISTRO</filename></link>)
  9326. is "poky", the default value for
  9327. <filename>PREMIRRORS</filename> is defined in the
  9328. <filename>conf/distro/poky.conf</filename> file in the
  9329. <filename>meta-poky</filename> Git repository.
  9330. </para>
  9331. <para>
  9332. Typically, you could add a specific server for the
  9333. build system to attempt before any others by adding
  9334. something like the following to the
  9335. <filename>local.conf</filename> configuration file in the
  9336. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>:
  9337. <literallayout class='monospaced'>
  9338. PREMIRRORS_prepend = "\
  9339. git://.*/.* http://www.yoctoproject.org/sources/ \n \
  9340. ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
  9341. http://.*/.* http://www.yoctoproject.org/sources/ \n \
  9342. https://.*/.* http://www.yoctoproject.org/sources/ \n"
  9343. </literallayout>
  9344. These changes cause the build system to intercept
  9345. Git, FTP, HTTP, and HTTPS requests and direct them to
  9346. the <filename>http://</filename> sources mirror.
  9347. You can use <filename>file://</filename> URLs to point
  9348. to local directories or network shares as well.
  9349. </para>
  9350. </glossdef>
  9351. </glossentry>
  9352. <glossentry id='var-PRIORITY'><glossterm>PRIORITY</glossterm>
  9353. <info>
  9354. PRIORITY[doc] = "Indicates the importance of a package. The default value is 'optional'. Other standard values are 'required', 'standard' and 'extra'."
  9355. </info>
  9356. <glossdef>
  9357. <para role="glossdeffirst">
  9358. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9359. Indicates the importance of a package.
  9360. </para>
  9361. <para>
  9362. <filename>PRIORITY</filename> is considered to be part of
  9363. the distribution policy because the importance of any given
  9364. recipe depends on the purpose for which the distribution
  9365. is being produced.
  9366. Thus, <filename>PRIORITY</filename> is not normally set
  9367. within recipes.
  9368. </para>
  9369. <para>
  9370. You can set <filename>PRIORITY</filename> to "required",
  9371. "standard", "extra", and "optional", which is the default.
  9372. </para>
  9373. </glossdef>
  9374. </glossentry>
  9375. <glossentry id='var-PRIVATE_LIBS'><glossterm>PRIVATE_LIBS</glossterm>
  9376. <info>
  9377. PRIVATE_LIBS[doc] = "Specifies libraries installed within a recipe that should be ignored by the OpenEmbedded build system's shared library resolver."
  9378. </info>
  9379. <glossdef>
  9380. <para role="glossdeffirst">
  9381. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9382. Specifies libraries installed within a recipe that
  9383. should be ignored by the OpenEmbedded build system's
  9384. shared library resolver.
  9385. This variable is typically used when software being
  9386. built by a recipe has its own private versions of a
  9387. library normally provided by another recipe.
  9388. In this case, you would not want the package containing
  9389. the private libraries to be set as a dependency on other
  9390. unrelated packages that should instead depend on the
  9391. package providing the standard version of the library.
  9392. </para>
  9393. <para>
  9394. Libraries specified in this variable should be specified
  9395. by their file name.
  9396. For example, from the Firefox recipe in meta-browser:
  9397. <literallayout class='monospaced'>
  9398. PRIVATE_LIBS = "libmozjs.so \
  9399. libxpcom.so \
  9400. libnspr4.so \
  9401. libxul.so \
  9402. libmozalloc.so \
  9403. libplc4.so \
  9404. libplds4.so"
  9405. </literallayout>
  9406. </para>
  9407. </glossdef>
  9408. </glossentry>
  9409. <glossentry id='var-PROVIDES'><glossterm>PROVIDES</glossterm>
  9410. <info>
  9411. PROVIDES[doc] = "A list of aliases that a recipe also provides. These aliases are useful for satisfying dependencies of other recipes during the build as specified by DEPENDS."
  9412. </info>
  9413. <glossdef>
  9414. <para role="glossdeffirst">
  9415. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9416. A list of aliases by which a particular recipe can be
  9417. known.
  9418. By default, a recipe's own
  9419. <filename><link linkend='var-PN'>PN</link></filename>
  9420. is implicitly already in its <filename>PROVIDES</filename>
  9421. list.
  9422. If a recipe uses <filename>PROVIDES</filename>, the
  9423. additional aliases are synonyms for the recipe and can
  9424. be useful satisfying dependencies of other recipes during
  9425. the build as specified by
  9426. <filename><link linkend='var-DEPENDS'>DEPENDS</link></filename>.
  9427. </para>
  9428. <para>
  9429. Consider the following example
  9430. <filename>PROVIDES</filename> statement from a recipe
  9431. file <filename>libav_0.8.11.bb</filename>:
  9432. <literallayout class='monospaced'>
  9433. PROVIDES += "libpostproc"
  9434. </literallayout>
  9435. The <filename>PROVIDES</filename> statement results in
  9436. the "libav" recipe also being known as "libpostproc".
  9437. </para>
  9438. <para>
  9439. In addition to providing recipes under alternate names,
  9440. the <filename>PROVIDES</filename> mechanism is also used
  9441. to implement virtual targets.
  9442. A virtual target is a name that corresponds to some
  9443. particular functionality (e.g. a Linux kernel).
  9444. Recipes that provide the functionality in question list the
  9445. virtual target in <filename>PROVIDES</filename>.
  9446. Recipes that depend on the functionality in question can
  9447. include the virtual target in
  9448. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  9449. to leave the choice of provider open.
  9450. </para>
  9451. <para>
  9452. Conventionally, virtual targets have names on the form
  9453. "virtual/function" (e.g. "virtual/kernel").
  9454. The slash is simply part of the name and has no
  9455. syntactical significance.
  9456. </para>
  9457. <para>
  9458. The
  9459. <link linkend='var-PREFERRED_PROVIDER'><filename>PREFERRED_PROVIDER</filename></link>
  9460. variable is used to select which particular recipe
  9461. provides a virtual target.
  9462. <note>
  9463. <para>A corresponding mechanism for virtual runtime
  9464. dependencies (packages) exists.
  9465. However, the mechanism does not depend on any special
  9466. functionality beyond ordinary variable assignments.
  9467. For example,
  9468. <filename>VIRTUAL-RUNTIME_dev_manager</filename>
  9469. refers to the package of the component that manages
  9470. the <filename>/dev</filename> directory.</para>
  9471. <para>Setting the "preferred provider" for runtime
  9472. dependencies is as simple as using the following
  9473. assignment in a configuration file:</para>
  9474. <literallayout class='monospaced'>
  9475. VIRTUAL-RUNTIME_dev_manager = "udev"
  9476. </literallayout>
  9477. </note>
  9478. </para>
  9479. </glossdef>
  9480. </glossentry>
  9481. <glossentry id='var-PRSERV_HOST'><glossterm>PRSERV_HOST</glossterm>
  9482. <info>
  9483. PRSERV_HOST[doc] = "The network based PR service host and port."
  9484. </info>
  9485. <glossdef>
  9486. <para role="glossdeffirst">
  9487. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9488. The network based
  9489. <link linkend='var-PR'><filename>PR</filename></link>
  9490. service host and port.
  9491. </para>
  9492. <para>
  9493. The <filename>conf/local.conf.sample.extended</filename>
  9494. configuration file in the
  9495. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  9496. shows how the <filename>PRSERV_HOST</filename> variable is
  9497. set:
  9498. <literallayout class='monospaced'>
  9499. PRSERV_HOST = "localhost:0"
  9500. </literallayout>
  9501. You must set the variable if you want to automatically
  9502. start a local
  9503. <ulink url='&YOCTO_DOCS_DEV_URL;#working-with-a-pr-service'>PR service</ulink>.
  9504. You can set <filename>PRSERV_HOST</filename> to other
  9505. values to use a remote PR service.
  9506. </para>
  9507. </glossdef>
  9508. </glossentry>
  9509. <glossentry id='var-PTEST_ENABLED'><glossterm>PTEST_ENABLED</glossterm>
  9510. <info>
  9511. PRSERV_HOST[doc] = "Specifies whether or not Package Test (ptest) functionality is enabled when building a recipe."
  9512. </info>
  9513. <glossdef>
  9514. <para role="glossdeffirst">
  9515. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9516. Specifies whether or not
  9517. <ulink url='&YOCTO_DOCS_DEV_URL;#testing-packages-with-ptest'>Package Test</ulink>
  9518. (ptest) functionality is enabled when building a recipe.
  9519. You should not set this variable directly.
  9520. Enabling and disabling building Package Tests
  9521. at build time should be done by adding "ptest" to (or
  9522. removing it from)
  9523. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>.
  9524. </para>
  9525. </glossdef>
  9526. </glossentry>
  9527. <glossentry id='var-PV'><glossterm>PV</glossterm>
  9528. <info>
  9529. PV[doc] = "The version of the recipe. The version is normally extracted from the recipe filename."
  9530. </info>
  9531. <glossdef>
  9532. <para role="glossdeffirst">
  9533. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9534. The version of the recipe.
  9535. The version is normally extracted from the recipe filename.
  9536. For example, if the recipe is named
  9537. <filename>expat_2.0.1.bb</filename>, then the default value
  9538. of <filename>PV</filename> will be "2.0.1".
  9539. <filename>PV</filename> is generally not overridden within
  9540. a recipe unless it is building an unstable (i.e.
  9541. development) version from a source code repository
  9542. (e.g. Git or Subversion).
  9543. </para>
  9544. <para>
  9545. <filename>PV</filename> is the default value of the
  9546. <link linkend='var-PKGV'><filename>PKGV</filename></link>
  9547. variable.
  9548. </para>
  9549. </glossdef>
  9550. </glossentry>
  9551. <glossentry id='var-PYTHON_ABI'><glossterm>PYTHON_ABI</glossterm>
  9552. <info>
  9553. PYTHON_ABI[doc] = "When used by recipes that inherit the distutils3, setuptools3, distutils, or setuptools classes, denotes the Application Binary Interface (ABI) currently in use for Python."
  9554. </info>
  9555. <glossdef>
  9556. <para role="glossdeffirst">
  9557. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9558. When used by recipes that inherit the
  9559. <link linkend='ref-classes-distutils3'><filename>distutils3</filename></link>,
  9560. <link linkend='ref-classes-setuptools3'><filename>setuptools3</filename></link>,
  9561. <link linkend='ref-classes-distutils'><filename>distutils</filename></link>,
  9562. or
  9563. <link linkend='ref-classes-setuptools'><filename>setuptools</filename></link>
  9564. classes, denotes the Application Binary Interface (ABI)
  9565. currently in use for Python.
  9566. By default, the ABI is "m".
  9567. You do not have to set this variable as the OpenEmbedded
  9568. build system sets it for you.
  9569. </para>
  9570. <para>
  9571. The OpenEmbedded build system uses the ABI to construct
  9572. directory names used when installing the Python headers
  9573. and libraries in sysroot
  9574. (e.g. <filename>.../python3.3m/...</filename>).
  9575. </para>
  9576. <para>
  9577. Recipes that inherit the
  9578. <link linkend='ref-classes-distutils'><filename>distutils</filename></link>
  9579. class during cross-builds also use this variable to
  9580. locate the headers and libraries of the appropriate Python
  9581. that the extension is targeting.
  9582. </para>
  9583. </glossdef>
  9584. </glossentry>
  9585. <glossentry id='var-PYTHON_PN'><glossterm>PYTHON_PN</glossterm>
  9586. <info>
  9587. PYTHON_PN[doc] = "When used by recipes that inherit the distutils3, setuptools3, distutils, or setuptools classes, specifies the major Python version being built."
  9588. </info>
  9589. <glossdef>
  9590. <para role="glossdeffirst">
  9591. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9592. When used by recipes that inherit the
  9593. <link linkend='ref-classes-distutils3'><filename>distutils3</filename></link>,
  9594. <link linkend='ref-classes-setuptools3'><filename>setuptools3</filename></link>,
  9595. <link linkend='ref-classes-distutils'><filename>distutils</filename></link>,
  9596. or
  9597. <link linkend='ref-classes-setuptools'><filename>setuptools</filename></link>
  9598. classes, specifies the major Python version being built.
  9599. For Python 2.x, <filename>PYTHON_PN</filename> would
  9600. be "python2". For Python 3.x, the variable would be
  9601. "python3".
  9602. You do not have to set this variable as the
  9603. OpenEmbedded build system automatically sets it for you.
  9604. </para>
  9605. <para>
  9606. The variable allows recipes to use common infrastructure
  9607. such as the following:
  9608. <literallayout class='monospaced'>
  9609. DEPENDS += "${PYTHON_PN}-native"
  9610. </literallayout>
  9611. In the previous example, the version of the dependency
  9612. is <filename>PYTHON_PN</filename>.
  9613. </para>
  9614. </glossdef>
  9615. </glossentry>
  9616. </glossdiv>
  9617. <glossdiv id='var-glossary-r'><title>R</title>
  9618. <glossentry id='var-RANLIB'><glossterm>RANLIB</glossterm>
  9619. <info>
  9620. RANLIB[doc] = "Minimal command and arguments to run 'ranlib'."
  9621. </info>
  9622. <glossdef>
  9623. <para role="glossdeffirst">
  9624. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9625. The minimal command and arguments to run
  9626. <filename>ranlib</filename>.
  9627. </para>
  9628. </glossdef>
  9629. </glossentry>
  9630. <glossentry id='var-RCONFLICTS'><glossterm>RCONFLICTS</glossterm>
  9631. <info>
  9632. RCONFLICTS[doc] = "The list of packages that conflict with another package. Note that the package will not be installed if the conflicting packages are not first removed."
  9633. </info>
  9634. <glossdef>
  9635. <para role="glossdeffirst">
  9636. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9637. The list of packages that conflict with packages.
  9638. Note that packages will not be installed if conflicting
  9639. packages are not first removed.
  9640. </para>
  9641. <para>
  9642. Like all package-controlling variables, you must always use
  9643. them in conjunction with a package name override.
  9644. Here is an example:
  9645. <literallayout class='monospaced'>
  9646. RCONFLICTS_${PN} = "<replaceable>another_conflicting_package_name</replaceable>"
  9647. </literallayout>
  9648. </para>
  9649. <para>
  9650. BitBake, which the OpenEmbedded build system uses, supports
  9651. specifying versioned dependencies.
  9652. Although the syntax varies depending on the packaging
  9653. format, BitBake hides these differences from you.
  9654. Here is the general syntax to specify versions with
  9655. the <filename>RCONFLICTS</filename> variable:
  9656. <literallayout class='monospaced'>
  9657. RCONFLICTS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  9658. </literallayout>
  9659. For <filename>operator</filename>, you can specify the
  9660. following:
  9661. <literallayout class='monospaced'>
  9662. =
  9663. &lt;
  9664. &gt;
  9665. &lt;=
  9666. &gt;=
  9667. </literallayout>
  9668. For example, the following sets up a dependency on version
  9669. 1.2 or greater of the package <filename>foo</filename>:
  9670. <literallayout class='monospaced'>
  9671. RCONFLICTS_${PN} = "foo (>= 1.2)"
  9672. </literallayout>
  9673. </para>
  9674. </glossdef>
  9675. </glossentry>
  9676. <glossentry id='var-RDEPENDS'><glossterm>RDEPENDS</glossterm>
  9677. <info>
  9678. RDEPENDS[doc] = "Lists a package's runtime dependencies (i.e. other packages) that must be installed for the package to be built. They must be the names of other packages as listed in the PACKAGES variable, not recipe names (PN)."
  9679. </info>
  9680. <glossdef>
  9681. <para role="glossdeffirst">
  9682. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9683. Lists a package's runtime dependencies (i.e. other packages)
  9684. that must be installed in order for the built package to run
  9685. correctly.
  9686. If a package in this list cannot be found during the build,
  9687. you will get a build error.
  9688. </para>
  9689. <para>
  9690. When you use the <filename>RDEPENDS</filename> variable
  9691. in a recipe, you are essentially stating that the recipe's
  9692. <link linkend='ref-tasks-build'><filename>do_build</filename></link>
  9693. task depends on the existence of a specific package.
  9694. Consider this simple example for two recipes named "a" and
  9695. "b" that produce similarly named IPK packages.
  9696. In this example, the <filename>RDEPENDS</filename>
  9697. statement appears in the "a" recipe:
  9698. <literallayout class='monospaced'>
  9699. RDEPENDS_${PN} = "b"
  9700. </literallayout>
  9701. Here, the dependency is such that the
  9702. <filename>do_build</filename> task for recipe "a" depends
  9703. on the
  9704. <link linkend='ref-tasks-package_write_ipk'><filename>do_package_write_ipk</filename></link>
  9705. task of recipe "b".
  9706. This means the package file for "b" must be available when
  9707. the output for recipe "a" has been completely built.
  9708. More importantly, package "a" will be marked as depending
  9709. on package "b" in a manner that is understood by the
  9710. package manager.
  9711. </para>
  9712. <para>
  9713. The names of the packages you list within
  9714. <filename>RDEPENDS</filename> must be the names of other
  9715. packages - they cannot be recipe names.
  9716. Although package names and recipe names usually match,
  9717. the important point here is that you are
  9718. providing package names within the
  9719. <filename>RDEPENDS</filename> variable.
  9720. For an example of the default list of packages created from
  9721. a recipe, see the
  9722. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  9723. variable.
  9724. </para>
  9725. <para>
  9726. Because the <filename>RDEPENDS</filename> variable applies
  9727. to packages being built, you should always use the variable
  9728. in a form with an attached package name.
  9729. For example, suppose you are building a development package
  9730. that depends on the <filename>perl</filename> package.
  9731. In this case, you would use the following
  9732. <filename>RDEPENDS</filename> statement:
  9733. <literallayout class='monospaced'>
  9734. RDEPENDS_${PN}-dev += "perl"
  9735. </literallayout>
  9736. In the example, the development package depends on
  9737. the <filename>perl</filename> package.
  9738. Thus, the <filename>RDEPENDS</filename> variable has the
  9739. <filename>${PN}-dev</filename> package name as part of the
  9740. variable.
  9741. <note>
  9742. <title>Caution</title>
  9743. <filename>RDEPENDS_${PN}-dev</filename> includes
  9744. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>
  9745. by default.
  9746. This default is set in the BitBake configuration file
  9747. (<filename>meta/conf/bitbake.conf</filename>).
  9748. Be careful not to accidentally remove
  9749. <filename>${PN}</filename> when modifying
  9750. <filename>RDEPENDS_${PN}-dev</filename>.
  9751. Use the "+=" operator rather than the "=" operator.
  9752. </note>
  9753. </para>
  9754. <para>
  9755. The package name you attach to the
  9756. <filename>RDEPENDS</filename> variable must appear
  9757. as it would in the <filename>PACKAGES</filename>
  9758. namespace before any renaming of the output package by
  9759. classes like
  9760. <link linkend='ref-classes-debian'><filename>debian</filename></link>.
  9761. </para>
  9762. <para>
  9763. In many cases you do not need to explicitly add
  9764. runtime dependencies using
  9765. <filename>RDEPENDS</filename> since some automatic
  9766. handling occurs:
  9767. <itemizedlist>
  9768. <listitem><para><emphasis><filename>shlibdeps</filename></emphasis>:
  9769. If a runtime package contains a compiled binary,
  9770. the build processes the binary in order to
  9771. determine any shared libraries
  9772. (<filename>.so</filename> files) to which it is
  9773. dynamically linked.
  9774. The build process adds the packages containing
  9775. these libraries to <filename>RDEPENDS</filename>
  9776. when creating the runtime package.
  9777. In addition, if the shared library is versioned,
  9778. the dependency will have the version appended to it
  9779. in order to force an upgrade to the appropriate
  9780. version if needed.
  9781. </para></listitem>
  9782. <listitem><para><emphasis><filename>pcdeps</filename></emphasis>: If
  9783. the package ships a <filename>pkg-config</filename>
  9784. information file, the build process uses this file
  9785. to add items to the <filename>RDEPENDS</filename>
  9786. variable to create the runtime packages.
  9787. </para></listitem>
  9788. </itemizedlist>
  9789. </para>
  9790. <para>
  9791. BitBake, which the OpenEmbedded build system uses, supports
  9792. specifying versioned dependencies.
  9793. Although the syntax varies depending on the packaging
  9794. format, BitBake hides these differences from you.
  9795. Here is the general syntax to specify versions with
  9796. the <filename>RDEPENDS</filename> variable:
  9797. <literallayout class='monospaced'>
  9798. RDEPENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  9799. </literallayout>
  9800. For <filename>operator</filename>, you can specify the
  9801. following:
  9802. <literallayout class='monospaced'>
  9803. =
  9804. &lt;
  9805. &gt;
  9806. &lt;=
  9807. &gt;=
  9808. </literallayout>
  9809. For example, the following sets up a dependency on version
  9810. 1.2 or greater of the package <filename>foo</filename>:
  9811. <literallayout class='monospaced'>
  9812. RDEPENDS_${PN} = "foo (>= 1.2)"
  9813. </literallayout>
  9814. </para>
  9815. <para>
  9816. For information on build-time dependencies, see the
  9817. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  9818. variable.
  9819. You can also see the
  9820. "<ulink url='&YOCTO_DOCS_BB_URL;#tasks'>Tasks</ulink>" and
  9821. "<ulink url='&YOCTO_DOCS_BB_URL;#dependencies'>Dependencies</ulink>"
  9822. sections in the BitBake User Manual for additional
  9823. information on tasks and dependencies.
  9824. </para>
  9825. </glossdef>
  9826. </glossentry>
  9827. <glossentry id='var-REQUIRED_DISTRO_FEATURES'><glossterm>REQUIRED_DISTRO_FEATURES</glossterm>
  9828. <info>
  9829. REQUIRED_DISTRO_FEATURES[doc] = "When a recipe inherits the distro_features_check class, this variable identifies distribution features that must exist in the current configuration in order for the OpenEmbedded build system to build the recipe."
  9830. </info>
  9831. <glossdef>
  9832. <para role="glossdeffirst">
  9833. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9834. When inheriting the
  9835. <link linkend='ref-classes-distro_features_check'><filename>distro_features_check</filename></link>
  9836. class, this
  9837. variable identifies distribution features that must
  9838. exist in the current configuration in order for the
  9839. OpenEmbedded build system to build the recipe.
  9840. In other words, if the
  9841. <filename>REQUIRED_DISTRO_FEATURES</filename> variable
  9842. lists a feature that does not appear in
  9843. <filename>DISTRO_FEATURES</filename> within the
  9844. current configuration, an error occurs and the
  9845. build stops.
  9846. </para>
  9847. </glossdef>
  9848. </glossentry>
  9849. <glossentry id='var-RM_OLD_IMAGE'><glossterm>RM_OLD_IMAGE</glossterm>
  9850. <info>
  9851. RM_OLD_IMAGE[doc] = "Reclaims disk space by removing previously built versions of the same image from the images directory pointed to by the DEPLOY_DIR variable."
  9852. </info>
  9853. <glossdef>
  9854. <para role="glossdeffirst">
  9855. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9856. Reclaims disk space by removing previously built
  9857. versions of the same image from the
  9858. <filename>images</filename> directory pointed to by the
  9859. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>
  9860. variable.
  9861. </para>
  9862. <para>
  9863. Set this variable to "1" in your
  9864. <filename>local.conf</filename> file to remove these
  9865. images.
  9866. </para>
  9867. </glossdef>
  9868. </glossentry>
  9869. <glossentry id='var-RM_WORK_EXCLUDE'><glossterm>RM_WORK_EXCLUDE</glossterm>
  9870. <info>
  9871. RM_WORK_EXCLUDE[doc] = "With rm_work enabled, this variable specifies a list of packages whose work directories should not be removed."
  9872. </info>
  9873. <glossdef>
  9874. <para role="glossdeffirst">
  9875. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9876. With <filename>rm_work</filename> enabled, this
  9877. variable specifies a list of recipes whose work directories
  9878. should not be removed.
  9879. See the "<link linkend='ref-classes-rm-work'><filename>rm_work.bbclass</filename></link>"
  9880. section for more details.
  9881. </para>
  9882. </glossdef>
  9883. </glossentry>
  9884. <glossentry id='var-ROOT_HOME'><glossterm>ROOT_HOME</glossterm>
  9885. <info>
  9886. ROOT_HOME[doc] = "Defines the root home directory."
  9887. </info>
  9888. <glossdef>
  9889. <para role="glossdeffirst">
  9890. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9891. Defines the root home directory.
  9892. By default, this directory is set as follows in the
  9893. BitBake configuration file:
  9894. <literallayout class='monospaced'>
  9895. ROOT_HOME ??= "/home/root"
  9896. </literallayout>
  9897. <note>
  9898. This default value is likely used because some
  9899. embedded solutions prefer to have a read-only root
  9900. filesystem and prefer to keep writeable data in one
  9901. place.
  9902. </note>
  9903. </para>
  9904. <para>
  9905. You can override the default by setting the variable
  9906. in any layer or in the <filename>local.conf</filename> file.
  9907. Because the default is set using a "weak" assignment
  9908. (i.e. "??="), you can use either of the following forms
  9909. to define your override:
  9910. <literallayout class='monospaced'>
  9911. ROOT_HOME = "/root"
  9912. ROOT_HOME ?= "/root"
  9913. </literallayout>
  9914. These override examples use <filename>/root</filename>,
  9915. which is probably the most commonly used override.
  9916. </para>
  9917. </glossdef>
  9918. </glossentry>
  9919. <glossentry id='var-ROOTFS'><glossterm>ROOTFS</glossterm>
  9920. <info>
  9921. ROOTFS[doc] = "Indicates a filesystem image to include as the root filesystem."
  9922. </info>
  9923. <glossdef>
  9924. <para role="glossdeffirst">
  9925. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9926. Indicates a filesystem image to include as the root
  9927. filesystem.
  9928. </para>
  9929. <para>
  9930. The <filename>ROOTFS</filename> variable is an optional
  9931. variable used with the
  9932. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  9933. class.
  9934. </para>
  9935. </glossdef>
  9936. </glossentry>
  9937. <glossentry id='var-ROOTFS_POSTINSTALL_COMMAND'><glossterm>ROOTFS_POSTINSTALL_COMMAND</glossterm>
  9938. <info>
  9939. ROOTFS_POSTINSTALL_COMMAND[doc] = "Specifies a list of functions to call after installing packages."
  9940. </info>
  9941. <glossdef>
  9942. <para role="glossdeffirst">
  9943. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9944. Specifies a list of functions to call after the
  9945. OpenEmbedded build system has installed packages.
  9946. You can specify functions separated by semicolons:
  9947. <literallayout class='monospaced'>
  9948. ROOTFS_POSTINSTALL_COMMAND += "<replaceable>function</replaceable>; ... "
  9949. </literallayout>
  9950. </para>
  9951. <para>
  9952. If you need to pass the root filesystem path to a command
  9953. within a function, you can use
  9954. <filename>${IMAGE_ROOTFS}</filename>, which points to
  9955. the directory that becomes the root filesystem image.
  9956. See the
  9957. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  9958. variable for more information.
  9959. </para>
  9960. </glossdef>
  9961. </glossentry>
  9962. <glossentry id='var-ROOTFS_POSTPROCESS_COMMAND'><glossterm>ROOTFS_POSTPROCESS_COMMAND</glossterm>
  9963. <info>
  9964. ROOTFS_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system has created the root filesystem."
  9965. </info>
  9966. <glossdef>
  9967. <para role="glossdeffirst">
  9968. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9969. Specifies a list of functions to call once the
  9970. OpenEmbedded build system has created the root filesystem.
  9971. You can specify functions separated by semicolons:
  9972. <literallayout class='monospaced'>
  9973. ROOTFS_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  9974. </literallayout>
  9975. </para>
  9976. <para>
  9977. If you need to pass the root filesystem path to a command
  9978. within a function, you can use
  9979. <filename>${IMAGE_ROOTFS}</filename>, which points to
  9980. the directory that becomes the root filesystem image.
  9981. See the
  9982. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  9983. variable for more information.
  9984. </para>
  9985. </glossdef>
  9986. </glossentry>
  9987. <glossentry id='var-ROOTFS_POSTUNINSTALL_COMMAND'><glossterm>ROOTFS_POSTUNINSTALL_COMMAND</glossterm>
  9988. <info>
  9989. ROOTFS_POSTUNINSTALL_COMMAND[doc] = "Specifies a list of functions to call after removal of unneeded packages."
  9990. </info>
  9991. <glossdef>
  9992. <para role="glossdeffirst">
  9993. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9994. Specifies a list of functions to call after the
  9995. OpenEmbedded build system has removed unnecessary
  9996. packages.
  9997. When runtime package management is disabled in the
  9998. image, several packages are removed including
  9999. <filename>base-passwd</filename>,
  10000. <filename>shadow</filename>, and
  10001. <filename>update-alternatives</filename>.
  10002. You can specify functions separated by semicolons:
  10003. <literallayout class='monospaced'>
  10004. ROOTFS_POSTUNINSTALL_COMMAND += "<replaceable>function</replaceable>; ... "
  10005. </literallayout>
  10006. </para>
  10007. <para>
  10008. If you need to pass the root filesystem path to a command
  10009. within a function, you can use
  10010. <filename>${IMAGE_ROOTFS}</filename>, which points to
  10011. the directory that becomes the root filesystem image.
  10012. See the
  10013. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  10014. variable for more information.
  10015. </para>
  10016. </glossdef>
  10017. </glossentry>
  10018. <glossentry id='var-ROOTFS_PREPROCESS_COMMAND'><glossterm>ROOTFS_PREPROCESS_COMMAND</glossterm>
  10019. <info>
  10020. ROOTFS_PREPROCESS_COMMAND[doc] = "Specifies a list of functions to call before the OpenEmbedded build system has created the root filesystem."
  10021. </info>
  10022. <glossdef>
  10023. <para role="glossdeffirst">
  10024. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10025. Specifies a list of functions to call before the
  10026. OpenEmbedded build system has created the root filesystem.
  10027. You can specify functions separated by semicolons:
  10028. <literallayout class='monospaced'>
  10029. ROOTFS_PREPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  10030. </literallayout>
  10031. </para>
  10032. <para>
  10033. If you need to pass the root filesystem path to a command
  10034. within a function, you can use
  10035. <filename>${IMAGE_ROOTFS}</filename>, which points to
  10036. the directory that becomes the root filesystem image.
  10037. See the
  10038. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  10039. variable for more information.
  10040. </para>
  10041. </glossdef>
  10042. </glossentry>
  10043. <glossentry id='var-RPROVIDES'><glossterm>RPROVIDES</glossterm>
  10044. <info>
  10045. RPROVIDES[doc] = "A list of package name aliases that a package also provides. These aliases are useful for satisfying runtime dependencies of other packages both during the build and on the target."
  10046. </info>
  10047. <glossdef>
  10048. <para role="glossdeffirst">
  10049. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10050. A list of package name aliases that a package also provides.
  10051. These aliases are useful for satisfying runtime dependencies
  10052. of other packages both during the build and on the target
  10053. (as specified by
  10054. <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename>).
  10055. <note>
  10056. A package's own name is implicitly already in its
  10057. <filename>RPROVIDES</filename> list.
  10058. </note>
  10059. </para>
  10060. <para>
  10061. As with all package-controlling variables, you must always
  10062. use the variable in conjunction with a package name override.
  10063. Here is an example:
  10064. <literallayout class='monospaced'>
  10065. RPROVIDES_${PN} = "widget-abi-2"
  10066. </literallayout>
  10067. </para>
  10068. </glossdef>
  10069. </glossentry>
  10070. <glossentry id='var-RRECOMMENDS'><glossterm>RRECOMMENDS</glossterm>
  10071. <info>
  10072. RRECOMMENDS[doc] = "A list of packages that extends the usability of a package being built. The package being built does not depend on this list of packages in order to successfully build, but needs them for the extended usability."
  10073. </info>
  10074. <glossdef>
  10075. <para role="glossdeffirst">
  10076. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10077. A list of packages that extends the usability of a package
  10078. being built.
  10079. The package being built does not depend on this list of
  10080. packages in order to successfully build, but rather
  10081. uses them for extended usability.
  10082. To specify runtime dependencies for packages, see the
  10083. <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename>
  10084. variable.
  10085. </para>
  10086. <para>
  10087. The package manager will automatically install the
  10088. <filename>RRECOMMENDS</filename> list of packages when
  10089. installing the built package.
  10090. However, you can prevent listed packages from being
  10091. installed by using the
  10092. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>,
  10093. <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link>,
  10094. and
  10095. <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link>
  10096. variables.
  10097. </para>
  10098. <para>
  10099. Packages specified in
  10100. <filename>RRECOMMENDS</filename> need not actually be
  10101. produced.
  10102. However, a recipe must exist that provides each package,
  10103. either through the
  10104. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  10105. or
  10106. <link linkend='var-PACKAGES_DYNAMIC'><filename>PACKAGES_DYNAMIC</filename></link>
  10107. variables or the
  10108. <link linkend='var-RPROVIDES'><filename>RPROVIDES</filename></link>
  10109. variable, or an error will occur during the build.
  10110. If such a recipe does exist and the package is not produced,
  10111. the build continues without error.
  10112. </para>
  10113. <para>
  10114. Because the <filename>RRECOMMENDS</filename> variable
  10115. applies to packages being built, you should always attach
  10116. an override to the variable to specify the particular
  10117. package whose usability is being extended.
  10118. For example, suppose you are building a development package
  10119. that is extended to support wireless functionality.
  10120. In this case, you would use the following:
  10121. <literallayout class='monospaced'>
  10122. RRECOMMENDS_${PN}-dev += "<replaceable>wireless_package_name</replaceable>"
  10123. </literallayout>
  10124. In the example, the package name
  10125. (<filename>${<link linkend='var-PN'>PN</link>}-dev</filename>)
  10126. must appear as it would in the
  10127. <filename><link linkend='var-PACKAGES'>PACKAGES</link></filename>
  10128. namespace before any renaming of the output package by
  10129. classes such as <filename>debian.bbclass</filename>.
  10130. </para>
  10131. <para>
  10132. BitBake, which the OpenEmbedded build system uses, supports
  10133. specifying versioned recommends.
  10134. Although the syntax varies depending on the packaging
  10135. format, BitBake hides these differences from you.
  10136. Here is the general syntax to specify versions with
  10137. the <filename>RRECOMMENDS</filename> variable:
  10138. <literallayout class='monospaced'>
  10139. RRECOMMENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  10140. </literallayout>
  10141. For <filename>operator</filename>, you can specify the
  10142. following:
  10143. <literallayout class='monospaced'>
  10144. =
  10145. &lt;
  10146. &gt;
  10147. &lt;=
  10148. &gt;=
  10149. </literallayout>
  10150. For example, the following sets up a recommend on version
  10151. 1.2 or greater of the package <filename>foo</filename>:
  10152. <literallayout class='monospaced'>
  10153. RRECOMMENDS_${PN} = "foo (>= 1.2)"
  10154. </literallayout>
  10155. </para>
  10156. </glossdef>
  10157. </glossentry>
  10158. <glossentry id='var-RREPLACES'><glossterm>RREPLACES</glossterm>
  10159. <info>
  10160. RREPLACES[doc] = "A list of packages replaced by a package. The package manager uses this variable to determine which package should be installed to replace other package(s) during an upgrade."
  10161. </info>
  10162. <glossdef>
  10163. <para role="glossdeffirst">
  10164. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10165. A list of packages replaced by a package.
  10166. The package manager uses this variable to determine which
  10167. package should be installed to replace other package(s)
  10168. during an upgrade.
  10169. In order to also have the other package(s) removed at the
  10170. same time, you must add the name of the other
  10171. package to the
  10172. <filename><link linkend='var-RCONFLICTS'>RCONFLICTS</link></filename> variable.
  10173. </para>
  10174. <para>
  10175. As with all package-controlling variables, you must use
  10176. this variable in conjunction with a package name
  10177. override.
  10178. Here is an example:
  10179. <literallayout class='monospaced'>
  10180. RREPLACES_${PN} = "<replaceable>other_package_being_replaced</replaceable>"
  10181. </literallayout>
  10182. </para>
  10183. <para>
  10184. BitBake, which the OpenEmbedded build system uses, supports
  10185. specifying versioned replacements.
  10186. Although the syntax varies depending on the packaging
  10187. format, BitBake hides these differences from you.
  10188. Here is the general syntax to specify versions with
  10189. the <filename>RREPLACES</filename> variable:
  10190. <literallayout class='monospaced'>
  10191. RREPLACES_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  10192. </literallayout>
  10193. For <filename>operator</filename>, you can specify the
  10194. following:
  10195. <literallayout class='monospaced'>
  10196. =
  10197. &lt;
  10198. &gt;
  10199. &lt;=
  10200. &gt;=
  10201. </literallayout>
  10202. For example, the following sets up a replacement using
  10203. version 1.2 or greater of the package
  10204. <filename>foo</filename>:
  10205. <literallayout class='monospaced'>
  10206. RREPLACES_${PN} = "foo (>= 1.2)"
  10207. </literallayout>
  10208. </para>
  10209. </glossdef>
  10210. </glossentry>
  10211. <glossentry id='var-RSUGGESTS'><glossterm>RSUGGESTS</glossterm>
  10212. <info>
  10213. RSUGGESTS[doc] = "A list of additional packages that you can suggest for installation by the package manager at the time a package is installed. Not all package managers support this functionality."
  10214. </info>
  10215. <glossdef>
  10216. <para role="glossdeffirst">
  10217. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10218. A list of additional packages that you can suggest for
  10219. installation by the package manager at the time a package
  10220. is installed.
  10221. Not all package managers support this functionality.
  10222. </para>
  10223. <para>
  10224. As with all package-controlling variables, you must always
  10225. use this variable in conjunction with a package name
  10226. override.
  10227. Here is an example:
  10228. <literallayout class='monospaced'>
  10229. RSUGGESTS_${PN} = "<replaceable>useful_package</replaceable> <replaceable>another_package</replaceable>"
  10230. </literallayout>
  10231. </para>
  10232. </glossdef>
  10233. </glossentry>
  10234. </glossdiv>
  10235. <glossdiv id='var-glossary-s'><title>S</title>
  10236. <glossentry id='var-S'><glossterm>S</glossterm>
  10237. <info>
  10238. S[doc] = "The location in the Build Directory where unpacked package source code resides."
  10239. </info>
  10240. <glossdef>
  10241. <para role="glossdeffirst">
  10242. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10243. The location in the
  10244. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>
  10245. where unpacked recipe source code resides.
  10246. By default, this directory is
  10247. <filename>${</filename><link linkend='var-WORKDIR'><filename>WORKDIR</filename></link><filename>}/${</filename><link linkend='var-BPN'><filename>BPN</filename></link><filename>}-${</filename><link linkend='var-PV'><filename>PV</filename></link><filename>}</filename>,
  10248. where <filename>${BPN}</filename> is the base recipe name
  10249. and <filename>${PV}</filename> is the recipe version.
  10250. If the source tarball extracts the code to a directory
  10251. named anything other than <filename>${BPN}-${PV}</filename>,
  10252. or if the source code if fetched from an SCM such as
  10253. Git or Subversion, then you must set <filename>S</filename>
  10254. in the recipe so that the OpenEmbedded build system
  10255. knows where to find the unpacked source.
  10256. </para>
  10257. <para>
  10258. As an example, assume a
  10259. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  10260. top-level folder named <filename>poky</filename> and a
  10261. default Build Directory at <filename>poky/build</filename>.
  10262. In this case, the work directory the build system uses
  10263. to keep the unpacked recipe for <filename>db</filename>
  10264. is the following:
  10265. <literallayout class='monospaced'>
  10266. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  10267. </literallayout>
  10268. The unpacked source code resides in the
  10269. <filename>db-5.1.19</filename> folder.
  10270. </para>
  10271. <para>
  10272. This next example assumes a Git repository.
  10273. By default, Git repositories are cloned to
  10274. <filename>${WORKDIR}/git</filename> during
  10275. <link linkend='ref-tasks-fetch'><filename>do_fetch</filename></link>.
  10276. Since this path is different from the default value of
  10277. <filename>S</filename>, you must set it specifically
  10278. so the source can be located:
  10279. <literallayout class='monospaced'>
  10280. SRC_URI = "git://path/to/repo.git"
  10281. S = "${WORKDIR}/git"
  10282. </literallayout>
  10283. </para>
  10284. </glossdef>
  10285. </glossentry>
  10286. <glossentry id='var-SANITY_REQUIRED_UTILITIES'><glossterm>SANITY_REQUIRED_UTILITIES</glossterm>
  10287. <info>
  10288. SANITY_REQUIRED_UTILITIES[doc] = "Specifies a list of command-line utilities that should be checked for during the initial sanity checking process when running BitBake."
  10289. </info>
  10290. <glossdef>
  10291. <para role="glossdeffirst">
  10292. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10293. Specifies a list of command-line utilities that should be
  10294. checked for during the initial sanity checking process when
  10295. running BitBake.
  10296. If any of the utilities are not installed on the build host,
  10297. then BitBake immediately exits with an error.
  10298. </para>
  10299. </glossdef>
  10300. </glossentry>
  10301. <glossentry id='var-SANITY_TESTED_DISTROS'><glossterm>SANITY_TESTED_DISTROS</glossterm>
  10302. <info>
  10303. SANITY_TESTED_DISTROS[doc] = "A list of the host distribution identifiers that the build system has been tested against."
  10304. </info>
  10305. <glossdef>
  10306. <para role="glossdeffirst">
  10307. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10308. A list of the host distribution identifiers that the
  10309. build system has been tested against.
  10310. Identifiers consist of the host distributor ID
  10311. followed by the release,
  10312. as reported by the <filename>lsb_release</filename> tool
  10313. or as read from <filename>/etc/lsb-release</filename>.
  10314. Separate the list items with explicit newline
  10315. characters (<filename>\n</filename>).
  10316. If <filename>SANITY_TESTED_DISTROS</filename> is not empty
  10317. and the current value of
  10318. <link linkend='var-NATIVELSBSTRING'><filename>NATIVELSBSTRING</filename></link>
  10319. does not appear in the list, then the build system reports
  10320. a warning that indicates the current host distribution has
  10321. not been tested as a build host.
  10322. </para>
  10323. </glossdef>
  10324. </glossentry>
  10325. <glossentry id='var-SDK_ARCH'><glossterm>SDK_ARCH</glossterm>
  10326. <info>
  10327. SDK_ARCH[doc] = "The target architecture for the SDK."
  10328. </info>
  10329. <glossdef>
  10330. <para role="glossdeffirst">
  10331. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10332. The target architecture for the SDK.
  10333. Typically, you do not directly set this variable.
  10334. Instead, use
  10335. <link linkend='var-SDKMACHINE'><filename>SDKMACHINE</filename></link>.
  10336. </para>
  10337. </glossdef>
  10338. </glossentry>
  10339. <glossentry id='var-SDK_DEPLOY'><glossterm>SDK_DEPLOY</glossterm>
  10340. <info>
  10341. SDK_DEPLOY[doc] = "The directory set up and used by the populate_sdk_base to which the SDK is deployed."
  10342. </info>
  10343. <glossdef>
  10344. <para role="glossdeffirst">
  10345. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10346. The directory set up and used by the
  10347. <link linkend='ref-classes-populate-sdk'><filename>populate_sdk_base</filename></link>
  10348. to which the SDK is deployed.
  10349. The <filename>populate_sdk_base</filename> class defines
  10350. <filename>SDK_DEPLOY</filename> as follows:
  10351. <literallayout class='monospaced'>
  10352. SDK_DEPLOY = "${<link linkend='var-TMPDIR'>TMPDIR</link>}/deploy/sdk"
  10353. </literallayout>
  10354. </para>
  10355. </glossdef>
  10356. </glossentry>
  10357. <glossentry id='var-SDK_DIR'><glossterm>SDK_DIR</glossterm>
  10358. <info>
  10359. SDK_DIR[doc] = "The parent directory used by the OpenEmbedded build system when creating SDK output."
  10360. </info>
  10361. <glossdef>
  10362. <para role="glossdeffirst">
  10363. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10364. The parent directory used by the OpenEmbedded build system
  10365. when creating SDK output.
  10366. The
  10367. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  10368. class defines the variable as follows:
  10369. <literallayout class='monospaced'>
  10370. SDK_DIR = "${<link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>}/sdk"
  10371. </literallayout>
  10372. <note>
  10373. The <filename>SDK_DIR</filename> directory is a
  10374. temporary directory as it is part of
  10375. <filename>WORKDIR</filename>.
  10376. The final output directory is
  10377. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>.
  10378. </note>
  10379. </para>
  10380. </glossdef>
  10381. </glossentry>
  10382. <glossentry id='var-SDK_EXT_TYPE'><glossterm>SDK_EXT_TYPE</glossterm>
  10383. <info>
  10384. SDK_EXT_TYPE[doc] = "Controls whether or not shared state artifacts are copied into the extensible SDK."
  10385. </info>
  10386. <glossdef>
  10387. <para role="glossdeffirst">
  10388. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10389. Controls whether or not shared state artifacts are copied
  10390. into the extensible SDK.
  10391. The default value of "full" copies all of the required
  10392. shared state artifacts into the extensible SDK.
  10393. The value "minimal" leaves these artifacts out of the
  10394. SDK.
  10395. <note>
  10396. If you set the variable to "minimal", you need to
  10397. ensure
  10398. <link linkend='var-SSTATE_MIRRORS'><filename>SSTATE_MIRRORS</filename></link>
  10399. is set in the SDK's configuration to enable the
  10400. artifacts to be fetched as needed.
  10401. </note>
  10402. </para>
  10403. </glossdef>
  10404. </glossentry>
  10405. <glossentry id='var-SDK_HOST_MANIFEST'><glossterm>SDK_HOST_MANIFEST</glossterm>
  10406. <info>
  10407. SDK_HOST_MANIFEST[doc] = "The manifest file for the host part of the SDK. This file lists all the installed packages that make up the host part of the SDK."
  10408. </info>
  10409. <glossdef>
  10410. <para role="glossdeffirst">
  10411. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10412. The manifest file for the host part of the SDK.
  10413. This file lists all the installed packages that make up
  10414. the host part of SDK.
  10415. The file contains package information on a line-per-package
  10416. basis as follows:
  10417. <literallayout class='monospaced'>
  10418. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  10419. </literallayout>
  10420. </para>
  10421. <para>
  10422. The
  10423. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  10424. class defines the manifest file as follows:
  10425. <literallayout class='monospaced'>
  10426. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  10427. </literallayout>
  10428. The location is derived using the
  10429. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>
  10430. and
  10431. <link linkend='var-TOOLCHAIN_OUTPUTNAME'><filename>TOOLCHAIN_OUTPUTNAME</filename></link>
  10432. variables.
  10433. </para>
  10434. </glossdef>
  10435. </glossentry>
  10436. <glossentry id='var-SDK_INCLUDE_PKGDATA'><glossterm>SDK_INCLUDE_PKGDATA</glossterm>
  10437. <info>
  10438. SDK_INCLUDE_PKGDATA[doc] = "When set to "1", specifies to include the packagedata for all recipes in the "world" target in the extensible SDK."
  10439. </info>
  10440. <glossdef>
  10441. <para role="glossdeffirst">
  10442. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10443. When set to "1", specifies to include the packagedata for
  10444. all recipes in the "world" target in the extensible SDK.
  10445. Including this data allows the
  10446. <filename>devtool search</filename> command to find these
  10447. recipes in search results, as well as allows the
  10448. <filename>devtool add</filename> command to map
  10449. dependencies more effectively.
  10450. <note>
  10451. Enabling the <filename>SDK_INCLUDE_PKGDATA</filename>
  10452. variable significantly increases build time because
  10453. all of world needs to be built.
  10454. Enabling the variable also slightly increases the size
  10455. of the extensible SDK.
  10456. </note>
  10457. </para>
  10458. </glossdef>
  10459. </glossentry>
  10460. <glossentry id='var-SDK_INHERIT_BLACKLIST'><glossterm>SDK_INHERIT_BLACKLIST</glossterm>
  10461. <info>
  10462. SDK_INHERIT_BLACKLIST[doc] = "A list of classes to remove from the INHERIT value globally within the extensible SDK configuration."
  10463. </info>
  10464. <glossdef>
  10465. <para role="glossdeffirst">
  10466. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10467. A list of classes to remove from the
  10468. <link linkend='var-INHERIT'><filename>INHERIT</filename></link>
  10469. value globally within the extensible SDK configuration.
  10470. The default value is "buildhistory icecc".
  10471. </para>
  10472. <para>
  10473. Some classes are not generally applicable within
  10474. the extensible SDK context and you can use this variable
  10475. to disable them.
  10476. </para>
  10477. </glossdef>
  10478. </glossentry>
  10479. <glossentry id='var-SDK_LOCAL_CONF_BLACKLIST'><glossterm>SDK_LOCAL_CONF_BLACKLIST</glossterm>
  10480. <info>
  10481. SDK_LOCAL_CONF_BLACKLIST[doc] = "A list of variables not allowed through from the build system configuration into the extensible SDK configuration."
  10482. </info>
  10483. <glossdef>
  10484. <para role="glossdeffirst">
  10485. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10486. A list of variables not allowed through from the build
  10487. system configuration into the extensible SDK configuration.
  10488. Usually, these are variables that are specific to the
  10489. machine on which the build system is running and thus
  10490. would be potentially problematic within the extensible SDK.
  10491. </para>
  10492. </glossdef>
  10493. </glossentry>
  10494. <glossentry id='var-SDK_LOCAL_CONF_WHITELIST'><glossterm>SDK_LOCAL_CONF_WHITELIST</glossterm>
  10495. <info>
  10496. SDK_LOCAL_CONF_WHITELIST[doc] = "A list of variables allowed through from the build system configuration into the extensible SDK configuration."
  10497. </info>
  10498. <glossdef>
  10499. <para role="glossdeffirst">
  10500. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10501. A list of variables allowed through from the build system
  10502. configuration into the extensible SDK configuration.
  10503. This list overrides the variables specified using the
  10504. <link linkend='var-SDK_LOCAL_CONF_BLACKLIST'><filename>SDK_LOCAL_CONF_BLACKLIST</filename></link>
  10505. variable as well as any variables identified by automatic
  10506. blacklisting due to the "/" character being found at the
  10507. start of the value, which is usually indicative of being a
  10508. path and thus might not be valid on the system where the
  10509. SDK is installed.
  10510. </para>
  10511. </glossdef>
  10512. </glossentry>
  10513. <glossentry id='var-SDK_NAME'><glossterm>SDK_NAME</glossterm>
  10514. <info>
  10515. SDK_NAME[doc] = "The base name for SDK output files."
  10516. </info>
  10517. <glossdef>
  10518. <para role="glossdeffirst">
  10519. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10520. The base name for SDK output files.
  10521. The name is derived from the
  10522. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>,
  10523. <link linkend='var-TCLIBC'><filename>TCLIBC</filename></link>,
  10524. <link linkend='var-SDK_ARCH'><filename>SDK_ARCH</filename></link>,
  10525. <link linkend='var-IMAGE_BASENAME'><filename>IMAGE_BASENAME</filename></link>,
  10526. and
  10527. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>
  10528. variables:
  10529. <literallayout class='monospaced'>
  10530. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"
  10531. </literallayout>
  10532. </para>
  10533. </glossdef>
  10534. </glossentry>
  10535. <glossentry id='var-SDK_OS'><glossterm>SDK_OS</glossterm>
  10536. <info>
  10537. SDK_OS[doc] = "The operating system for which the SDK will be built."
  10538. </info>
  10539. <glossdef>
  10540. <para role="glossdeffirst">
  10541. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10542. Specifies the operating system for which the SDK
  10543. will be built.
  10544. The default value is the value of
  10545. <link linkend='var-BUILD_OS'><filename>BUILD_OS</filename></link>.
  10546. </para>
  10547. </glossdef>
  10548. </glossentry>
  10549. <glossentry id='var-SDK_OUTPUT'><glossterm>SDK_OUTPUT</glossterm>
  10550. <info>
  10551. SDK_OUTPUT[doc] = "The location used by the OpenEmbedded build system when creating SDK output."
  10552. </info>
  10553. <glossdef>
  10554. <para role="glossdeffirst">
  10555. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10556. The location used by the OpenEmbedded build system when
  10557. creating SDK output.
  10558. The
  10559. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  10560. class defines the variable as follows:
  10561. <literallayout class='monospaced'>
  10562. SDK_OUTPUT = "${<link linkend='var-SDK_DIR'>SDK_DIR</link>}/image"
  10563. </literallayout>
  10564. <note>
  10565. The <filename>SDK_OUTPUT</filename> directory is a
  10566. temporary directory as it is part of
  10567. <filename>WORKDIR</filename> by way of
  10568. <filename>SDK_DIR</filename>.
  10569. The final output directory is
  10570. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>.
  10571. </note>
  10572. </para>
  10573. </glossdef>
  10574. </glossentry>
  10575. <glossentry id='var-SDK_PACKAGE_ARCHS'><glossterm>SDK_PACKAGE_ARCHS</glossterm>
  10576. <info>
  10577. SDK_PACKAGE_ARCHS[doc] = "Specifies a list of architectures compatible with the SDK machine. This variable is set automatically and should not normally be hand-edited."
  10578. </info>
  10579. <glossdef>
  10580. <para role="glossdeffirst">
  10581. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10582. Specifies a list of architectures compatible with
  10583. the SDK machine.
  10584. This variable is set automatically and should not
  10585. normally be hand-edited.
  10586. Entries are separated using spaces and listed in order
  10587. of priority.
  10588. The default value for
  10589. <filename>SDK_PACKAGE_ARCHS</filename> is "all any noarch
  10590. ${SDK_ARCH}-${SDKPKGSUFFIX}".
  10591. </para>
  10592. </glossdef>
  10593. </glossentry>
  10594. <glossentry id='var-SDK_POSTPROCESS_COMMAND'><glossterm>SDK_POSTPROCESS_COMMAND</glossterm>
  10595. <info>
  10596. SDK_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system has created the SDK."
  10597. </info>
  10598. <glossdef>
  10599. <para role="glossdeffirst">
  10600. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10601. Specifies a list of functions to call once the
  10602. OpenEmbedded build system has created the SDK.
  10603. You can specify functions separated by semicolons:
  10604. <literallayout class='monospaced'>
  10605. SDK_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  10606. </literallayout>
  10607. </para>
  10608. <para>
  10609. If you need to pass an SDK path to a command within a
  10610. function, you can use
  10611. <filename>${SDK_DIR}</filename>, which points to
  10612. the parent directory used by the OpenEmbedded build system
  10613. when creating SDK output.
  10614. See the
  10615. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  10616. variable for more information.
  10617. </para>
  10618. </glossdef>
  10619. </glossentry>
  10620. <glossentry id='var-SDK_PREFIX'><glossterm>SDK_PREFIX</glossterm>
  10621. <info>
  10622. SDK_PREFIX[doc] = "The toolchain binary prefix used for nativesdk recipes."
  10623. </info>
  10624. <glossdef>
  10625. <para role="glossdeffirst">
  10626. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10627. The toolchain binary prefix used for
  10628. <filename>nativesdk</filename> recipes.
  10629. The OpenEmbedded build system uses the
  10630. <filename>SDK_PREFIX</filename> value to set the
  10631. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  10632. when building <filename>nativesdk</filename> recipes.
  10633. The default value is "${SDK_SYS}-".
  10634. </para>
  10635. </glossdef>
  10636. </glossentry>
  10637. <glossentry id='var-SDK_RECRDEP_TASKS'><glossterm>SDK_RECRDEP_TASKS</glossterm>
  10638. <info>
  10639. SDK_RECRDEP_TASKS[doc] = "A list of shared state tasks added to the extensible SDK."
  10640. </info>
  10641. <glossdef>
  10642. <para role="glossdeffirst">
  10643. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10644. A list of shared state tasks added to the extensible SDK.
  10645. By default, the following tasks are added:
  10646. <literallayout class='monospaced'>
  10647. do_populate_lic
  10648. do_package_qa
  10649. do_populate_sysroot
  10650. do_deploy
  10651. </literallayout>
  10652. Despite the default value of "" for the
  10653. <filename>SDK_RECRDEP_TASKS</filename> variable, the
  10654. above four tasks are always added to the SDK.
  10655. To specify tasks beyond these four, you need to use
  10656. the <filename>SDK_RECRDEP_TASKS</filename> variable (e.g.
  10657. you are defining additional tasks that are needed in
  10658. order to build
  10659. <link linkend='var-SDK_TARGETS'><filename>SDK_TARGETS</filename></link>).
  10660. </para>
  10661. </glossdef>
  10662. </glossentry>
  10663. <glossentry id='var-SDK_SYS'><glossterm>SDK_SYS</glossterm>
  10664. <info>
  10665. SDK_SYS[doc] = "Specifies the system, including the architecture and the operating system, for which the SDK will be built."
  10666. </info>
  10667. <glossdef>
  10668. <para role="glossdeffirst">
  10669. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10670. Specifies the system, including the architecture and the
  10671. operating system, for which the SDK will be built.
  10672. </para>
  10673. <para>
  10674. The OpenEmbedded build system automatically sets this
  10675. variable based on
  10676. <link linkend='var-SDK_ARCH'><filename>SDK_ARCH</filename></link>,
  10677. <link linkend='var-SDK_VENDOR'><filename>SDK_VENDOR</filename></link>,
  10678. and
  10679. <link linkend='var-SDK_OS'><filename>SDK_OS</filename></link>.
  10680. You do not need to set the <filename>SDK_SYS</filename>
  10681. variable yourself.
  10682. </para>
  10683. </glossdef>
  10684. </glossentry>
  10685. <glossentry id='var-SDK_TARGET_MANIFEST'><glossterm>SDK_TARGET_MANIFEST</glossterm>
  10686. <info>
  10687. SDK_TARGET_MANIFEST[doc] = "The manifest file for the target part of the SDK. This file lists all the installed packages that make up the target part of the SDK."
  10688. </info>
  10689. <glossdef>
  10690. <para role="glossdeffirst">
  10691. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10692. The manifest file for the target part of the SDK.
  10693. This file lists all the installed packages that make up
  10694. the target part of the SDK.
  10695. The file contains package information on a line-per-package
  10696. basis as follows:
  10697. <literallayout class='monospaced'>
  10698. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  10699. </literallayout>
  10700. </para>
  10701. <para>
  10702. The
  10703. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  10704. class defines the manifest file as follows:
  10705. <literallayout class='monospaced'>
  10706. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  10707. </literallayout>
  10708. The location is derived using the
  10709. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>
  10710. and
  10711. <link linkend='var-TOOLCHAIN_OUTPUTNAME'><filename>TOOLCHAIN_OUTPUTNAME</filename></link>
  10712. variables.
  10713. </para>
  10714. </glossdef>
  10715. </glossentry>
  10716. <glossentry id='var-SDK_TARGETS'><glossterm>SDK_TARGETS</glossterm>
  10717. <info>
  10718. SDK_TARGETS[doc] = "A list of targets to install from shared state as part of the standard or extensible SDK installation."
  10719. </info>
  10720. <glossdef>
  10721. <para role="glossdeffirst">
  10722. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10723. A list of targets to install from shared state as part of
  10724. the standard or extensible SDK installation.
  10725. The default value is "${PN}" (i.e. the image from which
  10726. the SDK is built).
  10727. </para>
  10728. <para>
  10729. The <filename>SDK_TARGETS</filename> variable is an
  10730. internal variable and typically would not be changed.
  10731. </para>
  10732. </glossdef>
  10733. </glossentry>
  10734. <glossentry id='var-SDK_TITLE'><glossterm>SDK_TITLE</glossterm>
  10735. <info>
  10736. SDK_TITLE[doc] = "Specifies a title to be printed when running the SDK installer."
  10737. </info>
  10738. <glossdef>
  10739. <para role="glossdeffirst">
  10740. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10741. Specifies a title to be printed when running the SDK
  10742. installer.
  10743. The <filename>SDK_TITLE</filename> variable defaults to
  10744. "<replaceable>distro</replaceable> SDK" for the standard
  10745. SDK and "<replaceable>distro</replaceable> Extensible SDK"
  10746. for the extensible SDK, where
  10747. <replaceable>distro</replaceable> is the first one of
  10748. <link linkend='var-DISTRO_NAME'><filename>DISTRO_NAME</filename></link>
  10749. or
  10750. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>
  10751. that is set in your configuration.
  10752. </para>
  10753. </glossdef>
  10754. </glossentry>
  10755. <glossentry id='var-SDK_UPDATE_URL'><glossterm>SDK_UPDATE_URL</glossterm>
  10756. <info>
  10757. SDK_UPDATE_URL[doc] = "An optional URL for an update server for the extensible SDK."
  10758. </info>
  10759. <glossdef>
  10760. <para role="glossdeffirst">
  10761. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10762. An optional URL for an update server for the extensible
  10763. SDK.
  10764. If set, the value is used as the default update server when
  10765. running <filename>devtool sdk-update</filename> within the
  10766. extensible SDK.
  10767. </para>
  10768. </glossdef>
  10769. </glossentry>
  10770. <glossentry id='var-SDK_VENDOR'><glossterm>SDK_VENDOR</glossterm>
  10771. <info>
  10772. SDK_VENDOR[doc] = "Specifies the name of the SDK vendor."
  10773. </info>
  10774. <glossdef>
  10775. <para role="glossdeffirst">
  10776. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10777. Specifies the name of the SDK vendor.
  10778. </para>
  10779. </glossdef>
  10780. </glossentry>
  10781. <glossentry id='var-SDK_VERSION'><glossterm>SDK_VERSION</glossterm>
  10782. <info>
  10783. SDK_VERSION[doc] = "Specifies the version for the SDK."
  10784. </info>
  10785. <glossdef>
  10786. <para role="glossdeffirst">
  10787. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10788. Specifies the version of the SDK.
  10789. The distribution configuration file (e.g.
  10790. <filename>/meta-poky/conf/distro/poky.conf</filename>)
  10791. defines the <filename>SDK_VERSION</filename> as follows:
  10792. <literallayout class='monospaced'>
  10793. SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"
  10794. </literallayout>
  10795. </para>
  10796. <para>
  10797. For additional information, see the
  10798. <link linkend='var-DISTRO_VERSION'><filename>DISTRO_VERSION</filename></link>
  10799. and
  10800. <link linkend='var-DATE'><filename>DATE</filename></link>
  10801. variables.
  10802. </para>
  10803. </glossdef>
  10804. </glossentry>
  10805. <glossentry id='var-SDKIMAGE_FEATURES'><glossterm>SDKIMAGE_FEATURES</glossterm>
  10806. <info>
  10807. SDKIMAGE_FEATURES[doc] = "Equivalent to IMAGE_FEATURES. However, this variable applies to the SDK generated from an image using the command 'bitbake -c populate_sdk imagename'."
  10808. </info>
  10809. <glossdef>
  10810. <para role="glossdeffirst">
  10811. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10812. Equivalent to
  10813. <filename><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></filename>.
  10814. However, this variable applies to the SDK generated from an
  10815. image using the following command:
  10816. <literallayout class='monospaced'>
  10817. $ bitbake -c populate_sdk <replaceable>imagename</replaceable>
  10818. </literallayout>
  10819. </para>
  10820. </glossdef>
  10821. </glossentry>
  10822. <glossentry id='var-SDKMACHINE'><glossterm>SDKMACHINE</glossterm>
  10823. <info>
  10824. SDKMACHINE[doc] = "Specifies the architecture (i.e. i686 or x86_64) for which to build SDK items."
  10825. </info>
  10826. <glossdef>
  10827. <para role="glossdeffirst">
  10828. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10829. The machine for which the SDK is built.
  10830. In other words, the SDK is built such that it
  10831. runs on the target you specify with the
  10832. <filename>SDKMACHINE</filename> value.
  10833. The value points to a corresponding
  10834. <filename>.conf</filename> file under
  10835. <filename>conf/machine-sdk/</filename>.
  10836. </para>
  10837. <para>
  10838. You can use "i686" and "x86_64" as possible values
  10839. for this variable. The variable defaults to "i686"
  10840. and is set in the local.conf file in the Build Directory.
  10841. <literallayout class='monospaced'>
  10842. SDKMACHINE ?= "i686"
  10843. </literallayout>
  10844. <note>
  10845. You cannot set the <filename>SDKMACHINE</filename>
  10846. variable in your distribution configuration file.
  10847. If you do, the configuration will not take affect.
  10848. </note>
  10849. </para>
  10850. </glossdef>
  10851. </glossentry>
  10852. <glossentry id='var-SDKPATH'><glossterm>SDKPATH</glossterm>
  10853. <info>
  10854. SDKPATH[doc] = "Defines the path offered to the user for installation of the SDK that is generated by the OpenEmbedded build system."
  10855. </info>
  10856. <glossdef>
  10857. <para role="glossdeffirst">
  10858. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10859. Defines the path offered to the user for installation
  10860. of the SDK that is generated by the OpenEmbedded build
  10861. system.
  10862. The path appears as the default location for installing
  10863. the SDK when you run the SDK's installation script.
  10864. You can override the offered path when you run the
  10865. script.
  10866. </para>
  10867. </glossdef>
  10868. </glossentry>
  10869. <glossentry id='var-SDKTARGETSYSROOT'><glossterm>SDKTARGETSYSROOT</glossterm>
  10870. <info>
  10871. SDKTARGETSYSROOT[doc] = "Full path to the sysroot used for cross-compilation within an SDK as it will be when installed into the default SDKPATH."
  10872. </info>
  10873. <glossdef>
  10874. <para role="glossdeffirst">
  10875. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10876. The full path to the sysroot used for cross-compilation
  10877. within an SDK as it will be when installed into the
  10878. default
  10879. <link linkend='var-SDKPATH'><filename>SDKPATH</filename></link>.
  10880. </para>
  10881. </glossdef>
  10882. </glossentry>
  10883. <glossentry id='var-SECTION'><glossterm>SECTION</glossterm>
  10884. <info>
  10885. SECTION[doc] = "The section in which packages should be categorized. Package management utilities can make use of this variable."
  10886. </info>
  10887. <glossdef>
  10888. <para role="glossdeffirst">
  10889. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10890. The section in which packages should be categorized.
  10891. Package management utilities can make use of this variable.
  10892. </para>
  10893. </glossdef>
  10894. </glossentry>
  10895. <glossentry id='var-SELECTED_OPTIMIZATION'><glossterm>SELECTED_OPTIMIZATION</glossterm>
  10896. <info>
  10897. SELECTED_OPTIMIZATION[doc] = "The variable takes the value of FULL_OPTIMIZATION unless DEBUG_BUILD = '1'. In this case, the value of DEBUG_OPTIMIZATION is used."
  10898. </info>
  10899. <glossdef>
  10900. <para role="glossdeffirst">
  10901. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10902. Specifies the optimization flags passed to the C compiler
  10903. when building for the target.
  10904. The flags are passed through the default value of the
  10905. <link linkend='var-TARGET_CFLAGS'><filename>TARGET_CFLAGS</filename></link>
  10906. variable.
  10907. </para>
  10908. <para>
  10909. The <filename>SELECTED_OPTIMIZATION</filename> variable
  10910. takes the value of
  10911. <filename><link linkend='var-FULL_OPTIMIZATION'>FULL_OPTIMIZATION</link></filename>
  10912. unless <filename><link linkend='var-DEBUG_BUILD'>DEBUG_BUILD</link></filename> = "1".
  10913. If that is the case, the value of
  10914. <filename><link linkend='var-DEBUG_OPTIMIZATION'>DEBUG_OPTIMIZATION</link></filename> is used.
  10915. </para>
  10916. </glossdef>
  10917. </glossentry>
  10918. <glossentry id='var-SERIAL_CONSOLE'><glossterm>SERIAL_CONSOLE</glossterm>
  10919. <info>
  10920. SERIAL_CONSOLE[doc] = "The speed and device for the serial port used to attach the serial console. This variable is given to the kernel as the 'console' parameter. After booting occurs, getty is started on that port so remote login is possible."
  10921. </info>
  10922. <glossdef>
  10923. <para role="glossdeffirst">
  10924. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10925. Defines a serial console (TTY) to enable using getty.
  10926. Provide a value that specifies the baud rate followed by
  10927. the TTY device name separated by a space.
  10928. You cannot specify more than one TTY device:
  10929. <literallayout class='monospaced'>
  10930. SERIAL_CONSOLE = "115200 ttyS0"
  10931. </literallayout>
  10932. <note>
  10933. The <filename>SERIAL_CONSOLE</filename> variable
  10934. is deprecated.
  10935. Please use the
  10936. <link linkend='var-SERIAL_CONSOLES'><filename>SERIAL_CONSOLES</filename></link>
  10937. variable.
  10938. </note>
  10939. </para>
  10940. </glossdef>
  10941. </glossentry>
  10942. <glossentry id='var-SERIAL_CONSOLES'><glossterm>SERIAL_CONSOLES</glossterm>
  10943. <info>
  10944. SERIAL_CONSOLES[doc] = "Defines the serial consoles (TTYs) to enable using getty."
  10945. </info>
  10946. <glossdef>
  10947. <para role="glossdeffirst">
  10948. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10949. Defines the serial consoles (TTYs) to enable using getty.
  10950. Provide a value that specifies the baud rate followed by
  10951. the TTY device name separated by a semicolon.
  10952. Use spaces to separate multiple devices:
  10953. <literallayout class='monospaced'>
  10954. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  10955. </literallayout>
  10956. </para>
  10957. </glossdef>
  10958. </glossentry>
  10959. <glossentry id='var-SERIAL_CONSOLES_CHECK'><glossterm>SERIAL_CONSOLES_CHECK</glossterm>
  10960. <info>
  10961. SERIAL_CONSOLES_CHECK[doc] = "Selected SERIAL_CONSOLES to check against /proc/console before enabling using getty. Supported only by SysVinit."
  10962. </info>
  10963. <glossdef>
  10964. <para role="glossdeffirst">
  10965. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10966. Specifies serial consoles, which must be listed in
  10967. <link linkend='var-SERIAL_CONSOLES'><filename>SERIAL_CONSOLES</filename></link>,
  10968. to check against <filename>/proc/console</filename>
  10969. before enabling them using getty.
  10970. This variable allows aliasing in the format:
  10971. &lt;device&gt;:&lt;alias&gt;.
  10972. If a device was listed as "sclp_line0"
  10973. in <filename>/dev/</filename> and "ttyS0" was listed
  10974. in <filename>/proc/console</filename>, you would do the
  10975. following:
  10976. <literallayout class='monospaced'>
  10977. SERIAL_CONSOLES_CHECK = "slcp_line0:ttyS0"
  10978. </literallayout>
  10979. This variable is currently only supported with SysVinit
  10980. (i.e. not with systemd).
  10981. </para>
  10982. </glossdef>
  10983. </glossentry>
  10984. <glossentry id='var-SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS'><glossterm>SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS</glossterm>
  10985. <info>
  10986. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS[doc] = "A list of recipe dependencies that should not be used to determine signatures of tasks from one recipe when they depend on tasks from another recipe."
  10987. </info>
  10988. <glossdef>
  10989. <para role="glossdeffirst">
  10990. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10991. A list of recipe dependencies that should not be used to
  10992. determine signatures of tasks from one recipe when they
  10993. depend on tasks from another recipe.
  10994. For example:
  10995. <literallayout class='monospaced'>
  10996. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  10997. </literallayout>
  10998. </para>
  10999. <para>
  11000. In this example, <filename>intone</filename> depends on
  11001. <filename>mplayer2</filename>.
  11002. </para>
  11003. <para>
  11004. Use of this variable is one mechanism to remove dependencies
  11005. that affect task signatures and thus force rebuilds when a
  11006. recipe changes.
  11007. <note><title>Caution</title>
  11008. If you add an inappropriate dependency for a recipe
  11009. relationship, the software might break during
  11010. runtime if the interface of the second recipe was
  11011. changed after the first recipe had been built.
  11012. </note>
  11013. </para>
  11014. </glossdef>
  11015. </glossentry>
  11016. <glossentry id='var-SIGGEN_EXCLUDERECIPES_ABISAFE'><glossterm>SIGGEN_EXCLUDERECIPES_ABISAFE</glossterm>
  11017. <info>
  11018. SIGGEN_EXCLUDERECIPES_ABISAFE[doc] = "A list of recipes that are completely stable and will never change."
  11019. </info>
  11020. <glossdef>
  11021. <para role="glossdeffirst">
  11022. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11023. A list of recipes that are completely stable and will
  11024. never change.
  11025. The ABI for the recipes in the list are presented by
  11026. output from the tasks run to build the recipe.
  11027. Use of this variable is one way to remove dependencies from
  11028. one recipe on another that affect task signatures and
  11029. thus force rebuilds when the recipe changes.
  11030. <note><title>Caution</title>
  11031. If you add an inappropriate variable to this list,
  11032. the software might break at runtime if the
  11033. interface of the recipe was changed after the other
  11034. had been built.
  11035. </note>
  11036. </para>
  11037. </glossdef>
  11038. </glossentry>
  11039. <glossentry id='var-SITEINFO_BITS'><glossterm>SITEINFO_BITS</glossterm>
  11040. <info>
  11041. SITEINFO_BITS[doc] = "Specifies the number of bits for the target system CPU."
  11042. </info>
  11043. <glossdef>
  11044. <para role="glossdeffirst">
  11045. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11046. Specifies the number of bits for the target system CPU.
  11047. The value should be either "32" or "64".
  11048. </para>
  11049. </glossdef>
  11050. </glossentry>
  11051. <glossentry id='var-SITEINFO_ENDIANNESS'><glossterm>SITEINFO_ENDIANNESS</glossterm>
  11052. <info>
  11053. SITEINFO_ENDIANNESS[doc] = "Specifies the endian byte order of the target system. The value should be either 'le' for 'little-endian' or 'be' for 'big-endian'."
  11054. </info>
  11055. <glossdef>
  11056. <para role="glossdeffirst">
  11057. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11058. Specifies the endian byte order of the target system.
  11059. The value should be either "le" for little-endian or "be" for big-endian.
  11060. </para>
  11061. </glossdef>
  11062. </glossentry>
  11063. <glossentry id='var-SKIP_FILEDEPS'><glossterm>SKIP_FILEDEPS</glossterm>
  11064. <info>
  11065. SKIP_FILEDEPS[doc] = "Enables you to remove all files from
  11066. the "Provides" section of an RPM package."
  11067. </info>
  11068. <glossdef>
  11069. <para role="glossdeffirst">
  11070. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11071. Enables removal of all files from the "Provides" section of
  11072. an RPM package.
  11073. Removal of these files is required for packages containing
  11074. prebuilt binaries and libraries such as
  11075. <filename>libstdc++</filename> and
  11076. <filename>glibc</filename>.
  11077. </para>
  11078. <para>
  11079. To enable file removal, set the variable to "1" in your
  11080. <filename>conf/local.conf</filename> configuration file
  11081. in your:
  11082. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  11083. <literallayout class='monospaced'>
  11084. SKIP_FILEDEPS = "1"
  11085. </literallayout>
  11086. </para>
  11087. </glossdef>
  11088. </glossentry>
  11089. <glossentry id='var-SOC_FAMILY'><glossterm>SOC_FAMILY</glossterm>
  11090. <info>
  11091. SOC_FAMILY[doc] = "Groups together machines based upon the same family of SOC (System On Chip). You typically set this variable in a common .inc file that you include in the configuration files of all the machines."
  11092. </info>
  11093. <glossdef>
  11094. <para role="glossdeffirst">
  11095. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11096. Groups together machines based upon the same family
  11097. of SOC (System On Chip).
  11098. You typically set this variable in a common
  11099. <filename>.inc</filename> file that you include in the
  11100. configuration files of all the machines.
  11101. <note>
  11102. You must include
  11103. <filename>conf/machine/include/soc-family.inc</filename>
  11104. for this variable to appear in
  11105. <link linkend='var-MACHINEOVERRIDES'><filename>MACHINEOVERRIDES</filename></link>.
  11106. </note>
  11107. </para>
  11108. </glossdef>
  11109. </glossentry>
  11110. <glossentry id='var-SOLIBS'><glossterm>SOLIBS</glossterm>
  11111. <info>
  11112. SOLIBS[doc] = "Defines the suffix for shared libraries used on the target platform."
  11113. </info>
  11114. <glossdef>
  11115. <para role="glossdeffirst">
  11116. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11117. Defines the suffix for shared libraries used on the
  11118. target platform.
  11119. By default, this suffix is ".so.*" for all Linux-based
  11120. systems and is defined in the
  11121. <filename>meta/conf/bitbake.conf</filename> configuration
  11122. file.
  11123. </para>
  11124. <para>
  11125. You will see this variable referenced in the default values
  11126. of <filename>FILES_${PN}</filename>.
  11127. </para>
  11128. </glossdef>
  11129. </glossentry>
  11130. <glossentry id='var-SOLIBSDEV'><glossterm>SOLIBSDEV</glossterm>
  11131. <info>
  11132. SOLIBSDEV[doc] = "Defines the suffix for the development symbolic link (symlink) for shared libraries on the target platform."
  11133. </info>
  11134. <glossdef>
  11135. <para role="glossdeffirst">
  11136. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11137. Defines the suffix for the development symbolic link
  11138. (symlink) for shared libraries on the target platform.
  11139. By default, this suffix is ".so" for Linux-based
  11140. systems and is defined in the
  11141. <filename>meta/conf/bitbake.conf</filename> configuration
  11142. file.
  11143. </para>
  11144. <para>
  11145. You will see this variable referenced in the default values
  11146. of <filename>FILES_${PN}-dev</filename>.
  11147. </para>
  11148. </glossdef>
  11149. </glossentry>
  11150. <glossentry id='var-SOURCE_MIRROR_FETCH'><glossterm>SOURCE_MIRROR_FETCH</glossterm>
  11151. <info>
  11152. SOURCE_MIRROR_FETCH[doc] = "Set as part of a source mirror generation script to skip COMPATIBLE_MACHINE and COMPATIBLE_HOST checks."
  11153. </info>
  11154. <glossdef>
  11155. <para role="glossdeffirst">
  11156. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11157. When you are fetching files to create a mirror of sources
  11158. (i.e. creating a source mirror), setting
  11159. <filename>SOURCE_MIRROR_FETCH</filename> to "1" in your
  11160. <filename>local.conf</filename> configuration file ensures
  11161. the source for all recipes are fetched regardless of
  11162. whether or not a recipe is compatible with the
  11163. configuration.
  11164. A recipe is considered incompatible with the currently
  11165. configured machine when either or both the
  11166. <link linkend='var-COMPATIBLE_MACHINE'><filename>COMPATIBLE_MACHINE</filename></link>
  11167. variable and
  11168. <link linkend='var-COMPATIBLE_HOST'><filename>COMPATIBLE_HOST</filename></link>
  11169. variables specify compatibility with a machine other
  11170. than that of the current machine or host.
  11171. <note><title>Warning</title>
  11172. Do not set the
  11173. <filename>SOURCE_MIRROR_FETCH</filename> variable
  11174. unless you are creating a source mirror.
  11175. In other words, do not set the variable during a
  11176. normal build.
  11177. </note>
  11178. </para>
  11179. </glossdef>
  11180. </glossentry>
  11181. <glossentry id='var-SOURCE_MIRROR_URL'><glossterm>SOURCE_MIRROR_URL</glossterm>
  11182. <info>
  11183. SOURCE_MIRROR_URL[doc] = "URL to source mirror that will be used before fetching from original SRC_URI."
  11184. </info>
  11185. <glossdef>
  11186. <para role="glossdeffirst">
  11187. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11188. Defines your own
  11189. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  11190. from which to first fetch source before attempting to fetch
  11191. from the upstream specified in
  11192. <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>.
  11193. </para>
  11194. <para>
  11195. To use this variable, you must globally inherit the
  11196. <link linkend='ref-classes-own-mirrors'><filename>own-mirrors</filename></link>
  11197. class and then provide the URL to your mirrors.
  11198. Here is the general syntax:
  11199. <literallayout class='monospaced'>
  11200. INHERIT += "own-mirrors"
  11201. SOURCE_MIRROR_URL = "http://<replaceable>example</replaceable>.com/<replaceable>my_source_mirror</replaceable>"
  11202. </literallayout>
  11203. <note>
  11204. You can specify only a single URL in
  11205. <filename>SOURCE_MIRROR_URL</filename>.
  11206. </note>
  11207. </para>
  11208. </glossdef>
  11209. </glossentry>
  11210. <glossentry id='var-SPDXLICENSEMAP'><glossterm>SPDXLICENSEMAP</glossterm>
  11211. <info>
  11212. SPDXLICENSEMAP[doc] = "Maps commonly used license names to their SPDX counterparts found in meta/files/common-licenses/."
  11213. </info>
  11214. <glossdef>
  11215. <para role="glossdeffirst">
  11216. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11217. Maps commonly used license names to their SPDX counterparts
  11218. found in <filename>meta/files/common-licenses/</filename>.
  11219. For the default <filename>SPDXLICENSEMAP</filename>
  11220. mappings, see the
  11221. <filename>meta/conf/licenses.conf</filename> file.
  11222. </para>
  11223. <para>
  11224. For additional information, see the
  11225. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  11226. variable.
  11227. </para>
  11228. </glossdef>
  11229. </glossentry>
  11230. <glossentry id='var-SPECIAL_PKGSUFFIX'><glossterm>SPECIAL_PKGSUFFIX</glossterm>
  11231. <info>
  11232. SPECIAL_PKGSUFFIX[doc] = "A list of prefixes for PN used by the OpenEmbedded build system to create variants of recipes or packages. The list specifies the prefixes to strip off during certain circumstances such as the generation of the BPN variable."
  11233. </info>
  11234. <glossdef>
  11235. <para role="glossdeffirst">
  11236. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11237. A list of prefixes for <link linkend='var-PN'><filename>PN</filename></link> used by the
  11238. OpenEmbedded build system to create variants of recipes or packages.
  11239. The list specifies the prefixes to strip off during certain circumstances
  11240. such as the generation of the <link linkend='var-BPN'><filename>BPN</filename></link> variable.
  11241. </para>
  11242. </glossdef>
  11243. </glossentry>
  11244. <glossentry id='var-SRC_URI'><glossterm>SRC_URI</glossterm>
  11245. <info>
  11246. SRC_URI[doc] = "The list of source files - local or remote. This variable tells the OpenEmbedded build system what bits to pull in for the build and how to pull them in."
  11247. </info>
  11248. <glossdef>
  11249. <para role="glossdeffirst">
  11250. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11251. The list of source files - local or remote.
  11252. This variable tells the OpenEmbedded build system which bits
  11253. to pull in for the build and how to pull them in.
  11254. For example, if the recipe or append file only needs to
  11255. fetch a tarball from the Internet, the recipe or
  11256. append file uses a single <filename>SRC_URI</filename>
  11257. entry.
  11258. On the other hand, if the recipe or append file needs to
  11259. fetch a tarball, apply two patches, and include a custom
  11260. file, the recipe or append file would include four
  11261. instances of the variable.
  11262. </para>
  11263. <para>
  11264. The following list explains the available URI protocols.
  11265. URI protocols are highly dependent on particular BitBake
  11266. Fetcher submodules.
  11267. Depending on the fetcher BitBake uses, various URL
  11268. parameters are employed.
  11269. For specifics on the supported Fetchers, see the
  11270. "<ulink url='&YOCTO_DOCS_BB_URL;#bb-fetchers'>Fetchers</ulink>"
  11271. section in the BitBake User Manual.
  11272. <itemizedlist>
  11273. <listitem><para><emphasis><filename>file://</filename> -</emphasis>
  11274. Fetches files, which are usually files shipped with
  11275. the
  11276. <ulink url='&YOCTO_DOCS_DEV_URL;#metadata'>Metadata</ulink>,
  11277. from the local machine.
  11278. The path is relative to the
  11279. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>
  11280. variable.
  11281. Thus, the build system searches, in order, from the
  11282. following directories, which are assumed to be a
  11283. subdirectories of the directory in which the
  11284. recipe file (<filename>.bb</filename>) or
  11285. append file (<filename>.bbappend</filename>)
  11286. resides:
  11287. <itemizedlist>
  11288. <listitem><para><emphasis><filename>${BPN}</filename> -</emphasis>
  11289. The base recipe name without any special
  11290. suffix or version numbers.
  11291. </para></listitem>
  11292. <listitem><para><emphasis><filename>${BP}</filename> -</emphasis>
  11293. <filename>${<link linkend='var-BPN'>BPN</link>}-${PV}</filename>.
  11294. The base recipe name and version but without
  11295. any special package name suffix.
  11296. </para></listitem>
  11297. <listitem><para><emphasis>files -</emphasis>
  11298. Files within a directory, which is named
  11299. <filename>files</filename> and is also
  11300. alongside the recipe or append file.
  11301. </para></listitem>
  11302. </itemizedlist>
  11303. <note>
  11304. If you want the build system to pick up files
  11305. specified through a
  11306. <filename>SRC_URI</filename>
  11307. statement from your append file, you need to be
  11308. sure to extend the
  11309. <filename>FILESPATH</filename>
  11310. variable by also using the
  11311. <link linkend='var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></link>
  11312. variable from within your append file.
  11313. </note>
  11314. </para></listitem>
  11315. <listitem><para><emphasis><filename>bzr://</filename> -</emphasis> Fetches files from a
  11316. Bazaar revision control repository.</para></listitem>
  11317. <listitem><para><emphasis><filename>git://</filename> -</emphasis> Fetches files from a
  11318. Git revision control repository.</para></listitem>
  11319. <listitem><para><emphasis><filename>osc://</filename> -</emphasis> Fetches files from
  11320. an OSC (OpenSUSE Build service) revision control repository.</para></listitem>
  11321. <listitem><para><emphasis><filename>repo://</filename> -</emphasis> Fetches files from
  11322. a repo (Git) repository.</para></listitem>
  11323. <listitem><para><emphasis><filename>ccrc://</filename> -</emphasis>
  11324. Fetches files from a ClearCase repository.
  11325. </para></listitem>
  11326. <listitem><para><emphasis><filename>http://</filename> -</emphasis> Fetches files from
  11327. the Internet using <filename>http</filename>.</para></listitem>
  11328. <listitem><para><emphasis><filename>https://</filename> -</emphasis> Fetches files
  11329. from the Internet using <filename>https</filename>.</para></listitem>
  11330. <listitem><para><emphasis><filename>ftp://</filename> -</emphasis> Fetches files
  11331. from the Internet using <filename>ftp</filename>.</para></listitem>
  11332. <listitem><para><emphasis><filename>cvs://</filename> -</emphasis> Fetches files from
  11333. a CVS revision control repository.</para></listitem>
  11334. <listitem><para><emphasis><filename>hg://</filename> -</emphasis> Fetches files from
  11335. a Mercurial (<filename>hg</filename>) revision control repository.</para></listitem>
  11336. <listitem><para><emphasis><filename>p4://</filename> -</emphasis> Fetches files from
  11337. a Perforce (<filename>p4</filename>) revision control repository.</para></listitem>
  11338. <listitem><para><emphasis><filename>ssh://</filename> -</emphasis> Fetches files from
  11339. a secure shell.</para></listitem>
  11340. <listitem><para><emphasis><filename>svn://</filename> -</emphasis> Fetches files from
  11341. a Subversion (<filename>svn</filename>) revision control repository.</para></listitem>
  11342. </itemizedlist>
  11343. </para>
  11344. <para>
  11345. Standard and recipe-specific options for <filename>SRC_URI</filename> exist.
  11346. Here are standard options:
  11347. <itemizedlist>
  11348. <listitem><para><emphasis><filename>apply</filename> -</emphasis> Whether to apply
  11349. the patch or not.
  11350. The default action is to apply the patch.</para></listitem>
  11351. <listitem><para><emphasis><filename>striplevel</filename> -</emphasis> Which
  11352. striplevel to use when applying the patch.
  11353. The default level is 1.</para></listitem>
  11354. <listitem><para><emphasis><filename>patchdir</filename> -</emphasis> Specifies
  11355. the directory in which the patch should be applied.
  11356. The default is <filename>${</filename><link linkend='var-S'><filename>S</filename></link><filename>}</filename>.
  11357. </para></listitem>
  11358. </itemizedlist>
  11359. </para>
  11360. <para>
  11361. Here are options specific to recipes building code from a revision control system:
  11362. <itemizedlist>
  11363. <listitem><para><emphasis><filename>mindate</filename> -</emphasis>
  11364. Apply the patch only if
  11365. <link linkend='var-SRCDATE'><filename>SRCDATE</filename></link>
  11366. is equal to or greater than <filename>mindate</filename>.
  11367. </para></listitem>
  11368. <listitem><para><emphasis><filename>maxdate</filename> -</emphasis>
  11369. Apply the patch only if <filename>SRCDATE</filename>
  11370. is not later than <filename>mindate</filename>.
  11371. </para></listitem>
  11372. <listitem><para><emphasis><filename>minrev</filename> -</emphasis>
  11373. Apply the patch only if <filename>SRCREV</filename>
  11374. is equal to or greater than <filename>minrev</filename>.
  11375. </para></listitem>
  11376. <listitem><para><emphasis><filename>maxrev</filename> -</emphasis>
  11377. Apply the patch only if <filename>SRCREV</filename>
  11378. is not later than <filename>maxrev</filename>.
  11379. </para></listitem>
  11380. <listitem><para><emphasis><filename>rev</filename> -</emphasis>
  11381. Apply the patch only if <filename>SRCREV</filename>
  11382. is equal to <filename>rev</filename>.
  11383. </para></listitem>
  11384. <listitem><para><emphasis><filename>notrev</filename> -</emphasis>
  11385. Apply the patch only if <filename>SRCREV</filename>
  11386. is not equal to <filename>rev</filename>.
  11387. </para></listitem>
  11388. </itemizedlist>
  11389. </para>
  11390. <para>
  11391. Here are some additional options worth mentioning:
  11392. <itemizedlist>
  11393. <listitem><para><emphasis><filename>unpack</filename> -</emphasis> Controls
  11394. whether or not to unpack the file if it is an archive.
  11395. The default action is to unpack the file.</para></listitem>
  11396. <listitem><para><emphasis><filename>destsuffix</filename> -</emphasis> Places the file
  11397. (or extracts its contents) into the specified
  11398. subdirectory of <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  11399. when the Git fetcher is used.
  11400. </para></listitem>
  11401. <listitem><para><emphasis><filename>subdir</filename> -</emphasis> Places the file
  11402. (or extracts its contents) into the specified
  11403. subdirectory of <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  11404. when the local (<filename>file://</filename>)
  11405. fetcher is used.
  11406. </para></listitem>
  11407. <listitem><para><emphasis><filename>localdir</filename> -</emphasis> Places the file
  11408. (or extracts its contents) into the specified
  11409. subdirectory of <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  11410. when the CVS fetcher is used.
  11411. </para></listitem>
  11412. <listitem><para><emphasis><filename>subpath</filename> -</emphasis>
  11413. Limits the checkout to a specific subpath of the
  11414. tree when using the Git fetcher is used.
  11415. </para></listitem>
  11416. <listitem><para><emphasis><filename>name</filename> -</emphasis> Specifies a
  11417. name to be used for association with <filename>SRC_URI</filename> checksums
  11418. when you have more than one file specified in <filename>SRC_URI</filename>.
  11419. </para></listitem>
  11420. <listitem><para><emphasis><filename>downloadfilename</filename> -</emphasis> Specifies
  11421. the filename used when storing the downloaded file.</para></listitem>
  11422. </itemizedlist>
  11423. </para>
  11424. </glossdef>
  11425. </glossentry>
  11426. <glossentry id='var-SRC_URI_OVERRIDES_PACKAGE_ARCH'><glossterm>SRC_URI_OVERRIDES_PACKAGE_ARCH</glossterm>
  11427. <info>
  11428. SRC_URI_OVERRIDES_PACKAGE_ARCH[doc] = "By default, the OpenEmbedded build system automatically detects whether SRC_URI contains files that are machine-specific. If so, the build system automatically changes PACKAGE_ARCH. Setting this variable to '0' disables this behavior."
  11429. </info>
  11430. <glossdef>
  11431. <para role="glossdeffirst">
  11432. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11433. By default, the OpenEmbedded build system automatically detects whether
  11434. <filename><link linkend='var-SRC_URI'>SRC_URI</link></filename>
  11435. contains files that are machine-specific.
  11436. If so, the build system automatically changes
  11437. <filename><link linkend='var-PACKAGE_ARCH'>PACKAGE_ARCH</link></filename>.
  11438. Setting this variable to "0" disables this behavior.
  11439. </para>
  11440. </glossdef>
  11441. </glossentry>
  11442. <glossentry id='var-SRCDATE'><glossterm>SRCDATE</glossterm>
  11443. <info>
  11444. SRCDATE[doc] = "The date of the source code used to build the package. This variable applies only if the source was fetched from a Source Code Manager (SCM)."
  11445. </info>
  11446. <glossdef>
  11447. <para role="glossdeffirst">
  11448. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11449. The date of the source code used to build the package.
  11450. This variable applies only if the source was fetched from a Source Code Manager (SCM).
  11451. </para>
  11452. </glossdef>
  11453. </glossentry>
  11454. <glossentry id='var-SRCPV'><glossterm>SRCPV</glossterm>
  11455. <info>
  11456. SRCPV[doc] = "Returns the version string of the current package. This string is used to help define the value of PV."
  11457. </info>
  11458. <glossdef>
  11459. <para role="glossdeffirst">
  11460. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11461. Returns the version string of the current package.
  11462. This string is used to help define the value of
  11463. <link linkend='var-PV'><filename>PV</filename></link>.
  11464. </para>
  11465. <para>
  11466. The <filename>SRCPV</filename> variable is defined in the
  11467. <filename>meta/conf/bitbake.conf</filename> configuration
  11468. file in the
  11469. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  11470. as follows:
  11471. <literallayout class='monospaced'>
  11472. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  11473. </literallayout>
  11474. </para>
  11475. <para>
  11476. Recipes that need to define <filename>PV</filename> do so
  11477. with the help of the <filename>SRCPV</filename>.
  11478. For example, the <filename>ofono</filename> recipe
  11479. (<filename>ofono_git.bb</filename>) located in
  11480. <filename>meta/recipes-connectivity</filename> in the
  11481. Source Directory defines <filename>PV</filename> as
  11482. follows:
  11483. <literallayout class='monospaced'>
  11484. PV = "0.12-git${SRCPV}"
  11485. </literallayout>
  11486. </para>
  11487. </glossdef>
  11488. </glossentry>
  11489. <glossentry id='var-SRCREV'><glossterm>SRCREV</glossterm>
  11490. <info>
  11491. SRCREV[doc] = "The revision of the source code used to build the package. This variable applies to Subversion, Git, Mercurial and Bazaar only."
  11492. </info>
  11493. <glossdef>
  11494. <para role="glossdeffirst">
  11495. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11496. The revision of the source code used to build the package.
  11497. This variable applies to Subversion, Git, Mercurial and
  11498. Bazaar only.
  11499. Note that if you want to build a fixed revision and you
  11500. want to avoid performing a query on the remote repository
  11501. every time BitBake parses your recipe, you should specify
  11502. a <filename>SRCREV</filename> that is a
  11503. full revision identifier and not just a tag.
  11504. </para>
  11505. <note>
  11506. For information on limitations when inheriting the latest
  11507. revision of software using <filename>SRCREV</filename>,
  11508. see the
  11509. <link linkend='var-AUTOREV'><filename>AUTOREV</filename></link>
  11510. variable description.
  11511. </note>
  11512. </glossdef>
  11513. </glossentry>
  11514. <glossentry id='var-SSTATE_DIR'><glossterm>SSTATE_DIR</glossterm>
  11515. <info>
  11516. SSTATE_DIR[doc] = "The directory for the shared state cache."
  11517. </info>
  11518. <glossdef>
  11519. <para role="glossdeffirst">
  11520. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11521. The directory for the shared state cache.
  11522. </para>
  11523. </glossdef>
  11524. </glossentry>
  11525. <glossentry id='var-SSTATE_MIRROR_ALLOW_NETWORK'><glossterm>SSTATE_MIRROR_ALLOW_NETWORK</glossterm>
  11526. <info>
  11527. SSTATE_MIRROR_ALLOW_NETWORK[doc] = "If set to "1", allows fetches from mirrors that are specified in SSTATE_MIRRORS to work even when fetching from the network has been disabled by setting BB_NO_NETWORK to "1"."
  11528. </info>
  11529. <glossdef>
  11530. <para role="glossdeffirst">
  11531. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11532. If set to "1", allows fetches from
  11533. mirrors that are specified in
  11534. <link linkend='var-SSTATE_MIRRORS'><filename>SSTATE_MIRRORS</filename></link>
  11535. to work even when fetching from the network has been
  11536. disabled by setting <filename>BB_NO_NETWORK</filename>
  11537. to "1".
  11538. Using the
  11539. <filename>SSTATE_MIRROR_ALLOW_NETWORK</filename>
  11540. variable is useful if you have set
  11541. <filename>SSTATE_MIRRORS</filename> to point to an
  11542. internal server for your shared state cache, but
  11543. you want to disable any other fetching from the network.
  11544. </para>
  11545. </glossdef>
  11546. </glossentry>
  11547. <glossentry id='var-SSTATE_MIRRORS'><glossterm>SSTATE_MIRRORS</glossterm>
  11548. <info>
  11549. SSTATE_MIRRORS[doc] = "Configures the OpenEmbedded build system to search other mirror locations for prebuilt cache data objects before building out the data. You can specify a filesystem directory or a remote URL such as HTTP or FTP."
  11550. </info>
  11551. <glossdef>
  11552. <para role="glossdeffirst">
  11553. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11554. Configures the OpenEmbedded build system to search other
  11555. mirror locations for prebuilt cache data objects before
  11556. building out the data.
  11557. This variable works like fetcher
  11558. <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link>
  11559. and <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  11560. and points to the cache locations to check for the shared
  11561. objects.
  11562. </para>
  11563. <para>
  11564. You can specify a filesystem directory or a remote URL such
  11565. as HTTP or FTP.
  11566. The locations you specify need to contain the shared state
  11567. cache (sstate-cache) results from previous builds.
  11568. The sstate-cache you point to can also be from builds on
  11569. other machines.
  11570. </para>
  11571. <para>
  11572. If a mirror uses the same structure as
  11573. <link linkend='var-SSTATE_DIR'><filename>SSTATE_DIR</filename></link>,
  11574. you need to add
  11575. "PATH" at the end as shown in the examples below.
  11576. The build system substitutes the correct path within the
  11577. directory structure.
  11578. <literallayout class='monospaced'>
  11579. SSTATE_MIRRORS ?= "\
  11580. file://.* http://<replaceable>someserver</replaceable>.tld/share/sstate/PATH;downloadfilename=PATH \n \
  11581. file://.* file:///<replaceable>some-local-dir</replaceable>/sstate/PATH"
  11582. </literallayout>
  11583. </para>
  11584. </glossdef>
  11585. </glossentry>
  11586. <glossentry id='var-STAGING_BASE_LIBDIR_NATIVE'><glossterm>STAGING_BASE_LIBDIR_NATIVE</glossterm>
  11587. <info>
  11588. STAGING_BASE_LIBDIR_NATIVE[doc] = "Specifies the path to the /lib subdirectory of the sysroot directory for the build host."
  11589. </info>
  11590. <glossdef>
  11591. <para role="glossdeffirst">
  11592. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11593. Specifies the path to the <filename>/lib</filename>
  11594. subdirectory of the sysroot directory for the
  11595. build host.
  11596. </para>
  11597. </glossdef>
  11598. </glossentry>
  11599. <glossentry id='var-STAGING_BASELIBDIR'><glossterm>STAGING_BASELIBDIR</glossterm>
  11600. <info>
  11601. STAGING_BASELIBDIR[doc] = "Specifies the path to the /lib subdirectory of the sysroot directory for the target for which the current recipe is being built (STAGING_DIR_HOST)."
  11602. </info>
  11603. <glossdef>
  11604. <para role="glossdeffirst">
  11605. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11606. Specifies the path to the <filename>/lib</filename>
  11607. subdirectory of the sysroot directory for the target
  11608. for which the current recipe is being built
  11609. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  11610. </para>
  11611. </glossdef>
  11612. </glossentry>
  11613. <glossentry id='var-STAGING_BINDIR'><glossterm>STAGING_BINDIR</glossterm>
  11614. <info>
  11615. STAGING_BINDIR[doc] = "Specifies the path to the /usr/bin subdirectory of the sysroot directory for the target for which the current recipe is being built (STAGING_DIR_HOST)."
  11616. </info>
  11617. <glossdef>
  11618. <para role="glossdeffirst">
  11619. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11620. Specifies the path to the
  11621. <filename>/usr/bin</filename> subdirectory of the
  11622. sysroot directory for the target for which the current
  11623. recipe is being built
  11624. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  11625. </para>
  11626. </glossdef>
  11627. </glossentry>
  11628. <glossentry id='var-STAGING_BINDIR_CROSS'><glossterm>STAGING_BINDIR_CROSS</glossterm>
  11629. <info>
  11630. STAGING_BINDIR_CROSS[doc] = "Specifies the path to the directory containing binary configuration scripts. These scripts provide configuration information for other software that wants to make use of libraries or include files provided by the software associated with the script."
  11631. </info>
  11632. <glossdef>
  11633. <para role="glossdeffirst">
  11634. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11635. Specifies the path to the directory containing binary
  11636. configuration scripts.
  11637. These scripts provide configuration information for
  11638. other software that wants to make use of libraries or
  11639. include files provided by the software associated with
  11640. the script.
  11641. <note>
  11642. This style of build configuration has been largely
  11643. replaced by <filename>pkg-config</filename>.
  11644. Consequently, if <filename>pkg-config</filename>
  11645. is supported by the library to which you are linking,
  11646. it is recommended you use
  11647. <filename>pkg-config</filename> instead of a
  11648. provided configuration script.
  11649. </note>
  11650. </para>
  11651. </glossdef>
  11652. </glossentry>
  11653. <glossentry id='var-STAGING_BINDIR_NATIVE'><glossterm>STAGING_BINDIR_NATIVE</glossterm>
  11654. <info>
  11655. STAGING_BINDIR_NATIVE[doc] = "Specifies the path to the /usr/bin subdirectory of the sysroot directory for the build host."
  11656. </info>
  11657. <glossdef>
  11658. <para role="glossdeffirst">
  11659. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11660. Specifies the path to the
  11661. <filename>/usr/bin</filename> subdirectory of the
  11662. sysroot directory for the build host.
  11663. </para>
  11664. </glossdef>
  11665. </glossentry>
  11666. <glossentry id='var-STAGING_DATADIR'><glossterm>STAGING_DATADIR</glossterm>
  11667. <info>
  11668. STAGING_DATADIR[doc] = "Specifies the path to the /usr/share subdirectory of the sysroot directory for the target for which the current recipe is being built (STAGING_DIR_HOST)."
  11669. </info>
  11670. <glossdef>
  11671. <para role="glossdeffirst">
  11672. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11673. Specifies the path to the <filename>/usr/share</filename>
  11674. subdirectory of the sysroot directory for the target
  11675. for which the current recipe is being built
  11676. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  11677. </para>
  11678. </glossdef>
  11679. </glossentry>
  11680. <glossentry id='var-STAGING_DATADIR_NATIVE'><glossterm>STAGING_DATADIR_NATIVE</glossterm>
  11681. <info>
  11682. STAGING_DATADIR_NATIVE[doc] = "Specifies the path to the /usr/share subdirectory of the sysroot directory for the build host."
  11683. </info>
  11684. <glossdef>
  11685. <para role="glossdeffirst">
  11686. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11687. Specifies the path to the <filename>/usr/share</filename>
  11688. subdirectory of the sysroot directory for the build host.
  11689. </para>
  11690. </glossdef>
  11691. </glossentry>
  11692. <glossentry id='var-STAGING_DIR'><glossterm>STAGING_DIR</glossterm>
  11693. <info>
  11694. STAGING_DIR[doc] = "Specifies the path to the top-level sysroots directory (i.e. ${TMPDIR}/sysroots)."
  11695. </info>
  11696. <glossdef>
  11697. <para role="glossdeffirst">
  11698. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11699. Specifies the path to the top-level sysroots directory
  11700. (i.e.
  11701. <filename>${</filename><link linkend='var-TMPDIR'><filename>TMPDIR</filename></link><filename>}/sysroots</filename>).
  11702. <note>
  11703. Recipes should never write files directly under
  11704. this directory because the OpenEmbedded build system
  11705. manages the directory automatically.
  11706. Instead, files should be installed to
  11707. <filename>${</filename><link linkend='var-D'><filename>D</filename></link><filename>}</filename>
  11708. within your recipe's
  11709. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  11710. task and then the OpenEmbedded build system will
  11711. stage a subset of those files into the sysroot.
  11712. </note>
  11713. </para>
  11714. </glossdef>
  11715. </glossentry>
  11716. <glossentry id='var-STAGING_DIR_HOST'><glossterm>STAGING_DIR_HOST</glossterm>
  11717. <info>
  11718. STAGING_DIR_HOST[doc] = "Specifies the path to the sysroot directory for the system that the component is built to run on."
  11719. </info>
  11720. <glossdef>
  11721. <para role="glossdeffirst">
  11722. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11723. Specifies the path to the sysroot directory for the system
  11724. that the component is built to run on (the system that hosts
  11725. the component).
  11726. This sysroot is the one that the recipe's
  11727. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  11728. task copies files into.
  11729. Depending on the type of recipe and the build target,
  11730. <filename>STAGING_DIR_HOST</filename> can have the
  11731. following values:
  11732. <itemizedlist>
  11733. <listitem><para>For recipes building for the target
  11734. machine, the value is
  11735. "${<link linkend='var-STAGING_DIR'>STAGING_DIR</link>}/${<link linkend='var-MACHINE'>MACHINE</link>}".
  11736. </para></listitem>
  11737. <listitem><para>For native recipes building
  11738. for the build host, the value is empty given the
  11739. assumption that when building for the build host,
  11740. the build host's own directories should be used.
  11741. </para></listitem>
  11742. <listitem><para>For native SDK
  11743. recipes that build for the SDK
  11744. (<filename>nativesdk</filename>), the value is
  11745. "${STAGING_DIR}/${<link linkend='var-MULTIMACH_HOST_SYS'>MULTIMACH_HOST_SYS</link>}".
  11746. </para></listitem>
  11747. </itemizedlist>
  11748. </para>
  11749. </glossdef>
  11750. </glossentry>
  11751. <glossentry id='var-STAGING_DIR_NATIVE'><glossterm>STAGING_DIR_NATIVE</glossterm>
  11752. <info>
  11753. STAGING_DIR_NATIVE[doc] = "Specifies the path to the sysroot directory used when building components that run on the build host itself."
  11754. </info>
  11755. <glossdef>
  11756. <para role="glossdeffirst">
  11757. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11758. Specifies the path to the sysroot directory used when
  11759. building components that run on the build host itself.
  11760. </para>
  11761. </glossdef>
  11762. </glossentry>
  11763. <glossentry id='var-STAGING_DIR_TARGET'><glossterm>STAGING_DIR_TARGET</glossterm>
  11764. <info>
  11765. STAGING_DIR_TARGET[doc] = "Specifies the path to the sysroot used for the system for which the component generates code."
  11766. </info>
  11767. <glossdef>
  11768. <para role="glossdeffirst">
  11769. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11770. Specifies the path to the sysroot used for the system for
  11771. which the component generates code.
  11772. For components that do not generate code, which is the
  11773. majority, <filename>STAGING_DIR_TARGET</filename> is set
  11774. to match
  11775. <link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>.
  11776. </para>
  11777. <para>
  11778. Some recipes build binaries that can run on the target
  11779. system but those binaries in turn generate code for
  11780. another different system (e.g. cross-canadian recipes).
  11781. Using terminology from GNU, the primary system is referred
  11782. to as the "HOST" and the secondary, or different, system is
  11783. referred to as the "TARGET".
  11784. Thus, the binaries run on the "HOST" system
  11785. and generate binaries for the "TARGET" system.
  11786. The <filename>STAGING_DIR_HOST</filename> variable points
  11787. to the sysroot used for the "HOST" system, while
  11788. <filename>STAGING_DIR_TARGET</filename>
  11789. points to the sysroot used for the "TARGET" system.
  11790. </para>
  11791. </glossdef>
  11792. </glossentry>
  11793. <glossentry id='var-STAGING_ETCDIR_NATIVE'><glossterm>STAGING_ETCDIR_NATIVE</glossterm>
  11794. <info>
  11795. STAGING_ETCDIR_NATIVE[doc] = "Specifies the path to the /etc subdirectory of the sysroot directory for the build host."
  11796. </info>
  11797. <glossdef>
  11798. <para role="glossdeffirst">
  11799. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11800. Specifies the path to the <filename>/etc</filename>
  11801. subdirectory of the sysroot directory for the
  11802. build host.
  11803. </para>
  11804. </glossdef>
  11805. </glossentry>
  11806. <glossentry id='var-STAGING_EXECPREFIXDIR'><glossterm>STAGING_EXECPREFIXDIR</glossterm>
  11807. <info>
  11808. STAGING_EXECPREFIXDIR[doc] = "Specifies the path to the /usr subdirectory of the sysroot directory for the target for which the current recipe is being built (STAGING_DIR_HOST)."
  11809. </info>
  11810. <glossdef>
  11811. <para role="glossdeffirst">
  11812. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11813. Specifies the path to the <filename>/usr</filename>
  11814. subdirectory of the sysroot directory for the target
  11815. for which the current recipe is being built
  11816. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  11817. </para>
  11818. </glossdef>
  11819. </glossentry>
  11820. <glossentry id='var-STAGING_INCDIR'><glossterm>STAGING_INCDIR</glossterm>
  11821. <info>
  11822. STAGING_INCDIR[doc] = "Specifies the path to the /usr/include subdirectory of the sysroot directory for the target for which the current recipe being built (STAGING_DIR_HOST)."
  11823. </info>
  11824. <glossdef>
  11825. <para role="glossdeffirst">
  11826. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11827. Specifies the path to the
  11828. <filename>/usr/include</filename> subdirectory of the
  11829. sysroot directory for the target for which the current
  11830. recipe being built
  11831. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  11832. </para>
  11833. </glossdef>
  11834. </glossentry>
  11835. <glossentry id='var-STAGING_INCDIR_NATIVE'><glossterm>STAGING_INCDIR_NATIVE</glossterm>
  11836. <info>
  11837. STAGING_INCDIR_NATIVE[doc] = "Specifies the path to the /usr/include subdirectory of the sysroot directory for the build host."
  11838. </info>
  11839. <glossdef>
  11840. <para role="glossdeffirst">
  11841. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11842. Specifies the path to the <filename>/usr/include</filename>
  11843. subdirectory of the sysroot directory for the build host.
  11844. </para>
  11845. </glossdef>
  11846. </glossentry>
  11847. <glossentry id='var-STAGING_KERNEL_BUILDDIR'><glossterm>STAGING_KERNEL_BUILDDIR</glossterm>
  11848. <info>
  11849. STAGING_KERNEL_BUILDDIR[doc] = "Points to the directory containing the kernel build artifacts."
  11850. </info>
  11851. <glossdef>
  11852. <para role="glossdeffirst">
  11853. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11854. Points to the directory containing the kernel build
  11855. artifacts.
  11856. Recipes building software that needs to access kernel
  11857. build artifacts
  11858. (e.g. <filename>systemtap-uprobes</filename>) can look in
  11859. the directory specified with the
  11860. <filename>STAGING_KERNEL_BUILDDIR</filename> variable to
  11861. find these artifacts after the kernel has been built.
  11862. </para>
  11863. </glossdef>
  11864. </glossentry>
  11865. <glossentry id='var-STAGING_KERNEL_DIR'><glossterm>STAGING_KERNEL_DIR</glossterm>
  11866. <info>
  11867. STAGING_KERNEL_DIR[doc] = "The directory with kernel headers that are required to build out-of-tree modules."
  11868. </info>
  11869. <glossdef>
  11870. <para role="glossdeffirst">
  11871. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11872. The directory with kernel headers that are required to build out-of-tree
  11873. modules.
  11874. </para>
  11875. </glossdef>
  11876. </glossentry>
  11877. <glossentry id='var-STAGING_LIBDIR'><glossterm>STAGING_LIBDIR</glossterm>
  11878. <info>
  11879. STAGING_LIBDIR[doc] = "Specifies the path to the /usr/lib subdirectory of the sysroot directory for the target for which the current recipe is being built (STAGING_DIR_HOST)."
  11880. </info>
  11881. <glossdef>
  11882. <para role="glossdeffirst">
  11883. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11884. Specifies the path to the <filename>/usr/lib</filename>
  11885. subdirectory of the sysroot directory for the target for
  11886. which the current recipe is being built
  11887. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  11888. </para>
  11889. </glossdef>
  11890. </glossentry>
  11891. <glossentry id='var-STAGING_LIBDIR_NATIVE'><glossterm>STAGING_LIBDIR_NATIVE</glossterm>
  11892. <info>
  11893. STAGING_LIBDIR_NATIVE[doc] = "Specifies the path to the /usr/lib subdirectory of the sysroot directory for the build host."
  11894. </info>
  11895. <glossdef>
  11896. <para role="glossdeffirst">
  11897. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11898. Specifies the path to the <filename>/usr/lib</filename>
  11899. subdirectory of the sysroot directory for the build host.
  11900. </para>
  11901. </glossdef>
  11902. </glossentry>
  11903. <glossentry id='var-STAMP'><glossterm>STAMP</glossterm>
  11904. <info>
  11905. STAMP[doc] = "Specifies the base path used to create recipe stamp files. The path to an actual stamp file is constructed by evaluating this string and then appending additional information."
  11906. </info>
  11907. <glossdef>
  11908. <para role="glossdeffirst">
  11909. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11910. Specifies the base path used to create recipe stamp files.
  11911. The path to an actual stamp file is constructed by evaluating this
  11912. string and then appending additional information.
  11913. Currently, the default assignment for <filename>STAMP</filename>
  11914. as set in the <filename>meta/conf/bitbake.conf</filename> file
  11915. is:
  11916. <literallayout class='monospaced'>
  11917. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  11918. </literallayout>
  11919. </para>
  11920. <para>
  11921. For information on how BitBake uses stamp files to determine
  11922. if a task should be rerun, see the
  11923. "<link linkend='stamp-files-and-the-rerunning-of-tasks'>Stamp Files and the Rerunning of Tasks</link>"
  11924. section.
  11925. </para>
  11926. <para>
  11927. See <link linkend='var-STAMPS_DIR'><filename>STAMPS_DIR</filename></link>,
  11928. <link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>,
  11929. <link linkend='var-PN'><filename>PN</filename></link>,
  11930. <link linkend='var-EXTENDPE'><filename>EXTENDPE</filename></link>,
  11931. <link linkend='var-PV'><filename>PV</filename></link>, and
  11932. <link linkend='var-PR'><filename>PR</filename></link> for related variable
  11933. information.
  11934. </para>
  11935. </glossdef>
  11936. </glossentry>
  11937. <glossentry id='var-STAMPS_DIR'><glossterm>STAMPS_DIR</glossterm>
  11938. <info>
  11939. STAMPS_DIR[doc] = "Specifies the base directory in which the OpenEmbedded build system places stamps."
  11940. </info>
  11941. <glossdef>
  11942. <para role="glossdeffirst">
  11943. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11944. Specifies the base directory in which the OpenEmbedded
  11945. build system places stamps.
  11946. The default directory is
  11947. <filename>${TMPDIR}/stamps</filename>.
  11948. </para>
  11949. </glossdef>
  11950. </glossentry>
  11951. <glossentry id='var-STRIP'><glossterm>STRIP</glossterm>
  11952. <info>
  11953. STRIP[doc] = "Minimal command and arguments to run 'strip' (strip symbols)."
  11954. </info>
  11955. <glossdef>
  11956. <para role="glossdeffirst">
  11957. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11958. The minimal command and arguments to run
  11959. <filename>strip</filename>, which is used to strip
  11960. symbols.
  11961. </para>
  11962. </glossdef>
  11963. </glossentry>
  11964. <glossentry id='var-SUMMARY'><glossterm>SUMMARY</glossterm>
  11965. <info>
  11966. SUMMARY[doc] = "The short (80 characters or less) summary of the binary package for packaging systems such as opkg, rpm or dpkg. By default, SUMMARY is used to define the DESCRIPTION variable if DESCRIPTION is not set in the recipe."
  11967. </info>
  11968. <glossdef>
  11969. <para role="glossdeffirst">
  11970. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11971. The short (72 characters or less) summary of the binary package for packaging
  11972. systems such as <filename>opkg</filename>, <filename>rpm</filename> or
  11973. <filename>dpkg</filename>.
  11974. By default, <filename>SUMMARY</filename> is used to define
  11975. the <link linkend='var-DESCRIPTION'><filename>DESCRIPTION</filename></link>
  11976. variable if <filename>DESCRIPTION</filename> is not set
  11977. in the recipe.
  11978. </para>
  11979. </glossdef>
  11980. </glossentry>
  11981. <glossentry id='var-SVNDIR'><glossterm>SVNDIR</glossterm>
  11982. <info>
  11983. SVNDIR[doc] = "The directory where Subversion checkouts will be stored."
  11984. </info>
  11985. <glossdef>
  11986. <para role="glossdeffirst">
  11987. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11988. The directory in which files checked out of a Subversion
  11989. system are stored.
  11990. </para>
  11991. </glossdef>
  11992. </glossentry>
  11993. <glossentry id='var-SYSLINUX_DEFAULT_CONSOLE'><glossterm>SYSLINUX_DEFAULT_CONSOLE</glossterm>
  11994. <info>
  11995. SYSLINUX_DEFAULT_CONSOLE[doc] = "Specifies the kernel boot default console."
  11996. </info>
  11997. <glossdef>
  11998. <para role="glossdeffirst">
  11999. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12000. Specifies the kernel boot default console.
  12001. If you want to use a console other than the default,
  12002. set this variable in your recipe as follows where "X" is
  12003. the console number you want to use:
  12004. <literallayout class='monospaced'>
  12005. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  12006. </literallayout>
  12007. </para>
  12008. <para>
  12009. The
  12010. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  12011. class initially sets this variable to null but then checks
  12012. for a value later.
  12013. </para>
  12014. </glossdef>
  12015. </glossentry>
  12016. <glossentry id='var-SYSLINUX_OPTS'><glossterm>SYSLINUX_OPTS</glossterm>
  12017. <info>
  12018. SYSLINUX_OPTS[doc] = "Lists additional options to add to the syslinux file."
  12019. </info>
  12020. <glossdef>
  12021. <para role="glossdeffirst">
  12022. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12023. Lists additional options to add to the syslinux file.
  12024. You need to set this variable in your recipe.
  12025. If you want to list multiple options, separate the options
  12026. with a semicolon character (<filename>;</filename>).
  12027. </para>
  12028. <para>
  12029. The
  12030. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  12031. class uses this variable to create a set of options.
  12032. </para>
  12033. </glossdef>
  12034. </glossentry>
  12035. <glossentry id='var-SYSLINUX_SERIAL'><glossterm>SYSLINUX_SERIAL</glossterm>
  12036. <info>
  12037. SYSLINUX_SERIAL[doc] = "Specifies the alternate serial port or turns it off."
  12038. </info>
  12039. <glossdef>
  12040. <para role="glossdeffirst">
  12041. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12042. Specifies the alternate serial port or turns it off.
  12043. To turn off serial, set this variable to an empty string
  12044. in your recipe.
  12045. The variable's default value is set in the
  12046. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  12047. as follows:
  12048. <literallayout class='monospaced'>
  12049. SYSLINUX_SERIAL ?= "0 115200"
  12050. </literallayout>
  12051. </para>
  12052. <para>
  12053. The class checks for and uses the variable as needed.
  12054. </para>
  12055. </glossdef>
  12056. </glossentry>
  12057. <glossentry id='var-SYSLINUX_SPLASH'><glossterm>SYSLINUX_SPLASH</glossterm>
  12058. <info>
  12059. SYSLINUX_SPLASH[doc] = "An .LSS file used as the background for the VGA boot menu when you are using the boot menu."
  12060. </info>
  12061. <glossdef>
  12062. <para role="glossdeffirst">
  12063. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12064. An <filename>.LSS</filename> file used as the background
  12065. for the VGA boot menu when you are using the boot menu.
  12066. You need to set this variable in your recipe.
  12067. </para>
  12068. <para>
  12069. The
  12070. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  12071. class checks for this variable and if found, the
  12072. OpenEmbedded build system installs the splash screen.
  12073. </para>
  12074. </glossdef>
  12075. </glossentry>
  12076. <glossentry id='var-SYSLINUX_SERIAL_TTY'><glossterm>SYSLINUX_SERIAL_TTY</glossterm>
  12077. <info>
  12078. SYSLINUX_SERIAL_TTY[doc] = "Specifies the alternate console=tty... kernel boot argument."
  12079. </info>
  12080. <glossdef>
  12081. <para role="glossdeffirst">
  12082. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12083. Specifies the alternate console=tty... kernel boot argument.
  12084. The variable's default value is set in the
  12085. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  12086. as follows:
  12087. <literallayout class='monospaced'>
  12088. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  12089. </literallayout>
  12090. </para>
  12091. <para>
  12092. The class checks for and uses the variable as needed.
  12093. </para>
  12094. </glossdef>
  12095. </glossentry>
  12096. <glossentry id='var-SYSROOT_PREPROCESS_FUNCS'><glossterm>SYSROOT_PREPROCESS_FUNCS</glossterm>
  12097. <info>
  12098. SYSROOT_PREPROCESS_FUNCS[doc] = "A list of functions to execute after files are staged into the sysroot. These functions are usually used to apply additional processing on the staged files, or to stage additional files."
  12099. </info>
  12100. <glossdef>
  12101. <para role="glossdeffirst">
  12102. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12103. A list of functions to execute after files are staged into
  12104. the sysroot.
  12105. These functions are usually used to apply additional
  12106. processing on the staged files, or to stage additional
  12107. files.
  12108. </para>
  12109. </glossdef>
  12110. </glossentry>
  12111. <glossentry id='var-SYSTEMD_AUTO_ENABLE'><glossterm>SYSTEMD_AUTO_ENABLE</glossterm>
  12112. <info>
  12113. SYSTEMD_AUTO_ENABLE[doc] = "For recipes that inherit the systemd class, this variable specifies whether the service you have specified in SYSTEMD_SERVICE should be started automatically or not."
  12114. </info>
  12115. <glossdef>
  12116. <para role="glossdeffirst">
  12117. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12118. When inheriting the
  12119. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  12120. class, this variable specifies whether the service you have
  12121. specified in
  12122. <link linkend='var-SYSTEMD_SERVICE'><filename>SYSTEMD_SERVICE</filename></link>
  12123. should be started automatically or not.
  12124. By default, the service is enabled to automatically start
  12125. at boot time.
  12126. The default setting is in the
  12127. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  12128. class as follows:
  12129. <literallayout class='monospaced'>
  12130. SYSTEMD_AUTO_ENABLE ??= "enable"
  12131. </literallayout>
  12132. </para>
  12133. <para>
  12134. You can disable the service by setting the variable to
  12135. "disable".
  12136. </para>
  12137. </glossdef>
  12138. </glossentry>
  12139. <glossentry id='var-SYSTEMD_BOOT_CFG'><glossterm>SYSTEMD_BOOT_CFG</glossterm>
  12140. <info>
  12141. SYSTEMD_BOOT_CFG[doc] = "When EFI_PROVIDER is set to "systemd-boot", the SYSTEMD_BOOT_CFG variable specifies the configuration file that should be used."
  12142. </info>
  12143. <glossdef>
  12144. <para role="glossdeffirst">
  12145. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12146. When
  12147. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  12148. is set to "systemd-boot", the
  12149. <filename>SYSTEMD_BOOT_CFG</filename> variable specifies the
  12150. configuration file that should be used.
  12151. By default, the
  12152. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  12153. class sets the <filename>SYSTEMD_BOOT_CFG</filename> as
  12154. follows:
  12155. <literallayout class='monospaced'>
  12156. SYSTEMD_BOOT_CFG ?= "${<link linkend='var-S'>S</link>}/loader.conf"
  12157. </literallayout>
  12158. </para>
  12159. <para>
  12160. For information on Systemd-boot, see the
  12161. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  12162. </para>
  12163. </glossdef>
  12164. </glossentry>
  12165. <glossentry id='var-SYSTEMD_BOOT_ENTRIES'><glossterm>SYSTEMD_BOOT_ENTRIES</glossterm>
  12166. <info>
  12167. SYSTEMD_BOOT_ENTRIES[doc] = "When EFI_PROVIDER is set to "systemd-boot", the SYSTEMD_BOOT_ENTRIES variable specifies a list of entry files (*.conf) to be installed containing one boot entry per file."
  12168. </info>
  12169. <glossdef>
  12170. <para role="glossdeffirst">
  12171. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12172. When
  12173. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  12174. is set to "systemd-boot", the
  12175. <filename>SYSTEMD_BOOT_ENTRIES</filename> variable specifies
  12176. a list of entry files
  12177. (<filename>*.conf</filename>) to be installed
  12178. containing one boot entry per file.
  12179. By default, the
  12180. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  12181. class sets the <filename>SYSTEMD_BOOT_ENTRIES</filename> as
  12182. follows:
  12183. <literallayout class='monospaced'>
  12184. SYSTEMD_BOOT_ENTRIES ?= ""
  12185. </literallayout>
  12186. </para>
  12187. <para>
  12188. For information on Systemd-boot, see the
  12189. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  12190. </para>
  12191. </glossdef>
  12192. </glossentry>
  12193. <glossentry id='var-SYSTEMD_BOOT_TIMEOUT'><glossterm>SYSTEMD_BOOT_TIMEOUT</glossterm>
  12194. <info>
  12195. SYSTEMD_BOOT_TIMEOUT[doc] = "When EFI_PROVIDER is set to "systemd-boot", the SYSTEMD_BOOT_TIMEOUT variable specifies the boot menu timeout in seconds."
  12196. </info>
  12197. <glossdef>
  12198. <para role="glossdeffirst">
  12199. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12200. When
  12201. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  12202. is set to "systemd-boot", the
  12203. <filename>SYSTEMD_BOOT_TIMEOUT</filename> variable specifies
  12204. the boot menu timeout in seconds.
  12205. By default, the
  12206. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  12207. class sets the <filename>SYSTEMD_BOOT_TIMEOUT</filename> as
  12208. follows:
  12209. <literallayout class='monospaced'>
  12210. SYSTEMD_BOOT_TIMEOUT ?= "10"
  12211. </literallayout>
  12212. </para>
  12213. <para>
  12214. For information on Systemd-boot, see the
  12215. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  12216. </para>
  12217. </glossdef>
  12218. </glossentry>
  12219. <glossentry id='var-SYSTEMD_PACKAGES'><glossterm>SYSTEMD_PACKAGES</glossterm>
  12220. <info>
  12221. SYSTEMD_PACKAGES[doc] = "For recipes that inherit the systemd class, this variable locates the systemd unit files when they are not found in the main recipe's package."
  12222. </info>
  12223. <glossdef>
  12224. <para role="glossdeffirst">
  12225. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12226. When inheriting the
  12227. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  12228. class, this variable locates the systemd unit files when
  12229. they are not found in the main recipe's package.
  12230. By default, the
  12231. <filename>SYSTEMD_PACKAGES</filename> variable is set
  12232. such that the systemd unit files are assumed to reside in
  12233. the recipes main package:
  12234. <literallayout class='monospaced'>
  12235. SYSTEMD_PACKAGES ?= "${PN}"
  12236. </literallayout>
  12237. </para>
  12238. <para>
  12239. If these unit files are not in this recipe's main
  12240. package, you need to use
  12241. <filename>SYSTEMD_PACKAGES</filename> to list the package
  12242. or packages in which the build system can find the systemd
  12243. unit files.
  12244. </para>
  12245. </glossdef>
  12246. </glossentry>
  12247. <glossentry id='var-SYSTEMD_SERVICE'><glossterm>SYSTEMD_SERVICE</glossterm>
  12248. <info>
  12249. SYSTEMD_SERVICE[doc] = "For recipes that inherit the systemd class, this variable specifies the systemd service name for a package."
  12250. </info>
  12251. <glossdef>
  12252. <para role="glossdeffirst">
  12253. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12254. When inheriting the
  12255. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  12256. class, this variable specifies the systemd service name for
  12257. a package.
  12258. </para>
  12259. <para>
  12260. When you specify this file in your recipe, use a package
  12261. name override to indicate the package to which the value
  12262. applies.
  12263. Here is an example from the connman recipe:
  12264. <literallayout class='monospaced'>
  12265. SYSTEMD_SERVICE_${PN} = "connman.service"
  12266. </literallayout>
  12267. </para>
  12268. </glossdef>
  12269. </glossentry>
  12270. <glossentry id='var-SYSVINIT_ENABLED_GETTYS'><glossterm>SYSVINIT_ENABLED_GETTYS</glossterm>
  12271. <info>
  12272. SYSVINIT_ENABLED_GETTYS[doc] = "Specifies which virtual terminals should be running a getty, the default is '1'."
  12273. </info>
  12274. <glossdef>
  12275. <para role="glossdeffirst">
  12276. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12277. When using
  12278. <ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-enabling-system-services'>SysVinit</ulink>,
  12279. specifies a space-separated list of the virtual terminals
  12280. that should be running a
  12281. <ulink url='http://en.wikipedia.org/wiki/Getty_%28Unix%29'>getty</ulink>
  12282. (allowing login), assuming
  12283. <link linkend='var-USE_VT'><filename>USE_VT</filename></link>
  12284. is not set to "0".
  12285. </para>
  12286. <para>
  12287. The default value for
  12288. <filename>SYSVINIT_ENABLED_GETTYS</filename> is "1"
  12289. (i.e. only run a getty on the first virtual terminal).
  12290. </para>
  12291. </glossdef>
  12292. </glossentry>
  12293. </glossdiv>
  12294. <glossdiv id='var-glossary-t'><title>T</title>
  12295. <glossentry id='var-T'><glossterm>T</glossterm>
  12296. <info>
  12297. T[doc] = "This variable points to a directory were BitBake places temporary files, which consist mostly of task logs and scripts, when building a particular recipe."
  12298. </info>
  12299. <glossdef>
  12300. <para role="glossdeffirst">
  12301. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12302. This variable points to a directory were BitBake places
  12303. temporary files, which consist mostly of task logs and
  12304. scripts, when building a particular recipe.
  12305. The variable is typically set as follows:
  12306. <literallayout class='monospaced'>
  12307. T = "${WORKDIR}/temp"
  12308. </literallayout>
  12309. </para>
  12310. <para>
  12311. The <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  12312. is the directory into which BitBake unpacks and builds the
  12313. recipe.
  12314. The default <filename>bitbake.conf</filename> file sets this variable.</para>
  12315. <para>The <filename>T</filename> variable is not to be confused with
  12316. the <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link> variable,
  12317. which points to the root of the directory tree where BitBake
  12318. places the output of an entire build.
  12319. </para>
  12320. </glossdef>
  12321. </glossentry>
  12322. <glossentry id='var-TARGET_ARCH'><glossterm>TARGET_ARCH</glossterm>
  12323. <info>
  12324. TARGET_ARCH[doc] = "The architecture of the device being built. The OpenEmbedded build system supports the following architectures: arm, mips, ppc, x86, x86-64."
  12325. </info>
  12326. <glossdef>
  12327. <para role="glossdeffirst">
  12328. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12329. The target machine's architecture.
  12330. The OpenEmbedded build system supports many
  12331. architectures.
  12332. Here is an example list of architectures supported.
  12333. This list is by no means complete as the architecture
  12334. is configurable:
  12335. <literallayout class='monospaced'>
  12336. arm
  12337. i586
  12338. x86_64
  12339. powerpc
  12340. powerpc64
  12341. mips
  12342. mipsel
  12343. </literallayout>
  12344. </para>
  12345. <para>
  12346. For additional information on machine architectures, see
  12347. the
  12348. <link linkend='var-TUNE_ARCH'><filename>TUNE_ARCH</filename></link>
  12349. variable.
  12350. </para>
  12351. </glossdef>
  12352. </glossentry>
  12353. <glossentry id='var-TARGET_AS_ARCH'><glossterm>TARGET_AS_ARCH</glossterm>
  12354. <info>
  12355. TARGET_AS_ARCH[doc] = "Specifies architecture-specific assembler flags for the target system."
  12356. </info>
  12357. <glossdef>
  12358. <para role="glossdeffirst">
  12359. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12360. Specifies architecture-specific assembler flags for the
  12361. target system.
  12362. <filename>TARGET_AS_ARCH</filename> is initialized from
  12363. <link linkend='var-TUNE_ASARGS'><filename>TUNE_ASARGS</filename></link>
  12364. by default in the BitBake configuration file
  12365. (<filename>meta/conf/bitbake.conf</filename>):
  12366. <literallayout class='monospaced'>
  12367. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  12368. </literallayout>
  12369. </para>
  12370. </glossdef>
  12371. </glossentry>
  12372. <glossentry id='var-TARGET_CC_ARCH'><glossterm>TARGET_CC_ARCH</glossterm>
  12373. <info>
  12374. TARGET_CC_ARCH[doc] = "Specifies architecture-specific C compiler flags for the target system."
  12375. </info>
  12376. <glossdef>
  12377. <para role="glossdeffirst">
  12378. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12379. Specifies architecture-specific C compiler flags for the
  12380. target system.
  12381. <filename>TARGET_CC_ARCH</filename> is initialized from
  12382. <link linkend='var-TUNE_CCARGS'><filename>TUNE_CCARGS</filename></link>
  12383. by default.
  12384. <note>
  12385. It is a common workaround to append
  12386. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  12387. to <filename>TARGET_CC_ARCH</filename>
  12388. in recipes that build software for the target that
  12389. would not otherwise respect the exported
  12390. <filename>LDFLAGS</filename> variable.
  12391. </note>
  12392. </para>
  12393. </glossdef>
  12394. </glossentry>
  12395. <glossentry id='var-TARGET_CC_KERNEL_ARCH'><glossterm>TARGET_CC_KERNEL_ARCH</glossterm>
  12396. <info>
  12397. TARGET_CC_KERNEL_ARCH[doc] = "This is a specific kernel compiler flag for a CPU or Application Binary Interface (ABI) tune."
  12398. </info>
  12399. <glossdef>
  12400. <para role="glossdeffirst">
  12401. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12402. This is a specific kernel compiler flag for a CPU or
  12403. Application Binary Interface (ABI) tune.
  12404. The flag is used rarely and only for cases where a
  12405. userspace
  12406. <link linkend='var-TUNE_CCARGS'><filename>TUNE_CCARGS</filename></link>
  12407. is not compatible with the kernel compilation.
  12408. The <filename>TARGET_CC_KERNEL_ARCH</filename> variable
  12409. allows the kernel (and associated modules) to use a
  12410. different configuration.
  12411. See the
  12412. <filename>meta/conf/machine/include/arm/feature-arm-thumb.inc</filename>
  12413. file in the
  12414. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  12415. for an example.
  12416. </para>
  12417. </glossdef>
  12418. </glossentry>
  12419. <glossentry id='var-TARGET_CFLAGS'><glossterm>TARGET_CFLAGS</glossterm>
  12420. <info>
  12421. TARGET_CFLAGS[doc] = "Flags passed to the C compiler for the target system. This variable evaluates to the same as CFLAGS."
  12422. </info>
  12423. <glossdef>
  12424. <para role="glossdeffirst">
  12425. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12426. Specifies the flags to pass to the C compiler when building
  12427. for the target.
  12428. When building in the target context,
  12429. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  12430. is set to the value of this variable by default.
  12431. </para>
  12432. <para>
  12433. Additionally, the SDK's environment setup script sets
  12434. the
  12435. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  12436. variable in the environment to the
  12437. <filename>TARGET_CFLAGS</filename> value so that
  12438. executables built using the SDK also have the flags
  12439. applied.
  12440. </para>
  12441. </glossdef>
  12442. </glossentry>
  12443. <glossentry id='var-TARGET_CPPFLAGS'><glossterm>TARGET_CPPFLAGS</glossterm>
  12444. <info>
  12445. TARGET_CPPFLAGS[doc] = "Specifies the flags to pass to the C pre-processor (i.e. to both the C and the C++ compilers) when building for the target."
  12446. </info>
  12447. <glossdef>
  12448. <para role="glossdeffirst">
  12449. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12450. Specifies the flags to pass to the C pre-processor
  12451. (i.e. to both the C and the C++ compilers) when building
  12452. for the target.
  12453. When building in the target context,
  12454. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  12455. is set to the value of this variable by default.
  12456. </para>
  12457. <para>
  12458. Additionally, the SDK's environment setup script sets
  12459. the
  12460. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  12461. variable in the environment to the
  12462. <filename>TARGET_CPPFLAGS</filename> value so that
  12463. executables built using the SDK also have the flags
  12464. applied.
  12465. </para>
  12466. </glossdef>
  12467. </glossentry>
  12468. <glossentry id='var-TARGET_CXXFLAGS'><glossterm>TARGET_CXXFLAGS</glossterm>
  12469. <info>
  12470. TARGET_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the target."
  12471. </info>
  12472. <glossdef>
  12473. <para role="glossdeffirst">
  12474. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12475. Specifies the flags to pass to the C++ compiler when
  12476. building for the target.
  12477. When building in the target context,
  12478. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  12479. is set to the value of this variable by default.
  12480. </para>
  12481. <para>
  12482. Additionally, the SDK's environment setup script sets
  12483. the
  12484. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  12485. variable in the environment to the
  12486. <filename>TARGET_CXXFLAGS</filename> value so that
  12487. executables built using the SDK also have the flags
  12488. applied.
  12489. </para>
  12490. </glossdef>
  12491. </glossentry>
  12492. <glossentry id='var-TARGET_FPU'><glossterm>TARGET_FPU</glossterm>
  12493. <info>
  12494. TARGET_FPU[doc] = "Specifies the method for handling FPU code. For FPU-less targets, which include most ARM CPUs, the variable must be set to 'soft'. If not, the kernel emulation gets used, which results in a performance penalty."
  12495. </info>
  12496. <glossdef>
  12497. <para role="glossdeffirst">
  12498. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12499. Specifies the method for handling FPU code.
  12500. For FPU-less targets, which include most ARM CPUs, the variable must be
  12501. set to "soft".
  12502. If not, the kernel emulation gets used, which results in a performance penalty.
  12503. </para>
  12504. </glossdef>
  12505. </glossentry>
  12506. <glossentry id='var-TARGET_LD_ARCH'><glossterm>TARGET_LD_ARCH</glossterm>
  12507. <info>
  12508. TARGET_LD_ARCH[doc] = "Specifies architecture-specific linker flags for the target system."
  12509. </info>
  12510. <glossdef>
  12511. <para role="glossdeffirst">
  12512. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12513. Specifies architecture-specific linker flags for the
  12514. target system.
  12515. <filename>TARGET_LD_ARCH</filename> is initialized from
  12516. <link linkend='var-TUNE_LDARGS'><filename>TUNE_LDARGS</filename></link>
  12517. by default in the BitBake configuration file
  12518. (<filename>meta/conf/bitbake.conf</filename>):
  12519. <literallayout class='monospaced'>
  12520. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  12521. </literallayout>
  12522. </para>
  12523. </glossdef>
  12524. </glossentry>
  12525. <glossentry id='var-TARGET_LDFLAGS'><glossterm>TARGET_LDFLAGS</glossterm>
  12526. <info>
  12527. TARGET_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the target."
  12528. </info>
  12529. <glossdef>
  12530. <para role="glossdeffirst">
  12531. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12532. Specifies the flags to pass to the linker when building
  12533. for the target.
  12534. When building in the target context,
  12535. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  12536. is set to the value of this variable by default.
  12537. </para>
  12538. <para>
  12539. Additionally, the SDK's environment setup script sets
  12540. the
  12541. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  12542. variable in the environment to the
  12543. <filename>TARGET_LDFLAGS</filename> value so that
  12544. executables built using the SDK also have the flags
  12545. applied.
  12546. </para>
  12547. </glossdef>
  12548. </glossentry>
  12549. <glossentry id='var-TARGET_OS'><glossterm>TARGET_OS</glossterm>
  12550. <info>
  12551. TARGET_OS[doc] = "Specifies the target's operating system."
  12552. </info>
  12553. <glossdef>
  12554. <para role="glossdeffirst">
  12555. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12556. Specifies the target's operating system.
  12557. The variable can be set to "linux" for <filename>glibc</filename>-based systems and
  12558. to "linux-uclibc" for <filename>uclibc</filename>.
  12559. For ARM/EABI targets, there are also "linux-gnueabi" and
  12560. "linux-uclibc-gnueabi" values possible.
  12561. </para>
  12562. </glossdef>
  12563. </glossentry>
  12564. <glossentry id='var-TARGET_PREFIX'><glossterm>TARGET_PREFIX</glossterm>
  12565. <info>
  12566. TARGET_PREFIX[doc] = "The prefix used for the toolchain binary target tools."
  12567. </info>
  12568. <glossdef>
  12569. <para role="glossdeffirst">
  12570. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12571. Specifies the prefix used for the toolchain binary target
  12572. tools.
  12573. </para>
  12574. <para>
  12575. Depending on the type of recipe and the build target,
  12576. <filename>TARGET_PREFIX</filename> is set as follows:
  12577. <itemizedlist>
  12578. <listitem><para>
  12579. For recipes building for the target machine,
  12580. the value is
  12581. "${<link linkend='var-TARGET_SYS'>TARGET_SYS</link>}-".
  12582. </para></listitem>
  12583. <listitem><para>
  12584. For native recipes, the build system sets the
  12585. variable to the value of
  12586. <filename>BUILD_PREFIX</filename>.
  12587. </para></listitem>
  12588. <listitem><para>
  12589. For native SDK recipes
  12590. (<filename>nativesdk</filename>), the
  12591. build system sets the variable to the value of
  12592. <filename>SDK_PREFIX</filename>.
  12593. </para></listitem>
  12594. </itemizedlist>
  12595. </para>
  12596. </glossdef>
  12597. </glossentry>
  12598. <glossentry id='var-TARGET_SYS'><glossterm>TARGET_SYS</glossterm>
  12599. <info>
  12600. TARGET_SYS[doc] = "The target system is comprised of TARGET_ARCH,TARGET_VENDOR and TARGET_OS."
  12601. </info>
  12602. <glossdef>
  12603. <para role="glossdeffirst">
  12604. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12605. Specifies the system, including the architecture and the
  12606. operating system, for which the build is occurring in
  12607. the context of the current recipe.
  12608. </para>
  12609. <para>
  12610. The OpenEmbedded build system automatically sets this
  12611. variable based on
  12612. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>,
  12613. <link linkend='var-TARGET_VENDOR'><filename>TARGET_VENDOR</filename></link>,
  12614. and
  12615. <link linkend='var-TARGET_OS'><filename>TARGET_OS</filename></link>
  12616. variables.
  12617. <note>
  12618. You do not need to set the
  12619. <filename>TARGET_SYS</filename> variable yourself.
  12620. </note>
  12621. </para>
  12622. <para>
  12623. Consider these two examples:
  12624. <itemizedlist>
  12625. <listitem><para>
  12626. Given a native recipe on a 32-bit, x86 machine
  12627. running Linux, the value is "i686-linux".
  12628. </para></listitem>
  12629. <listitem><para>
  12630. Given a recipe being built for a little-endian,
  12631. MIPS target running Linux, the value might be
  12632. "mipsel-linux".
  12633. </para></listitem>
  12634. </itemizedlist>
  12635. </para>
  12636. </glossdef>
  12637. </glossentry>
  12638. <glossentry id='var-TARGET_VENDOR'><glossterm>TARGET_VENDOR</glossterm>
  12639. <info>
  12640. TARGET_VENDOR[doc] = "The name of the target vendor."
  12641. </info>
  12642. <glossdef>
  12643. <para role="glossdeffirst">
  12644. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12645. Specifies the name of the target vendor.
  12646. </para>
  12647. </glossdef>
  12648. </glossentry>
  12649. <glossentry id='var-TCLIBCAPPEND'><glossterm>TCLIBCAPPEND</glossterm>
  12650. <info>
  12651. TCLIBCAPPEND[doc] = "Specifies a suffix appended to TMPDIR that identifies the libc variant for the build."
  12652. </info>
  12653. <glossdef>
  12654. <para role="glossdeffirst">
  12655. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12656. Specifies a suffix to be appended onto the
  12657. <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link>
  12658. value.
  12659. The suffix identifies the <filename>libc</filename> variant
  12660. for building.
  12661. When you are building for multiple variants with the same
  12662. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>,
  12663. this mechanism ensures that output for different
  12664. <filename>libc</filename> variants is kept separate to
  12665. avoid potential conflicts.
  12666. </para>
  12667. <para>
  12668. In the <filename>defaultsetup.conf</filename> file, the
  12669. default value of <filename>TCLIBCAPPEND</filename> is
  12670. "-${TCLIBC}".
  12671. However, distros such as poky, which normally only support
  12672. one <filename>libc</filename> variant, set
  12673. <filename>TCLIBCAPPEND</filename> to "" in their distro
  12674. configuration file resulting in no suffix being applied.
  12675. </para>
  12676. </glossdef>
  12677. </glossentry>
  12678. <glossentry id='var-TCLIBC'><glossterm>TCLIBC</glossterm>
  12679. <info>
  12680. TCLIBC[doc] = "Specifies GNU standard C library (libc) variant to use during the build process. You can select 'glibc' or 'uclibc'."
  12681. </info>
  12682. <glossdef>
  12683. <para role="glossdeffirst">
  12684. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12685. Specifies the GNU standard C library (<filename>libc</filename>)
  12686. variant to use during the build process.
  12687. This variable replaces <filename>POKYLIBC</filename>, which is no longer
  12688. supported.
  12689. </para>
  12690. <para>
  12691. You can select "glibc" or "uclibc".
  12692. </para>
  12693. </glossdef>
  12694. </glossentry>
  12695. <glossentry id='var-TCMODE'><glossterm>TCMODE</glossterm>
  12696. <info>
  12697. TCMODE[doc] = "Enables an external toolchain (where provided by an additional layer) if set to a value other than 'default'."
  12698. </info>
  12699. <glossdef>
  12700. <para role="glossdeffirst">
  12701. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12702. Specifies the toolchain selector.
  12703. <filename>TCMODE</filename> controls the characteristics
  12704. of the generated packages and images by telling the
  12705. OpenEmbedded build system which toolchain profile to use.
  12706. By default, the OpenEmbedded build system builds its own
  12707. internal toolchain.
  12708. The variable's default value is "default", which uses
  12709. that internal toolchain.
  12710. <note>
  12711. If <filename>TCMODE</filename> is set to a value
  12712. other than "default", then it is your responsibility
  12713. to ensure that the toolchain is compatible with the
  12714. default toolchain.
  12715. Using older or newer versions of these components
  12716. might cause build problems.
  12717. See the
  12718. <ulink url='&YOCTO_RELEASE_NOTES;'>Release Notes</ulink>
  12719. for the specific components with which the toolchain
  12720. must be compatible.
  12721. </note>
  12722. </para>
  12723. <para>
  12724. The <filename>TCMODE</filename> variable is similar to
  12725. <link linkend='var-TCLIBC'><filename>TCLIBC</filename></link>,
  12726. which controls the variant of the GNU standard C library
  12727. (<filename>libc</filename>) used during the build process:
  12728. <filename>glibc</filename> or <filename>uclibc</filename>.
  12729. </para>
  12730. <para>
  12731. With additional layers, it is possible to use a pre-compiled
  12732. external toolchain.
  12733. One example is the Sourcery G++ Toolchain.
  12734. The support for this toolchain resides in the separate
  12735. <trademark class='registered'>Mentor Graphics</trademark>
  12736. <filename>meta-sourcery</filename> layer at
  12737. <ulink url='http://github.com/MentorEmbedded/meta-sourcery/'></ulink>.
  12738. </para>
  12739. <para>
  12740. The layer's <filename>README</filename> file contains
  12741. information on how to use the Sourcery G++ Toolchain as
  12742. an external toolchain.
  12743. In summary, you must be sure to add the layer to your
  12744. <filename>bblayers.conf</filename> file in front of the
  12745. <filename>meta</filename> layer and then set the
  12746. <filename>EXTERNAL_TOOLCHAIN</filename>
  12747. variable in your <filename>local.conf</filename> file
  12748. to the location in which you installed the toolchain.
  12749. </para>
  12750. <para>
  12751. The fundamentals used for this example apply to any
  12752. external toolchain.
  12753. You can use <filename>meta-sourcery</filename> as a
  12754. template for adding support for other external toolchains.
  12755. </para>
  12756. </glossdef>
  12757. </glossentry>
  12758. <glossentry id='var-TEST_EXPORT_DIR'><glossterm>TEST_EXPORT_DIR</glossterm>
  12759. <info>
  12760. TEST_EXPORT_DIR[doc] = "The location the OpenEmbedded build system uses to export tests when the TEST_EXPORT_ONLY variable is set to "1"."
  12761. </info>
  12762. <glossdef>
  12763. <para role="glossdeffirst">
  12764. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12765. The location the OpenEmbedded build system uses to export
  12766. tests when the
  12767. <link linkend='var-TEST_EXPORT_ONLY'><filename>TEST_EXPORT_ONLY</filename></link>
  12768. variable is set to "1".
  12769. </para>
  12770. <para>
  12771. The <filename>TEST_EXPORT_DIR</filename> variable defaults
  12772. to <filename>"${TMPDIR}/testimage/${PN}"</filename>.
  12773. </para>
  12774. </glossdef>
  12775. </glossentry>
  12776. <glossentry id='var-TEST_EXPORT_ONLY'><glossterm>TEST_EXPORT_ONLY</glossterm>
  12777. <info>
  12778. TEST_EXPORT_ONLY[doc] = "Specifies to export the tests only. Set this variable to "1" if you do not want to run the tests but you want them to be exported in a manner that you to run them outside of the build system."
  12779. </info>
  12780. <glossdef>
  12781. <para role="glossdeffirst">
  12782. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12783. Specifies to export the tests only.
  12784. Set this variable to "1" if you do not want to run the
  12785. tests but you want them to be exported in a manner that
  12786. you to run them outside of the build system.
  12787. </para>
  12788. </glossdef>
  12789. </glossentry>
  12790. <glossentry id='var-TEST_IMAGE'><glossterm>TEST_IMAGE</glossterm>
  12791. <info>
  12792. TEST_IMAGE[doc] = "Enables test booting of virtual machine images under the QEMU emulator after any root filesystems are created and runs tests against those images."
  12793. </info>
  12794. <glossdef>
  12795. <para role="glossdeffirst">
  12796. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12797. Automatically runs the series of automated tests for
  12798. images when an image is successfully built.
  12799. </para>
  12800. <para>
  12801. These tests are written in Python making use of the
  12802. <filename>unittest</filename> module, and the majority of
  12803. them run commands on the target system over
  12804. <filename>ssh</filename>.
  12805. You can set this variable to "1" in your
  12806. <filename>local.conf</filename> file in the
  12807. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>
  12808. to have the OpenEmbedded build system automatically run
  12809. these tests after an image successfully builds:
  12810. <literallayout class='monospaced'>
  12811. TEST_IMAGE = "1"
  12812. </literallayout>
  12813. For more information on enabling, running, and writing
  12814. these tests, see the
  12815. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  12816. section in the Yocto Project Development Manual and the
  12817. "<link linkend='ref-classes-testimage*'><filename>testimage*.bbclass</filename></link>"
  12818. section.
  12819. </para>
  12820. </glossdef>
  12821. </glossentry>
  12822. <glossentry id='var-TEST_LOG_DIR'><glossterm>TEST_LOG_DIR</glossterm>
  12823. <info>
  12824. TEST_LOG_DIR[doc] = "Holds the SSH log and the boot log for QEMU machines. The <filename>TEST_LOG_DIR</filename> variable defaults to "${WORKDIR}/testimage"."
  12825. </info>
  12826. <glossdef>
  12827. <para role="glossdeffirst">
  12828. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12829. Holds the SSH log and the boot log for QEMU machines.
  12830. The <filename>TEST_LOG_DIR</filename> variable defaults
  12831. to <filename>"${WORKDIR}/testimage"</filename>.
  12832. <note>
  12833. Actual test results reside in the task log
  12834. (<filename>log.do_testimage</filename>), which is in
  12835. the <filename>${WORKDIR}/temp/</filename> directory.
  12836. </note>
  12837. </para>
  12838. </glossdef>
  12839. </glossentry>
  12840. <glossentry id='var-TEST_POWERCONTROL_CMD'><glossterm>TEST_POWERCONTROL_CMD</glossterm>
  12841. <info>
  12842. TEST_POWERCONTROL_CMD[doc] = "For automated hardware testing, specifies the command to use to control the power of the target machine under test"
  12843. </info>
  12844. <glossdef>
  12845. <para role="glossdeffirst">
  12846. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12847. For automated hardware testing, specifies the command to
  12848. use to control the power of the target machine under test.
  12849. Typically, this command would point to a script that
  12850. performs the appropriate action (e.g. interacting
  12851. with a web-enabled power strip).
  12852. The specified command should expect to receive as the last
  12853. argument "off", "on" or "cycle" specifying to power off,
  12854. on, or cycle (power off and then power on) the device,
  12855. respectively.
  12856. </para>
  12857. </glossdef>
  12858. </glossentry>
  12859. <glossentry id='var-TEST_POWERCONTROL_EXTRA_ARGS'><glossterm>TEST_POWERCONTROL_EXTRA_ARGS</glossterm>
  12860. <info>
  12861. TEST_POWERCONTROL_EXTRA_ARGS[doc] = "For automated hardware testing, specifies additional arguments to pass through to the command specified in TEST_POWERCONTROL_CMD"
  12862. </info>
  12863. <glossdef>
  12864. <para role="glossdeffirst">
  12865. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12866. For automated hardware testing, specifies additional
  12867. arguments to pass through to the command specified in
  12868. <link linkend='var-TEST_POWERCONTROL_CMD'><filename>TEST_POWERCONTROL_CMD</filename></link>.
  12869. Setting <filename>TEST_POWERCONTROL_EXTRA_ARGS</filename>
  12870. is optional.
  12871. You can use it if you wish, for example, to separate the
  12872. machine-specific and non-machine-specific parts of the
  12873. arguments.
  12874. </para>
  12875. </glossdef>
  12876. </glossentry>
  12877. <glossentry id='var-TEST_QEMUBOOT_TIMEOUT'><glossterm>TEST_QEMUBOOT_TIMEOUT</glossterm>
  12878. <info>
  12879. TEST_QEMUBOOT_TIMEOUT[doc] = "The time in seconds allowed for an image to boot before automated runtime tests begin to run against an image."
  12880. </info>
  12881. <glossdef>
  12882. <para role="glossdeffirst">
  12883. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12884. The time in seconds allowed for an image to boot before
  12885. automated runtime tests begin to run against an
  12886. image.
  12887. The default timeout period to allow the boot process to
  12888. reach the login prompt is 500 seconds.
  12889. You can specify a different value in the
  12890. <filename>local.conf</filename> file.
  12891. </para>
  12892. <para>
  12893. For more information on testing images, see the
  12894. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  12895. section in the Yocto Project Development Manual.
  12896. </para>
  12897. </glossdef>
  12898. </glossentry>
  12899. <glossentry id='var-TEST_SERIALCONTROL_CMD'><glossterm>TEST_SERIALCONTROL_CMD</glossterm>
  12900. <info>
  12901. TEST_SERIALCONTROL_CMD[doc] = "For automated hardware testing, specifies the command to use to connect to the serial console of the target machine under test."
  12902. </info>
  12903. <glossdef>
  12904. <para role="glossdeffirst">
  12905. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12906. For automated hardware testing, specifies the command
  12907. to use to connect to the serial console of the target
  12908. machine under test.
  12909. This command simply needs to connect to the serial console
  12910. and forward that connection to standard input and output
  12911. as any normal terminal program does.
  12912. </para>
  12913. <para>
  12914. For example, to use the Picocom terminal program on
  12915. serial device <filename>/dev/ttyUSB0</filename> at
  12916. 115200bps, you would set the variable as follows:
  12917. <literallayout class='monospaced'>
  12918. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  12919. </literallayout>
  12920. </para>
  12921. </glossdef>
  12922. </glossentry>
  12923. <glossentry id='var-TEST_SERIALCONTROL_EXTRA_ARGS'><glossterm>TEST_SERIALCONTROL_EXTRA_ARGS</glossterm>
  12924. <info>
  12925. TEST_SERIALCONTROL_EXTRA_ARGS[doc] = "For automated hardware testing, specifies additional arguments to pass through to the command specified in TEST_SERIALCONTROL_CMD."
  12926. </info>
  12927. <glossdef>
  12928. <para role="glossdeffirst">
  12929. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12930. For automated hardware testing, specifies additional
  12931. arguments to pass through to the command specified in
  12932. <link linkend='var-TEST_SERIALCONTROL_CMD'><filename>TEST_SERIALCONTROL_CMD</filename></link>.
  12933. Setting <filename>TEST_SERIALCONTROL_EXTRA_ARGS</filename>
  12934. is optional.
  12935. You can use it if you wish, for example, to separate the
  12936. machine-specific and non-machine-specific parts of the
  12937. command.
  12938. </para>
  12939. </glossdef>
  12940. </glossentry>
  12941. <glossentry id='var-TEST_SERVER_IP'><glossterm>TEST_SERVER_IP</glossterm>
  12942. <info>
  12943. TEST_SERVER_IP[doc] = "The IP address of the build machine (host machine). This IP address is usually automatically detected."
  12944. </info>
  12945. <glossdef>
  12946. <para role="glossdeffirst">
  12947. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12948. The IP address of the build machine (host machine).
  12949. This IP address is usually automatically detected.
  12950. However, if detection fails, this variable needs to be set
  12951. to the IP address of the build machine (i.e. where
  12952. the build is taking place).
  12953. <note>
  12954. The <filename>TEST_SERVER_IP</filename> variable
  12955. is only used for a small number of tests such as
  12956. the "smart" test suite, which needs to download
  12957. packages from <filename>DEPLOY_DIR/rpm</filename>.
  12958. </note>
  12959. </para>
  12960. </glossdef>
  12961. </glossentry>
  12962. <glossentry id='var-TEST_TARGET'><glossterm>TEST_TARGET</glossterm>
  12963. <info>
  12964. TEST_TARGET[doc] = "For automated runtime testing, specifies the method of deploying the image and running tests on the target machine."
  12965. </info>
  12966. <glossdef>
  12967. <para role="glossdeffirst">
  12968. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12969. Specifies the target controller to use when running tests
  12970. against a test image.
  12971. The default controller to use is "qemu":
  12972. <literallayout class='monospaced'>
  12973. TEST_TARGET = "qemu"
  12974. </literallayout>
  12975. </para>
  12976. <para>
  12977. A target controller is a class that defines how an
  12978. image gets deployed on a target and how a target is started.
  12979. A layer can extend the controllers by adding a module
  12980. in the layer's <filename>/lib/oeqa/controllers</filename>
  12981. directory and by inheriting the
  12982. <filename>BaseTarget</filename> class, which is an abstract
  12983. class that cannot be used as a value of
  12984. <filename>TEST_TARGET</filename>.
  12985. </para>
  12986. <para>
  12987. You can provide the following arguments with
  12988. <filename>TEST_TARGET</filename>:
  12989. <itemizedlist>
  12990. <listitem><para><emphasis>"qemu" and "QemuTarget":</emphasis>
  12991. Boots a QEMU image and runs the tests.
  12992. See the
  12993. "<ulink url='&YOCTO_DOCS_DEV_URL;#qemu-image-enabling-tests'>Enabling Runtime Tests on QEMU</ulink>"
  12994. section in the Yocto Project Development Manual for
  12995. more information.
  12996. </para></listitem>
  12997. <listitem><para><emphasis>"simpleremote" and "SimpleRemoteTarget":</emphasis>
  12998. Runs the tests on target hardware that is already
  12999. up and running.
  13000. The hardware can be on the network or it can be
  13001. a device running an image on QEMU.
  13002. You must also set
  13003. <link linkend='var-TEST_TARGET_IP'><filename>TEST_TARGET_IP</filename></link>
  13004. when you use "simpleremote" or "SimpleRemoteTarget".
  13005. <note>
  13006. This argument is defined in
  13007. <filename>meta/lib/oeqa/targetcontrol.py</filename>.
  13008. The small caps names are kept for compatibility
  13009. reasons.
  13010. </note>
  13011. </para></listitem>
  13012. <listitem><para><emphasis>"GummibootTarget":</emphasis>
  13013. Automatically deploys and runs tests on an
  13014. EFI-enabled machine that has a master image
  13015. installed.
  13016. <note>
  13017. This argument is defined in
  13018. <filename>meta/lib/oeqa/controllers/masterimage.py</filename>.
  13019. </note>
  13020. </para></listitem>
  13021. </itemizedlist>
  13022. </para>
  13023. <para>
  13024. For information on running tests on hardware, see the
  13025. "<ulink url='&YOCTO_DOCS_DEV_URL;#hardware-image-enabling-tests'>Enabling Runtime Tests on Hardware</ulink>"
  13026. section in the Yocto Project Development Manual.
  13027. </para>
  13028. </glossdef>
  13029. </glossentry>
  13030. <glossentry id='var-TEST_TARGET_IP'><glossterm>TEST_TARGET_IP</glossterm>
  13031. <info>
  13032. TEST_TARGET_IP[doc] = "The IP address of your hardware under test."
  13033. </info>
  13034. <glossdef>
  13035. <para role="glossdeffirst">
  13036. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13037. The IP address of your hardware under test.
  13038. The <filename>TEST_TARGET_IP</filename> variable has no
  13039. effect when
  13040. <link linkend='var-TEST_TARGET'><filename>TEST_TARGET</filename></link>
  13041. is set to "qemu".
  13042. </para>
  13043. <para>
  13044. When you specify the IP address, you can also include a
  13045. port.
  13046. Here is an example:
  13047. <literallayout class='monospaced'>
  13048. TEST_TARGET_IP = "192.168.1.4:2201"
  13049. </literallayout>
  13050. Specifying a port is useful when SSH is started on a
  13051. non-standard port or in cases when your hardware under test
  13052. is behind a firewall or network that is not directly
  13053. accessible from your host and you need to do port address
  13054. translation.
  13055. </para>
  13056. </glossdef>
  13057. </glossentry>
  13058. <glossentry id='var-TEST_SUITES'><glossterm>TEST_SUITES</glossterm>
  13059. <info>
  13060. TEST_SUITES[doc] = "An ordered list of tests (modules) to run against an image when performing automated runtime testing."
  13061. </info>
  13062. <glossdef>
  13063. <para role="glossdeffirst">
  13064. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13065. An ordered list of tests (modules) to run against
  13066. an image when performing automated runtime testing.
  13067. </para>
  13068. <para>
  13069. The OpenEmbedded build system provides a core set of tests
  13070. that can be used against images.
  13071. <note>
  13072. Currently, there is only support for running these tests
  13073. under QEMU.
  13074. </note>
  13075. Tests include <filename>ping</filename>,
  13076. <filename>ssh</filename>, <filename>df</filename> among
  13077. others.
  13078. You can add your own tests to the list of tests by
  13079. appending <filename>TEST_SUITES</filename> as follows:
  13080. <literallayout class='monospaced'>
  13081. TEST_SUITES_append = " <replaceable>mytest</replaceable>"
  13082. </literallayout>
  13083. Alternatively, you can provide the "auto" option to
  13084. have all applicable tests run against the image.
  13085. <literallayout class='monospaced'>
  13086. TEST_SUITES_append = " auto"
  13087. </literallayout>
  13088. Using this option causes the build system to automatically
  13089. run tests that are applicable to the image.
  13090. Tests that are not applicable are skipped.
  13091. </para>
  13092. <para>
  13093. The order in which tests are run is important.
  13094. Tests that depend on another test must appear later in the
  13095. list than the test on which they depend.
  13096. For example, if you append the list of tests with two
  13097. tests (<filename>test_A</filename> and
  13098. <filename>test_B</filename>) where
  13099. <filename>test_B</filename> is dependent on
  13100. <filename>test_A</filename>, then you must order the tests
  13101. as follows:
  13102. <literallayout class='monospaced'>
  13103. TEST_SUITES = " test_A test_B"
  13104. </literallayout>
  13105. </para>
  13106. <para>
  13107. For more information on testing images, see the
  13108. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  13109. section in the Yocto Project Development Manual.
  13110. </para>
  13111. </glossdef>
  13112. </glossentry>
  13113. <glossentry id='var-THISDIR'><glossterm>THISDIR</glossterm>
  13114. <info>
  13115. THISDIR[doc] = "The directory in which the file BitBake is currently parsing is located."
  13116. </info>
  13117. <glossdef>
  13118. <para role="glossdeffirst">
  13119. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13120. The directory in which the file BitBake is currently
  13121. parsing is located.
  13122. Do not manually set this variable.
  13123. </para>
  13124. </glossdef>
  13125. </glossentry>
  13126. <glossentry id='var-TIME'><glossterm>TIME</glossterm>
  13127. <info>
  13128. TIME[doc] = "The time the build was started using HMS format."
  13129. </info>
  13130. <glossdef>
  13131. <para role="glossdeffirst">
  13132. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13133. The time the build was started.
  13134. Times appear using the hour, minute, and second (HMS)
  13135. format (e.g. "140159" for one minute and fifty-nine
  13136. seconds past 1400 hours).
  13137. </para>
  13138. </glossdef>
  13139. </glossentry>
  13140. <glossentry id='var-TMPDIR'><glossterm>TMPDIR</glossterm>
  13141. <info>
  13142. TMPDIR[doc] = "The temporary directory the OpenEmbedded build system uses when it does its work building images. By default, the TMPDIR variable is named tmp within the Build Directory."
  13143. </info>
  13144. <glossdef>
  13145. <para role="glossdeffirst">
  13146. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13147. This variable is the base directory the OpenEmbedded
  13148. build system uses for all build output and intermediate
  13149. files (other than the shared state cache).
  13150. By default, the <filename>TMPDIR</filename> variable points
  13151. to <filename>tmp</filename> within the
  13152. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  13153. </para>
  13154. <para>
  13155. If you want to establish this directory in a location other
  13156. than the default, you can uncomment and edit the following
  13157. statement in the
  13158. <filename>conf/local.conf</filename> file in the
  13159. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>:
  13160. <literallayout class='monospaced'>
  13161. #TMPDIR = "${TOPDIR}/tmp"
  13162. </literallayout>
  13163. An example use for this scenario is to set
  13164. <filename>TMPDIR</filename> to a local disk, which does
  13165. not use NFS, while having the Build Directory use NFS.
  13166. </para>
  13167. <para>
  13168. The filesystem used by <filename>TMPDIR</filename> must
  13169. have standard filesystem semantics (i.e. mixed-case files
  13170. are unique, POSIX file locking, and persistent inodes).
  13171. Due to various issues with NFS and bugs in some
  13172. implementations, NFS does not meet this minimum
  13173. requirement.
  13174. Consequently, <filename>TMPDIR</filename> cannot be on
  13175. NFS.
  13176. </para>
  13177. </glossdef>
  13178. </glossentry>
  13179. <glossentry id='var-TOOLCHAIN_HOST_TASK'><glossterm>TOOLCHAIN_HOST_TASK</glossterm>
  13180. <info>
  13181. TOOLCHAIN_HOST_TASK[doc] = "This variable lists packages the OpenEmbedded build system uses when building an SDK, which contains a cross-development environment."
  13182. </info>
  13183. <glossdef>
  13184. <para role="glossdeffirst">
  13185. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13186. This variable lists packages the OpenEmbedded build system
  13187. uses when building an SDK, which contains a
  13188. cross-development environment.
  13189. The packages specified by this variable are part of the
  13190. toolchain set that runs on the
  13191. <link linkend='var-SDKMACHINE'><filename>SDKMACHINE</filename></link>,
  13192. and each package should usually have the prefix
  13193. <filename>nativesdk-</filename>.
  13194. For example, consider the following command when
  13195. building an SDK:
  13196. <literallayout class='monospaced'>
  13197. $ bitbake -c populate_sdk <replaceable>imagename</replaceable>
  13198. </literallayout>
  13199. In this case, a default list of packages is set in this
  13200. variable, but you can add additional packages to the list.
  13201. </para>
  13202. <para>
  13203. For background information on cross-development toolchains
  13204. in the Yocto Project development environment, see the
  13205. "<link linkend='cross-development-toolchain-generation'>Cross-Development Toolchain Generation</link>"
  13206. section.
  13207. For information on setting up a cross-development
  13208. environment, see the
  13209. <ulink url='&YOCTO_DOCS_SDK_URL;#sdk-manual'>Yocto Project Software Development Kit (SDK) Developer's Guide</ulink>.
  13210. </para>
  13211. </glossdef>
  13212. </glossentry>
  13213. <glossentry id='var-TOOLCHAIN_OUTPUTNAME'><glossterm>TOOLCHAIN_OUTPUTNAME</glossterm>
  13214. <info>
  13215. TOOLCHAIN_OUTPUTNAME[doc] = "Defines the name used for the toolchain output."
  13216. </info>
  13217. <glossdef>
  13218. <para role="glossdeffirst">
  13219. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13220. This variable defines the name used for the toolchain
  13221. output.
  13222. The
  13223. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  13224. class sets the
  13225. <filename>TOOLCHAIN_OUTPUTNAME</filename> variable as
  13226. follows:
  13227. <literallayout class='monospaced'>
  13228. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  13229. </literallayout>
  13230. See the
  13231. <link linkend='var-SDK_NAME'><filename>SDK_NAME</filename></link>
  13232. and
  13233. <link linkend='var-SDK_VERSION'><filename>SDK_VERSION</filename></link>
  13234. variables for additional information.
  13235. </para>
  13236. </glossdef>
  13237. </glossentry>
  13238. <glossentry id='var-TOOLCHAIN_TARGET_TASK'><glossterm>TOOLCHAIN_TARGET_TASK</glossterm>
  13239. <info>
  13240. TOOLCHAIN_TARGET_TASK[doc] = "This variable lists packages the OpenEmbedded build system uses when it creates the target part of an SDK, which includes libraries and headers."
  13241. </info>
  13242. <glossdef>
  13243. <para role="glossdeffirst">
  13244. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13245. This variable lists packages the OpenEmbedded build system
  13246. uses when it creates the target part of an SDK
  13247. (i.e. the part built for the target hardware), which
  13248. includes libraries and headers.
  13249. </para>
  13250. <para>
  13251. For background information on cross-development toolchains
  13252. in the Yocto Project development environment, see the
  13253. "<link linkend='cross-development-toolchain-generation'>Cross-Development Toolchain Generation</link>"
  13254. section.
  13255. For information on setting up a cross-development
  13256. environment, see the
  13257. <ulink url='&YOCTO_DOCS_SDK_URL;#sdk-manual'>Yocto Project Software Development Kit (SDK) Developer's Guide</ulink>.
  13258. </para>
  13259. </glossdef>
  13260. </glossentry>
  13261. <glossentry id='var-TOPDIR'><glossterm>TOPDIR</glossterm>
  13262. <info>
  13263. TOPDIR[doc] = "The Build Directory. BitBake automatically sets this variable. The OpenEmbedded build system uses the Build Directory when building images."
  13264. </info>
  13265. <glossdef>
  13266. <para role="glossdeffirst">
  13267. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13268. The top-level
  13269. <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>.
  13270. BitBake automatically sets this variable when you
  13271. initialize your build environment using either
  13272. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>
  13273. or
  13274. <link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link>.
  13275. </para>
  13276. </glossdef>
  13277. </glossentry>
  13278. <glossentry id='var-TRANSLATED_TARGET_ARCH'><glossterm>TRANSLATED_TARGET_ARCH</glossterm>
  13279. <info>
  13280. TRANSLATED_TARGET_ARCH[doc] = "A sanitized version of TARGET_ARCH. This variable is used where the architecture is needed in a value where underscores are not allowed."
  13281. </info>
  13282. <glossdef>
  13283. <para role="glossdeffirst">
  13284. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13285. A sanitized version of
  13286. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>.
  13287. This variable is used where the architecture is needed in
  13288. a value where underscores are not allowed, for example
  13289. within package filenames.
  13290. In this case, dash characters replace any underscore
  13291. characters used in TARGET_ARCH.
  13292. </para>
  13293. <para>
  13294. Do not edit this variable.
  13295. </para>
  13296. </glossdef>
  13297. </glossentry>
  13298. <glossentry id='var-TUNE_ARCH'><glossterm>TUNE_ARCH</glossterm>
  13299. <info>
  13300. TUNE_ARCH[doc] = "The GNU canonical architecture for a specific architecture (i.e. arm, armeb, mips, mips64, and so forth)."
  13301. </info>
  13302. <glossdef>
  13303. <para role="glossdeffirst">
  13304. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13305. The GNU canonical architecture for a specific architecture
  13306. (i.e. <filename>arm</filename>,
  13307. <filename>armeb</filename>,
  13308. <filename>mips</filename>,
  13309. <filename>mips64</filename>, and so forth).
  13310. BitBake uses this value to setup configuration.
  13311. </para>
  13312. <para>
  13313. <filename>TUNE_ARCH</filename> definitions are specific to
  13314. a given architecture.
  13315. The definitions can be a single static definition, or
  13316. can be dynamically adjusted.
  13317. You can see details for a given CPU family by looking at
  13318. the architecture's <filename>README</filename> file.
  13319. For example, the
  13320. <filename>meta/conf/machine/include/mips/README</filename>
  13321. file in the
  13322. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  13323. provides information for <filename>TUNE_ARCH</filename>
  13324. specific to the <filename>mips</filename> architecture.
  13325. </para>
  13326. <para>
  13327. <filename>TUNE_ARCH</filename> is tied closely to
  13328. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>,
  13329. which defines the target machine's architecture.
  13330. The BitBake configuration file
  13331. (<filename>meta/conf/bitbake.conf</filename>) sets
  13332. <filename>TARGET_ARCH</filename> as follows:
  13333. <literallayout class='monospaced'>
  13334. TARGET_ARCH = "${TUNE_ARCH}"
  13335. </literallayout>
  13336. </para>
  13337. <para>
  13338. The following list, which is by no means complete since
  13339. architectures are configurable, shows supported machine
  13340. architectures:
  13341. <literallayout class='monospaced'>
  13342. arm
  13343. i586
  13344. x86_64
  13345. powerpc
  13346. powerpc64
  13347. mips
  13348. mipsel
  13349. </literallayout>
  13350. </para>
  13351. </glossdef>
  13352. </glossentry>
  13353. <glossentry id='var-TUNE_ASARGS'><glossterm>TUNE_ASARGS</glossterm>
  13354. <info>
  13355. TUNE_ASARGS[doc] = "Specifies architecture-specific assembler flags for the target system."
  13356. </info>
  13357. <glossdef>
  13358. <para role="glossdeffirst">
  13359. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13360. Specifies architecture-specific assembler flags for
  13361. the target system.
  13362. The set of flags is based on the selected tune features.
  13363. <filename>TUNE_ASARGS</filename> is set using
  13364. the tune include files, which are typically under
  13365. <filename>meta/conf/machine/include/</filename> and are
  13366. influenced through
  13367. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  13368. For example, the
  13369. <filename>meta/conf/machine/include/x86/arch-x86.inc</filename>
  13370. file defines the flags for the x86 architecture as follows:
  13371. <literallayout class='monospaced'>
  13372. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  13373. </literallayout>
  13374. <note>
  13375. Board Support Packages (BSPs) select the tune.
  13376. The selected tune, in turn, affects the tune variables
  13377. themselves (i.e. the tune can supply its own
  13378. set of flags).
  13379. </note>
  13380. </para>
  13381. </glossdef>
  13382. </glossentry>
  13383. <glossentry id='var-TUNE_CCARGS'><glossterm>TUNE_CCARGS</glossterm>
  13384. <info>
  13385. TUNE_CCARGS[doc] = "Specifies architecture-specific C compiler flags for the target system."
  13386. </info>
  13387. <glossdef>
  13388. <para role="glossdeffirst">
  13389. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13390. Specifies architecture-specific C compiler flags for
  13391. the target system.
  13392. The set of flags is based on the selected tune features.
  13393. <filename>TUNE_CCARGS</filename> is set using
  13394. the tune include files, which are typically under
  13395. <filename>meta/conf/machine/include/</filename> and are
  13396. influenced through
  13397. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  13398. <note>
  13399. Board Support Packages (BSPs) select the tune.
  13400. The selected tune, in turn, affects the tune variables
  13401. themselves (i.e. the tune can supply its own
  13402. set of flags).
  13403. </note>
  13404. </para>
  13405. </glossdef>
  13406. </glossentry>
  13407. <glossentry id='var-TUNE_LDARGS'><glossterm>TUNE_LDARGS</glossterm>
  13408. <info>
  13409. TUNE_LDARGS[doc] = "Specifies architecture-specific linker flags for the target system."
  13410. </info>
  13411. <glossdef>
  13412. <para role="glossdeffirst">
  13413. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13414. Specifies architecture-specific linker flags for
  13415. the target system.
  13416. The set of flags is based on the selected tune features.
  13417. <filename>TUNE_LDARGS</filename> is set using
  13418. the tune include files, which are typically under
  13419. <filename>meta/conf/machine/include/</filename> and are
  13420. influenced through
  13421. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  13422. For example, the
  13423. <filename>meta/conf/machine/include/x86/arch-x86.inc</filename>
  13424. file defines the flags for the x86 architecture as follows:
  13425. <literallayout class='monospaced'>
  13426. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  13427. </literallayout>
  13428. <note>
  13429. Board Support Packages (BSPs) select the tune.
  13430. The selected tune, in turn, affects the tune variables
  13431. themselves (i.e. the tune can supply its own
  13432. set of flags).
  13433. </note>
  13434. </para>
  13435. </glossdef>
  13436. </glossentry>
  13437. <glossentry id='var-TUNE_FEATURES'><glossterm>TUNE_FEATURES</glossterm>
  13438. <info>
  13439. TUNE_FEATURES[doc] = "Features used to "tune" a compiler for optimal use given a specific processor."
  13440. </info>
  13441. <glossdef>
  13442. <para role="glossdeffirst">
  13443. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13444. Features used to "tune" a compiler for optimal use
  13445. given a specific processor.
  13446. The features are defined within the tune files and allow
  13447. arguments (i.e. <filename>TUNE_*ARGS</filename>) to be
  13448. dynamically generated based on the features.
  13449. </para>
  13450. <para>
  13451. The OpenEmbedded build system verifies the features
  13452. to be sure they are not conflicting and that they are
  13453. supported.
  13454. </para>
  13455. <para>
  13456. The BitBake configuration file
  13457. (<filename>meta/conf/bitbake.conf</filename>) defines
  13458. <filename>TUNE_FEATURES</filename> as follows:
  13459. <literallayout class='monospaced'>
  13460. TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}"
  13461. </literallayout>
  13462. See the
  13463. <link linkend='var-DEFAULTTUNE'><filename>DEFAULTTUNE</filename></link>
  13464. variable for more information.
  13465. </para>
  13466. </glossdef>
  13467. </glossentry>
  13468. <glossentry id='var-TUNE_PKGARCH'><glossterm>TUNE_PKGARCH</glossterm>
  13469. <info>
  13470. TUNE_PKGARCH[doc] = "The package architecture understood by the packaging system to define the architecture, ABI, and tuning of output packages."
  13471. </info>
  13472. <glossdef>
  13473. <para role="glossdeffirst">
  13474. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13475. The package architecture understood by the packaging
  13476. system to define the architecture, ABI, and tuning of
  13477. output packages.
  13478. The specific tune is defined using the "_tune" override
  13479. as follows:
  13480. <literallayout class='monospaced'>
  13481. TUNE_PKGARCH_tune-<replaceable>tune</replaceable> = "<replaceable>tune</replaceable>"
  13482. </literallayout>
  13483. </para>
  13484. <para>
  13485. These tune-specific package architectures are defined in
  13486. the machine include files.
  13487. Here is an example of the "core2-32" tuning as used
  13488. in the
  13489. <filename>meta/conf/machine/include/tune-core2.inc</filename>
  13490. file:
  13491. <literallayout class='monospaced'>
  13492. TUNE_PKGARCH_tune-core2-32 = "core2-32"
  13493. </literallayout>
  13494. </para>
  13495. </glossdef>
  13496. </glossentry>
  13497. <glossentry id='var-TUNEABI'><glossterm>TUNEABI</glossterm>
  13498. <info>
  13499. TUNEABI[doc] = "An underlying ABI used by a particular tuning in a given toolchain layer. This feature allows providers using prebuilt libraries to check compatibility of a tuning against their selection of libraries."
  13500. </info>
  13501. <glossdef>
  13502. <para role="glossdeffirst">
  13503. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13504. An underlying Application Binary Interface (ABI) used by
  13505. a particular tuning in a given toolchain layer.
  13506. Providers that use prebuilt libraries can use the
  13507. <filename>TUNEABI</filename>,
  13508. <link linkend='var-TUNEABI_OVERRIDE'><filename>TUNEABI_OVERRIDE</filename></link>,
  13509. and
  13510. <link linkend='var-TUNEABI_WHITELIST'><filename>TUNEABI_WHITELIST</filename></link>
  13511. variables to check compatibility of tunings against their
  13512. selection of libraries.
  13513. </para>
  13514. <para>
  13515. If <filename>TUNEABI</filename> is undefined, then every
  13516. tuning is allowed.
  13517. See the
  13518. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  13519. class to see how the variable is used.
  13520. </para>
  13521. </glossdef>
  13522. </glossentry>
  13523. <glossentry id='var-TUNEABI_OVERRIDE'><glossterm>TUNEABI_OVERRIDE</glossterm>
  13524. <info>
  13525. TUNEABI_OVERRIDE[doc] = "If set, ignores TUNEABI_WHITELIST."
  13526. </info>
  13527. <glossdef>
  13528. <para role="glossdeffirst">
  13529. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13530. If set, the OpenEmbedded system ignores the
  13531. <link linkend='var-TUNEABI_WHITELIST'><filename>TUNEABI_WHITELIST</filename></link>
  13532. variable.
  13533. Providers that use prebuilt libraries can use the
  13534. <filename>TUNEABI_OVERRIDE</filename>,
  13535. <filename>TUNEABI_WHITELIST</filename>,
  13536. and
  13537. <link linkend='var-TUNEABI'><filename>TUNEABI</filename></link>
  13538. variables to check compatibility of a tuning against their
  13539. selection of libraries.
  13540. </para>
  13541. <para>
  13542. See the
  13543. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  13544. class to see how the variable is used.
  13545. </para>
  13546. </glossdef>
  13547. </glossentry>
  13548. <glossentry id='var-TUNEABI_WHITELIST'><glossterm>TUNEABI_WHITELIST</glossterm>
  13549. <info>
  13550. TUNEABI_WHITELIST[doc] = "A whitelist of permissible TUNEABI values. If the variable is not set, all values are allowed."
  13551. </info>
  13552. <glossdef>
  13553. <para role="glossdeffirst">
  13554. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13555. A whitelist of permissible
  13556. <link linkend='var-TUNEABI'><filename>TUNEABI</filename></link>
  13557. values.
  13558. If <filename>TUNEABI_WHITELIST</filename> is not set,
  13559. all tunes are allowed.
  13560. Providers that use prebuilt libraries can use the
  13561. <filename>TUNEABI_WHITELIST</filename>,
  13562. <link linkend='var-TUNEABI_OVERRIDE'><filename>TUNEABI_OVERRIDE</filename></link>,
  13563. and <filename>TUNEABI</filename> variables to check
  13564. compatibility of a tuning against their selection of
  13565. libraries.
  13566. </para>
  13567. <para>
  13568. See the
  13569. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  13570. class to see how the variable is used.
  13571. </para>
  13572. </glossdef>
  13573. </glossentry>
  13574. <glossentry id='var-TUNECONFLICTS'><glossterm>TUNECONFLICTS[<replaceable>feature</replaceable>]</glossterm>
  13575. <info>
  13576. TUNECONFLICTS[doc] = "Specifies CPU or Application Binary Interface (ABI) tuning features that conflict with specified feature."
  13577. </info>
  13578. <glossdef>
  13579. <para role="glossdeffirst">
  13580. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13581. Specifies CPU or Application Binary Interface (ABI)
  13582. tuning features that conflict with <replaceable>feature</replaceable>.
  13583. </para>
  13584. <para>
  13585. Known tuning conflicts are specified in the machine include
  13586. files in the
  13587. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  13588. Here is an example from the
  13589. <filename>meta/conf/machine/include/mips/arch-mips.inc</filename>
  13590. include file that lists the "o32" and "n64" features as
  13591. conflicting with the "n32" feature:
  13592. <literallayout class='monospaced'>
  13593. TUNECONFLICTS[n32] = "o32 n64"
  13594. </literallayout>
  13595. </para>
  13596. </glossdef>
  13597. </glossentry>
  13598. <glossentry id='var-TUNEVALID'><glossterm>TUNEVALID[<replaceable>feature</replaceable>]</glossterm>
  13599. <info>
  13600. TUNEVALID[doc] = "Descriptions, stored as flags, of valid tuning features."
  13601. </info>
  13602. <glossdef>
  13603. <para role="glossdeffirst">
  13604. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13605. Specifies a valid CPU or Application Binary Interface (ABI)
  13606. tuning feature.
  13607. The specified feature is stored as a flag.
  13608. Valid features are specified in the machine include files
  13609. (e.g. <filename>meta/conf/machine/include/arm/arch-arm.inc</filename>).
  13610. Here is an example from that file:
  13611. <literallayout class='monospaced'>
  13612. TUNEVALID[bigendian] = "Enable big-endian mode."
  13613. </literallayout>
  13614. </para>
  13615. <para>
  13616. See the machine include files in the
  13617. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
  13618. for these features.
  13619. </para>
  13620. </glossdef>
  13621. </glossentry>
  13622. </glossdiv>
  13623. <glossdiv id='var-glossary-u'><title>U</title>
  13624. <glossentry id='var-UBOOT_CONFIG'><glossterm>UBOOT_CONFIG</glossterm>
  13625. <info>
  13626. UBOOT_CONFIG[doc] = "Configures the UBOOT_MACHINE and can also define IMAGE_FSTYPES for individual cases."
  13627. </info>
  13628. <glossdef>
  13629. <para role="glossdeffirst">
  13630. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13631. Configures the
  13632. <link linkend='var-UBOOT_MACHINE'><filename>UBOOT_MACHINE</filename></link>
  13633. and can also define
  13634. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  13635. for individual cases.
  13636. </para>
  13637. <para>
  13638. Following is an example from the
  13639. <filename>meta-fsl-arm</filename> layer.
  13640. <literallayout class='monospaced'>
  13641. UBOOT_CONFIG ??= "sd"
  13642. UBOOT_CONFIG[sd] = "mx6qsabreauto_config,sdcard"
  13643. UBOOT_CONFIG[eimnor] = "mx6qsabreauto_eimnor_config"
  13644. UBOOT_CONFIG[nand] = "mx6qsabreauto_nand_config,ubifs"
  13645. UBOOT_CONFIG[spinor] = "mx6qsabreauto_spinor_config"
  13646. </literallayout>
  13647. In this example, "sd" is selected as the configuration
  13648. of the possible four for the
  13649. <filename>UBOOT_MACHINE</filename>.
  13650. The "sd" configuration defines "mx6qsabreauto_config"
  13651. as the value for <filename>UBOOT_MACHINE</filename>, while
  13652. the "sdcard" specifies the
  13653. <filename>IMAGE_FSTYPES</filename> to use for the U-boot
  13654. image.
  13655. </para>
  13656. <para>
  13657. For more information on how the
  13658. <filename>UBOOT_CONFIG</filename> is handled, see the
  13659. <ulink url='http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/uboot-config.bbclass'><filename>uboot-config</filename></ulink>
  13660. class.
  13661. </para>
  13662. </glossdef>
  13663. </glossentry>
  13664. <glossentry id='var-UBOOT_ENTRYPOINT'><glossterm>UBOOT_ENTRYPOINT</glossterm>
  13665. <info>
  13666. UBOOT_ENTRYPOINT[doc] = "Specifies the entry point for the U-Boot image."
  13667. </info>
  13668. <glossdef>
  13669. <para role="glossdeffirst">
  13670. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13671. Specifies the entry point for the U-Boot image.
  13672. During U-Boot image creation, the
  13673. <filename>UBOOT_ENTRYPOINT</filename> variable is passed
  13674. as a command-line parameter to the
  13675. <filename>uboot-mkimage</filename> utility.
  13676. </para>
  13677. </glossdef>
  13678. </glossentry>
  13679. <glossentry id='var-UBOOT_LOADADDRESS'><glossterm>UBOOT_LOADADDRESS</glossterm>
  13680. <info>
  13681. UBOOT_LOADADDRESS[doc] = "Specifies the load address for the U-Boot image."
  13682. </info>
  13683. <glossdef>
  13684. <para role="glossdeffirst">
  13685. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13686. Specifies the load address for the U-Boot image.
  13687. During U-Boot image creation, the
  13688. <filename>UBOOT_LOADADDRESS</filename> variable is passed
  13689. as a command-line parameter to the
  13690. <filename>uboot-mkimage</filename> utility.
  13691. </para>
  13692. </glossdef>
  13693. </glossentry>
  13694. <glossentry id='var-UBOOT_LOCALVERSION'><glossterm>UBOOT_LOCALVERSION</glossterm>
  13695. <info>
  13696. UBOOT_LOCALVERSION[doc] = "Appends a string to the name of the local version of the U-Boot image."
  13697. </info>
  13698. <glossdef>
  13699. <para role="glossdeffirst">
  13700. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13701. Appends a string to the name of the local version of the
  13702. U-Boot image.
  13703. For example, assuming the version of the U-Boot image
  13704. built was "2013.10, the full version string reported by
  13705. U-Boot would be "2013.10-yocto" given the following
  13706. statement:
  13707. <literallayout class='monospaced'>
  13708. UBOOT_LOCALVERSION = "-yocto"
  13709. </literallayout>
  13710. </para>
  13711. </glossdef>
  13712. </glossentry>
  13713. <glossentry id='var-UBOOT_MACHINE'><glossterm>UBOOT_MACHINE</glossterm>
  13714. <info>
  13715. UBOOT_MACHINE[doc] = "Specifies the value passed on the make command line when building a U-Boot image."
  13716. </info>
  13717. <glossdef>
  13718. <para role="glossdeffirst">
  13719. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13720. Specifies the value passed on the
  13721. <filename>make</filename> command line when building
  13722. a U-Boot image.
  13723. The value indicates the target platform configuration.
  13724. You typically set this variable from the machine
  13725. configuration file (i.e.
  13726. <filename>conf/machine/<replaceable>machine_name</replaceable>.conf</filename>).
  13727. </para>
  13728. <para>
  13729. Please see the "Selection of Processor Architecture and
  13730. Board Type" section in the U-Boot README for valid values
  13731. for this variable.
  13732. </para>
  13733. </glossdef>
  13734. </glossentry>
  13735. <glossentry id='var-UBOOT_MAKE_TARGET'><glossterm>UBOOT_MAKE_TARGET</glossterm>
  13736. <info>
  13737. UBOOT_MAKE_TARGET[doc] = "Specifies the target called in the Makefile."
  13738. </info>
  13739. <glossdef>
  13740. <para role="glossdeffirst">
  13741. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13742. Specifies the target called in the
  13743. <filename>Makefile</filename>.
  13744. The default target is "all".
  13745. </para>
  13746. </glossdef>
  13747. </glossentry>
  13748. <glossentry id='var-UBOOT_SUFFIX'><glossterm>UBOOT_SUFFIX</glossterm>
  13749. <info>
  13750. UBOOT_SUFFIX[doc] = "Points to the generated U-Boot extension."
  13751. </info>
  13752. <glossdef>
  13753. <para role="glossdeffirst">
  13754. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13755. Points to the generated U-Boot extension.
  13756. For example, <filename>u-boot.sb</filename> has a
  13757. <filename>.sb</filename> extension.
  13758. </para>
  13759. <para>
  13760. The default U-Boot extension is
  13761. <filename>.bin</filename>
  13762. </para>
  13763. </glossdef>
  13764. </glossentry>
  13765. <glossentry id='var-UBOOT_TARGET'><glossterm>UBOOT_TARGET</glossterm>
  13766. <info>
  13767. UBOOT_TARGET[doc] = "Specifies the target used for building U-Boot."
  13768. </info>
  13769. <glossdef>
  13770. <para role="glossdeffirst">
  13771. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13772. Specifies the target used for building U-Boot.
  13773. The target is passed directly as part of the "make" command
  13774. (e.g. SPL and AIS).
  13775. If you do not specifically set this variable, the
  13776. OpenEmbedded build process passes and uses "all" for the
  13777. target during the U-Boot building process.
  13778. </para>
  13779. </glossdef>
  13780. </glossentry>
  13781. <glossentry id='var-UNKNOWN_CONFIGURE_WHITELIST'><glossterm>UNKNOWN_CONFIGURE_WHITELIST</glossterm>
  13782. <info>
  13783. UNKNOWN_CONFIGURE_WHITELIST[doc] = "Specifies a list of options that, if reported by the configure script as being invalid, should not generate a warning during the do_configure task."
  13784. </info>
  13785. <glossdef>
  13786. <para role="glossdeffirst">
  13787. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13788. Specifies a list of options that, if reported by the
  13789. configure script as being invalid, should not generate a
  13790. warning during the
  13791. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  13792. task.
  13793. Normally, invalid configure options are simply not passed
  13794. to the configure script (e.g. should be removed from
  13795. <link linkend='var-EXTRA_OECONF'><filename>EXTRA_OECONF</filename></link>
  13796. or
  13797. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>).
  13798. However, common options, for example, exist that are passed
  13799. to all configure scripts at a class level that might not
  13800. be valid for some configure scripts.
  13801. It follows that no benefit exists in seeing a warning about
  13802. these options.
  13803. For these cases, the options are added to
  13804. <filename>UNKNOWN_CONFIGURE_WHITELIST</filename>.
  13805. </para>
  13806. <para>
  13807. The configure arguments check that uses
  13808. <filename>UNKNOWN_CONFIGURE_WHITELIST</filename> is part
  13809. of the
  13810. <link linkend='ref-classes-insane'><filename>insane</filename></link>
  13811. class and is only enabled if the recipe inherits the
  13812. <link linkend='ref-classes-autotools'><filename>autotools</filename></link>
  13813. class.
  13814. </para>
  13815. </glossdef>
  13816. </glossentry>
  13817. <glossentry id='var-UPDATERCPN'><glossterm>UPDATERCPN</glossterm>
  13818. <info>
  13819. UPDATERCPN[doc] = "Specifies the package that contains the initscript that is to be enabled."
  13820. </info>
  13821. <glossdef>
  13822. <para role="glossdeffirst">
  13823. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13824. For recipes inheriting the
  13825. <link linkend='ref-classes-update-rc.d'><filename>update-rc.d</filename></link>
  13826. class, <filename>UPDATERCPN</filename> specifies
  13827. the package that contains the initscript that is to be
  13828. enabled.
  13829. </para>
  13830. <para>
  13831. The default value is "${PN}".
  13832. Given that almost all recipes that install initscripts
  13833. package them in the main package for the recipe, you
  13834. rarely need to set this variable in individual recipes.
  13835. </para>
  13836. </glossdef>
  13837. </glossentry>
  13838. <glossentry id='var-UPSTREAM_CHECK_GITTAGREGEX'><glossterm>UPSTREAM_CHECK_GITTAGREGEX</glossterm>
  13839. <info>
  13840. UPSTREAM_CHECK_GITTAGREGEX[doc] = "Filters relevant Git tags when fetching source from an upstream Git repository."
  13841. </info>
  13842. <glossdef>
  13843. <para role="glossdeffirst">
  13844. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13845. When the
  13846. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  13847. class is enabled globally, you can perform a per-recipe
  13848. check for what the latest upstream source code version is
  13849. by calling
  13850. <filename>bitbake -c checkpkg</filename> <replaceable>recipe</replaceable>.
  13851. If the recipe source code is provided from Git
  13852. repositories, the OpenEmbedded build system determines the
  13853. latest upstream version by picking the latest tag from the
  13854. list of all repository tags.
  13855. You can use the
  13856. <filename>UPSTREAM_CHECK_GITTAGREGEX</filename>
  13857. variable to provide a regular expression to filter only the
  13858. relevant tags should the default filter not work
  13859. correctly.
  13860. <literallayout class='monospaced'>
  13861. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  13862. </literallayout>
  13863. </para>
  13864. </glossdef>
  13865. </glossentry>
  13866. <glossentry id='var-UPSTREAM_CHECK_REGEX'><glossterm>UPSTREAM_CHECK_REGEX</glossterm>
  13867. <info>
  13868. UPSTREAM_CHECK_REGEX[doc] = "The regular expression the package checking system uses to parse the page pointed to by UPSTREAM_CHECK_URI."
  13869. </info>
  13870. <glossdef>
  13871. <para role="glossdeffirst">
  13872. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13873. When the
  13874. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  13875. class is enabled globally, use the
  13876. <filename>UPSTREAM_CHECK_REGEX</filename> variable to
  13877. specify a different regular expression instead of the
  13878. default one when the package checking system is parsing
  13879. the page found using
  13880. <link linkend='var-UPSTREAM_CHECK_URI'><filename>UPSTREAM_CHECK_URI</filename></link>.
  13881. <literallayout class='monospaced'>
  13882. UPSTREAM_CHECK_REGEX = "package_regex"
  13883. </literallayout>
  13884. </para>
  13885. </glossdef>
  13886. </glossentry>
  13887. <glossentry id='var-UPSTREAM_CHECK_URI'><glossterm>UPSTREAM_CHECK_URI</glossterm>
  13888. <info>
  13889. UPSTREAM_CHECK_URI[doc] = "The URL used by the package checking system to get the latest version of the package when source files are fetched from an upstream Git repository."
  13890. </info>
  13891. <glossdef>
  13892. <para role="glossdeffirst">
  13893. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13894. When the
  13895. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  13896. class is enabled globally, you can perform a per-recipe
  13897. check for what the latest upstream source code version is
  13898. by calling <filename>bitbake -c checkpkg</filename>
  13899. <replaceable>recipe</replaceable>.
  13900. If the source code is provided from tarballs, the latest
  13901. version is determined by fetching the directory listing
  13902. where the tarball is and attempting to find a later tarball.
  13903. When this approach does not work, you can use
  13904. <filename>UPSTREAM_CHECK_URI</filename> to
  13905. provide a different URI that contains the link to the
  13906. latest tarball.
  13907. <literallayout class='monospaced'>
  13908. UPSTREAM_CHECK_URI = "recipe_url"
  13909. </literallayout>
  13910. </para>
  13911. </glossdef>
  13912. </glossentry>
  13913. <glossentry id='var-USE_DEVFS'><glossterm>USE_DEVFS</glossterm>
  13914. <info>
  13915. USE_DEVFS[doc] = "Determines if devtmpfs is used for /dev population."
  13916. </info>
  13917. <glossdef>
  13918. <para role="glossdeffirst">
  13919. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13920. Determines if <filename>devtmpfs</filename> is used for
  13921. <filename>/dev</filename> population.
  13922. The default value used for <filename>USE_DEVFS</filename>
  13923. is "1" when no value is specifically set.
  13924. Typically, you would set <filename>USE_DEVFS</filename>
  13925. to "0" for a statically populated <filename>/dev</filename>
  13926. directory.
  13927. </para>
  13928. <para>
  13929. See the
  13930. "<ulink url='&YOCTO_DOCS_DEV_URL;#selecting-dev-manager'>Selecting a Device Manager</ulink>"
  13931. section in the Yocto Project Development Manual for
  13932. information on how to use this variable.
  13933. </para>
  13934. </glossdef>
  13935. </glossentry>
  13936. <glossentry id='var-USE_VT'><glossterm>USE_VT</glossterm>
  13937. <info>
  13938. USE_VT[doc] = "When using SysVinit, determines whether or not to run a getty on any virtual terminals in order to enable logging in through those terminals."
  13939. </info>
  13940. <glossdef>
  13941. <para role="glossdeffirst">
  13942. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13943. When using
  13944. <ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-enabling-system-services'>SysVinit</ulink>,
  13945. determines whether or not to run a
  13946. <ulink url='http://en.wikipedia.org/wiki/Getty_%28Unix%29'>getty</ulink>
  13947. on any virtual terminals in order to enable logging in
  13948. through those terminals.
  13949. </para>
  13950. <para>
  13951. The default value used for <filename>USE_VT</filename>
  13952. is "1" when no default value is specifically set.
  13953. Typically, you would set <filename>USE_VT</filename>
  13954. to "0" in the machine configuration file for machines
  13955. that do not have a graphical display attached and
  13956. therefore do not need virtual terminal functionality.
  13957. </para>
  13958. </glossdef>
  13959. </glossentry>
  13960. <glossentry id='var-USER_CLASSES'><glossterm>USER_CLASSES</glossterm>
  13961. <info>
  13962. USER_CLASSES[doc] = "List of additional classes to use when building images that enable extra features."
  13963. </info>
  13964. <glossdef>
  13965. <para role="glossdeffirst">
  13966. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13967. A list of classes to globally inherit.
  13968. These classes are used by the OpenEmbedded build system
  13969. to enable extra features (e.g.
  13970. <filename>buildstats</filename>,
  13971. <filename>image-mklibs</filename>, and so forth).
  13972. </para>
  13973. <para>
  13974. The default list is set in your
  13975. <filename>local.conf</filename> file:
  13976. <literallayout class='monospaced'>
  13977. USER_CLASSES ?= "buildstats image-mklibs image-prelink"
  13978. </literallayout>
  13979. For more information, see
  13980. <filename>meta-poky/conf/local.conf.sample</filename> in
  13981. the
  13982. <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
  13983. </para>
  13984. </glossdef>
  13985. </glossentry>
  13986. <glossentry id='var-USERADD_ERROR_DYNAMIC'><glossterm>USERADD_ERROR_DYNAMIC</glossterm>
  13987. <info>
  13988. USERADD_ERROR_DYNAMIC[doc] = "Forces the OpenEmbedded build system to produce an error if the user identification (uid) and group identification (gid) values are not defined in files/passwd and files/group files."
  13989. </info>
  13990. <glossdef>
  13991. <para role="glossdeffirst">
  13992. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13993. Forces the OpenEmbedded build system to produce an error
  13994. if the user identification (<filename>uid</filename>) and
  13995. group identification (<filename>gid</filename>) values
  13996. are not defined in <filename>files/passwd</filename>
  13997. and <filename>files/group</filename> files.
  13998. </para>
  13999. <para>
  14000. The default behavior for the build system is to dynamically
  14001. apply <filename>uid</filename> and
  14002. <filename>gid</filename> values.
  14003. Consequently, the <filename>USERADD_ERROR_DYNAMIC</filename>
  14004. variable is by default not set.
  14005. If you plan on using statically assigned
  14006. <filename>gid</filename> and <filename>uid</filename>
  14007. values, you should set
  14008. the <filename>USERADD_ERROR_DYNAMIC</filename> variable in
  14009. your <filename>local.conf</filename> file as
  14010. follows:
  14011. <literallayout class='monospaced'>
  14012. USERADD_ERROR_DYNAMIC = "1"
  14013. </literallayout>
  14014. Overriding the default behavior implies you are going to
  14015. also take steps to set static <filename>uid</filename> and
  14016. <filename>gid</filename> values through use of the
  14017. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>,
  14018. <link linkend='var-USERADD_UID_TABLES'><filename>USERADD_UID_TABLES</filename></link>,
  14019. and
  14020. <link linkend='var-USERADD_GID_TABLES'><filename>USERADD_GID_TABLES</filename></link>
  14021. variables.
  14022. </para>
  14023. </glossdef>
  14024. </glossentry>
  14025. <glossentry id='var-USERADD_GID_TABLES'><glossterm>USERADD_GID_TABLES</glossterm>
  14026. <info>
  14027. USERADD_GID_TABLES[doc] = "Specifies a password file to use for obtaining static group identification (gid) values when the OpenEmbedded build system adds a group to the system during package installation."
  14028. </info>
  14029. <glossdef>
  14030. <para role="glossdeffirst">
  14031. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14032. Specifies a password file to use for obtaining static
  14033. group identification (<filename>gid</filename>) values
  14034. when the OpenEmbedded build system adds a group to the
  14035. system during package installation.
  14036. </para>
  14037. <para>
  14038. When applying static group identification
  14039. (<filename>gid</filename>) values, the OpenEmbedded build
  14040. system looks in
  14041. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>
  14042. for a <filename>files/group</filename> file and then applies
  14043. those <filename>uid</filename> values.
  14044. Set the variable as follows in your
  14045. <filename>local.conf</filename> file:
  14046. <literallayout class='monospaced'>
  14047. USERADD_GID_TABLES = "files/group"
  14048. </literallayout>
  14049. </para>
  14050. <note>
  14051. Setting the
  14052. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>
  14053. variable to "useradd-staticids" causes the build system
  14054. to use static <filename>gid</filename> values.
  14055. </note>
  14056. </glossdef>
  14057. </glossentry>
  14058. <glossentry id='var-USERADD_PACKAGES'><glossterm>USERADD_PACKAGES</glossterm>
  14059. <info>
  14060. USERADD_PACKAGES[doc] = "When a recipe inherits the useradd class, this variable specifies the individual packages within the recipe that require users and/or groups to be added."
  14061. </info>
  14062. <glossdef>
  14063. <para role="glossdeffirst">
  14064. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14065. When inheriting the
  14066. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  14067. class, this variable
  14068. specifies the individual packages within the recipe that
  14069. require users and/or groups to be added.
  14070. </para>
  14071. <para>
  14072. You must set this variable if the recipe inherits the
  14073. class.
  14074. For example, the following enables adding a user for the
  14075. main package in a recipe:
  14076. <literallayout class='monospaced'>
  14077. USERADD_PACKAGES = "${PN}"
  14078. </literallayout>
  14079. <note>
  14080. If follows that if you are going to use the
  14081. <filename>USERADD_PACKAGES</filename> variable,
  14082. you need to set one or more of the
  14083. <link linkend='var-USERADD_PARAM'><filename>USERADD_PARAM</filename></link>,
  14084. <link linkend='var-GROUPADD_PARAM'><filename>GROUPADD_PARAM</filename></link>,
  14085. or
  14086. <link linkend='var-GROUPMEMS_PARAM'><filename>GROUPMEMS_PARAM</filename></link>
  14087. variables.
  14088. </note>
  14089. </para>
  14090. </glossdef>
  14091. </glossentry>
  14092. <glossentry id='var-USERADD_PARAM'><glossterm>USERADD_PARAM</glossterm>
  14093. <info>
  14094. USERADD_PARAM[doc] = "When a recipe inherits the useradd class, this variable specifies for a package what parameters should be passed to the useradd command if you wish to add a user to the system when the package is installed."
  14095. </info>
  14096. <glossdef>
  14097. <para role="glossdeffirst">
  14098. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14099. When inheriting the
  14100. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  14101. class, this variable
  14102. specifies for a package what parameters should be passed
  14103. to the <filename>useradd</filename> command
  14104. if you wish to add a user to the system when the package
  14105. is installed.
  14106. </para>
  14107. <para>
  14108. Here is an example from the <filename>dbus</filename>
  14109. recipe:
  14110. <literallayout class='monospaced'>
  14111. USERADD_PARAM_${PN} = "--system --home ${localstatedir}/lib/dbus \
  14112. --no-create-home --shell /bin/false \
  14113. --user-group messagebus"
  14114. </literallayout>
  14115. For information on the standard Linux shell command
  14116. <filename>useradd</filename>, see
  14117. <ulink url='http://linux.die.net/man/8/useradd'></ulink>.
  14118. </para>
  14119. </glossdef>
  14120. </glossentry>
  14121. <glossentry id='var-USERADD_UID_TABLES'><glossterm>USERADD_UID_TABLES</glossterm>
  14122. <info>
  14123. USERADD_UID_TABLES[doc] = "Specifies a password file to use for obtaining static user identification (uid) values when the OpenEmbedded build system adds a user to the system during package installation."
  14124. </info>
  14125. <glossdef>
  14126. <para role="glossdeffirst">
  14127. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14128. Specifies a password file to use for obtaining static
  14129. user identification (<filename>uid</filename>) values
  14130. when the OpenEmbedded build system adds a user to the
  14131. system during package installation.
  14132. </para>
  14133. <para>
  14134. When applying static user identification
  14135. (<filename>uid</filename>) values, the OpenEmbedded build
  14136. system looks in
  14137. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>
  14138. for a <filename>files/passwd</filename> file and then applies
  14139. those <filename>uid</filename> values.
  14140. Set the variable as follows in your
  14141. <filename>local.conf</filename> file:
  14142. <literallayout class='monospaced'>
  14143. USERADD_UID_TABLES = "files/passwd"
  14144. </literallayout>
  14145. </para>
  14146. <note>
  14147. Setting the
  14148. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>
  14149. variable to "useradd-staticids" causes the build system
  14150. to use static <filename>uid</filename> values.
  14151. </note>
  14152. </glossdef>
  14153. </glossentry>
  14154. <glossentry id='var-USERADDEXTENSION'><glossterm>USERADDEXTENSION</glossterm>
  14155. <info>
  14156. USERADDEXTENSION[doc] = "When set to "useradd-staticids", causes the OpenEmbedded build system to base all user and group additions on a static passwd and group files found in BBPATH."
  14157. </info>
  14158. <glossdef>
  14159. <para role="glossdeffirst">
  14160. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14161. When set to "useradd-staticids", causes the
  14162. OpenEmbedded build system to base all user and group
  14163. additions on a static
  14164. <filename>passwd</filename> and
  14165. <filename>group</filename> files found in
  14166. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>.
  14167. </para>
  14168. <para>
  14169. To use static user identification (<filename>uid</filename>)
  14170. and group identification (<filename>gid</filename>)
  14171. values, set the variable
  14172. as follows in your <filename>local.conf</filename> file:
  14173. <literallayout class='monospaced'>
  14174. USERADDEXTENSION = "useradd-staticids"
  14175. </literallayout>
  14176. <note>
  14177. Setting this variable to use static
  14178. <filename>uid</filename> and <filename>gid</filename>
  14179. values causes the OpenEmbedded build system to employ
  14180. the
  14181. <link linkend='ref-classes-useradd'><filename>useradd-staticids</filename></link>
  14182. class.
  14183. </note>
  14184. </para>
  14185. <para>
  14186. If you use static <filename>uid</filename> and
  14187. <filename>gid</filename> information, you must also
  14188. specify the <filename>files/passwd</filename> and
  14189. <filename>files/group</filename> files by setting the
  14190. <link linkend='var-USERADD_UID_TABLES'><filename>USERADD_UID_TABLES</filename></link>
  14191. and
  14192. <link linkend='var-USERADD_GID_TABLES'><filename>USERADD_GID_TABLES</filename></link>
  14193. variables.
  14194. Additionally, you should also set the
  14195. <link linkend='var-USERADD_ERROR_DYNAMIC'><filename>USERADD_ERROR_DYNAMIC</filename></link>
  14196. variable.
  14197. </para>
  14198. </glossdef>
  14199. </glossentry>
  14200. </glossdiv>
  14201. <!-- <glossdiv id='var-glossary-v'><title>V</title>-->
  14202. <!-- </glossdiv>-->
  14203. <glossdiv id='var-glossary-w'><title>W</title>
  14204. <glossentry id='var-WARN_QA'><glossterm>WARN_QA</glossterm>
  14205. <info>
  14206. WARN_QA[doc] = "Specifies the quality assurance checks whose failures are reported as warnings by the OpenEmbedded build system."
  14207. </info>
  14208. <glossdef>
  14209. <para role="glossdeffirst">
  14210. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14211. Specifies the quality assurance checks whose failures are
  14212. reported as warnings by the OpenEmbedded build system.
  14213. You set this variable in your distribution configuration
  14214. file.
  14215. For a list of the checks you can control with this variable,
  14216. see the
  14217. "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  14218. section.
  14219. </para>
  14220. </glossdef>
  14221. </glossentry>
  14222. <glossentry id='var-WORKDIR'><glossterm>WORKDIR</glossterm>
  14223. <info>
  14224. WORKDIR[doc] = "The pathname of the working directory in which the OpenEmbedded build system builds a recipe. This directory is located within the TMPDIR directory structure and changes as different packages are built."
  14225. </info>
  14226. <glossdef>
  14227. <para role="glossdeffirst">
  14228. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14229. The pathname of the work directory in which the OpenEmbedded
  14230. build system builds a recipe.
  14231. This directory is located within the
  14232. <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link>
  14233. directory structure and is specific to the recipe being
  14234. built and the system for which it is being built.
  14235. </para>
  14236. <para>
  14237. The <filename>WORKDIR</filename> directory is defined as
  14238. follows:
  14239. <literallayout class='monospaced'>
  14240. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  14241. </literallayout>
  14242. The actual directory depends on several things:
  14243. <itemizedlist>
  14244. <listitem><link linkend='var-TMPDIR'><filename>TMPDIR</filename></link>:
  14245. The top-level build output directory</listitem>
  14246. <listitem><link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>:
  14247. The target system identifier</listitem>
  14248. <listitem><link linkend='var-PN'><filename>PN</filename></link>:
  14249. The recipe name</listitem>
  14250. <listitem><link linkend='var-EXTENDPE'><filename>EXTENDPE</filename></link>:
  14251. The epoch - (if
  14252. <link linkend='var-PE'><filename>PE</filename></link>
  14253. is not specified, which is usually the case for most
  14254. recipes, then <filename>EXTENDPE</filename> is blank)</listitem>
  14255. <listitem><link linkend='var-PV'><filename>PV</filename></link>:
  14256. The recipe version</listitem>
  14257. <listitem><link linkend='var-PR'><filename>PR</filename></link>:
  14258. The recipe revision</listitem>
  14259. </itemizedlist>
  14260. </para>
  14261. <para>
  14262. As an example, assume a Source Directory top-level folder
  14263. name <filename>poky</filename>, a default Build Directory at
  14264. <filename>poky/build</filename>, and a
  14265. <filename>qemux86-poky-linux</filename> machine target
  14266. system.
  14267. Furthermore, suppose your recipe is named
  14268. <filename>foo_1.3.0-r0.bb</filename>.
  14269. In this case, the work directory the build system uses to
  14270. build the package would be as follows:
  14271. <literallayout class='monospaced'>
  14272. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  14273. </literallayout>
  14274. </para>
  14275. </glossdef>
  14276. </glossentry>
  14277. </glossdiv>
  14278. <glossdiv id='var-glossary-x'><title>X</title>
  14279. <glossentry id='var-XSERVER'><glossterm>XSERVER</glossterm>
  14280. <info>
  14281. XSERVER[doc] = "Specifies the packages that should be installed
  14282. to provide an X server and drivers for the current machine."
  14283. </info>
  14284. <glossdef>
  14285. <para role="glossdeffirst">
  14286. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14287. Specifies the packages that should be installed to
  14288. provide an X server and drivers for the current machine,
  14289. assuming your image directly includes
  14290. <filename>packagegroup-core-x11-xserver</filename> or,
  14291. perhaps indirectly, includes "x11-base" in
  14292. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  14293. </para>
  14294. <para>
  14295. The default value of <filename>XSERVER</filename>, if not
  14296. specified in the machine configuration, is
  14297. "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  14298. </para>
  14299. </glossdef>
  14300. </glossentry>
  14301. </glossdiv>
  14302. <!-- <glossdiv id='var-glossary-y'><title>Y</title>-->
  14303. <!-- </glossdiv>-->
  14304. <!-- <glossdiv id='var-glossary-z'><title>Z</title>-->
  14305. <!-- </glossdiv>-->
  14306. </glossary>
  14307. </chapter>
  14308. <!--
  14309. vim: expandtab tw=80 ts=4
  14310. -->