ref-variables.xml 877 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177
  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-GCCPIE'>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-NATIVELSBSTRING'>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-VOLATILE_LOG_DIR'>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 whether to produce an output package even if it is empty."
  66. </info>
  67. <glossdef>
  68. <para role="glossdeffirst">
  69. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  70. Specifies whether to produce an output package even if it is
  71. empty.
  72. By default, BitBake does not produce empty packages.
  73. This default behavior can cause issues when there is an
  74. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link> or
  75. some other hard runtime requirement on the existence of the package.
  76. </para>
  77. <para>
  78. Like all package-controlling variables, you must always use them in
  79. conjunction with a package name override, as in:
  80. <literallayout class='monospaced'>
  81. ALLOW_EMPTY_${PN} = "1"
  82. ALLOW_EMPTY_${PN}-dev = "1"
  83. ALLOW_EMPTY_${PN}-staticdev = "1"
  84. </literallayout>
  85. </para>
  86. </glossdef>
  87. </glossentry>
  88. <glossentry id='var-ALTERNATIVE'><glossterm>ALTERNATIVE</glossterm>
  89. <info>
  90. ALTERNATIVE[doc] = "Lists commands in a package that need an alternative binary naming scheme."
  91. </info>
  92. <glossdef>
  93. <para role="glossdeffirst">
  94. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  95. Lists commands in a package that need an alternative
  96. binary naming scheme.
  97. Sometimes the same command is provided in multiple packages.
  98. When this occurs, the OpenEmbedded build system needs to
  99. use the alternatives system to create a different binary
  100. naming scheme so the commands can co-exist.
  101. </para>
  102. <para>
  103. To use the variable, list out the package's commands
  104. that also exist as part of another package.
  105. For example, if the <filename>busybox</filename> package
  106. has four commands that also exist as part of another
  107. package, you identify them as follows:
  108. <literallayout class='monospaced'>
  109. ALTERNATIVE_busybox = "sh sed test bracket"
  110. </literallayout>
  111. For more information on the alternatives system, see the
  112. "<link linkend='ref-classes-update-alternatives'><filename>update-alternatives.bbclass</filename></link>"
  113. section.
  114. </para>
  115. </glossdef>
  116. </glossentry>
  117. <glossentry id='var-ALTERNATIVE_LINK_NAME'><glossterm>ALTERNATIVE_LINK_NAME</glossterm>
  118. <info>
  119. ALTERNATIVE_LINK_NAME[doc] = "Used by the alternatives system to map duplicated commands to actual locations."
  120. </info>
  121. <glossdef>
  122. <para role="glossdeffirst">
  123. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  124. Used by the alternatives system to map duplicated commands
  125. to actual locations.
  126. For example, if the <filename>bracket</filename> command
  127. provided by the <filename>busybox</filename> package is
  128. duplicated through another package, you must use the
  129. <filename>ALTERNATIVE_LINK_NAME</filename> variable to
  130. specify the actual location:
  131. <literallayout class='monospaced'>
  132. ALTERNATIVE_LINK_NAME[bracket] = "/usr/bin/["
  133. </literallayout>
  134. </para>
  135. <para>
  136. In this example, the binary for the
  137. <filename>bracket</filename> command (i.e.
  138. <filename>[</filename>) from the
  139. <filename>busybox</filename> package resides in
  140. <filename>/usr/bin/</filename>.
  141. <note>
  142. If <filename>ALTERNATIVE_LINK_NAME</filename> is not
  143. defined, it defaults to
  144. <filename>${bindir}/<replaceable>name</replaceable></filename>.
  145. </note>
  146. </para>
  147. <para>
  148. For more information on the alternatives system, see the
  149. "<link linkend='ref-classes-update-alternatives'><filename>update-alternatives.bbclass</filename></link>"
  150. section.
  151. </para>
  152. </glossdef>
  153. </glossentry>
  154. <glossentry id='var-ALTERNATIVE_PRIORITY'><glossterm>ALTERNATIVE_PRIORITY</glossterm>
  155. <info>
  156. ALTERNATIVE_PRIORITY[doc] = "Used by the alternatives system to create default priorities for duplicated commands."
  157. </info>
  158. <glossdef>
  159. <para role="glossdeffirst">
  160. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  161. Used by the alternatives system to create default
  162. priorities for duplicated commands.
  163. You can use the variable to create a single default
  164. regardless of the command name or package, a default for
  165. specific duplicated commands regardless of the package, or
  166. a default for specific commands tied to particular packages.
  167. Here are the available syntax forms:
  168. <literallayout class='monospaced'>
  169. ALTERNATIVE_PRIORITY = "<replaceable>priority</replaceable>"
  170. ALTERNATIVE_PRIORITY[<replaceable>name</replaceable>] = "<replaceable>priority</replaceable>"
  171. ALTERNATIVE_PRIORITY_<replaceable>pkg</replaceable>[<replaceable>name</replaceable>] = "<replaceable>priority</replaceable>"
  172. </literallayout>
  173. </para>
  174. <para>
  175. For more information on the alternatives system, see the
  176. "<link linkend='ref-classes-update-alternatives'><filename>update-alternatives.bbclass</filename></link>"
  177. section.
  178. </para>
  179. </glossdef>
  180. </glossentry>
  181. <glossentry id='var-ALTERNATIVE_TARGET'><glossterm>ALTERNATIVE_TARGET</glossterm>
  182. <info>
  183. ALTERNATIVE_TARGET[doc] = "Used by the alternatives system to create default link locations for duplicated commands."
  184. </info>
  185. <glossdef>
  186. <para role="glossdeffirst">
  187. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  188. Used by the alternatives system to create default link
  189. locations for duplicated commands.
  190. You can use the variable to create a single default
  191. location for all duplicated commands regardless of the
  192. command name or package, a default for
  193. specific duplicated commands regardless of the package, or
  194. a default for specific commands tied to particular packages.
  195. Here are the available syntax forms:
  196. <literallayout class='monospaced'>
  197. ALTERNATIVE_TARGET = "<replaceable>target</replaceable>"
  198. ALTERNATIVE_TARGET[<replaceable>name</replaceable>] = "<replaceable>target</replaceable>"
  199. ALTERNATIVE_TARGET_<replaceable>pkg</replaceable>[<replaceable>name</replaceable>] = "<replaceable>target</replaceable>"
  200. </literallayout>
  201. <note>
  202. <para>
  203. If <filename>ALTERNATIVE_TARGET</filename> is not
  204. defined, it inherits the value from the
  205. <link linkend='var-ALTERNATIVE_LINK_NAME'><filename>ALTERNATIVE_LINK_NAME</filename></link>
  206. variable.
  207. </para>
  208. <para>
  209. If <filename>ALTERNATIVE_LINK_NAME</filename> and
  210. <filename>ALTERNATIVE_TARGET</filename> are the
  211. same, the target for
  212. <filename>ALTERNATIVE_TARGET</filename>
  213. has "<filename>.{BPN}</filename>" appended to it.
  214. </para>
  215. <para>
  216. Finally, if the file referenced has not been
  217. renamed, the alternatives system will rename it to
  218. avoid the need to rename alternative files in the
  219. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  220. task while
  221. retaining support for the command if necessary.
  222. </para>
  223. </note>
  224. </para>
  225. <para>
  226. For more information on the alternatives system, see the
  227. "<link linkend='ref-classes-update-alternatives'><filename>update-alternatives.bbclass</filename></link>"
  228. section.
  229. </para>
  230. </glossdef>
  231. </glossentry>
  232. <glossentry id='var-APPEND'><glossterm>APPEND</glossterm>
  233. <info>
  234. APPEND[doc] = "An override list of append strings for target specified using LABELS."
  235. </info>
  236. <glossdef>
  237. <para role="glossdeffirst">
  238. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  239. An override list of append strings for each target
  240. specified with
  241. <link linkend='var-LABELS'><filename>LABELS</filename></link>.
  242. </para>
  243. <para>
  244. See the
  245. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  246. class for more information on how this variable is used.
  247. </para>
  248. </glossdef>
  249. </glossentry>
  250. <glossentry id='var-AR'><glossterm>AR</glossterm>
  251. <info>
  252. AR[doc] = "Minimal command and arguments to run 'ar'."
  253. </info>
  254. <glossdef>
  255. <para role="glossdeffirst">
  256. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  257. The minimal command and arguments used to run
  258. <filename>ar</filename>.
  259. </para>
  260. </glossdef>
  261. </glossentry>
  262. <glossentry id='var-ARCHIVER_MODE'><glossterm>ARCHIVER_MODE</glossterm>
  263. <info>
  264. ARCHIVER_MODE[doc] = "Controls archive creation used when releasing source files."
  265. </info>
  266. <glossdef>
  267. <para role="glossdeffirst">
  268. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  269. When used with the
  270. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  271. class, determines the type of information used to create
  272. a released archive.
  273. You can use this variable to create archives of patched
  274. source, original source, configured source, and so forth
  275. by employing the following variable flags (varflags):
  276. <literallayout class='monospaced'>
  277. ARCHIVER_MODE[src] = "original" # Uses original (unpacked) source
  278. # files.
  279. ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is
  280. # the default.
  281. ARCHIVER_MODE[src] = "configured" # Uses configured source files.
  282. ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and
  283. # do_patch.
  284. ARCHIVER_MODE[diff-exclude] ?= "<replaceable>file</replaceable> <replaceable>file</replaceable> ..." # Lists files and directories to
  285. # exclude from diff.
  286. ARCHIVER_MODE[dumpdata] = "1" # Uses environment data.
  287. ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files.
  288. ARCHIVER_MODE[srpm] = "1" # Uses RPM package files.
  289. </literallayout>
  290. For information on how the variable works, see the
  291. <filename>meta/classes/archiver.bbclass</filename> file
  292. in the
  293. <link linkend='source-directory'>Source Directory</link>.
  294. </para>
  295. </glossdef>
  296. </glossentry>
  297. <glossentry id='var-AS'><glossterm>AS</glossterm>
  298. <info>
  299. AS[doc] = "Minimal command and arguments to run the assembler."
  300. </info>
  301. <glossdef>
  302. <para role="glossdeffirst">
  303. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  304. The minimal command and arguments used to run the
  305. assembler.
  306. </para>
  307. </glossdef>
  308. </glossentry>
  309. <glossentry id='var-ASSUME_PROVIDED'><glossterm>ASSUME_PROVIDED</glossterm>
  310. <info>
  311. ASSUME_PROVIDED[doc] = "Lists recipe names (PN values) BitBake does not attempt to build."
  312. </info>
  313. <glossdef>
  314. <para role="glossdeffirst">
  315. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  316. Lists recipe names
  317. (<link linkend='var-PN'><filename>PN</filename></link>
  318. values) BitBake does not attempt to build.
  319. Instead, BitBake assumes these recipes have already been
  320. built.
  321. </para>
  322. <para>
  323. In OpenEmbedded-Core, <filename>ASSUME_PROVIDED</filename>
  324. mostly specifies native tools that should not be built.
  325. An example is <filename>git-native</filename>, which when
  326. specified, allows for the Git binary from the host to be
  327. used rather than building <filename>git-native</filename>.
  328. </para>
  329. </glossdef>
  330. </glossentry>
  331. <glossentry id='var-ASSUME_SHLIBS'><glossterm>ASSUME_SHLIBS</glossterm>
  332. <info>
  333. ASSUME_SHLIBS[doc] = Provides additional shlibs provider mapping information, which adds to or overwrites the information provided automatically by the system."
  334. </info>
  335. <glossdef>
  336. <para role="glossdeffirst">
  337. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  338. Provides additional <filename>shlibs</filename> provider
  339. mapping information, which adds to or overwrites the
  340. information provided automatically by the system.
  341. Separate multiple entries using spaces.
  342. </para>
  343. <para>
  344. As an example, use the following form to add an
  345. <filename>shlib</filename> provider of
  346. <replaceable>shlibname</replaceable> in
  347. <replaceable>packagename</replaceable> with the optional
  348. <replaceable>version</replaceable>:
  349. <literallayout class='monospaced'>
  350. <replaceable>shlibname:packagename</replaceable>[_<replaceable>version</replaceable>]
  351. </literallayout>
  352. </para>
  353. <para>
  354. Here is an example that adds a shared library named
  355. <filename>libEGL.so.1</filename> as being provided by
  356. the <filename>libegl-implementation</filename> package:
  357. <literallayout class='monospaced'>
  358. ASSUME_SHLIBS = "libEGL.so.1:libegl-implementation"
  359. </literallayout>
  360. </para>
  361. </glossdef>
  362. </glossentry>
  363. <glossentry id='var-AUTHOR'><glossterm>AUTHOR</glossterm>
  364. <info>
  365. AUTHOR[doc] = "Email address used to contact the original author or authors in order to send patches and forward bugs."
  366. </info>
  367. <glossdef>
  368. <para role="glossdeffirst">
  369. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  370. The email address used to contact the original author
  371. or authors in order to send patches and forward bugs.
  372. </para>
  373. </glossdef>
  374. </glossentry>
  375. <glossentry id='var-AUTO_LIBNAME_PKGS'><glossterm>AUTO_LIBNAME_PKGS</glossterm>
  376. <info>
  377. AUTO_LIBNAME_PKGS[doc] = "Specifies which packages should be checked for libraries and renamed according to Debian library package naming."
  378. </info>
  379. <glossdef>
  380. <para role="glossdeffirst">
  381. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  382. When the
  383. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  384. class is inherited, which is the default behavior,
  385. <filename>AUTO_LIBNAME_PKGS</filename> specifies which
  386. packages should be checked for libraries and renamed
  387. according to Debian library package naming.
  388. </para>
  389. <para>
  390. The default value is "${PACKAGES}", which causes the
  391. debian class to act on all packages that are
  392. explicitly generated by the recipe.
  393. </para>
  394. </glossdef>
  395. </glossentry>
  396. <glossentry id='var-AUTO_SYSLINUXMENU'><glossterm>AUTO_SYSLINUXMENU</glossterm>
  397. <info>
  398. AUTO_SYSLINUXMENU[doc] = "Enables creating an automatic menu for the syslinux bootloader."
  399. </info>
  400. <glossdef>
  401. <para role="glossdeffirst">
  402. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  403. Enables creating an automatic menu for the syslinux
  404. bootloader.
  405. You must set this variable in your recipe.
  406. The
  407. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  408. class checks this variable.
  409. </para>
  410. </glossdef>
  411. </glossentry>
  412. <glossentry id='var-AUTOREV'><glossterm>AUTOREV</glossterm>
  413. <info>
  414. AUTOREV[doc] = "When SRCREV is set to the value of this variable, it specifies to use the latest source revision in the repository."
  415. </info>
  416. <glossdef>
  417. <para role="glossdeffirst">
  418. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  419. When
  420. <filename><link linkend='var-SRCREV'>SRCREV</link></filename>
  421. is set to the value of this variable, it specifies to use
  422. the latest source revision in the repository.
  423. Here is an example:
  424. <literallayout class='monospaced'>
  425. SRCREV = "${AUTOREV}"
  426. </literallayout>
  427. </para>
  428. <para>
  429. If you use the previous statement to retrieve the latest
  430. version of software, you need to be sure
  431. <link linkend='var-PV'><filename>PV</filename></link>
  432. contains
  433. <filename>${</filename><link linkend='var-SRCPV'><filename>SRCPV</filename></link><filename>}</filename>.
  434. For example, suppose you have a kernel recipe that
  435. inherits the
  436. <link linkend='ref-classes-kernel'>kernel</link> class
  437. and you use the previous statement.
  438. In this example, <filename>${SRCPV}</filename> does not
  439. automatically get into <filename>PV</filename>.
  440. Consequently, you need to change <filename>PV</filename>
  441. in your recipe so that it does contain
  442. <filename>${SRCPV}</filename>.
  443. </para>
  444. <para>
  445. For more information see the
  446. "<ulink url='&YOCTO_DOCS_DEV_URL;#automatically-incrementing-a-binary-package-revision-number'>Automatically Incrementing a Binary Package Revision Number</ulink>"
  447. section in the Yocto Project Development Tasks Manual.
  448. </para>
  449. </glossdef>
  450. </glossentry>
  451. <glossentry id='var-AVAILTUNES'><glossterm>AVAILTUNES</glossterm>
  452. <info>
  453. AVAILTUNES[doc] = "The list of defined CPU and Application Binary Interface (ABI) tunings (i.e. "tunes") available for use by the OpenEmbedded build system."
  454. </info>
  455. <glossdef>
  456. <para role="glossdeffirst">
  457. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  458. The list of defined CPU and Application Binary Interface
  459. (ABI) tunings (i.e. "tunes") available for use by the
  460. OpenEmbedded build system.
  461. </para>
  462. <para>
  463. The list simply presents the tunes that are available.
  464. Not all tunes may be compatible with a particular
  465. machine configuration, or with each other in a
  466. <ulink url='&YOCTO_DOCS_DEV_URL;#combining-multiple-versions-library-files-into-one-image'>Multilib</ulink>
  467. configuration.
  468. </para>
  469. <para>
  470. To add a tune to the list, be sure to append it with
  471. spaces using the "+=" BitBake operator.
  472. Do not simply replace the list by using the "=" operator.
  473. See the
  474. "<ulink url='&YOCTO_DOCS_BB_URL;#basic-syntax'>Basic Syntax</ulink>"
  475. section in the BitBake User Manual for more information.
  476. </para>
  477. </glossdef>
  478. </glossentry>
  479. </glossdiv>
  480. <glossdiv id='var-glossary-b'><title>B</title>
  481. <glossentry id='var-B'><glossterm>B</glossterm>
  482. <info>
  483. B[doc] = "The Build Directory. The OpenEmbedded build system places generated objects into the Build Directory during a recipe's build process."
  484. </info>
  485. <glossdef>
  486. <para role="glossdeffirst">
  487. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  488. The directory within the
  489. <link linkend='build-directory'>Build Directory</link>
  490. in which the OpenEmbedded build system places generated
  491. objects during a recipe's build process.
  492. By default, this directory is the same as the <link linkend='var-S'><filename>S</filename></link>
  493. directory, which is defined as:
  494. <literallayout class='monospaced'>
  495. S = "${WORKDIR}/${BP}"
  496. </literallayout>
  497. </para>
  498. <para>
  499. You can separate the (<filename>S</filename>) directory
  500. and the directory pointed to by the <filename>B</filename>
  501. variable.
  502. Most Autotools-based recipes support separating these
  503. directories.
  504. The build system defaults to using separate directories for
  505. <filename>gcc</filename> and some kernel recipes.
  506. </para>
  507. </glossdef>
  508. </glossentry>
  509. <glossentry id='var-BAD_RECOMMENDATIONS'><glossterm>BAD_RECOMMENDATIONS</glossterm>
  510. <info>
  511. 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."
  512. </info>
  513. <glossdef>
  514. <para role="glossdeffirst">
  515. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  516. Lists "recommended-only" packages to not install.
  517. Recommended-only packages are packages installed only
  518. through the
  519. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link>
  520. variable.
  521. You can prevent any of these "recommended" packages from
  522. being installed by listing them with the
  523. <filename>BAD_RECOMMENDATIONS</filename> variable:
  524. <literallayout class='monospaced'>
  525. BAD_RECOMMENDATIONS = "<replaceable>package_name</replaceable> <replaceable>package_name</replaceable> <replaceable>package_name</replaceable> ..."
  526. </literallayout>
  527. </para>
  528. <para>
  529. You can set this variable globally in your
  530. <filename>local.conf</filename> file or you can attach it to
  531. a specific image recipe by using the recipe name override:
  532. <literallayout class='monospaced'>
  533. BAD_RECOMMENDATIONS_pn-<replaceable>target_image</replaceable> = "<replaceable>package_name</replaceable>"
  534. </literallayout>
  535. </para>
  536. <para>
  537. It is important to realize that if you choose to not install
  538. packages using this variable and some other packages are
  539. dependent on them (i.e. listed in a recipe's
  540. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  541. variable), the OpenEmbedded build system ignores your
  542. request and will install the packages to avoid dependency
  543. errors.
  544. </para>
  545. <para>
  546. Support for this variable exists only when using the
  547. IPK and RPM packaging backend.
  548. Support does not exist for DEB.
  549. </para>
  550. <para>
  551. See the
  552. <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link>
  553. and the
  554. <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link>
  555. variables for related information.
  556. </para>
  557. </glossdef>
  558. </glossentry>
  559. <glossentry id='var-BASE_LIB'><glossterm>BASE_LIB</glossterm>
  560. <info>
  561. BASE_LIB[doc] = "The library directory name for the CPU or Application Binary Interface (ABI) tune."
  562. </info>
  563. <glossdef>
  564. <para role="glossdeffirst">
  565. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  566. The library directory name for the CPU or Application
  567. Binary Interface (ABI) tune.
  568. The <filename>BASE_LIB</filename> applies only in the
  569. Multilib context.
  570. See the
  571. "<ulink url='&YOCTO_DOCS_DEV_URL;#combining-multiple-versions-library-files-into-one-image'>Combining Multiple Versions of Library Files into One Image</ulink>"
  572. section in the Yocto Project Development Tasks Manual for
  573. information on Multilib.
  574. </para>
  575. <para>
  576. The <filename>BASE_LIB</filename> variable is defined in
  577. the machine include files in the
  578. <link linkend='source-directory'>Source Directory</link>.
  579. If Multilib is not being used, the value defaults to "lib".
  580. </para>
  581. </glossdef>
  582. </glossentry>
  583. <glossentry id='var-BASE_WORKDIR'><glossterm>BASE_WORKDIR</glossterm>
  584. <info>
  585. BASE_WORKDIR[doc] = "Points to the base of the work directory for all recipes."
  586. </info>
  587. <glossdef>
  588. <para role="glossdeffirst">
  589. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  590. Points to the base of the work directory for all recipes.
  591. The default value is "${TMPDIR}/work".
  592. </para>
  593. </glossdef>
  594. </glossentry>
  595. <glossentry id='var-BB_ALLOWED_NETWORKS'><glossterm>BB_ALLOWED_NETWORKS</glossterm>
  596. <info>
  597. BB_ALLOWED_NETWORKS[doc] = "A list of hosts that the fetcher is allowed to use to obtain the required source code."
  598. </info>
  599. <glossdef>
  600. <para>
  601. Specifies a space-delimited list of hosts that the fetcher
  602. is allowed to use to obtain the required source code.
  603. Following are considerations surrounding this variable:
  604. <itemizedlist>
  605. <listitem><para>
  606. This host list is only used if
  607. <filename>BB_NO_NETWORK</filename> is either not
  608. set or set to "0".
  609. </para></listitem>
  610. <listitem><para>
  611. Limited support for wildcard matching against the
  612. beginning of host names exists.
  613. For example, the following setting matches
  614. <filename>git.gnu.org</filename>,
  615. <filename>ftp.gnu.org</filename>, and
  616. <filename>foo.git.gnu.org</filename>.
  617. <literallayout class='monospaced'>
  618. BB_ALLOWED_NETWORKS = "*.gnu.org"
  619. </literallayout>
  620. <note><title>Important</title>
  621. <para>The use of the "<filename>*</filename>"
  622. character only works at the beginning of
  623. a host name and it must be isolated from
  624. the remainder of the host name.
  625. You cannot use the wildcard character in any
  626. other location of the name or combined with
  627. the front part of the name.</para>
  628. <para>For example,
  629. <filename>*.foo.bar</filename> is supported,
  630. while <filename>*aa.foo.bar</filename> is not.
  631. </para>
  632. </note>
  633. </para></listitem>
  634. <listitem><para>
  635. Mirrors not in the host list are skipped and
  636. logged in debug.
  637. </para></listitem>
  638. <listitem><para>
  639. Attempts to access networks not in the host list
  640. cause a failure.
  641. </para></listitem>
  642. </itemizedlist>
  643. Using <filename>BB_ALLOWED_NETWORKS</filename> in
  644. conjunction with
  645. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  646. is very useful.
  647. Adding the host you want to use to
  648. <filename>PREMIRRORS</filename> results in the source code
  649. being fetched from an allowed location and avoids raising
  650. an error when a host that is not allowed is in a
  651. <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
  652. statement.
  653. This is because the fetcher does not attempt to use the
  654. host listed in <filename>SRC_URI</filename> after a
  655. successful fetch from the
  656. <filename>PREMIRRORS</filename> occurs.
  657. </para>
  658. </glossdef>
  659. </glossentry>
  660. <glossentry id='var-BB_DANGLINGAPPENDS_WARNONLY'><glossterm>BB_DANGLINGAPPENDS_WARNONLY</glossterm>
  661. <info>
  662. BB_DANGLINGAPPENDS_WARNONLY[doc] = "Defines how BitBake handles situations where an append file (.bbappend) has no corresponding recipe file (.bb)."
  663. </info>
  664. <glossdef>
  665. <para role="glossdeffirst">
  666. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  667. Defines how BitBake handles situations where an append
  668. file (<filename>.bbappend</filename>) has no
  669. corresponding recipe file (<filename>.bb</filename>).
  670. This condition often occurs when layers get out of sync
  671. (e.g. <filename>oe-core</filename> bumps a
  672. recipe version and the old recipe no longer exists and the
  673. other layer has not been updated to the new version
  674. of the recipe yet).
  675. </para>
  676. <para>
  677. The default fatal behavior is safest because it is
  678. the sane reaction given something is out of sync.
  679. It is important to realize when your changes are no longer
  680. being applied.
  681. </para>
  682. <para>
  683. You can change the default behavior by setting this
  684. variable to "1", "yes", or "true"
  685. in your <filename>local.conf</filename> file, which is
  686. located in the
  687. <link linkend='build-directory'>Build Directory</link>:
  688. Here is an example:
  689. <literallayout class='monospaced'>
  690. BB_DANGLINGAPPENDS_WARNONLY = "1"
  691. </literallayout>
  692. </para>
  693. </glossdef>
  694. </glossentry>
  695. <glossentry id='var-BB_DISKMON_DIRS'><glossterm>BB_DISKMON_DIRS</glossterm>
  696. <info>
  697. BB_DISKMON_DIRS[doc] = "Monitors disk space and available inodes during the build and allows you to control the build based on these parameters."
  698. </info>
  699. <glossdef>
  700. <para role="glossdeffirst">
  701. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  702. Monitors disk space and available inodes during the build
  703. and allows you to control the build based on these
  704. parameters.
  705. </para>
  706. <para>
  707. Disk space monitoring is disabled by default.
  708. To enable monitoring, add the <filename>BB_DISKMON_DIRS</filename>
  709. variable to your <filename>conf/local.conf</filename> file found in the
  710. <link linkend='build-directory'>Build Directory</link>.
  711. Use the following form:
  712. <literallayout class='monospaced'>
  713. BB_DISKMON_DIRS = "<replaceable>action</replaceable>,<replaceable>dir</replaceable>,<replaceable>threshold</replaceable> [...]"
  714. where:
  715. <replaceable>action</replaceable> is:
  716. ABORT: Immediately abort the build when
  717. a threshold is broken.
  718. STOPTASKS: Stop the build after the currently
  719. executing tasks have finished when
  720. a threshold is broken.
  721. WARN: Issue a warning but continue the
  722. build when a threshold is broken.
  723. Subsequent warnings are issued as
  724. defined by the BB_DISKMON_WARNINTERVAL
  725. variable, which must be defined in
  726. the conf/local.conf file.
  727. <replaceable>dir</replaceable> is:
  728. Any directory you choose. You can specify one or
  729. more directories to monitor by separating the
  730. groupings with a space. If two directories are
  731. on the same device, only the first directory
  732. is monitored.
  733. <replaceable>threshold</replaceable> is:
  734. Either the minimum available disk space,
  735. the minimum number of free inodes, or
  736. both. You must specify at least one. To
  737. omit one or the other, simply omit the value.
  738. Specify the threshold using G, M, K for Gbytes,
  739. Mbytes, and Kbytes, respectively. If you do
  740. not specify G, M, or K, Kbytes is assumed by
  741. default. Do not use GB, MB, or KB.
  742. </literallayout>
  743. </para>
  744. <para>
  745. Here are some examples:
  746. <literallayout class='monospaced'>
  747. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  748. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  749. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  750. </literallayout>
  751. The first example works only if you also provide
  752. the <link linkend='var-BB_DISKMON_WARNINTERVAL'><filename>BB_DISKMON_WARNINTERVAL</filename></link> variable
  753. in the <filename>conf/local.conf</filename>.
  754. This example causes the build system to immediately
  755. abort when either the disk space in <filename>${TMPDIR}</filename> drops
  756. below 1 Gbyte or the available free inodes drops below
  757. 100 Kbytes.
  758. Because two directories are provided with the variable, the
  759. build system also issue a
  760. warning when the disk space in the
  761. <filename>${SSTATE_DIR}</filename> directory drops
  762. below 1 Gbyte or the number of free inodes drops
  763. below 100 Kbytes.
  764. Subsequent warnings are issued during intervals as
  765. defined by the <filename>BB_DISKMON_WARNINTERVAL</filename>
  766. variable.
  767. </para>
  768. <para>
  769. The second example stops the build after all currently
  770. executing tasks complete when the minimum disk space
  771. in the <filename>${<link linkend='var-TMPDIR'>TMPDIR</link>}</filename>
  772. directory drops below 1 Gbyte.
  773. No disk monitoring occurs for the free inodes in this case.
  774. </para>
  775. <para>
  776. The final example immediately aborts the build when the
  777. number of free inodes in the <filename>${TMPDIR}</filename> directory
  778. drops below 100 Kbytes.
  779. No disk space monitoring for the directory itself occurs
  780. in this case.
  781. </para>
  782. </glossdef>
  783. </glossentry>
  784. <glossentry id='var-BB_DISKMON_WARNINTERVAL'><glossterm>BB_DISKMON_WARNINTERVAL</glossterm>
  785. <info>
  786. 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."
  787. </info>
  788. <glossdef>
  789. <para role="glossdeffirst">
  790. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  791. Defines the disk space and free inode warning intervals.
  792. To set these intervals, define the variable in your
  793. <filename>conf/local.conf</filename> file in the
  794. <link linkend='build-directory'>Build Directory</link>.
  795. </para>
  796. <para>
  797. If you are going to use the
  798. <filename>BB_DISKMON_WARNINTERVAL</filename> variable, you must
  799. also use the
  800. <link linkend='var-BB_DISKMON_DIRS'><filename>BB_DISKMON_DIRS</filename></link> variable
  801. and define its action as "WARN".
  802. During the build, subsequent warnings are issued each time
  803. disk space or number of free inodes further reduces by
  804. the respective interval.
  805. </para>
  806. <para>
  807. If you do not provide a <filename>BB_DISKMON_WARNINTERVAL</filename>
  808. variable and you do use <filename>BB_DISKMON_DIRS</filename> with
  809. the "WARN" action, the disk monitoring interval defaults to
  810. the following:
  811. <literallayout class='monospaced'>
  812. BB_DISKMON_WARNINTERVAL = "50M,5K"
  813. </literallayout>
  814. </para>
  815. <para>
  816. When specifying the variable in your configuration file,
  817. use the following form:
  818. <literallayout class='monospaced'>
  819. BB_DISKMON_WARNINTERVAL = "<replaceable>disk_space_interval</replaceable>,<replaceable>disk_inode_interval</replaceable>"
  820. where:
  821. <replaceable>disk_space_interval</replaceable> is:
  822. An interval of memory expressed in either
  823. G, M, or K for Gbytes, Mbytes, or Kbytes,
  824. respectively. You cannot use GB, MB, or KB.
  825. <replaceable>disk_inode_interval</replaceable> is:
  826. An interval of free inodes expressed in either
  827. G, M, or K for Gbytes, Mbytes, or Kbytes,
  828. respectively. You cannot use GB, MB, or KB.
  829. </literallayout>
  830. </para>
  831. <para>
  832. Here is an example:
  833. <literallayout class='monospaced'>
  834. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  835. BB_DISKMON_WARNINTERVAL = "50M,5K"
  836. </literallayout>
  837. These variables cause the OpenEmbedded build system to
  838. issue subsequent warnings each time the available
  839. disk space further reduces by 50 Mbytes or the number
  840. of free inodes further reduces by 5 Kbytes in the
  841. <filename>${SSTATE_DIR}</filename> directory.
  842. Subsequent warnings based on the interval occur each time
  843. a respective interval is reached beyond the initial warning
  844. (i.e. 1 Gbytes and 100 Kbytes).
  845. </para>
  846. </glossdef>
  847. </glossentry>
  848. <glossentry id='var-BB_GENERATE_MIRROR_TARBALLS'><glossterm>BB_GENERATE_MIRROR_TARBALLS</glossterm>
  849. <info>
  850. BB_GENERATE_MIRROR_TARBALLS[doc] = "Causes tarballs of the Git repositories to be placed in the DL_DIR directory."
  851. </info>
  852. <glossdef>
  853. <para role="glossdeffirst">
  854. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  855. Causes tarballs of the Git repositories, including the
  856. Git metadata, to be placed in the
  857. <link linkend='var-DL_DIR'><filename>DL_DIR</filename></link>
  858. directory.
  859. </para>
  860. <para>
  861. For performance reasons, creating and placing tarballs of
  862. the Git repositories is not the default action by the
  863. OpenEmbedded build system.
  864. <literallayout class='monospaced'>
  865. BB_GENERATE_MIRROR_TARBALLS = "1"
  866. </literallayout>
  867. Set this variable in your <filename>local.conf</filename>
  868. file in the
  869. <link linkend='build-directory'>Build Directory</link>.
  870. </para>
  871. </glossdef>
  872. </glossentry>
  873. <glossentry id='var-BB_NUMBER_THREADS'><glossterm>BB_NUMBER_THREADS</glossterm>
  874. <info>
  875. 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."
  876. </info>
  877. <glossdef>
  878. <para role="glossdeffirst">
  879. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  880. The maximum number of tasks BitBake should run in parallel
  881. at any one time.
  882. The OpenEmbedded build system automatically configures
  883. this variable to be equal to the number of cores on the
  884. build system.
  885. For example, a system with a dual core processor that
  886. also uses hyper-threading causes the
  887. <filename>BB_NUMBER_THREADS</filename> variable to default
  888. to "4".
  889. </para>
  890. <para>
  891. For single socket systems (i.e. one CPU), you should not
  892. have to override this variable to gain optimal parallelism
  893. during builds.
  894. However, if you have very large systems that employ
  895. multiple physical CPUs, you might want to make sure the
  896. <filename>BB_NUMBER_THREADS</filename> variable is not
  897. set higher than "20".
  898. </para>
  899. <para>
  900. For more information on speeding up builds, see the
  901. "<ulink url='&YOCTO_DOCS_DEV_URL;#speeding-up-a-build'>Speeding Up a Build</ulink>"
  902. section in the Yocto Project Development Tasks Manual.
  903. </para>
  904. </glossdef>
  905. </glossentry>
  906. <glossentry id='var-BB_SERVER_TIMEOUT'><glossterm>BB_SERVER_TIMEOUT</glossterm>
  907. <info>
  908. BB_SERVER_TIMEOUT [doc] = "Specifies the time (in seconds) after which to unload the BitBake server due to inactivity."
  909. </info>
  910. <glossdef>
  911. <para role="glossdeffirst">
  912. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  913. Specifies the time (in seconds) after which to unload the
  914. BitBake server due to inactivity.
  915. Set <filename>BB_SERVER_TIMEOUT</filename> to determine how
  916. long the BitBake server stays resident between invocations.
  917. </para>
  918. <para>
  919. For example, the following statement in your
  920. <filename>local.conf</filename> file instructs the server
  921. to be unloaded after 20 seconds of inactivity:
  922. <literallayout class='monospaced'>
  923. BB_SERVER_TIMEOUT = "20"
  924. </literallayout>
  925. If you want the server to never be unloaded, set
  926. <filename>BB_SERVER_TIMEOUT</filename> to "-1".
  927. </para>
  928. </glossdef>
  929. </glossentry>
  930. <glossentry id='var-BBCLASSEXTEND'><glossterm>BBCLASSEXTEND</glossterm>
  931. <info>
  932. 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."
  933. </info>
  934. <glossdef>
  935. <para role="glossdeffirst">
  936. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  937. Allows you to extend a recipe so that it builds variants of the software.
  938. Common variants for recipes exist such as "natives" like <filename>quilt-native</filename>,
  939. which is a copy of Quilt built to run on the build system;
  940. "crosses" such as <filename>gcc-cross</filename>,
  941. which is a compiler built to run on the build machine but produces binaries
  942. that run on the target <link linkend='var-MACHINE'><filename>MACHINE</filename></link>;
  943. "nativesdk", which targets the SDK machine instead of <filename>MACHINE</filename>;
  944. and "mulitlibs" in the form "<filename>multilib:</filename><replaceable>multilib_name</replaceable>".
  945. </para>
  946. <para>
  947. To build a different variant of the recipe with a minimal amount of code, it usually
  948. is as simple as adding the following to your recipe:
  949. <literallayout class='monospaced'>
  950. BBCLASSEXTEND =+ "native nativesdk"
  951. BBCLASSEXTEND =+ "multilib:<replaceable>multilib_name</replaceable>"
  952. </literallayout>
  953. <note>
  954. <para>
  955. Internally, the <filename>BBCLASSEXTEND</filename>
  956. mechanism generates recipe variants by rewriting
  957. variable values and applying overrides such as
  958. <filename>_class-native</filename>.
  959. For example, to generate a native version of a recipe,
  960. a
  961. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  962. on "foo" is rewritten to a <filename>DEPENDS</filename>
  963. on "foo-native".
  964. </para>
  965. <para>
  966. Even when using <filename>BBCLASSEXTEND</filename>, the
  967. recipe is only parsed once.
  968. Parsing once adds some limitations.
  969. For example, it is not possible to
  970. include a different file depending on the variant,
  971. since <filename>include</filename> statements are
  972. processed when the recipe is parsed.
  973. </para>
  974. </note>
  975. </para>
  976. </glossdef>
  977. </glossentry>
  978. <glossentry id='var-BBFILE_COLLECTIONS'><glossterm>BBFILE_COLLECTIONS</glossterm>
  979. <info>
  980. BBFILE_COLLECTIONS[doc] = "Lists the names of configured layers. These names are used to find the other BBFILE_* variables."
  981. </info>
  982. <glossdef>
  983. <para role="glossdeffirst">
  984. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  985. Lists the names of configured layers.
  986. These names are used to find the other <filename>BBFILE_*</filename>
  987. variables.
  988. Typically, each layer will append its name to this variable in its
  989. <filename>conf/layer.conf</filename> file.
  990. </para>
  991. </glossdef>
  992. </glossentry>
  993. <glossentry id='var-BBFILE_PATTERN'><glossterm>BBFILE_PATTERN</glossterm>
  994. <info>
  995. 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."
  996. </info>
  997. <glossdef>
  998. <para role="glossdeffirst">
  999. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1000. Variable that expands to match files from
  1001. <link linkend='var-BBFILES'><filename>BBFILES</filename></link>
  1002. in a particular layer.
  1003. This variable is used in the <filename>conf/layer.conf</filename> file and must
  1004. be suffixed with the name of the specific layer (e.g.
  1005. <filename>BBFILE_PATTERN_emenlow</filename>).
  1006. </para>
  1007. </glossdef>
  1008. </glossentry>
  1009. <glossentry id='var-BBFILE_PRIORITY'><glossterm>BBFILE_PRIORITY</glossterm>
  1010. <info>
  1011. 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."
  1012. </info>
  1013. <glossdef>
  1014. <para role="glossdeffirst">
  1015. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1016. Assigns the priority for recipe files in each layer.
  1017. </para>
  1018. <para>
  1019. This variable is useful in situations where the same recipe appears in
  1020. more than one layer.
  1021. Setting this variable allows you to prioritize a
  1022. layer against other layers that contain the same recipe - effectively
  1023. letting you control the precedence for the multiple layers.
  1024. The precedence established through this variable stands regardless of a
  1025. recipe's version
  1026. (<link linkend='var-PV'><filename>PV</filename></link> variable).
  1027. For example, a layer that has a recipe with a higher <filename>PV</filename> value but for
  1028. which the <filename>BBFILE_PRIORITY</filename> is set to have a lower precedence still has a
  1029. lower precedence.
  1030. </para>
  1031. <para>
  1032. A larger value for the <filename>BBFILE_PRIORITY</filename> variable results in a higher
  1033. precedence.
  1034. For example, the value 6 has a higher precedence than the value 5.
  1035. If not specified, the <filename>BBFILE_PRIORITY</filename> variable is set based on layer
  1036. dependencies (see the
  1037. <filename><link linkend='var-LAYERDEPENDS'>LAYERDEPENDS</link></filename> variable for
  1038. more information.
  1039. The default priority, if unspecified
  1040. for a layer with no dependencies, is the lowest defined priority + 1
  1041. (or 1 if no priorities are defined).
  1042. </para>
  1043. <tip>
  1044. You can use the command <filename>bitbake-layers show-layers</filename> to list
  1045. all configured layers along with their priorities.
  1046. </tip>
  1047. </glossdef>
  1048. </glossentry>
  1049. <glossentry id='var-BBFILES'><glossterm>BBFILES</glossterm>
  1050. <info>
  1051. BBFILES[doc] = "A space-separated list of recipe files BitBake uses to build software."
  1052. </info>
  1053. <glossdef>
  1054. <para role="glossdeffirst">
  1055. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1056. A space-separated list of recipe files BitBake uses to
  1057. build software.
  1058. </para>
  1059. <para>
  1060. When specifying recipe files, you can pattern match using
  1061. Python's
  1062. <ulink url='https://docs.python.org/3/library/glob.html'><filename>glob</filename></ulink>
  1063. syntax.
  1064. For details on the syntax, see the documentation by
  1065. following the previous link.
  1066. </para>
  1067. </glossdef>
  1068. </glossentry>
  1069. <glossentry id='var-BBFILES_DYNAMIC'><glossterm>BBFILES_DYNAMIC</glossterm>
  1070. <info>
  1071. BBFILES_DYNAMIC[doc] = "Activates content when identified layers are present."
  1072. </info>
  1073. <glossdef>
  1074. <para role="glossdeffirst">
  1075. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1076. Activates content when identified layers are present.
  1077. You identify the layers by the collections that the layers
  1078. define.
  1079. </para>
  1080. <para>
  1081. Use the <filename>BBFILES_DYNAMIC</filename> variable to
  1082. avoid <filename>.bbappend</filename> files whose
  1083. corresponding <filename>.bb</filename> file is in a layer
  1084. that attempts to modify other layers through
  1085. <filename>.bbappend</filename> but does not want to
  1086. introduce a hard dependency on those other layers.
  1087. </para>
  1088. <para>
  1089. Use the following form for
  1090. <filename>BBFILES_DYNAMIC</filename>:
  1091. <literallayout class='monospaced'>
  1092. <replaceable>collection_name</replaceable>:<replaceable>filename_pattern</replaceable>
  1093. </literallayout>
  1094. The following example identifies two collection names and
  1095. two filename patterns:
  1096. <literallayout class='monospaced'>
  1097. BBFILES_DYNAMIC += " \
  1098. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  1099. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  1100. "
  1101. </literallayout>
  1102. This next example shows an error message that occurs
  1103. because invalid entries are found, which cause parsing to
  1104. abort:
  1105. <literallayout class='monospaced'>
  1106. ERROR: BBFILES_DYNAMIC entries must be of the form &lt;collection name&gt;:&lt;filename pattern&gt;, not:
  1107. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  1108. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  1109. </literallayout>
  1110. </para>
  1111. </glossdef>
  1112. </glossentry>
  1113. <glossentry id='var-BBINCLUDELOGS'><glossterm>BBINCLUDELOGS</glossterm>
  1114. <info>
  1115. BBINCLUDELOGS[doc] = "Variable that controls how BitBake displays logs on build failure."
  1116. </info>
  1117. <glossdef>
  1118. <para role="glossdeffirst">
  1119. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1120. Variable that controls how BitBake displays logs on build failure.
  1121. </para>
  1122. </glossdef>
  1123. </glossentry>
  1124. <glossentry id='var-BBINCLUDELOGS_LINES'><glossterm>BBINCLUDELOGS_LINES</glossterm>
  1125. <info>
  1126. BBINCLUDELOGS_LINES[doc] = "Amount of log lines printed on failure."
  1127. </info>
  1128. <glossdef>
  1129. <para role="glossdeffirst">
  1130. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1131. If
  1132. <link linkend='var-BBINCLUDELOGS'><filename>BBINCLUDELOGS</filename></link>
  1133. is set, specifies the maximum number of lines from the
  1134. task log file to print when reporting a failed task.
  1135. If you do not set <filename>BBINCLUDELOGS_LINES</filename>,
  1136. the entire log is printed.
  1137. </para>
  1138. </glossdef>
  1139. </glossentry>
  1140. <glossentry id='var-BBLAYERS'><glossterm>BBLAYERS</glossterm>
  1141. <info>
  1142. BBLAYERS[doc] = "Lists the layers to enable during the build. This variable is defined in the bblayers.conf configuration file."
  1143. </info>
  1144. <glossdef>
  1145. <para role="glossdeffirst">
  1146. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1147. Lists the layers to enable during the build.
  1148. This variable is defined in the <filename>bblayers.conf</filename> configuration
  1149. file in the
  1150. <link linkend='build-directory'>Build Directory</link>.
  1151. Here is an example:
  1152. <literallayout class='monospaced'>
  1153. BBLAYERS = " \
  1154. /home/scottrif/poky/meta \
  1155. /home/scottrif/poky/meta-poky \
  1156. /home/scottrif/poky/meta-yocto-bsp \
  1157. /home/scottrif/poky/meta-mykernel \
  1158. "
  1159. </literallayout>
  1160. </para>
  1161. <para>
  1162. This example enables four layers, one of which is a custom, user-defined layer
  1163. named <filename>meta-mykernel</filename>.
  1164. </para>
  1165. </glossdef>
  1166. </glossentry>
  1167. <glossentry id='var-BBMASK'><glossterm>BBMASK</glossterm>
  1168. <info>
  1169. BBMASK[doc] = "Prevents BitBake from processing specific recipes or recipe append files."
  1170. </info>
  1171. <glossdef>
  1172. <para role="glossdeffirst">
  1173. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1174. Prevents BitBake from processing recipes and recipe
  1175. append files.
  1176. </para>
  1177. <para>
  1178. You can use the <filename>BBMASK</filename> variable
  1179. to "hide" these <filename>.bb</filename> and
  1180. <filename>.bbappend</filename> files.
  1181. BitBake ignores any recipe or recipe append files that
  1182. match any of the expressions.
  1183. It is as if BitBake does not see them at all.
  1184. Consequently, matching files are not parsed or otherwise
  1185. used by BitBake.
  1186. </para>
  1187. <para>
  1188. The values you provide are passed to Python's regular
  1189. expression compiler.
  1190. Consequently, the syntax follows Python's Regular
  1191. Expression (re) syntax.
  1192. The expressions are compared against the full paths to
  1193. the files.
  1194. For complete syntax information, see Python's
  1195. documentation at
  1196. <ulink url='http://docs.python.org/3/library/re.html#re'></ulink>.
  1197. </para>
  1198. <para>
  1199. The following example uses a complete regular expression
  1200. to tell BitBake to ignore all recipe and recipe append
  1201. files in the <filename>meta-ti/recipes-misc/</filename>
  1202. directory:
  1203. <literallayout class='monospaced'>
  1204. BBMASK = "meta-ti/recipes-misc/"
  1205. </literallayout>
  1206. If you want to mask out multiple directories or recipes,
  1207. you can specify multiple regular expression fragments.
  1208. This next example masks out multiple directories and
  1209. individual recipes:
  1210. <literallayout class='monospaced'>
  1211. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  1212. BBMASK += "/meta-oe/recipes-support/"
  1213. BBMASK += "/meta-foo/.*/openldap"
  1214. BBMASK += "opencv.*\.bbappend"
  1215. BBMASK += "lzma"
  1216. </literallayout>
  1217. <note>
  1218. When specifying a directory name, use the trailing
  1219. slash character to ensure you match just that directory
  1220. name.
  1221. </note>
  1222. </para>
  1223. </glossdef>
  1224. </glossentry>
  1225. <glossentry id='var-BBMULTICONFIG'><glossterm>BBMULTICONFIG</glossterm>
  1226. <info>
  1227. BBMULTICONFIG[doc] = "Specifies each separate configuration when you are building targets with multiple configurations."
  1228. </info>
  1229. <glossdef>
  1230. <para role="glossdeffirst">
  1231. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1232. Specifies each separate configuration when you are
  1233. building targets with multiple configurations.
  1234. Use this variable in your
  1235. <filename>conf/local.conf</filename> configuration file.
  1236. Specify a <replaceable>multiconfigname</replaceable> for
  1237. each configuration file you are using.
  1238. For example, the following line specifies three
  1239. configuration files:
  1240. <literallayout class='monospaced'>
  1241. BBMULTICONFIG = "configA configB configC"
  1242. </literallayout>
  1243. Each configuration file you use must reside in the
  1244. <link linkend='build-directory'>Build Directory</link>
  1245. <filename>conf/multiconfig</filename> directory
  1246. (e.g.
  1247. <replaceable>build_directory</replaceable><filename>/conf/multiconfig/configA.conf</filename>).
  1248. </para>
  1249. <para>
  1250. For information on how to use
  1251. <filename>BBMULTICONFIG</filename> in an environment that
  1252. supports building targets with multiple configurations,
  1253. see the
  1254. "<ulink url='&YOCTO_DOCS_DEV_URL;#dev-building-images-for-multiple-targets-using-multiple-configurations'>Building Images for Multiple Targets Using Multiple Configurations</ulink>"
  1255. section in the Yocto Project Development Tasks Manual.
  1256. </para>
  1257. </glossdef>
  1258. </glossentry>
  1259. <glossentry id='var-BBPATH'><glossterm>BBPATH</glossterm>
  1260. <info>
  1261. BBPATH[doc] = "Used by BitBake to locate .bbclass and configuration files. This variable is analogous to the PATH variable."
  1262. </info>
  1263. <glossdef>
  1264. <para role="glossdeffirst">
  1265. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1266. Used by BitBake to locate
  1267. <filename>.bbclass</filename> and configuration files.
  1268. This variable is analogous to the
  1269. <filename>PATH</filename> variable.
  1270. <note>
  1271. If you run BitBake from a directory outside of the
  1272. <link linkend='build-directory'>Build Directory</link>,
  1273. you must be sure to set
  1274. <filename>BBPATH</filename> to point to the
  1275. Build Directory.
  1276. Set the variable as you would any environment variable
  1277. and then run BitBake:
  1278. <literallayout class='monospaced'>
  1279. $ BBPATH = "<replaceable>build_directory</replaceable>"
  1280. $ export BBPATH
  1281. $ bitbake <replaceable>target</replaceable>
  1282. </literallayout>
  1283. </note>
  1284. </para>
  1285. </glossdef>
  1286. </glossentry>
  1287. <glossentry id='var-BBSERVER'><glossterm>BBSERVER</glossterm>
  1288. <info>
  1289. BBSERVER[doc] = "Points to the BitBake remote server."
  1290. </info>
  1291. <glossdef>
  1292. <para role="glossdeffirst">
  1293. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1294. If defined in the BitBake environment,
  1295. <filename>BBSERVER</filename> points to the BitBake
  1296. remote server.
  1297. </para>
  1298. <para>
  1299. Use the following format to export the variable to the
  1300. BitBake environment:
  1301. <literallayout class='monospaced'>
  1302. export BBSERVER=localhost:$port"
  1303. </literallayout>
  1304. </para>
  1305. <para>
  1306. By default, <filename>BBSERVER</filename> also appears in
  1307. <ulink url='&YOCTO_DOCS_BB_URL;#var-BB_HASHBASE_WHITELIST'><filename>BB_HASHBASE_WHITELIST</filename></ulink>.
  1308. Consequently, <filename>BBSERVER</filename> is excluded
  1309. from checksum and dependency data.
  1310. </para>
  1311. </glossdef>
  1312. </glossentry>
  1313. <glossentry id='var-BINCONFIG'><glossterm>BINCONFIG</glossterm>
  1314. <info>
  1315. 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."
  1316. </info>
  1317. <glossdef>
  1318. <para role="glossdeffirst">
  1319. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1320. When inheriting the
  1321. <link linkend='ref-classes-binconfig-disabled'><filename>binconfig-disabled</filename></link>
  1322. class, this variable specifies binary configuration
  1323. scripts to disable in favor of using
  1324. <filename>pkg-config</filename> to query the information.
  1325. The <filename>binconfig-disabled</filename> class will
  1326. modify the specified scripts to return an error so that
  1327. calls to them can be easily found and replaced.
  1328. </para>
  1329. <para>
  1330. To add multiple scripts, separate them by spaces.
  1331. Here is an example from the <filename>libpng</filename>
  1332. recipe:
  1333. <literallayout class='monospaced'>
  1334. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  1335. </literallayout>
  1336. </para>
  1337. </glossdef>
  1338. </glossentry>
  1339. <glossentry id='var-BINCONFIG_GLOB'><glossterm>BINCONFIG_GLOB</glossterm>
  1340. <info>
  1341. BINCONFIG_GLOB[doc] = "When inheriting binconfig.bbclass from a recipe, this variable specifies a wildcard for configuration scripts that need editing."
  1342. </info>
  1343. <glossdef>
  1344. <para role="glossdeffirst">
  1345. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1346. When inheriting the
  1347. <link linkend='ref-classes-binconfig'><filename>binconfig</filename></link>
  1348. class, this variable specifies a wildcard for
  1349. configuration scripts that need editing.
  1350. The scripts are edited to correct any paths that have been
  1351. set up during compilation so that they are correct for
  1352. use when installed into the sysroot and called by the
  1353. build processes of other recipes.
  1354. <note>
  1355. The <filename>BINCONFIG_GLOB</filename> variable
  1356. uses
  1357. <ulink url='http://tldp.org/LDP/abs/html/globbingref.html'>shell globbing</ulink>,
  1358. which is recognition and expansion of wildcards during
  1359. pattern matching.
  1360. Shell globbing is very similar to
  1361. <ulink url='https://docs.python.org/2/library/fnmatch.html#module-fnmatch'><filename>fnmatch</filename></ulink>
  1362. and
  1363. <ulink url='https://docs.python.org/2/library/glob.html'><filename>glob</filename></ulink>.
  1364. </note>
  1365. </para>
  1366. <para>
  1367. For more information on how this variable works, see
  1368. <filename>meta/classes/binconfig.bbclass</filename> in the
  1369. <link linkend='source-directory'>Source Directory</link>.
  1370. You can also find general information on the class in the
  1371. "<link linkend='ref-classes-binconfig'><filename>binconfig.bbclass</filename></link>"
  1372. section.
  1373. </para>
  1374. </glossdef>
  1375. </glossentry>
  1376. <glossentry id='var-BP'><glossterm>BP</glossterm>
  1377. <info>
  1378. 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}"
  1379. </info>
  1380. <glossdef>
  1381. <para role="glossdeffirst">
  1382. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1383. The base recipe name and version but without any special
  1384. recipe name suffix (i.e. <filename>-native</filename>, <filename>lib64-</filename>,
  1385. and so forth).
  1386. <filename>BP</filename> is comprised of the following:
  1387. <literallayout class="monospaced">
  1388. ${BPN}-${PV}
  1389. </literallayout>
  1390. </para>
  1391. </glossdef>
  1392. </glossentry>
  1393. <glossentry id='var-BPN'><glossterm>BPN</glossterm>
  1394. <info>
  1395. BPN[doc] = "This variable is a version of the PN variable but removes common suffixes and prefixes."
  1396. </info>
  1397. <glossdef>
  1398. <para role="glossdeffirst">
  1399. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1400. This variable is a version of the
  1401. <link linkend='var-PN'><filename>PN</filename></link>
  1402. variable with common prefixes and suffixes
  1403. removed, such as <filename>nativesdk-</filename>,
  1404. <filename>-cross</filename>,
  1405. <filename>-native</filename>, and multilib's
  1406. <filename>lib64-</filename> and
  1407. <filename>lib32-</filename>.
  1408. The exact lists of prefixes and suffixes removed are
  1409. specified by the
  1410. <link linkend='var-MLPREFIX'><filename>MLPREFIX</filename></link>
  1411. and
  1412. <link linkend='var-SPECIAL_PKGSUFFIX'><filename>SPECIAL_PKGSUFFIX</filename></link>
  1413. variables, respectively.
  1414. </para>
  1415. </glossdef>
  1416. </glossentry>
  1417. <glossentry id='var-BUGTRACKER'><glossterm>BUGTRACKER</glossterm>
  1418. <info>
  1419. BUGTRACKER[doc] = "Specifies a URL for an upstream bug tracking website for a recipe."
  1420. </info>
  1421. <glossdef>
  1422. <para role="glossdeffirst">
  1423. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1424. Specifies a URL for an upstream bug tracking website for
  1425. a recipe.
  1426. The OpenEmbedded build system does not use this variable.
  1427. Rather, the variable is a useful pointer in case a bug
  1428. in the software being built needs to be manually reported.
  1429. </para>
  1430. </glossdef>
  1431. </glossentry>
  1432. <glossentry id='var-BUILD_ARCH'><glossterm>BUILD_ARCH</glossterm>
  1433. <info>
  1434. BUILD_ARCH[doc] = "The name of the building architecture (e.g. i686)."
  1435. </info>
  1436. <glossdef>
  1437. <para role="glossdeffirst">
  1438. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1439. Specifies the architecture of the build host
  1440. (e.g. <filename>i686</filename>).
  1441. The OpenEmbedded build system sets the value of
  1442. <filename>BUILD_ARCH</filename> from the machine name
  1443. reported by the <filename>uname</filename> command.
  1444. </para>
  1445. </glossdef>
  1446. </glossentry>
  1447. <glossentry id='var-BUILD_AS_ARCH'><glossterm>BUILD_AS_ARCH</glossterm>
  1448. <info>
  1449. BUILD_AS_ARCH[doc] = "Specifies the architecture-specific assembler flags for the build host."
  1450. </info>
  1451. <glossdef>
  1452. <para role="glossdeffirst">
  1453. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1454. Specifies the architecture-specific assembler flags for
  1455. the build host. By default, the value of
  1456. <filename>BUILD_AS_ARCH</filename> is empty.
  1457. </para>
  1458. </glossdef>
  1459. </glossentry>
  1460. <glossentry id='var-BUILD_CC_ARCH'><glossterm>BUILD_CC_ARCH</glossterm>
  1461. <info>
  1462. BUILD_CC_ARCH[doc] = "Specifies the architecture-specific C compiler flags for the build host."
  1463. </info>
  1464. <glossdef>
  1465. <para role="glossdeffirst">
  1466. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1467. Specifies the architecture-specific C compiler flags for
  1468. the build host. By default, the value of
  1469. <filename>BUILD_CC_ARCH</filename> is empty.
  1470. </para>
  1471. </glossdef>
  1472. </glossentry>
  1473. <glossentry id='var-BUILD_CCLD'><glossterm>BUILD_CCLD</glossterm>
  1474. <info>
  1475. BUILD_CCLD[doc] = "Specifies the linker command to be used for the build host when the C compiler is being used as the linker."
  1476. </info>
  1477. <glossdef>
  1478. <para role="glossdeffirst">
  1479. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1480. Specifies the linker command to be used for the build host
  1481. when the C compiler is being used as the linker. By default,
  1482. <filename>BUILD_CCLD</filename> points to GCC and passes as
  1483. arguments the value of
  1484. <link linkend='var-BUILD_CC_ARCH'><filename>BUILD_CC_ARCH</filename></link>,
  1485. assuming <filename>BUILD_CC_ARCH</filename> is set.
  1486. </para>
  1487. </glossdef>
  1488. </glossentry>
  1489. <glossentry id='var-BUILD_CFLAGS'><glossterm>BUILD_CFLAGS</glossterm>
  1490. <info>
  1491. BUILD_CFLAGS[doc] = "Specifies the flags to pass to the C compiler when building for the build host."
  1492. </info>
  1493. <glossdef>
  1494. <para role="glossdeffirst">
  1495. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1496. Specifies the flags to pass to the C compiler when building
  1497. for the build host.
  1498. When building in the <filename>-native</filename> context,
  1499. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  1500. is set to the value of this variable by default.
  1501. </para>
  1502. </glossdef>
  1503. </glossentry>
  1504. <glossentry id='var-BUILD_CPPFLAGS'><glossterm>BUILD_CPPFLAGS</glossterm>
  1505. <info>
  1506. BUILD_CPPFLAGS[doc] = "Specifies the flags to pass to the C preprocessor (i.e. to both the C and the C++ compilers) when building for the build host."
  1507. </info>
  1508. <glossdef>
  1509. <para role="glossdeffirst">
  1510. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1511. Specifies the flags to pass to the C preprocessor
  1512. (i.e. to both the C and the C++ compilers) when building
  1513. for the build host.
  1514. When building in the <filename>-native</filename> context,
  1515. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  1516. is set to the value of this variable by default.
  1517. </para>
  1518. </glossdef>
  1519. </glossentry>
  1520. <glossentry id='var-BUILD_CXXFLAGS'><glossterm>BUILD_CXXFLAGS</glossterm>
  1521. <info>
  1522. BUILD_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the build host."
  1523. </info>
  1524. <glossdef>
  1525. <para role="glossdeffirst">
  1526. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1527. Specifies the flags to pass to the C++ compiler when
  1528. building for the build host.
  1529. When building in the <filename>-native</filename> context,
  1530. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  1531. is set to the value of this variable by default.
  1532. </para>
  1533. </glossdef>
  1534. </glossentry>
  1535. <glossentry id='var-BUILD_FC'><glossterm>BUILD_FC</glossterm>
  1536. <info>
  1537. BUILD_FC[doc] = "Specifies the Fortran compiler command for the build host."
  1538. </info>
  1539. <glossdef>
  1540. <para role="glossdeffirst">
  1541. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1542. Specifies the Fortran compiler command for the build host.
  1543. By default, <filename>BUILD_FC</filename> points to
  1544. Gfortran and passes as arguments the value of
  1545. <link linkend='var-BUILD_CC_ARCH'><filename>BUILD_CC_ARCH</filename></link>,
  1546. assuming <filename>BUILD_CC_ARCH</filename> is set.
  1547. </para>
  1548. </glossdef>
  1549. </glossentry>
  1550. <glossentry id='var-BUILD_LD'><glossterm>BUILD_LD</glossterm>
  1551. <info>
  1552. BUILD_LD[doc] = "Specifies the linker command for the build host."
  1553. </info>
  1554. <glossdef>
  1555. <para role="glossdeffirst">
  1556. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1557. Specifies the linker command for the build host. By default,
  1558. <filename>BUILD_LD</filename> points to the GNU linker (ld)
  1559. and passes as arguments the value of
  1560. <link linkend='var-BUILD_LD_ARCH'><filename>BUILD_LD_ARCH</filename></link>,
  1561. assuming <filename>BUILD_LD_ARCH</filename> is set.
  1562. </para>
  1563. </glossdef>
  1564. </glossentry>
  1565. <glossentry id='var-BUILD_LD_ARCH'><glossterm>BUILD_LD_ARCH</glossterm>
  1566. <info>
  1567. BUILD_LD_ARCH[doc] = "Specifies architecture-specific linker flags for the build."
  1568. </info>
  1569. <glossdef>
  1570. <para role="glossdeffirst">
  1571. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1572. Specifies architecture-specific linker flags for the build
  1573. host. By default, the value of
  1574. <filename>BUILD_LD_ARCH</filename> is empty.
  1575. </para>
  1576. </glossdef>
  1577. </glossentry>
  1578. <glossentry id='var-BUILD_LDFLAGS'><glossterm>BUILD_LDFLAGS</glossterm>
  1579. <info>
  1580. BUILD_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the build host."
  1581. </info>
  1582. <glossdef>
  1583. <para role="glossdeffirst">
  1584. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1585. Specifies the flags to pass to the linker when building
  1586. for the build host.
  1587. When building in the <filename>-native</filename> context,
  1588. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  1589. is set to the value of this variable by default.
  1590. </para>
  1591. </glossdef>
  1592. </glossentry>
  1593. <glossentry id='var-BUILD_OPTIMIZATION'><glossterm>BUILD_OPTIMIZATION</glossterm>
  1594. <info>
  1595. BUILD_OPTIMIZATION[doc] = "Specifies the optimization flags passed to the C compiler when building for the build host or the SDK."
  1596. </info>
  1597. <glossdef>
  1598. <para role="glossdeffirst">
  1599. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1600. Specifies the optimization flags passed to the C compiler
  1601. when building for the build host or the SDK.
  1602. The flags are passed through the
  1603. <link linkend='var-BUILD_CFLAGS'><filename>BUILD_CFLAGS</filename></link>
  1604. and
  1605. <link linkend='var-BUILDSDK_CFLAGS'><filename>BUILDSDK_CFLAGS</filename></link>
  1606. default values.
  1607. </para>
  1608. <para>
  1609. The default value of the
  1610. <filename>BUILD_OPTIMIZATION</filename> variable is
  1611. "-O2 -pipe".
  1612. </para>
  1613. </glossdef>
  1614. </glossentry>
  1615. <glossentry id='var-BUILD_OS'><glossterm>BUILD_OS</glossterm>
  1616. <info>
  1617. BUILD_OS[doc] = "The operating system (in lower case) of the building architecture (e.g. Linux)."
  1618. </info>
  1619. <glossdef>
  1620. <para role="glossdeffirst">
  1621. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1622. Specifies the operating system in use on the build
  1623. host (e.g. "linux").
  1624. The OpenEmbedded build system sets the value of
  1625. <filename>BUILD_OS</filename> from the OS reported by
  1626. the <filename>uname</filename> command - the first word,
  1627. converted to lower-case characters.
  1628. </para>
  1629. </glossdef>
  1630. </glossentry>
  1631. <glossentry id='var-BUILD_PREFIX'><glossterm>BUILD_PREFIX</glossterm>
  1632. <info>
  1633. BUILD_PREFIX[doc] = "The toolchain binary prefix used for native recipes."
  1634. </info>
  1635. <glossdef>
  1636. <para role="glossdeffirst">
  1637. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1638. The toolchain binary prefix used for native recipes.
  1639. The OpenEmbedded build system uses the
  1640. <filename>BUILD_PREFIX</filename> value to set the
  1641. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  1642. when building for <filename>native</filename> recipes.
  1643. </para>
  1644. </glossdef>
  1645. </glossentry>
  1646. <glossentry id='var-BUILD_STRIP'><glossterm>BUILD_STRIP</glossterm>
  1647. <info>
  1648. BUILD_STRIP[doc] = "Specifies the command to be used to strip debugging symbols from binaries produced for the build host."
  1649. </info>
  1650. <glossdef>
  1651. <para role="glossdeffirst">
  1652. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1653. Specifies the command to be used to strip debugging symbols
  1654. from binaries produced for the build host. By default,
  1655. <filename>BUILD_STRIP</filename> points to
  1656. <filename>${</filename><link linkend='var-BUILD_PREFIX'><filename>BUILD_PREFIX</filename></link><filename>}strip</filename>.
  1657. </para>
  1658. </glossdef>
  1659. </glossentry>
  1660. <glossentry id='var-BUILD_SYS'><glossterm>BUILD_SYS</glossterm>
  1661. <info>
  1662. BUILD_SYS[doc] = "The toolchain binary prefix used for native recipes."
  1663. </info>
  1664. <glossdef>
  1665. <para role="glossdeffirst">
  1666. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1667. Specifies the system, including the architecture and
  1668. the operating system, to use when building for the build
  1669. host (i.e. when building <filename>native</filename>
  1670. recipes).
  1671. </para>
  1672. <para>
  1673. The OpenEmbedded build system automatically sets this
  1674. variable based on
  1675. <link linkend='var-BUILD_ARCH'><filename>BUILD_ARCH</filename></link>,
  1676. <link linkend='var-BUILD_VENDOR'><filename>BUILD_VENDOR</filename></link>,
  1677. and
  1678. <link linkend='var-BUILD_OS'><filename>BUILD_OS</filename></link>.
  1679. You do not need to set the <filename>BUILD_SYS</filename>
  1680. variable yourself.
  1681. </para>
  1682. </glossdef>
  1683. </glossentry>
  1684. <glossentry id='var-BUILD_VENDOR'><glossterm>BUILD_VENDOR</glossterm>
  1685. <info>
  1686. BUILD_VENDOR[doc] = "The vendor name to use when building for the build host."
  1687. </info>
  1688. <glossdef>
  1689. <para role="glossdeffirst">
  1690. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1691. Specifies the vendor name to use when building for the
  1692. build host.
  1693. The default value is an empty string ("").
  1694. </para>
  1695. </glossdef>
  1696. </glossentry>
  1697. <glossentry id='var-BUILDDIR'><glossterm>BUILDDIR</glossterm>
  1698. <info>
  1699. BUILDDIR[doc] = "Points to the location of the Build Directory."
  1700. </info>
  1701. <glossdef>
  1702. <para role="glossdeffirst">
  1703. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1704. Points to the location of the
  1705. <link linkend='build-directory'>Build Directory</link>.
  1706. You can define this directory indirectly through the
  1707. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>
  1708. script by passing in a Build Directory path when you run
  1709. the script.
  1710. If you run the script and do not provide a Build Directory
  1711. path, the <filename>BUILDDIR</filename> defaults to
  1712. <filename>build</filename> in the current directory.
  1713. </para>
  1714. </glossdef>
  1715. </glossentry>
  1716. <glossentry id='var-BUILDHISTORY_COMMIT'><glossterm>BUILDHISTORY_COMMIT</glossterm>
  1717. <info>
  1718. 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."
  1719. </info>
  1720. <glossdef>
  1721. <para role="glossdeffirst">
  1722. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1723. When inheriting the
  1724. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1725. class, this variable specifies whether or not to commit the
  1726. build history output in a local Git repository.
  1727. If set to "1", this local repository will be maintained
  1728. automatically by the
  1729. <filename>buildhistory</filename>
  1730. class and a commit will be created on every
  1731. build for changes to each top-level subdirectory of the
  1732. build history output (images, packages, and sdk).
  1733. If you want to track changes to build history over
  1734. time, you should set this value to "1".
  1735. </para>
  1736. <para>
  1737. By default, the <filename>buildhistory</filename> class
  1738. does not commit the build history output in a local
  1739. Git repository:
  1740. <literallayout class='monospaced'>
  1741. BUILDHISTORY_COMMIT ?= "0"
  1742. </literallayout>
  1743. </para>
  1744. </glossdef>
  1745. </glossentry>
  1746. <glossentry id='var-BUILDHISTORY_COMMIT_AUTHOR'><glossterm>BUILDHISTORY_COMMIT_AUTHOR</glossterm>
  1747. <info>
  1748. BUILDHISTORY_COMMIT_AUTHOR[doc] = "When inheriting the buildhistory class, this variable specifies the author to use for each Git commit."
  1749. </info>
  1750. <glossdef>
  1751. <para role="glossdeffirst">
  1752. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1753. When inheriting the
  1754. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1755. class, this variable specifies the author to use for each
  1756. Git commit.
  1757. In order for the <filename>BUILDHISTORY_COMMIT_AUTHOR</filename>
  1758. variable to work, the
  1759. <link linkend='var-BUILDHISTORY_COMMIT'><filename>BUILDHISTORY_COMMIT</filename></link>
  1760. variable must be set to "1".
  1761. </para>
  1762. <para>
  1763. Git requires that the value you provide for the
  1764. <filename>BUILDHISTORY_COMMIT_AUTHOR</filename> variable
  1765. takes the form of "name <replaceable>email@host</replaceable>".
  1766. Providing an email address or host that is not valid does
  1767. not produce an error.
  1768. </para>
  1769. <para>
  1770. By default, the <filename>buildhistory</filename> class
  1771. sets the variable as follows:
  1772. <literallayout class='monospaced'>
  1773. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory &lt;buildhistory@${DISTRO}&gt;"
  1774. </literallayout>
  1775. </para>
  1776. </glossdef>
  1777. </glossentry>
  1778. <glossentry id='var-BUILDHISTORY_DIR'><glossterm>BUILDHISTORY_DIR</glossterm>
  1779. <info>
  1780. BUILDHISTORY_DIR[doc] = "When inheriting the buildhistory class, this variable specifies the directory in which build history information is kept."
  1781. </info>
  1782. <glossdef>
  1783. <para role="glossdeffirst">
  1784. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1785. When inheriting the
  1786. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1787. class, this variable specifies the directory in which
  1788. build history information is kept.
  1789. For more information on how the variable works, see the
  1790. <filename>buildhistory.class</filename>.
  1791. </para>
  1792. <para>
  1793. By default, the <filename>buildhistory</filename> class
  1794. sets the directory as follows:
  1795. <literallayout class='monospaced'>
  1796. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  1797. </literallayout>
  1798. </para>
  1799. </glossdef>
  1800. </glossentry>
  1801. <glossentry id='var-BUILDHISTORY_FEATURES'><glossterm>BUILDHISTORY_FEATURES</glossterm>
  1802. <info>
  1803. BUILDHISTORY_FEATURES[doc] = "When inheriting the buildhistory class, this variable specifies the build history features to be enabled."
  1804. </info>
  1805. <glossdef>
  1806. <para role="glossdeffirst">
  1807. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1808. When inheriting the
  1809. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1810. class, this variable specifies the build history features
  1811. to be enabled.
  1812. For more information on how build history works, see the
  1813. "<ulink url='&YOCTO_DOCS_DEV_URL;#maintaining-build-output-quality'>Maintaining Build Output Quality</ulink>"
  1814. section in the Yocto Project Development Tasks Manual.
  1815. </para>
  1816. <para>
  1817. You can specify these features in the form of a
  1818. space-separated list:
  1819. <itemizedlist>
  1820. <listitem><para><emphasis>image:</emphasis>
  1821. Analysis of the contents of images, which
  1822. includes the list of installed packages among other
  1823. things.
  1824. </para></listitem>
  1825. <listitem><para><emphasis>package:</emphasis>
  1826. Analysis of the contents of individual packages.
  1827. </para></listitem>
  1828. <listitem><para><emphasis>sdk:</emphasis>
  1829. Analysis of the contents of the software
  1830. development kit (SDK).
  1831. </para></listitem>
  1832. <listitem><para><emphasis>task:</emphasis>
  1833. Save output file signatures for
  1834. <ulink url='&YOCTO_DOCS_OM_URL;#shared-state-cache'>shared state</ulink>
  1835. (sstate) tasks.
  1836. This saves one file per task and lists the SHA-256
  1837. checksums for each file staged (i.e. the output of
  1838. the task).
  1839. </para></listitem>
  1840. </itemizedlist>
  1841. </para>
  1842. <para>
  1843. By default, the <filename>buildhistory</filename> class
  1844. enables the following features:
  1845. <literallayout class='monospaced'>
  1846. BUILDHISTORY_FEATURES ?= "image package sdk"
  1847. </literallayout>
  1848. </para>
  1849. </glossdef>
  1850. </glossentry>
  1851. <glossentry id='var-BUILDHISTORY_IMAGE_FILES'><glossterm>BUILDHISTORY_IMAGE_FILES</glossterm>
  1852. <info>
  1853. 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."
  1854. </info>
  1855. <glossdef>
  1856. <para role="glossdeffirst">
  1857. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1858. When inheriting the
  1859. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1860. class, this variable specifies a list of paths to files
  1861. copied from the
  1862. image contents into the build history directory under
  1863. an "image-files" directory in the directory for
  1864. the image, so that you can track the contents of each file.
  1865. The default is to copy <filename>/etc/passwd</filename>
  1866. and <filename>/etc/group</filename>, which allows you to
  1867. monitor for changes in user and group entries.
  1868. You can modify the list to include any file.
  1869. Specifying an invalid path does not produce an error.
  1870. Consequently, you can include files that might
  1871. not always be present.
  1872. </para>
  1873. <para>
  1874. By default, the <filename>buildhistory</filename> class
  1875. provides paths to the following files:
  1876. <literallayout class='monospaced'>
  1877. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  1878. </literallayout>
  1879. </para>
  1880. </glossdef>
  1881. </glossentry>
  1882. <glossentry id='var-BUILDHISTORY_PUSH_REPO'><glossterm>BUILDHISTORY_PUSH_REPO</glossterm>
  1883. <info>
  1884. BUILDHISTORY_PUSH_REPO[doc] = "When inheriting the buildhistory class, this variable optionally specifies a remote repository to which build history pushes Git changes."
  1885. </info>
  1886. <glossdef>
  1887. <para role="glossdeffirst">
  1888. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1889. When inheriting the
  1890. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1891. class, this variable optionally specifies a remote
  1892. repository to which build history pushes Git changes.
  1893. In order for <filename>BUILDHISTORY_PUSH_REPO</filename>
  1894. to work,
  1895. <link linkend='var-BUILDHISTORY_COMMIT'><filename>BUILDHISTORY_COMMIT</filename></link>
  1896. must be set to "1".
  1897. </para>
  1898. <para>
  1899. The repository should correspond to a remote
  1900. address that specifies a repository as understood by
  1901. Git, or alternatively to a remote name that you have
  1902. set up manually using <filename>git remote</filename>
  1903. within the local repository.
  1904. </para>
  1905. <para>
  1906. By default, the <filename>buildhistory</filename> class
  1907. sets the variable as follows:
  1908. <literallayout class='monospaced'>
  1909. BUILDHISTORY_PUSH_REPO ?= ""
  1910. </literallayout>
  1911. </para>
  1912. </glossdef>
  1913. </glossentry>
  1914. <glossentry id='var-BUILDSDK_CFLAGS'><glossterm>BUILDSDK_CFLAGS</glossterm>
  1915. <info>
  1916. BUILDSDK_CFLAGS[doc] = "Specifies the flags to pass to the C compiler when building for the SDK."
  1917. </info>
  1918. <glossdef>
  1919. <para role="glossdeffirst">
  1920. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1921. Specifies the flags to pass to the C compiler when building
  1922. for the SDK.
  1923. When building in the <filename>nativesdk-</filename>
  1924. context,
  1925. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  1926. is set to the value of this variable by default.
  1927. </para>
  1928. </glossdef>
  1929. </glossentry>
  1930. <glossentry id='var-BUILDSDK_CPPFLAGS'><glossterm>BUILDSDK_CPPFLAGS</glossterm>
  1931. <info>
  1932. 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."
  1933. </info>
  1934. <glossdef>
  1935. <para role="glossdeffirst">
  1936. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1937. Specifies the flags to pass to the C pre-processor
  1938. (i.e. to both the C and the C++ compilers) when building
  1939. for the SDK.
  1940. When building in the <filename>nativesdk-</filename>
  1941. context,
  1942. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  1943. is set to the value of this variable by default.
  1944. </para>
  1945. </glossdef>
  1946. </glossentry>
  1947. <glossentry id='var-BUILDSDK_CXXFLAGS'><glossterm>BUILDSDK_CXXFLAGS</glossterm>
  1948. <info>
  1949. BUILDSDK_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the SDK."
  1950. </info>
  1951. <glossdef>
  1952. <para role="glossdeffirst">
  1953. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1954. Specifies the flags to pass to the C++ compiler when
  1955. building for the SDK.
  1956. When building in the <filename>nativesdk-</filename>
  1957. context,
  1958. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  1959. is set to the value of this variable by default.
  1960. </para>
  1961. </glossdef>
  1962. </glossentry>
  1963. <glossentry id='var-BUILDSDK_LDFLAGS'><glossterm>BUILDSDK_LDFLAGS</glossterm>
  1964. <info>
  1965. BUILDSDK_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the SDK."
  1966. </info>
  1967. <glossdef>
  1968. <para role="glossdeffirst">
  1969. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1970. Specifies the flags to pass to the linker when building
  1971. for the SDK.
  1972. When building in the <filename>nativesdk-</filename>
  1973. context,
  1974. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  1975. is set to the value of this variable by default.
  1976. </para>
  1977. </glossdef>
  1978. </glossentry>
  1979. <glossentry id='var-BUILDSTATS_BASE'><glossterm>BUILDSTATS_BASE</glossterm>
  1980. <info>
  1981. BUILDSTATS_BASE[doc] = "Points to the location of the directory that holds build statistics when you use and enable the buildstats class."
  1982. </info>
  1983. <glossdef>
  1984. <para role="glossdeffirst">
  1985. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1986. Points to the location of the directory that holds build
  1987. statistics when you use and enable the
  1988. <link linkend='ref-classes-buildstats'><filename>buildstats</filename></link>
  1989. class.
  1990. The <filename>BUILDSTATS_BASE</filename> directory defaults
  1991. to
  1992. <filename>${</filename><link linkend='var-TMPDIR'><filename>TMPDIR</filename></link><filename>}/buildstats/</filename>.
  1993. </para>
  1994. </glossdef>
  1995. </glossentry>
  1996. <glossentry id='var-BUSYBOX_SPLIT_SUID'><glossterm>BUSYBOX_SPLIT_SUID</glossterm>
  1997. <info>
  1998. 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."
  1999. </info>
  2000. <glossdef>
  2001. <para role="glossdeffirst">
  2002. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2003. For the BusyBox recipe, specifies whether to split the
  2004. output executable file into two parts: one for features
  2005. that require <filename>setuid root</filename>, and one for
  2006. the remaining features (i.e. those that do not require
  2007. <filename>setuid root</filename>).
  2008. </para>
  2009. <para>
  2010. The <filename>BUSYBOX_SPLIT_SUID</filename> variable
  2011. defaults to "1", which results in a single output
  2012. executable file.
  2013. Set the variable to "0" to split the output file.
  2014. </para>
  2015. </glossdef>
  2016. </glossentry>
  2017. </glossdiv>
  2018. <glossdiv id='var-glossary-c'><title>C</title>
  2019. <glossentry id='var-CACHE'><glossterm>CACHE</glossterm>
  2020. <info>
  2021. CACHE[doc] = "The directory BitBake uses to store a cache of the metadata."
  2022. </info>
  2023. <glossdef>
  2024. <para role="glossdeffirst">
  2025. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2026. Specifies the directory BitBake uses to store a cache
  2027. of the
  2028. <link linkend='metadata'>Metadata</link>
  2029. so it does not need to be parsed every time BitBake is
  2030. started.
  2031. </para>
  2032. </glossdef>
  2033. </glossentry>
  2034. <glossentry id='var-CC'><glossterm>CC</glossterm>
  2035. <info>
  2036. CC[doc] = "Minimum command and arguments to run the C compiler."
  2037. </info>
  2038. <glossdef>
  2039. <para role="glossdeffirst">
  2040. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2041. The minimal command and arguments used to run the C
  2042. compiler.
  2043. </para>
  2044. </glossdef>
  2045. </glossentry>
  2046. <glossentry id='var-CFLAGS'><glossterm>CFLAGS</glossterm>
  2047. <info>
  2048. CFLAGS[doc] = "Flags passed to the C compiler for the target system. This variable evaluates to the same as TARGET_CFLAGS."
  2049. </info>
  2050. <glossdef>
  2051. <para role="glossdeffirst">
  2052. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2053. Specifies the flags to pass to the C compiler.
  2054. This variable is exported to an environment
  2055. variable and thus made visible to the software being
  2056. built during the compilation step.
  2057. </para>
  2058. <para>
  2059. Default initialization for <filename>CFLAGS</filename>
  2060. varies depending on what is being built:
  2061. <itemizedlist>
  2062. <listitem><para>
  2063. <link linkend='var-TARGET_CFLAGS'><filename>TARGET_CFLAGS</filename></link>
  2064. when building for the target
  2065. </para></listitem>
  2066. <listitem><para>
  2067. <link linkend='var-BUILD_CFLAGS'><filename>BUILD_CFLAGS</filename></link>
  2068. when building for the build host (i.e.
  2069. <filename>-native</filename>)
  2070. </para></listitem>
  2071. <listitem><para>
  2072. <link linkend='var-BUILDSDK_CFLAGS'><filename>BUILDSDK_CFLAGS</filename></link>
  2073. when building for an SDK (i.e.
  2074. <filename>nativesdk-</filename>)
  2075. </para></listitem>
  2076. </itemizedlist>
  2077. </para>
  2078. </glossdef>
  2079. </glossentry>
  2080. <glossentry id='var-CLASSOVERRIDE'><glossterm>CLASSOVERRIDE</glossterm>
  2081. <info>
  2082. CLASSOVERRIDE[doc] = "An internal variable specifying the special class override that should currently apply (e.g. "class-target", "class-native", and so forth)."
  2083. </info>
  2084. <glossdef>
  2085. <para role="glossdeffirst">
  2086. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2087. An internal variable specifying the special class override
  2088. that should currently apply (e.g. "class-target",
  2089. "class-native", and so forth).
  2090. The classes that use this variable (e.g.
  2091. <link linkend='ref-classes-native'><filename>native</filename></link>,
  2092. <link linkend='ref-classes-nativesdk'><filename>nativesdk</filename></link>,
  2093. and so forth) set the variable to appropriate values.
  2094. <note>
  2095. <filename>CLASSOVERRIDE</filename> gets its default
  2096. "class-target" value from the
  2097. <filename>bitbake.conf</filename> file.
  2098. </note>
  2099. </para>
  2100. <para>
  2101. As an example, the following override allows you to install
  2102. extra files, but only when building for the target:
  2103. <literallayout class='monospaced'>
  2104. do_install_append_class-target() {
  2105. install my-extra-file ${D}${sysconfdir}
  2106. }
  2107. </literallayout>
  2108. Here is an example where <filename>FOO</filename>
  2109. is set to "native" when building for the build host, and
  2110. to "other" when not building for the build host:
  2111. <literallayout class='monospaced'>
  2112. FOO_class-native = "native"
  2113. FOO = "other"
  2114. </literallayout>
  2115. The underlying mechanism behind
  2116. <filename>CLASSOVERRIDE</filename> is simply that it is
  2117. included in the default value of
  2118. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  2119. </para>
  2120. </glossdef>
  2121. </glossentry>
  2122. <glossentry id='var-CLEANBROKEN'><glossterm>CLEANBROKEN</glossterm>
  2123. <info>
  2124. CLEANBROKEN[doc] = "Prevents the build system from running 'make clean' during the do_configure task."
  2125. </info>
  2126. <glossdef>
  2127. <para role="glossdeffirst">
  2128. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2129. If set to "1" within a recipe,
  2130. <filename>CLEANBROKEN</filename> specifies that
  2131. the <filename>make clean</filename> command does
  2132. not work for the software being built.
  2133. Consequently, the OpenEmbedded build system will not try
  2134. to run <filename>make clean</filename> during the
  2135. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  2136. task, which is the default behavior.
  2137. </para>
  2138. </glossdef>
  2139. </glossentry>
  2140. <glossentry id='var-COMBINED_FEATURES'><glossterm>COMBINED_FEATURES</glossterm>
  2141. <info>
  2142. COMBINED_FEATURES[doc] = "A set of features common between MACHINE_FEATURES and DISTRO_FEATURES."
  2143. </info>
  2144. <glossdef>
  2145. <para role="glossdeffirst">
  2146. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2147. Provides a list of hardware features that are enabled in
  2148. both
  2149. <link linkend='var-MACHINE_FEATURES'><filename>MACHINE_FEATURES</filename></link>
  2150. and
  2151. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>.
  2152. This select list of features contains features that make
  2153. sense to be controlled both at the machine and distribution
  2154. configuration level.
  2155. For example, the "bluetooth" feature requires hardware
  2156. support but should also be optional at the distribution
  2157. level, in case the hardware supports Bluetooth but you
  2158. do not ever intend to use it.
  2159. </para>
  2160. </glossdef>
  2161. </glossentry>
  2162. <glossentry id='var-COMMON_LICENSE_DIR'><glossterm>COMMON_LICENSE_DIR</glossterm>
  2163. <info>
  2164. COMMON_LICENSE_DIR[doc] = "Points to meta/files/common-licenses in the Source Directory, which is where generic license files reside."
  2165. </info>
  2166. <glossdef>
  2167. <para role="glossdeffirst">
  2168. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2169. Points to <filename>meta/files/common-licenses</filename>
  2170. in the
  2171. <link linkend='source-directory'>Source Directory</link>,
  2172. which is where generic license files reside.
  2173. </para>
  2174. </glossdef>
  2175. </glossentry>
  2176. <glossentry id='var-COMPATIBLE_HOST'><glossterm>COMPATIBLE_HOST</glossterm>
  2177. <info>
  2178. 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."
  2179. </info>
  2180. <glossdef>
  2181. <para role="glossdeffirst">
  2182. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2183. A regular expression that resolves to one or more hosts
  2184. (when the recipe is native) or one or more targets (when
  2185. the recipe is non-native) with which a recipe is compatible.
  2186. The regular expression is matched against
  2187. <link linkend="var-HOST_SYS"><filename>HOST_SYS</filename></link>.
  2188. You can use the variable to stop recipes from being built
  2189. for classes of systems with which the recipes are not
  2190. compatible.
  2191. Stopping these builds is particularly useful with kernels.
  2192. The variable also helps to increase parsing speed
  2193. since the build system skips parsing recipes not
  2194. compatible with the current system.
  2195. </para>
  2196. </glossdef>
  2197. </glossentry>
  2198. <glossentry id='var-COMPATIBLE_MACHINE'><glossterm>COMPATIBLE_MACHINE</glossterm>
  2199. <info>
  2200. COMPATIBLE_MACHINE[doc] = "A regular expression that resolves to one or more target machines with which a recipe is compatible."
  2201. </info>
  2202. <glossdef>
  2203. <para role="glossdeffirst">
  2204. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2205. A regular expression that resolves to one or more
  2206. target machines with which a recipe is compatible.
  2207. The regular expression is matched against
  2208. <link linkend="var-MACHINEOVERRIDES"><filename>MACHINEOVERRIDES</filename></link>.
  2209. You can use the variable to stop recipes from being built
  2210. for machines with which the recipes are not compatible.
  2211. Stopping these builds is particularly useful with kernels.
  2212. The variable also helps to increase parsing speed
  2213. since the build system skips parsing recipes not
  2214. compatible with the current machine.
  2215. </para>
  2216. </glossdef>
  2217. </glossentry>
  2218. <glossentry id='var-COMPLEMENTARY_GLOB'><glossterm>COMPLEMENTARY_GLOB</glossterm>
  2219. <info>
  2220. COMPLEMENTARY_GLOB[doc] = "Defines wildcards to match when installing a list of complementary packages for all the packages installed in an image."
  2221. </info>
  2222. <glossdef>
  2223. <para role="glossdeffirst">
  2224. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2225. Defines wildcards to match when installing a list of
  2226. complementary packages for all the packages explicitly
  2227. (or implicitly) installed in an image.
  2228. <note>
  2229. The <filename>COMPLEMENTARY_GLOB</filename> variable
  2230. uses Unix filename pattern matching
  2231. (<ulink url='https://docs.python.org/2/library/fnmatch.html#module-fnmatch'><filename>fnmatch</filename></ulink>),
  2232. which is similar to the Unix style pathname pattern
  2233. expansion
  2234. (<ulink url='https://docs.python.org/2/library/glob.html'><filename>glob</filename></ulink>).
  2235. </note>
  2236. The resulting list of complementary packages is associated
  2237. with an item that can be added to
  2238. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  2239. An example usage of this is the "dev-pkgs" item that when
  2240. added to <filename>IMAGE_FEATURES</filename> will
  2241. install -dev packages (containing headers and other
  2242. development files) for every package in the image.
  2243. </para>
  2244. <para>
  2245. To add a new feature item pointing to a wildcard, use a
  2246. variable flag to specify the feature item name and
  2247. use the value to specify the wildcard.
  2248. Here is an example:
  2249. <literallayout class='monospaced'>
  2250. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  2251. </literallayout>
  2252. </para>
  2253. </glossdef>
  2254. </glossentry>
  2255. <glossentry id='var-COMPONENTS_DIR'><glossterm>COMPONENTS_DIR</glossterm>
  2256. <info>
  2257. COMPONENTS_DIR[doc] = "Stores sysroot components for each recipe."
  2258. </info>
  2259. <glossdef>
  2260. <para role="glossdeffirst">
  2261. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2262. Stores sysroot components for each recipe.
  2263. The OpenEmbedded build system uses
  2264. <filename>COMPONENTS_DIR</filename> when constructing
  2265. recipe-specific sysroots for other recipes.
  2266. </para>
  2267. <para>
  2268. The default is
  2269. "<filename>${</filename><link linkend='var-STAGING_DIR'><filename>STAGING_DIR</filename></link><filename>}-components</filename>."
  2270. (i.e. "<filename>${</filename><link linkend='var-TMPDIR'><filename>TMPDIR</filename></link><filename>}/sysroots-components</filename>").
  2271. </para>
  2272. </glossdef>
  2273. </glossentry>
  2274. <glossentry id='var-CONF_VERSION'><glossterm>CONF_VERSION</glossterm>
  2275. <info>
  2276. CONF_VERSION[doc] = "Tracks the version of local.conf. Increased each time build/conf/ changes incompatibly."
  2277. </info>
  2278. <glossdef>
  2279. <para role="glossdeffirst">
  2280. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2281. Tracks the version of the local configuration file
  2282. (i.e. <filename>local.conf</filename>).
  2283. The value for <filename>CONF_VERSION</filename>
  2284. increments each time <filename>build/conf/</filename>
  2285. compatibility changes.
  2286. </para>
  2287. </glossdef>
  2288. </glossentry>
  2289. <glossentry id='var-CONFFILES'><glossterm>CONFFILES</glossterm>
  2290. <info>
  2291. CONFFILES[doc] = "Identifies editable or configurable files that are part of a package."
  2292. </info>
  2293. <glossdef>
  2294. <para role="glossdeffirst">
  2295. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2296. Identifies editable or configurable files that are part of a package.
  2297. If the Package Management System (PMS) is being used to update
  2298. packages on the target system, it is possible that
  2299. configuration files you have changed after the original installation
  2300. and that you now want to remain unchanged are overwritten.
  2301. In other words, editable files might exist in the package that you do not
  2302. want reset as part of the package update process.
  2303. You can use the <filename>CONFFILES</filename> variable to list the files in the
  2304. package that you wish to prevent the PMS from overwriting during this update process.
  2305. </para>
  2306. <para>
  2307. To use the <filename>CONFFILES</filename> variable, provide a package name
  2308. override that identifies the resulting package.
  2309. Then, provide a space-separated list of files.
  2310. Here is an example:
  2311. <literallayout class='monospaced'>
  2312. CONFFILES_${PN} += "${sysconfdir}/file1 \
  2313. ${sysconfdir}/file2 ${sysconfdir}/file3"
  2314. </literallayout>
  2315. </para>
  2316. <para>
  2317. A relationship exists between the <filename>CONFFILES</filename> and
  2318. <filename><link linkend='var-FILES'>FILES</link></filename> variables.
  2319. The files listed within <filename>CONFFILES</filename> must be a subset of
  2320. the files listed within <filename>FILES</filename>.
  2321. Because the configuration files you provide with <filename>CONFFILES</filename>
  2322. are simply being identified so that the PMS will not overwrite them,
  2323. it makes sense that
  2324. the files must already be included as part of the package through the
  2325. <filename>FILES</filename> variable.
  2326. </para>
  2327. <note>
  2328. When specifying paths as part of the <filename>CONFFILES</filename> variable,
  2329. it is good practice to use appropriate path variables.
  2330. For example, <filename>${sysconfdir}</filename> rather than
  2331. <filename>/etc</filename> or <filename>${bindir}</filename> rather
  2332. than <filename>/usr/bin</filename>.
  2333. You can find a list of these variables at the top of the
  2334. <filename>meta/conf/bitbake.conf</filename> file in the
  2335. <link linkend='source-directory'>Source Directory</link>.
  2336. </note>
  2337. </glossdef>
  2338. </glossentry>
  2339. <glossentry id='var-CONFIG_INITRAMFS_SOURCE'><glossterm>CONFIG_INITRAMFS_SOURCE</glossterm>
  2340. <info>
  2341. CONFIG_INITRAMFS_SOURCE[doc] = "Identifies the initial RAM filesystem (initramfs) source files. The OpenEmbedded build system receives and uses this kernel Kconfig variable as an environment variable."
  2342. </info>
  2343. <glossdef>
  2344. <para role="glossdeffirst">
  2345. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2346. Identifies the initial RAM filesystem (initramfs) source
  2347. files.
  2348. The OpenEmbedded build system receives and uses
  2349. this kernel Kconfig variable as an environment variable.
  2350. By default, the variable is set to null ("").
  2351. </para>
  2352. <para>
  2353. The <filename>CONFIG_INITRAMFS_SOURCE</filename> can be
  2354. either a single cpio archive with a
  2355. <filename>.cpio</filename> suffix or a
  2356. space-separated list of directories and files for building
  2357. the initramfs image.
  2358. A cpio archive should contain a filesystem archive
  2359. to be used as an initramfs image.
  2360. Directories should contain a filesystem layout to be
  2361. included in the initramfs image.
  2362. Files should contain entries according to the format
  2363. described by the
  2364. <filename>usr/gen_init_cpio</filename> program in the
  2365. kernel tree.
  2366. </para>
  2367. <para>
  2368. If you specify multiple directories and files, the
  2369. initramfs image will be the aggregate of all of them.
  2370. </para>
  2371. <para>
  2372. For information on creating an initramfs, see the
  2373. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  2374. section in the Yocto Project Development Tasks Manual.
  2375. </para>
  2376. </glossdef>
  2377. </glossentry>
  2378. <glossentry id='var-CONFIG_SITE'><glossterm>CONFIG_SITE</glossterm>
  2379. <info>
  2380. 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."
  2381. </info>
  2382. <glossdef>
  2383. <para role="glossdeffirst">
  2384. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2385. A list of files that contains <filename>autoconf</filename> test results relevant
  2386. to the current build.
  2387. This variable is used by the Autotools utilities when running
  2388. <filename>configure</filename>.
  2389. </para>
  2390. </glossdef>
  2391. </glossentry>
  2392. <glossentry id='var-CONFIGURE_FLAGS'><glossterm>CONFIGURE_FLAGS</glossterm>
  2393. <info>
  2394. CONFIGURE_FLAGS[doc] = "The minimal arguments for GNU configure."
  2395. </info>
  2396. <glossdef>
  2397. <para role="glossdeffirst">
  2398. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2399. The minimal arguments for GNU configure.
  2400. </para>
  2401. </glossdef>
  2402. </glossentry>
  2403. <glossentry id='var-CONFLICT_DISTRO_FEATURES'><glossterm>CONFLICT_DISTRO_FEATURES</glossterm>
  2404. <info>
  2405. 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."
  2406. </info>
  2407. <glossdef>
  2408. <para role="glossdeffirst">
  2409. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2410. When inheriting the
  2411. <link linkend='ref-classes-distro_features_check'><filename>distro_features_check</filename></link>
  2412. class, this
  2413. variable identifies distribution features that would
  2414. be in conflict should the recipe
  2415. be built.
  2416. In other words, if the
  2417. <filename>CONFLICT_DISTRO_FEATURES</filename> variable
  2418. lists a feature that also appears in
  2419. <filename>DISTRO_FEATURES</filename> within the
  2420. current configuration, an error occurs and the
  2421. build stops.
  2422. </para>
  2423. </glossdef>
  2424. </glossentry>
  2425. <glossentry id='var-COPYLEFT_LICENSE_EXCLUDE'><glossterm>COPYLEFT_LICENSE_EXCLUDE</glossterm>
  2426. <info>
  2427. COPYLEFT_LICENSE_EXCLUDE[doc] = "Licenses to exclude in the source archived by the archiver class."
  2428. </info>
  2429. <glossdef>
  2430. <para role="glossdeffirst">
  2431. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2432. A space-separated list of licenses to exclude from the
  2433. source archived by the
  2434. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2435. class.
  2436. In other words, if a license in a recipe's
  2437. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  2438. value is in the value of
  2439. <filename>COPYLEFT_LICENSE_EXCLUDE</filename>, then its
  2440. source is not archived by the class.
  2441. <note>
  2442. The <filename>COPYLEFT_LICENSE_EXCLUDE</filename>
  2443. variable takes precedence over the
  2444. <link linkend='var-COPYLEFT_LICENSE_INCLUDE'><filename>COPYLEFT_LICENSE_INCLUDE</filename></link>
  2445. variable.
  2446. </note>
  2447. The default value, which is "CLOSED Proprietary", for
  2448. <filename>COPYLEFT_LICENSE_EXCLUDE</filename> is set
  2449. by the
  2450. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2451. class, which is inherited by the
  2452. <filename>archiver</filename> class.
  2453. </para>
  2454. </glossdef>
  2455. </glossentry>
  2456. <glossentry id='var-COPYLEFT_LICENSE_INCLUDE'><glossterm>COPYLEFT_LICENSE_INCLUDE</glossterm>
  2457. <info>
  2458. COPYLEFT_LICENSE_INCLUDE[doc] = "Licenses to include in the source archived by the archiver class."
  2459. </info>
  2460. <glossdef>
  2461. <para role="glossdeffirst">
  2462. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2463. A space-separated list of licenses to include in the
  2464. source archived by the
  2465. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2466. class.
  2467. In other words, if a license in a recipe's
  2468. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  2469. value is in the value of
  2470. <filename>COPYLEFT_LICENSE_INCLUDE</filename>, then its
  2471. source is archived by the class.
  2472. </para>
  2473. <para>
  2474. The default value is set by the
  2475. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2476. class, which is inherited by the
  2477. <filename>archiver</filename> class.
  2478. The default value includes "GPL*", "LGPL*", and "AGPL*".
  2479. </para>
  2480. </glossdef>
  2481. </glossentry>
  2482. <glossentry id='var-COPYLEFT_PN_EXCLUDE'><glossterm>COPYLEFT_PN_EXCLUDE</glossterm>
  2483. <info>
  2484. COPYLEFT_PN_EXCLUDE[doc] = "Recipes to exclude in the source archived by the archiver class."
  2485. </info>
  2486. <glossdef>
  2487. <para role="glossdeffirst">
  2488. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2489. A list of recipes to exclude in the source archived
  2490. by the
  2491. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2492. class.
  2493. The <filename>COPYLEFT_PN_EXCLUDE</filename> variable
  2494. overrides the license inclusion and exclusion caused
  2495. through the
  2496. <link linkend='var-COPYLEFT_LICENSE_INCLUDE'><filename>COPYLEFT_LICENSE_INCLUDE</filename></link>
  2497. and
  2498. <link linkend='var-COPYLEFT_LICENSE_EXCLUDE'><filename>COPYLEFT_LICENSE_EXCLUDE</filename></link>
  2499. variables, respectively.
  2500. </para>
  2501. <para>
  2502. The default value, which is "" indicating to not explicitly
  2503. exclude any recipes by name, for
  2504. <filename>COPYLEFT_PN_EXCLUDE</filename> is set
  2505. by the
  2506. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2507. class, which is inherited by the
  2508. <filename>archiver</filename> class.
  2509. </para>
  2510. </glossdef>
  2511. </glossentry>
  2512. <glossentry id='var-COPYLEFT_PN_INCLUDE'><glossterm>COPYLEFT_PN_INCLUDE</glossterm>
  2513. <info>
  2514. COPYLEFT_PN_INCLUDE[doc] = "Recipes to include in the source archived by the archiver class."
  2515. </info>
  2516. <glossdef>
  2517. <para role="glossdeffirst">
  2518. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2519. A list of recipes to include in the source archived
  2520. by the
  2521. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2522. class.
  2523. The <filename>COPYLEFT_PN_INCLUDE</filename> variable
  2524. overrides the license inclusion and exclusion caused
  2525. through the
  2526. <link linkend='var-COPYLEFT_LICENSE_INCLUDE'><filename>COPYLEFT_LICENSE_INCLUDE</filename></link>
  2527. and
  2528. <link linkend='var-COPYLEFT_LICENSE_EXCLUDE'><filename>COPYLEFT_LICENSE_EXCLUDE</filename></link>
  2529. variables, respectively.
  2530. </para>
  2531. <para>
  2532. The default value, which is "" indicating to not explicitly
  2533. include any recipes by name, for
  2534. <filename>COPYLEFT_PN_INCLUDE</filename> is set
  2535. by the
  2536. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2537. class, which is inherited by the
  2538. <filename>archiver</filename> class.
  2539. </para>
  2540. </glossdef>
  2541. </glossentry>
  2542. <glossentry id='var-COPYLEFT_RECIPE_TYPES'><glossterm>COPYLEFT_RECIPE_TYPES</glossterm>
  2543. <info>
  2544. COPYLEFT_RECIPE_TYPES[doc] = "Recipe types to include in the source archived by the archiver class."
  2545. </info>
  2546. <glossdef>
  2547. <para role="glossdeffirst">
  2548. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2549. A space-separated list of recipe types to include
  2550. in the source archived by the
  2551. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2552. class.
  2553. Recipe types are <filename>target</filename>,
  2554. <filename>native</filename>,
  2555. <filename>nativesdk</filename>,
  2556. <filename>cross</filename>,
  2557. <filename>crosssdk</filename>, and
  2558. <filename>cross-canadian</filename>.
  2559. </para>
  2560. <para>
  2561. The default value, which is "target*", for
  2562. <filename>COPYLEFT_RECIPE_TYPES</filename> is set
  2563. by the
  2564. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2565. class, which is inherited by the
  2566. <filename>archiver</filename> class.
  2567. </para>
  2568. </glossdef>
  2569. </glossentry>
  2570. <glossentry id='var-COPY_LIC_DIRS'><glossterm>COPY_LIC_DIRS</glossterm>
  2571. <info>
  2572. 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."
  2573. </info>
  2574. <glossdef>
  2575. <para role="glossdeffirst">
  2576. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2577. If set to "1" along with the
  2578. <link linkend='var-COPY_LIC_MANIFEST'><filename>COPY_LIC_MANIFEST</filename></link>
  2579. variable, the OpenEmbedded build system copies
  2580. into the image the license files, which are located in
  2581. <filename>/usr/share/common-licenses</filename>,
  2582. for each package.
  2583. The license files are placed
  2584. in directories within the image itself during build time.
  2585. <note>
  2586. The <filename>COPY_LIC_DIRS</filename> does not
  2587. offer a path for adding licenses for newly installed
  2588. packages to an image, which might be most suitable
  2589. for read-only filesystems that cannot be upgraded.
  2590. See the
  2591. <link linkend='var-LICENSE_CREATE_PACKAGE'><filename>LICENSE_CREATE_PACKAGE</filename></link>
  2592. variable for additional information.
  2593. You can also reference the
  2594. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  2595. section in the Yocto Project Development Tasks Manual
  2596. for information on providing license text.
  2597. </note>
  2598. </para>
  2599. </glossdef>
  2600. </glossentry>
  2601. <glossentry id='var-COPY_LIC_MANIFEST'><glossterm>COPY_LIC_MANIFEST</glossterm>
  2602. <info>
  2603. 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."
  2604. </info>
  2605. <glossdef>
  2606. <para role="glossdeffirst">
  2607. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2608. If set to "1", the OpenEmbedded build system copies
  2609. the license manifest for the image to
  2610. <filename>/usr/share/common-licenses/license.manifest</filename>
  2611. within the image itself during build time.
  2612. <note>
  2613. The <filename>COPY_LIC_MANIFEST</filename> does not
  2614. offer a path for adding licenses for newly installed
  2615. packages to an image, which might be most suitable
  2616. for read-only filesystems that cannot be upgraded.
  2617. See the
  2618. <link linkend='var-LICENSE_CREATE_PACKAGE'><filename>LICENSE_CREATE_PACKAGE</filename></link>
  2619. variable for additional information.
  2620. You can also reference the
  2621. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  2622. section in the Yocto Project Development Tasks Manual
  2623. for information on providing license text.
  2624. </note>
  2625. </para>
  2626. </glossdef>
  2627. </glossentry>
  2628. <glossentry id='var-CORE_IMAGE_EXTRA_INSTALL'><glossterm>CORE_IMAGE_EXTRA_INSTALL</glossterm>
  2629. <info>
  2630. 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."
  2631. </info>
  2632. <glossdef>
  2633. <para role="glossdeffirst">
  2634. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2635. Specifies the list of packages to be added to the image.
  2636. You should only set this variable in the
  2637. <filename>local.conf</filename> configuration file found
  2638. in the
  2639. <link linkend='build-directory'>Build Directory</link>.
  2640. </para>
  2641. <para>
  2642. This variable replaces <filename>POKY_EXTRA_INSTALL</filename>, which is no longer supported.
  2643. </para>
  2644. </glossdef>
  2645. </glossentry>
  2646. <glossentry id='var-COREBASE'><glossterm>COREBASE</glossterm>
  2647. <info>
  2648. COREBASE[doc] = "Specifies the parent directory of the OpenEmbedded-Core Metadata layer (i.e. meta)."
  2649. </info>
  2650. <glossdef>
  2651. <para role="glossdeffirst">
  2652. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2653. Specifies the parent directory of the OpenEmbedded-Core
  2654. Metadata layer (i.e. <filename>meta</filename>).
  2655. </para>
  2656. <para>
  2657. It is an important distinction that
  2658. <filename>COREBASE</filename> points to the parent of this
  2659. layer and not the layer itself.
  2660. Consider an example where you have cloned the Poky Git
  2661. repository and retained the <filename>poky</filename>
  2662. name for your local copy of the repository.
  2663. In this case, <filename>COREBASE</filename> points to
  2664. the <filename>poky</filename> folder because it is the
  2665. parent directory of the <filename>poky/meta</filename>
  2666. layer.
  2667. </para>
  2668. </glossdef>
  2669. </glossentry>
  2670. <glossentry id='var-COREBASE_FILES'><glossterm>COREBASE_FILES</glossterm>
  2671. <info>
  2672. COREBASE_FILES[doc] = "Lists files from the COREBASE directory that should be copied other than the layers listed in the bblayers.conf file."
  2673. </info>
  2674. <glossdef>
  2675. <para role="glossdeffirst">
  2676. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2677. Lists files from the
  2678. <link linkend='var-COREBASE'><filename>COREBASE</filename></link>
  2679. directory that should be copied other than the layers
  2680. listed in the <filename>bblayers.conf</filename> file.
  2681. The <filename>COREBASE_FILES</filename> variable exists
  2682. for the purpose of copying metadata from the
  2683. OpenEmbedded build system into the extensible
  2684. SDK.
  2685. </para>
  2686. <para>
  2687. Explicitly listing files in <filename>COREBASE</filename>
  2688. is needed because it typically contains build
  2689. directories and other files that should not normally
  2690. be copied into the extensible SDK.
  2691. Consequently, the value of
  2692. <filename>COREBASE_FILES</filename> is used in order to
  2693. only copy the files that are actually needed.
  2694. </para>
  2695. </glossdef>
  2696. </glossentry>
  2697. <glossentry id='var-CPP'><glossterm>CPP</glossterm>
  2698. <info>
  2699. CPP[doc] = "Minimum command and arguments to run the C preprocessor."
  2700. </info>
  2701. <glossdef>
  2702. <para role="glossdeffirst">
  2703. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2704. The minimal command and arguments used to run the C
  2705. preprocessor.
  2706. </para>
  2707. </glossdef>
  2708. </glossentry>
  2709. <glossentry id='var-CPPFLAGS'><glossterm>CPPFLAGS</glossterm>
  2710. <info>
  2711. CPPFLAGS[doc] = "Specifies the flags to pass to the C pre-processor (i.e. to both the C and the C++ compilers)."
  2712. </info>
  2713. <glossdef>
  2714. <para role="glossdeffirst">
  2715. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2716. Specifies the flags to pass to the C pre-processor
  2717. (i.e. to both the C and the C++ compilers).
  2718. This variable is exported to an environment
  2719. variable and thus made visible to the software being
  2720. built during the compilation step.
  2721. </para>
  2722. <para>
  2723. Default initialization for <filename>CPPFLAGS</filename>
  2724. varies depending on what is being built:
  2725. <itemizedlist>
  2726. <listitem><para>
  2727. <link linkend='var-TARGET_CPPFLAGS'><filename>TARGET_CPPFLAGS</filename></link>
  2728. when building for the target
  2729. </para></listitem>
  2730. <listitem><para>
  2731. <link linkend='var-BUILD_CPPFLAGS'><filename>BUILD_CPPFLAGS</filename></link>
  2732. when building for the build host (i.e.
  2733. <filename>-native</filename>)
  2734. </para></listitem>
  2735. <listitem><para>
  2736. <link linkend='var-BUILDSDK_CPPFLAGS'><filename>BUILDSDK_CPPFLAGS</filename></link>
  2737. when building for an SDK (i.e.
  2738. <filename>nativesdk-</filename>)
  2739. </para></listitem>
  2740. </itemizedlist>
  2741. </para>
  2742. </glossdef>
  2743. </glossentry>
  2744. <glossentry id='var-CROSS_COMPILE'><glossterm>CROSS_COMPILE</glossterm>
  2745. <info>
  2746. CROSS_COMPILE[doc] = "The toolchain binary prefix for the target tools."
  2747. </info>
  2748. <glossdef>
  2749. <para role="glossdeffirst">
  2750. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2751. The toolchain binary prefix for the target tools.
  2752. The <filename>CROSS_COMPILE</filename> variable is the
  2753. same as the
  2754. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  2755. variable.
  2756. <note>
  2757. The OpenEmbedded build system sets the
  2758. <filename>CROSS_COMPILE</filename> variable only in
  2759. certain contexts (e.g. when building for kernel
  2760. and kernel module recipes).
  2761. </note>
  2762. </para>
  2763. </glossdef>
  2764. </glossentry>
  2765. <glossentry id='var-CVSDIR'><glossterm>CVSDIR</glossterm>
  2766. <info>
  2767. CVSDIR[doc] = "The directory where cvs checkouts will be stored in."
  2768. </info>
  2769. <glossdef>
  2770. <para role="glossdeffirst">
  2771. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2772. The directory in which files checked out under the
  2773. CVS system are stored.
  2774. </para>
  2775. </glossdef>
  2776. </glossentry>
  2777. <glossentry id='var-CXX'><glossterm>CXX</glossterm>
  2778. <info>
  2779. CXX[doc] = "Minimum command and arguments to run the C++ compiler."
  2780. </info>
  2781. <glossdef>
  2782. <para role="glossdeffirst">
  2783. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2784. The minimal command and arguments used to run the C++
  2785. compiler.
  2786. </para>
  2787. </glossdef>
  2788. </glossentry>
  2789. <glossentry id='var-CXXFLAGS'><glossterm>CXXFLAGS</glossterm>
  2790. <info>
  2791. CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler."
  2792. </info>
  2793. <glossdef>
  2794. <para role="glossdeffirst">
  2795. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2796. Specifies the flags to pass to the C++ compiler.
  2797. This variable is exported to an environment
  2798. variable and thus made visible to the software being
  2799. built during the compilation step.
  2800. </para>
  2801. <para>
  2802. Default initialization for <filename>CXXFLAGS</filename>
  2803. varies depending on what is being built:
  2804. <itemizedlist>
  2805. <listitem><para>
  2806. <link linkend='var-TARGET_CXXFLAGS'><filename>TARGET_CXXFLAGS</filename></link>
  2807. when building for the target
  2808. </para></listitem>
  2809. <listitem><para>
  2810. <link linkend='var-BUILD_CXXFLAGS'><filename>BUILD_CXXFLAGS</filename></link>
  2811. when building for the build host (i.e.
  2812. <filename>-native</filename>)
  2813. </para></listitem>
  2814. <listitem><para>
  2815. <link linkend='var-BUILDSDK_CXXFLAGS'><filename>BUILDSDK_CXXFLAGS</filename></link>
  2816. when building for an SDK (i.e.
  2817. <filename>nativesdk-</filename>)
  2818. </para></listitem>
  2819. </itemizedlist>
  2820. </para>
  2821. </glossdef>
  2822. </glossentry>
  2823. </glossdiv>
  2824. <glossdiv id='var-glossary-d'><title>D</title>
  2825. <glossentry id='var-D'><glossterm>D</glossterm>
  2826. <info>
  2827. D[doc] = "The destination directory."
  2828. </info>
  2829. <glossdef>
  2830. <para role="glossdeffirst">
  2831. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2832. The destination directory.
  2833. The location in the
  2834. <link linkend='build-directory'>Build Directory</link>
  2835. where components are installed by the
  2836. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  2837. task.
  2838. This location defaults to:
  2839. <literallayout class='monospaced'>
  2840. ${WORKDIR}/image
  2841. </literallayout>
  2842. <note><title>Caution</title>
  2843. Tasks that read from or write to this directory should
  2844. run under
  2845. <ulink url='&YOCTO_DOCS_OM_URL;#fakeroot-and-pseudo'>fakeroot</ulink>.
  2846. </note>
  2847. </para>
  2848. </glossdef>
  2849. </glossentry>
  2850. <glossentry id='var-DATE'><glossterm>DATE</glossterm>
  2851. <info>
  2852. DATE[doc] = "The date the build was started using YMD format."
  2853. </info>
  2854. <glossdef>
  2855. <para role="glossdeffirst">
  2856. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2857. The date the build was started.
  2858. Dates appear using the year, month, and day (YMD) format
  2859. (e.g. "20150209" for February 9th, 2015).
  2860. </para>
  2861. </glossdef>
  2862. </glossentry>
  2863. <glossentry id='var-DATETIME'><glossterm>DATETIME</glossterm>
  2864. <info>
  2865. DATETIME[doc] = "The date and time the build was started."
  2866. </info>
  2867. <glossdef>
  2868. <para role="glossdeffirst">
  2869. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2870. The date and time on which the current build started.
  2871. The format is suitable for timestamps.
  2872. </para>
  2873. </glossdef>
  2874. </glossentry>
  2875. <glossentry id='var-DEBIAN_NOAUTONAME'><glossterm>DEBIAN_NOAUTONAME</glossterm>
  2876. <info>
  2877. DEBIAN_NOAUTONAME[doc] = "Prevents a particular package from being renamed according to Debian package naming."
  2878. </info>
  2879. <glossdef>
  2880. <para role="glossdeffirst">
  2881. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2882. When the
  2883. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  2884. class is inherited, which is the default behavior,
  2885. <filename>DEBIAN_NOAUTONAME</filename> specifies a
  2886. particular package should not be renamed according to
  2887. Debian library package naming.
  2888. You must use the package name as an override when you
  2889. set this variable.
  2890. Here is an example from the <filename>fontconfig</filename>
  2891. recipe:
  2892. <literallayout class='monospaced'>
  2893. DEBIAN_NOAUTONAME_fontconfig-utils = "1"
  2894. </literallayout>
  2895. </para>
  2896. </glossdef>
  2897. </glossentry>
  2898. <glossentry id='var-DEBIANNAME'><glossterm>DEBIANNAME</glossterm>
  2899. <info>
  2900. DEBIANNAME[doc] = "Allows you to override the library name for an individual package for Debian library package renaming."
  2901. </info>
  2902. <glossdef>
  2903. <para role="glossdeffirst">
  2904. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2905. When the
  2906. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  2907. class is inherited, which is the default behavior,
  2908. <filename>DEBIANNAME</filename> allows you to override the
  2909. library name for an individual package.
  2910. Overriding the library name in these cases is rare.
  2911. You must use the package name as an override when you
  2912. set this variable.
  2913. Here is an example from the <filename>dbus</filename>
  2914. recipe:
  2915. <literallayout class='monospaced'>
  2916. DEBIANNAME_${PN} = "dbus-1"
  2917. </literallayout>
  2918. </para>
  2919. </glossdef>
  2920. </glossentry>
  2921. <glossentry id='var-DEBUG_BUILD'><glossterm>DEBUG_BUILD</glossterm>
  2922. <info>
  2923. DEBUG_BUILD[doc] = "Specifies to build packages with debugging information. This influences the value of the SELECTED_OPTIMIZATION variable."
  2924. </info>
  2925. <glossdef>
  2926. <para role="glossdeffirst">
  2927. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2928. Specifies to build packages with debugging information.
  2929. This influences the value of the
  2930. <filename><link linkend='var-SELECTED_OPTIMIZATION'>SELECTED_OPTIMIZATION</link></filename>
  2931. variable.
  2932. </para>
  2933. </glossdef>
  2934. </glossentry>
  2935. <glossentry id='var-DEBUG_OPTIMIZATION'><glossterm>DEBUG_OPTIMIZATION</glossterm>
  2936. <info>
  2937. 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'."
  2938. </info>
  2939. <glossdef>
  2940. <para role="glossdeffirst">
  2941. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2942. The options to pass in
  2943. <filename><link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link></filename>
  2944. and <filename><link linkend='var-CFLAGS'>CFLAGS</link></filename> when compiling
  2945. a system for debugging.
  2946. This variable defaults to "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  2947. </para>
  2948. </glossdef>
  2949. </glossentry>
  2950. <glossentry id='var-DEFAULT_PREFERENCE'><glossterm>DEFAULT_PREFERENCE</glossterm>
  2951. <info>
  2952. DEFAULT_PREFERENCE[doc] = "Specifies a weak bias for recipe selection priority."
  2953. </info>
  2954. <glossdef>
  2955. <para role="glossdeffirst">
  2956. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2957. Specifies a weak bias for recipe selection priority.
  2958. </para>
  2959. <para>
  2960. The most common usage of this is variable is to set
  2961. it to "-1" within a recipe for a development version of a
  2962. piece of software.
  2963. Using the variable in this way causes the stable version
  2964. of the recipe to build by default in the absence of
  2965. <filename><link linkend='var-PREFERRED_VERSION'>PREFERRED_VERSION</link></filename>
  2966. being used to build the development version.
  2967. </para>
  2968. <note>
  2969. The bias provided by <filename>DEFAULT_PREFERENCE</filename>
  2970. is weak and is overridden by
  2971. <filename><link linkend='var-BBFILE_PRIORITY'>BBFILE_PRIORITY</link></filename>
  2972. if that variable is different between two layers
  2973. that contain different versions of the same recipe.
  2974. </note>
  2975. </glossdef>
  2976. </glossentry>
  2977. <glossentry id='var-DEFAULTTUNE'><glossterm>DEFAULTTUNE</glossterm>
  2978. <info>
  2979. DEFAULTTUNE[doc] = "The default CPU and Application Binary Interface (ABI) tunings (i.e. the "tune") used by the OpenEmbedded build system."
  2980. </info>
  2981. <glossdef>
  2982. <para role="glossdeffirst">
  2983. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2984. The default CPU and Application Binary Interface (ABI)
  2985. tunings (i.e. the "tune") used by the OpenEmbedded build
  2986. system.
  2987. The <filename>DEFAULTTUNE</filename> helps define
  2988. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  2989. </para>
  2990. <para>
  2991. The default tune is either implicitly or explicitly set
  2992. by the machine
  2993. (<link linkend='var-MACHINE'><filename>MACHINE</filename></link>).
  2994. However, you can override the setting using available tunes
  2995. as defined with
  2996. <link linkend='var-AVAILTUNES'><filename>AVAILTUNES</filename></link>.
  2997. </para>
  2998. </glossdef>
  2999. </glossentry>
  3000. <glossentry id='var-DEPENDS'><glossterm>DEPENDS</glossterm>
  3001. <info>
  3002. DEPENDS[doc] = "Lists a recipe's build-time dependencies (i.e. other recipe files)."
  3003. </info>
  3004. <glossdef>
  3005. <para role="glossdeffirst">
  3006. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3007. Lists a recipe's build-time dependencies.
  3008. These are dependencies on other recipes whose
  3009. contents (e.g. headers and shared libraries) are needed
  3010. by the recipe at build time.
  3011. </para>
  3012. <para>
  3013. As an example, consider a recipe <filename>foo</filename>
  3014. that contains the following assignment:
  3015. <literallayout class='monospaced'>
  3016. DEPENDS = "bar"
  3017. </literallayout>
  3018. The practical effect of the previous assignment is that
  3019. all files installed by bar will be available in the
  3020. appropriate staging sysroot, given by the
  3021. <link linkend='var-STAGING_DIR'><filename>STAGING_DIR*</filename></link>
  3022. variables, by the time the
  3023. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  3024. task for <filename>foo</filename> runs.
  3025. This mechanism is implemented by having
  3026. <filename>do_configure</filename> depend on the
  3027. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  3028. task of each recipe listed in <filename>DEPENDS</filename>,
  3029. through a
  3030. <filename>[</filename><ulink url='&YOCTO_DOCS_BB_URL;#variable-flags'><filename>deptask</filename></ulink><filename>]</filename>
  3031. declaration in the
  3032. <link linkend='ref-classes-base'><filename>base</filename></link>
  3033. class.
  3034. <note>
  3035. It seldom is necessary to reference, for example,
  3036. <filename>STAGING_DIR_HOST</filename> explicitly.
  3037. The standard classes and build-related variables are
  3038. configured to automatically use the appropriate staging
  3039. sysroots.
  3040. </note>
  3041. As another example, <filename>DEPENDS</filename> can also
  3042. be used to add utilities that run on the build machine
  3043. during the build.
  3044. For example, a recipe that makes use of a code generator
  3045. built by the recipe <filename>codegen</filename> might have
  3046. the following:
  3047. <literallayout class='monospaced'>
  3048. DEPENDS = "codegen-native"
  3049. </literallayout>
  3050. For more information, see the
  3051. <link linkend='ref-classes-native'><filename>native</filename></link>
  3052. class and the
  3053. <link linkend='var-EXTRANATIVEPATH'><filename>EXTRANATIVEPATH</filename></link>
  3054. variable.
  3055. <note>
  3056. <title>Notes</title>
  3057. <itemizedlist>
  3058. <listitem><para>
  3059. <filename>DEPENDS</filename> is a list of
  3060. recipe names.
  3061. Or, to be more precise, it is a list of
  3062. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  3063. names, which usually match recipe names.
  3064. Putting a package name such as "foo-dev" in
  3065. <filename>DEPENDS</filename> does not make
  3066. sense.
  3067. Use "foo" instead, as this will put files
  3068. from all the packages that make up
  3069. <filename>foo</filename>, which includes
  3070. those from <filename>foo-dev</filename>, into
  3071. the sysroot.
  3072. </para></listitem>
  3073. <listitem><para>
  3074. One recipe having another recipe in
  3075. <filename>DEPENDS</filename> does not by itself
  3076. add any runtime dependencies between the
  3077. packages produced by the two recipes.
  3078. However, as explained in the
  3079. "<ulink url='&YOCTO_DOCS_OM_URL;#automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</ulink>"
  3080. section in the Yocto Project Overview and
  3081. Concepts Manual, runtime dependencies will
  3082. often be added automatically, meaning
  3083. <filename>DEPENDS</filename> alone is
  3084. sufficient for most recipes.
  3085. </para></listitem>
  3086. <listitem><para>
  3087. Counterintuitively,
  3088. <filename>DEPENDS</filename> is often necessary
  3089. even for recipes that install precompiled
  3090. components.
  3091. For example, if <filename>libfoo</filename>
  3092. is a precompiled library that links against
  3093. <filename>libbar</filename>, then
  3094. linking against <filename>libfoo</filename>
  3095. requires both <filename>libfoo</filename>
  3096. and <filename>libbar</filename> to be available
  3097. in the sysroot.
  3098. Without a <filename>DEPENDS</filename> from the
  3099. recipe that installs <filename>libfoo</filename>
  3100. to the recipe that installs
  3101. <filename>libbar</filename>, other recipes might
  3102. fail to link against
  3103. <filename>libfoo</filename>.
  3104. </para></listitem>
  3105. </itemizedlist>
  3106. </note>
  3107. </para>
  3108. <para>
  3109. For information on runtime dependencies, see the
  3110. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  3111. variable.
  3112. You can also see the
  3113. "<ulink url='&YOCTO_DOCS_BB_URL;#tasks'>Tasks</ulink>" and
  3114. "<ulink url='&YOCTO_DOCS_BB_URL;#dependencies'>Dependencies</ulink>"
  3115. sections in the BitBake User Manual for additional
  3116. information on tasks and dependencies.
  3117. </para>
  3118. </glossdef>
  3119. </glossentry>
  3120. <glossentry id='var-DEPLOY_DIR'><glossterm>DEPLOY_DIR</glossterm>
  3121. <info>
  3122. 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."
  3123. </info>
  3124. <glossdef>
  3125. <para role="glossdeffirst">
  3126. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3127. Points to the general area that the OpenEmbedded build
  3128. system uses to place images, packages, SDKs, and other output
  3129. files that are ready to be used outside of the build system.
  3130. By default, this directory resides within the
  3131. <link linkend='build-directory'>Build Directory</link>
  3132. as <filename>${TMPDIR}/deploy</filename>.
  3133. </para>
  3134. <para>
  3135. For more information on the structure of the Build
  3136. Directory, see
  3137. "<link linkend='structure-build'>The Build Directory - <filename>build/</filename></link>"
  3138. section.
  3139. For more detail on the contents of the
  3140. <filename>deploy</filename> directory, see the
  3141. "<ulink url='&YOCTO_DOCS_OM_URL;#images-dev-environment'>Images</ulink>",
  3142. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>",
  3143. and
  3144. "<ulink url='&YOCTO_DOCS_OM_URL;#sdk-dev-environment'>Application Development SDK</ulink>"
  3145. sections all in the Yocto Project Overview and Concepts
  3146. Manual.
  3147. </para>
  3148. </glossdef>
  3149. </glossentry>
  3150. <glossentry id='var-DEPLOY_DIR_DEB'><glossterm>DEPLOY_DIR_DEB</glossterm>
  3151. <info>
  3152. 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."
  3153. </info>
  3154. <glossdef>
  3155. <para role="glossdeffirst">
  3156. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3157. Points to the area that the OpenEmbedded build system uses
  3158. to place Debian packages that are ready to be used outside
  3159. of the build system.
  3160. This variable applies only when
  3161. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  3162. contains "package_deb".
  3163. </para>
  3164. <para>
  3165. The BitBake configuration file initially defines the
  3166. <filename>DEPLOY_DIR_DEB</filename> variable as a
  3167. sub-folder of
  3168. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3169. <literallayout class='monospaced'>
  3170. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  3171. </literallayout>
  3172. </para>
  3173. <para>
  3174. The
  3175. <link linkend='ref-classes-package_deb'><filename>package_deb</filename></link>
  3176. class uses the
  3177. <filename>DEPLOY_DIR_DEB</filename> variable to make sure
  3178. the
  3179. <link linkend='ref-tasks-package_write_deb'><filename>do_package_write_deb</filename></link>
  3180. task writes Debian packages into the appropriate folder.
  3181. For more information on how packaging works, see the
  3182. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>"
  3183. section in the Yocto Project Overview and Concepts Manual.
  3184. </para>
  3185. </glossdef>
  3186. </glossentry>
  3187. <glossentry id='var-DEPLOY_DIR_IMAGE'><glossterm>DEPLOY_DIR_IMAGE</glossterm>
  3188. <info>
  3189. 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."
  3190. </info>
  3191. <glossdef>
  3192. <para role="glossdeffirst">
  3193. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3194. Points to the area that the OpenEmbedded build system uses
  3195. to place images and other associated output files that are
  3196. ready to be deployed onto the target machine.
  3197. The directory is machine-specific as it contains the
  3198. <filename>${MACHINE}</filename> name.
  3199. By default, this directory resides within the
  3200. <link linkend='build-directory'>Build Directory</link>
  3201. as <filename>${DEPLOY_DIR}/images/${MACHINE}/</filename>.
  3202. </para>
  3203. <para>
  3204. For more information on the structure of the Build
  3205. Directory, see
  3206. "<link linkend='structure-build'>The Build Directory - <filename>build/</filename></link>"
  3207. section.
  3208. For more detail on the contents of the
  3209. <filename>deploy</filename> directory, see the
  3210. "<ulink url='&YOCTO_DOCS_OM_URL;#images-dev-environment'>Images</ulink>"
  3211. and
  3212. "<ulink url='&YOCTO_DOCS_OM_URL;#sdk-dev-environment'>Application Development SDK</ulink>"
  3213. sections both in the Yocto Project Overview and Concepts
  3214. Manual.
  3215. </para>
  3216. </glossdef>
  3217. </glossentry>
  3218. <glossentry id='var-DEPLOY_DIR_IPK'><glossterm>DEPLOY_DIR_IPK</glossterm>
  3219. <info>
  3220. 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."
  3221. </info>
  3222. <glossdef>
  3223. <para role="glossdeffirst">
  3224. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3225. Points to the area that the OpenEmbedded build system uses
  3226. to place IPK packages that are ready to be used outside of
  3227. the build system.
  3228. This variable applies only when
  3229. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  3230. contains "package_ipk".
  3231. </para>
  3232. <para>
  3233. The BitBake configuration file initially defines this
  3234. variable as a sub-folder of
  3235. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3236. <literallayout class='monospaced'>
  3237. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  3238. </literallayout>
  3239. </para>
  3240. <para>
  3241. The
  3242. <link linkend='ref-classes-package_ipk'><filename>package_ipk</filename></link>
  3243. class uses the
  3244. <filename>DEPLOY_DIR_IPK</filename> variable to make sure
  3245. the
  3246. <link linkend='ref-tasks-package_write_ipk'><filename>do_package_write_ipk</filename></link>
  3247. task writes IPK packages into the appropriate folder.
  3248. For more information on how packaging works, see the
  3249. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>"
  3250. section in the Yocto Project Overview and Concepts Manual.
  3251. </para>
  3252. </glossdef>
  3253. </glossentry>
  3254. <glossentry id='var-DEPLOY_DIR_RPM'><glossterm>DEPLOY_DIR_RPM</glossterm>
  3255. <info>
  3256. 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."
  3257. </info>
  3258. <glossdef>
  3259. <para role="glossdeffirst">
  3260. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3261. Points to the area that the OpenEmbedded build system uses
  3262. to place RPM packages that are ready to be used outside
  3263. of the build system.
  3264. This variable applies only when
  3265. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  3266. contains "package_rpm".
  3267. </para>
  3268. <para>
  3269. The BitBake configuration file initially defines this
  3270. variable as a sub-folder of
  3271. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3272. <literallayout class='monospaced'>
  3273. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  3274. </literallayout>
  3275. </para>
  3276. <para>
  3277. The
  3278. <link linkend='ref-classes-package_rpm'><filename>package_rpm</filename></link>
  3279. class uses the
  3280. <filename>DEPLOY_DIR_RPM</filename> variable to make sure
  3281. the
  3282. <link linkend='ref-tasks-package_write_rpm'><filename>do_package_write_rpm</filename></link>
  3283. task writes RPM packages into the appropriate folder.
  3284. For more information on how packaging works, see the
  3285. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>"
  3286. section in the Yocto Project Overview and Concepts Manual.
  3287. </para>
  3288. </glossdef>
  3289. </glossentry>
  3290. <glossentry id='var-DEPLOY_DIR_TAR'><glossterm>DEPLOY_DIR_TAR</glossterm>
  3291. <info>
  3292. 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."
  3293. </info>
  3294. <glossdef>
  3295. <para role="glossdeffirst">
  3296. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3297. Points to the area that the OpenEmbedded build system uses
  3298. to place tarballs that are ready to be used outside of
  3299. the build system.
  3300. This variable applies only when
  3301. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  3302. contains "package_tar".
  3303. </para>
  3304. <para>
  3305. The BitBake configuration file initially defines this
  3306. variable as a sub-folder of
  3307. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3308. <literallayout class='monospaced'>
  3309. DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
  3310. </literallayout>
  3311. </para>
  3312. <para>
  3313. The
  3314. <link linkend='ref-classes-package_tar'><filename>package_tar</filename></link>
  3315. class uses the
  3316. <filename>DEPLOY_DIR_TAR</filename> variable to make sure
  3317. the
  3318. <link linkend='ref-tasks-package_write_tar'><filename>do_package_write_tar</filename></link>
  3319. task writes TAR packages into the appropriate folder.
  3320. For more information on how packaging works, see the
  3321. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>"
  3322. section in the Yocto Project Overview and Concepts Manual.
  3323. </para>
  3324. </glossdef>
  3325. </glossentry>
  3326. <glossentry id='var-DEPLOYDIR'><glossterm>DEPLOYDIR</glossterm>
  3327. <info>
  3328. DEPLOYDIR[doc] = "For recipes that inherit the deploy class, the DEPLOYDIR points to a temporary work area for deployed files."
  3329. </info>
  3330. <glossdef>
  3331. <para role="glossdeffirst">
  3332. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3333. When inheriting the
  3334. <link linkend='ref-classes-deploy'><filename>deploy</filename></link>
  3335. class, the <filename>DEPLOYDIR</filename> points to a
  3336. temporary work area for deployed files that is set in the
  3337. <filename>deploy</filename> class as follows:
  3338. <literallayout class='monospaced'>
  3339. DEPLOYDIR = "${WORKDIR}/deploy-${<link linkend='var-PN'><filename>PN</filename></link>}"
  3340. </literallayout>
  3341. </para>
  3342. <para>
  3343. Recipes inheriting the <filename>deploy</filename> class
  3344. should copy files to be deployed into
  3345. <filename>DEPLOYDIR</filename>, and the class will take
  3346. care of copying them into
  3347. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>
  3348. afterwards.
  3349. </para>
  3350. </glossdef>
  3351. </glossentry>
  3352. <glossentry id='var-DESCRIPTION'><glossterm>DESCRIPTION</glossterm>
  3353. <info>
  3354. DESCRIPTION[doc] = "The package description used by package managers. If not set, DESCRIPTION takes the value of the SUMMARY variable."
  3355. </info>
  3356. <glossdef>
  3357. <para role="glossdeffirst">
  3358. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3359. The package description used by package managers.
  3360. If not set, <filename>DESCRIPTION</filename> takes
  3361. the value of the
  3362. <link linkend='var-SUMMARY'><filename>SUMMARY</filename></link>
  3363. variable.
  3364. </para>
  3365. </glossdef>
  3366. </glossentry>
  3367. <glossentry id='var-DISK_SIGNATURE'><glossterm>DISK_SIGNATURE</glossterm>
  3368. <info>
  3369. DISK_SIGNATURE[doc] = "A 32-bit MBR disk signature used by directdisk images."
  3370. </info>
  3371. <glossdef>
  3372. <para role="glossdeffirst">
  3373. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3374. A 32-bit MBR disk signature used by
  3375. <filename>directdisk</filename> images.
  3376. </para>
  3377. <para>
  3378. By default, the signature is set to an automatically
  3379. generated random value that allows the OpenEmbedded
  3380. build system to create a boot loader.
  3381. You can override the signature in the image recipe
  3382. by setting <filename>DISK_SIGNATURE</filename> to an
  3383. 8-digit hex string.
  3384. You might want to override
  3385. <filename>DISK_SIGNATURE</filename> if you want the disk
  3386. signature to remain constant between image builds.
  3387. </para>
  3388. <para>
  3389. When using Linux 3.8 or later, you can use
  3390. <filename>DISK_SIGNATURE</filename> to specify the root
  3391. by UUID to allow the kernel to locate the root device
  3392. even if the device name changes due to differences in
  3393. hardware configuration.
  3394. By default, <filename>ROOT_VM</filename> is set
  3395. as follows:
  3396. <literallayout class='monospaced'>
  3397. ROOT_VM ?= "root=/dev/sda2"
  3398. </literallayout>
  3399. However, you can change this to locate the root device
  3400. using the disk signature instead:
  3401. <literallayout class='monospaced'>
  3402. ROOT_VM = "root=PARTUUID=${DISK_SIGNATURE}-02"
  3403. </literallayout>
  3404. </para>
  3405. <para>
  3406. As previously mentioned, it is possible to set the
  3407. <filename>DISK_SIGNATURE</filename> variable in your
  3408. <filename>local.conf</filename> file to a fixed
  3409. value if you do not want <filename>syslinux.cfg</filename>
  3410. changing for each build.
  3411. You might find this useful when you want to upgrade the
  3412. root filesystem on a device without having to recreate or
  3413. modify the master boot record.
  3414. </para>
  3415. </glossdef>
  3416. </glossentry>
  3417. <glossentry id='var-DISTRO'><glossterm>DISTRO</glossterm>
  3418. <info>
  3419. DISTRO[doc] = "The short name of the distribution. If the variable is blank, meta/conf/distro/defaultsetup.conf will be used."
  3420. </info>
  3421. <glossdef>
  3422. <para role="glossdeffirst">
  3423. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3424. The short name of the distribution.
  3425. For information on the long name of the distribution, see
  3426. the
  3427. <link linkend='var-DISTRO_NAME'><filename>DISTRO_NAME</filename></link>
  3428. variable.
  3429. </para>
  3430. <para>
  3431. The <filename>DISTRO</filename> variable corresponds to a
  3432. distribution configuration file whose root name is the
  3433. same as the variable's argument and whose filename
  3434. extension is <filename>.conf</filename>.
  3435. For example, the distribution configuration file for the
  3436. Poky distribution is named <filename>poky.conf</filename>
  3437. and resides in the
  3438. <filename>meta-poky/conf/distro</filename> directory of
  3439. the
  3440. <link linkend='source-directory'>Source Directory</link>.
  3441. </para>
  3442. <para>
  3443. Within that <filename>poky.conf</filename> file, the
  3444. <filename>DISTRO</filename> variable is set as follows:
  3445. <literallayout class='monospaced'>
  3446. DISTRO = "poky"
  3447. </literallayout>
  3448. </para>
  3449. <para>
  3450. Distribution configuration files are located in a
  3451. <filename>conf/distro</filename> directory within the
  3452. <link linkend='metadata'>Metadata</link>
  3453. that contains the distribution configuration.
  3454. The value for <filename>DISTRO</filename> must not contain
  3455. spaces, and is typically all lower-case.
  3456. <note>
  3457. If the <filename>DISTRO</filename> variable is blank,
  3458. a set of default configurations are used, which are
  3459. specified within
  3460. <filename>meta/conf/distro/defaultsetup.conf</filename>
  3461. also in the Source Directory.
  3462. </note>
  3463. </para>
  3464. </glossdef>
  3465. </glossentry>
  3466. <glossentry id='var-DISTRO_CODENAME'><glossterm>DISTRO_CODENAME</glossterm>
  3467. <info>
  3468. DISTRO_CODENAME[doc] = "Specifies a codename for the distribution being built."
  3469. </info>
  3470. <glossdef>
  3471. <para role="glossdeffirst">
  3472. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3473. Specifies a codename for the distribution being built.
  3474. </para>
  3475. </glossdef>
  3476. </glossentry>
  3477. <glossentry id='var-DISTRO_EXTRA_RDEPENDS'><glossterm>DISTRO_EXTRA_RDEPENDS</glossterm>
  3478. <info>
  3479. 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."
  3480. </info>
  3481. <glossdef>
  3482. <para role="glossdeffirst">
  3483. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3484. Specifies a list of distro-specific packages to add to all images.
  3485. This variable takes affect through
  3486. <filename>packagegroup-base</filename> so the
  3487. variable only really applies to the more full-featured
  3488. images that include <filename>packagegroup-base</filename>.
  3489. You can use this variable to keep distro policy out of
  3490. generic images.
  3491. As with all other distro variables, you set this variable
  3492. in the distro <filename>.conf</filename> file.
  3493. </para>
  3494. </glossdef>
  3495. </glossentry>
  3496. <glossentry id='var-DISTRO_EXTRA_RRECOMMENDS'><glossterm>DISTRO_EXTRA_RRECOMMENDS</glossterm>
  3497. <info>
  3498. 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."
  3499. </info>
  3500. <glossdef>
  3501. <para role="glossdeffirst">
  3502. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3503. Specifies a list of distro-specific packages to add to all images
  3504. if the packages exist.
  3505. The packages might not exist or be empty (e.g. kernel modules).
  3506. The list of packages are automatically installed but you can
  3507. remove them.
  3508. </para>
  3509. </glossdef>
  3510. </glossentry>
  3511. <glossentry id='var-DISTRO_FEATURES'><glossterm>DISTRO_FEATURES</glossterm>
  3512. <info>
  3513. DISTRO_FEATURES[doc] = "The features enabled for the distribution."
  3514. </info>
  3515. <glossdef>
  3516. <para role="glossdeffirst">
  3517. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3518. The software support you want in your distribution for
  3519. various features.
  3520. You define your distribution features in the distribution
  3521. configuration file.
  3522. </para>
  3523. <para>
  3524. In most cases, the presence or absence of a feature in
  3525. <filename>DISTRO_FEATURES</filename> is translated to the
  3526. appropriate option supplied to the configure script
  3527. during the
  3528. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  3529. task for recipes that optionally support the feature.
  3530. For example, specifying "x11" in
  3531. <filename>DISTRO_FEATURES</filename>, causes
  3532. every piece of software built for the target that can
  3533. optionally support X11 to have its X11 support enabled.
  3534. </para>
  3535. <para>
  3536. Two more examples are Bluetooth and NFS support.
  3537. For a more complete list of features that ships with the
  3538. Yocto Project and that you can provide with this variable,
  3539. see the
  3540. "<link linkend='ref-features-distro'>Distro Features</link>"
  3541. section.
  3542. </para>
  3543. </glossdef>
  3544. </glossentry>
  3545. <glossentry id='var-DISTRO_FEATURES_BACKFILL'><glossterm>DISTRO_FEATURES_BACKFILL</glossterm>
  3546. <info>
  3547. 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."
  3548. </info>
  3549. <glossdef>
  3550. <para role="glossdeffirst">
  3551. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3552. Features to be added to
  3553. <filename><link linkend='var-DISTRO_FEATURES'>DISTRO_FEATURES</link></filename>
  3554. if not also present in
  3555. <filename><link linkend='var-DISTRO_FEATURES_BACKFILL_CONSIDERED'>DISTRO_FEATURES_BACKFILL_CONSIDERED</link></filename>.
  3556. </para>
  3557. <para>
  3558. This variable is set in the <filename>meta/conf/bitbake.conf</filename> file.
  3559. It is not intended to be user-configurable.
  3560. It is best to just reference the variable to see which distro features are
  3561. being backfilled for all distro configurations.
  3562. See the <link linkend='ref-features-backfill'>Feature Backfilling</link> section for
  3563. more information.
  3564. </para>
  3565. </glossdef>
  3566. </glossentry>
  3567. <glossentry id='var-DISTRO_FEATURES_BACKFILL_CONSIDERED'><glossterm>DISTRO_FEATURES_BACKFILL_CONSIDERED</glossterm>
  3568. <info>
  3569. DISTRO_FEATURES_BACKFILL_CONSIDERED[doc] = "Features from DISTRO_FEATURES_BACKFILL that should not be backfilled (i.e. added to DISTRO_FEATURES) during the build."
  3570. </info>
  3571. <glossdef>
  3572. <para role="glossdeffirst">
  3573. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3574. Features from
  3575. <filename><link linkend='var-DISTRO_FEATURES_BACKFILL'>DISTRO_FEATURES_BACKFILL</link></filename>
  3576. that should not be backfilled (i.e. added to
  3577. <filename><link linkend='var-DISTRO_FEATURES'>DISTRO_FEATURES</link></filename>)
  3578. during the build.
  3579. See the "<link linkend='ref-features-backfill'>Feature Backfilling</link>" section for
  3580. more information.
  3581. </para>
  3582. </glossdef>
  3583. </glossentry>
  3584. <glossentry id='var-DISTRO_FEATURES_DEFAULT'><glossterm>DISTRO_FEATURES_DEFAULT</glossterm>
  3585. <info>
  3586. DISTRO_FEATURES_DEFAULT[doc] = "Provides the default list of distro features with the exception of any libc-specific features."
  3587. </info>
  3588. <glossdef>
  3589. <para role="glossdeffirst">
  3590. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3591. A convenience variable that gives you the default
  3592. list of distro features with the exception of any
  3593. features specific to the C library
  3594. (<filename>libc</filename>).
  3595. </para>
  3596. <para>
  3597. When creating a custom distribution, you might find it
  3598. useful to be able to reuse the default
  3599. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3600. options without the need to write out the full set.
  3601. Here is an example that uses
  3602. <filename>DISTRO_FEATURES_DEFAULT</filename> from a
  3603. custom distro configuration file:
  3604. <literallayout class='monospaced'>
  3605. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} myfeature"
  3606. </literallayout>
  3607. </para>
  3608. </glossdef>
  3609. </glossentry>
  3610. <glossentry id='var-DISTRO_FEATURES_FILTER_NATIVE'><glossterm>DISTRO_FEATURES_FILTER_NATIVE</glossterm>
  3611. <info>
  3612. DISTRO_FEATURES_FILTER_NATIVE[doc] = "Specifies a list of features that if present in the target DISTRO_FEATURES value should be included in DISTRO_FEATURES when building native recipes."
  3613. </info>
  3614. <glossdef>
  3615. <para role="glossdeffirst">
  3616. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3617. Specifies a list of features that if present in
  3618. the target
  3619. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3620. value should be included in
  3621. <filename>DISTRO_FEATURES</filename> when building native
  3622. recipes.
  3623. This variable is used in addition to the features
  3624. filtered using the
  3625. <link linkend='var-DISTRO_FEATURES_NATIVE'><filename>DISTRO_FEATURES_NATIVE</filename></link>
  3626. variable.
  3627. </para>
  3628. </glossdef>
  3629. </glossentry>
  3630. <glossentry id='var-DISTRO_FEATURES_FILTER_NATIVESDK'><glossterm>DISTRO_FEATURES_FILTER_NATIVESDK</glossterm>
  3631. <info>
  3632. DISTRO_FEATURES_FILTER_NATIVESDK[doc] = "Specifies a list of features that if present in the target DISTRO_FEATURES value should be included in DISTRO_FEATURES when building nativesdk recipes."
  3633. </info>
  3634. <glossdef>
  3635. <para role="glossdeffirst">
  3636. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3637. Specifies a list of features that if present in the target
  3638. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3639. value should be included in
  3640. <filename>DISTRO_FEATURES</filename> when building
  3641. nativesdk recipes.
  3642. This variable is used in addition to the features
  3643. filtered using the
  3644. <link linkend='var-DISTRO_FEATURES_NATIVESDK'><filename>DISTRO_FEATURES_NATIVESDK</filename></link>
  3645. variable.
  3646. </para>
  3647. </glossdef>
  3648. </glossentry>
  3649. <glossentry id='var-DISTRO_FEATURES_LIBC'><glossterm>DISTRO_FEATURES_LIBC</glossterm>
  3650. <info>
  3651. DISTRO_FEATURES_LIBC[doc] = "Specifies the list of distro features that are specific to the C library (libc)."
  3652. </info>
  3653. <glossdef>
  3654. <para role="glossdeffirst">
  3655. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3656. A convenience variable that specifies the list of distro
  3657. features that are specific to the C library
  3658. (<filename>libc</filename>).
  3659. Typically, these features are prefixed with "libc-" and
  3660. control which features are enabled at during the build
  3661. within the C library itself.
  3662. </para>
  3663. </glossdef>
  3664. </glossentry>
  3665. <glossentry id='var-DISTRO_FEATURES_NATIVE'><glossterm>DISTRO_FEATURES_NATIVE</glossterm>
  3666. <info>
  3667. DISTRO_FEATURES_NATIVE[doc] = "Specifies a list of features that should be included in DISTRO_FEATURES when building native recipes."
  3668. </info>
  3669. <glossdef>
  3670. <para role="glossdeffirst">
  3671. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3672. Specifies a list of features that should be included in
  3673. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3674. when building native recipes.
  3675. This variable is used in addition to the features
  3676. filtered using the
  3677. <link linkend='var-DISTRO_FEATURES_FILTER_NATIVE'><filename>DISTRO_FEATURES_FILTER_NATIVE</filename></link>
  3678. variable.
  3679. </para>
  3680. </glossdef>
  3681. </glossentry>
  3682. <glossentry id='var-DISTRO_FEATURES_NATIVESDK'><glossterm>DISTRO_FEATURES_NATIVESDK</glossterm>
  3683. <info>
  3684. DISTRO_FEATURES_NATIVESDK[doc] = "Specifies a list of features that should be included in DISTRO_FEATURES when building nativesdk recipes."
  3685. </info>
  3686. <glossdef>
  3687. <para role="glossdeffirst">
  3688. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3689. Specifies a list of features that should be included in
  3690. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3691. when building nativesdk recipes.
  3692. This variable is used in addition to the features
  3693. filtered using the
  3694. <link linkend='var-DISTRO_FEATURES_FILTER_NATIVESDK'><filename>DISTRO_FEATURES_FILTER_NATIVESDK</filename></link>
  3695. variable.
  3696. </para>
  3697. </glossdef>
  3698. </glossentry>
  3699. <glossentry id='var-DISTRO_NAME'><glossterm>DISTRO_NAME</glossterm>
  3700. <info>
  3701. DISTRO_NAME[doc] = "The long name of the distribution."
  3702. </info>
  3703. <glossdef>
  3704. <para role="glossdeffirst">
  3705. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3706. The long name of the distribution.
  3707. For information on the short name of the distribution, see
  3708. the
  3709. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>
  3710. variable.
  3711. </para>
  3712. <para>
  3713. The <filename>DISTRO_NAME</filename> variable corresponds
  3714. to a distribution configuration file whose root name is the
  3715. same as the variable's argument and whose filename
  3716. extension is <filename>.conf</filename>.
  3717. For example, the distribution configuration file for the
  3718. Poky distribution is named <filename>poky.conf</filename>
  3719. and resides in the
  3720. <filename>meta-poky/conf/distro</filename> directory of
  3721. the
  3722. <link linkend='source-directory'>Source Directory</link>.
  3723. </para>
  3724. <para>
  3725. Within that <filename>poky.conf</filename> file, the
  3726. <filename>DISTRO_NAME</filename> variable is set as
  3727. follows:
  3728. <literallayout class='monospaced'>
  3729. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  3730. </literallayout>
  3731. </para>
  3732. <para>
  3733. Distribution configuration files are located in a
  3734. <filename>conf/distro</filename> directory within the
  3735. <link linkend='metadata'>Metadata</link>
  3736. that contains the distribution configuration.
  3737. <note>
  3738. If the <filename>DISTRO_NAME</filename> variable is
  3739. blank, a set of default configurations are used, which
  3740. are specified within
  3741. <filename>meta/conf/distro/defaultsetup.conf</filename>
  3742. also in the Source Directory.
  3743. </note>
  3744. </para>
  3745. </glossdef>
  3746. </glossentry>
  3747. <glossentry id='var-DISTRO_VERSION'><glossterm>DISTRO_VERSION</glossterm>
  3748. <info>
  3749. DISTRO_VERSION[doc] = "The version of the distribution."
  3750. </info>
  3751. <glossdef>
  3752. <para role="glossdeffirst">
  3753. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3754. The version of the distribution.
  3755. </para>
  3756. </glossdef>
  3757. </glossentry>
  3758. <glossentry id='var-DISTROOVERRIDES'><glossterm>DISTROOVERRIDES</glossterm>
  3759. <info>
  3760. DISTROOVERRIDES[doc] = "A colon-separated list of overrides specific to the current distribution."
  3761. </info>
  3762. <glossdef>
  3763. <para role="glossdeffirst">
  3764. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3765. A colon-separated list of overrides specific to the
  3766. current distribution.
  3767. By default, this list includes the value of
  3768. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>.
  3769. </para>
  3770. <para>
  3771. You can extend <filename>DISTROOVERRIDES</filename>
  3772. to add extra overrides that should apply to
  3773. the distribution.
  3774. </para>
  3775. <para>
  3776. The underlying mechanism behind
  3777. <filename>DISTROOVERRIDES</filename> is simply that it
  3778. is included in the default value of
  3779. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  3780. </para>
  3781. </glossdef>
  3782. </glossentry>
  3783. <glossentry id='var-DL_DIR'><glossterm>DL_DIR</glossterm>
  3784. <info>
  3785. 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."
  3786. </info>
  3787. <glossdef>
  3788. <para role="glossdeffirst">
  3789. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3790. The central download directory used by the build process to
  3791. store downloads.
  3792. By default, <filename>DL_DIR</filename> gets files
  3793. suitable for mirroring for everything except Git
  3794. repositories.
  3795. If you want tarballs of Git repositories, use the
  3796. <link linkend='var-BB_GENERATE_MIRROR_TARBALLS'><filename>BB_GENERATE_MIRROR_TARBALLS</filename></link>
  3797. variable.
  3798. </para>
  3799. <para>
  3800. You can set this directory by defining the
  3801. <filename>DL_DIR</filename> variable in the
  3802. <filename>conf/local.conf</filename> file.
  3803. This directory is self-maintaining and you should not have
  3804. to touch it.
  3805. By default, the directory is <filename>downloads</filename>
  3806. in the
  3807. <link linkend='build-directory'>Build Directory</link>.
  3808. <literallayout class='monospaced'>
  3809. #DL_DIR ?= "${TOPDIR}/downloads"
  3810. </literallayout>
  3811. To specify a different download directory, simply remove
  3812. the comment from the line and provide your directory.
  3813. </para>
  3814. <para>
  3815. During a first build, the system downloads many different
  3816. source code tarballs from various upstream projects.
  3817. Downloading can take a while, particularly if your network
  3818. connection is slow.
  3819. Tarballs are all stored in the directory defined by
  3820. <filename>DL_DIR</filename> and the build system looks there
  3821. first to find source tarballs.
  3822. <note>
  3823. When wiping and rebuilding, you can preserve this
  3824. directory to speed up this part of subsequent
  3825. builds.
  3826. </note>
  3827. </para>
  3828. <para>
  3829. You can safely share this directory between multiple builds
  3830. on the same development machine.
  3831. For additional information on how the build process gets
  3832. source files when working behind a firewall or proxy server,
  3833. see this specific question in the
  3834. "<link linkend='how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server'>FAQ</link>"
  3835. chapter.
  3836. You can also refer to the
  3837. "<ulink url='&YOCTO_WIKI_URL;/wiki/Working_Behind_a_Network_Proxy'>Working Behind a Network Proxy</ulink>"
  3838. Wiki page.
  3839. </para>
  3840. </glossdef>
  3841. </glossentry>
  3842. <glossentry id='var-DOC_COMPRESS'><glossterm>DOC_COMPRESS</glossterm>
  3843. <info>
  3844. 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."
  3845. </info>
  3846. <glossdef>
  3847. <para role="glossdeffirst">
  3848. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3849. When inheriting the
  3850. <link linkend='ref-classes-compress_doc'><filename>compress_doc</filename></link>
  3851. class, this variable sets the compression policy used when
  3852. the OpenEmbedded build system compresses man pages and info
  3853. pages.
  3854. By default, the compression method used is gz (gzip).
  3855. Other policies available are xz and bz2.
  3856. </para>
  3857. <para>
  3858. For information on policies and on how to use this
  3859. variable, see the comments in the
  3860. <filename>meta/classes/compress_doc.bbclass</filename> file.
  3861. </para>
  3862. </glossdef>
  3863. </glossentry>
  3864. </glossdiv>
  3865. <glossdiv id='var-glossary-e'><title>E</title>
  3866. <glossentry id='var-EFI_PROVIDER'><glossterm>EFI_PROVIDER</glossterm>
  3867. <info>
  3868. EFI_PROVIDER[doc] = "When building bootable images (i.e. where hddimg, iso, or wic.vmdk is in IMAGE_FSTYPES), the EFI_PROVIDER variable specifies the EFI bootloader to use."
  3869. </info>
  3870. <glossdef>
  3871. <para role="glossdeffirst">
  3872. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3873. When building bootable images (i.e. where
  3874. <filename>hddimg</filename>, <filename>iso</filename>,
  3875. or <filename>wic.vmdk</filename> is in
  3876. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>),
  3877. the <filename>EFI_PROVIDER</filename> variable specifies
  3878. the EFI bootloader to use.
  3879. The default is "grub-efi", but "systemd-boot" can be used
  3880. instead.
  3881. </para>
  3882. <para>
  3883. See the
  3884. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  3885. and
  3886. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  3887. classes for more information.
  3888. </para>
  3889. </glossdef>
  3890. </glossentry>
  3891. <glossentry id='var-ENABLE_BINARY_LOCALE_GENERATION'><glossterm>ENABLE_BINARY_LOCALE_GENERATION</glossterm>
  3892. <info>
  3893. 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."
  3894. </info>
  3895. <glossdef>
  3896. <para role="glossdeffirst">
  3897. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3898. Variable that controls which locales for
  3899. <filename>glibc</filename> are generated during the
  3900. build (useful if the target device has 64Mbytes
  3901. of RAM or less).
  3902. </para>
  3903. </glossdef>
  3904. </glossentry>
  3905. <glossentry id='var-ERR_REPORT_DIR'><glossterm>ERR_REPORT_DIR</glossterm>
  3906. <info>
  3907. 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."
  3908. </info>
  3909. <glossdef>
  3910. <para role="glossdeffirst">
  3911. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3912. When used with the
  3913. <link linkend='ref-classes-report-error'><filename>report-error</filename></link>
  3914. class, specifies the path used for storing the debug files
  3915. created by the
  3916. <ulink url='&YOCTO_DOCS_DEV_URL;#using-the-error-reporting-tool'>error reporting tool</ulink>,
  3917. which allows you to submit build errors you encounter to a
  3918. central database.
  3919. By default, the value of this variable is
  3920. <filename>${</filename><link linkend='var-LOG_DIR'><filename>LOG_DIR</filename></link><filename>}/error-report</filename>.
  3921. </para>
  3922. <para>
  3923. You can set <filename>ERR_REPORT_DIR</filename> to the path
  3924. you want the error reporting tool to store the debug files
  3925. as follows in your <filename>local.conf</filename> file:
  3926. <literallayout class='monospaced'>
  3927. ERR_REPORT_DIR = "<replaceable>path</replaceable>"
  3928. </literallayout>
  3929. </para>
  3930. </glossdef>
  3931. </glossentry>
  3932. <glossentry id='var-ERROR_QA'><glossterm>ERROR_QA</glossterm>
  3933. <info>
  3934. ERROR_QA[doc] = "Specifies the quality assurance checks whose failures are reported as errors by the OpenEmbedded build system."
  3935. </info>
  3936. <glossdef>
  3937. <para role="glossdeffirst">
  3938. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3939. Specifies the quality assurance checks whose failures are
  3940. reported as errors by the OpenEmbedded build system.
  3941. You set this variable in your distribution configuration
  3942. file.
  3943. For a list of the checks you can control with this variable,
  3944. see the
  3945. "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  3946. section.
  3947. </para>
  3948. </glossdef>
  3949. </glossentry>
  3950. <glossentry id='var-EXCLUDE_FROM_SHLIBS'><glossterm>EXCLUDE_FROM_SHLIBS</glossterm>
  3951. <info>
  3952. EXCLUDE_FROM_SHLIBS[doc] = "Causes the OpenEmbedded build system's shared libraries resolver to exclude an entire package when scanning for shared libraries."
  3953. </info>
  3954. <glossdef>
  3955. <para role="glossdeffirst">
  3956. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3957. Triggers the OpenEmbedded build system's shared libraries
  3958. resolver to exclude an entire package when scanning for
  3959. shared libraries.
  3960. <note>
  3961. The shared libraries resolver's functionality results
  3962. in part from the internal function
  3963. <filename>package_do_shlibs</filename>, which is part of
  3964. the
  3965. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  3966. task.
  3967. You should be aware that the shared libraries resolver
  3968. might implicitly define some dependencies between
  3969. packages.
  3970. </note>
  3971. The <filename>EXCLUDE_FROM_SHLIBS</filename> variable is
  3972. similar to the
  3973. <link linkend='var-PRIVATE_LIBS'><filename>PRIVATE_LIBS</filename></link>
  3974. variable, which excludes a package's particular libraries
  3975. only and not the whole package.
  3976. </para>
  3977. <para>
  3978. Use the
  3979. <filename>EXCLUDE_FROM_SHLIBS</filename> variable by
  3980. setting it to "1" for a particular package:
  3981. <literallayout class='monospaced'>
  3982. EXCLUDE_FROM_SHLIBS = "1"
  3983. </literallayout>
  3984. </para>
  3985. </glossdef>
  3986. </glossentry>
  3987. <glossentry id='var-EXCLUDE_FROM_WORLD'><glossterm>EXCLUDE_FROM_WORLD</glossterm>
  3988. <info>
  3989. EXCLUDE_FROM_WORLD[doc] = "Directs BitBake to exclude a recipe from world builds (i.e. bitbake world)."
  3990. </info>
  3991. <glossdef>
  3992. <para role="glossdeffirst">
  3993. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3994. Directs BitBake to exclude a recipe from world builds (i.e.
  3995. <filename>bitbake world</filename>).
  3996. During world builds, BitBake locates, parses and builds all
  3997. recipes found in every layer exposed in the
  3998. <filename>bblayers.conf</filename> configuration file.
  3999. </para>
  4000. <para>
  4001. To exclude a recipe from a world build using this variable,
  4002. set the variable to "1" in the recipe.
  4003. </para>
  4004. <note>
  4005. Recipes added to <filename>EXCLUDE_FROM_WORLD</filename>
  4006. may still be built during a world build in order to satisfy
  4007. dependencies of other recipes.
  4008. Adding a recipe to <filename>EXCLUDE_FROM_WORLD</filename>
  4009. only ensures that the recipe is not explicitly added
  4010. to the list of build targets in a world build.
  4011. </note>
  4012. </glossdef>
  4013. </glossentry>
  4014. <glossentry id='var-EXTENDPE'><glossterm>EXTENDPE</glossterm>
  4015. <info>
  4016. 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."
  4017. </info>
  4018. <glossdef>
  4019. <para role="glossdeffirst">
  4020. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4021. Used with file and pathnames to create a prefix for a recipe's
  4022. version based on the recipe's
  4023. <link linkend='var-PE'><filename>PE</filename></link> value.
  4024. If <filename>PE</filename> is set and greater than zero for a recipe,
  4025. <filename>EXTENDPE</filename> becomes that value (e.g if
  4026. <filename>PE</filename> is equal to "1" then <filename>EXTENDPE</filename>
  4027. becomes "1_").
  4028. If a recipe's <filename>PE</filename> is not set (the default) or is equal to
  4029. zero, <filename>EXTENDPE</filename> becomes "".</para>
  4030. <para>See the <link linkend='var-STAMP'><filename>STAMP</filename></link>
  4031. variable for an example.
  4032. </para>
  4033. </glossdef>
  4034. </glossentry>
  4035. <glossentry id='var-EXTENDPKGV'><glossterm>EXTENDPKGV</glossterm>
  4036. <info>
  4037. EXTENDPKGV[doc] = "The full package version specification as it appears on the final packages produced by a recipe."
  4038. </info>
  4039. <glossdef>
  4040. <para role="glossdeffirst">
  4041. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4042. The full package version specification as it appears on the
  4043. final packages produced by a recipe.
  4044. The variable's value is normally used to fix a runtime
  4045. dependency to the exact same version of another package
  4046. in the same recipe:
  4047. <literallayout class='monospaced'>
  4048. RDEPENDS_${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  4049. </literallayout>
  4050. </para>
  4051. <para>
  4052. The dependency relationships are intended to force the
  4053. package manager to upgrade these types of packages in
  4054. lock-step.
  4055. </para>
  4056. </glossdef>
  4057. </glossentry>
  4058. <glossentry id='var-EXTERNAL_KERNEL_TOOLS'><glossterm>EXTERNAL_KERNEL_TOOLS</glossterm>
  4059. <info>
  4060. EXTERNAL_KERNEL_TOOLS[doc] = "Indicates kernel tools are external to the source tree."
  4061. </info>
  4062. <glossdef>
  4063. <para role="glossdeffirst">
  4064. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4065. When set, the <filename>EXTERNAL_KERNEL_TOOLS</filename>
  4066. variable indicates that these tools are not in the
  4067. source tree.
  4068. </para>
  4069. <para>
  4070. When kernel tools are available in the tree, they are
  4071. preferred over any externally installed tools.
  4072. Setting the <filename>EXTERNAL_KERNEL_TOOLS</filename>
  4073. variable tells the OpenEmbedded build system to prefer
  4074. the installed external tools.
  4075. See the
  4076. <link linkend='ref-classes-kernel-yocto'><filename>kernel-yocto</filename></link>
  4077. class in <filename>meta/classes</filename> to see how
  4078. the variable is used.
  4079. </para>
  4080. </glossdef>
  4081. </glossentry>
  4082. <glossentry id='var-EXTERNALSRC'><glossterm>EXTERNALSRC</glossterm>
  4083. <info>
  4084. EXTERNALSRC[doc] = "If externalsrc.bbclass is inherited, this variable points to the source tree, which is outside of the OpenEmbedded build system."
  4085. </info>
  4086. <glossdef>
  4087. <para role="glossdeffirst">
  4088. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4089. When inheriting the
  4090. <link linkend='ref-classes-externalsrc'><filename>externalsrc</filename></link>
  4091. class, this variable points to the source tree, which is
  4092. outside of the OpenEmbedded build system.
  4093. When set, this variable sets the
  4094. <link linkend='var-S'><filename>S</filename></link>
  4095. variable, which is what the OpenEmbedded build system uses
  4096. to locate unpacked recipe source code.
  4097. </para>
  4098. <para>
  4099. For more information on
  4100. <filename>externalsrc.bbclass</filename>, see the
  4101. "<link linkend='ref-classes-externalsrc'><filename>externalsrc.bbclass</filename></link>"
  4102. section.
  4103. You can also find information on how to use this variable
  4104. in the
  4105. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-software-from-an-external-source'>Building Software from an External Source</ulink>"
  4106. section in the Yocto Project Development Tasks Manual.
  4107. </para>
  4108. </glossdef>
  4109. </glossentry>
  4110. <glossentry id='var-EXTERNALSRC_BUILD'><glossterm>EXTERNALSRC_BUILD</glossterm>
  4111. <info>
  4112. 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."
  4113. </info>
  4114. <glossdef>
  4115. <para role="glossdeffirst">
  4116. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4117. When inheriting the
  4118. <link linkend='ref-classes-externalsrc'><filename>externalsrc</filename></link>
  4119. class, this variable points to the directory in which the
  4120. recipe's source code is built, which is outside of the
  4121. OpenEmbedded build system.
  4122. When set, this variable sets the
  4123. <link linkend='var-B'><filename>B</filename></link>
  4124. variable, which is what the OpenEmbedded build system uses
  4125. to locate the Build Directory.
  4126. </para>
  4127. <para>
  4128. For more information on
  4129. <filename>externalsrc.bbclass</filename>, see the
  4130. "<link linkend='ref-classes-externalsrc'><filename>externalsrc.bbclass</filename></link>"
  4131. section.
  4132. You can also find information on how to use this variable
  4133. in the
  4134. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-software-from-an-external-source'>Building Software from an External Source</ulink>"
  4135. section in the Yocto Project Development Tasks Manual.
  4136. </para>
  4137. </glossdef>
  4138. </glossentry>
  4139. <glossentry id='var-EXTRA_AUTORECONF'><glossterm>EXTRA_AUTORECONF</glossterm>
  4140. <info>
  4141. EXTRA_AUTORECONF[doc] = "Extra options passed to the autoreconf command, which is executed during do_configure."
  4142. </info>
  4143. <glossdef>
  4144. <para role="glossdeffirst">
  4145. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4146. For recipes inheriting the
  4147. <link linkend='ref-classes-autotools'><filename>autotools</filename></link>
  4148. class, you can use <filename>EXTRA_AUTORECONF</filename> to
  4149. specify extra options to pass to the
  4150. <filename>autoreconf</filename> command that is
  4151. executed during the
  4152. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  4153. task.
  4154. </para>
  4155. <para>
  4156. The default value is "--exclude=autopoint".
  4157. </para>
  4158. </glossdef>
  4159. </glossentry>
  4160. <glossentry id='var-EXTRA_IMAGE_FEATURES'><glossterm>EXTRA_IMAGE_FEATURES</glossterm>
  4161. <info>
  4162. 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."
  4163. </info>
  4164. <glossdef>
  4165. <para role="glossdeffirst">
  4166. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4167. A list of additional features to include in an image.
  4168. When listing more than one feature, separate them with
  4169. a space.
  4170. </para>
  4171. <para>
  4172. Typically, you configure this variable in your
  4173. <filename>local.conf</filename> file, which is found in the
  4174. <link linkend='build-directory'>Build Directory</link>.
  4175. Although you can use this variable from within a recipe,
  4176. best practices dictate that you do not.
  4177. <note>
  4178. To enable primary features from within the image
  4179. recipe, use the
  4180. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  4181. variable.
  4182. </note>
  4183. </para>
  4184. <para>
  4185. Here are some examples of features you can add:
  4186. <literallayout class='monospaced'>
  4187. "dbg-pkgs" - Adds -dbg packages for all installed packages
  4188. including symbol information for debugging and
  4189. profiling.
  4190. "debug-tweaks" - Makes an image suitable for debugging.
  4191. For example, allows root logins without
  4192. passwords and enables post-installation
  4193. logging. See the 'allow-empty-password'
  4194. and 'post-install-logging' features in
  4195. the "<link linkend='ref-features-image'>Image Features</link>" section for
  4196. more information.
  4197. "dev-pkgs" - Adds -dev packages for all installed packages.
  4198. This is useful if you want to develop against
  4199. the libraries in the image.
  4200. "read-only-rootfs" - Creates an image whose root
  4201. filesystem is read-only. See the
  4202. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-a-read-only-root-filesystem'>Creating a Read-Only Root Filesystem</ulink>"
  4203. section in the Yocto Project
  4204. Development Tasks Manual for
  4205. more information
  4206. "tools-debug" - Adds debugging tools such as gdb and
  4207. strace.
  4208. "tools-sdk" - Adds development tools such as gcc, make,
  4209. pkgconfig and so forth.
  4210. "tools-testapps" - Adds useful testing tools such as
  4211. ts_print, aplay, arecord and so
  4212. forth.
  4213. </literallayout>
  4214. </para>
  4215. <para>
  4216. For a complete list of image features that ships with the
  4217. Yocto Project, see the
  4218. "<link linkend="ref-features-image">Image Features</link>"
  4219. section.
  4220. </para>
  4221. <para>
  4222. For an example that shows how to customize your image by
  4223. using this variable, see the
  4224. "<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>"
  4225. section in the Yocto Project Development Tasks Manual.
  4226. </para>
  4227. </glossdef>
  4228. </glossentry>
  4229. <glossentry id='var-EXTRA_IMAGECMD'><glossterm>EXTRA_IMAGECMD</glossterm>
  4230. <info>
  4231. 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 image type."
  4232. </info>
  4233. <glossdef>
  4234. <para role="glossdeffirst">
  4235. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4236. Specifies additional options for the image
  4237. creation command that has been specified in
  4238. <link linkend='var-IMAGE_CMD'><filename>IMAGE_CMD</filename></link>.
  4239. When setting this variable, use an override for the
  4240. associated image type.
  4241. Here is an example:
  4242. <literallayout class='monospaced'>
  4243. EXTRA_IMAGECMD_ext3 ?= "-i 4096"
  4244. </literallayout>
  4245. </para>
  4246. </glossdef>
  4247. </glossentry>
  4248. <glossentry id='var-EXTRA_IMAGEDEPENDS'><glossterm>EXTRA_IMAGEDEPENDS</glossterm>
  4249. <info>
  4250. 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."
  4251. </info>
  4252. <glossdef>
  4253. <para role="glossdeffirst">
  4254. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4255. A list of recipes to build that do not provide packages
  4256. for installing into the root filesystem.
  4257. </para>
  4258. <para>
  4259. Sometimes a recipe is required to build the final image but is not
  4260. needed in the root filesystem.
  4261. You can use the <filename>EXTRA_IMAGEDEPENDS</filename> variable to
  4262. list these recipes and thus specify the dependencies.
  4263. A typical example is a required bootloader in a machine configuration.
  4264. </para>
  4265. <note>
  4266. To add packages to the root filesystem, see the various
  4267. <filename>*<link linkend='var-RDEPENDS'>RDEPENDS</link></filename>
  4268. and <filename>*<link linkend='var-RRECOMMENDS'>RRECOMMENDS</link></filename>
  4269. variables.
  4270. </note>
  4271. </glossdef>
  4272. </glossentry>
  4273. <glossentry id='var-EXTRANATIVEPATH'><glossterm>EXTRANATIVEPATH</glossterm>
  4274. <info>
  4275. EXTRANATIVEPATH[doc] = "A list of subdirectories of ${STAGING_BINDIR_NATIVE} added to the beginning of the environment variable PATH."
  4276. </info>
  4277. <glossdef>
  4278. <para role="glossdeffirst">
  4279. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4280. A list of subdirectories of
  4281. <filename>${</filename><link linkend='var-STAGING_BINDIR_NATIVE'><filename>STAGING_BINDIR_NATIVE</filename></link><filename>}</filename>
  4282. added to the beginning of the environment variable
  4283. <filename>PATH</filename>.
  4284. As an example, the following prepends
  4285. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:"
  4286. to <filename>PATH</filename>:
  4287. <literallayout class='monospaced'>
  4288. EXTRANATIVEPATH = "foo bar"
  4289. </literallayout>
  4290. </para>
  4291. </glossdef>
  4292. </glossentry>
  4293. <glossentry id='var-EXTRA_OECMAKE'><glossterm>EXTRA_OECMAKE</glossterm>
  4294. <info>
  4295. EXTRA_OECMAKE[doc] = "Additional cmake options."
  4296. </info>
  4297. <glossdef>
  4298. <para role="glossdeffirst">
  4299. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4300. Additional
  4301. <ulink url='https://cmake.org/overview/'>CMake</ulink>
  4302. options.
  4303. See the
  4304. <link linkend='ref-classes-cmake'><filename>cmake</filename></link>
  4305. class for additional information.
  4306. </para>
  4307. </glossdef>
  4308. </glossentry>
  4309. <glossentry id='var-EXTRA_OECONF'><glossterm>EXTRA_OECONF</glossterm>
  4310. <info>
  4311. EXTRA_OECONF[doc] = "Additional configure script options."
  4312. </info>
  4313. <glossdef>
  4314. <para role="glossdeffirst">
  4315. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4316. Additional <filename>configure</filename> script options.
  4317. See
  4318. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>
  4319. for additional information on passing configure script
  4320. options.
  4321. </para>
  4322. </glossdef>
  4323. </glossentry>
  4324. <glossentry id='var-EXTRA_OEMAKE'><glossterm>EXTRA_OEMAKE</glossterm>
  4325. <info>
  4326. EXTRA_OEMAKE[doc] = "Additional GNU make options."
  4327. </info>
  4328. <glossdef>
  4329. <para role="glossdeffirst">
  4330. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4331. Additional GNU <filename>make</filename> options.
  4332. </para>
  4333. <para>
  4334. Because the <filename>EXTRA_OEMAKE</filename> defaults to
  4335. "", you need to set the variable to specify any required
  4336. GNU options.
  4337. </para>
  4338. <para>
  4339. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  4340. and
  4341. <link linkend='var-PARALLEL_MAKEINST'><filename>PARALLEL_MAKEINST</filename></link>
  4342. also make use of
  4343. <filename>EXTRA_OEMAKE</filename> to pass the required
  4344. flags.
  4345. </para>
  4346. </glossdef>
  4347. </glossentry>
  4348. <glossentry id='var-EXTRA_OESCONS'><glossterm>EXTRA_OESCONS</glossterm>
  4349. <info>
  4350. 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."
  4351. </info>
  4352. <glossdef>
  4353. <para role="glossdeffirst">
  4354. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4355. When inheriting the
  4356. <link linkend='ref-classes-scons'><filename>scons</filename></link>
  4357. class, this variable specifies additional configuration
  4358. options you want to pass to the
  4359. <filename>scons</filename> command line.
  4360. </para>
  4361. </glossdef>
  4362. </glossentry>
  4363. <glossentry id='var-EXTRA_USERS_PARAMS'><glossterm>EXTRA_USERS_PARAMS</glossterm>
  4364. <info>
  4365. EXTRA_USERS_PARAMS[doc] = "When a recipe inherits the extrausers class, this variable provides image level user and group operations."
  4366. </info>
  4367. <glossdef>
  4368. <para role="glossdeffirst">
  4369. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4370. When inheriting the
  4371. <link linkend='ref-classes-extrausers'><filename>extrausers</filename></link>
  4372. class, this variable provides image level user and group
  4373. operations.
  4374. This is a more global method of providing user and group
  4375. configuration as compared to using the
  4376. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  4377. class, which ties user and group configurations to a
  4378. specific recipe.
  4379. </para>
  4380. <para>
  4381. The set list of commands you can configure using the
  4382. <filename>EXTRA_USERS_PARAMS</filename> is shown in the
  4383. <filename>extrausers</filename> class.
  4384. These commands map to the normal Unix commands of the same
  4385. names:
  4386. <literallayout class='monospaced'>
  4387. # EXTRA_USERS_PARAMS = "\
  4388. # useradd -p '' tester; \
  4389. # groupadd developers; \
  4390. # userdel nobody; \
  4391. # groupdel -g video; \
  4392. # groupmod -g 1020 developers; \
  4393. # usermod -s /bin/sh tester; \
  4394. # "
  4395. </literallayout>
  4396. </para>
  4397. </glossdef>
  4398. </glossentry>
  4399. </glossdiv>
  4400. <glossdiv id='var-glossary-f'><title>F</title>
  4401. <glossentry id='var-FEATURE_PACKAGES'><glossterm>FEATURE_PACKAGES</glossterm>
  4402. <info>
  4403. 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."
  4404. </info>
  4405. <glossdef>
  4406. <para role="glossdeffirst">
  4407. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4408. Defines one or more packages to include in an image when
  4409. a specific item is included in
  4410. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  4411. When setting the value, <filename>FEATURE_PACKAGES</filename>
  4412. should have the name of the feature item as an override.
  4413. Here is an example:
  4414. <literallayout class='monospaced'>
  4415. FEATURE_PACKAGES_widget = "<replaceable>package1</replaceable> <replaceable>package2</replaceable>"
  4416. </literallayout>
  4417. </para>
  4418. <para>
  4419. In this example, if "widget" were added to
  4420. <filename>IMAGE_FEATURES</filename>, <replaceable>package1</replaceable> and
  4421. <replaceable>package2</replaceable> would be included in the image.
  4422. <note>
  4423. Packages installed by features defined through
  4424. <filename>FEATURE_PACKAGES</filename> are often package
  4425. groups.
  4426. While similarly named, you should not confuse the
  4427. <filename>FEATURE_PACKAGES</filename> variable with
  4428. package groups, which are discussed elsewhere in the
  4429. documentation.
  4430. </note>
  4431. </para>
  4432. </glossdef>
  4433. </glossentry>
  4434. <glossentry id='var-FEED_DEPLOYDIR_BASE_URI'><glossterm>FEED_DEPLOYDIR_BASE_URI</glossterm>
  4435. <info>
  4436. 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."
  4437. </info>
  4438. <glossdef>
  4439. <para role="glossdeffirst">
  4440. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4441. Points to the base URL of the server and location within
  4442. the document-root that provides the metadata and
  4443. packages required by OPKG to support runtime package
  4444. management of IPK packages.
  4445. You set this variable in your
  4446. <filename>local.conf</filename> file.
  4447. </para>
  4448. <para>
  4449. Consider the following example:
  4450. <literallayout class='monospaced'>
  4451. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  4452. </literallayout>
  4453. This example assumes you are serving your packages over
  4454. HTTP and your databases are located in a directory
  4455. named <filename>BOARD-dir</filename>, which is underneath
  4456. your HTTP server's document-root.
  4457. In this case, the OpenEmbedded build system generates a set
  4458. of configuration files for you in your target that work
  4459. with the feed.
  4460. </para>
  4461. </glossdef>
  4462. </glossentry>
  4463. <glossentry id='var-FILES'><glossterm>FILES</glossterm>
  4464. <info>
  4465. FILES[doc] = "The list of directories or files that are placed in a package."
  4466. </info>
  4467. <glossdef>
  4468. <para role="glossdeffirst">
  4469. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4470. The list of files and directories that are placed in a
  4471. package.
  4472. The
  4473. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  4474. variable lists the packages generated by a recipe.
  4475. </para>
  4476. <para>
  4477. To use the <filename>FILES</filename> variable, provide a
  4478. package name override that identifies the resulting package.
  4479. Then, provide a space-separated list of files or paths
  4480. that identify the files you want included as part of the
  4481. resulting package.
  4482. Here is an example:
  4483. <literallayout class='monospaced'>
  4484. FILES_${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  4485. </literallayout>
  4486. <note><title>Notes</title>
  4487. <itemizedlist>
  4488. <listitem><para>
  4489. When specifying files or paths, you can pattern
  4490. match using Python's
  4491. <ulink url='https://docs.python.org/2/library/glob.html'><filename>glob</filename></ulink>
  4492. syntax.
  4493. For details on the syntax, see the
  4494. documentation by following the previous link.
  4495. </para></listitem>
  4496. <listitem><para>
  4497. When specifying paths as part of the
  4498. <filename>FILES</filename> variable, it is
  4499. good practice to use appropriate path
  4500. variables.
  4501. For example, use <filename>${sysconfdir}</filename>
  4502. rather than <filename>/etc</filename>, or
  4503. <filename>${bindir}</filename> rather than
  4504. <filename>/usr/bin</filename>.
  4505. You can find a list of these variables at the
  4506. top of the
  4507. <filename>meta/conf/bitbake.conf</filename>
  4508. file in the
  4509. <link linkend='source-directory'>Source Directory</link>.
  4510. You will also find the default values of the
  4511. various <filename>FILES_*</filename> variables
  4512. in this file.
  4513. </para></listitem>
  4514. </itemizedlist>
  4515. </note>
  4516. </para>
  4517. <para>
  4518. If some of the files you provide with the
  4519. <filename>FILES</filename> variable are editable and you
  4520. know they should not be overwritten during the package
  4521. update process by the Package Management System (PMS), you
  4522. can identify these files so that the PMS will not
  4523. overwrite them.
  4524. See the
  4525. <link linkend='var-CONFFILES'><filename>CONFFILES</filename></link>
  4526. variable for information on how to identify these files to
  4527. the PMS.
  4528. </para>
  4529. </glossdef>
  4530. </glossentry>
  4531. <glossentry id='var-FILES_SOLIBSDEV'><glossterm>FILES_SOLIBSDEV</glossterm>
  4532. <info>
  4533. FILES_SOLIBSDEV[doc] = "Defines the full path name of the development symbolic link (symlink) for shared libraries on the target platform."
  4534. </info>
  4535. <glossdef>
  4536. <para role="glossdeffirst">
  4537. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4538. Defines the file specification to match
  4539. <link linkend='var-SOLIBSDEV'><filename>SOLIBSDEV</filename></link>.
  4540. In other words, <filename>FILES_SOLIBSDEV</filename>
  4541. defines the full path name of the development symbolic link
  4542. (symlink) for shared libraries on the target platform.
  4543. </para>
  4544. <para>
  4545. The following statement from the
  4546. <filename>bitbake.conf</filename> shows how it is set:
  4547. <literallayout class='monospaced'>
  4548. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  4549. </literallayout>
  4550. </para>
  4551. </glossdef>
  4552. </glossentry>
  4553. <glossentry id='var-FILESEXTRAPATHS'><glossterm>FILESEXTRAPATHS</glossterm>
  4554. <info>
  4555. FILESEXTRAPATHS[doc] = "Extends the search path the OpenEmbedded build system uses when looking for files and patches as it processes recipes and append files."
  4556. </info>
  4557. <glossdef>
  4558. <para role="glossdeffirst">
  4559. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4560. Extends the search path the OpenEmbedded build system uses
  4561. when looking for files and patches as it processes recipes
  4562. and append files.
  4563. The default directories BitBake uses when it processes
  4564. recipes are initially defined by the
  4565. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>
  4566. variable.
  4567. You can extend <filename>FILESPATH</filename> variable
  4568. by using <filename>FILESEXTRAPATHS</filename>.
  4569. </para>
  4570. <para>
  4571. Best practices dictate that you accomplish this by using
  4572. <filename>FILESEXTRAPATHS</filename> from within a
  4573. <filename>.bbappend</filename> file and that you prepend
  4574. paths as follows:
  4575. <literallayout class='monospaced'>
  4576. FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
  4577. </literallayout>
  4578. In the above example, the build system first looks for files
  4579. in a directory that has the same name as the corresponding
  4580. append file.
  4581. <note>
  4582. <para>When extending
  4583. <filename>FILESEXTRAPATHS</filename>,
  4584. be sure to use the immediate expansion
  4585. (<filename>:=</filename>) operator.
  4586. Immediate expansion makes sure that BitBake evaluates
  4587. <link linkend='var-THISDIR'><filename>THISDIR</filename></link>
  4588. at the time the directive is encountered rather than at
  4589. some later time when expansion might result in a
  4590. directory that does not contain the files you need.
  4591. </para>
  4592. <para>Also, include the trailing separating colon
  4593. character if you are prepending.
  4594. The trailing colon character is necessary because you
  4595. are directing BitBake to extend the path by prepending
  4596. directories to the search path.</para>
  4597. </note>
  4598. Here is another common use:
  4599. <literallayout class='monospaced'>
  4600. FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
  4601. </literallayout>
  4602. In this example, the build system extends the
  4603. <filename>FILESPATH</filename> variable to include a
  4604. directory named <filename>files</filename> that is in the
  4605. same directory as the corresponding append file.
  4606. </para>
  4607. <para>
  4608. This next example specifically adds three paths:
  4609. <literallayout class='monospaced'>
  4610. FILESEXTRAPATHS_prepend := "path_1:path_2:path_3:"
  4611. </literallayout>
  4612. </para>
  4613. <para>
  4614. A final example shows how you can extend the search path
  4615. and include a
  4616. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>-specific
  4617. override, which is useful in a BSP layer:
  4618. <literallayout class='monospaced'>
  4619. FILESEXTRAPATHS_prepend_intel-x86-common := "${THISDIR}/${PN}:"
  4620. </literallayout>
  4621. The previous statement appears in the
  4622. <filename>linux-yocto-dev.bbappend</filename> file, which
  4623. is found in the Yocto Project
  4624. <ulink url='&YOCTO_DOCS_OM_URL;#source-repositories'>Source Repositories</ulink>
  4625. in
  4626. <filename>meta-intel/common/recipes-kernel/linux</filename>.
  4627. Here, the machine override is a special
  4628. <link linkend='var-PACKAGE_ARCH'><filename>PACKAGE_ARCH</filename></link>
  4629. definition for multiple <filename>meta-intel</filename>
  4630. machines.
  4631. <note>
  4632. For a layer that supports a single BSP, the override
  4633. could just be the value of <filename>MACHINE</filename>.
  4634. </note>
  4635. </para>
  4636. <para>
  4637. By prepending paths in <filename>.bbappend</filename>
  4638. files, you allow multiple append files that reside in
  4639. different layers but are used for the same recipe to
  4640. correctly extend the path.
  4641. </para>
  4642. </glossdef>
  4643. </glossentry>
  4644. <glossentry id='var-FILESOVERRIDES'><glossterm>FILESOVERRIDES</glossterm>
  4645. <info>
  4646. FILESOVERRIDES[doc] = "A subset of OVERRIDES used by the OpenEmbedded build system for creating FILESPATH."
  4647. </info>
  4648. <glossdef>
  4649. <para role="glossdeffirst">
  4650. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4651. A subset of <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>
  4652. used by the OpenEmbedded build system for creating
  4653. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>.
  4654. You can find more information on how overrides are handled
  4655. in the
  4656. <ulink url='&YOCTO_DOCS_BB_URL;'>BitBake User Manual</ulink>.
  4657. </para>
  4658. <para>
  4659. By default, the <filename>FILESOVERRIDES</filename>
  4660. variable is defined as:
  4661. <literallayout class='monospaced'>
  4662. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  4663. </literallayout>
  4664. <note>
  4665. Do not hand-edit the <filename>FILESOVERRIDES</filename>
  4666. variable.
  4667. The values match up with expected overrides and are
  4668. used in an expected manner by the build system.
  4669. </note>
  4670. </para>
  4671. </glossdef>
  4672. </glossentry>
  4673. <glossentry id='var-FILESPATH'><glossterm>FILESPATH</glossterm>
  4674. <info>
  4675. 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."
  4676. </info>
  4677. <glossdef>
  4678. <para role="glossdeffirst">
  4679. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4680. The default set of directories the OpenEmbedded build system
  4681. uses when searching for patches and files.
  4682. During the build process, BitBake searches each directory in
  4683. <filename>FILESPATH</filename> in the specified order when
  4684. looking for files and patches specified by each
  4685. <filename>file://</filename> URI in a recipe's
  4686. <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
  4687. statements.
  4688. </para>
  4689. <para>
  4690. The default value for the <filename>FILESPATH</filename>
  4691. variable is defined in the <filename>base.bbclass</filename>
  4692. class found in <filename>meta/classes</filename> in the
  4693. <link linkend='source-directory'>Source Directory</link>:
  4694. <literallayout class='monospaced'>
  4695. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  4696. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  4697. </literallayout>
  4698. <note>
  4699. Do not hand-edit the <filename>FILESPATH</filename>
  4700. variable.
  4701. If you want the build system to look in directories
  4702. other than the defaults, extend the
  4703. <filename>FILESPATH</filename> variable by using the
  4704. <link linkend='var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></link>
  4705. variable.
  4706. </note>
  4707. Be aware that the default <filename>FILESPATH</filename>
  4708. directories do not map to directories in custom layers
  4709. where append files (<filename>.bbappend</filename>)
  4710. are used.
  4711. If you want the build system to find patches or files
  4712. that reside with your append files, you need to extend
  4713. the <filename>FILESPATH</filename> variable by using
  4714. the <filename>FILESEXTRAPATHS</filename> variable.
  4715. </para>
  4716. <para>
  4717. You can find out more about the patching process in the
  4718. "<ulink url='&YOCTO_DOCS_OM_URL;#patching-dev-environment'>Patching</ulink>"
  4719. section in the Yocto Project Overview and Concepts Manual
  4720. and the
  4721. "<ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-patching-code'>Patching Code</ulink>"
  4722. section in the Yocto Project Development Tasks Manual.
  4723. See the
  4724. <link linkend='ref-tasks-patch'><filename>do_patch</filename></link>
  4725. task as well.
  4726. </para>
  4727. </glossdef>
  4728. </glossentry>
  4729. <glossentry id='var-FILESYSTEM_PERMS_TABLES'><glossterm>FILESYSTEM_PERMS_TABLES</glossterm>
  4730. <info>
  4731. FILESYSTEM_PERMS_TABLES[doc] = "Allows you to define your own file permissions settings table as part of your configuration for the packaging process."
  4732. </info>
  4733. <glossdef>
  4734. <para role="glossdeffirst">
  4735. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4736. Allows you to define your own file permissions settings table as part of
  4737. your configuration for the packaging process.
  4738. For example, suppose you need a consistent set of custom permissions for
  4739. a set of groups and users across an entire work project.
  4740. It is best to do this in the packages themselves but this is not always
  4741. possible.
  4742. </para>
  4743. <para>
  4744. By default, the OpenEmbedded build system uses the <filename>fs-perms.txt</filename>, which
  4745. is located in the <filename>meta/files</filename> folder in the
  4746. <link linkend='source-directory'>Source Directory</link>.
  4747. If you create your own file permissions setting table, you should place it in your
  4748. layer or the distro's layer.
  4749. </para>
  4750. <para>
  4751. You define the <filename>FILESYSTEM_PERMS_TABLES</filename> variable in the
  4752. <filename>conf/local.conf</filename> file, which is found in the
  4753. <link linkend='build-directory'>Build Directory</link>, to
  4754. point to your custom <filename>fs-perms.txt</filename>.
  4755. You can specify more than a single file permissions setting table.
  4756. The paths you specify to these files must be defined within the
  4757. <link linkend='var-BBPATH'><filename>BBPATH</filename></link> variable.
  4758. </para>
  4759. <para>
  4760. For guidance on how to create your own file permissions settings table file,
  4761. examine the existing <filename>fs-perms.txt</filename>.
  4762. </para>
  4763. </glossdef>
  4764. </glossentry>
  4765. <glossentry id='var-FONT_EXTRA_RDEPENDS'><glossterm>FONT_EXTRA_RDEPENDS</glossterm>
  4766. <info>
  4767. 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'."
  4768. </info>
  4769. <glossdef>
  4770. <para role="glossdeffirst">
  4771. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4772. When inheriting the
  4773. <link linkend='ref-classes-fontcache'><filename>fontcache</filename></link>
  4774. class, this variable specifies the runtime dependencies
  4775. for font packages.
  4776. By default, the <filename>FONT_EXTRA_RDEPENDS</filename>
  4777. is set to "fontconfig-utils".
  4778. </para>
  4779. </glossdef>
  4780. </glossentry>
  4781. <glossentry id='var-FONT_PACKAGES'><glossterm>FONT_PACKAGES</glossterm>
  4782. <info>
  4783. FONT_PACKAGES[doc] = "When a recipe inherits the fontcache class, this variable identifies packages containing font files that need to be cached by Fontconfig."
  4784. </info>
  4785. <glossdef>
  4786. <para role="glossdeffirst">
  4787. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4788. When inheriting the
  4789. <link linkend='ref-classes-fontcache'><filename>fontcache</filename></link>
  4790. class, this variable identifies packages containing font
  4791. files that need to be cached by Fontconfig.
  4792. By default, the <filename>fontcache</filename> class assumes
  4793. that fonts are in the recipe's main package
  4794. (i.e. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  4795. Use this variable if fonts you need are in a package
  4796. other than that main package.
  4797. </para>
  4798. </glossdef>
  4799. </glossentry>
  4800. <glossentry id='var-FORCE_RO_REMOVE'><glossterm>FORCE_RO_REMOVE</glossterm>
  4801. <info>
  4802. FORCE_RO_REMOVE[doc] = "Forces the removal of the packages listed in ROOTFS_RO_UNNEEDED during the generation of the root filesystem."
  4803. </info>
  4804. <glossdef>
  4805. <para role="glossdeffirst">
  4806. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4807. Forces the removal of the packages listed in
  4808. <filename>ROOTFS_RO_UNNEEDED</filename> during the
  4809. generation of the root filesystem.
  4810. </para>
  4811. <para>
  4812. Set the variable to "1" to force the removal of these
  4813. packages.
  4814. </para>
  4815. </glossdef>
  4816. </glossentry>
  4817. <glossentry id='var-FULL_OPTIMIZATION'><glossterm>FULL_OPTIMIZATION</glossterm>
  4818. <info>
  4819. 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'."
  4820. </info>
  4821. <glossdef>
  4822. <para role="glossdeffirst">
  4823. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4824. The options to pass in
  4825. <filename><link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link></filename>
  4826. and <filename><link linkend='var-CFLAGS'>CFLAGS</link></filename>
  4827. when compiling an optimized system.
  4828. This variable defaults to
  4829. "-O2 -pipe ${DEBUG_FLAGS}".
  4830. </para>
  4831. </glossdef>
  4832. </glossentry>
  4833. </glossdiv>
  4834. <glossdiv id='var-glossary-g'><title>G</title>
  4835. <glossentry id='var-GCCPIE'><glossterm>GCCPIE</glossterm>
  4836. <info>
  4837. GCCPIE[doc] = "Enables Position Independent Executables (PIE) within the GNU C Compiler (GCC)."
  4838. </info>
  4839. <glossdef>
  4840. <para role="glossdeffirst">
  4841. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4842. Enables Position Independent Executables (PIE) within the
  4843. GNU C Compiler (GCC).
  4844. Enabling PIE in the GCC makes Return Oriented Programming
  4845. (ROP) attacks much more difficult to
  4846. execute.
  4847. </para>
  4848. <para>
  4849. By default the <filename>security_flags.inc</filename>
  4850. file enables PIE by setting the variable as follows:
  4851. <literallayout class='monospaced'>
  4852. GCCPIE ?= "--enable-default-pie"
  4853. </literallayout>
  4854. </para>
  4855. </glossdef>
  4856. </glossentry>
  4857. <glossentry id='var-GCCVERSION'><glossterm>GCCVERSION</glossterm>
  4858. <info>
  4859. GCCVERSION[doc] = "Specifies the default version of the GNU C Compiler (GCC) to use."
  4860. </info>
  4861. <glossdef>
  4862. <para role="glossdeffirst">
  4863. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4864. Specifies the default version of the GNU C Compiler (GCC)
  4865. used for compilation.
  4866. By default, <filename>GCCVERSION</filename> is set to
  4867. "8.x" in the
  4868. <filename>meta/conf/distro/include/tcmode-default.inc</filename>
  4869. include file:
  4870. <literallayout class='monospaced'>
  4871. GCCVERSION ?= "8.%"
  4872. </literallayout>
  4873. You can override this value by setting it in a configuration
  4874. file such as the <filename>local.conf</filename>.
  4875. </para>
  4876. </glossdef>
  4877. </glossentry>
  4878. <glossentry id='var-GDB'><glossterm>GDB</glossterm>
  4879. <info>
  4880. GDB[doc] = "The minimal command and arguments to run the GNU Debugger."
  4881. </info>
  4882. <glossdef>
  4883. <para role="glossdeffirst">
  4884. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4885. The minimal command and arguments to run the GNU Debugger.
  4886. </para>
  4887. </glossdef>
  4888. </glossentry>
  4889. <glossentry id='var-GITDIR'><glossterm>GITDIR</glossterm>
  4890. <info>
  4891. GITDIR[doc] = "The directory where Git clones will be stored."
  4892. </info>
  4893. <glossdef>
  4894. <para role="glossdeffirst">
  4895. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4896. The directory in which a local copy of a Git repository
  4897. is stored when it is cloned.
  4898. </para>
  4899. </glossdef>
  4900. </glossentry>
  4901. <glossentry id='var-GLIBC_GENERATE_LOCALES'><glossterm>GLIBC_GENERATE_LOCALES</glossterm>
  4902. <info>
  4903. GLIBC_GENERATE_LOCALES[doc]= "Specifies the list of GLIBC locales to generate should you not wish to generate all LIBC locals, which can be time consuming."
  4904. </info>
  4905. <glossdef>
  4906. <para role="glossdeffirst">
  4907. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4908. Specifies the list of GLIBC locales to generate should you
  4909. not wish to generate all LIBC locals, which can be time
  4910. consuming.
  4911. <note>
  4912. If you specifically remove the locale
  4913. <filename>en_US.UTF-8</filename>, you must set
  4914. <link linkend='var-IMAGE_LINGUAS'><filename>IMAGE_LINGUAS</filename></link>
  4915. appropriately.
  4916. </note>
  4917. </para>
  4918. <para>
  4919. You can set <filename>GLIBC_GENERATE_LOCALES</filename>
  4920. in your <filename>local.conf</filename> file.
  4921. By default, all locales are generated.
  4922. <literallayout class='monospaced'>
  4923. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  4924. </literallayout>
  4925. </para>
  4926. </glossdef>
  4927. </glossentry>
  4928. <glossentry id='var-GROUPADD_PARAM'><glossterm>GROUPADD_PARAM</glossterm>
  4929. <info>
  4930. 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."
  4931. </info>
  4932. <glossdef>
  4933. <para role="glossdeffirst">
  4934. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4935. When inheriting the
  4936. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  4937. class, this variable
  4938. specifies for a package what parameters should be passed
  4939. to the <filename>groupadd</filename> command
  4940. if you wish to add a group to the system when the package
  4941. is installed.
  4942. </para>
  4943. <para>
  4944. Here is an example from the <filename>dbus</filename>
  4945. recipe:
  4946. <literallayout class='monospaced'>
  4947. GROUPADD_PARAM_${PN} = "-r netdev"
  4948. </literallayout>
  4949. For information on the standard Linux shell command
  4950. <filename>groupadd</filename>, see
  4951. <ulink url='http://linux.die.net/man/8/groupadd'></ulink>.
  4952. </para>
  4953. </glossdef>
  4954. </glossentry>
  4955. <glossentry id='var-GROUPMEMS_PARAM'><glossterm>GROUPMEMS_PARAM</glossterm>
  4956. <info>
  4957. 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."
  4958. </info>
  4959. <glossdef>
  4960. <para role="glossdeffirst">
  4961. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4962. When inheriting the
  4963. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  4964. class, this variable
  4965. specifies for a package what parameters should be passed
  4966. to the <filename>groupmems</filename> command
  4967. if you wish to modify the members of a group when the
  4968. package is installed.
  4969. </para>
  4970. <para>
  4971. For information on the standard Linux shell command
  4972. <filename>groupmems</filename>, see
  4973. <ulink url='http://linux.die.net/man/8/groupmems'></ulink>.
  4974. </para>
  4975. </glossdef>
  4976. </glossentry>
  4977. <glossentry id='var-GRUB_GFXSERIAL'><glossterm>GRUB_GFXSERIAL</glossterm>
  4978. <info>
  4979. GRUB_GFXSERIAL[doc] = "Configures the GNU GRand Unified Bootloader (GRUB) to have graphics and serial in the boot menu."
  4980. </info>
  4981. <glossdef>
  4982. <para role="glossdeffirst">
  4983. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4984. Configures the GNU GRand Unified Bootloader (GRUB) to have
  4985. graphics and serial in the boot menu.
  4986. Set this variable to "1" in your
  4987. <filename>local.conf</filename> or distribution
  4988. configuration file to enable graphics and serial
  4989. in the menu.
  4990. </para>
  4991. <para>
  4992. See the
  4993. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  4994. class for more information on how this variable is used.
  4995. </para>
  4996. </glossdef>
  4997. </glossentry>
  4998. <glossentry id='var-GRUB_OPTS'><glossterm>GRUB_OPTS</glossterm>
  4999. <info>
  5000. GRUB_OPTS[doc] = "Additional options to add to the GNU GRand Unified Bootloader (GRUB) configuration."
  5001. </info>
  5002. <glossdef>
  5003. <para role="glossdeffirst">
  5004. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5005. Additional options to add to the GNU GRand Unified
  5006. Bootloader (GRUB) configuration.
  5007. Use a semi-colon character (<filename>;</filename>) to
  5008. separate multiple options.
  5009. </para>
  5010. <para>
  5011. The <filename>GRUB_OPTS</filename> variable is optional.
  5012. See the
  5013. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  5014. class for more information on how this variable is used.
  5015. </para>
  5016. </glossdef>
  5017. </glossentry>
  5018. <glossentry id='var-GRUB_TIMEOUT'><glossterm>GRUB_TIMEOUT</glossterm>
  5019. <info>
  5020. GRUB_TIMEOUT[doc] = "Specifies the timeout before executing the default LABEL in the GNU GRand Unified Bootloader (GRUB)."
  5021. </info>
  5022. <glossdef>
  5023. <para role="glossdeffirst">
  5024. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5025. Specifies the timeout before executing the default
  5026. <filename>LABEL</filename> in the GNU GRand Unified
  5027. Bootloader (GRUB).
  5028. </para>
  5029. <para>
  5030. The <filename>GRUB_TIMEOUT</filename> variable is optional.
  5031. See the
  5032. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  5033. class for more information on how this variable is used.
  5034. </para>
  5035. </glossdef>
  5036. </glossentry>
  5037. <glossentry id='var-GTKIMMODULES_PACKAGES'><glossterm>GTKIMMODULES_PACKAGES</glossterm>
  5038. <info>
  5039. 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."
  5040. </info>
  5041. <glossdef>
  5042. <para role="glossdeffirst">
  5043. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5044. When inheriting the
  5045. <link linkend='ref-classes-gtk-immodules-cache'><filename>gtk-immodules-cache</filename></link>
  5046. class, this variable specifies the packages that contain the
  5047. GTK+ input method modules being installed when the modules
  5048. are in packages other than the main package.
  5049. </para>
  5050. </glossdef>
  5051. </glossentry>
  5052. </glossdiv>
  5053. <glossdiv id='var-glossary-h'><title>H</title>
  5054. <glossentry id='var-HOMEPAGE'><glossterm>HOMEPAGE</glossterm>
  5055. <info>
  5056. HOMEPAGE[doc] = "Website where more information about the software the recipe is building can be found."
  5057. </info>
  5058. <glossdef>
  5059. <para role="glossdeffirst">
  5060. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5061. Website where more information about the software the recipe is building
  5062. can be found.
  5063. </para>
  5064. </glossdef>
  5065. </glossentry>
  5066. <glossentry id='var-HOST_ARCH'><glossterm>HOST_ARCH</glossterm>
  5067. <info>
  5068. HOST_ARCH[doc] = "The name of the target architecture. Normally same as the TARGET_ARCH."
  5069. </info>
  5070. <glossdef>
  5071. <para role="glossdeffirst">
  5072. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5073. The name of the target architecture, which is normally
  5074. the same as
  5075. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>.
  5076. The OpenEmbedded build system supports many
  5077. architectures.
  5078. Here is an example list of architectures supported.
  5079. This list is by no means complete as the architecture
  5080. is configurable:
  5081. <literallayout class='monospaced'>
  5082. arm
  5083. i586
  5084. x86_64
  5085. powerpc
  5086. powerpc64
  5087. mips
  5088. mipsel
  5089. </literallayout>
  5090. </para>
  5091. </glossdef>
  5092. </glossentry>
  5093. <glossentry id='var-HOST_CC_ARCH'><glossterm>HOST_CC_ARCH</glossterm>
  5094. <info>
  5095. HOST_CC_ARCH[doc] = "The name of the host architecture. Normally same as the TARGET_CC_ARCH."
  5096. </info>
  5097. <glossdef>
  5098. <para role="glossdeffirst">
  5099. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5100. Specifies architecture-specific compiler flags that are
  5101. passed to the C compiler.
  5102. </para>
  5103. <para>
  5104. Default initialization for <filename>HOST_CC_ARCH</filename>
  5105. varies depending on what is being built:
  5106. <itemizedlist>
  5107. <listitem><para>
  5108. <link linkend='var-TARGET_CC_ARCH'><filename>TARGET_CC_ARCH</filename></link>
  5109. when building for the target
  5110. </para></listitem>
  5111. <listitem><para>
  5112. <filename>BUILD_CC_ARCH</filename>
  5113. when building for the build host (i.e.
  5114. <filename>-native</filename>)
  5115. </para></listitem>
  5116. <listitem><para>
  5117. <filename>BUILDSDK_CC_ARCH</filename>
  5118. when building for an SDK (i.e.
  5119. <filename>nativesdk-</filename>)
  5120. </para></listitem>
  5121. </itemizedlist>
  5122. </para>
  5123. </glossdef>
  5124. </glossentry>
  5125. <glossentry id='var-HOST_OS'><glossterm>HOST_OS</glossterm>
  5126. <info>
  5127. HOST_OS[doc] = "The name of the target operating system. Normally the same as the TARGET_OS."
  5128. </info>
  5129. <glossdef>
  5130. <para role="glossdeffirst">
  5131. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5132. Specifies the name of the target operating system, which
  5133. is normally the same as the
  5134. <link linkend='var-TARGET_OS'><filename>TARGET_OS</filename></link>.
  5135. The variable can be set to "linux" for <filename>glibc</filename>-based systems and
  5136. to "linux-musl" for <filename>musl</filename>.
  5137. For ARM/EABI targets, there are also "linux-gnueabi" and
  5138. "linux-musleabi" values possible.
  5139. </para>
  5140. </glossdef>
  5141. </glossentry>
  5142. <glossentry id='var-HOST_PREFIX'><glossterm>HOST_PREFIX</glossterm>
  5143. <info>
  5144. HOST_PREFIX[doc] = "The prefix for the cross compile toolchain. Normally same as the TARGET_PREFIX."
  5145. </info>
  5146. <glossdef>
  5147. <para role="glossdeffirst">
  5148. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5149. Specifies the prefix for the cross-compile toolchain.
  5150. <filename>HOST_PREFIX</filename> is normally the same as
  5151. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>.
  5152. </para>
  5153. </glossdef>
  5154. </glossentry>
  5155. <glossentry id='var-HOST_SYS'><glossterm>HOST_SYS</glossterm>
  5156. <info>
  5157. HOST_SYS[doc] = "Specifies the system, including the architecture and the operating system, for which the build is occurring in the context of the current recipe."
  5158. </info>
  5159. <glossdef>
  5160. <para role="glossdeffirst">
  5161. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5162. Specifies the system, including the architecture and the
  5163. operating system, for which the build is occurring
  5164. in the context of the current recipe.
  5165. </para>
  5166. <para>
  5167. The OpenEmbedded build system automatically sets this
  5168. variable based on
  5169. <link linkend='var-HOST_ARCH'><filename>HOST_ARCH</filename></link>,
  5170. <link linkend='var-HOST_VENDOR'><filename>HOST_VENDOR</filename></link>,
  5171. and
  5172. <link linkend='var-HOST_OS'><filename>HOST_OS</filename></link>
  5173. variables.
  5174. <note>
  5175. You do not need to set the variable yourself.
  5176. </note>
  5177. </para>
  5178. <para>
  5179. Consider these two examples:
  5180. <itemizedlist>
  5181. <listitem><para>Given a native recipe on a 32-bit
  5182. x86 machine running Linux, the value is
  5183. "i686-linux".
  5184. </para></listitem>
  5185. <listitem><para>Given a recipe being built for a
  5186. little-endian MIPS target running Linux,
  5187. the value might be "mipsel-linux".
  5188. </para></listitem>
  5189. </itemizedlist>
  5190. </para>
  5191. </glossdef>
  5192. </glossentry>
  5193. <glossentry id='var-HOSTTOOLS'><glossterm>HOSTTOOLS</glossterm>
  5194. <info>
  5195. HOSTTOOLS[doc] = "A space-separated list (filter) of tools on the build host that should be allowed to be called from within build tasks."
  5196. </info>
  5197. <glossdef>
  5198. <para role="glossdeffirst">
  5199. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5200. A space-separated list (filter) of tools on the build host
  5201. that should be allowed to be called from within build tasks.
  5202. Using this filter helps reduce the possibility of host
  5203. contamination.
  5204. If a tool specified in the value of
  5205. <filename>HOSTTOOLS</filename> is not found on the
  5206. build host, the OpenEmbedded build system produces
  5207. an error and the build is not started.
  5208. </para>
  5209. <para>
  5210. For additional information, see
  5211. <link linkend='var-HOSTTOOLS_NONFATAL'><filename>HOSTTOOLS_NONFATAL</filename></link>.
  5212. </para>
  5213. </glossdef>
  5214. </glossentry>
  5215. <glossentry id='var-HOSTTOOLS_NONFATAL'><glossterm>HOSTTOOLS_NONFATAL</glossterm>
  5216. <info>
  5217. HOSTTOOLS_NONFATAL[doc] = "A space-separated list (filter) of tools on the build host that should be allowed to be called from within build tasks."
  5218. </info>
  5219. <glossdef>
  5220. <para role="glossdeffirst">
  5221. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5222. A space-separated list (filter) of tools on the build host
  5223. that should be allowed to be called from within build tasks.
  5224. Using this filter helps reduce the possibility of host
  5225. contamination.
  5226. Unlike
  5227. <link linkend='var-HOSTTOOLS'><filename>HOSTTOOLS</filename></link>,
  5228. the OpenEmbedded build system does not produce an error
  5229. if a tool specified in the value of
  5230. <filename>HOSTTOOLS_NONFATAL</filename> is not found on the
  5231. build host.
  5232. Thus, you can use <filename>HOSTTOOLS_NONFATAL</filename>
  5233. to filter optional host tools.
  5234. </para>
  5235. </glossdef>
  5236. </glossentry>
  5237. <glossentry id='var-HOST_VENDOR'><glossterm>HOST_VENDOR</glossterm>
  5238. <info>
  5239. HOST_VENDOR[doc] = "The name of the vendor. Normally same as the TARGET_VENDOR."
  5240. </info>
  5241. <glossdef>
  5242. <para role="glossdeffirst">
  5243. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5244. Specifies the name of the vendor.
  5245. <filename>HOST_VENDOR</filename> is normally the same as
  5246. <link linkend='var-TARGET_VENDOR'><filename>TARGET_VENDOR</filename></link>.
  5247. </para>
  5248. </glossdef>
  5249. </glossentry>
  5250. </glossdiv>
  5251. <glossdiv id='var-glossary-i'><title>I</title>
  5252. <glossentry id='var-ICECC_DISABLED'><glossterm>ICECC_DISABLED</glossterm>
  5253. <info>
  5254. ICECC_DISABLED[doc] = "Disables or enables the icecc (Icecream) function."
  5255. </info>
  5256. <glossdef>
  5257. <para role="glossdeffirst">
  5258. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5259. Disables or enables the <filename>icecc</filename>
  5260. (Icecream) function.
  5261. For more information on this function and best practices
  5262. for using this variable, see the
  5263. "<link linkend='ref-classes-icecc'><filename>icecc.bbclass</filename></link>"
  5264. section.
  5265. </para>
  5266. <para>
  5267. Setting this variable to "1" in your
  5268. <filename>local.conf</filename> disables the function:
  5269. <literallayout class='monospaced'>
  5270. ICECC_DISABLED ??= "1"
  5271. </literallayout>
  5272. To enable the function, set the variable as follows:
  5273. <literallayout class='monospaced'>
  5274. ICECC_DISABLED = ""
  5275. </literallayout>
  5276. </para>
  5277. </glossdef>
  5278. </glossentry>
  5279. <glossentry id='var-ICECC_ENV_EXEC'><glossterm>ICECC_ENV_EXEC</glossterm>
  5280. <info>
  5281. ICECC_ENV_EXEC[doc] = "Points to the icecc-create-env script that you provide."
  5282. </info>
  5283. <glossdef>
  5284. <para role="glossdeffirst">
  5285. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5286. Points to the <filename>icecc-create-env</filename> script
  5287. that you provide.
  5288. This variable is used by the
  5289. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5290. class.
  5291. You set this variable in your
  5292. <filename>local.conf</filename> file.
  5293. </para>
  5294. <para>
  5295. If you do not point to a script that you provide, the
  5296. OpenEmbedded build system uses the default script provided
  5297. by the <filename>icecc-create-env.bb</filename> recipe,
  5298. which is a modified version and not the one that comes with
  5299. <filename>icecc</filename>.
  5300. </para>
  5301. </glossdef>
  5302. </glossentry>
  5303. <glossentry id='var-ICECC_PARALLEL_MAKE'><glossterm>ICECC_PARALLEL_MAKE</glossterm>
  5304. <info>
  5305. ICECC_PARALLEL_MAKE[doc] = "Extra options passed to the make command during the do_compile task that specify parallel compilation."
  5306. </info>
  5307. <glossdef>
  5308. <para role="glossdeffirst">
  5309. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5310. Extra options passed to the <filename>make</filename>
  5311. command during the
  5312. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>
  5313. task that specify parallel compilation.
  5314. This variable usually takes the form of
  5315. "-j <replaceable>x</replaceable>", where
  5316. <replaceable>x</replaceable> represents the maximum
  5317. number of parallel threads <filename>make</filename> can
  5318. run.
  5319. <note>
  5320. The options passed affect builds on all enabled
  5321. machines on the network, which are machines running the
  5322. <filename>iceccd</filename> daemon.
  5323. </note>
  5324. </para>
  5325. <para>
  5326. If your enabled machines support multiple cores,
  5327. coming up with the maximum number of parallel threads
  5328. that gives you the best performance could take some
  5329. experimentation since machine speed, network lag,
  5330. available memory, and existing machine loads can all
  5331. affect build time.
  5332. Consequently, unlike the
  5333. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  5334. variable, there is no rule-of-thumb for setting
  5335. <filename>ICECC_PARALLEL_MAKE</filename> to achieve
  5336. optimal performance.
  5337. </para>
  5338. <para>
  5339. If you do not set <filename>ICECC_PARALLEL_MAKE</filename>,
  5340. the build system does not use it (i.e. the system does
  5341. not detect and assign the number of cores as is done with
  5342. <filename>PARALLEL_MAKE</filename>).
  5343. </para>
  5344. </glossdef>
  5345. </glossentry>
  5346. <glossentry id='var-ICECC_PATH'><glossterm>ICECC_PATH</glossterm>
  5347. <info>
  5348. ICECC_PATH[doc] = "The location of the icecc binary."
  5349. </info>
  5350. <glossdef>
  5351. <para role="glossdeffirst">
  5352. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5353. The location of the <filename>icecc</filename> binary.
  5354. You can set this variable in your
  5355. <filename>local.conf</filename> file.
  5356. If your <filename>local.conf</filename> file does not define
  5357. this variable, the
  5358. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5359. class attempts to define it by locating
  5360. <filename>icecc</filename> using <filename>which</filename>.
  5361. </para>
  5362. </glossdef>
  5363. </glossentry>
  5364. <glossentry id='var-ICECC_USER_CLASS_BL'><glossterm>ICECC_USER_CLASS_BL</glossterm>
  5365. <info>
  5366. ICECC_USER_CLASS_BL[doc] = "Identifies user classes that you do not want the Icecream distributed compile support to consider."
  5367. </info>
  5368. <glossdef>
  5369. <para role="glossdeffirst">
  5370. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5371. Identifies user classes that you do not want the
  5372. Icecream distributed compile support to consider.
  5373. This variable is used by the
  5374. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5375. class.
  5376. You set this variable in your
  5377. <filename>local.conf</filename> file.
  5378. </para>
  5379. <para>
  5380. When you list classes using this variable, you are
  5381. "blacklisting" them from distributed compilation across
  5382. remote hosts.
  5383. Any classes you list will be distributed and compiled
  5384. locally.
  5385. </para>
  5386. </glossdef>
  5387. </glossentry>
  5388. <glossentry id='var-ICECC_USER_PACKAGE_BL'><glossterm>ICECC_USER_PACKAGE_BL</glossterm>
  5389. <info>
  5390. ICECC_USER_PACKAGE_BL[doc] = "Identifies user recipes that you do not want the Icecream distributed compile support to consider."
  5391. </info>
  5392. <glossdef>
  5393. <para role="glossdeffirst">
  5394. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5395. Identifies user recipes that you do not want the
  5396. Icecream distributed compile support to consider.
  5397. This variable is used by the
  5398. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5399. class.
  5400. You set this variable in your
  5401. <filename>local.conf</filename> file.
  5402. </para>
  5403. <para>
  5404. When you list packages using this variable, you are
  5405. "blacklisting" them from distributed compilation across
  5406. remote hosts.
  5407. Any packages you list will be distributed and compiled
  5408. locally.
  5409. </para>
  5410. </glossdef>
  5411. </glossentry>
  5412. <glossentry id='var-ICECC_USER_PACKAGE_WL'><glossterm>ICECC_USER_PACKAGE_WL</glossterm>
  5413. <info>
  5414. 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."
  5415. </info>
  5416. <glossdef>
  5417. <para role="glossdeffirst">
  5418. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5419. Identifies user recipes that use an empty
  5420. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  5421. variable that you want to force remote distributed
  5422. compilation on using the Icecream distributed compile
  5423. support.
  5424. This variable is used by the
  5425. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5426. class.
  5427. You set this variable in your
  5428. <filename>local.conf</filename> file.
  5429. </para>
  5430. </glossdef>
  5431. </glossentry>
  5432. <glossentry id='var-IMAGE_BASENAME'><glossterm>IMAGE_BASENAME</glossterm>
  5433. <info>
  5434. IMAGE_BASENAME[doc] = "The base name of image output files."
  5435. </info>
  5436. <glossdef>
  5437. <para role="glossdeffirst">
  5438. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5439. The base name of image output files.
  5440. This variable defaults to the recipe name
  5441. (<filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  5442. </para>
  5443. </glossdef>
  5444. </glossentry>
  5445. <glossentry id='var-IMAGE_BOOT_FILES'><glossterm>IMAGE_BOOT_FILES</glossterm>
  5446. <info>
  5447. IMAGE_BOOT_FILES[doc] = "A space-separated list of files from ${DEPLOY_DIR_IMAGE} to place in boot partition."
  5448. </info>
  5449. <glossdef>
  5450. <para role="glossdeffirst">
  5451. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5452. A space-separated list of files installed into the
  5453. boot partition when preparing an image using the Wic tool
  5454. with the <filename>bootimg-partition</filename> source
  5455. plugin.
  5456. By default, the files are installed under the same name as
  5457. the source files.
  5458. To change the installed name, separate it from the
  5459. original name with a semi-colon (;).
  5460. Source files need to be located in
  5461. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>.
  5462. Here are two examples:
  5463. <literallayout class="monospaced">
  5464. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  5465. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  5466. </literallayout>
  5467. </para>
  5468. <para>
  5469. Alternatively, source files can be picked up using
  5470. a glob pattern.
  5471. In this case, the destination file must have the same name
  5472. as the base name of the source file path.
  5473. To install files into a directory within the
  5474. target location, pass its name after a semi-colon
  5475. (;).
  5476. Here are two examples:
  5477. <literallayout class="monospaced">
  5478. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  5479. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  5480. </literallayout>
  5481. The first example installs all files from
  5482. <filename>${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles</filename>
  5483. into the root of the target partition.
  5484. The second example installs the same files into a
  5485. <filename>boot</filename> directory within the
  5486. target partition.
  5487. </para>
  5488. <para>
  5489. You can find information on how to use the Wic tool in the
  5490. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-partitioned-images-using-wic'>Creating Partitioned Images Using Wic</ulink>"
  5491. section of the Yocto Project Development Tasks Manual.
  5492. Reference material for Wic is located in the
  5493. "<ulink url='&YOCTO_DOCS_REF_URL;#ref-kickstart'>OpenEmbedded Kickstart (.wks) Reference</ulink>"
  5494. chapter.
  5495. </para>
  5496. </glossdef>
  5497. </glossentry>
  5498. <glossentry id='var-IMAGE_CLASSES'><glossterm>IMAGE_CLASSES</glossterm>
  5499. <info>
  5500. IMAGE_CLASSES[doc] = "A list of classes that all images should inherit."
  5501. </info>
  5502. <glossdef>
  5503. <para role="glossdeffirst">
  5504. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5505. A list of classes that all images should inherit.
  5506. You typically use this variable to specify the list of
  5507. classes that register the different types of images
  5508. the OpenEmbedded build system creates.
  5509. </para>
  5510. <para>
  5511. The default value for <filename>IMAGE_CLASSES</filename> is
  5512. <filename>image_types</filename>.
  5513. You can set this variable in your
  5514. <filename>local.conf</filename> or in a distribution
  5515. configuration file.
  5516. </para>
  5517. <para>
  5518. For more information, see
  5519. <filename>meta/classes/image_types.bbclass</filename> in the
  5520. <link linkend='source-directory'>Source Directory</link>.
  5521. </para>
  5522. </glossdef>
  5523. </glossentry>
  5524. <glossentry id='var-IMAGE_CMD'><glossterm>IMAGE_CMD</glossterm>
  5525. <info>
  5526. 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)."
  5527. </info>
  5528. <glossdef>
  5529. <para role="glossdeffirst">
  5530. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5531. Specifies the command to create the image file for a
  5532. specific image type, which corresponds to the value set
  5533. set in
  5534. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>,
  5535. (e.g. <filename>ext3</filename>,
  5536. <filename>btrfs</filename>, and so forth).
  5537. When setting this variable, you should use
  5538. an override for the associated type.
  5539. Here is an example:
  5540. <literallayout class='monospaced'>
  5541. IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} \
  5542. --faketime --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
  5543. ${EXTRA_IMAGECMD}"
  5544. </literallayout>
  5545. </para>
  5546. <para>
  5547. You typically do not need to set this variable unless
  5548. you are adding support for a new image type.
  5549. For more examples on how to set this variable, see the
  5550. <link linkend='ref-classes-image_types'><filename>image_types</filename></link>
  5551. class file, which is
  5552. <filename>meta/classes/image_types.bbclass</filename>.
  5553. </para>
  5554. </glossdef>
  5555. </glossentry>
  5556. <glossentry id='var-IMAGE_DEVICE_TABLES'><glossterm>IMAGE_DEVICE_TABLES</glossterm>
  5557. <info>
  5558. 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."
  5559. </info>
  5560. <glossdef>
  5561. <para role="glossdeffirst">
  5562. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5563. Specifies one or more files that contain custom device
  5564. tables that are passed to the
  5565. <filename>makedevs</filename> command as part of creating
  5566. an image.
  5567. These files list basic device nodes that should be
  5568. created under <filename>/dev</filename> within the image.
  5569. If <filename>IMAGE_DEVICE_TABLES</filename> is not set,
  5570. <filename>files/device_table-minimal.txt</filename> is
  5571. used, which is located by
  5572. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>.
  5573. For details on how you should write device table files,
  5574. see <filename>meta/files/device_table-minimal.txt</filename>
  5575. as an example.
  5576. </para>
  5577. </glossdef>
  5578. </glossentry>
  5579. <glossentry id='var-IMAGE_FEATURES'><glossterm>IMAGE_FEATURES</glossterm>
  5580. <info>
  5581. IMAGE_FEATURES[doc] = "The primary list of features to include in an image. Configure this variable in an image recipe."
  5582. </info>
  5583. <glossdef>
  5584. <para role="glossdeffirst">
  5585. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5586. The primary list of features to include in an image.
  5587. Typically, you configure this variable in an image recipe.
  5588. Although you can use this variable from your
  5589. <filename>local.conf</filename> file, which is found in the
  5590. <link linkend='build-directory'>Build Directory</link>,
  5591. best practices dictate that you do not.
  5592. <note>
  5593. To enable extra features from outside the image recipe,
  5594. use the
  5595. <filename><link linkend='var-EXTRA_IMAGE_FEATURES'>EXTRA_IMAGE_FEATURES</link></filename> variable.
  5596. </note>
  5597. </para>
  5598. <para>
  5599. For a list of image features that ships with the Yocto
  5600. Project, see the
  5601. "<link linkend="ref-features-image">Image Features</link>"
  5602. section.
  5603. </para>
  5604. <para>
  5605. For an example that shows how to customize your image by
  5606. using this variable, see the
  5607. "<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>"
  5608. section in the Yocto Project Development Tasks Manual.
  5609. </para>
  5610. </glossdef>
  5611. </glossentry>
  5612. <glossentry id='var-IMAGE_FSTYPES'><glossterm>IMAGE_FSTYPES</glossterm>
  5613. <info>
  5614. IMAGE_FSTYPES[doc] = "Formats of root filesystem images that you want to have created."
  5615. </info>
  5616. <glossdef>
  5617. <para role="glossdeffirst">
  5618. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5619. Specifies the formats the OpenEmbedded build system uses
  5620. during the build when creating the root filesystem.
  5621. For example, setting <filename>IMAGE_FSTYPES</filename>
  5622. as follows causes the build system to create root
  5623. filesystems using two formats: <filename>.ext3</filename>
  5624. and <filename>.tar.bz2</filename>:
  5625. <literallayout class='monospaced'>
  5626. IMAGE_FSTYPES = "ext3 tar.bz2"
  5627. </literallayout>
  5628. </para>
  5629. <para>
  5630. For the complete list of supported image formats from which
  5631. you can choose, see
  5632. <link linkend='var-IMAGE_TYPES'><filename>IMAGE_TYPES</filename></link>.
  5633. </para>
  5634. <note><title>Notes</title>
  5635. <itemizedlist>
  5636. <listitem><para>
  5637. If you add "live" to
  5638. <filename>IMAGE_FSTYPES</filename> inside an image
  5639. recipe, be sure that you do so prior to the
  5640. "inherit image" line of the recipe or the live
  5641. image will not build.
  5642. </para></listitem>
  5643. <listitem><para>
  5644. Due to the way the OpenEmbedded build system
  5645. processes this variable, you cannot update its
  5646. contents by using <filename>_append</filename> or
  5647. <filename>_prepend</filename>.
  5648. You must use the <filename>+=</filename>
  5649. operator to add one or more options to the
  5650. <filename>IMAGE_FSTYPES</filename> variable.
  5651. </para></listitem>
  5652. </itemizedlist>
  5653. </note>
  5654. </glossdef>
  5655. </glossentry>
  5656. <glossentry id='var-IMAGE_INSTALL'><glossterm>IMAGE_INSTALL</glossterm>
  5657. <info>
  5658. IMAGE_INSTALL[doc] = "Used by recipes to specify the packages to install into an image through image.bbclass."
  5659. </info>
  5660. <glossdef>
  5661. <para role="glossdeffirst">
  5662. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5663. Used by recipes to specify the packages to install into an
  5664. image through the
  5665. <link linkend='ref-classes-image'><filename>image</filename></link>
  5666. class.
  5667. Use the <filename>IMAGE_INSTALL</filename> variable with
  5668. care to avoid ordering issues.
  5669. </para>
  5670. <para>
  5671. Image recipes set <filename>IMAGE_INSTALL</filename>
  5672. to specify the packages to install into an image through
  5673. <filename>image.bbclass</filename>.
  5674. Additionally, "helper" classes such as the
  5675. <link linkend='ref-classes-core-image'><filename>core-image</filename></link>
  5676. class exist that can take lists used with
  5677. <filename><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></filename>
  5678. and turn them into auto-generated entries in
  5679. <filename>IMAGE_INSTALL</filename> in addition to its
  5680. default contents.
  5681. </para>
  5682. <para>
  5683. When you use this variable, it is best to use it as follows:
  5684. <literallayout class='monospaced'>
  5685. IMAGE_INSTALL_append = " <replaceable>package-name</replaceable>"
  5686. </literallayout>
  5687. Be sure to include the space between the quotation character
  5688. and the start of the package name or names.
  5689. <note><title>Caution</title>
  5690. <itemizedlist>
  5691. <listitem><para>
  5692. When working with a
  5693. <link linkend='images-core-image-minimal-initramfs'><filename>core-image-minimal-initramfs</filename></link>
  5694. image, do not use the
  5695. <filename>IMAGE_INSTALL</filename> variable to
  5696. specify packages for installation.
  5697. Instead, use the
  5698. <link linkend='var-PACKAGE_INSTALL'><filename>PACKAGE_INSTALL</filename></link>
  5699. variable, which allows the initial RAM
  5700. filesystem (initramfs) recipe to use a fixed
  5701. set of packages and not be affected by
  5702. <filename>IMAGE_INSTALL</filename>.
  5703. For information on creating an initramfs, see
  5704. the
  5705. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  5706. section in the Yocto Project Development Tasks
  5707. Manual.
  5708. </para></listitem>
  5709. <listitem><para>
  5710. Using <filename>IMAGE_INSTALL</filename> with
  5711. the
  5712. <ulink url='&YOCTO_DOCS_BB_URL;#appending-and-prepending'><filename>+=</filename></ulink>
  5713. BitBake operator within the
  5714. <filename>/conf/local.conf</filename> file or
  5715. from within an image recipe is not recommended.
  5716. Use of this operator in these ways can cause
  5717. ordering issues.
  5718. Since <filename>core-image.bbclass</filename>
  5719. sets <filename>IMAGE_INSTALL</filename> to a
  5720. default value using the
  5721. <ulink url='&YOCTO_DOCS_BB_URL;#setting-a-default-value'><filename>?=</filename></ulink>
  5722. operator, using a <filename>+=</filename>
  5723. operation against
  5724. <filename>IMAGE_INSTALL</filename> results in
  5725. unexpected behavior when used within
  5726. <filename>conf/local.conf</filename>.
  5727. Furthermore, the same operation from within
  5728. an image recipe may or may not succeed
  5729. depending on the specific situation.
  5730. In both these cases, the behavior is contrary
  5731. to how most users expect the
  5732. <filename>+=</filename> operator to work.
  5733. </para></listitem>
  5734. </itemizedlist>
  5735. </note>
  5736. </para>
  5737. </glossdef>
  5738. </glossentry>
  5739. <glossentry id='var-IMAGE_LINGUAS'><glossterm>IMAGE_LINGUAS</glossterm>
  5740. <info>
  5741. IMAGE_LINGUAS[doc] = "Specifies the list of locales to install into the image during the root filesystem construction process."
  5742. </info>
  5743. <glossdef>
  5744. <para role="glossdeffirst">
  5745. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5746. Specifies the list of locales to install into the image
  5747. during the root filesystem construction process.
  5748. The OpenEmbedded build system automatically splits locale
  5749. files, which are used for localization, into separate
  5750. packages.
  5751. Setting the <filename>IMAGE_LINGUAS</filename> variable
  5752. ensures that any locale packages that correspond to packages
  5753. already selected for installation into the image are also
  5754. installed.
  5755. Here is an example:
  5756. <literallayout class='monospaced'>
  5757. IMAGE_LINGUAS = "pt-br de-de"
  5758. </literallayout>
  5759. </para>
  5760. <para>
  5761. In this example, the build system ensures any Brazilian
  5762. Portuguese and German locale files that correspond to
  5763. packages in the image are installed (i.e.
  5764. <filename>*-locale-pt-br</filename>
  5765. and <filename>*-locale-de-de</filename> as well as
  5766. <filename>*-locale-pt</filename>
  5767. and <filename>*-locale-de</filename>, since some software
  5768. packages only provide locale files by language and not by
  5769. country-specific language).
  5770. </para>
  5771. <para>
  5772. See the
  5773. <link linkend='var-GLIBC_GENERATE_LOCALES'><filename>GLIBC_GENERATE_LOCALES</filename></link>
  5774. variable for information on generating GLIBC locales.
  5775. </para>
  5776. </glossdef>
  5777. </glossentry>
  5778. <glossentry id='var-IMAGE_MANIFEST'><glossterm>IMAGE_MANIFEST</glossterm>
  5779. <info>
  5780. IMAGE_MANIFEST[doc] = "The manifest file for the image. This file lists all the installed packages that make up the image."
  5781. </info>
  5782. <glossdef>
  5783. <para role="glossdeffirst">
  5784. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5785. The manifest file for the image.
  5786. This file lists all the installed packages that make up
  5787. the image.
  5788. The file contains package information on a line-per-package
  5789. basis as follows:
  5790. <literallayout class='monospaced'>
  5791. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  5792. </literallayout>
  5793. </para>
  5794. <para>
  5795. The
  5796. <link linkend='ref-classes-image'><filename>image</filename></link>
  5797. class defines the manifest file as follows:
  5798. <literallayout class='monospaced'>
  5799. IMAGE_MANIFEST = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest"
  5800. </literallayout>
  5801. The location is derived using the
  5802. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>
  5803. and
  5804. <link linkend='var-IMAGE_NAME'><filename>IMAGE_NAME</filename></link>
  5805. variables.
  5806. You can find information on how the image
  5807. is created in the
  5808. "<ulink url='&YOCTO_DOCS_OM_URL;#image-generation-dev-environment'>Image Generation</ulink>"
  5809. section in the Yocto Project Overview and Concepts Manual.
  5810. </para>
  5811. </glossdef>
  5812. </glossentry>
  5813. <glossentry id='var-IMAGE_NAME'><glossterm>IMAGE_NAME</glossterm>
  5814. <info>
  5815. IMAGE_NAME[doc] = "The name of the output image files minus the extension."
  5816. </info>
  5817. <glossdef>
  5818. <para role="glossdeffirst">
  5819. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5820. The name of the output image files minus the extension.
  5821. This variable is derived using the
  5822. <link linkend='var-IMAGE_BASENAME'><filename>IMAGE_BASENAME</filename></link>,
  5823. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>,
  5824. and
  5825. <link linkend='var-DATETIME'><filename>DATETIME</filename></link>
  5826. variables:
  5827. <literallayout class='monospaced'>
  5828. IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}"
  5829. </literallayout>
  5830. </para>
  5831. </glossdef>
  5832. </glossentry>
  5833. <glossentry id='var-IMAGE_OVERHEAD_FACTOR'><glossterm>IMAGE_OVERHEAD_FACTOR</glossterm>
  5834. <info>
  5835. 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."
  5836. </info>
  5837. <glossdef>
  5838. <para role="glossdeffirst">
  5839. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5840. Defines a multiplier that the build system applies to the initial image
  5841. size for cases when the multiplier times the returned disk usage value
  5842. for the image is greater than the sum of
  5843. <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>
  5844. and
  5845. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>.
  5846. The result of the multiplier applied to the initial image size creates
  5847. free disk space in the image as overhead.
  5848. By default, the build process uses a multiplier of 1.3 for this variable.
  5849. This default value results in 30% free disk space added to the image when this
  5850. method is used to determine the final generated image size.
  5851. You should be aware that post install scripts and the package management
  5852. system uses disk space inside this overhead area.
  5853. Consequently, the multiplier does not produce an image with
  5854. all the theoretical free disk space.
  5855. See <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>
  5856. for information on how the build system determines the overall image size.
  5857. </para>
  5858. <para>
  5859. The default 30% free disk space typically gives the image enough room to boot
  5860. and allows for basic post installs while still leaving a small amount of
  5861. free disk space.
  5862. If 30% free space is inadequate, you can increase the default value.
  5863. For example, the following setting gives you 50% free space added to the image:
  5864. <literallayout class='monospaced'>
  5865. IMAGE_OVERHEAD_FACTOR = "1.5"
  5866. </literallayout>
  5867. </para>
  5868. <para>
  5869. Alternatively, you can ensure a specific amount of free disk space is added
  5870. to the image by using the
  5871. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>
  5872. variable.
  5873. </para>
  5874. </glossdef>
  5875. </glossentry>
  5876. <glossentry id='var-IMAGE_PKGTYPE'><glossterm>IMAGE_PKGTYPE</glossterm>
  5877. <info>
  5878. IMAGE_PKGTYPE[doc] = "Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the OpenEmbedded build system."
  5879. </info>
  5880. <glossdef>
  5881. <para role="glossdeffirst">
  5882. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5883. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used
  5884. by the OpenEmbedded build system.
  5885. The variable is defined appropriately by the
  5886. <link linkend='ref-classes-package_deb'><filename>package_deb</filename></link>,
  5887. <link linkend='ref-classes-package_rpm'><filename>package_rpm</filename></link>,
  5888. <link linkend='ref-classes-package_ipk'><filename>package_ipk</filename></link>,
  5889. or
  5890. <link linkend='ref-classes-package_tar'><filename>package_tar</filename></link>
  5891. class.
  5892. <note><title>Warning</title>
  5893. The <filename>package_tar</filename> class is broken
  5894. and is not supported.
  5895. It is recommended that you do not use it.
  5896. </note>
  5897. </para>
  5898. <para>
  5899. The
  5900. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_*</filename></link>
  5901. and
  5902. <link linkend='ref-classes-image'><filename>image</filename></link>
  5903. classes use the <filename>IMAGE_PKGTYPE</filename> for
  5904. packaging up images and SDKs.
  5905. </para>
  5906. <para>
  5907. You should not set the <filename>IMAGE_PKGTYPE</filename>
  5908. manually.
  5909. Rather, the variable is set indirectly through the
  5910. appropriate
  5911. <link linkend='ref-classes-package'><filename>package_*</filename></link>
  5912. class using the
  5913. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  5914. variable.
  5915. The OpenEmbedded build system uses the first package type
  5916. (e.g. DEB, RPM, or IPK) that appears with the variable
  5917. <note>
  5918. Files using the <filename>.tar</filename> format are
  5919. never used as a substitute packaging format for DEB,
  5920. RPM, and IPK formatted files for your image or SDK.
  5921. </note>
  5922. </para>
  5923. </glossdef>
  5924. </glossentry>
  5925. <glossentry id='var-IMAGE_POSTPROCESS_COMMAND'><glossterm>IMAGE_POSTPROCESS_COMMAND</glossterm>
  5926. <info>
  5927. IMAGE_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system creates the final image output files."
  5928. </info>
  5929. <glossdef>
  5930. <para role="glossdeffirst">
  5931. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5932. Specifies a list of functions to call once the
  5933. OpenEmbedded build system creates the final image
  5934. output files.
  5935. You can specify functions separated by semicolons:
  5936. <literallayout class='monospaced'>
  5937. IMAGE_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  5938. </literallayout>
  5939. </para>
  5940. <para>
  5941. If you need to pass the root filesystem path to a command
  5942. within the function, you can use
  5943. <filename>${IMAGE_ROOTFS}</filename>, which points to
  5944. the directory that becomes the root filesystem image.
  5945. See the
  5946. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  5947. variable for more information.
  5948. </para>
  5949. </glossdef>
  5950. </glossentry>
  5951. <glossentry id='var-IMAGE_PREPROCESS_COMMAND'><glossterm>IMAGE_PREPROCESS_COMMAND</glossterm>
  5952. <info>
  5953. IMAGE_PREPROCESS_COMMAND[doc] = "Specifies a list of functions to call before the OpenEmbedded build system creates the final image output files."
  5954. </info>
  5955. <glossdef>
  5956. <para role="glossdeffirst">
  5957. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5958. Specifies a list of functions to call before the
  5959. OpenEmbedded build system creates the final image
  5960. output files.
  5961. You can specify functions separated by semicolons:
  5962. <literallayout class='monospaced'>
  5963. IMAGE_PREPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  5964. </literallayout>
  5965. </para>
  5966. <para>
  5967. If you need to pass the root filesystem path to a command
  5968. within the function, you can use
  5969. <filename>${IMAGE_ROOTFS}</filename>, which points to
  5970. the directory that becomes the root filesystem image.
  5971. See the
  5972. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  5973. variable for more information.
  5974. </para>
  5975. </glossdef>
  5976. </glossentry>
  5977. <glossentry id='var-IMAGE_ROOTFS'><glossterm>IMAGE_ROOTFS</glossterm>
  5978. <info>
  5979. IMAGE_ROOTFS[doc] = "The location of the root filesystem while it is under construction (i.e. during do_rootfs)."
  5980. </info>
  5981. <glossdef>
  5982. <para role="glossdeffirst">
  5983. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5984. The location of the root filesystem while it is under
  5985. construction (i.e. during the
  5986. <link linkend='ref-tasks-rootfs'><filename>do_rootfs</filename></link>
  5987. task).
  5988. This variable is not configurable.
  5989. Do not change it.
  5990. </para>
  5991. </glossdef>
  5992. </glossentry>
  5993. <glossentry id='var-IMAGE_ROOTFS_ALIGNMENT'><glossterm>IMAGE_ROOTFS_ALIGNMENT</glossterm>
  5994. <info>
  5995. IMAGE_ROOTFS_ALIGNMENT[doc] = "Specifies the alignment for the output image file in Kbytes."
  5996. </info>
  5997. <glossdef>
  5998. <para role="glossdeffirst">
  5999. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6000. Specifies the alignment for the output image file in
  6001. Kbytes.
  6002. If the size of the image is not a multiple of
  6003. this value, then the size is rounded up to the nearest
  6004. multiple of the value.
  6005. The default value is "1".
  6006. See
  6007. <link linkend='var-IMAGE_ROOTFS_SIZE'><filename>IMAGE_ROOTFS_SIZE</filename></link>
  6008. for additional information.
  6009. </para>
  6010. </glossdef>
  6011. </glossentry>
  6012. <glossentry id='var-IMAGE_ROOTFS_EXTRA_SPACE'><glossterm>IMAGE_ROOTFS_EXTRA_SPACE</glossterm>
  6013. <info>
  6014. IMAGE_ROOTFS_EXTRA_SPACE[doc] = "Defines additional free disk space created in the image in Kbytes. By default, this variable is set to '0'."
  6015. </info>
  6016. <glossdef>
  6017. <para role="glossdeffirst">
  6018. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6019. Defines additional free disk space created in the image in Kbytes.
  6020. By default, this variable is set to "0".
  6021. This free disk space is added to the image after the build system determines
  6022. the image size as described in
  6023. <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>.
  6024. </para>
  6025. <para>
  6026. This variable is particularly useful when you want to ensure that a
  6027. specific amount of free disk space is available on a device after an image
  6028. is installed and running.
  6029. For example, to be sure 5 Gbytes of free disk space is available, set the
  6030. variable as follows:
  6031. <literallayout class='monospaced'>
  6032. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  6033. </literallayout>
  6034. </para>
  6035. <para>
  6036. For example, the Yocto Project Build Appliance specifically requests 40 Gbytes
  6037. of extra space with the line:
  6038. <literallayout class='monospaced'>
  6039. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  6040. </literallayout>
  6041. </para>
  6042. </glossdef>
  6043. </glossentry>
  6044. <glossentry id='var-IMAGE_ROOTFS_SIZE'><glossterm>IMAGE_ROOTFS_SIZE</glossterm>
  6045. <info>
  6046. IMAGE_ROOTFS_SIZE[doc] = "Defines the size in Kbytes for the generated image."
  6047. </info>
  6048. <glossdef>
  6049. <para role="glossdeffirst">
  6050. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6051. Defines the size in Kbytes for the generated image.
  6052. The OpenEmbedded build system determines the final size for the generated
  6053. image using an algorithm that takes into account the initial disk space used
  6054. for the generated image, a requested size for the image, and requested
  6055. additional free disk space to be added to the image.
  6056. Programatically, the build system determines the final size of the
  6057. generated image as follows:
  6058. <literallayout class='monospaced'>
  6059. if (image-du * overhead) &lt; rootfs-size:
  6060. internal-rootfs-size = rootfs-size + xspace
  6061. else:
  6062. internal-rootfs-size = (image-du * overhead) + xspace
  6063. where:
  6064. image-du = Returned value of the du command on
  6065. the image.
  6066. overhead = IMAGE_OVERHEAD_FACTOR
  6067. rootfs-size = IMAGE_ROOTFS_SIZE
  6068. internal-rootfs-size = Initial root filesystem
  6069. size before any modifications.
  6070. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  6071. </literallayout>
  6072. </para>
  6073. <para>
  6074. See the <link linkend='var-IMAGE_OVERHEAD_FACTOR'><filename>IMAGE_OVERHEAD_FACTOR</filename></link>
  6075. and <link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'><filename>IMAGE_ROOTFS_EXTRA_SPACE</filename></link>
  6076. variables for related information.
  6077. <!-- In the above example, <filename>overhead</filename> is defined by the
  6078. <filename><link linkend='var-IMAGE_OVERHEAD_FACTOR'>IMAGE_OVERHEAD_FACTOR</link></filename>
  6079. variable, <filename>xspace</filename> is defined by the
  6080. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>
  6081. variable, and <filename>du</filename> is the results of the disk usage command
  6082. on the initially generated image. -->
  6083. </para>
  6084. </glossdef>
  6085. </glossentry>
  6086. <glossentry id='var-IMAGE_TYPEDEP'><glossterm>IMAGE_TYPEDEP</glossterm>
  6087. <info>
  6088. IMAGE_TYPEDEP[doc] = "Specifies a dependency from one image type on another."
  6089. </info>
  6090. <glossdef>
  6091. <para role="glossdeffirst">
  6092. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6093. Specifies a dependency from one image type on another.
  6094. Here is an example from the
  6095. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  6096. class:
  6097. <literallayout class='monospaced'>
  6098. IMAGE_TYPEDEP_live = "ext3"
  6099. </literallayout>
  6100. </para>
  6101. <para>
  6102. In the previous example, the variable ensures that when
  6103. "live" is listed with the
  6104. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  6105. variable, the OpenEmbedded build system produces an
  6106. <filename>ext3</filename> image first since one of the
  6107. components of the live
  6108. image is an <filename>ext3</filename>
  6109. formatted partition containing the root
  6110. filesystem.
  6111. </para>
  6112. </glossdef>
  6113. </glossentry>
  6114. <glossentry id='var-IMAGE_TYPES'><glossterm>IMAGE_TYPES</glossterm>
  6115. <info>
  6116. IMAGE_TYPES[doc] = "Specifies the complete list of supported image types by default."
  6117. </info>
  6118. <glossdef>
  6119. <para role="glossdeffirst">
  6120. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6121. Specifies the complete list of supported image types
  6122. by default:
  6123. <literallayout class='monospaced'>
  6124. btrfs
  6125. cpio
  6126. cpio.gz
  6127. cpio.lz4
  6128. cpio.lzma
  6129. cpio.xz
  6130. cramfs
  6131. elf
  6132. ext2
  6133. ext2.bz2
  6134. ext2.gz
  6135. ext2.lzma
  6136. ext3
  6137. ext3.gz
  6138. ext4
  6139. ext4.gz
  6140. hdddirect
  6141. hddimg
  6142. iso
  6143. jffs2
  6144. jffs2.sum
  6145. multiubi
  6146. squashfs
  6147. squashfs-lzo
  6148. squashfs-xz
  6149. tar
  6150. tar.bz2
  6151. tar.gz
  6152. tar.lz4
  6153. tar.xz
  6154. ubi
  6155. ubifs
  6156. wic
  6157. wic.bz2
  6158. wic.gz
  6159. wic.lzma
  6160. </literallayout>
  6161. </para>
  6162. <para>
  6163. For more information about these types of images, see
  6164. <filename>meta/classes/image_types*.bbclass</filename>
  6165. in the
  6166. <link linkend='source-directory'>Source Directory</link>.
  6167. </para>
  6168. </glossdef>
  6169. </glossentry>
  6170. <glossentry id='var-INC_PR'><glossterm>INC_PR</glossterm>
  6171. <info>
  6172. INC_PR[doc] = "Helps define the recipe revision for recipes that share a common include file."
  6173. </info>
  6174. <glossdef>
  6175. <para role="glossdeffirst">
  6176. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6177. Helps define the recipe revision for recipes that share
  6178. a common <filename>include</filename> file.
  6179. You can think of this variable as part of the recipe revision
  6180. as set from within an include file.
  6181. </para>
  6182. <para>
  6183. Suppose, for example, you have a set of recipes that
  6184. are used across several projects.
  6185. And, within each of those recipes the revision
  6186. (its <link linkend='var-PR'><filename>PR</filename></link>
  6187. value) is set accordingly.
  6188. In this case, when the revision of those recipes changes,
  6189. the burden is on you to find all those recipes and
  6190. be sure that they get changed to reflect the updated
  6191. version of the recipe.
  6192. In this scenario, it can get complicated when recipes
  6193. that are used in many places and provide common functionality
  6194. are upgraded to a new revision.
  6195. </para>
  6196. <para>
  6197. A more efficient way of dealing with this situation is
  6198. to set the <filename>INC_PR</filename> variable inside
  6199. the <filename>include</filename> files that the recipes
  6200. share and then expand the <filename>INC_PR</filename>
  6201. variable within the recipes to help
  6202. define the recipe revision.
  6203. </para>
  6204. <para>
  6205. The following provides an example that shows how to use
  6206. the <filename>INC_PR</filename> variable
  6207. given a common <filename>include</filename> file that
  6208. defines the variable.
  6209. Once the variable is defined in the
  6210. <filename>include</filename> file, you can use the
  6211. variable to set the <filename>PR</filename> values in
  6212. each recipe.
  6213. You will notice that when you set a recipe's
  6214. <filename>PR</filename> you can provide more granular
  6215. revisioning by appending values to the
  6216. <filename>INC_PR</filename> variable:
  6217. <literallayout class='monospaced'>
  6218. recipes-graphics/xorg-font/xorg-font-common.inc:INC_PR = "r2"
  6219. recipes-graphics/xorg-font/encodings_1.0.4.bb:PR = "${INC_PR}.1"
  6220. recipes-graphics/xorg-font/font-util_1.3.0.bb:PR = "${INC_PR}.0"
  6221. recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
  6222. </literallayout>
  6223. The first line of the example establishes the baseline
  6224. revision to be used for all recipes that use the
  6225. <filename>include</filename> file.
  6226. The remaining lines in the example are from individual
  6227. recipes and show how the <filename>PR</filename> value
  6228. is set.
  6229. </para>
  6230. </glossdef>
  6231. </glossentry>
  6232. <glossentry id='var-INCOMPATIBLE_LICENSE'><glossterm>INCOMPATIBLE_LICENSE</glossterm>
  6233. <info>
  6234. INCOMPATIBLE_LICENSE[doc] = "Specifies a space-separated list of license names (as they would appear in LICENSE) that should be excluded from the build."
  6235. </info>
  6236. <glossdef>
  6237. <para role="glossdeffirst">
  6238. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6239. Specifies a space-separated list of license names
  6240. (as they would appear in
  6241. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>)
  6242. that should be excluded from the build.
  6243. Recipes that provide no alternatives to listed incompatible
  6244. licenses are not built.
  6245. Packages that are individually licensed with the specified
  6246. incompatible licenses will be deleted.
  6247. </para>
  6248. <note>
  6249. This functionality is only regularly tested using
  6250. the following setting:
  6251. <literallayout class='monospaced'>
  6252. INCOMPATIBLE_LICENSE = "GPL-3.0 LGPL-3.0 AGPL-3.0"
  6253. </literallayout>
  6254. Although you can use other settings, you might be required
  6255. to remove dependencies on or provide alternatives to
  6256. components that are required to produce a functional system
  6257. image.
  6258. </note>
  6259. </glossdef>
  6260. </glossentry>
  6261. <glossentry id='var-INHERIT'><glossterm>INHERIT</glossterm>
  6262. <info>
  6263. INHERIT[doc] = "Causes the named class or classes to be inherited globally."
  6264. </info>
  6265. <glossdef>
  6266. <para role="glossdeffirst">
  6267. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6268. Causes the named class or classes to be inherited globally.
  6269. Anonymous functions in the class or classes
  6270. are not executed for the
  6271. base configuration and in each individual recipe.
  6272. The OpenEmbedded build system ignores changes to
  6273. <filename>INHERIT</filename> in individual recipes.
  6274. </para>
  6275. <para>
  6276. For more information on <filename>INHERIT</filename>, see
  6277. the
  6278. "<ulink url="&YOCTO_DOCS_BB_URL;#inherit-configuration-directive"><filename>INHERIT</filename> Configuration Directive</ulink>"
  6279. section in the Bitbake User Manual.
  6280. </para>
  6281. </glossdef>
  6282. </glossentry>
  6283. <glossentry id='var-INHERIT_DISTRO'><glossterm>INHERIT_DISTRO</glossterm>
  6284. <info>
  6285. INHERIT_DISTRO[doc] = "Lists classes that will be inherited at the distribution level. It is unlikely that you want to edit this variable."
  6286. </info>
  6287. <glossdef>
  6288. <para role="glossdeffirst">
  6289. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6290. Lists classes that will be inherited at the
  6291. distribution level.
  6292. It is unlikely that you want to edit this variable.
  6293. </para>
  6294. <para>
  6295. The default value of the variable is set as follows in the
  6296. <filename>meta/conf/distro/defaultsetup.conf</filename>
  6297. file:
  6298. <literallayout class='monospaced'>
  6299. INHERIT_DISTRO ?= "debian devshell sstate license"
  6300. </literallayout>
  6301. </para>
  6302. </glossdef>
  6303. </glossentry>
  6304. <glossentry id='var-INHIBIT_DEFAULT_DEPS'><glossterm>INHIBIT_DEFAULT_DEPS</glossterm>
  6305. <info>
  6306. INHIBIT_DEFAULT_DEPS[doc] = "Prevents the default dependencies, namely the C compiler and standard C library (libc), from being added to DEPENDS."
  6307. </info>
  6308. <glossdef>
  6309. <para role="glossdeffirst">
  6310. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6311. Prevents the default dependencies, namely the C compiler
  6312. and standard C library (libc), from being added to
  6313. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>.
  6314. This variable is usually used within recipes that do not
  6315. require any compilation using the C compiler.
  6316. </para>
  6317. <para>
  6318. Set the variable to "1" to prevent the default dependencies
  6319. from being added.
  6320. </para>
  6321. </glossdef>
  6322. </glossentry>
  6323. <glossentry id='var-INHIBIT_PACKAGE_DEBUG_SPLIT'><glossterm>INHIBIT_PACKAGE_DEBUG_SPLIT</glossterm>
  6324. <info>
  6325. INHIBIT_PACKAGE_DEBUG_SPLIT[doc] = "If set to "1", prevents the OpenEmbedded build system from splitting out debug information during packaging"
  6326. </info>
  6327. <glossdef>
  6328. <para role="glossdeffirst">
  6329. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6330. Prevents the OpenEmbedded build system from splitting
  6331. out debug information during packaging.
  6332. By default, the build system splits out debugging
  6333. information during the
  6334. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  6335. task.
  6336. For more information on how debug information is split out,
  6337. see the
  6338. <link linkend='var-PACKAGE_DEBUG_SPLIT_STYLE'><filename>PACKAGE_DEBUG_SPLIT_STYLE</filename></link>
  6339. variable.
  6340. </para>
  6341. <para>
  6342. To prevent the build system from splitting out
  6343. debug information during packaging, set the
  6344. <filename>INHIBIT_PACKAGE_DEBUG_SPLIT</filename> variable
  6345. as follows:
  6346. <literallayout class='monospaced'>
  6347. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  6348. </literallayout>
  6349. </para>
  6350. </glossdef>
  6351. </glossentry>
  6352. <glossentry id='var-INHIBIT_PACKAGE_STRIP'><glossterm>INHIBIT_PACKAGE_STRIP</glossterm>
  6353. <info>
  6354. INHIBIT_PACKAGE_STRIP[doc] = "If set to "1", causes the build to not strip binaries in resulting packages."
  6355. </info>
  6356. <glossdef>
  6357. <para role="glossdeffirst">
  6358. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6359. If set to "1", causes the build to not strip binaries in
  6360. resulting packages and prevents the
  6361. <filename>-dbg</filename> package from containing the
  6362. source files.
  6363. </para>
  6364. <para>
  6365. By default, the OpenEmbedded build system strips
  6366. binaries and puts the debugging symbols into
  6367. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}-dbg</filename>.
  6368. Consequently, you should not set
  6369. <filename>INHIBIT_PACKAGE_STRIP</filename> when you plan
  6370. to debug in general.
  6371. </para>
  6372. </glossdef>
  6373. </glossentry>
  6374. <glossentry id='var-INITRAMFS_FSTYPES'><glossterm>INITRAMFS_FSTYPES</glossterm>
  6375. <info>
  6376. INITRAMFS_FSTYPES[doc] = "Defines the format for the output image of an initial RAM filesystem (initramfs), which is used during boot."
  6377. </info>
  6378. <glossdef>
  6379. <para role="glossdeffirst">
  6380. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6381. Defines the format for the output image of an initial
  6382. RAM filesystem (initramfs), which is used during boot.
  6383. Supported formats are the same as those supported by the
  6384. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  6385. variable.
  6386. </para>
  6387. <para>
  6388. The default value of this variable, which is set in the
  6389. <filename>meta/conf/bitbake.conf</filename> configuration
  6390. file in the
  6391. <link linkend='source-directory'>Source Directory</link>,
  6392. is "cpio.gz".
  6393. The Linux kernel's initramfs mechanism, as opposed to the
  6394. initial RAM filesystem
  6395. <ulink url='https://en.wikipedia.org/wiki/Initrd'>initrd</ulink>
  6396. mechanism, expects an optionally compressed cpio
  6397. archive.
  6398. </para>
  6399. </glossdef>
  6400. </glossentry>
  6401. <glossentry id='var-INITRAMFS_IMAGE'><glossterm>INITRAMFS_IMAGE</glossterm>
  6402. <info>
  6403. INITRAMFS_IMAGE[doc] = "Specifies the PROVIDES name of an image recipe that is used to build an initial RAM filesystem (initramfs) image."
  6404. </info>
  6405. <glossdef>
  6406. <para role="glossdeffirst">
  6407. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6408. Specifies the
  6409. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  6410. name of an image recipe that is used to build an initial
  6411. RAM filesystem (initramfs) image.
  6412. In other words, the <filename>INITRAMFS_IMAGE</filename>
  6413. variable causes an additional recipe to be built as
  6414. a dependency to whatever root filesystem recipe you
  6415. might be using (e.g. <filename>core-image-sato</filename>).
  6416. The initramfs image recipe you provide should set
  6417. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  6418. to
  6419. <link linkend='var-INITRAMFS_FSTYPES'><filename>INITRAMFS_FSTYPES</filename></link>.
  6420. </para>
  6421. <para>
  6422. An initramfs image provides a temporary root filesystem
  6423. used for early system initialization (e.g. loading of
  6424. modules needed to locate and mount the "real" root
  6425. filesystem).
  6426. <note>
  6427. See the <filename>meta/recipes-core/images/core-image-minimal-initramfs.bb</filename>
  6428. recipe in the
  6429. <link linkend='source-directory'>Source Directory</link>
  6430. for an example initramfs recipe.
  6431. To select this sample recipe as the one built
  6432. to provide the initramfs image,
  6433. set <filename>INITRAMFS_IMAGE</filename> to
  6434. "core-image-minimal-initramfs".
  6435. </note>
  6436. </para>
  6437. <para>
  6438. You can also find more information by referencing the
  6439. <filename>meta-poky/conf/local.conf.sample.extended</filename>
  6440. configuration file in the Source Directory,
  6441. the
  6442. <link linkend='ref-classes-image'><filename>image</filename></link>
  6443. class, and the
  6444. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  6445. class to see how to use the
  6446. <filename>INITRAMFS_IMAGE</filename> variable.
  6447. </para>
  6448. <para>
  6449. If <filename>INITRAMFS_IMAGE</filename> is empty, which is
  6450. the default, then no initramfs image is built.
  6451. </para>
  6452. <para>
  6453. For more information, you can also see the
  6454. <link linkend='var-INITRAMFS_IMAGE_BUNDLE'><filename>INITRAMFS_IMAGE_BUNDLE</filename></link>
  6455. variable, which allows the generated image to be bundled
  6456. inside the kernel image.
  6457. Additionally, for information on creating an initramfs
  6458. image, see the
  6459. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  6460. section in the Yocto Project Development Tasks Manual.
  6461. </para>
  6462. </glossdef>
  6463. </glossentry>
  6464. <glossentry id='var-INITRAMFS_IMAGE_BUNDLE'><glossterm>INITRAMFS_IMAGE_BUNDLE</glossterm>
  6465. <info>
  6466. 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 filesystem (initramfs)."
  6467. </info>
  6468. <glossdef>
  6469. <para role="glossdeffirst">
  6470. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6471. Controls whether or not the image recipe specified by
  6472. <link linkend='var-INITRAMFS_IMAGE'><filename>INITRAMFS_IMAGE</filename></link>
  6473. is run through an extra pass
  6474. (<link linkend='ref-tasks-bundle_initramfs'><filename>do_bundle_initramfs</filename></link>)
  6475. during kernel compilation in order to build a single binary
  6476. that contains both the kernel image and the initial RAM
  6477. filesystem (initramfs) image.
  6478. This makes use of the
  6479. <link linkend='var-CONFIG_INITRAMFS_SOURCE'><filename>CONFIG_INITRAMFS_SOURCE</filename></link>
  6480. kernel feature.
  6481. <note>
  6482. Using an extra compilation pass to bundle the initramfs
  6483. avoids a circular dependency between the kernel recipe and
  6484. the initramfs recipe should the initramfs include kernel
  6485. modules.
  6486. Should that be the case, the initramfs recipe depends on
  6487. the kernel for the kernel modules, and the kernel depends
  6488. on the initramfs recipe since the initramfs is bundled
  6489. inside the kernel image.
  6490. </note>
  6491. </para>
  6492. <para>
  6493. The combined binary is deposited into the
  6494. <filename>tmp/deploy</filename> directory, which is part
  6495. of the
  6496. <link linkend='build-directory'>Build Directory</link>.
  6497. </para>
  6498. <para>
  6499. Setting the variable to "1" in a configuration file causes the
  6500. OpenEmbedded build system to generate a kernel image with the
  6501. initramfs specified in <filename>INITRAMFS_IMAGE</filename>
  6502. bundled within:
  6503. <literallayout class='monospaced'>
  6504. INITRAMFS_IMAGE_BUNDLE = "1"
  6505. </literallayout>
  6506. By default, the
  6507. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  6508. class sets this variable to a null string as follows:
  6509. <literallayout class='monospaced'>
  6510. INITRAMFS_IMAGE_BUNDLE ?= ""
  6511. </literallayout>
  6512. <note>
  6513. You must set the
  6514. <filename>INITRAMFS_IMAGE_BUNDLE</filename> variable in
  6515. a configuration file.
  6516. You cannot set the variable in a recipe file.
  6517. </note>
  6518. See the
  6519. <ulink url='&YOCTO_GIT_URL;/cgit/cgit.cgi/poky/tree/meta-poky/conf/local.conf.sample.extended'><filename>local.conf.sample.extended</filename></ulink>
  6520. file for additional information.
  6521. Also, for information on creating an initramfs, see the
  6522. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  6523. section in the Yocto Project Development Tasks Manual.
  6524. </para>
  6525. </glossdef>
  6526. </glossentry>
  6527. <glossentry id='var-INITRAMFS_LINK_NAME'><glossterm>INITRAMFS_LINK_NAME</glossterm>
  6528. <info>
  6529. INITRAMFS_LINK_NAME[doc] = "The link name of the initial RAM filesystem image."
  6530. </info>
  6531. <glossdef>
  6532. <para role="glossdeffirst">
  6533. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6534. The link name of the initial RAM filesystem image.
  6535. This variable is set in the
  6536. <filename>meta/classes/kernel-artifact-names.bbclass</filename>
  6537. file as follows:
  6538. <literallayout class='monospaced'>
  6539. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  6540. </literallayout>
  6541. The value of the <filename>KERNEL_ARTIFACT_LINK_NAME</filename>
  6542. variable, which is set in the same file, has the following
  6543. value:
  6544. <literallayout class='monospaced'>
  6545. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  6546. </literallayout>
  6547. </para>
  6548. <para>
  6549. See the
  6550. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>
  6551. variable for additional information.
  6552. </para>
  6553. </glossdef>
  6554. </glossentry>
  6555. <glossentry id='var-INITRAMFS_NAME'><glossterm>INITRAMFS_NAME</glossterm>
  6556. <info>
  6557. INITRAMFS_NAME[doc] = "The base name of the initial RAM filesystem image."
  6558. </info>
  6559. <glossdef>
  6560. <para role="glossdeffirst">
  6561. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6562. The base name of the initial RAM filesystem image.
  6563. This variable is set in the
  6564. <filename>meta/classes/kernel-artifact-names.bbclass</filename>
  6565. file as follows:
  6566. <literallayout class='monospaced'>
  6567. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  6568. </literallayout>
  6569. The value of the
  6570. <link linkend='var-KERNEL_ARTIFACT_NAME'><filename>KERNEL_ARTIFACT_NAME</filename></link>
  6571. variable, which is set in the same file, has the following
  6572. value:
  6573. <literallayout class='monospaced'>
  6574. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  6575. </literallayout>
  6576. </para>
  6577. </glossdef>
  6578. </glossentry>
  6579. <glossentry id='var-INITRD'><glossterm>INITRD</glossterm>
  6580. <info>
  6581. INITRD[doc] = "Indicates a list of filesystem images to concatenate and use as an initial RAM disk (initrd)."
  6582. </info>
  6583. <glossdef>
  6584. <para role="glossdeffirst">
  6585. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6586. Indicates list of filesystem images to concatenate and use
  6587. as an initial RAM disk (<filename>initrd</filename>).
  6588. </para>
  6589. <para>
  6590. The <filename>INITRD</filename> variable is an optional
  6591. variable used with the
  6592. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  6593. class.
  6594. </para>
  6595. </glossdef>
  6596. </glossentry>
  6597. <glossentry id='var-INITRD_IMAGE'><glossterm>INITRD_IMAGE</glossterm>
  6598. <info>
  6599. 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."
  6600. </info>
  6601. <glossdef>
  6602. <para role="glossdeffirst">
  6603. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6604. When building a "live" bootable image (i.e. when
  6605. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  6606. contains "live"), <filename>INITRD_IMAGE</filename>
  6607. specifies the image recipe that should be built
  6608. to provide the initial RAM disk image.
  6609. The default value is "core-image-minimal-initramfs".
  6610. </para>
  6611. <para>
  6612. See the
  6613. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  6614. class for more information.
  6615. </para>
  6616. </glossdef>
  6617. </glossentry>
  6618. <glossentry id='var-INITSCRIPT_NAME'><glossterm>INITSCRIPT_NAME</glossterm>
  6619. <info>
  6620. INITSCRIPT_NAME[doc] = "The filename of the initialization script as installed to ${sysconfdir}/init.d."
  6621. </info>
  6622. <glossdef>
  6623. <para role="glossdeffirst">
  6624. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6625. The filename of the initialization script as installed to
  6626. <filename>${sysconfdir}/init.d</filename>.
  6627. </para>
  6628. <para>
  6629. This variable is used in recipes when using <filename>update-rc.d.bbclass</filename>.
  6630. The variable is mandatory.
  6631. </para>
  6632. </glossdef>
  6633. </glossentry>
  6634. <glossentry id='var-INITSCRIPT_PACKAGES'><glossterm>INITSCRIPT_PACKAGES</glossterm>
  6635. <info>
  6636. 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."
  6637. </info>
  6638. <glossdef>
  6639. <para role="glossdeffirst">
  6640. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6641. A list of the packages that contain initscripts.
  6642. If multiple packages are specified, you need to append the package name
  6643. to the other <filename>INITSCRIPT_*</filename> as an override.
  6644. </para>
  6645. <para>
  6646. This variable is used in recipes when using <filename>update-rc.d.bbclass</filename>.
  6647. The variable is optional and defaults to the
  6648. <link linkend='var-PN'><filename>PN</filename></link> variable.
  6649. </para>
  6650. </glossdef>
  6651. </glossentry>
  6652. <glossentry id='var-INITSCRIPT_PARAMS'><glossterm>INITSCRIPT_PARAMS</glossterm>
  6653. <info>
  6654. 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."
  6655. </info>
  6656. <glossdef>
  6657. <para role="glossdeffirst">
  6658. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6659. Specifies the options to pass to <filename>update-rc.d</filename>.
  6660. Here is an example:
  6661. <literallayout class='monospaced'>
  6662. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  6663. </literallayout>
  6664. </para>
  6665. <para>
  6666. In this example, the script has a runlevel of 99,
  6667. starts the script in initlevels 2 and 5, and
  6668. stops the script in levels 0, 1 and 6.
  6669. </para>
  6670. <para>
  6671. The variable's default value is "defaults", which is
  6672. set in the
  6673. <link linkend='ref-classes-update-rc.d'><filename>update-rc.d</filename></link>
  6674. class.
  6675. </para>
  6676. <para>
  6677. The value in
  6678. <filename>INITSCRIPT_PARAMS</filename> is passed through
  6679. to the <filename>update-rc.d</filename> command.
  6680. For more information on valid parameters, please see the
  6681. <filename>update-rc.d</filename> manual page at
  6682. <ulink url='http://www.tin.org/bin/man.cgi?section=8&amp;topic=update-rc.d'></ulink>.
  6683. </para>
  6684. </glossdef>
  6685. </glossentry>
  6686. <glossentry id='var-INSANE_SKIP'><glossterm>INSANE_SKIP</glossterm>
  6687. <info>
  6688. INSANE_SKIP[doc] = "Specifies the QA checks to skip for a specific package within a recipe."
  6689. </info>
  6690. <glossdef>
  6691. <para role="glossdeffirst">
  6692. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6693. Specifies the QA checks to skip for a specific package
  6694. within a recipe.
  6695. For example, to skip the check for symbolic link
  6696. <filename>.so</filename> files in the main package of a
  6697. recipe, add the following to the recipe.
  6698. The package name override must be used, which in this
  6699. example is <filename>${PN}</filename>:
  6700. <literallayout class='monospaced'>
  6701. INSANE_SKIP_${PN} += "dev-so"
  6702. </literallayout>
  6703. </para>
  6704. <para>
  6705. See the "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  6706. section for a list of the valid QA checks you can
  6707. specify using this variable.
  6708. </para>
  6709. </glossdef>
  6710. </glossentry>
  6711. <glossentry id='var-INSTALL_TIMEZONE_FILE'><glossterm>INSTALL_TIMEZONE_FILE</glossterm>
  6712. <info>
  6713. INSTALL_TIMEZONE_FILE[doc] = "Enables installation of the /etc/timezone file."
  6714. </info>
  6715. <glossdef>
  6716. <para role="glossdeffirst">
  6717. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6718. By default, the <filename>tzdata</filename> recipe packages
  6719. an <filename>/etc/timezone</filename> file.
  6720. Set the <filename>INSTALL_TIMEZONE_FILE</filename>
  6721. variable to "0" at the configuration level to disable this
  6722. behavior.
  6723. </para>
  6724. </glossdef>
  6725. </glossentry>
  6726. <glossentry id='var-IPK_FEED_URIS'><glossterm>IPK_FEED_URIS</glossterm>
  6727. <info>
  6728. IPK_FEED_URIS[doc] = "List of ipkg feed records to put into generated image."
  6729. </info>
  6730. <glossdef>
  6731. <para role="glossdeffirst">
  6732. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6733. When the IPK backend is in use and package management
  6734. is enabled on the target, you can use this variable to
  6735. set up <filename>opkg</filename> in the target image
  6736. to point to package feeds on a nominated server.
  6737. Once the feed is established, you can perform
  6738. installations or upgrades using the package manager
  6739. at runtime.
  6740. </para>
  6741. </glossdef>
  6742. </glossentry>
  6743. <!--
  6744. <glossentry id='var-INTERCEPT_DIR'><glossterm>INTERCEPT_DIR</glossterm>
  6745. <glossdef>
  6746. <para>
  6747. An environment variable that defines the directory where
  6748. post installation hooks are installed for the
  6749. post install environment.
  6750. This variable is fixed as follows:
  6751. <literallayout class='monospaced'>
  6752. ${WORKDIR}/intercept_scripts
  6753. </literallayout>
  6754. </para>
  6755. <para>
  6756. After installation of a target's root filesystem,
  6757. post installation scripts, which are essentially bash scripts,
  6758. are all executed just a single time.
  6759. Limiting execution of these scripts minimizes installation
  6760. time that would be lengthened due to certain packages
  6761. triggering redundant operations.
  6762. For example, consider the installation of font packages
  6763. as a common example.
  6764. Without limiting the execution of post installation scripts,
  6765. all font directories would be rescanned to create the
  6766. cache after each individual font package was installed.
  6767. </para>
  6768. <para>
  6769. Do not edit the <filename>INTERCEPT_DIR</filename>
  6770. variable.
  6771. </para>
  6772. </glossdef>
  6773. </glossentry>
  6774. -->
  6775. </glossdiv>
  6776. <!-- <glossdiv id='var-glossary-j'><title>J</title>-->
  6777. <!-- </glossdiv>-->
  6778. <glossdiv id='var-glossary-k'><title>K</title>
  6779. <glossentry id='var-KARCH'><glossterm>KARCH</glossterm>
  6780. <info>
  6781. KARCH[doc] = "Defines the kernel architecture used when assembling the configuration. You define the KARCH variable in the BSP Descriptions."
  6782. </info>
  6783. <glossdef>
  6784. <para role="glossdeffirst">
  6785. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6786. Defines the kernel architecture used when assembling
  6787. the configuration.
  6788. Architectures supported for this release are:
  6789. <literallayout class='monospaced'>
  6790. powerpc
  6791. i386
  6792. x86_64
  6793. arm
  6794. qemu
  6795. mips
  6796. </literallayout>
  6797. </para>
  6798. <para>
  6799. You define the <filename>KARCH</filename> variable in the
  6800. <ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#bsp-descriptions'>BSP Descriptions</ulink>.
  6801. </para>
  6802. </glossdef>
  6803. </glossentry>
  6804. <glossentry id='var-KBRANCH'><glossterm>KBRANCH</glossterm>
  6805. <info>
  6806. 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."
  6807. </info>
  6808. <glossdef>
  6809. <para role="glossdeffirst">
  6810. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6811. A regular expression used by the build process to explicitly
  6812. identify the kernel branch that is validated, patched,
  6813. and configured during a build.
  6814. You must set this variable to ensure the exact kernel
  6815. branch you want is being used by the build process.
  6816. </para>
  6817. <para>
  6818. Values for this variable are set in the kernel's recipe
  6819. file and the kernel's append file.
  6820. For example, if you are using the
  6821. <filename>linux-yocto_4.12</filename> kernel, the kernel
  6822. recipe file is the
  6823. <filename>meta/recipes-kernel/linux/linux-yocto_4.12.bb</filename>
  6824. file.
  6825. <filename>KBRANCH</filename> is set as follows in that
  6826. kernel recipe file:
  6827. <literallayout class='monospaced'>
  6828. KBRANCH ?= "standard/base"
  6829. </literallayout>
  6830. </para>
  6831. <para>
  6832. This variable is also used from the kernel's append file
  6833. to identify the kernel branch specific to a particular
  6834. machine or target hardware.
  6835. Continuing with the previous kernel example, the kernel's
  6836. append file (i.e.
  6837. <filename>linux-yocto_4.12.bbappend</filename>) is located
  6838. in the BSP layer for a given machine.
  6839. For example, the append file for the Beaglebone,
  6840. EdgeRouter, and generic versions of both 32 and 64-bit IA
  6841. machines (<filename>meta-yocto-bsp</filename>) is named
  6842. <filename>meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.12.bbappend</filename>.
  6843. Here are the related statements from that append file:
  6844. <literallayout class='monospaced'>
  6845. KBRANCH_genericx86 = "standard/base"
  6846. KBRANCH_genericx86-64 = "standard/base"
  6847. KBRANCH_edgerouter = "standard/edgerouter"
  6848. KBRANCH_beaglebone = "standard/beaglebone"
  6849. KBRANCH_mpc8315e-rdb = "standard/fsl-mpc8315e-rdb"
  6850. </literallayout>
  6851. The <filename>KBRANCH</filename> statements identify
  6852. the kernel branch to use when building for each
  6853. supported BSP.
  6854. </para>
  6855. </glossdef>
  6856. </glossentry>
  6857. <glossentry id='var-KBUILD_DEFCONFIG'><glossterm>KBUILD_DEFCONFIG</glossterm>
  6858. <info>
  6859. KBUILD_DEFCONFIG[doc] = "Specifies an "in-tree" kernel configuration file for use during a kernel build."
  6860. </info>
  6861. <glossdef>
  6862. <para role="glossdeffirst">
  6863. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6864. When used with the
  6865. <link linkend='ref-classes-kernel-yocto'><filename>kernel-yocto</filename></link>
  6866. class, specifies an "in-tree" kernel configuration file
  6867. for use during a kernel build.
  6868. </para>
  6869. <para>
  6870. Typically, when using a <filename>defconfig</filename> to
  6871. configure a kernel during a build, you place the
  6872. file in your layer in the same manner as you would
  6873. place patch files and configuration fragment files (i.e.
  6874. "out-of-tree").
  6875. However, if you want to use a <filename>defconfig</filename>
  6876. file that is part of the kernel tree (i.e. "in-tree"),
  6877. you can use the
  6878. <filename>KBUILD_DEFCONFIG</filename> variable and append
  6879. the
  6880. <link linkend='var-KMACHINE'><filename>KMACHINE</filename></link>
  6881. variable to point to the <filename>defconfig</filename>
  6882. file.
  6883. </para>
  6884. <para>
  6885. To use the variable, set it in the append file for your
  6886. kernel recipe using the following form:
  6887. <literallayout class='monospaced'>
  6888. KBUILD_DEFCONFIG_<replaceable>KMACHINE</replaceable> ?= <replaceable>defconfig_file</replaceable>
  6889. </literallayout>
  6890. Here is an example from a "raspberrypi2"
  6891. <filename>KMACHINE</filename> build that uses a
  6892. <filename>defconfig</filename> file named
  6893. "bcm2709_defconfig":
  6894. <literallayout class='monospaced'>
  6895. KBUILD_DEFCONFIG_raspberrypi2 = "bcm2709_defconfig"
  6896. </literallayout>
  6897. As an alternative, you can use the following within your
  6898. append file:
  6899. <literallayout class='monospaced'>
  6900. KBUILD_DEFCONFIG_pn-linux-yocto ?= <replaceable>defconfig_file</replaceable>
  6901. </literallayout>
  6902. For more information on how to use the
  6903. <filename>KBUILD_DEFCONFIG</filename> variable, see the
  6904. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#using-an-in-tree-defconfig-file'>Using an "In-Tree" <filename>defconfig</filename> File</ulink>"
  6905. section in the Yocto Project Linux Kernel Development
  6906. Manual.
  6907. </para>
  6908. </glossdef>
  6909. </glossentry>
  6910. <glossentry id='var-KERNEL_ALT_IMAGETYPE'><glossterm>KERNEL_ALT_IMAGETYPE</glossterm>
  6911. <info>
  6912. KERNEL_ALT_IMAGETYPE[doc] = "Specifies an alternate kernel image type for creation."
  6913. </info>
  6914. <glossdef>
  6915. <para role="glossdeffirst">
  6916. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6917. Specifies an alternate kernel image type for creation in
  6918. addition to the kernel image type specified using the
  6919. <link linkend='var-KERNEL_IMAGETYPE'><filename>KERNEL_IMAGETYPE</filename></link>
  6920. variable.
  6921. </para>
  6922. </glossdef>
  6923. </glossentry>
  6924. <glossentry id='var-KERNEL_ARTIFACT_NAME'><glossterm>KERNEL_ARTIFACT_NAME</glossterm>
  6925. <info>
  6926. KERNEL_ARTIFACT_NAME[doc] = "Specifies the name of all of the build artifacts."
  6927. </info>
  6928. <glossdef>
  6929. <para role="glossdeffirst">
  6930. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6931. Specifies the name of all of the build artifacts.
  6932. You can change the name of the artifacts by changing the
  6933. <filename>KERNEL_ARTIFACT_NAME</filename> variable.
  6934. </para>
  6935. <para>
  6936. The value of <filename>KERNEL_ARTIFACT_NAME</filename>,
  6937. which is set in the
  6938. <filename> meta/classes/kernel-artifact-names.bbclass</filename>
  6939. file, has the following default value:
  6940. <literallayout class='monospaced'>
  6941. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  6942. </literallayout>
  6943. </para>
  6944. <para>
  6945. See the
  6946. <link linkend='var-PKGE'><filename>PKGE</filename></link>,
  6947. <link linkend='var-PKGV'><filename>PKGV</filename></link>,
  6948. <link linkend='var-PKGR'><filename>PKGR</filename></link>,
  6949. and
  6950. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>
  6951. variables for additional information.
  6952. <note>
  6953. The <filename>IMAGE_VERSION_SUFFIX</filename> variable
  6954. is set to
  6955. <link linkend='var-DATETIME'><filename>DATETIME</filename></link>.
  6956. </note>
  6957. </para>
  6958. </glossdef>
  6959. </glossentry>
  6960. <glossentry id='var-KERNEL_CLASSES'><glossterm>KERNEL_CLASSES</glossterm>
  6961. <info>
  6962. KERNEL_CLASSES[doc] = "A list of classes defining kernel image types that kernel class should inherit."
  6963. </info>
  6964. <glossdef>
  6965. <para role="glossdeffirst">
  6966. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6967. A list of classes defining kernel image types that the
  6968. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  6969. class should inherit.
  6970. You typically append this variable to enable extended image
  6971. types.
  6972. An example is the "kernel-fitimage", which enables
  6973. fitImage support and resides in
  6974. <filename>meta/classes/kernel-fitimage.bbclass</filename>.
  6975. You can register custom kernel image types with the
  6976. <filename>kernel</filename> class using this variable.
  6977. </para>
  6978. </glossdef>
  6979. </glossentry>
  6980. <glossentry id='var-KERNEL_DEVICETREE'><glossterm>KERNEL_DEVICETREE</glossterm>
  6981. <info>
  6982. KERNEL_DEVICETREE[doc] = "Specifies the name of the generated Linux kernel device tree (i.e. the .dtb) file."
  6983. </info>
  6984. <glossdef>
  6985. <para role="glossdeffirst">
  6986. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6987. Specifies the name of the generated Linux kernel device tree
  6988. (i.e. the <filename>.dtb</filename>) file.
  6989. <note>
  6990. Legacy support exists for specifying the full path
  6991. to the device tree.
  6992. However, providing just the <filename>.dtb</filename>
  6993. file is preferred.
  6994. </note>
  6995. In order to use this variable, you must have the include
  6996. files in your kernel recipe:
  6997. <literallayout class='monospaced'>
  6998. require recipes-kernel/linux/linux-dtb.inc
  6999. </literallayout>
  7000. or
  7001. <literallayout class='monospaced'>
  7002. require recipes-kernel/linux/linux-yocto.inc
  7003. </literallayout>
  7004. </para>
  7005. </glossdef>
  7006. </glossentry>
  7007. <glossentry id='var-KERNEL_DTB_LINK_NAME'><glossterm>KERNEL_DTB_LINK_NAME</glossterm>
  7008. <info>
  7009. KERNEL_DTB_LINK_NAME[doc] = "The link name of the kernel device tree binary (DTB)."
  7010. </info>
  7011. <glossdef>
  7012. <para role="glossdeffirst">
  7013. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7014. The link name of the kernel device tree binary (DTB).
  7015. This variable is set in the
  7016. <filename>meta/classes/kernel-artifact-names.bbclass</filename>
  7017. file as follows:
  7018. <literallayout class='monospaced'>
  7019. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  7020. </literallayout>
  7021. The value of the <filename>KERNEL_ARTIFACT_LINK_NAME</filename>
  7022. variable, which is set in the same file, has the following
  7023. value:
  7024. <literallayout class='monospaced'>
  7025. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  7026. </literallayout>
  7027. </para>
  7028. <para>
  7029. See the
  7030. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>
  7031. variable for additional information.
  7032. </para>
  7033. </glossdef>
  7034. </glossentry>
  7035. <glossentry id='var-KERNEL_DTB_NAME'><glossterm>KERNEL_DTB_NAME</glossterm>
  7036. <info>
  7037. KERNEL_DTB_NAME[doc] = "The base name of the kernel device tree binary (DTB)."
  7038. </info>
  7039. <glossdef>
  7040. <para role="glossdeffirst">
  7041. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7042. The base name of the kernel device tree binary (DTB).
  7043. This variable is set in the
  7044. <filename>meta/classes/kernel-artifact-names.bbclass</filename>
  7045. file as follows:
  7046. <literallayout class='monospaced'>
  7047. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  7048. </literallayout>
  7049. The value of the
  7050. <link linkend='var-KERNEL_ARTIFACT_NAME'><filename>KERNEL_ARTIFACT_NAME</filename></link>
  7051. variable, which is set in the same file, has the following
  7052. value:
  7053. <literallayout class='monospaced'>
  7054. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  7055. </literallayout>
  7056. </para>
  7057. </glossdef>
  7058. </glossentry>
  7059. <glossentry id='var-KERNEL_EXTRA_ARGS'><glossterm>KERNEL_EXTRA_ARGS</glossterm>
  7060. <info>
  7061. KERNEL_EXTRA_ARGS[doc] = "Specifies additional make command-line arguments the OpenEmbedded build system passes on when compiling the kernel."
  7062. </info>
  7063. <glossdef>
  7064. <para role="glossdeffirst">
  7065. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7066. Specifies additional <filename>make</filename>
  7067. command-line arguments the OpenEmbedded build system
  7068. passes on when compiling the kernel.
  7069. </para>
  7070. </glossdef>
  7071. </glossentry>
  7072. <glossentry id='var-KERNEL_FEATURES'><glossterm>KERNEL_FEATURES</glossterm>
  7073. <info>
  7074. KERNEL_FEATURES[doc] = "Includes additional kernel metadata. The metadata you add through this variable includes config fragments and features descriptions."
  7075. </info>
  7076. <glossdef>
  7077. <para role="glossdeffirst">
  7078. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7079. Includes additional kernel metadata.
  7080. In the OpenEmbedded build system, the default Board Support
  7081. Packages (BSPs)
  7082. <link linkend='metadata'>Metadata</link>
  7083. is provided through
  7084. the <link linkend='var-KMACHINE'><filename>KMACHINE</filename></link>
  7085. and
  7086. <link linkend='var-KBRANCH'><filename>KBRANCH</filename></link>
  7087. variables.
  7088. You can use the <filename>KERNEL_FEATURES</filename>
  7089. variable from within the kernel recipe or kernel append
  7090. file to further add metadata for all BSPs or specific
  7091. BSPs.
  7092. </para>
  7093. <para>
  7094. The metadata you add through this variable includes config
  7095. fragments and features descriptions,
  7096. which usually includes patches as well as config fragments.
  7097. You typically override the
  7098. <filename>KERNEL_FEATURES</filename> variable for a
  7099. specific machine.
  7100. In this way, you can provide validated, but optional,
  7101. sets of kernel configurations and features.
  7102. </para>
  7103. <para>
  7104. For example, the following example from the
  7105. <filename>linux-yocto-rt_4.12</filename> kernel recipe
  7106. adds "netfilter" and "taskstats" features to all BSPs
  7107. as well as "virtio" configurations to all QEMU machines.
  7108. The last two statements add specific configurations to
  7109. targeted machine types:
  7110. <literallayout class='monospaced'>
  7111. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  7112. KERNEL_FEATURES_append = " ${KERNEL_EXTRA_FEATURES}"
  7113. KERNEL_FEATURES_append_qemuall = " cfg/virtio.scc"
  7114. KERNEL_FEATURES_append_qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  7115. KERNEL_FEATURES_append_qemux86-64 = " cfg/sound.scc" </literallayout></para>
  7116. </glossdef>
  7117. </glossentry>
  7118. <glossentry id='var-KERNEL_FIT_LINK_NAME'><glossterm>KERNEL_FIT_LINK_NAME</glossterm>
  7119. <info>
  7120. KERNEL_FIT_LINK_NAME[doc] = "The link name of the kernel flattened image tree (FIT) image."
  7121. </info>
  7122. <glossdef>
  7123. <para role="glossdeffirst">
  7124. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7125. The link name of the kernel flattened image tree (FIT) image.
  7126. This variable is set in the
  7127. <filename>meta/classes/kernel-artifact-names.bbclass</filename>
  7128. file as follows:
  7129. <literallayout class='monospaced'>
  7130. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  7131. </literallayout>
  7132. The value of the <filename>KERNEL_ARTIFACT_LINK_NAME</filename>
  7133. variable, which is set in the same file, has the following
  7134. value:
  7135. <literallayout class='monospaced'>
  7136. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  7137. </literallayout>
  7138. </para>
  7139. <para>
  7140. See the
  7141. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>
  7142. variable for additional information.
  7143. </para>
  7144. </glossdef>
  7145. </glossentry>
  7146. <glossentry id='var-KERNEL_FIT_NAME'><glossterm>KERNEL_FIT_NAME</glossterm>
  7147. <info>
  7148. KERNEL_FIT_NAME[doc] = "The base name of the kernel flattened image tree (FIT) image."
  7149. </info>
  7150. <glossdef>
  7151. <para role="glossdeffirst">
  7152. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7153. The base name of the kernel flattened image tree (FIT) image.
  7154. This variable is set in the
  7155. <filename>meta/classes/kernel-artifact-names.bbclass</filename>
  7156. file as follows:
  7157. <literallayout class='monospaced'>
  7158. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  7159. </literallayout>
  7160. The value of the
  7161. <link linkend='var-KERNEL_ARTIFACT_NAME'><filename>KERNEL_ARTIFACT_NAME</filename></link>
  7162. variable, which is set in the same file, has the following
  7163. value:
  7164. <literallayout class='monospaced'>
  7165. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  7166. </literallayout>
  7167. </para>
  7168. </glossdef>
  7169. </glossentry>
  7170. <glossentry id='var-KERNEL_IMAGE_LINK_NAME'><glossterm>KERNEL_IMAGE_LINK_NAME</glossterm>
  7171. <info>
  7172. KERNEL_IMAGE_LINK_NAME[doc] = "The link name for the kernel image."
  7173. </info>
  7174. <glossdef>
  7175. <para role="glossdeffirst">
  7176. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7177. The link name for the kernel image.
  7178. This variable is set in the
  7179. <filename>meta/classes/kernel-artifact-names.bbclass</filename>
  7180. file as follows:
  7181. <literallayout class='monospaced'>
  7182. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  7183. </literallayout>
  7184. The value of the <filename>KERNEL_ARTIFACT_LINK_NAME</filename>
  7185. variable, which is set in the same file, has the following
  7186. value:
  7187. <literallayout class='monospaced'>
  7188. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  7189. </literallayout>
  7190. </para>
  7191. <para>
  7192. See the
  7193. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>
  7194. variable for additional information.
  7195. </para>
  7196. </glossdef>
  7197. </glossentry>
  7198. <glossentry id='var-KERNEL_IMAGE_MAXSIZE'><glossterm>KERNEL_IMAGE_MAXSIZE</glossterm>
  7199. <info>
  7200. KERNEL_IMAGE_MAXSIZE[doc] = "The maximum allowable size in kilobytes of the kernel image file."
  7201. </info>
  7202. <glossdef>
  7203. <para role="glossdeffirst">
  7204. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7205. Specifies the maximum size of the kernel image file in
  7206. kilobytes.
  7207. If <filename>KERNEL_IMAGE_MAXSIZE</filename> is set,
  7208. the size of the kernel image file is checked against
  7209. the set value during the
  7210. <link linkend='ref-tasks-sizecheck'><filename>do_sizecheck</filename></link>
  7211. task.
  7212. The task fails if the kernel image file is larger than
  7213. the setting.
  7214. </para>
  7215. <para>
  7216. <filename>KERNEL_IMAGE_MAXSIZE</filename> is useful for
  7217. target devices that have a limited amount of space in
  7218. which the kernel image must be stored.
  7219. </para>
  7220. <para>
  7221. By default, this variable is not set, which means the
  7222. size of the kernel image is not checked.
  7223. </para>
  7224. </glossdef>
  7225. </glossentry>
  7226. <glossentry id='var-KERNEL_IMAGE_NAME'><glossterm>KERNEL_IMAGE_NAME</glossterm>
  7227. <info>
  7228. KERNEL_IMAGE_NAME[doc] = "The base name of the kernel image."
  7229. </info>
  7230. <glossdef>
  7231. <para role="glossdeffirst">
  7232. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7233. The base name of the kernel image.
  7234. This variable is set in the
  7235. <filename>meta/classes/kernel-artifact-names.bbclass</filename>
  7236. file as follows:
  7237. <literallayout class='monospaced'>
  7238. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  7239. </literallayout>
  7240. The value of the
  7241. <link linkend='var-KERNEL_ARTIFACT_NAME'><filename>KERNEL_ARTIFACT_NAME</filename></link>
  7242. variable, which is set in the same file, has the following
  7243. value:
  7244. <literallayout class='monospaced'>
  7245. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  7246. </literallayout>
  7247. </para>
  7248. </glossdef>
  7249. </glossentry>
  7250. <glossentry id='var-KERNEL_IMAGETYPE'><glossterm>KERNEL_IMAGETYPE</glossterm>
  7251. <info>
  7252. KERNEL_IMAGETYPE[doc] = "The type of kernel to build for a device, usually set by the machine configuration files and defaults to 'zImage'."
  7253. </info>
  7254. <glossdef>
  7255. <para role="glossdeffirst">
  7256. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7257. The type of kernel to build for a device, usually set by the
  7258. machine configuration files and defaults to "zImage".
  7259. This variable is used
  7260. when building the kernel and is passed to <filename>make</filename> as the target to
  7261. build.
  7262. </para>
  7263. <para>
  7264. If you want to build an alternate kernel image type, use the
  7265. <link linkend='var-KERNEL_ALT_IMAGETYPE'><filename>KERNEL_ALT_IMAGETYPE</filename></link>
  7266. variable.
  7267. </para>
  7268. </glossdef>
  7269. </glossentry>
  7270. <glossentry id='var-KERNEL_MODULE_AUTOLOAD'><glossterm>KERNEL_MODULE_AUTOLOAD</glossterm>
  7271. <info>
  7272. KERNEL_MODULE_AUTOLOAD[doc] = "Lists kernel modules that need to be auto-loaded during boot"
  7273. </info>
  7274. <glossdef>
  7275. <para role="glossdeffirst">
  7276. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7277. Lists kernel modules that need to be auto-loaded during
  7278. boot.
  7279. <note>
  7280. This variable replaces the deprecated
  7281. <link linkend='var-module_autoload'><filename>module_autoload</filename></link>
  7282. variable.
  7283. </note>
  7284. </para>
  7285. <para>
  7286. You can use the <filename>KERNEL_MODULE_AUTOLOAD</filename>
  7287. variable anywhere that it can be
  7288. recognized by the kernel recipe or by an out-of-tree kernel
  7289. module recipe (e.g. a machine configuration file, a
  7290. distribution configuration file, an append file for the
  7291. recipe, or the recipe itself).
  7292. </para>
  7293. <para>
  7294. Specify it as follows:
  7295. <literallayout class='monospaced'>
  7296. KERNEL_MODULE_AUTOLOAD += "<replaceable>module_name1</replaceable> <replaceable>module_name2</replaceable> <replaceable>module_name3</replaceable>"
  7297. </literallayout>
  7298. </para>
  7299. <para>
  7300. Including <filename>KERNEL_MODULE_AUTOLOAD</filename> causes
  7301. the OpenEmbedded build system to populate the
  7302. <filename>/etc/modules-load.d/modname.conf</filename>
  7303. file with the list of modules to be auto-loaded on boot.
  7304. The modules appear one-per-line in the file.
  7305. Here is an example of the most common use case:
  7306. <literallayout class='monospaced'>
  7307. KERNEL_MODULE_AUTOLOAD += "<replaceable>module_name</replaceable>"
  7308. </literallayout>
  7309. </para>
  7310. <para>
  7311. For information on how to populate the
  7312. <filename>modname.conf</filename> file with
  7313. <filename>modprobe.d</filename> syntax lines, see the
  7314. <link linkend='var-KERNEL_MODULE_PROBECONF'><filename>KERNEL_MODULE_PROBECONF</filename></link>
  7315. variable.
  7316. </para>
  7317. </glossdef>
  7318. </glossentry>
  7319. <glossentry id='var-KERNEL_MODULE_PROBECONF'><glossterm>KERNEL_MODULE_PROBECONF</glossterm>
  7320. <info>
  7321. 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."
  7322. </info>
  7323. <glossdef>
  7324. <para role="glossdeffirst">
  7325. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7326. Provides a list of modules for which the OpenEmbedded
  7327. build system expects to find
  7328. <filename>module_conf_</filename><replaceable>modname</replaceable>
  7329. values that specify configuration for each of the modules.
  7330. For information on how to provide those module
  7331. configurations, see the
  7332. <link linkend='var-module_conf'><filename>module_conf_*</filename></link>
  7333. variable.
  7334. </para>
  7335. </glossdef>
  7336. </glossentry>
  7337. <glossentry id='var-KERNEL_PATH'><glossterm>KERNEL_PATH</glossterm>
  7338. <info>
  7339. 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)."
  7340. </info>
  7341. <glossdef>
  7342. <para role="glossdeffirst">
  7343. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7344. The location of the kernel sources.
  7345. This variable is set to the value of the
  7346. <link linkend='var-STAGING_KERNEL_DIR'><filename>STAGING_KERNEL_DIR</filename></link>
  7347. within the
  7348. <link linkend='ref-classes-module'><filename>module</filename></link>
  7349. class.
  7350. For information on how this variable is used, see the
  7351. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#incorporating-out-of-tree-modules'>Incorporating Out-of-Tree Modules</ulink>"
  7352. section in the Yocto Project Linux Kernel Development
  7353. Manual.
  7354. </para>
  7355. <para>
  7356. To help maximize compatibility with out-of-tree drivers
  7357. used to build modules, the OpenEmbedded build system also
  7358. recognizes and uses the
  7359. <link linkend='var-KERNEL_SRC'><filename>KERNEL_SRC</filename></link>
  7360. variable, which is identical to the
  7361. <filename>KERNEL_PATH</filename> variable.
  7362. Both variables are common variables used by external
  7363. Makefiles to point to the kernel source directory.
  7364. </para>
  7365. </glossdef>
  7366. </glossentry>
  7367. <glossentry id='var-KERNEL_SRC'><glossterm>KERNEL_SRC</glossterm>
  7368. <info>
  7369. 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)."
  7370. </info>
  7371. <glossdef>
  7372. <para role="glossdeffirst">
  7373. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7374. The location of the kernel sources.
  7375. This variable is set to the value of the
  7376. <link linkend='var-STAGING_KERNEL_DIR'><filename>STAGING_KERNEL_DIR</filename></link>
  7377. within the
  7378. <link linkend='ref-classes-module'><filename>module</filename></link>
  7379. class.
  7380. For information on how this variable is used, see the
  7381. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#incorporating-out-of-tree-modules'>Incorporating Out-of-Tree Modules</ulink>"
  7382. section in the Yocto Project Linux Kernel Development
  7383. Manual.
  7384. </para>
  7385. <para>
  7386. To help maximize compatibility with out-of-tree drivers
  7387. used to build modules, the OpenEmbedded build system also
  7388. recognizes and uses the
  7389. <link linkend='var-KERNEL_PATH'><filename>KERNEL_PATH</filename></link>
  7390. variable, which is identical to the
  7391. <filename>KERNEL_SRC</filename> variable.
  7392. Both variables are common variables used by external
  7393. Makefiles to point to the kernel source directory.
  7394. </para>
  7395. </glossdef>
  7396. </glossentry>
  7397. <glossentry id='var-KERNEL_VERSION'><glossterm>KERNEL_VERSION</glossterm>
  7398. <info>
  7399. KERNEL_VERSION[doc] = "Specifies the version of the kernel as extracted from version.h or utsrelease.h within the kernel sources."
  7400. </info>
  7401. <glossdef>
  7402. <para role="glossdeffirst">
  7403. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7404. Specifies the version of the kernel as extracted from
  7405. <filename>version.h</filename> or
  7406. <filename>utsrelease.h</filename> within the kernel sources.
  7407. Effects of setting this variable do not take affect until
  7408. the kernel has been configured.
  7409. Consequently, attempting to refer to this variable in
  7410. contexts prior to configuration will not work.
  7411. </para>
  7412. </glossdef>
  7413. </glossentry>
  7414. <glossentry id='var-KERNELDEPMODDEPEND'><glossterm>KERNELDEPMODDEPEND</glossterm>
  7415. <info>
  7416. KERNELDEPMODDEPEND[doc] = "Specifies whether or not to use the data referenced through the PKGDATA_DIR directory."
  7417. </info>
  7418. <glossdef>
  7419. <para role="glossdeffirst">
  7420. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7421. Specifies whether the data referenced through
  7422. <link linkend='var-PKGDATA_DIR'><filename>PKGDATA_DIR</filename></link>
  7423. is needed or not.
  7424. The <filename>KERNELDEPMODDEPEND</filename> does not
  7425. control whether or not that data exists,
  7426. but simply whether or not it is used.
  7427. If you do not need to use the data, set the
  7428. <filename>KERNELDEPMODDEPEND</filename> variable in your
  7429. <filename>initramfs</filename> recipe.
  7430. Setting the variable there when the data is not needed
  7431. avoids a potential dependency loop.
  7432. </para>
  7433. </glossdef>
  7434. </glossentry>
  7435. <glossentry id='var-KFEATURE_DESCRIPTION'><glossterm>KFEATURE_DESCRIPTION</glossterm>
  7436. <info>
  7437. 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."
  7438. </info>
  7439. <glossdef>
  7440. <para role="glossdeffirst">
  7441. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7442. Provides a short description of a configuration fragment.
  7443. You use this variable in the <filename>.scc</filename>
  7444. file that describes a configuration fragment file.
  7445. Here is the variable used in a file named
  7446. <filename>smp.scc</filename> to describe SMP being
  7447. enabled:
  7448. <literallayout class='monospaced'>
  7449. define KFEATURE_DESCRIPTION "Enable SMP"
  7450. </literallayout>
  7451. </para>
  7452. </glossdef>
  7453. </glossentry>
  7454. <glossentry id='var-KMACHINE'><glossterm>KMACHINE</glossterm>
  7455. <info>
  7456. KMACHINE[doc] = "The machine as known by the kernel."
  7457. </info>
  7458. <glossdef>
  7459. <para role="glossdeffirst">
  7460. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7461. The machine as known by the kernel.
  7462. Sometimes the machine name used by the kernel does not
  7463. match the machine name used by the OpenEmbedded build
  7464. system.
  7465. For example, the machine name that the OpenEmbedded build
  7466. system understands as
  7467. <filename>core2-32-intel-common</filename> goes by a
  7468. different name in the Linux Yocto kernel.
  7469. The kernel understands that machine as
  7470. <filename>intel-core2-32</filename>.
  7471. For cases like these, the <filename>KMACHINE</filename>
  7472. variable maps the kernel machine name to the OpenEmbedded
  7473. build system machine name.
  7474. </para>
  7475. <para>
  7476. These mappings between different names occur in the
  7477. Yocto Linux Kernel's <filename>meta</filename> branch.
  7478. As an example take a look in the
  7479. <filename>common/recipes-kernel/linux/linux-yocto_3.19.bbappend</filename>
  7480. file:
  7481. <literallayout class='monospaced'>
  7482. LINUX_VERSION_core2-32-intel-common = "3.19.0"
  7483. COMPATIBLE_MACHINE_core2-32-intel-common = "${MACHINE}"
  7484. SRCREV_meta_core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  7485. SRCREV_machine_core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  7486. KMACHINE_core2-32-intel-common = "intel-core2-32"
  7487. KBRANCH_core2-32-intel-common = "standard/base"
  7488. KERNEL_FEATURES_append_core2-32-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}"
  7489. </literallayout>
  7490. The <filename>KMACHINE</filename> statement says that
  7491. the kernel understands the machine name as
  7492. "intel-core2-32".
  7493. However, the OpenEmbedded build system understands the
  7494. machine as "core2-32-intel-common".
  7495. </para>
  7496. </glossdef>
  7497. </glossentry>
  7498. <glossentry id='var-KTYPE'><glossterm>KTYPE</glossterm>
  7499. <info>
  7500. KTYPE[doc] = "Defines the kernel type to be used in assembling the configuration."
  7501. </info>
  7502. <glossdef>
  7503. <para role="glossdeffirst">
  7504. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7505. Defines the kernel type to be used in assembling the
  7506. configuration.
  7507. The linux-yocto recipes define "standard", "tiny",
  7508. and "preempt-rt" kernel types.
  7509. See the
  7510. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#kernel-types'>Kernel Types</ulink>"
  7511. section in the Yocto Project Linux Kernel Development
  7512. Manual for more information on kernel types.
  7513. </para>
  7514. <para>
  7515. You define the <filename>KTYPE</filename> variable in the
  7516. <ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#bsp-descriptions'>BSP Descriptions</ulink>.
  7517. The value you use must match the value used for the
  7518. <link linkend='var-LINUX_KERNEL_TYPE'><filename>LINUX_KERNEL_TYPE</filename></link>
  7519. value used by the kernel recipe.
  7520. </para>
  7521. </glossdef>
  7522. </glossentry>
  7523. </glossdiv>
  7524. <glossdiv id='var-glossary-l'><title>L</title>
  7525. <glossentry id='var-LABELS'><glossterm>LABELS</glossterm>
  7526. <info>
  7527. LABELS[doc] = "Provides a list of targets for automatic configuration."
  7528. </info>
  7529. <glossdef>
  7530. <para role="glossdeffirst">
  7531. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7532. Provides a list of targets for automatic configuration.
  7533. </para>
  7534. <para>
  7535. See the
  7536. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  7537. class for more information on how this variable is used.
  7538. </para>
  7539. </glossdef>
  7540. </glossentry>
  7541. <glossentry id='var-LAYERDEPENDS'><glossterm>LAYERDEPENDS</glossterm>
  7542. <info>
  7543. LAYERDEPENDS[doc] = "Lists the layers, separated by spaces, on 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."
  7544. </info>
  7545. <glossdef>
  7546. <para role="glossdeffirst">
  7547. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7548. Lists the layers, separated by spaces, on which this
  7549. recipe depends.
  7550. Optionally, you can specify a specific layer version for a
  7551. dependency by adding it to the end of the layer name.
  7552. Here is an example:
  7553. <literallayout class='monospaced'>
  7554. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  7555. </literallayout>
  7556. In this previous example, version 3 of "anotherlayer"
  7557. is compared against
  7558. <link linkend='var-LAYERVERSION'><filename>LAYERVERSION</filename></link><filename>_anotherlayer</filename>.
  7559. </para>
  7560. <para>
  7561. An error is produced if any dependency is missing or
  7562. the version numbers (if specified) do not match exactly.
  7563. This variable is used in the
  7564. <filename>conf/layer.conf</filename> file and must be
  7565. suffixed with the name of the specific layer (e.g.
  7566. <filename>LAYERDEPENDS_mylayer</filename>).
  7567. </para>
  7568. </glossdef>
  7569. </glossentry>
  7570. <glossentry id='var-LAYERDIR'><glossterm>LAYERDIR</glossterm>
  7571. <info>
  7572. LAYERDIR[doc] = "When used inside the layer.conf configuration file, this variable provides the path of the current layer."
  7573. </info>
  7574. <glossdef>
  7575. <para role="glossdeffirst">
  7576. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7577. When used inside the <filename>layer.conf</filename> configuration
  7578. file, this variable provides the path of the current layer.
  7579. This variable is not available outside of <filename>layer.conf</filename>
  7580. and references are expanded immediately when parsing of the file completes.
  7581. </para>
  7582. </glossdef>
  7583. </glossentry>
  7584. <glossentry id='var-LAYERRECOMMENDS'><glossterm>LAYERRECOMMENDS</glossterm>
  7585. <info>
  7586. LAYERRECOMMENDS[doc] = "Lists the layers, separated by spaces, recommended for use with this layer."
  7587. </info>
  7588. <glossdef>
  7589. <para role="glossdeffirst">
  7590. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7591. Lists the layers, separated by spaces, recommended for
  7592. use with this layer.
  7593. </para>
  7594. <para>
  7595. Optionally, you can specify a specific layer version for a
  7596. recommendation by adding the version to the end of the
  7597. layer name.
  7598. Here is an example:
  7599. <literallayout class='monospaced'>
  7600. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  7601. </literallayout>
  7602. In this previous example, version 3 of "anotherlayer" is
  7603. compared against
  7604. <filename>LAYERVERSION_anotherlayer</filename>.
  7605. </para>
  7606. <para>
  7607. This variable is used in the
  7608. <filename>conf/layer.conf</filename> file and must be
  7609. suffixed with the name of the specific layer (e.g.
  7610. <filename>LAYERRECOMMENDS_mylayer</filename>).
  7611. </para>
  7612. </glossdef>
  7613. </glossentry>
  7614. <glossentry id='var-LAYERSERIES_COMPAT'><glossterm>LAYERSERIES_COMPAT</glossterm>
  7615. <info>
  7616. LAYERSERIES_COMPAT[doc] = "Lists the OpenEmbedded-Core versions for which a layer is compatible."
  7617. </info>
  7618. <glossdef>
  7619. <para role="glossdeffirst">
  7620. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7621. Lists the versions of the
  7622. <link linkend='oe-core'>OpenEmbedded-Core</link> for which
  7623. a layer is compatible.
  7624. Using the <filename>LAYERSERIES_COMPAT</filename> variable
  7625. allows the layer maintainer to indicate which combinations
  7626. of the layer and OE-Core can be expected to work.
  7627. The variable gives the system a way to detect when a layer
  7628. has not been tested with new releases of OE-Core (e.g.
  7629. the layer is not maintained).
  7630. </para>
  7631. <para>
  7632. To specify the OE-Core versions for which a layer is
  7633. compatible, use this variable in your layer's
  7634. <filename>conf/layer.conf</filename> configuration file.
  7635. For the list, use the Yocto Project
  7636. <ulink url='https://wiki.yoctoproject.org/wiki/Releases'>Release Name</ulink>
  7637. (e.g. &DISTRO_NAME_NO_CAP;).
  7638. To specify multiple OE-Core versions for the layer,
  7639. use a space-separated list:
  7640. <literallayout class='monospaced'>
  7641. LAYERSERIES_COMPAT_<replaceable>layer_root_name</replaceable> = "&DISTRO_NAME_NO_CAP; &DISTRO_NAME_NO_CAP_MINUS_ONE;"
  7642. </literallayout>
  7643. <note>
  7644. Setting <filename>LAYERSERIES_COMPAT</filename> is
  7645. required by the Yocto Project Compatible version 2
  7646. standard.
  7647. The OpenEmbedded build system produces a warning if
  7648. the variable is not set for any given layer.
  7649. </note>
  7650. </para>
  7651. <para>
  7652. See the
  7653. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-your-own-layer'>Creating Your Own Layer</ulink>"
  7654. section in the Yocto Project Development Tasks Manual.
  7655. </para>
  7656. </glossdef>
  7657. </glossentry>
  7658. <glossentry id='var-LAYERVERSION'><glossterm>LAYERVERSION</glossterm>
  7659. <info>
  7660. 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."
  7661. </info>
  7662. <glossdef>
  7663. <para role="glossdeffirst">
  7664. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7665. Optionally specifies the version of a layer as a single number.
  7666. You can use this within
  7667. <link linkend='var-LAYERDEPENDS'><filename>LAYERDEPENDS</filename></link>
  7668. for another layer in order to depend on a specific version
  7669. of the layer.
  7670. This variable is used in the <filename>conf/layer.conf</filename> file
  7671. and must be suffixed with the name of the specific layer (e.g.
  7672. <filename>LAYERVERSION_mylayer</filename>).
  7673. </para>
  7674. </glossdef>
  7675. </glossentry>
  7676. <glossentry id='var-LD'><glossterm>LD</glossterm>
  7677. <info>
  7678. LD[doc] = "Minimal command and arguments to run the linker."
  7679. </info>
  7680. <glossdef>
  7681. <para role="glossdeffirst">
  7682. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7683. The minimal command and arguments used to run the
  7684. linker.
  7685. </para>
  7686. </glossdef>
  7687. </glossentry>
  7688. <glossentry id='var-LDFLAGS'><glossterm>LDFLAGS</glossterm>
  7689. <info>
  7690. LDFLAGS[doc] = "Specifies the flags to pass to the linker."
  7691. </info>
  7692. <glossdef>
  7693. <para role="glossdeffirst">
  7694. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7695. Specifies the flags to pass to the linker.
  7696. This variable is exported to an environment
  7697. variable and thus made visible to the software being
  7698. built during the compilation step.
  7699. </para>
  7700. <para>
  7701. Default initialization for <filename>LDFLAGS</filename>
  7702. varies depending on what is being built:
  7703. <itemizedlist>
  7704. <listitem><para>
  7705. <link linkend='var-TARGET_LDFLAGS'><filename>TARGET_LDFLAGS</filename></link>
  7706. when building for the target
  7707. </para></listitem>
  7708. <listitem><para>
  7709. <link linkend='var-BUILD_LDFLAGS'><filename>BUILD_LDFLAGS</filename></link>
  7710. when building for the build host (i.e.
  7711. <filename>-native</filename>)
  7712. </para></listitem>
  7713. <listitem><para>
  7714. <link linkend='var-BUILDSDK_LDFLAGS'><filename>BUILDSDK_LDFLAGS</filename></link>
  7715. when building for an SDK (i.e.
  7716. <filename>nativesdk-</filename>)
  7717. </para></listitem>
  7718. </itemizedlist>
  7719. </para>
  7720. </glossdef>
  7721. </glossentry>
  7722. <glossentry id='var-LEAD_SONAME'><glossterm>LEAD_SONAME</glossterm>
  7723. <info>
  7724. LEAD_SONAME[doc] = "Specifies the lead (or primary) compiled library file (i.e. .so) that the debian class applies its naming policy to given a recipe that packages multiple libraries."
  7725. </info>
  7726. <glossdef>
  7727. <para role="glossdeffirst">
  7728. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7729. Specifies the lead (or primary) compiled library file
  7730. (i.e. <filename>.so</filename>) that the
  7731. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  7732. class applies its naming policy to given a recipe that
  7733. packages multiple libraries.
  7734. </para>
  7735. <para>
  7736. This variable works in conjunction with the
  7737. <filename>debian</filename> class.
  7738. </para>
  7739. </glossdef>
  7740. </glossentry>
  7741. <glossentry id='var-LIC_FILES_CHKSUM'><glossterm>LIC_FILES_CHKSUM</glossterm>
  7742. <info>
  7743. LIC_FILES_CHKSUM[doc] = "Checksums of the license text in the recipe source code."
  7744. </info>
  7745. <glossdef>
  7746. <para role="glossdeffirst">
  7747. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7748. Checksums of the license text in the recipe source code.
  7749. </para>
  7750. <para>
  7751. This variable tracks changes in license text of the source
  7752. code files.
  7753. If the license text is changed, it will trigger a build
  7754. failure, which gives the developer an opportunity to review any
  7755. license change.
  7756. </para>
  7757. <para>
  7758. This variable must be defined for all recipes (unless
  7759. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  7760. is set to "CLOSED").</para>
  7761. <para>For more information, see the
  7762. "<ulink url='&YOCTO_DOCS_DEV_URL;#usingpoky-configuring-LIC_FILES_CHKSUM'>Tracking License Changes</ulink>"
  7763. section in the Yocto Project Development Tasks Manual.
  7764. </para>
  7765. </glossdef>
  7766. </glossentry>
  7767. <glossentry id='var-LICENSE'><glossterm>LICENSE</glossterm>
  7768. <info>
  7769. LICENSE[doc] = "The list of source licenses for the recipe. The logical operators &amp;, '|', and parentheses can be used."
  7770. </info>
  7771. <glossdef>
  7772. <para role="glossdeffirst">
  7773. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7774. The list of source licenses for the recipe.
  7775. Follow these rules:
  7776. <itemizedlist>
  7777. <listitem><para>Do not use spaces within individual
  7778. license names.</para></listitem>
  7779. <listitem><para>Separate license names using
  7780. | (pipe) when there is a choice between licenses.
  7781. </para></listitem>
  7782. <listitem><para>Separate license names using
  7783. &amp; (ampersand) when multiple licenses exist
  7784. that cover different parts of the source.
  7785. </para></listitem>
  7786. <listitem><para>You can use spaces between license
  7787. names.</para></listitem>
  7788. <listitem><para>For standard licenses, use the names
  7789. of the files in
  7790. <filename>meta/files/common-licenses/</filename>
  7791. or the
  7792. <link linkend='var-SPDXLICENSEMAP'><filename>SPDXLICENSEMAP</filename></link>
  7793. flag names defined in
  7794. <filename>meta/conf/licenses.conf</filename>.
  7795. </para></listitem>
  7796. </itemizedlist>
  7797. </para>
  7798. <para>
  7799. Here are some examples:
  7800. <literallayout class='monospaced'>
  7801. LICENSE = "LGPLv2.1 | GPLv3"
  7802. LICENSE = "MPL-1 &amp; LGPLv2.1"
  7803. LICENSE = "GPLv2+"
  7804. </literallayout>
  7805. The first example is from the recipes for Qt, which the user
  7806. may choose to distribute under either the LGPL version
  7807. 2.1 or GPL version 3.
  7808. The second example is from Cairo where two licenses cover
  7809. different parts of the source code.
  7810. The final example is from <filename>sysstat</filename>,
  7811. which presents a single license.
  7812. </para>
  7813. <para>
  7814. You can also specify licenses on a per-package basis to
  7815. handle situations where components of the output have
  7816. different licenses.
  7817. For example, a piece of software whose code is
  7818. licensed under GPLv2 but has accompanying documentation
  7819. licensed under the GNU Free Documentation License 1.2 could
  7820. be specified as follows:
  7821. <literallayout class='monospaced'>
  7822. LICENSE = "GFDL-1.2 &amp; GPLv2"
  7823. LICENSE_${PN} = "GPLv2"
  7824. LICENSE_${PN}-doc = "GFDL-1.2"
  7825. </literallayout>
  7826. </para>
  7827. </glossdef>
  7828. </glossentry>
  7829. <glossentry id='var-LICENSE_CREATE_PACKAGE'><glossterm>LICENSE_CREATE_PACKAGE</glossterm>
  7830. <info>
  7831. LICENSE_CREATE_PACKAGE[doc] = "Creates an extra package (i.e. ${PN}-lic) for each recipe and adds that package to the RRECOMMENDS+${PN}."
  7832. </info>
  7833. <glossdef>
  7834. <para role="glossdeffirst">
  7835. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7836. Setting <filename>LICENSE_CREATE_PACKAGE</filename>
  7837. to "1" causes the OpenEmbedded build system to create
  7838. an extra package (i.e.
  7839. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}-lic</filename>)
  7840. for each recipe and to add those packages to the
  7841. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link><filename>_${PN}</filename>.
  7842. </para>
  7843. <para>
  7844. The <filename>${PN}-lic</filename> package installs a
  7845. directory in <filename>/usr/share/licenses</filename>
  7846. named <filename>${PN}</filename>, which is the recipe's
  7847. base name, and installs files in that directory that
  7848. contain license and copyright information (i.e. copies of
  7849. the appropriate license files from
  7850. <filename>meta/common-licenses</filename> that match the
  7851. licenses specified in the
  7852. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  7853. variable of the recipe metadata and copies of files marked
  7854. in
  7855. <link linkend='var-LIC_FILES_CHKSUM'><filename>LIC_FILES_CHKSUM</filename></link>
  7856. as containing license text).
  7857. </para>
  7858. <para>
  7859. For related information on providing license text, see the
  7860. <link linkend='var-COPY_LIC_DIRS'><filename>COPY_LIC_DIRS</filename></link>
  7861. variable, the
  7862. <link linkend='var-COPY_LIC_MANIFEST'><filename>COPY_LIC_MANIFEST</filename></link>
  7863. variable, and the
  7864. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  7865. section in the Yocto Project Development Tasks Manual.
  7866. </para>
  7867. </glossdef>
  7868. </glossentry>
  7869. <glossentry id='var-LICENSE_FLAGS'><glossterm>LICENSE_FLAGS</glossterm>
  7870. <info>
  7871. 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."
  7872. </info>
  7873. <glossdef>
  7874. <para role="glossdeffirst">
  7875. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7876. Specifies additional flags for a recipe you must
  7877. whitelist through
  7878. <link linkend='var-LICENSE_FLAGS_WHITELIST'><filename>LICENSE_FLAGS_WHITELIST</filename></link>
  7879. in order to allow the recipe to be built.
  7880. When providing multiple flags, separate them with
  7881. spaces.
  7882. </para>
  7883. <para>
  7884. This value is independent of
  7885. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  7886. and is typically used to mark recipes that might
  7887. require additional licenses in order to be used in a
  7888. commercial product.
  7889. For more information, see the
  7890. "<ulink url='&YOCTO_DOCS_DEV_URL;#enabling-commercially-licensed-recipes'>Enabling Commercially Licensed Recipes</ulink>"
  7891. section in the Yocto Project Development Tasks Manual.
  7892. </para>
  7893. </glossdef>
  7894. </glossentry>
  7895. <glossentry id='var-LICENSE_FLAGS_WHITELIST'><glossterm>LICENSE_FLAGS_WHITELIST</glossterm>
  7896. <info>
  7897. LICENSE_FLAGS_WHITELIST[doc] = "Lists license flags that when specified in LICENSE_FLAGS within a recipe should not prevent that recipe from being built."
  7898. </info>
  7899. <glossdef>
  7900. <para role="glossdeffirst">
  7901. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7902. Lists license flags that when specified in
  7903. <link linkend='var-LICENSE_FLAGS'><filename>LICENSE_FLAGS</filename></link>
  7904. within a recipe should not prevent that recipe from being
  7905. built.
  7906. This practice is otherwise known as "whitelisting"
  7907. license flags.
  7908. For more information, see the
  7909. "<ulink url='&YOCTO_DOCS_DEV_URL;#enabling-commercially-licensed-recipes'>Enabling Commercially Licensed Recipes</ulink>"
  7910. section in the Yocto Project Development Tasks Manual.
  7911. </para>
  7912. </glossdef>
  7913. </glossentry>
  7914. <glossentry id='var-LICENSE_PATH'><glossterm>LICENSE_PATH</glossterm>
  7915. <info>
  7916. LICENSE_PATH[doc] = "Path to additional licenses used during the build."
  7917. </info>
  7918. <glossdef>
  7919. <para role="glossdeffirst">
  7920. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7921. Path to additional licenses used during the build.
  7922. By default, the OpenEmbedded build system uses <filename>COMMON_LICENSE_DIR</filename>
  7923. to define the directory that holds common license text used during the build.
  7924. The <filename>LICENSE_PATH</filename> variable allows you to extend that
  7925. location to other areas that have additional licenses:
  7926. <literallayout class='monospaced'>
  7927. LICENSE_PATH += "<replaceable>path-to-additional-common-licenses</replaceable>"
  7928. </literallayout>
  7929. </para>
  7930. </glossdef>
  7931. </glossentry>
  7932. <glossentry id='var-LINUX_KERNEL_TYPE'><glossterm>LINUX_KERNEL_TYPE</glossterm>
  7933. <info>
  7934. LINUX_KERNEL_TYPE[doc] = "Defines the kernel type to be used in assembling the configuration."
  7935. </info>
  7936. <glossdef>
  7937. <para role="glossdeffirst">
  7938. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7939. Defines the kernel type to be used in assembling the
  7940. configuration.
  7941. The linux-yocto recipes define "standard", "tiny", and
  7942. "preempt-rt" kernel types.
  7943. See the
  7944. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#kernel-types'>Kernel Types</ulink>"
  7945. section in the Yocto Project Linux Kernel Development
  7946. Manual for more information on kernel types.
  7947. </para>
  7948. <para>
  7949. If you do not specify a
  7950. <filename>LINUX_KERNEL_TYPE</filename>, it defaults to
  7951. "standard".
  7952. Together with
  7953. <link linkend='var-KMACHINE'><filename>KMACHINE</filename></link>,
  7954. the <filename>LINUX_KERNEL_TYPE</filename> variable
  7955. defines the search
  7956. arguments used by the kernel tools to find the appropriate
  7957. description within the kernel
  7958. <link linkend='metadata'>Metadata</link>
  7959. with which to build out the sources and configuration.
  7960. </para>
  7961. </glossdef>
  7962. </glossentry>
  7963. <glossentry id='var-LINUX_VERSION'><glossterm>LINUX_VERSION</glossterm>
  7964. <info>
  7965. 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."
  7966. </info>
  7967. <glossdef>
  7968. <para role="glossdeffirst">
  7969. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7970. The Linux version from <filename>kernel.org</filename>
  7971. on which the Linux kernel image being built using the
  7972. OpenEmbedded build system is based.
  7973. You define this variable in the kernel recipe.
  7974. For example, the <filename>linux-yocto-3.4.bb</filename>
  7975. kernel recipe found in
  7976. <filename>meta/recipes-kernel/linux</filename>
  7977. defines the variables as follows:
  7978. <literallayout class='monospaced'>
  7979. LINUX_VERSION ?= "3.4.24"
  7980. </literallayout>
  7981. </para>
  7982. <para>
  7983. The <filename>LINUX_VERSION</filename> variable is used to
  7984. define <link linkend='var-PV'><filename>PV</filename></link>
  7985. for the recipe:
  7986. <literallayout class='monospaced'>
  7987. PV = "${LINUX_VERSION}+git${SRCPV}"
  7988. </literallayout>
  7989. </para>
  7990. </glossdef>
  7991. </glossentry>
  7992. <glossentry id='var-LINUX_VERSION_EXTENSION'><glossterm>LINUX_VERSION_EXTENSION</glossterm>
  7993. <info>
  7994. 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."
  7995. </info>
  7996. <glossdef>
  7997. <para role="glossdeffirst">
  7998. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7999. A string extension compiled into the version
  8000. string of the Linux kernel built with the OpenEmbedded
  8001. build system.
  8002. You define this variable in the kernel recipe.
  8003. For example, the linux-yocto kernel recipes all define
  8004. the variable as follows:
  8005. <literallayout class='monospaced'>
  8006. LINUX_VERSION_EXTENSION ?= "-yocto-${<link linkend='var-LINUX_KERNEL_TYPE'>LINUX_KERNEL_TYPE</link>}"
  8007. </literallayout>
  8008. </para>
  8009. <para>
  8010. Defining this variable essentially sets the
  8011. Linux kernel configuration item
  8012. <filename>CONFIG_LOCALVERSION</filename>, which is visible
  8013. through the <filename>uname</filename> command.
  8014. Here is an example that shows the extension assuming it
  8015. was set as previously shown:
  8016. <literallayout class='monospaced'>
  8017. $ uname -r
  8018. 3.7.0-rc8-custom
  8019. </literallayout>
  8020. </para>
  8021. </glossdef>
  8022. </glossentry>
  8023. <glossentry id='var-LOG_DIR'><glossterm>LOG_DIR</glossterm>
  8024. <info>
  8025. LOG_DIR[doc] = "Specifies the directory to which the OpenEmbedded build system writes overall log files. The default directory is ${TMPDIR}/log"
  8026. </info>
  8027. <glossdef>
  8028. <para role="glossdeffirst">
  8029. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8030. Specifies the directory to which the OpenEmbedded build
  8031. system writes overall log files.
  8032. The default directory is <filename>${TMPDIR}/log</filename>.
  8033. </para>
  8034. <para>
  8035. For the directory containing logs specific to each task,
  8036. see the <link linkend='var-T'><filename>T</filename></link>
  8037. variable.
  8038. </para>
  8039. </glossdef>
  8040. </glossentry>
  8041. </glossdiv>
  8042. <glossdiv id='var-glossary-m'><title>M</title>
  8043. <glossentry id='var-MACHINE'><glossterm>MACHINE</glossterm>
  8044. <info>
  8045. 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."
  8046. </info>
  8047. <glossdef>
  8048. <para role="glossdeffirst">
  8049. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8050. Specifies the target device for which the image is built.
  8051. You define <filename>MACHINE</filename> in the
  8052. <filename>local.conf</filename> file found in the
  8053. <link linkend='build-directory'>Build Directory</link>.
  8054. By default, <filename>MACHINE</filename> is set to
  8055. "qemux86", which is an x86-based architecture machine to
  8056. be emulated using QEMU:
  8057. <literallayout class='monospaced'>
  8058. MACHINE ?= "qemux86"
  8059. </literallayout>
  8060. </para>
  8061. <para>
  8062. The variable corresponds to a machine configuration file of the
  8063. same name, through which machine-specific configurations are set.
  8064. Thus, when <filename>MACHINE</filename> is set to "qemux86" there
  8065. exists the corresponding <filename>qemux86.conf</filename> machine
  8066. configuration file, which can be found in the
  8067. <link linkend='source-directory'>Source Directory</link>
  8068. in <filename>meta/conf/machine</filename>.
  8069. </para>
  8070. <para>
  8071. The list of machines supported by the Yocto Project as
  8072. shipped include the following:
  8073. <literallayout class='monospaced'>
  8074. MACHINE ?= "qemuarm"
  8075. MACHINE ?= "qemuarm64"
  8076. MACHINE ?= "qemumips"
  8077. MACHINE ?= "qemumips64"
  8078. MACHINE ?= "qemuppc"
  8079. MACHINE ?= "qemux86"
  8080. MACHINE ?= "qemux86-64"
  8081. MACHINE ?= "genericx86"
  8082. MACHINE ?= "genericx86-64"
  8083. MACHINE ?= "beaglebone"
  8084. MACHINE ?= "mpc8315e-rdb"
  8085. MACHINE ?= "edgerouter"
  8086. </literallayout>
  8087. The last five are Yocto Project reference hardware boards, which
  8088. are provided in the <filename>meta-yocto-bsp</filename> layer.
  8089. <note>Adding additional Board Support Package (BSP) layers
  8090. to your configuration adds new possible settings for
  8091. <filename>MACHINE</filename>.
  8092. </note>
  8093. </para>
  8094. </glossdef>
  8095. </glossentry>
  8096. <glossentry id='var-MACHINE_ARCH'><glossterm>MACHINE_ARCH</glossterm>
  8097. <info>
  8098. MACHINE_ARCH[doc] = "Specifies the name of the machine-specific architecture. This variable is set automatically from MACHINE or TUNE_PKGARCH."
  8099. </info>
  8100. <glossdef>
  8101. <para role="glossdeffirst">
  8102. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8103. Specifies the name of the machine-specific architecture.
  8104. This variable is set automatically from
  8105. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>
  8106. or
  8107. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>.
  8108. You should not hand-edit the
  8109. <filename>MACHINE_ARCH</filename> variable.
  8110. </para>
  8111. </glossdef>
  8112. </glossentry>
  8113. <glossentry id='var-MACHINE_ESSENTIAL_EXTRA_RDEPENDS'><glossterm>MACHINE_ESSENTIAL_EXTRA_RDEPENDS</glossterm>
  8114. <info>
  8115. 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."
  8116. </info>
  8117. <glossdef>
  8118. <para role="glossdeffirst">
  8119. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8120. A list of required machine-specific packages to install as part of
  8121. the image being built.
  8122. The build process depends on these packages being present.
  8123. Furthermore, because this is a "machine-essential" variable, the list of
  8124. packages are essential for the machine to boot.
  8125. The impact of this variable affects images based on
  8126. <filename>packagegroup-core-boot</filename>,
  8127. including the <filename>core-image-minimal</filename> image.
  8128. </para>
  8129. <para>
  8130. This variable is similar to the
  8131. <filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'>MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</link></filename>
  8132. variable with the exception that the image being built has a build
  8133. dependency on the variable's list of packages.
  8134. In other words, the image will not build if a file in this list is not found.
  8135. </para>
  8136. <para>
  8137. As an example, suppose the machine for which you are building requires
  8138. <filename>example-init</filename> to be run during boot to initialize the hardware.
  8139. In this case, you would use the following in the machine's
  8140. <filename>.conf</filename> configuration file:
  8141. <literallayout class='monospaced'>
  8142. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  8143. </literallayout>
  8144. </para>
  8145. </glossdef>
  8146. </glossentry>
  8147. <glossentry id='var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'><glossterm>MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</glossterm>
  8148. <info>
  8149. 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."
  8150. </info>
  8151. <glossdef>
  8152. <para role="glossdeffirst">
  8153. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8154. A list of recommended machine-specific packages to install as part of
  8155. the image being built.
  8156. The build process does not depend on these packages being present.
  8157. However, because this is a "machine-essential" variable, the list of
  8158. packages are essential for the machine to boot.
  8159. The impact of this variable affects images based on
  8160. <filename>packagegroup-core-boot</filename>,
  8161. including the <filename>core-image-minimal</filename> image.
  8162. </para>
  8163. <para>
  8164. This variable is similar to the
  8165. <filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RDEPENDS'>MACHINE_ESSENTIAL_EXTRA_RDEPENDS</link></filename>
  8166. variable with the exception that the image being built does not have a build
  8167. dependency on the variable's list of packages.
  8168. In other words, the image will still build if a package in this list is not found.
  8169. Typically, this variable is used to handle essential kernel modules, whose
  8170. functionality may be selected to be built into the kernel rather than as a module,
  8171. in which case a package will not be produced.
  8172. </para>
  8173. <para>
  8174. Consider an example where you have a custom kernel where a specific touchscreen
  8175. driver is required for the machine to be usable.
  8176. However, the driver can be built as a module or
  8177. into the kernel depending on the kernel configuration.
  8178. If the driver is built as a module, you want it to be installed.
  8179. But, when the driver is built into the kernel, you still want the
  8180. build to succeed.
  8181. This variable sets up a "recommends" relationship so that in the latter case,
  8182. the build will not fail due to the missing package.
  8183. To accomplish this, assuming the package for the module was called
  8184. <filename>kernel-module-ab123</filename>, you would use the
  8185. following in the machine's <filename>.conf</filename> configuration
  8186. file:
  8187. <literallayout class='monospaced'>
  8188. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  8189. </literallayout>
  8190. <note>
  8191. In this example, the
  8192. <filename>kernel-module-ab123</filename> recipe
  8193. needs to explicitly set its
  8194. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  8195. variable to ensure that BitBake does not use the
  8196. kernel recipe's
  8197. <link linkend='var-PACKAGES_DYNAMIC'><filename>PACKAGES_DYNAMIC</filename></link>
  8198. variable to satisfy the dependency.
  8199. </note>
  8200. </para>
  8201. <para>
  8202. Some examples of these machine essentials are flash, screen, keyboard, mouse,
  8203. or touchscreen drivers (depending on the machine).
  8204. </para>
  8205. </glossdef>
  8206. </glossentry>
  8207. <glossentry id='var-MACHINE_EXTRA_RDEPENDS'><glossterm>MACHINE_EXTRA_RDEPENDS</glossterm>
  8208. <info>
  8209. 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."
  8210. </info>
  8211. <glossdef>
  8212. <para role="glossdeffirst">
  8213. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8214. A list of machine-specific packages to install as part of the
  8215. image being built that are not essential for the machine to boot.
  8216. However, the build process for more fully-featured images
  8217. depends on the packages being present.
  8218. </para>
  8219. <para>
  8220. This variable affects all images based on
  8221. <filename>packagegroup-base</filename>, which does not include the
  8222. <filename>core-image-minimal</filename> or <filename>core-image-full-cmdline</filename>
  8223. images.
  8224. </para>
  8225. <para>
  8226. The variable is similar to the
  8227. <filename><link linkend='var-MACHINE_EXTRA_RRECOMMENDS'>MACHINE_EXTRA_RRECOMMENDS</link></filename>
  8228. variable with the exception that the image being built has a build
  8229. dependency on the variable's list of packages.
  8230. In other words, the image will not build if a file in this list is not found.
  8231. </para>
  8232. <para>
  8233. An example is a machine that has WiFi capability but is not
  8234. essential for the machine to boot the image.
  8235. However, if you are building a more fully-featured image, you want to enable
  8236. the WiFi.
  8237. The package containing the firmware for the WiFi hardware is always
  8238. expected to exist, so it is acceptable for the build process to depend upon
  8239. finding the package.
  8240. In this case, assuming the package for the firmware was called
  8241. <filename>wifidriver-firmware</filename>, you would use the following in the
  8242. <filename>.conf</filename> file for the machine:
  8243. <literallayout class='monospaced'>
  8244. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  8245. </literallayout>
  8246. </para>
  8247. </glossdef>
  8248. </glossentry>
  8249. <glossentry id='var-MACHINE_EXTRA_RRECOMMENDS'><glossterm>MACHINE_EXTRA_RRECOMMENDS</glossterm>
  8250. <info>
  8251. 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."
  8252. </info>
  8253. <glossdef>
  8254. <para role="glossdeffirst">
  8255. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8256. A list of machine-specific packages to install as part of the
  8257. image being built that are not essential for booting the machine.
  8258. The image being built has no build dependency on this list of packages.
  8259. </para>
  8260. <para>
  8261. This variable affects only images based on
  8262. <filename>packagegroup-base</filename>, which does not include the
  8263. <filename>core-image-minimal</filename> or <filename>core-image-full-cmdline</filename>
  8264. images.
  8265. </para>
  8266. <para>
  8267. This variable is similar to the
  8268. <filename><link linkend='var-MACHINE_EXTRA_RDEPENDS'>MACHINE_EXTRA_RDEPENDS</link></filename>
  8269. variable with the exception that the image being built does not have a build
  8270. dependency on the variable's list of packages.
  8271. In other words, the image will build if a file in this list is not found.
  8272. </para>
  8273. <para>
  8274. An example is a machine that has WiFi capability but is not essential
  8275. For the machine to boot the image.
  8276. However, if you are building a more fully-featured image, you want to enable
  8277. WiFi.
  8278. In this case, the package containing the WiFi kernel module will not be produced
  8279. if the WiFi driver is built into the kernel, in which case you still want the
  8280. build to succeed instead of failing as a result of the package not being found.
  8281. To accomplish this, assuming the package for the module was called
  8282. <filename>kernel-module-examplewifi</filename>, you would use the
  8283. following in the <filename>.conf</filename> file for the machine:
  8284. <literallayout class='monospaced'>
  8285. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  8286. </literallayout>
  8287. </para>
  8288. </glossdef>
  8289. </glossentry>
  8290. <glossentry id='var-MACHINE_FEATURES'><glossterm>MACHINE_FEATURES</glossterm>
  8291. <info>
  8292. MACHINE_FEATURES[doc] = "Specifies the list of hardware features the MACHINE supports."
  8293. </info>
  8294. <glossdef>
  8295. <para role="glossdeffirst">
  8296. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8297. Specifies the list of hardware features the
  8298. <link linkend='var-MACHINE'><filename>MACHINE</filename></link> is capable
  8299. of supporting.
  8300. For related information on enabling features, see the
  8301. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>,
  8302. <link linkend='var-COMBINED_FEATURES'><filename>COMBINED_FEATURES</filename></link>,
  8303. and
  8304. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  8305. variables.
  8306. </para>
  8307. <para>
  8308. For a list of hardware features supported by the Yocto
  8309. Project as shipped, see the
  8310. "<link linkend='ref-features-machine'>Machine Features</link>"
  8311. section.
  8312. </para>
  8313. </glossdef>
  8314. </glossentry>
  8315. <glossentry id='var-MACHINE_FEATURES_BACKFILL'><glossterm>MACHINE_FEATURES_BACKFILL</glossterm>
  8316. <info>
  8317. 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."
  8318. </info>
  8319. <glossdef>
  8320. <para role="glossdeffirst">
  8321. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8322. Features to be added to
  8323. <filename><link linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link></filename>
  8324. if not also present in
  8325. <filename><link linkend='var-MACHINE_FEATURES_BACKFILL_CONSIDERED'>MACHINE_FEATURES_BACKFILL_CONSIDERED</link></filename>.
  8326. </para>
  8327. <para>
  8328. This variable is set in the <filename>meta/conf/bitbake.conf</filename> file.
  8329. It is not intended to be user-configurable.
  8330. It is best to just reference the variable to see which machine features are
  8331. being backfilled for all machine configurations.
  8332. See the "<link linkend='ref-features-backfill'>Feature Backfilling</link>" section for
  8333. more information.
  8334. </para>
  8335. </glossdef>
  8336. </glossentry>
  8337. <glossentry id='var-MACHINE_FEATURES_BACKFILL_CONSIDERED'><glossterm>MACHINE_FEATURES_BACKFILL_CONSIDERED</glossterm>
  8338. <info>
  8339. MACHINE_FEATURES_BACKFILL_CONSIDERED[doc] = "Features from MACHINE_FEATURES_BACKFILL that should not be backfilled (i.e. added to MACHINE_FEATURES) during the build."
  8340. </info>
  8341. <glossdef>
  8342. <para role="glossdeffirst">
  8343. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8344. Features from
  8345. <filename><link linkend='var-MACHINE_FEATURES_BACKFILL'>MACHINE_FEATURES_BACKFILL</link></filename>
  8346. that should not be backfilled (i.e. added to
  8347. <filename><link linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link></filename>)
  8348. during the build.
  8349. See the "<link linkend='ref-features-backfill'>Feature Backfilling</link>" section for
  8350. more information.
  8351. </para>
  8352. </glossdef>
  8353. </glossentry>
  8354. <glossentry id='var-MACHINEOVERRIDES'><glossterm>MACHINEOVERRIDES</glossterm>
  8355. <info>
  8356. MACHINEOVERRIDES[doc] = "A colon-separated list of overrides that apply to the current machine."
  8357. </info>
  8358. <glossdef>
  8359. <para role="glossdeffirst">
  8360. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8361. A colon-separated list of overrides that apply to the
  8362. current machine.
  8363. By default, this list includes the value of
  8364. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>.
  8365. </para>
  8366. <para>
  8367. You can extend <filename>MACHINEOVERRIDES</filename>
  8368. to add extra overrides that should apply to a machine.
  8369. For example, all machines emulated in QEMU (e.g.
  8370. <filename>qemuarm</filename>, <filename>qemux86</filename>,
  8371. and so forth) include a file named
  8372. <filename>meta/conf/machine/include/qemu.inc</filename>
  8373. that prepends the following override to
  8374. <filename>MACHINEOVERRIDES</filename>:
  8375. <literallayout class='monospaced'>
  8376. MACHINEOVERRIDES =. "qemuall:"
  8377. </literallayout>
  8378. This override allows variables to be overriden for all
  8379. machines emulated in QEMU, like in the following example
  8380. from the <filename>connman-conf</filename> recipe:
  8381. <literallayout class='monospaced'>
  8382. SRC_URI_append_qemuall = "file://wired.config \
  8383. file://wired-setup \
  8384. "
  8385. </literallayout>
  8386. The underlying mechanism behind
  8387. <filename>MACHINEOVERRIDES</filename> is simply that it is
  8388. included in the default value of
  8389. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  8390. </para>
  8391. </glossdef>
  8392. </glossentry>
  8393. <glossentry id='var-MAINTAINER'><glossterm>MAINTAINER</glossterm>
  8394. <info>
  8395. MAINTAINER[doc] = "The email address of the distribution maintainer."
  8396. </info>
  8397. <glossdef>
  8398. <para role="glossdeffirst">
  8399. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8400. The email address of the distribution maintainer.
  8401. </para>
  8402. </glossdef>
  8403. </glossentry>
  8404. <glossentry id='var-MIRRORS'><glossterm>MIRRORS</glossterm>
  8405. <info>
  8406. MIRRORS[doc] = "Specifies additional paths from which the OpenEmbedded build system gets source code."
  8407. </info>
  8408. <glossdef>
  8409. <para role="glossdeffirst">
  8410. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8411. Specifies additional paths from which the OpenEmbedded
  8412. build system gets source code.
  8413. When the build system searches for source code, it first
  8414. tries the local download directory.
  8415. If that location fails, the build system tries locations
  8416. defined by
  8417. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>,
  8418. the upstream source, and then locations specified by
  8419. <filename>MIRRORS</filename> in that order.
  8420. </para>
  8421. <para>
  8422. Assuming your distribution
  8423. (<link linkend='var-DISTRO'><filename>DISTRO</filename></link>)
  8424. is "poky", the default value for
  8425. <filename>MIRRORS</filename> is defined in the
  8426. <filename>conf/distro/poky.conf</filename> file in the
  8427. <filename>meta-poky</filename> Git repository.
  8428. </para>
  8429. </glossdef>
  8430. </glossentry>
  8431. <glossentry id='var-MLPREFIX'><glossterm>MLPREFIX</glossterm>
  8432. <info>
  8433. MLPREFIX[doc] = "Specifies a prefix has been added to PN to create a special version of a recipe or package (i.e. a Multilib version)."
  8434. </info>
  8435. <glossdef>
  8436. <para role="glossdeffirst">
  8437. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8438. Specifies a prefix has been added to
  8439. <link linkend='var-PN'><filename>PN</filename></link> to create a special version
  8440. of a recipe or package (i.e. a Multilib version).
  8441. The variable is used in places where the prefix needs to be
  8442. added to or removed from a the name (e.g. the
  8443. <link linkend='var-BPN'><filename>BPN</filename></link> variable).
  8444. <filename>MLPREFIX</filename> gets set when a prefix has been
  8445. added to <filename>PN</filename>.
  8446. <note>
  8447. The "ML" in <filename>MLPREFIX</filename> stands for
  8448. "MultiLib".
  8449. This representation is historical and comes from
  8450. a time when <filename>nativesdk</filename> was a suffix
  8451. rather than a prefix on the recipe name.
  8452. When <filename>nativesdk</filename> was turned into a
  8453. prefix, it made sense to set
  8454. <filename>MLPREFIX</filename> for it as well.
  8455. </note>
  8456. </para>
  8457. <para>
  8458. To help understand when <filename>MLPREFIX</filename>
  8459. might be needed, consider when
  8460. <link linkend='var-BBCLASSEXTEND'><filename>BBCLASSEXTEND</filename></link>
  8461. is used to provide a <filename>nativesdk</filename> version
  8462. of a recipe in addition to the target version.
  8463. If that recipe declares build-time dependencies on tasks in
  8464. other recipes by using
  8465. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>,
  8466. then a dependency on "foo" will automatically get rewritten
  8467. to a dependency on "nativesdk-foo".
  8468. However, dependencies like the following will not get
  8469. rewritten automatically:
  8470. <literallayout class='monospaced'>
  8471. do_foo[depends] += "<replaceable>recipe</replaceable>:do_foo"
  8472. </literallayout>
  8473. If you want such a dependency to also get transformed,
  8474. you can do the following:
  8475. <literallayout class='monospaced'>
  8476. do_foo[depends] += "${MLPREFIX}<replaceable>recipe</replaceable>:do_foo"
  8477. </literallayout>
  8478. </para>
  8479. </glossdef>
  8480. </glossentry>
  8481. <glossentry id='var-module_autoload'><glossterm>module_autoload</glossterm>
  8482. <info>
  8483. 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."
  8484. </info>
  8485. <glossdef>
  8486. <para role="glossdeffirst">
  8487. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8488. This variable has been replaced by the
  8489. <filename>KERNEL_MODULE_AUTOLOAD</filename> variable.
  8490. You should replace all occurrences of
  8491. <filename>module_autoload</filename> with additions to
  8492. <filename>KERNEL_MODULE_AUTOLOAD</filename>, for example:
  8493. <literallayout class='monospaced'>
  8494. module_autoload_rfcomm = "rfcomm"
  8495. </literallayout>
  8496. </para>
  8497. <para>
  8498. should now be replaced with:
  8499. <literallayout class='monospaced'>
  8500. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  8501. </literallayout>
  8502. See the
  8503. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  8504. variable for more information.
  8505. </para>
  8506. </glossdef>
  8507. </glossentry>
  8508. <glossentry id='var-module_conf'><glossterm>module_conf</glossterm>
  8509. <info>
  8510. module_conf[doc] = "Specifies modprobe.d syntax lines for inclusion in the /etc/modprobe.d/modname.conf file."
  8511. </info>
  8512. <glossdef>
  8513. <para role="glossdeffirst">
  8514. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8515. Specifies
  8516. <ulink url='http://linux.die.net/man/5/modprobe.d'><filename>modprobe.d</filename></ulink>
  8517. syntax lines for inclusion in the
  8518. <filename>/etc/modprobe.d/modname.conf</filename> file.
  8519. </para>
  8520. <para>
  8521. You can use this variable anywhere that it can be
  8522. recognized by the kernel recipe or out-of-tree kernel
  8523. module recipe (e.g. a machine configuration file, a
  8524. distribution configuration file, an append file for the
  8525. recipe, or the recipe itself).
  8526. If you use this variable, you must also be sure to list
  8527. the module name in the
  8528. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  8529. variable.
  8530. </para>
  8531. <para>
  8532. Here is the general syntax:
  8533. <literallayout class='monospaced'>
  8534. module_conf_<replaceable>module_name</replaceable> = "<replaceable>modprobe.d-syntax</replaceable>"
  8535. </literallayout>
  8536. You must use the kernel module name override.
  8537. </para>
  8538. <para>
  8539. Run <filename>man modprobe.d</filename> in the shell to
  8540. find out more information on the exact syntax
  8541. you want to provide with <filename>module_conf</filename>.
  8542. </para>
  8543. <para>
  8544. Including <filename>module_conf</filename> causes the
  8545. OpenEmbedded build system to populate the
  8546. <filename>/etc/modprobe.d/modname.conf</filename>
  8547. file with <filename>modprobe.d</filename> syntax lines.
  8548. Here is an example that adds the options
  8549. <filename>arg1</filename> and <filename>arg2</filename>
  8550. to a module named <filename>mymodule</filename>:
  8551. <literallayout class='monospaced'>
  8552. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  8553. </literallayout>
  8554. </para>
  8555. <para>
  8556. For information on how to specify kernel modules to
  8557. auto-load on boot, see the
  8558. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  8559. variable.
  8560. </para>
  8561. </glossdef>
  8562. </glossentry>
  8563. <glossentry id='var-MODULE_TARBALL_DEPLOY'><glossterm>MODULE_TARBALL_DEPLOY</glossterm>
  8564. <info>
  8565. 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."
  8566. </info>
  8567. <glossdef>
  8568. <para role="glossdeffirst">
  8569. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8570. Controls creation of the <filename>modules-*.tgz</filename>
  8571. file.
  8572. Set this variable to "0" to disable creation of this
  8573. file, which contains all of the kernel modules resulting
  8574. from a kernel build.
  8575. </para>
  8576. </glossdef>
  8577. </glossentry>
  8578. <glossentry id='var-MODULE_TARBALL_LINK_NAME'><glossterm>MODULE_TARBALL_LINK_NAME</glossterm>
  8579. <info>
  8580. MODULE_TARBALL_LINK_NAME[doc] = "The link name of the kernel module tarball."
  8581. </info>
  8582. <glossdef>
  8583. <para role="glossdeffirst">
  8584. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8585. The link name of the kernel module tarball.
  8586. This variable is set in the
  8587. <filename>meta/classes/kernel-artifact-names.bbclass</filename>
  8588. file as follows:
  8589. <literallayout class='monospaced'>
  8590. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  8591. </literallayout>
  8592. The value of the <filename>KERNEL_ARTIFACT_LINK_NAME</filename>
  8593. variable, which is set in the same file, has the following
  8594. value:
  8595. <literallayout class='monospaced'>
  8596. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  8597. </literallayout>
  8598. </para>
  8599. <para>
  8600. See the
  8601. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>
  8602. variable for additional information.
  8603. </para>
  8604. </glossdef>
  8605. </glossentry>
  8606. <glossentry id='var-MODULE_TARBALL_NAME'><glossterm>MODULE_TARBALL_NAME</glossterm>
  8607. <info>
  8608. MODULE_TARBALL_NAME[doc] = "The base name of the kernel module tarball."
  8609. </info>
  8610. <glossdef>
  8611. <para role="glossdeffirst">
  8612. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8613. The base name of the kernel module tarball.
  8614. This variable is set in the
  8615. <filename>meta/classes/kernel-artifact-names.bbclass</filename>
  8616. file as follows:
  8617. <literallayout class='monospaced'>
  8618. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  8619. </literallayout>
  8620. The value of the
  8621. <link linkend='var-KERNEL_ARTIFACT_NAME'><filename>KERNEL_ARTIFACT_NAME</filename></link>
  8622. variable, which is set in the same file, has the following
  8623. value:
  8624. <literallayout class='monospaced'>
  8625. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  8626. </literallayout>
  8627. </para>
  8628. </glossdef>
  8629. </glossentry>
  8630. <!--
  8631. <glossentry id='var-MULTIMACH_HOST_SYS'><glossterm>MULTIMACH_HOST_SYS</glossterm>
  8632. <info>
  8633. MULTIMACH_HOST_SYS[doc] = "Separates files for different machines such that you can build for multiple host machines using the same output directories."
  8634. </info>
  8635. <glossdef>
  8636. <para role="glossdeffirst">
  8637. -->
  8638. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8639. <!--
  8640. Serves the same purpose as
  8641. <link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>,
  8642. but for the "HOST" system, in situations that involve a
  8643. "HOST" and a "TARGET" system.
  8644. See the
  8645. <link linkend='var-STAGING_DIR_TARGET'><filename>STAGING_DIR_TARGET</filename></link>
  8646. variable for more information.
  8647. </para>
  8648. <para>
  8649. The default value of this variable is:
  8650. <literallayout class='monospaced'>
  8651. ${PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}
  8652. </literallayout>
  8653. </para>
  8654. </glossdef>
  8655. </glossentry>
  8656. -->
  8657. <glossentry id='var-MULTIMACH_TARGET_SYS'><glossterm>MULTIMACH_TARGET_SYS</glossterm>
  8658. <info>
  8659. MULTIMACH_TARGET_SYS[doc] = "Separates files for different machines such that you can build for multiple target machines using the same output directories."
  8660. </info>
  8661. <glossdef>
  8662. <para role="glossdeffirst">
  8663. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8664. Uniquely identifies the type of the target system for
  8665. which packages are being built.
  8666. This variable allows output for different types of target
  8667. systems to be put into different subdirectories of the same
  8668. output directory.
  8669. </para>
  8670. <para>
  8671. The default value of this variable is:
  8672. <literallayout class='monospaced'>
  8673. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  8674. </literallayout>
  8675. Some classes (e.g.
  8676. <link linkend='ref-classes-cross-canadian'><filename>cross-canadian</filename></link>)
  8677. modify the <filename>MULTIMACH_TARGET_SYS</filename> value.
  8678. </para>
  8679. <para>
  8680. See the
  8681. <link linkend='var-STAMP'><filename>STAMP</filename></link>
  8682. variable for an example.
  8683. See the
  8684. <link linkend='var-STAGING_DIR_TARGET'><filename>STAGING_DIR_TARGET</filename></link>
  8685. variable for more information.
  8686. </para>
  8687. </glossdef>
  8688. </glossentry>
  8689. </glossdiv>
  8690. <glossdiv id='var-glossary-n'><title>N</title>
  8691. <glossentry id='var-NATIVELSBSTRING'><glossterm>NATIVELSBSTRING</glossterm>
  8692. <info>
  8693. NATIVELSBSTRING[doc] = "A string identifying the host distribution."
  8694. </info>
  8695. <glossdef>
  8696. <para role="glossdeffirst">
  8697. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8698. A string identifying the host distribution.
  8699. Strings consist of the host distributor ID
  8700. followed by the release, as reported by the
  8701. <filename>lsb_release</filename> tool
  8702. or as read from <filename>/etc/lsb-release</filename>.
  8703. For example, when running a build on Ubuntu 12.10, the value
  8704. is "Ubuntu-12.10".
  8705. If this information is unable to be determined, the value
  8706. resolves to "Unknown".
  8707. </para>
  8708. <para>
  8709. This variable is used by default to isolate native shared
  8710. state packages for different distributions (e.g. to avoid
  8711. problems with <filename>glibc</filename> version
  8712. incompatibilities).
  8713. Additionally, the variable is checked against
  8714. <link linkend='var-SANITY_TESTED_DISTROS'><filename>SANITY_TESTED_DISTROS</filename></link>
  8715. if that variable is set.
  8716. </para>
  8717. </glossdef>
  8718. </glossentry>
  8719. <glossentry id='var-NM'><glossterm>NM</glossterm>
  8720. <info>
  8721. NM[doc] = "Minimal command and arguments to run 'nm'."
  8722. </info>
  8723. <glossdef>
  8724. <para role="glossdeffirst">
  8725. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8726. The minimal command and arguments to run
  8727. <filename>nm</filename>.
  8728. </para>
  8729. </glossdef>
  8730. </glossentry>
  8731. <glossentry id='var-NO_GENERIC_LICENSE'><glossterm>NO_GENERIC_LICENSE</glossterm>
  8732. <info>
  8733. NO_GENERIC_LICENSE[doc] = "Used to allow copying a license that does not exist in common licenses."
  8734. </info>
  8735. <glossdef>
  8736. <para role="glossdeffirst">
  8737. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8738. Avoids QA errors when you use a non-common, non-CLOSED
  8739. license in a recipe.
  8740. Packages exist, such as the linux-firmware package, with
  8741. many licenses that are not in any way common.
  8742. Also, new licenses are added occasionally to avoid
  8743. introducing a lot of common license files, which are only
  8744. applicable to a specific package.
  8745. <filename>NO_GENERIC_LICENSE</filename> is used to allow
  8746. copying a license that does not exist in common licenses.
  8747. </para>
  8748. <para>
  8749. The following example shows how to add
  8750. <filename>NO_GENERIC_LICENSE</filename> to a recipe:
  8751. <literallayout class='monospaced'>
  8752. NO_GENERIC_LICENSE[<replaceable>license_name</replaceable>] = "<replaceable>license_file_in_fetched_source</replaceable>"
  8753. </literallayout>
  8754. The following is an example that uses the
  8755. <filename>LICENSE.Abilis.txt</filename> file as the license
  8756. from the fetched source:
  8757. <literallayout class='monospaced'>
  8758. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  8759. </literallayout>
  8760. </para>
  8761. </glossdef>
  8762. </glossentry>
  8763. <glossentry id='var-NO_RECOMMENDATIONS'><glossterm>NO_RECOMMENDATIONS</glossterm>
  8764. <info>
  8765. NO_RECOMMENDATIONS[doc] = "When set to '1', no recommended packages will be installed. 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."
  8766. </info>
  8767. <glossdef>
  8768. <para role="glossdeffirst">
  8769. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8770. Prevents installation of all "recommended-only" packages.
  8771. Recommended-only packages are packages installed only
  8772. through the
  8773. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link>
  8774. variable).
  8775. Setting the <filename>NO_RECOMMENDATIONS</filename> variable
  8776. to "1" turns this feature on:
  8777. <literallayout class='monospaced'>
  8778. NO_RECOMMENDATIONS = "1"
  8779. </literallayout>
  8780. </para>
  8781. <para>
  8782. You can set this variable globally in your
  8783. <filename>local.conf</filename> file or you can attach it to
  8784. a specific image recipe by using the recipe name override:
  8785. <literallayout class='monospaced'>
  8786. NO_RECOMMENDATIONS_pn-<replaceable>target_image</replaceable> = "1"
  8787. </literallayout>
  8788. </para>
  8789. <para>
  8790. It is important to realize that if you choose to not install
  8791. packages using this variable and some other packages are
  8792. dependent on them (i.e. listed in a recipe's
  8793. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  8794. variable), the OpenEmbedded build system ignores your
  8795. request and will install the packages to avoid dependency
  8796. errors.
  8797. <note>
  8798. Some recommended packages might be required for certain
  8799. system functionality, such as kernel modules.
  8800. It is up to you to add packages with the
  8801. <link linkend='var-IMAGE_INSTALL'><filename>IMAGE_INSTALL</filename></link>
  8802. variable.
  8803. </note>
  8804. </para>
  8805. <para>
  8806. Support for this variable exists only when using the
  8807. IPK and RPM packaging backend.
  8808. Support does not exist for DEB.
  8809. </para>
  8810. <para>
  8811. See the
  8812. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>
  8813. and the
  8814. <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link>
  8815. variables for related information.
  8816. </para>
  8817. </glossdef>
  8818. </glossentry>
  8819. <glossentry id='var-NOAUTOPACKAGEDEBUG'><glossterm>NOAUTOPACKAGEDEBUG</glossterm>
  8820. <info>
  8821. NOAUTOPACKAGEDEBUG[doc] = "Disables auto package from splitting .debug files."
  8822. </info>
  8823. <glossdef>
  8824. <para role="glossdeffirst">
  8825. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8826. Disables auto package from splitting
  8827. <filename>.debug</filename> files. If a recipe requires
  8828. <filename>FILES_${PN}-dbg</filename> to be set manually,
  8829. the <filename>NOAUTOPACKAGEDEBUG</filename> can be defined
  8830. allowing you to define the content of the debug package.
  8831. For example:
  8832. <literallayout class='monospaced'>
  8833. NOAUTOPACKAGEDEBUG = "1"
  8834. FILES_${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  8835. FILES_${PN}-dbg = "/usr/src/debug/"
  8836. FILES_${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  8837. </literallayout>
  8838. </para>
  8839. </glossdef>
  8840. </glossentry>
  8841. </glossdiv>
  8842. <glossdiv id='var-glossary-o'><title>O</title>
  8843. <glossentry id='var-OBJCOPY'><glossterm>OBJCOPY</glossterm>
  8844. <info>
  8845. OBJCOPY[doc] = "Minimal command and arguments to run 'objcopy'."
  8846. </info>
  8847. <glossdef>
  8848. <para role="glossdeffirst">
  8849. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8850. The minimal command and arguments to run
  8851. <filename>objcopy</filename>.
  8852. </para>
  8853. </glossdef>
  8854. </glossentry>
  8855. <glossentry id='var-OBJDUMP'><glossterm>OBJDUMP</glossterm>
  8856. <info>
  8857. OBJDUMP[doc] = "Minimal command and arguments to run 'objdump'."
  8858. </info>
  8859. <glossdef>
  8860. <para role="glossdeffirst">
  8861. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8862. The minimal command and arguments to run
  8863. <filename>objdump</filename>.
  8864. </para>
  8865. </glossdef>
  8866. </glossentry>
  8867. <glossentry id='var-OE_BINCONFIG_EXTRA_MANGLE'><glossterm>OE_BINCONFIG_EXTRA_MANGLE</glossterm>
  8868. <info>
  8869. OE_BINCONFIG_EXTRA_MANGLE[doc] = "When a recipe inherits the binconfig.bbclass class, this variable specifies additional arguments passed to the "sed" command."
  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-binconfig'><filename>binconfig</filename></link>
  8876. class, this variable
  8877. specifies additional arguments passed to the "sed" command.
  8878. The sed command alters any paths in configuration scripts
  8879. that have been set up during compilation.
  8880. Inheriting this class results in all paths in these scripts
  8881. being changed to point into the
  8882. <filename>sysroots/</filename> directory so that all builds
  8883. that use the script will use the correct directories
  8884. for the cross compiling layout.
  8885. </para>
  8886. <para>
  8887. See the <filename>meta/classes/binconfig.bbclass</filename>
  8888. in the
  8889. <link linkend='source-directory'>Source Directory</link>
  8890. for details on how this class applies these additional
  8891. sed command arguments.
  8892. For general information on the
  8893. <filename>binconfig</filename> class, see the
  8894. "<link linkend='ref-classes-binconfig'><filename>binconfig.bbclass</filename></link>"
  8895. section.
  8896. </para>
  8897. </glossdef>
  8898. </glossentry>
  8899. <glossentry id='var-OE_IMPORTS'><glossterm>OE_IMPORTS</glossterm>
  8900. <info>
  8901. 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."
  8902. </info>
  8903. <glossdef>
  8904. <para role="glossdeffirst">
  8905. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8906. An internal variable used to tell the OpenEmbedded build
  8907. system what Python modules to import for every Python
  8908. function run by the system.
  8909. </para>
  8910. <note>
  8911. Do not set this variable.
  8912. It is for internal use only.
  8913. </note>
  8914. </glossdef>
  8915. </glossentry>
  8916. <glossentry id='var-OE_INIT_ENV_SCRIPT'><glossterm>OE_INIT_ENV_SCRIPT</glossterm>
  8917. <info>
  8918. 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."
  8919. </info>
  8920. <glossdef>
  8921. <para role="glossdeffirst">
  8922. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8923. The name of the build environment setup script for the
  8924. purposes of setting up the environment within the
  8925. extensible SDK.
  8926. The default value is "oe-init-build-env".
  8927. </para>
  8928. <para>
  8929. If you use a custom script to set up your build
  8930. environment, set the
  8931. <filename>OE_INIT_ENV_SCRIPT</filename> variable to its
  8932. name.
  8933. </para>
  8934. </glossdef>
  8935. </glossentry>
  8936. <glossentry id='var-OE_TERMINAL'><glossterm>OE_TERMINAL</glossterm>
  8937. <info>
  8938. OE_TERMINAL[doc] = "Controls how the OpenEmbedded build system spawns interactive terminals on the host development system."
  8939. </info>
  8940. <glossdef>
  8941. <para role="glossdeffirst">
  8942. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8943. Controls how the OpenEmbedded build system spawns
  8944. interactive terminals on the host development system
  8945. (e.g. using the BitBake command with the
  8946. <filename>-c devshell</filename> command-line option).
  8947. For more information, see the
  8948. "<ulink url='&YOCTO_DOCS_DEV_URL;#platdev-appdev-devshell'>Using a Development Shell</ulink>" section
  8949. in the Yocto Project Development Tasks Manual.
  8950. </para>
  8951. <para>
  8952. You can use the following values for the
  8953. <filename>OE_TERMINAL</filename> variable:
  8954. <literallayout class='monospaced'>
  8955. auto
  8956. gnome
  8957. xfce
  8958. rxvt
  8959. screen
  8960. konsole
  8961. none
  8962. </literallayout>
  8963. </para>
  8964. </glossdef>
  8965. </glossentry>
  8966. <glossentry id='var-OEROOT'><glossterm>OEROOT</glossterm>
  8967. <info>
  8968. OEROOT[doc] = "The directory from which the top-level build environment setup script is sourced."
  8969. </info>
  8970. <glossdef>
  8971. <para role="glossdeffirst">
  8972. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8973. The directory from which the top-level build environment
  8974. setup script is sourced.
  8975. The Yocto Project provides a top-level build environment
  8976. setup script:
  8977. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>.
  8978. When you run this script, the
  8979. <filename>OEROOT</filename> variable resolves to the
  8980. directory that contains the script.
  8981. </para>
  8982. <para>
  8983. For additional information on how this variable is used,
  8984. see the initialization script.
  8985. </para>
  8986. </glossdef>
  8987. </glossentry>
  8988. <glossentry id='var-OLDEST_KERNEL'><glossterm>OLDEST_KERNEL</glossterm>
  8989. <info>
  8990. OLDEST_KERNEL[doc] = "Declares the oldest version of the Linux kernel that the produced binaries must support."
  8991. </info>
  8992. <glossdef>
  8993. <para role="glossdeffirst">
  8994. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8995. Declares the oldest version of the Linux kernel that the
  8996. produced binaries must support.
  8997. This variable is passed into the build of the Embedded
  8998. GNU C Library (<filename>glibc</filename>).
  8999. </para>
  9000. <para>
  9001. The default for this variable comes from the
  9002. <filename>meta/conf/bitbake.conf</filename> configuration
  9003. file.
  9004. You can override this default by setting the variable
  9005. in a custom distribution configuration file.
  9006. </para>
  9007. </glossdef>
  9008. </glossentry>
  9009. <glossentry id='var-OVERRIDES'><glossterm>OVERRIDES</glossterm>
  9010. <info>
  9011. OVERRIDES[doc] = "A colon-separated list of overrides that currently apply."
  9012. </info>
  9013. <glossdef>
  9014. <para role="glossdeffirst">
  9015. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9016. A colon-separated list of overrides that currently apply.
  9017. Overrides are a BitBake mechanism that allows variables to
  9018. be selectively overridden at the end of parsing.
  9019. The set of overrides in <filename>OVERRIDES</filename>
  9020. represents the "state" during building, which includes
  9021. the current recipe being built, the machine for which
  9022. it is being built, and so forth.
  9023. </para>
  9024. <para>
  9025. As an example, if the string "an-override" appears as an
  9026. element in the colon-separated list in
  9027. <filename>OVERRIDES</filename>, then the following
  9028. assignment will override <filename>FOO</filename> with the
  9029. value "overridden" at the end of parsing:
  9030. <literallayout class='monospaced'>
  9031. FOO_an-override = "overridden"
  9032. </literallayout>
  9033. See the
  9034. "<ulink url='&YOCTO_DOCS_BB_URL;#conditional-syntax-overrides'>Conditional Syntax (Overrides)</ulink>"
  9035. section in the BitBake User Manual for more information on
  9036. the overrides mechanism.
  9037. </para>
  9038. <para>
  9039. The default value of <filename>OVERRIDES</filename>
  9040. includes the values of the
  9041. <link linkend='var-CLASSOVERRIDE'><filename>CLASSOVERRIDE</filename></link>,
  9042. <link linkend='var-MACHINEOVERRIDES'><filename>MACHINEOVERRIDES</filename></link>,
  9043. and
  9044. <link linkend='var-DISTROOVERRIDES'><filename>DISTROOVERRIDES</filename></link>
  9045. variables.
  9046. Another important override included by default is
  9047. <filename>pn-${PN}</filename>.
  9048. This override allows variables to be set for a single
  9049. recipe within configuration (<filename>.conf</filename>)
  9050. files.
  9051. Here is an example:
  9052. <literallayout class='monospaced'>
  9053. FOO_pn-myrecipe = "myrecipe-specific value"
  9054. </literallayout>
  9055. <note><title>Tip</title>
  9056. An easy way to see what overrides apply is to search for
  9057. <filename>OVERRIDES</filename> in the output of the
  9058. <filename>bitbake -e</filename> command.
  9059. See the
  9060. "<ulink url='&YOCTO_DOCS_DEV_URL;#dev-debugging-viewing-variable-values'>Viewing Variable Values</ulink>"
  9061. section in the Yocto Project Development Tasks
  9062. Manual for more information.
  9063. </note>
  9064. </para>
  9065. </glossdef>
  9066. </glossentry>
  9067. </glossdiv>
  9068. <glossdiv id='var-glossary-p'><title>P</title>
  9069. <glossentry id='var-P'><glossterm>P</glossterm>
  9070. <info>
  9071. P[doc] = "The recipe name and version. P is comprised of ${PN}-${PV}."
  9072. </info>
  9073. <glossdef>
  9074. <para role="glossdeffirst">
  9075. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9076. The recipe name and version.
  9077. <filename>P</filename> is comprised of the following:
  9078. <literallayout class='monospaced'>
  9079. ${PN}-${PV}
  9080. </literallayout>
  9081. </para>
  9082. </glossdef>
  9083. </glossentry>
  9084. <glossentry id='var-PACKAGE_ARCH'><glossterm>PACKAGE_ARCH</glossterm>
  9085. <info>
  9086. PACKAGE_ARCH[doc] = "The architecture of the resulting package or packages."
  9087. </info>
  9088. <glossdef>
  9089. <para role="glossdeffirst">
  9090. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9091. The architecture of the resulting package or packages.
  9092. </para>
  9093. <para>
  9094. By default, the value of this variable is set to
  9095. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>
  9096. when building for the target,
  9097. <link linkend='var-BUILD_ARCH'><filename>BUILD_ARCH</filename></link>
  9098. when building for the
  9099. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building
  9100. for the SDK.
  9101. <note>
  9102. See
  9103. <link linkend='var-SDK_ARCH'><filename>SDK_ARCH</filename></link>
  9104. for more information.
  9105. </note>
  9106. However, if your recipe's output packages are built
  9107. specific to the target machine rather than generally for
  9108. the architecture of the machine, you should set
  9109. <filename>PACKAGE_ARCH</filename> to the value of
  9110. <link linkend='var-MACHINE_ARCH'><filename>MACHINE_ARCH</filename></link>
  9111. in the recipe as follows:
  9112. <literallayout class='monospaced'>
  9113. PACKAGE_ARCH = "${MACHINE_ARCH}"
  9114. </literallayout>
  9115. </para>
  9116. </glossdef>
  9117. </glossentry>
  9118. <glossentry id='var-PACKAGE_ARCHS'><glossterm>PACKAGE_ARCHS</glossterm>
  9119. <info>
  9120. PACKAGE_ARCHS[doc] = "A list of architectures compatible with the given target in order of priority."
  9121. </info>
  9122. <glossdef>
  9123. <para role="glossdeffirst">
  9124. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9125. Specifies a list of architectures compatible with
  9126. the target machine.
  9127. This variable is set automatically and should not
  9128. normally be hand-edited.
  9129. Entries are separated using spaces and listed in order
  9130. of priority.
  9131. The default value for
  9132. <filename>PACKAGE_ARCHS</filename> is "all any noarch
  9133. ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  9134. </para>
  9135. </glossdef>
  9136. </glossentry>
  9137. <glossentry id='var-PACKAGE_BEFORE_PN'><glossterm>PACKAGE_BEFORE_PN</glossterm>
  9138. <info>
  9139. 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."
  9140. </info>
  9141. <glossdef>
  9142. <para role="glossdeffirst">
  9143. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9144. Enables easily adding packages to
  9145. <filename><link linkend='var-PACKAGES'>PACKAGES</link></filename>
  9146. before <filename>${<link linkend='var-PN'>PN</link>}</filename>
  9147. so that those added packages can pick up files that would normally be
  9148. included in the default package.
  9149. </para>
  9150. </glossdef>
  9151. </glossentry>
  9152. <glossentry id='var-PACKAGE_CLASSES'><glossterm>PACKAGE_CLASSES</glossterm>
  9153. <info>
  9154. 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."
  9155. </info>
  9156. <glossdef>
  9157. <para role="glossdeffirst">
  9158. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9159. This variable, which is set in the
  9160. <filename>local.conf</filename> configuration file found in
  9161. the <filename>conf</filename> folder of the
  9162. <link linkend='build-directory'>Build Directory</link>,
  9163. specifies the package manager the OpenEmbedded build system
  9164. uses when packaging data.
  9165. </para>
  9166. <para>
  9167. You can provide one or more of the following arguments for
  9168. the variable:
  9169. <literallayout class='monospaced'>
  9170. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk package_tar"
  9171. </literallayout>
  9172. <note><title>Warning</title>
  9173. While it is a legal option, the
  9174. <filename>package_tar</filename> class has limited
  9175. functionality due to no support for package
  9176. dependencies by that backend.
  9177. Therefore, it is recommended that you do not use it.
  9178. </note>
  9179. The build system uses only the first argument in the list
  9180. as the package manager when creating your image or SDK.
  9181. However, packages will be created using any additional
  9182. packaging classes you specify.
  9183. For example, if you use the following in your
  9184. <filename>local.conf</filename> file:
  9185. <literallayout class='monospaced'>
  9186. PACKAGE_CLASSES ?= "package_ipk"
  9187. </literallayout>
  9188. The OpenEmbedded build system uses the IPK package manager
  9189. to create your image or SDK.
  9190. </para>
  9191. <para>
  9192. For information on packaging and build performance effects
  9193. as a result of the package manager in use, see the
  9194. "<link linkend='ref-classes-package'><filename>package.bbclass</filename></link>"
  9195. section.
  9196. </para>
  9197. </glossdef>
  9198. </glossentry>
  9199. <glossentry id='var-PACKAGE_DEBUG_SPLIT_STYLE'><glossterm>PACKAGE_DEBUG_SPLIT_STYLE</glossterm>
  9200. <info>
  9201. 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)."
  9202. </info>
  9203. <glossdef>
  9204. <para role="glossdeffirst">
  9205. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9206. Determines how to split up the binary and debug information
  9207. when creating <filename>*-dbg</filename> packages to be
  9208. used with the GNU Project Debugger (GDB).
  9209. </para>
  9210. <para>
  9211. With the
  9212. <filename>PACKAGE_DEBUG_SPLIT_STYLE</filename> variable,
  9213. you can control where debug information, which can include
  9214. or exclude source files, is stored:
  9215. <itemizedlist>
  9216. <listitem><para>
  9217. ".debug": Debug symbol files are placed next
  9218. to the binary in a <filename>.debug</filename>
  9219. directory on the target.
  9220. For example, if a binary is installed into
  9221. <filename>/bin</filename>, the corresponding debug
  9222. symbol files are installed in
  9223. <filename>/bin/.debug</filename>.
  9224. Source files are placed in
  9225. <filename>/usr/src/debug</filename>.
  9226. This is the default behavior.
  9227. </para></listitem>
  9228. <listitem><para>
  9229. "debug-file-directory": Debug symbol files are
  9230. placed under <filename>/usr/lib/debug</filename>
  9231. on the target, and separated by the path from where
  9232. the binary is installed.
  9233. For example, if a binary is installed in
  9234. <filename>/bin</filename>, the corresponding debug
  9235. symbols are installed in
  9236. <filename>/usr/lib/debug/bin</filename>.
  9237. Source files are placed in
  9238. <filename>/usr/src/debug</filename>.
  9239. </para></listitem>
  9240. <listitem><para>
  9241. "debug-without-src": The same behavior as
  9242. ".debug" previously described with the exception
  9243. that no source files are installed.
  9244. </para></listitem>.
  9245. <listitem><para>
  9246. "debug-with-srcpkg": The same behavior as
  9247. ".debug" previously described with the exception
  9248. that all source files are placed in a separate
  9249. <filename>*-src</filename> pkg.
  9250. </para></listitem>
  9251. </itemizedlist>
  9252. </para>
  9253. <para>
  9254. You can find out more about debugging using GDB by reading
  9255. the
  9256. "<ulink url='&YOCTO_DOCS_DEV_URL;#platdev-gdb-remotedebug'>Debugging With the GNU Project Debugger (GDB) Remotely</ulink>"
  9257. section in the Yocto Project Development Tasks Manual.
  9258. </para>
  9259. </glossdef>
  9260. </glossentry>
  9261. <glossentry id='var-PACKAGE_EXCLUDE_COMPLEMENTARY'><glossterm>PACKAGE_EXCLUDE_COMPLEMENTARY</glossterm>
  9262. <info>
  9263. PACKAGE_EXCLUDE_COMPLEMENTARY[doc] = "Prevents specific packages from being installed when you are installing complementary packages."
  9264. </info>
  9265. <glossdef>
  9266. <para role="glossdeffirst">
  9267. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9268. Prevents specific packages from being installed when
  9269. you are installing complementary packages.
  9270. </para>
  9271. <para>
  9272. You might find that you want to prevent installing certain
  9273. packages when you are installing complementary packages.
  9274. For example, if you are using
  9275. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  9276. to install <filename>dev-pkgs</filename>, you might not want
  9277. to install all packages from a particular multilib.
  9278. If you find yourself in this situation, you can use the
  9279. <filename>PACKAGE_EXCLUDE_COMPLEMENTARY</filename> variable
  9280. to specify regular expressions to match the packages you
  9281. want to exclude.
  9282. </para>
  9283. </glossdef>
  9284. </glossentry>
  9285. <glossentry id='var-PACKAGE_EXCLUDE'><glossterm>PACKAGE_EXCLUDE</glossterm>
  9286. <info>
  9287. PACKAGE_EXCLUDE[doc] = "Packages to exclude from the installation. If a listed package is required, an error is generated."
  9288. </info>
  9289. <glossdef>
  9290. <para role="glossdeffirst">
  9291. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9292. Lists packages that should not be installed into an image.
  9293. For example:
  9294. <literallayout class='monospaced'>
  9295. PACKAGE_EXCLUDE = "<replaceable>package_name</replaceable> <replaceable>package_name</replaceable> <replaceable>package_name</replaceable> ..."
  9296. </literallayout>
  9297. </para>
  9298. <para>
  9299. You can set this variable globally in your
  9300. <filename>local.conf</filename> file or you can attach it to
  9301. a specific image recipe by using the recipe name override:
  9302. <literallayout class='monospaced'>
  9303. PACKAGE_EXCLUDE_pn-<replaceable>target_image</replaceable> = "<replaceable>package_name</replaceable>"
  9304. </literallayout>
  9305. </para>
  9306. <para>
  9307. If you choose to not install
  9308. a package using this variable and some other package is
  9309. dependent on it (i.e. listed in a recipe's
  9310. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  9311. variable), the OpenEmbedded build system generates a fatal
  9312. installation error.
  9313. Because the build system halts the process with a fatal
  9314. error, you can use the variable with an iterative
  9315. development process to remove specific components from a
  9316. system.
  9317. </para>
  9318. <para>
  9319. Support for this variable exists only when using the
  9320. IPK and RPM packaging backend.
  9321. Support does not exist for DEB.
  9322. </para>
  9323. <para>
  9324. See the
  9325. <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link>
  9326. and the
  9327. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>
  9328. variables for related information.
  9329. </para>
  9330. </glossdef>
  9331. </glossentry>
  9332. <glossentry id='var-PACKAGE_EXTRA_ARCHS'><glossterm>PACKAGE_EXTRA_ARCHS</glossterm>
  9333. <info>
  9334. 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."
  9335. </info>
  9336. <glossdef>
  9337. <para role="glossdeffirst">
  9338. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9339. Specifies the list of architectures compatible with the device CPU.
  9340. This variable is useful when you build for several different devices that use
  9341. miscellaneous processors such as XScale and ARM926-EJS.
  9342. </para>
  9343. </glossdef>
  9344. </glossentry>
  9345. <glossentry id='var-PACKAGE_FEED_ARCHS'><glossterm>PACKAGE_FEED_ARCHS</glossterm>
  9346. <info>
  9347. PACKAGE_FEED_ARCHS[doc] = "Optionally specifies user-defined package architectures when constructing package feed URIs."
  9348. </info>
  9349. <glossdef>
  9350. <para role="glossdeffirst">
  9351. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9352. Optionally specifies the package architectures used as
  9353. part of the package feed URIs during the build.
  9354. When used, the <filename>PACKAGE_FEED_ARCHS</filename>
  9355. variable is appended to the final package feed URI, which
  9356. is constructed using the
  9357. <link linkend='var-PACKAGE_FEED_URIS'><filename>PACKAGE_FEED_URIS</filename></link>
  9358. and
  9359. <link linkend='var-PACKAGE_FEED_BASE_PATHS'><filename>PACKAGE_FEED_BASE_PATHS</filename></link>
  9360. variables.
  9361. <note><title>Tip</title>
  9362. You can use the <filename>PACKAGE_FEEDS_ARCHS</filename>
  9363. variable to whitelist specific package architectures.
  9364. If you do not need to whitelist specific architectures,
  9365. which is a common case, you can omit this variable.
  9366. Omitting the variable results in all available
  9367. architectures for the current machine being included
  9368. into remote package feeds.
  9369. </note>
  9370. </para>
  9371. <para>
  9372. Consider the following example where the
  9373. <filename>PACKAGE_FEED_URIS</filename>,
  9374. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  9375. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  9376. defined in your <filename>local.conf</filename> file:
  9377. <literallayout class='monospaced'>
  9378. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  9379. https://example.com/packagerepos/updates"
  9380. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  9381. PACKAGE_FEED_ARCHS = "all core2-64"
  9382. </literallayout>
  9383. Given these settings, the resulting package feeds are
  9384. as follows:
  9385. <literallayout class='monospaced'>
  9386. https://example.com/packagerepos/release/rpm/all
  9387. https://example.com/packagerepos/release/rpm/core2-64
  9388. https://example.com/packagerepos/release/rpm-dev/all
  9389. https://example.com/packagerepos/release/rpm-dev/core2-64
  9390. https://example.com/packagerepos/updates/rpm/all
  9391. https://example.com/packagerepos/updates/rpm/core2-64
  9392. https://example.com/packagerepos/updates/rpm-dev/all
  9393. https://example.com/packagerepos/updates/rpm-dev/core2-64
  9394. </literallayout>
  9395. </para>
  9396. </glossdef>
  9397. </glossentry>
  9398. <glossentry id='var-PACKAGE_FEED_BASE_PATHS'><glossterm>PACKAGE_FEED_BASE_PATHS</glossterm>
  9399. <info>
  9400. PACKAGE_FEED_BASE_PATHS[doc] = "Specifies base path used when constructing package feed URIs."
  9401. </info>
  9402. <glossdef>
  9403. <para role="glossdeffirst">
  9404. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9405. Specifies the base path used when constructing package feed
  9406. URIs.
  9407. The <filename>PACKAGE_FEED_BASE_PATHS</filename> variable
  9408. makes up the middle portion of a package feed URI used
  9409. by the OpenEmbedded build system.
  9410. The base path lies between the
  9411. <link linkend='var-PACKAGE_FEED_URIS'><filename>PACKAGE_FEED_URIS</filename></link>
  9412. and
  9413. <link linkend='var-PACKAGE_FEED_ARCHS'><filename>PACKAGE_FEED_ARCHS</filename></link>
  9414. variables.
  9415. </para>
  9416. <para>
  9417. Consider the following example where the
  9418. <filename>PACKAGE_FEED_URIS</filename>,
  9419. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  9420. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  9421. defined in your <filename>local.conf</filename> file:
  9422. <literallayout class='monospaced'>
  9423. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  9424. https://example.com/packagerepos/updates"
  9425. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  9426. PACKAGE_FEED_ARCHS = "all core2-64"
  9427. </literallayout>
  9428. Given these settings, the resulting package feeds are
  9429. as follows:
  9430. <literallayout class='monospaced'>
  9431. https://example.com/packagerepos/release/rpm/all
  9432. https://example.com/packagerepos/release/rpm/core2-64
  9433. https://example.com/packagerepos/release/rpm-dev/all
  9434. https://example.com/packagerepos/release/rpm-dev/core2-64
  9435. https://example.com/packagerepos/updates/rpm/all
  9436. https://example.com/packagerepos/updates/rpm/core2-64
  9437. https://example.com/packagerepos/updates/rpm-dev/all
  9438. https://example.com/packagerepos/updates/rpm-dev/core2-64
  9439. </literallayout>
  9440. </para>
  9441. </glossdef>
  9442. </glossentry>
  9443. <glossentry id='var-PACKAGE_FEED_URIS'><glossterm>PACKAGE_FEED_URIS</glossterm>
  9444. <info>
  9445. PACKAGE_FEED_URIS[doc] = "Specifies the front portion of the package feed URI used by the OpenEmbedded build system."
  9446. </info>
  9447. <glossdef>
  9448. <para role="glossdeffirst">
  9449. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9450. Specifies the front portion of the package feed URI
  9451. used by the OpenEmbedded build system.
  9452. Each final package feed URI is comprised of
  9453. <filename>PACKAGE_FEED_URIS</filename>,
  9454. <link linkend='var-PACKAGE_FEED_BASE_PATHS'><filename>PACKAGE_FEED_BASE_PATHS</filename></link>,
  9455. and
  9456. <link linkend='var-PACKAGE_FEED_ARCHS'><filename>PACKAGE_FEED_ARCHS</filename></link>
  9457. variables.
  9458. </para>
  9459. <para>
  9460. Consider the following example where the
  9461. <filename>PACKAGE_FEED_URIS</filename>,
  9462. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  9463. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  9464. defined in your <filename>local.conf</filename> file:
  9465. <literallayout class='monospaced'>
  9466. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  9467. https://example.com/packagerepos/updates"
  9468. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  9469. PACKAGE_FEED_ARCHS = "all core2-64"
  9470. </literallayout>
  9471. Given these settings, the resulting package feeds are
  9472. as follows:
  9473. <literallayout class='monospaced'>
  9474. https://example.com/packagerepos/release/rpm/all
  9475. https://example.com/packagerepos/release/rpm/core2-64
  9476. https://example.com/packagerepos/release/rpm-dev/all
  9477. https://example.com/packagerepos/release/rpm-dev/core2-64
  9478. https://example.com/packagerepos/updates/rpm/all
  9479. https://example.com/packagerepos/updates/rpm/core2-64
  9480. https://example.com/packagerepos/updates/rpm-dev/all
  9481. https://example.com/packagerepos/updates/rpm-dev/core2-64
  9482. </literallayout>
  9483. </para>
  9484. </glossdef>
  9485. </glossentry>
  9486. <glossentry id='var-PACKAGE_GROUP'><glossterm>PACKAGE_GROUP</glossterm>
  9487. <info>
  9488. PACKAGE_GROUP[doc] = "Defines one or more packages to include in an image when a specific item is included in IMAGE_FEATURES."
  9489. </info>
  9490. <glossdef>
  9491. <para role="glossdeffirst">
  9492. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9493. The <filename>PACKAGE_GROUP</filename> variable has been
  9494. renamed to
  9495. <link linkend='var-FEATURE_PACKAGES'><filename>FEATURE_PACKAGES</filename></link>.
  9496. See the variable description for
  9497. <filename>FEATURE_PACKAGES</filename> for information.
  9498. </para>
  9499. <para>
  9500. If if you use the <filename>PACKAGE_GROUP</filename>
  9501. variable, the OpenEmbedded build system issues a warning
  9502. message.
  9503. </para>
  9504. </glossdef>
  9505. </glossentry>
  9506. <glossentry id='var-PACKAGE_INSTALL'><glossterm>PACKAGE_INSTALL</glossterm>
  9507. <info>
  9508. 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."
  9509. </info>
  9510. <glossdef>
  9511. <para role="glossdeffirst">
  9512. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9513. The final list of packages passed to the package manager
  9514. for installation into the image.
  9515. </para>
  9516. <para>
  9517. Because the package manager controls actual installation
  9518. of all packages, the list of packages passed using
  9519. <filename>PACKAGE_INSTALL</filename> is not the final list
  9520. of packages that are actually installed.
  9521. This variable is internal to the image construction
  9522. code.
  9523. Consequently, in general, you should use the
  9524. <link linkend='var-IMAGE_INSTALL'><filename>IMAGE_INSTALL</filename></link>
  9525. variable to specify packages for installation.
  9526. The exception to this is when working with
  9527. the
  9528. <link linkend='images-core-image-minimal-initramfs'><filename>core-image-minimal-initramfs</filename></link>
  9529. image.
  9530. When working with an initial RAM filesystem (initramfs)
  9531. image, use the <filename>PACKAGE_INSTALL</filename>
  9532. variable.
  9533. For information on creating an initramfs, see the
  9534. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  9535. section in the Yocto Project Development Tasks Manual.
  9536. </para>
  9537. </glossdef>
  9538. </glossentry>
  9539. <glossentry id='var-PACKAGE_INSTALL_ATTEMPTONLY'><glossterm>PACKAGE_INSTALL_ATTEMPTONLY</glossterm>
  9540. <info>
  9541. 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."
  9542. </info>
  9543. <glossdef>
  9544. <para role="glossdeffirst">
  9545. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9546. Specifies a list of packages the OpenEmbedded build
  9547. system attempts to install when creating an image.
  9548. If a listed package fails to install, the build system
  9549. does not generate an error.
  9550. This variable is generally not user-defined.
  9551. </para>
  9552. </glossdef>
  9553. </glossentry>
  9554. <glossentry id='var-PACKAGE_PREPROCESS_FUNCS'><glossterm>PACKAGE_PREPROCESS_FUNCS</glossterm>
  9555. <info>
  9556. 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."
  9557. </info>
  9558. <glossdef>
  9559. <para role="glossdeffirst">
  9560. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9561. Specifies a list of functions run to pre-process the
  9562. <link linkend='var-PKGD'><filename>PKGD</filename></link>
  9563. directory prior to splitting the files out to individual
  9564. packages.
  9565. </para>
  9566. </glossdef>
  9567. </glossentry>
  9568. <glossentry id='var-PACKAGE_WRITE_DEPS'><glossterm>PACKAGE_WRITE_DEPS</glossterm>
  9569. <info>
  9570. PACKAGE_WRITE_DEPS[doc] = "Specifies post-installation and pre-installation script dependencies on native/cross tools."
  9571. </info>
  9572. <glossdef>
  9573. <para role="glossdeffirst">
  9574. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9575. Specifies a list of dependencies for post-installation and
  9576. pre-installation scripts on native/cross tools.
  9577. If your post-installation or pre-installation script can
  9578. execute at rootfs creation time rather than on the
  9579. target but depends on a native tool in order to execute,
  9580. you need to list the tools in
  9581. <filename>PACKAGE_WRITE_DEPS</filename>.
  9582. </para>
  9583. <para>
  9584. For information on running post-installation scripts, see
  9585. the
  9586. "<ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-post-installation-scripts'>Post-Installation Scripts</ulink>"
  9587. section in the Yocto Project Development Tasks Manual.
  9588. </para>
  9589. </glossdef>
  9590. </glossentry>
  9591. <glossentry id='var-PACKAGECONFIG'><glossterm>PACKAGECONFIG</glossterm>
  9592. <info>
  9593. PACKAGECONFIG[doc] = "This variable provides a means of enabling or disabling features of a recipe on a per-recipe basis."
  9594. </info>
  9595. <glossdef>
  9596. <para role="glossdeffirst">
  9597. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9598. This variable provides a means of enabling or disabling
  9599. features of a recipe on a per-recipe basis.
  9600. <filename>PACKAGECONFIG</filename> blocks are defined
  9601. in recipes when you specify features and then arguments
  9602. that define feature behaviors.
  9603. Here is the basic block structure:
  9604. <literallayout class='monospaced'>
  9605. PACKAGECONFIG ??= "f1 f2 f3 ..."
  9606. PACKAGECONFIG[f1] = "--with-f1,--without-f1,build-deps-f1,rt-deps-f1,rt-recs-f1"
  9607. PACKAGECONFIG[f2] = "--with-f2,--without-f2,build-deps-f2,rt-deps-f2,rt-recs-f2"
  9608. PACKAGECONFIG[f3] = "--with-f3,--without-f3,build-deps-f3,rt-deps-f3,rt-recs-f3"
  9609. </literallayout>
  9610. </para>
  9611. <para>
  9612. The <filename>PACKAGECONFIG</filename>
  9613. variable itself specifies a space-separated list of the
  9614. features to enable.
  9615. Following the features, you can determine the behavior of
  9616. each feature by providing up to five order-dependent
  9617. arguments, which are separated by commas.
  9618. You can omit any argument you like but must retain the
  9619. separating commas.
  9620. The order is important and specifies the following:
  9621. <orderedlist>
  9622. <listitem><para>Extra arguments
  9623. that should be added to the configure script
  9624. argument list
  9625. (<link linkend='var-EXTRA_OECONF'><filename>EXTRA_OECONF</filename></link>
  9626. or
  9627. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>)
  9628. if the feature is enabled.</para></listitem>
  9629. <listitem><para>Extra arguments
  9630. that should be added to <filename>EXTRA_OECONF</filename>
  9631. or <filename>PACKAGECONFIG_CONFARGS</filename>
  9632. if the feature is disabled.
  9633. </para></listitem>
  9634. <listitem><para>Additional build dependencies
  9635. (<link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>)
  9636. that should be added if the feature is enabled.
  9637. </para></listitem>
  9638. <listitem><para>Additional runtime dependencies
  9639. (<link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>)
  9640. that should be added if the feature is enabled.
  9641. </para></listitem>
  9642. <listitem><para>Additional runtime recommendations
  9643. (<link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link>)
  9644. that should be added if the feature is enabled.
  9645. </para></listitem>
  9646. </orderedlist>
  9647. </para>
  9648. <para>
  9649. Consider the following
  9650. <filename>PACKAGECONFIG</filename> block taken from the
  9651. <filename>librsvg</filename> recipe.
  9652. In this example the feature is <filename>croco</filename>,
  9653. which has three arguments that determine the feature's
  9654. behavior.
  9655. <literallayout class='monospaced'>
  9656. PACKAGECONFIG ??= "croco"
  9657. PACKAGECONFIG[croco] = "--with-croco,--without-croco,libcroco"
  9658. </literallayout>
  9659. The <filename>--with-croco</filename> and
  9660. <filename>libcroco</filename> arguments apply only if
  9661. the feature is enabled.
  9662. In this case, <filename>--with-croco</filename> is
  9663. added to the configure script argument list and
  9664. <filename>libcroco</filename> is added to
  9665. <filename>DEPENDS</filename>.
  9666. On the other hand, if the feature is disabled say through
  9667. a <filename>.bbappend</filename> file in another layer, then
  9668. the second argument <filename>--without-croco</filename> is
  9669. added to the configure script rather than
  9670. <filename>--with-croco</filename>.
  9671. </para>
  9672. <para>
  9673. The basic <filename>PACKAGECONFIG</filename> structure
  9674. previously described holds true regardless of whether you
  9675. are creating a block or changing a block.
  9676. When creating a block, use the structure inside your
  9677. recipe.
  9678. </para>
  9679. <para>
  9680. If you want to change an existing
  9681. <filename>PACKAGECONFIG</filename> block, you can do so
  9682. one of two ways:
  9683. <itemizedlist>
  9684. <listitem><para><emphasis>Append file:</emphasis>
  9685. Create an append file named
  9686. <replaceable>recipename</replaceable><filename>.bbappend</filename>
  9687. in your layer and override the value of
  9688. <filename>PACKAGECONFIG</filename>.
  9689. You can either completely override the variable:
  9690. <literallayout class='monospaced'>
  9691. PACKAGECONFIG = "f4 f5"
  9692. </literallayout>
  9693. Or, you can just append the variable:
  9694. <literallayout class='monospaced'>
  9695. PACKAGECONFIG_append = " f4"
  9696. </literallayout></para></listitem>
  9697. <listitem><para><emphasis>Configuration file:</emphasis>
  9698. This method is identical to changing the block
  9699. through an append file except you edit your
  9700. <filename>local.conf</filename> or
  9701. <filename><replaceable>mydistro</replaceable>.conf</filename> file.
  9702. As with append files previously described,
  9703. you can either completely override the variable:
  9704. <literallayout class='monospaced'>
  9705. PACKAGECONFIG_pn-<replaceable>recipename</replaceable> = "f4 f5"
  9706. </literallayout>
  9707. Or, you can just amend the variable:
  9708. <literallayout class='monospaced'>
  9709. PACKAGECONFIG_append_pn-<replaceable>recipename</replaceable> = " f4"
  9710. </literallayout></para></listitem>
  9711. </itemizedlist>
  9712. </para>
  9713. </glossdef>
  9714. </glossentry>
  9715. <glossentry id='var-PACKAGECONFIG_CONFARGS'><glossterm>PACKAGECONFIG_CONFARGS</glossterm>
  9716. <info>
  9717. PACKAGECONFIG_CONFARGS[doc] = "A space-separated list of configuration options generated from the PACKAGECONFIG setting."
  9718. </info>
  9719. <glossdef>
  9720. <para role="glossdeffirst">
  9721. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9722. A space-separated list of configuration options generated
  9723. from the
  9724. <link linkend='var-PACKAGECONFIG'><filename>PACKAGECONFIG</filename></link>
  9725. setting.
  9726. </para>
  9727. <para>
  9728. Classes such as
  9729. <link linkend='ref-classes-autotools'><filename>autotools</filename></link>
  9730. and
  9731. <link linkend='ref-classes-cmake'><filename>cmake</filename></link>
  9732. use <filename>PACKAGECONFIG_CONFARGS</filename> to pass
  9733. <filename>PACKAGECONFIG</filename> options to
  9734. <filename>configure</filename> and
  9735. <filename>cmake</filename>, respectively.
  9736. If you are using
  9737. <filename>PACKAGECONFIG</filename> but not a class that
  9738. handles the <filename>do_configure</filename> task, then
  9739. you need to use
  9740. <filename>PACKAGECONFIG_CONFARGS</filename> appropriately.
  9741. </para>
  9742. </glossdef>
  9743. </glossentry>
  9744. <glossentry id='var-PACKAGEGROUP_DISABLE_COMPLEMENTARY'><glossterm>PACKAGEGROUP_DISABLE_COMPLEMENTARY</glossterm>
  9745. <info>
  9746. PACKAGEGROUP_DISABLE_COMPLEMENTARY[doc] = "Prevents automatic creation of the normal complementary packages such as -dev and -dbg in a packagegroup recipe."
  9747. </info>
  9748. <glossdef>
  9749. <para role="glossdeffirst">
  9750. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9751. For recipes inheriting the
  9752. <link linkend='ref-classes-packagegroup'><filename>packagegroup</filename></link>
  9753. class, setting
  9754. <filename>PACKAGEGROUP_DISABLE_COMPLEMENTARY</filename> to
  9755. "1" specifies that the normal complementary packages
  9756. (i.e. <filename>-dev</filename>,
  9757. <filename>-dbg</filename>, and so forth) should not be
  9758. automatically created by the
  9759. <filename>packagegroup</filename> recipe, which is the
  9760. default behavior.
  9761. </para>
  9762. </glossdef>
  9763. </glossentry>
  9764. <glossentry id='var-PACKAGES'><glossterm>PACKAGES</glossterm>
  9765. <info>
  9766. PACKAGES[doc] = "The list of packages the recipe creates."
  9767. </info>
  9768. <glossdef>
  9769. <para role="glossdeffirst">
  9770. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9771. The list of packages the recipe creates.
  9772. The default value is the following:
  9773. <literallayout class='monospaced'>
  9774. ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  9775. </literallayout>
  9776. </para>
  9777. <para>
  9778. During packaging, the
  9779. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  9780. task goes through <filename>PACKAGES</filename> and uses
  9781. the
  9782. <link linkend='var-FILES'><filename>FILES</filename></link>
  9783. variable corresponding to each package to assign files to
  9784. the package.
  9785. If a file matches the <filename>FILES</filename> variable
  9786. for more than one package in <filename>PACKAGES</filename>,
  9787. it will be assigned to the earliest (leftmost) package.
  9788. </para>
  9789. <para>
  9790. Packages in the variable's list that are empty (i.e. where
  9791. none of the patterns in
  9792. <filename>FILES_</filename><replaceable>pkg</replaceable>
  9793. match any files installed by the
  9794. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  9795. task) are not generated, unless generation is forced through
  9796. the
  9797. <link linkend='var-ALLOW_EMPTY'><filename>ALLOW_EMPTY</filename></link>
  9798. variable.
  9799. </para>
  9800. </glossdef>
  9801. </glossentry>
  9802. <glossentry id='var-PACKAGES_DYNAMIC'><glossterm>PACKAGES_DYNAMIC</glossterm>
  9803. <info>
  9804. PACKAGES_DYNAMIC[doc] = "A promise that your recipe satisfies runtime dependencies for optional modules that are found in other recipes."
  9805. </info>
  9806. <glossdef>
  9807. <para role="glossdeffirst">
  9808. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9809. A promise that your recipe satisfies runtime dependencies
  9810. for optional modules that are found in other recipes.
  9811. <filename>PACKAGES_DYNAMIC</filename>
  9812. does not actually satisfy the dependencies, it only states that
  9813. they should be satisfied.
  9814. For example, if a hard, runtime dependency
  9815. (<link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>)
  9816. of another package is satisfied
  9817. at build time through the <filename>PACKAGES_DYNAMIC</filename>
  9818. variable, but a package with the module name is never actually
  9819. produced, then the other package will be broken.
  9820. Thus, if you attempt to include that package in an image,
  9821. you will get a dependency failure from the packaging system
  9822. during the
  9823. <link linkend='ref-tasks-rootfs'><filename>do_rootfs</filename></link>
  9824. task.
  9825. </para>
  9826. <para>
  9827. Typically, if there is a chance that such a situation can
  9828. occur and the package that is not created is valid
  9829. without the dependency being satisfied, then you should use
  9830. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link>
  9831. (a soft runtime dependency) instead of
  9832. <filename>RDEPENDS</filename>.
  9833. </para>
  9834. <para>
  9835. For an example of how to use the <filename>PACKAGES_DYNAMIC</filename>
  9836. variable when you are splitting packages, see the
  9837. "<ulink url='&YOCTO_DOCS_DEV_URL;#handling-optional-module-packaging'>Handling Optional Module Packaging</ulink>" section
  9838. in the Yocto Project Development Tasks Manual.
  9839. </para>
  9840. </glossdef>
  9841. </glossentry>
  9842. <glossentry id='var-PACKAGESPLITFUNCS'><glossterm>PACKAGESPLITFUNCS</glossterm>
  9843. <info>
  9844. PACKAGESPLITFUNCS[doc] = "Specifies a list of functions run to perform additional splitting of files into individual packages."
  9845. </info>
  9846. <glossdef>
  9847. <para role="glossdeffirst">
  9848. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9849. Specifies a list of functions run to perform additional
  9850. splitting of files into individual packages.
  9851. Recipes can either prepend to this variable or prepend
  9852. to the <filename>populate_packages</filename> function
  9853. in order to perform additional package splitting.
  9854. In either case, the function should set
  9855. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>,
  9856. <link linkend='var-FILES'><filename>FILES</filename></link>,
  9857. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  9858. and other packaging variables appropriately in order to
  9859. perform the desired splitting.
  9860. </para>
  9861. </glossdef>
  9862. </glossentry>
  9863. <glossentry id='var-PARALLEL_MAKE'><glossterm>PARALLEL_MAKE</glossterm>
  9864. <info>
  9865. 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."
  9866. </info>
  9867. <glossdef>
  9868. <para role="glossdeffirst">
  9869. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9870. Extra options passed to the <filename>make</filename>
  9871. command during the
  9872. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>
  9873. task in order to specify parallel compilation on the local
  9874. build host.
  9875. This variable is usually in the form "-j <replaceable>x</replaceable>",
  9876. where <replaceable>x</replaceable> represents the maximum
  9877. number of parallel threads <filename>make</filename> can
  9878. run.
  9879. <note><title>Caution</title>
  9880. In order for <filename>PARALLEL_MAKE</filename> to be
  9881. effective, <filename>make</filename> must be called
  9882. with
  9883. <filename>${</filename><link linkend='var-EXTRA_OEMAKE'><filename>EXTRA_OEMAKE</filename></link><filename>}</filename>.
  9884. An easy way to ensure this is to use the
  9885. <filename>oe_runmake</filename> function.
  9886. </note>
  9887. </para>
  9888. <para>
  9889. By default, the OpenEmbedded build system automatically
  9890. sets this variable to be equal to the number of cores the
  9891. build system uses.
  9892. <note>
  9893. If the software being built experiences dependency
  9894. issues during the <filename>do_compile</filename>
  9895. task that result in race conditions, you can clear
  9896. the <filename>PARALLEL_MAKE</filename> variable within
  9897. the recipe as a workaround.
  9898. For information on addressing race conditions, see the
  9899. "<ulink url='&YOCTO_DOCS_DEV_URL;#debugging-parallel-make-races'>Debugging Parallel Make Races</ulink>"
  9900. section in the Yocto Project Development Tasks Manual.
  9901. </note>
  9902. For single socket systems (i.e. one CPU), you should not
  9903. have to override this variable to gain optimal parallelism
  9904. during builds.
  9905. However, if you have very large systems that employ
  9906. multiple physical CPUs, you might want to make sure the
  9907. <filename>PARALLEL_MAKE</filename> variable is not
  9908. set higher than "-j 20".
  9909. </para>
  9910. <para>
  9911. For more information on speeding up builds, see the
  9912. "<ulink url='&YOCTO_DOCS_DEV_URL;#speeding-up-a-build'>Speeding Up a Build</ulink>"
  9913. section in the Yocto Project Development Tasks Manual.
  9914. </para>
  9915. </glossdef>
  9916. </glossentry>
  9917. <glossentry id='var-PARALLEL_MAKEINST'><glossterm>PARALLEL_MAKEINST</glossterm>
  9918. <info>
  9919. PARALLEL_MAKEINST[doc] = "Extra options passed to the make install command during the do_install task in order to specify parallel installation."
  9920. </info>
  9921. <glossdef>
  9922. <para role="glossdeffirst">
  9923. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9924. Extra options passed to the
  9925. <filename>make install</filename> command during the
  9926. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  9927. task in order to specify parallel installation.
  9928. This variable defaults to the value of
  9929. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>.
  9930. <note><title>Notes and Cautions</title>
  9931. <para>In order for <filename>PARALLEL_MAKEINST</filename>
  9932. to be
  9933. effective, <filename>make</filename> must be called
  9934. with
  9935. <filename>${</filename><link linkend='var-EXTRA_OEMAKE'><filename>EXTRA_OEMAKE</filename></link><filename>}</filename>.
  9936. An easy way to ensure this is to use the
  9937. <filename>oe_runmake</filename> function.</para>
  9938. <para>If the software being built experiences
  9939. dependency issues during the
  9940. <filename>do_install</filename> task that result in
  9941. race conditions, you can clear the
  9942. <filename>PARALLEL_MAKEINST</filename> variable within
  9943. the recipe as a workaround.
  9944. For information on addressing race conditions, see the
  9945. "<ulink url='&YOCTO_DOCS_DEV_URL;#debugging-parallel-make-races'>Debugging Parallel Make Races</ulink>"
  9946. section in the Yocto Project Development Tasks Manual.
  9947. </para>
  9948. </note>
  9949. </para>
  9950. </glossdef>
  9951. </glossentry>
  9952. <glossentry id='var-PATCHRESOLVE'><glossterm>PATCHRESOLVE</glossterm>
  9953. <info>
  9954. PATCHRESOLVE[doc] = "Enable or disable interactive patch resolution."
  9955. </info>
  9956. <glossdef>
  9957. <para role="glossdeffirst">
  9958. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9959. Determines the action to take when a patch fails.
  9960. You can set this variable to one of two values: "noop" and
  9961. "user".
  9962. </para>
  9963. <para>
  9964. The default value of "noop" causes the build to simply fail
  9965. when the OpenEmbedded build system cannot successfully
  9966. apply a patch.
  9967. Setting the value to "user" causes the build system to
  9968. launch a shell and places you in the right location so that
  9969. you can manually resolve the conflicts.
  9970. </para>
  9971. <para>
  9972. Set this variable in your
  9973. <filename>local.conf</filename> file.
  9974. </para>
  9975. </glossdef>
  9976. </glossentry>
  9977. <glossentry id='var-PATCHTOOL'><glossterm>PATCHTOOL</glossterm>
  9978. <info>
  9979. PATCHTOOL[doc] = "Specifies the utility used to apply patches for a recipe during do_patch."
  9980. </info>
  9981. <glossdef>
  9982. <para role="glossdeffirst">
  9983. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9984. Specifies the utility used to apply patches for a recipe
  9985. during the
  9986. <link linkend='ref-tasks-patch'><filename>do_patch</filename></link>
  9987. task.
  9988. You can specify one of three utilities: "patch", "quilt", or
  9989. "git".
  9990. The default utility used is "quilt" except for the
  9991. quilt-native recipe itself.
  9992. Because the quilt tool is not available at the
  9993. time quilt-native is being patched, it uses "patch".
  9994. </para>
  9995. <para>
  9996. If you wish to use an alternative patching tool, set the
  9997. variable in the recipe using one of the following:
  9998. <literallayout class='monospaced'>
  9999. PATCHTOOL = "patch"
  10000. PATCHTOOL = "quilt"
  10001. PATCHTOOL = "git"
  10002. </literallayout>
  10003. </para>
  10004. </glossdef>
  10005. </glossentry>
  10006. <glossentry id='var-PE'><glossterm>PE</glossterm>
  10007. <info>
  10008. 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."
  10009. </info>
  10010. <glossdef>
  10011. <para role="glossdeffirst">
  10012. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10013. The epoch of the recipe.
  10014. By default, this variable is unset.
  10015. The variable is used to make upgrades possible when the
  10016. versioning scheme changes in some backwards incompatible
  10017. way.
  10018. </para>
  10019. <para>
  10020. <filename>PE</filename> is the default value of the
  10021. <link linkend='var-PKGE'><filename>PKGE</filename></link>
  10022. variable.
  10023. </para>
  10024. </glossdef>
  10025. </glossentry>
  10026. <glossentry id='var-PF'><glossterm>PF</glossterm>
  10027. <info>
  10028. PF[doc] = "Specifies the recipe or package name and includes all version and revision numbers. This variable is comprised of ${PN}-${EXTENDPE}${PV}-${PR}."
  10029. </info>
  10030. <glossdef>
  10031. <para role="glossdeffirst">
  10032. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10033. Specifies the recipe or package name and includes all version and revision
  10034. numbers (i.e. <filename>glibc-2.13-r20+svnr15508/</filename> and
  10035. <filename>bash-4.2-r1/</filename>).
  10036. This variable is comprised of the following:
  10037. <literallayout class='monospaced'>
  10038. ${<link linkend='var-PN'>PN</link>}-${<link linkend='var-EXTENDPE'>EXTENDPE</link>}${<link linkend='var-PV'>PV</link>}-${<link linkend='var-PR'>PR</link>}
  10039. </literallayout>
  10040. </para>
  10041. </glossdef>
  10042. </glossentry>
  10043. <glossentry id='var-PIXBUF_PACKAGES'><glossterm>PIXBUF_PACKAGES</glossterm>
  10044. <info>
  10045. PIXBUF_PACKAGES[doc] = "When a recipe inherits the pixbufcache class, this variable identifies packages that contain the pixbuf loaders used with gdk-pixbuf."
  10046. </info>
  10047. <glossdef>
  10048. <para role="glossdeffirst">
  10049. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10050. When inheriting the
  10051. <link linkend='ref-classes-pixbufcache'><filename>pixbufcache</filename></link>
  10052. class, this variable identifies packages that contain
  10053. the pixbuf loaders used with
  10054. <filename>gdk-pixbuf</filename>.
  10055. By default, the <filename>pixbufcache</filename> class
  10056. assumes that the loaders are in the recipe's main package
  10057. (i.e. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  10058. Use this variable if the loaders you need are in a package
  10059. other than that main package.
  10060. </para>
  10061. </glossdef>
  10062. </glossentry>
  10063. <glossentry id='var-PKG'><glossterm>PKG</glossterm>
  10064. <info>
  10065. 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."
  10066. </info>
  10067. <glossdef>
  10068. <para role="glossdeffirst">
  10069. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10070. The name of the resulting package created by the
  10071. OpenEmbedded build system.
  10072. <note>
  10073. When using the <filename>PKG</filename> variable, you
  10074. must use a package name override.
  10075. </note>
  10076. </para>
  10077. <para>
  10078. For example, when the
  10079. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  10080. class renames the output package, it does so by setting
  10081. <filename>PKG_<replaceable>packagename</replaceable></filename>.
  10082. </para>
  10083. </glossdef>
  10084. </glossentry>
  10085. <glossentry id='var-PKG_CONFIG_PATH'><glossterm>PKG_CONFIG_PATH</glossterm>
  10086. <info>
  10087. PKG_CONFIG_PATH[doc] = "Path to pkg-config files for the current build context."
  10088. </info>
  10089. <glossdef>
  10090. <para role="glossdeffirst">
  10091. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10092. The path to <filename>pkg-config</filename> files for the
  10093. current build context.
  10094. <filename>pkg-config</filename> reads this variable
  10095. from the environment.
  10096. </para>
  10097. </glossdef>
  10098. </glossentry>
  10099. <glossentry id='var-PKGD'><glossterm>PKGD</glossterm>
  10100. <info>
  10101. PKGD[doc] = "Points to the destination directory for files to be packaged before they are split into individual packages."
  10102. </info>
  10103. <glossdef>
  10104. <para role="glossdeffirst">
  10105. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10106. Points to the destination directory for files to be
  10107. packaged before they are split into individual packages.
  10108. This directory defaults to the following:
  10109. <literallayout class='monospaced'>
  10110. ${WORKDIR}/package
  10111. </literallayout>
  10112. </para>
  10113. <para>
  10114. Do not change this default.
  10115. </para>
  10116. </glossdef>
  10117. </glossentry>
  10118. <glossentry id='var-PKGDATA_DIR'><glossterm>PKGDATA_DIR</glossterm>
  10119. <info>
  10120. PKGDATA_DIR[doc] = "Points to a shared, global-state directory that holds data generated during the packaging process."
  10121. </info>
  10122. <glossdef>
  10123. <para role="glossdeffirst">
  10124. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10125. Points to a shared, global-state directory that holds data
  10126. generated during the packaging process.
  10127. During the packaging process, the
  10128. <link linkend='ref-tasks-packagedata'><filename>do_packagedata</filename></link>
  10129. task packages data for each recipe and installs it into
  10130. this temporary, shared area.
  10131. This directory defaults to the following, which you should
  10132. not change:
  10133. <literallayout class='monospaced'>
  10134. ${STAGING_DIR_HOST}/pkgdata
  10135. </literallayout>
  10136. For examples of how this data is used, see the
  10137. "<ulink url='&YOCTO_DOCS_OM_URL;#automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</ulink>"
  10138. section in the Yocto Project Overview and Concepts Manual
  10139. and the
  10140. "<ulink url='&YOCTO_DOCS_DEV_URL;#viewing-package-information-with-oe-pkgdata-util'>Viewing Package Information with <filename>oe-pkgdata-util</filename></ulink>"
  10141. section in the Yocto Project Development Tasks Manual.
  10142. For more information on the shared, global-state directory,
  10143. see
  10144. <link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>.
  10145. </para>
  10146. </glossdef>
  10147. </glossentry>
  10148. <glossentry id='var-PKGDEST'><glossterm>PKGDEST</glossterm>
  10149. <info>
  10150. PKGDEST[doc] = "Points to the parent directory for files to be packaged after they have been split into individual packages."
  10151. </info>
  10152. <glossdef>
  10153. <para role="glossdeffirst">
  10154. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10155. Points to the parent directory for files to be packaged
  10156. after they have been split into individual packages.
  10157. This directory defaults to the following:
  10158. <literallayout class='monospaced'>
  10159. ${WORKDIR}/packages-split
  10160. </literallayout>
  10161. </para>
  10162. <para>
  10163. Under this directory, the build system creates
  10164. directories for each package specified in
  10165. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>.
  10166. Do not change this default.
  10167. </para>
  10168. </glossdef>
  10169. </glossentry>
  10170. <glossentry id='var-PKGDESTWORK'><glossterm>PKGDESTWORK</glossterm>
  10171. <info>
  10172. PKGDESTWORK[doc] = "Points to a temporary work area where the do_package task saves package metadata."
  10173. </info>
  10174. <glossdef>
  10175. <para role="glossdeffirst">
  10176. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10177. Points to a temporary work area where the
  10178. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  10179. task saves package metadata.
  10180. The <filename>PKGDESTWORK</filename> location defaults to
  10181. the following:
  10182. <literallayout class='monospaced'>
  10183. ${WORKDIR}/pkgdata
  10184. </literallayout>
  10185. Do not change this default.
  10186. </para>
  10187. <para>
  10188. The
  10189. <link linkend='ref-tasks-packagedata'><filename>do_packagedata</filename></link>
  10190. task copies the package metadata from
  10191. <filename>PKGDESTWORK</filename> to
  10192. <link linkend='var-PKGDATA_DIR'><filename>PKGDATA_DIR</filename></link>
  10193. to make it available globally.
  10194. </para>
  10195. </glossdef>
  10196. </glossentry>
  10197. <glossentry id='var-PKGE'><glossterm>PKGE</glossterm>
  10198. <info>
  10199. PKGE[doc] = "The epoch of the package(s) built by the recipe."
  10200. </info>
  10201. <glossdef>
  10202. <para role="glossdeffirst">
  10203. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10204. The epoch of the package(s) built by the recipe.
  10205. By default, <filename>PKGE</filename> is set to
  10206. <link linkend='var-PE'><filename>PE</filename></link>.
  10207. </para>
  10208. </glossdef>
  10209. </glossentry>
  10210. <glossentry id='var-PKGR'><glossterm>PKGR</glossterm>
  10211. <info>
  10212. PKGR[doc] = "The revision of the package(s) built by the recipe."
  10213. </info>
  10214. <glossdef>
  10215. <para role="glossdeffirst">
  10216. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10217. The revision of the package(s) built by the recipe.
  10218. By default, <filename>PKGR</filename> is set to
  10219. <link linkend='var-PR'><filename>PR</filename></link>.
  10220. </para>
  10221. </glossdef>
  10222. </glossentry>
  10223. <glossentry id='var-PKGV'><glossterm>PKGV</glossterm>
  10224. <info>
  10225. PKGV[doc] = "The version of the package(s) built by the recipe."
  10226. </info>
  10227. <glossdef>
  10228. <para role="glossdeffirst">
  10229. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10230. The version of the package(s) built by the
  10231. recipe.
  10232. By default, <filename>PKGV</filename> is set to
  10233. <link linkend='var-PV'><filename>PV</filename></link>.
  10234. </para>
  10235. </glossdef>
  10236. </glossentry>
  10237. <glossentry id='var-PN'><glossterm>PN</glossterm>
  10238. <info>
  10239. 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.
  10240. </info>
  10241. <glossdef>
  10242. <para role="glossdeffirst">
  10243. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10244. This variable can have two separate functions depending on the context: a recipe
  10245. name or a resulting package name.
  10246. </para>
  10247. <para>
  10248. <filename>PN</filename> refers to a recipe name in the context of a file used
  10249. by the OpenEmbedded build system as input to create a package.
  10250. The name is normally extracted from the recipe file name.
  10251. For example, if the recipe is named
  10252. <filename>expat_2.0.1.bb</filename>, then the default value of <filename>PN</filename>
  10253. will be "expat".
  10254. </para>
  10255. <para>
  10256. The variable refers to a package name in the context of a file created or produced by the
  10257. OpenEmbedded build system.
  10258. </para>
  10259. <para>
  10260. If applicable, the <filename>PN</filename> variable also contains any special
  10261. suffix or prefix.
  10262. For example, using <filename>bash</filename> to build packages for the native
  10263. machine, <filename>PN</filename> is <filename>bash-native</filename>.
  10264. Using <filename>bash</filename> to build packages for the target and for Multilib,
  10265. <filename>PN</filename> would be <filename>bash</filename> and
  10266. <filename>lib64-bash</filename>, respectively.
  10267. </para>
  10268. </glossdef>
  10269. </glossentry>
  10270. <glossentry id='var-PNBLACKLIST'><glossterm>PNBLACKLIST</glossterm>
  10271. <info>
  10272. PNBLACKLIST[doc] = "Lists recipes you do not want the OpenEmbedded build system to build."
  10273. </info>
  10274. <glossdef>
  10275. <para role="glossdeffirst">
  10276. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10277. Lists recipes you do not want the OpenEmbedded build system
  10278. to build.
  10279. This variable works in conjunction with the
  10280. <link linkend='ref-classes-blacklist'><filename>blacklist</filename></link>
  10281. class, which is inherited globally.
  10282. </para>
  10283. <para>
  10284. To prevent a recipe from being built, use the
  10285. <filename>PNBLACKLIST</filename> variable in your
  10286. <filename>local.conf</filename> file.
  10287. Here is an example that prevents
  10288. <filename>myrecipe</filename> from being built:
  10289. <literallayout class='monospaced'>
  10290. PNBLACKLIST[myrecipe] = "Not supported by our organization."
  10291. </literallayout>
  10292. </para>
  10293. </glossdef>
  10294. </glossentry>
  10295. <glossentry id='var-POPULATE_SDK_POST_HOST_COMMAND'><glossterm>POPULATE_SDK_POST_HOST_COMMAND</glossterm>
  10296. <info>
  10297. 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."
  10298. </info>
  10299. <glossdef>
  10300. <para role="glossdeffirst">
  10301. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10302. Specifies a list of functions to call once the
  10303. OpenEmbedded build system has created the host part of
  10304. the SDK.
  10305. You can specify functions separated by semicolons:
  10306. <literallayout class='monospaced'>
  10307. POPULATE_SDK_POST_HOST_COMMAND += "<replaceable>function</replaceable>; ... "
  10308. </literallayout>
  10309. </para>
  10310. <para>
  10311. If you need to pass the SDK path to a command
  10312. within a function, you can use
  10313. <filename>${SDK_DIR}</filename>, which points to
  10314. the parent directory used by the OpenEmbedded build
  10315. system when creating SDK output.
  10316. See the
  10317. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  10318. variable for more information.
  10319. </para>
  10320. </glossdef>
  10321. </glossentry>
  10322. <glossentry id='var-POPULATE_SDK_POST_TARGET_COMMAND'><glossterm>POPULATE_SDK_POST_TARGET_COMMAND</glossterm>
  10323. <info>
  10324. 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."
  10325. </info>
  10326. <glossdef>
  10327. <para role="glossdeffirst">
  10328. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10329. Specifies a list of functions to call once the
  10330. OpenEmbedded build system has created the target part of
  10331. the SDK.
  10332. You can specify functions separated by semicolons:
  10333. <literallayout class='monospaced'>
  10334. POPULATE_SDK_POST_TARGET_COMMAND += "<replaceable>function</replaceable>; ... "
  10335. </literallayout>
  10336. </para>
  10337. <para>
  10338. If you need to pass the SDK path to a command
  10339. within a function, you can use
  10340. <filename>${SDK_DIR}</filename>, which points to
  10341. the parent directory used by the OpenEmbedded build
  10342. system when creating SDK output.
  10343. See the
  10344. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  10345. variable for more information.
  10346. </para>
  10347. </glossdef>
  10348. </glossentry>
  10349. <glossentry id='var-PR'><glossterm>PR</glossterm>
  10350. <info>
  10351. PR[doc] = "The revision of the recipe. The default value for this variable is 'r0'."
  10352. </info>
  10353. <glossdef>
  10354. <para role="glossdeffirst">
  10355. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10356. The revision of the recipe. The default value for this
  10357. variable is "r0".
  10358. Subsequent revisions of the recipe conventionally have the
  10359. values "r1", "r2", and so forth.
  10360. When
  10361. <link linkend='var-PV'><filename>PV</filename></link>
  10362. increases, <filename>PR</filename> is conventionally reset
  10363. to "r0".
  10364. <note>
  10365. The OpenEmbedded build system does not need the aid of
  10366. <filename>PR</filename> to know when to rebuild a
  10367. recipe.
  10368. The build system uses the task
  10369. <ulink url='&YOCTO_DOCS_OM_URL;#overview-checksums'>input checksums</ulink>
  10370. along with the
  10371. <link linkend='structure-build-tmp-stamps'>stamp</link>
  10372. and
  10373. <ulink url='&YOCTO_DOCS_OM_URL;#shared-state-cache'>shared state cache</ulink>
  10374. mechanisms.
  10375. </note>
  10376. The <filename>PR</filename> variable primarily becomes
  10377. significant when a package manager dynamically installs
  10378. packages on an already built image.
  10379. In this case, <filename>PR</filename>, which is the default
  10380. value of
  10381. <link linkend='var-PKGR'><filename>PKGR</filename></link>,
  10382. helps the package manager distinguish which package is the
  10383. most recent one in cases where many packages have the same
  10384. <filename>PV</filename> (i.e. <filename>PKGV</filename>).
  10385. A component having many packages with the same
  10386. <filename>PV</filename> usually means that the packages all
  10387. install the same upstream version, but with later
  10388. (<filename>PR</filename>) version packages including
  10389. packaging fixes.
  10390. <note>
  10391. <filename>PR</filename> does not need to be increased
  10392. for changes that do not change the package contents or
  10393. metadata.
  10394. </note>
  10395. Because manually managing <filename>PR</filename> can be
  10396. cumbersome and error-prone, an automated solution exists.
  10397. See the
  10398. "<ulink url='&YOCTO_DOCS_DEV_URL;#working-with-a-pr-service'>Working With a PR Service</ulink>"
  10399. section in the Yocto Project Development Tasks Manual
  10400. for more information.
  10401. </para>
  10402. </glossdef>
  10403. </glossentry>
  10404. <glossentry id='var-PREFERRED_PROVIDER'><glossterm>PREFERRED_PROVIDER</glossterm>
  10405. <info>
  10406. PREFERRED_PROVIDER[doc] = "If multiple recipes provide an item, this variable determines which recipe should be given preference."
  10407. </info>
  10408. <glossdef>
  10409. <para role="glossdeffirst">
  10410. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10411. If multiple recipes provide the same item, this variable
  10412. determines which recipe is preferred and thus provides
  10413. the item (i.e. the preferred provider).
  10414. You should always suffix this variable with the name of the
  10415. provided item.
  10416. And, you should define the variable using the preferred
  10417. recipe's name
  10418. (<link linkend='var-PN'><filename>PN</filename></link>).
  10419. Here is a common example:
  10420. <literallayout class='monospaced'>
  10421. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  10422. </literallayout>
  10423. In the previous example, multiple recipes are providing
  10424. "virtual/kernel".
  10425. The <filename>PREFERRED_PROVIDER</filename> variable is
  10426. set with the name (<filename>PN</filename>) of the recipe
  10427. you prefer to provide "virtual/kernel".
  10428. </para>
  10429. <para>
  10430. Following are more examples:
  10431. <literallayout class='monospaced'>
  10432. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  10433. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  10434. </literallayout>
  10435. For more information, see the
  10436. "<ulink url='&YOCTO_DOCS_DEV_URL;#metadata-virtual-providers'>Using Virtual Providers</ulink>"
  10437. section in the Yocto Project Development Tasks Manual.
  10438. <note>
  10439. If you use a <filename>virtual/*</filename> item
  10440. with <filename>PREFERRED_PROVIDER</filename>, then any
  10441. recipe that
  10442. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  10443. that item but is not selected (defined) by
  10444. <filename>PREFERRED_PROVIDER</filename> is prevented
  10445. from building, which is usually desirable since this
  10446. mechanism is designed to select between mutually
  10447. exclusive alternative providers.
  10448. </note>
  10449. </para>
  10450. </glossdef>
  10451. </glossentry>
  10452. <glossentry id='var-PREFERRED_VERSION'><glossterm>PREFERRED_VERSION</glossterm>
  10453. <info>
  10454. PREFERRED_VERSION[doc] = "If there are multiple versions of recipes available, this variable determines which recipe should be given preference."
  10455. </info>
  10456. <glossdef>
  10457. <para role="glossdeffirst">
  10458. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10459. If multiple versions of recipes exist, this
  10460. variable determines which version is given preference.
  10461. You must always suffix the variable with the
  10462. <link linkend='var-PN'><filename>PN</filename></link>
  10463. you want to select, and you should set the
  10464. <link linkend='var-PV'><filename>PV</filename></link>
  10465. accordingly for precedence.
  10466. </para>
  10467. <para>
  10468. The <filename>PREFERRED_VERSION</filename> variable
  10469. supports limited wildcard use through the
  10470. "<filename>%</filename>" character.
  10471. You can use the character to match any number of
  10472. characters, which can be useful when specifying versions
  10473. that contain long revision numbers that potentially change.
  10474. Here are two examples:
  10475. <literallayout class='monospaced'>
  10476. PREFERRED_VERSION_python = "3.4.0"
  10477. PREFERRED_VERSION_linux-yocto = "4.12%"
  10478. </literallayout>
  10479. <note><title>Important</title>
  10480. The use of the "<filename>%</filename>" character
  10481. is limited in that it only works at the end of the
  10482. string.
  10483. You cannot use the wildcard character in any other
  10484. location of the string.
  10485. </note>
  10486. </para>
  10487. <para>
  10488. The specified version is matched against
  10489. <link linkend='var-PV'><filename>PV</filename></link>,
  10490. which does not necessarily match the version part of
  10491. the recipe's filename.
  10492. For example, consider two recipes
  10493. <filename>foo_1.2.bb</filename> and
  10494. <filename>foo_git.bb</filename> where
  10495. <filename>foo_git.bb</filename> contains the following
  10496. assignment:
  10497. <literallayout class='monospaced'>
  10498. PV = "1.1+git${SRCPV}"
  10499. </literallayout>
  10500. In this case, the correct way to select
  10501. <filename>foo_git.bb</filename> is by using an
  10502. assignment such as the following:
  10503. <literallayout class='monospaced'>
  10504. PREFERRED_VERSION_foo = "1.1+git%"
  10505. </literallayout>
  10506. Compare that previous example against the following
  10507. incorrect example, which does not work:
  10508. <literallayout class='monospaced'>
  10509. PREFERRED_VERSION_foo = "git"
  10510. </literallayout>
  10511. </para>
  10512. <para>
  10513. Sometimes the <filename>PREFERRED_VERSION</filename>
  10514. variable can be set by configuration files in a way that
  10515. is hard to change.
  10516. You can use
  10517. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>
  10518. to set a machine-specific override.
  10519. Here is an example:
  10520. <literallayout class='monospaced'>
  10521. PREFERRED_VERSION_linux-yocto_qemux86 = "4.12%"
  10522. </literallayout>
  10523. Although not recommended, worst case, you can also use the
  10524. "forcevariable" override, which is the strongest override
  10525. possible.
  10526. Here is an example:
  10527. <literallayout class='monospaced'>
  10528. PREFERRED_VERSION_linux-yocto_forcevariable = "4.12%"
  10529. </literallayout>
  10530. <note>
  10531. The <filename>_forcevariable</filename> override is
  10532. not handled specially.
  10533. This override only works because the default value of
  10534. <filename>OVERRIDES</filename> includes
  10535. "forcevariable".
  10536. </note>
  10537. </para>
  10538. </glossdef>
  10539. </glossentry>
  10540. <glossentry id='var-PREMIRRORS'><glossterm>PREMIRRORS</glossterm>
  10541. <info>
  10542. PREMIRRORS[doc] = "Specifies additional paths from which the OpenEmbedded build system gets source code."
  10543. </info>
  10544. <glossdef>
  10545. <para role="glossdeffirst">
  10546. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10547. Specifies additional paths from which the OpenEmbedded
  10548. build system gets source code.
  10549. When the build system searches for source code, it first
  10550. tries the local download directory.
  10551. If that location fails, the build system tries locations
  10552. defined by <filename>PREMIRRORS</filename>, the upstream
  10553. source, and then locations specified by
  10554. <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link>
  10555. in that order.
  10556. </para>
  10557. <para>
  10558. Assuming your distribution
  10559. (<link linkend='var-DISTRO'><filename>DISTRO</filename></link>)
  10560. is "poky", the default value for
  10561. <filename>PREMIRRORS</filename> is defined in the
  10562. <filename>conf/distro/poky.conf</filename> file in the
  10563. <filename>meta-poky</filename> Git repository.
  10564. </para>
  10565. <para>
  10566. Typically, you could add a specific server for the
  10567. build system to attempt before any others by adding
  10568. something like the following to the
  10569. <filename>local.conf</filename> configuration file in the
  10570. <link linkend='build-directory'>Build Directory</link>:
  10571. <literallayout class='monospaced'>
  10572. PREMIRRORS_prepend = "\
  10573. git://.*/.* http://www.yoctoproject.org/sources/ \n \
  10574. ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
  10575. http://.*/.* http://www.yoctoproject.org/sources/ \n \
  10576. https://.*/.* http://www.yoctoproject.org/sources/ \n"
  10577. </literallayout>
  10578. These changes cause the build system to intercept
  10579. Git, FTP, HTTP, and HTTPS requests and direct them to
  10580. the <filename>http://</filename> sources mirror.
  10581. You can use <filename>file://</filename> URLs to point
  10582. to local directories or network shares as well.
  10583. </para>
  10584. </glossdef>
  10585. </glossentry>
  10586. <glossentry id='var-PRIORITY'><glossterm>PRIORITY</glossterm>
  10587. <info>
  10588. PRIORITY[doc] = "Indicates the importance of a package. The default value is 'optional'. Other standard values are 'required', 'standard', and 'extra'."
  10589. </info>
  10590. <glossdef>
  10591. <para role="glossdeffirst">
  10592. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10593. Indicates the importance of a package.
  10594. </para>
  10595. <para>
  10596. <filename>PRIORITY</filename> is considered to be part of
  10597. the distribution policy because the importance of any given
  10598. recipe depends on the purpose for which the distribution
  10599. is being produced.
  10600. Thus, <filename>PRIORITY</filename> is not normally set
  10601. within recipes.
  10602. </para>
  10603. <para>
  10604. You can set <filename>PRIORITY</filename> to "required",
  10605. "standard", "extra", and "optional", which is the default.
  10606. </para>
  10607. </glossdef>
  10608. </glossentry>
  10609. <glossentry id='var-PRIVATE_LIBS'><glossterm>PRIVATE_LIBS</glossterm>
  10610. <info>
  10611. PRIVATE_LIBS[doc] = "Specifies libraries installed within a recipe that should be ignored by the OpenEmbedded build system's shared library resolver."
  10612. </info>
  10613. <glossdef>
  10614. <para role="glossdeffirst">
  10615. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10616. Specifies libraries installed within a recipe that
  10617. should be ignored by the OpenEmbedded build system's
  10618. shared library resolver.
  10619. This variable is typically used when software being
  10620. built by a recipe has its own private versions of a
  10621. library normally provided by another recipe.
  10622. In this case, you would not want the package containing
  10623. the private libraries to be set as a dependency on other
  10624. unrelated packages that should instead depend on the
  10625. package providing the standard version of the library.
  10626. </para>
  10627. <para>
  10628. Libraries specified in this variable should be specified
  10629. by their file name.
  10630. For example, from the Firefox recipe in meta-browser:
  10631. <literallayout class='monospaced'>
  10632. PRIVATE_LIBS = "libmozjs.so \
  10633. libxpcom.so \
  10634. libnspr4.so \
  10635. libxul.so \
  10636. libmozalloc.so \
  10637. libplc4.so \
  10638. libplds4.so"
  10639. </literallayout>
  10640. </para>
  10641. <para>
  10642. For more information, see the
  10643. "<ulink url='&YOCTO_DOCS_OM_URL;#automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</ulink>"
  10644. section in the Yocto Project Overview and Concepts Manual.
  10645. </para>
  10646. </glossdef>
  10647. </glossentry>
  10648. <glossentry id='var-PROVIDES'><glossterm>PROVIDES</glossterm>
  10649. <info>
  10650. 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."
  10651. </info>
  10652. <glossdef>
  10653. <para role="glossdeffirst">
  10654. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10655. A list of aliases by which a particular recipe can be
  10656. known.
  10657. By default, a recipe's own
  10658. <filename><link linkend='var-PN'>PN</link></filename>
  10659. is implicitly already in its <filename>PROVIDES</filename>
  10660. list.
  10661. If a recipe uses <filename>PROVIDES</filename>, the
  10662. additional aliases are synonyms for the recipe and can
  10663. be useful satisfying dependencies of other recipes during
  10664. the build as specified by
  10665. <filename><link linkend='var-DEPENDS'>DEPENDS</link></filename>.
  10666. </para>
  10667. <para>
  10668. Consider the following example
  10669. <filename>PROVIDES</filename> statement from a recipe
  10670. file <filename>libav_0.8.11.bb</filename>:
  10671. <literallayout class='monospaced'>
  10672. PROVIDES += "libpostproc"
  10673. </literallayout>
  10674. The <filename>PROVIDES</filename> statement results in
  10675. the "libav" recipe also being known as "libpostproc".
  10676. </para>
  10677. <para>
  10678. In addition to providing recipes under alternate names,
  10679. the <filename>PROVIDES</filename> mechanism is also used
  10680. to implement virtual targets.
  10681. A virtual target is a name that corresponds to some
  10682. particular functionality (e.g. a Linux kernel).
  10683. Recipes that provide the functionality in question list the
  10684. virtual target in <filename>PROVIDES</filename>.
  10685. Recipes that depend on the functionality in question can
  10686. include the virtual target in <filename>DEPENDS</filename>
  10687. to leave the choice of provider open.
  10688. </para>
  10689. <para>
  10690. Conventionally, virtual targets have names on the form
  10691. "virtual/function" (e.g. "virtual/kernel").
  10692. The slash is simply part of the name and has no
  10693. syntactical significance.
  10694. </para>
  10695. <para>
  10696. The
  10697. <link linkend='var-PREFERRED_PROVIDER'><filename>PREFERRED_PROVIDER</filename></link>
  10698. variable is used to select which particular recipe
  10699. provides a virtual target.
  10700. <note>
  10701. <para>A corresponding mechanism for virtual runtime
  10702. dependencies (packages) exists.
  10703. However, the mechanism does not depend on any special
  10704. functionality beyond ordinary variable assignments.
  10705. For example,
  10706. <filename>VIRTUAL-RUNTIME_dev_manager</filename>
  10707. refers to the package of the component that manages
  10708. the <filename>/dev</filename> directory.</para>
  10709. <para>Setting the "preferred provider" for runtime
  10710. dependencies is as simple as using the following
  10711. assignment in a configuration file:</para>
  10712. <literallayout class='monospaced'>
  10713. VIRTUAL-RUNTIME_dev_manager = "udev"
  10714. </literallayout>
  10715. </note>
  10716. </para>
  10717. </glossdef>
  10718. </glossentry>
  10719. <glossentry id='var-PRSERV_HOST'><glossterm>PRSERV_HOST</glossterm>
  10720. <info>
  10721. PRSERV_HOST[doc] = "The network based PR service host and port."
  10722. </info>
  10723. <glossdef>
  10724. <para role="glossdeffirst">
  10725. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10726. The network based
  10727. <link linkend='var-PR'><filename>PR</filename></link>
  10728. service host and port.
  10729. </para>
  10730. <para>
  10731. The <filename>conf/local.conf.sample.extended</filename>
  10732. configuration file in the
  10733. <link linkend='source-directory'>Source Directory</link>
  10734. shows how the <filename>PRSERV_HOST</filename> variable is
  10735. set:
  10736. <literallayout class='monospaced'>
  10737. PRSERV_HOST = "localhost:0"
  10738. </literallayout>
  10739. You must set the variable if you want to automatically
  10740. start a local
  10741. <ulink url='&YOCTO_DOCS_DEV_URL;#working-with-a-pr-service'>PR service</ulink>.
  10742. You can set <filename>PRSERV_HOST</filename> to other
  10743. values to use a remote PR service.
  10744. </para>
  10745. </glossdef>
  10746. </glossentry>
  10747. <glossentry id='var-PTEST_ENABLED'><glossterm>PTEST_ENABLED</glossterm>
  10748. <info>
  10749. PRSERV_HOST[doc] = "Specifies whether or not Package Test (ptest) functionality is enabled when building a recipe."
  10750. </info>
  10751. <glossdef>
  10752. <para role="glossdeffirst">
  10753. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10754. Specifies whether or not
  10755. <ulink url='&YOCTO_DOCS_DEV_URL;#testing-packages-with-ptest'>Package Test</ulink>
  10756. (ptest) functionality is enabled when building a recipe.
  10757. You should not set this variable directly.
  10758. Enabling and disabling building Package Tests
  10759. at build time should be done by adding "ptest" to (or
  10760. removing it from)
  10761. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>.
  10762. </para>
  10763. </glossdef>
  10764. </glossentry>
  10765. <glossentry id='var-PV'><glossterm>PV</glossterm>
  10766. <info>
  10767. PV[doc] = "The version of the recipe. The version is normally extracted from the recipe filename."
  10768. </info>
  10769. <glossdef>
  10770. <para role="glossdeffirst">
  10771. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10772. The version of the recipe.
  10773. The version is normally extracted from the recipe filename.
  10774. For example, if the recipe is named
  10775. <filename>expat_2.0.1.bb</filename>, then the default value
  10776. of <filename>PV</filename> will be "2.0.1".
  10777. <filename>PV</filename> is generally not overridden within
  10778. a recipe unless it is building an unstable (i.e.
  10779. development) version from a source code repository
  10780. (e.g. Git or Subversion).
  10781. </para>
  10782. <para>
  10783. <filename>PV</filename> is the default value of the
  10784. <link linkend='var-PKGV'><filename>PKGV</filename></link>
  10785. variable.
  10786. </para>
  10787. </glossdef>
  10788. </glossentry>
  10789. <glossentry id='var-PYTHON_ABI'><glossterm>PYTHON_ABI</glossterm>
  10790. <info>
  10791. 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."
  10792. </info>
  10793. <glossdef>
  10794. <para role="glossdeffirst">
  10795. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10796. When used by recipes that inherit the
  10797. <link linkend='ref-classes-distutils3'><filename>distutils3</filename></link>,
  10798. <link linkend='ref-classes-setuptools3'><filename>setuptools3</filename></link>,
  10799. <link linkend='ref-classes-distutils'><filename>distutils</filename></link>,
  10800. or
  10801. <link linkend='ref-classes-setuptools'><filename>setuptools</filename></link>
  10802. classes, denotes the Application Binary Interface (ABI)
  10803. currently in use for Python.
  10804. By default, the ABI is "m".
  10805. You do not have to set this variable as the OpenEmbedded
  10806. build system sets it for you.
  10807. </para>
  10808. <para>
  10809. The OpenEmbedded build system uses the ABI to construct
  10810. directory names used when installing the Python headers
  10811. and libraries in sysroot
  10812. (e.g. <filename>.../python3.3m/...</filename>).
  10813. </para>
  10814. <para>
  10815. Recipes that inherit the <filename>distutils</filename>
  10816. class during cross-builds also use this variable to
  10817. locate the headers and libraries of the appropriate Python
  10818. that the extension is targeting.
  10819. </para>
  10820. </glossdef>
  10821. </glossentry>
  10822. <glossentry id='var-PYTHON_PN'><glossterm>PYTHON_PN</glossterm>
  10823. <info>
  10824. PYTHON_PN[doc] = "When used by recipes that inherit the distutils3, setuptools3, distutils, or setuptools classes, specifies the major Python version being built."
  10825. </info>
  10826. <glossdef>
  10827. <para role="glossdeffirst">
  10828. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10829. When used by recipes that inherit the
  10830. <link linkend='ref-classes-distutils3'><filename>distutils3</filename></link>,
  10831. <link linkend='ref-classes-setuptools3'><filename>setuptools3</filename></link>,
  10832. <link linkend='ref-classes-distutils'><filename>distutils</filename></link>,
  10833. or
  10834. <link linkend='ref-classes-setuptools'><filename>setuptools</filename></link>
  10835. classes, specifies the major Python version being built.
  10836. For Python 2.x, <filename>PYTHON_PN</filename> would
  10837. be "python2". For Python 3.x, the variable would be
  10838. "python3".
  10839. You do not have to set this variable as the
  10840. OpenEmbedded build system automatically sets it for you.
  10841. </para>
  10842. <para>
  10843. The variable allows recipes to use common infrastructure
  10844. such as the following:
  10845. <literallayout class='monospaced'>
  10846. DEPENDS += "${PYTHON_PN}-native"
  10847. </literallayout>
  10848. In the previous example, the version of the dependency
  10849. is <filename>PYTHON_PN</filename>.
  10850. </para>
  10851. </glossdef>
  10852. </glossentry>
  10853. </glossdiv>
  10854. <glossdiv id='var-glossary-r'><title>R</title>
  10855. <glossentry id='var-RANLIB'><glossterm>RANLIB</glossterm>
  10856. <info>
  10857. RANLIB[doc] = "Minimal command and arguments to run 'ranlib'."
  10858. </info>
  10859. <glossdef>
  10860. <para role="glossdeffirst">
  10861. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10862. The minimal command and arguments to run
  10863. <filename>ranlib</filename>.
  10864. </para>
  10865. </glossdef>
  10866. </glossentry>
  10867. <glossentry id='var-RCONFLICTS'><glossterm>RCONFLICTS</glossterm>
  10868. <info>
  10869. 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."
  10870. </info>
  10871. <glossdef>
  10872. <para role="glossdeffirst">
  10873. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10874. The list of packages that conflict with packages.
  10875. Note that packages will not be installed if conflicting
  10876. packages are not first removed.
  10877. </para>
  10878. <para>
  10879. Like all package-controlling variables, you must always use
  10880. them in conjunction with a package name override.
  10881. Here is an example:
  10882. <literallayout class='monospaced'>
  10883. RCONFLICTS_${PN} = "<replaceable>another_conflicting_package_name</replaceable>"
  10884. </literallayout>
  10885. </para>
  10886. <para>
  10887. BitBake, which the OpenEmbedded build system uses, supports
  10888. specifying versioned dependencies.
  10889. Although the syntax varies depending on the packaging
  10890. format, BitBake hides these differences from you.
  10891. Here is the general syntax to specify versions with
  10892. the <filename>RCONFLICTS</filename> variable:
  10893. <literallayout class='monospaced'>
  10894. RCONFLICTS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  10895. </literallayout>
  10896. For <filename>operator</filename>, you can specify the
  10897. following:
  10898. <literallayout class='monospaced'>
  10899. =
  10900. &lt;
  10901. &gt;
  10902. &lt;=
  10903. &gt;=
  10904. </literallayout>
  10905. For example, the following sets up a dependency on version
  10906. 1.2 or greater of the package <filename>foo</filename>:
  10907. <literallayout class='monospaced'>
  10908. RCONFLICTS_${PN} = "foo (>= 1.2)"
  10909. </literallayout>
  10910. </para>
  10911. </glossdef>
  10912. </glossentry>
  10913. <glossentry id='var-RDEPENDS'><glossterm>RDEPENDS</glossterm>
  10914. <info>
  10915. RDEPENDS[doc] = "Lists runtime dependencies of a package."
  10916. </info>
  10917. <glossdef>
  10918. <para role="glossdeffirst">
  10919. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10920. Lists runtime dependencies of a package.
  10921. These dependencies are other packages that must be
  10922. installed in order for the package to function correctly.
  10923. As an example, the following assignment declares that the
  10924. package <filename>foo</filename> needs the packages
  10925. <filename>bar</filename> and <filename>baz</filename> to
  10926. be installed:
  10927. <literallayout class='monospaced'>
  10928. RDEPENDS_foo = "bar baz"
  10929. </literallayout>
  10930. The most common types of package runtime dependencies are
  10931. automatically detected and added.
  10932. Therefore, most recipes do not need to set
  10933. <filename>RDEPENDS</filename>.
  10934. For more information, see the
  10935. "<ulink url='&YOCTO_DOCS_OM_URL;#automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</ulink>"
  10936. section in the Yocto Project Overview and Concepts Manual.
  10937. </para>
  10938. <para>
  10939. The practical effect of the above
  10940. <filename>RDEPENDS</filename> assignment is that
  10941. <filename>bar</filename> and <filename>baz</filename>
  10942. will be declared as dependencies inside the package
  10943. <filename>foo</filename> when it is written out by one of
  10944. the
  10945. <link linkend='ref-tasks-package_write_deb'><filename>do_package_write_*</filename></link>
  10946. tasks.
  10947. Exactly how this is done depends on which package format
  10948. is used, which is determined by
  10949. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>.
  10950. When the corresponding package manager installs the
  10951. package, it will know to also install the packages on
  10952. which it depends.
  10953. </para>
  10954. <para>
  10955. To ensure that the packages <filename>bar</filename> and
  10956. <filename>baz</filename> get built, the previous
  10957. <filename>RDEPENDS</filename> assignment also causes a task
  10958. dependency to be added.
  10959. This dependency is from the recipe's
  10960. <link linkend='ref-tasks-build'><filename>do_build</filename></link>
  10961. (not to be confused with
  10962. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>)
  10963. task to the <filename>do_package_write_*</filename>
  10964. task of the recipes that build <filename>bar</filename> and
  10965. <filename>baz</filename>.
  10966. </para>
  10967. <para>
  10968. The names of the packages you list within
  10969. <filename>RDEPENDS</filename> must be the names of other
  10970. packages - they cannot be recipe names.
  10971. Although package names and recipe names usually match,
  10972. the important point here is that you are
  10973. providing package names within the
  10974. <filename>RDEPENDS</filename> variable.
  10975. For an example of the default list of packages created from
  10976. a recipe, see the
  10977. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  10978. variable.
  10979. </para>
  10980. <para>
  10981. Because the <filename>RDEPENDS</filename> variable applies
  10982. to packages being built, you should always use the variable
  10983. in a form with an attached package name (remember that a
  10984. single recipe can build multiple packages).
  10985. For example, suppose you are building a development package
  10986. that depends on the <filename>perl</filename> package.
  10987. In this case, you would use the following
  10988. <filename>RDEPENDS</filename> statement:
  10989. <literallayout class='monospaced'>
  10990. RDEPENDS_${PN}-dev += "perl"
  10991. </literallayout>
  10992. In the example, the development package depends on
  10993. the <filename>perl</filename> package.
  10994. Thus, the <filename>RDEPENDS</filename> variable has the
  10995. <filename>${PN}-dev</filename> package name as part of the
  10996. variable.
  10997. <note>
  10998. <title>Caution</title>
  10999. <filename>RDEPENDS_${PN}-dev</filename> includes
  11000. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>
  11001. by default.
  11002. This default is set in the BitBake configuration file
  11003. (<filename>meta/conf/bitbake.conf</filename>).
  11004. Be careful not to accidentally remove
  11005. <filename>${PN}</filename> when modifying
  11006. <filename>RDEPENDS_${PN}-dev</filename>.
  11007. Use the "+=" operator rather than the "=" operator.
  11008. </note>
  11009. </para>
  11010. <para>
  11011. The package names you use with
  11012. <filename>RDEPENDS</filename> must appear as they would in
  11013. the <filename>PACKAGES</filename> variable.
  11014. The
  11015. <link linkend='var-PKG'><filename>PKG</filename></link>
  11016. variable allows a different name to be used for
  11017. the final package (e.g. the
  11018. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  11019. class uses this to rename packages), but this final package
  11020. name cannot be used with <filename>RDEPENDS</filename>,
  11021. which makes sense as <filename>RDEPENDS</filename> is meant
  11022. to be independent of the package format used.
  11023. </para>
  11024. <para>
  11025. BitBake, which the OpenEmbedded build system uses, supports
  11026. specifying versioned dependencies.
  11027. Although the syntax varies depending on the packaging
  11028. format, BitBake hides these differences from you.
  11029. Here is the general syntax to specify versions with
  11030. the <filename>RDEPENDS</filename> variable:
  11031. <literallayout class='monospaced'>
  11032. RDEPENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  11033. </literallayout>
  11034. For <replaceable>operator</replaceable>, you can specify the
  11035. following:
  11036. <literallayout class='monospaced'>
  11037. =
  11038. &lt;
  11039. &gt;
  11040. &lt;=
  11041. &gt;=
  11042. </literallayout>
  11043. For <replaceable>version</replaceable>, provide the version
  11044. number.
  11045. <note><title>Tip</title>
  11046. You can use
  11047. <link linkend='var-EXTENDPKGV'><filename>EXTENDPKGV</filename></link>
  11048. to provide a full package version specification.
  11049. </note>
  11050. For example, the following sets up a dependency on version
  11051. 1.2 or greater of the package <filename>foo</filename>:
  11052. <literallayout class='monospaced'>
  11053. RDEPENDS_${PN} = "foo (>= 1.2)"
  11054. </literallayout>
  11055. </para>
  11056. <para>
  11057. For information on build-time dependencies, see the
  11058. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  11059. variable.
  11060. You can also see the
  11061. "<ulink url='&YOCTO_DOCS_BB_URL;#tasks'>Tasks</ulink>" and
  11062. "<ulink url='&YOCTO_DOCS_BB_URL;#dependencies'>Dependencies</ulink>"
  11063. sections in the BitBake User Manual for additional
  11064. information on tasks and dependencies.
  11065. </para>
  11066. </glossdef>
  11067. </glossentry>
  11068. <glossentry id='var-REQUIRED_DISTRO_FEATURES'><glossterm>REQUIRED_DISTRO_FEATURES</glossterm>
  11069. <info>
  11070. 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."
  11071. </info>
  11072. <glossdef>
  11073. <para role="glossdeffirst">
  11074. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11075. When inheriting the
  11076. <link linkend='ref-classes-distro_features_check'><filename>distro_features_check</filename></link>
  11077. class, this
  11078. variable identifies distribution features that must
  11079. exist in the current configuration in order for the
  11080. OpenEmbedded build system to build the recipe.
  11081. In other words, if the
  11082. <filename>REQUIRED_DISTRO_FEATURES</filename> variable
  11083. lists a feature that does not appear in
  11084. <filename>DISTRO_FEATURES</filename> within the
  11085. current configuration, an error occurs and the
  11086. build stops.
  11087. </para>
  11088. </glossdef>
  11089. </glossentry>
  11090. <glossentry id='var-RM_WORK_EXCLUDE'><glossterm>RM_WORK_EXCLUDE</glossterm>
  11091. <info>
  11092. RM_WORK_EXCLUDE[doc] = "With rm_work enabled, this variable specifies a list of packages whose work directories should not be removed."
  11093. </info>
  11094. <glossdef>
  11095. <para role="glossdeffirst">
  11096. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11097. With <filename>rm_work</filename> enabled, this
  11098. variable specifies a list of recipes whose work directories
  11099. should not be removed.
  11100. See the "<link linkend='ref-classes-rm-work'><filename>rm_work.bbclass</filename></link>"
  11101. section for more details.
  11102. </para>
  11103. </glossdef>
  11104. </glossentry>
  11105. <glossentry id='var-ROOT_HOME'><glossterm>ROOT_HOME</glossterm>
  11106. <info>
  11107. ROOT_HOME[doc] = "Defines the root home directory."
  11108. </info>
  11109. <glossdef>
  11110. <para role="glossdeffirst">
  11111. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11112. Defines the root home directory.
  11113. By default, this directory is set as follows in the
  11114. BitBake configuration file:
  11115. <literallayout class='monospaced'>
  11116. ROOT_HOME ??= "/home/root"
  11117. </literallayout>
  11118. <note>
  11119. This default value is likely used because some
  11120. embedded solutions prefer to have a read-only root
  11121. filesystem and prefer to keep writeable data in one
  11122. place.
  11123. </note>
  11124. </para>
  11125. <para>
  11126. You can override the default by setting the variable
  11127. in any layer or in the <filename>local.conf</filename> file.
  11128. Because the default is set using a "weak" assignment
  11129. (i.e. "??="), you can use either of the following forms
  11130. to define your override:
  11131. <literallayout class='monospaced'>
  11132. ROOT_HOME = "/root"
  11133. ROOT_HOME ?= "/root"
  11134. </literallayout>
  11135. These override examples use <filename>/root</filename>,
  11136. which is probably the most commonly used override.
  11137. </para>
  11138. </glossdef>
  11139. </glossentry>
  11140. <glossentry id='var-ROOTFS'><glossterm>ROOTFS</glossterm>
  11141. <info>
  11142. ROOTFS[doc] = "Indicates a filesystem image to include as the root filesystem."
  11143. </info>
  11144. <glossdef>
  11145. <para role="glossdeffirst">
  11146. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11147. Indicates a filesystem image to include as the root
  11148. filesystem.
  11149. </para>
  11150. <para>
  11151. The <filename>ROOTFS</filename> variable is an optional
  11152. variable used with the
  11153. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  11154. class.
  11155. </para>
  11156. </glossdef>
  11157. </glossentry>
  11158. <glossentry id='var-ROOTFS_POSTINSTALL_COMMAND'><glossterm>ROOTFS_POSTINSTALL_COMMAND</glossterm>
  11159. <info>
  11160. ROOTFS_POSTINSTALL_COMMAND[doc] = "Specifies a list of functions to call after installing packages."
  11161. </info>
  11162. <glossdef>
  11163. <para role="glossdeffirst">
  11164. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11165. Specifies a list of functions to call after the
  11166. OpenEmbedded build system has installed packages.
  11167. You can specify functions separated by semicolons:
  11168. <literallayout class='monospaced'>
  11169. ROOTFS_POSTINSTALL_COMMAND += "<replaceable>function</replaceable>; ... "
  11170. </literallayout>
  11171. </para>
  11172. <para>
  11173. If you need to pass the root filesystem path to a command
  11174. within a function, you can use
  11175. <filename>${IMAGE_ROOTFS}</filename>, which points to
  11176. the directory that becomes the root filesystem image.
  11177. See the
  11178. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  11179. variable for more information.
  11180. </para>
  11181. </glossdef>
  11182. </glossentry>
  11183. <glossentry id='var-ROOTFS_POSTPROCESS_COMMAND'><glossterm>ROOTFS_POSTPROCESS_COMMAND</glossterm>
  11184. <info>
  11185. ROOTFS_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system has created the root filesystem."
  11186. </info>
  11187. <glossdef>
  11188. <para role="glossdeffirst">
  11189. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11190. Specifies a list of functions to call once the
  11191. OpenEmbedded build system has created the root filesystem.
  11192. You can specify functions separated by semicolons:
  11193. <literallayout class='monospaced'>
  11194. ROOTFS_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  11195. </literallayout>
  11196. </para>
  11197. <para>
  11198. If you need to pass the root filesystem path to a command
  11199. within a function, you can use
  11200. <filename>${IMAGE_ROOTFS}</filename>, which points to
  11201. the directory that becomes the root filesystem image.
  11202. See the
  11203. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  11204. variable for more information.
  11205. </para>
  11206. </glossdef>
  11207. </glossentry>
  11208. <glossentry id='var-ROOTFS_POSTUNINSTALL_COMMAND'><glossterm>ROOTFS_POSTUNINSTALL_COMMAND</glossterm>
  11209. <info>
  11210. ROOTFS_POSTUNINSTALL_COMMAND[doc] = "Specifies a list of functions to call after removal of unneeded packages."
  11211. </info>
  11212. <glossdef>
  11213. <para role="glossdeffirst">
  11214. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11215. Specifies a list of functions to call after the
  11216. OpenEmbedded build system has removed unnecessary
  11217. packages.
  11218. When runtime package management is disabled in the
  11219. image, several packages are removed including
  11220. <filename>base-passwd</filename>,
  11221. <filename>shadow</filename>, and
  11222. <filename>update-alternatives</filename>.
  11223. You can specify functions separated by semicolons:
  11224. <literallayout class='monospaced'>
  11225. ROOTFS_POSTUNINSTALL_COMMAND += "<replaceable>function</replaceable>; ... "
  11226. </literallayout>
  11227. </para>
  11228. <para>
  11229. If you need to pass the root filesystem path to a command
  11230. within a function, you can use
  11231. <filename>${IMAGE_ROOTFS}</filename>, which points to
  11232. the directory that becomes the root filesystem image.
  11233. See the
  11234. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  11235. variable for more information.
  11236. </para>
  11237. </glossdef>
  11238. </glossentry>
  11239. <glossentry id='var-ROOTFS_PREPROCESS_COMMAND'><glossterm>ROOTFS_PREPROCESS_COMMAND</glossterm>
  11240. <info>
  11241. ROOTFS_PREPROCESS_COMMAND[doc] = "Specifies a list of functions to call before the OpenEmbedded build system has created the root filesystem."
  11242. </info>
  11243. <glossdef>
  11244. <para role="glossdeffirst">
  11245. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11246. Specifies a list of functions to call before the
  11247. OpenEmbedded build system has created the root filesystem.
  11248. You can specify functions separated by semicolons:
  11249. <literallayout class='monospaced'>
  11250. ROOTFS_PREPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  11251. </literallayout>
  11252. </para>
  11253. <para>
  11254. If you need to pass the root filesystem path to a command
  11255. within a function, you can use
  11256. <filename>${IMAGE_ROOTFS}</filename>, which points to
  11257. the directory that becomes the root filesystem image.
  11258. See the
  11259. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  11260. variable for more information.
  11261. </para>
  11262. </glossdef>
  11263. </glossentry>
  11264. <glossentry id='var-RPROVIDES'><glossterm>RPROVIDES</glossterm>
  11265. <info>
  11266. 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."
  11267. </info>
  11268. <glossdef>
  11269. <para role="glossdeffirst">
  11270. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11271. A list of package name aliases that a package also provides.
  11272. These aliases are useful for satisfying runtime dependencies
  11273. of other packages both during the build and on the target
  11274. (as specified by
  11275. <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename>).
  11276. <note>
  11277. A package's own name is implicitly already in its
  11278. <filename>RPROVIDES</filename> list.
  11279. </note>
  11280. </para>
  11281. <para>
  11282. As with all package-controlling variables, you must always
  11283. use the variable in conjunction with a package name override.
  11284. Here is an example:
  11285. <literallayout class='monospaced'>
  11286. RPROVIDES_${PN} = "widget-abi-2"
  11287. </literallayout>
  11288. </para>
  11289. </glossdef>
  11290. </glossentry>
  11291. <glossentry id='var-RRECOMMENDS'><glossterm>RRECOMMENDS</glossterm>
  11292. <info>
  11293. 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."
  11294. </info>
  11295. <glossdef>
  11296. <para role="glossdeffirst">
  11297. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11298. A list of packages that extends the usability of a package
  11299. being built.
  11300. The package being built does not depend on this list of
  11301. packages in order to successfully build, but rather
  11302. uses them for extended usability.
  11303. To specify runtime dependencies for packages, see the
  11304. <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename>
  11305. variable.
  11306. </para>
  11307. <para>
  11308. The package manager will automatically install the
  11309. <filename>RRECOMMENDS</filename> list of packages when
  11310. installing the built package.
  11311. However, you can prevent listed packages from being
  11312. installed by using the
  11313. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>,
  11314. <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link>,
  11315. and
  11316. <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link>
  11317. variables.
  11318. </para>
  11319. <para>
  11320. Packages specified in
  11321. <filename>RRECOMMENDS</filename> need not actually be
  11322. produced.
  11323. However, a recipe must exist that provides each package,
  11324. either through the
  11325. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  11326. or
  11327. <link linkend='var-PACKAGES_DYNAMIC'><filename>PACKAGES_DYNAMIC</filename></link>
  11328. variables or the
  11329. <link linkend='var-RPROVIDES'><filename>RPROVIDES</filename></link>
  11330. variable, or an error will occur during the build.
  11331. If such a recipe does exist and the package is not produced,
  11332. the build continues without error.
  11333. </para>
  11334. <para>
  11335. Because the <filename>RRECOMMENDS</filename> variable
  11336. applies to packages being built, you should always attach
  11337. an override to the variable to specify the particular
  11338. package whose usability is being extended.
  11339. For example, suppose you are building a development package
  11340. that is extended to support wireless functionality.
  11341. In this case, you would use the following:
  11342. <literallayout class='monospaced'>
  11343. RRECOMMENDS_${PN}-dev += "<replaceable>wireless_package_name</replaceable>"
  11344. </literallayout>
  11345. In the example, the package name
  11346. (<filename>${<link linkend='var-PN'>PN</link>}-dev</filename>)
  11347. must appear as it would in the
  11348. <filename>PACKAGES</filename> namespace before any renaming
  11349. of the output package by classes such as
  11350. <filename>debian.bbclass</filename>.
  11351. </para>
  11352. <para>
  11353. BitBake, which the OpenEmbedded build system uses, supports
  11354. specifying versioned recommends.
  11355. Although the syntax varies depending on the packaging
  11356. format, BitBake hides these differences from you.
  11357. Here is the general syntax to specify versions with
  11358. the <filename>RRECOMMENDS</filename> variable:
  11359. <literallayout class='monospaced'>
  11360. RRECOMMENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  11361. </literallayout>
  11362. For <filename>operator</filename>, you can specify the
  11363. following:
  11364. <literallayout class='monospaced'>
  11365. =
  11366. &lt;
  11367. &gt;
  11368. &lt;=
  11369. &gt;=
  11370. </literallayout>
  11371. For example, the following sets up a recommend on version
  11372. 1.2 or greater of the package <filename>foo</filename>:
  11373. <literallayout class='monospaced'>
  11374. RRECOMMENDS_${PN} = "foo (>= 1.2)"
  11375. </literallayout>
  11376. </para>
  11377. </glossdef>
  11378. </glossentry>
  11379. <glossentry id='var-RREPLACES'><glossterm>RREPLACES</glossterm>
  11380. <info>
  11381. 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."
  11382. </info>
  11383. <glossdef>
  11384. <para role="glossdeffirst">
  11385. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11386. A list of packages replaced by a package.
  11387. The package manager uses this variable to determine which
  11388. package should be installed to replace other package(s)
  11389. during an upgrade.
  11390. In order to also have the other package(s) removed at the
  11391. same time, you must add the name of the other
  11392. package to the
  11393. <filename><link linkend='var-RCONFLICTS'>RCONFLICTS</link></filename> variable.
  11394. </para>
  11395. <para>
  11396. As with all package-controlling variables, you must use
  11397. this variable in conjunction with a package name
  11398. override.
  11399. Here is an example:
  11400. <literallayout class='monospaced'>
  11401. RREPLACES_${PN} = "<replaceable>other_package_being_replaced</replaceable>"
  11402. </literallayout>
  11403. </para>
  11404. <para>
  11405. BitBake, which the OpenEmbedded build system uses, supports
  11406. specifying versioned replacements.
  11407. Although the syntax varies depending on the packaging
  11408. format, BitBake hides these differences from you.
  11409. Here is the general syntax to specify versions with
  11410. the <filename>RREPLACES</filename> variable:
  11411. <literallayout class='monospaced'>
  11412. RREPLACES_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  11413. </literallayout>
  11414. For <filename>operator</filename>, you can specify the
  11415. following:
  11416. <literallayout class='monospaced'>
  11417. =
  11418. &lt;
  11419. &gt;
  11420. &lt;=
  11421. &gt;=
  11422. </literallayout>
  11423. For example, the following sets up a replacement using
  11424. version 1.2 or greater of the package
  11425. <filename>foo</filename>:
  11426. <literallayout class='monospaced'>
  11427. RREPLACES_${PN} = "foo (>= 1.2)"
  11428. </literallayout>
  11429. </para>
  11430. </glossdef>
  11431. </glossentry>
  11432. <glossentry id='var-RSUGGESTS'><glossterm>RSUGGESTS</glossterm>
  11433. <info>
  11434. 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."
  11435. </info>
  11436. <glossdef>
  11437. <para role="glossdeffirst">
  11438. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11439. A list of additional packages that you can suggest for
  11440. installation by the package manager at the time a package
  11441. is installed.
  11442. Not all package managers support this functionality.
  11443. </para>
  11444. <para>
  11445. As with all package-controlling variables, you must always
  11446. use this variable in conjunction with a package name
  11447. override.
  11448. Here is an example:
  11449. <literallayout class='monospaced'>
  11450. RSUGGESTS_${PN} = "<replaceable>useful_package</replaceable> <replaceable>another_package</replaceable>"
  11451. </literallayout>
  11452. </para>
  11453. </glossdef>
  11454. </glossentry>
  11455. </glossdiv>
  11456. <glossdiv id='var-glossary-s'><title>S</title>
  11457. <glossentry id='var-S'><glossterm>S</glossterm>
  11458. <info>
  11459. S[doc] = "The location in the Build Directory where unpacked package source code resides."
  11460. </info>
  11461. <glossdef>
  11462. <para role="glossdeffirst">
  11463. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11464. The location in the
  11465. <link linkend='build-directory'>Build Directory</link>
  11466. where unpacked recipe source code resides.
  11467. By default, this directory is
  11468. <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>,
  11469. where <filename>${BPN}</filename> is the base recipe name
  11470. and <filename>${PV}</filename> is the recipe version.
  11471. If the source tarball extracts the code to a directory
  11472. named anything other than <filename>${BPN}-${PV}</filename>,
  11473. or if the source code is fetched from an SCM such as
  11474. Git or Subversion, then you must set <filename>S</filename>
  11475. in the recipe so that the OpenEmbedded build system
  11476. knows where to find the unpacked source.
  11477. </para>
  11478. <para>
  11479. As an example, assume a
  11480. <link linkend='source-directory'>Source Directory</link>
  11481. top-level folder named <filename>poky</filename> and a
  11482. default Build Directory at <filename>poky/build</filename>.
  11483. In this case, the work directory the build system uses
  11484. to keep the unpacked recipe for <filename>db</filename>
  11485. is the following:
  11486. <literallayout class='monospaced'>
  11487. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  11488. </literallayout>
  11489. The unpacked source code resides in the
  11490. <filename>db-5.1.19</filename> folder.
  11491. </para>
  11492. <para>
  11493. This next example assumes a Git repository.
  11494. By default, Git repositories are cloned to
  11495. <filename>${WORKDIR}/git</filename> during
  11496. <link linkend='ref-tasks-fetch'><filename>do_fetch</filename></link>.
  11497. Since this path is different from the default value of
  11498. <filename>S</filename>, you must set it specifically
  11499. so the source can be located:
  11500. <literallayout class='monospaced'>
  11501. SRC_URI = "git://path/to/repo.git"
  11502. S = "${WORKDIR}/git"
  11503. </literallayout>
  11504. </para>
  11505. </glossdef>
  11506. </glossentry>
  11507. <glossentry id='var-SANITY_REQUIRED_UTILITIES'><glossterm>SANITY_REQUIRED_UTILITIES</glossterm>
  11508. <info>
  11509. 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."
  11510. </info>
  11511. <glossdef>
  11512. <para role="glossdeffirst">
  11513. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11514. Specifies a list of command-line utilities that should be
  11515. checked for during the initial sanity checking process when
  11516. running BitBake.
  11517. If any of the utilities are not installed on the build host,
  11518. then BitBake immediately exits with an error.
  11519. </para>
  11520. </glossdef>
  11521. </glossentry>
  11522. <glossentry id='var-SANITY_TESTED_DISTROS'><glossterm>SANITY_TESTED_DISTROS</glossterm>
  11523. <info>
  11524. SANITY_TESTED_DISTROS[doc] = "A list of the host distribution identifiers that the build system has been tested against."
  11525. </info>
  11526. <glossdef>
  11527. <para role="glossdeffirst">
  11528. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11529. A list of the host distribution identifiers that the
  11530. build system has been tested against.
  11531. Identifiers consist of the host distributor ID
  11532. followed by the release,
  11533. as reported by the <filename>lsb_release</filename> tool
  11534. or as read from <filename>/etc/lsb-release</filename>.
  11535. Separate the list items with explicit newline
  11536. characters (<filename>\n</filename>).
  11537. If <filename>SANITY_TESTED_DISTROS</filename> is not empty
  11538. and the current value of
  11539. <link linkend='var-NATIVELSBSTRING'><filename>NATIVELSBSTRING</filename></link>
  11540. does not appear in the list, then the build system reports
  11541. a warning that indicates the current host distribution has
  11542. not been tested as a build host.
  11543. </para>
  11544. </glossdef>
  11545. </glossentry>
  11546. <glossentry id='var-SDK_ARCH'><glossterm>SDK_ARCH</glossterm>
  11547. <info>
  11548. SDK_ARCH[doc] = "The target architecture for the SDK."
  11549. </info>
  11550. <glossdef>
  11551. <para role="glossdeffirst">
  11552. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11553. The target architecture for the SDK.
  11554. Typically, you do not directly set this variable.
  11555. Instead, use
  11556. <link linkend='var-SDKMACHINE'><filename>SDKMACHINE</filename></link>.
  11557. </para>
  11558. </glossdef>
  11559. </glossentry>
  11560. <glossentry id='var-SDK_DEPLOY'><glossterm>SDK_DEPLOY</glossterm>
  11561. <info>
  11562. SDK_DEPLOY[doc] = "The directory set up and used by the populate_sdk_base to which the SDK is deployed."
  11563. </info>
  11564. <glossdef>
  11565. <para role="glossdeffirst">
  11566. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11567. The directory set up and used by the
  11568. <link linkend='ref-classes-populate-sdk'><filename>populate_sdk_base</filename></link>
  11569. class to which the SDK is deployed.
  11570. The <filename>populate_sdk_base</filename> class defines
  11571. <filename>SDK_DEPLOY</filename> as follows:
  11572. <literallayout class='monospaced'>
  11573. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  11574. </literallayout>
  11575. </para>
  11576. </glossdef>
  11577. </glossentry>
  11578. <glossentry id='var-SDK_DIR'><glossterm>SDK_DIR</glossterm>
  11579. <info>
  11580. SDK_DIR[doc] = "The parent directory used by the OpenEmbedded build system when creating SDK output."
  11581. </info>
  11582. <glossdef>
  11583. <para role="glossdeffirst">
  11584. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11585. The parent directory used by the OpenEmbedded build system
  11586. when creating SDK output.
  11587. The
  11588. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11589. class defines the variable as follows:
  11590. <literallayout class='monospaced'>
  11591. SDK_DIR = "${WORKDIR}/sdk"
  11592. </literallayout>
  11593. <note>
  11594. The <filename>SDK_DIR</filename> directory is a
  11595. temporary directory as it is part of
  11596. <filename>WORKDIR</filename>.
  11597. The final output directory is
  11598. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>.
  11599. </note>
  11600. </para>
  11601. </glossdef>
  11602. </glossentry>
  11603. <glossentry id='var-SDK_EXT_TYPE'><glossterm>SDK_EXT_TYPE</glossterm>
  11604. <info>
  11605. SDK_EXT_TYPE[doc] = "Controls whether or not shared state artifacts are copied into the extensible SDK."
  11606. </info>
  11607. <glossdef>
  11608. <para role="glossdeffirst">
  11609. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11610. Controls whether or not shared state artifacts are copied
  11611. into the extensible SDK.
  11612. The default value of "full" copies all of the required
  11613. shared state artifacts into the extensible SDK.
  11614. The value "minimal" leaves these artifacts out of the
  11615. SDK.
  11616. <note>
  11617. If you set the variable to "minimal", you need to
  11618. ensure
  11619. <link linkend='var-SSTATE_MIRRORS'><filename>SSTATE_MIRRORS</filename></link>
  11620. is set in the SDK's configuration to enable the
  11621. artifacts to be fetched as needed.
  11622. </note>
  11623. </para>
  11624. </glossdef>
  11625. </glossentry>
  11626. <glossentry id='var-SDK_HOST_MANIFEST'><glossterm>SDK_HOST_MANIFEST</glossterm>
  11627. <info>
  11628. 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."
  11629. </info>
  11630. <glossdef>
  11631. <para role="glossdeffirst">
  11632. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11633. The manifest file for the host part of the SDK.
  11634. This file lists all the installed packages that make up
  11635. the host part of the SDK.
  11636. The file contains package information on a line-per-package
  11637. basis as follows:
  11638. <literallayout class='monospaced'>
  11639. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  11640. </literallayout>
  11641. </para>
  11642. <para>
  11643. The
  11644. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11645. class defines the manifest file as follows:
  11646. <literallayout class='monospaced'>
  11647. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  11648. </literallayout>
  11649. The location is derived using the
  11650. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>
  11651. and
  11652. <link linkend='var-TOOLCHAIN_OUTPUTNAME'><filename>TOOLCHAIN_OUTPUTNAME</filename></link>
  11653. variables.
  11654. </para>
  11655. </glossdef>
  11656. </glossentry>
  11657. <glossentry id='var-SDK_INCLUDE_PKGDATA'><glossterm>SDK_INCLUDE_PKGDATA</glossterm>
  11658. <info>
  11659. SDK_INCLUDE_PKGDATA[doc] = "When set to "1", specifies to include the packagedata for all recipes in the "world" target in the extensible SDK."
  11660. </info>
  11661. <glossdef>
  11662. <para role="glossdeffirst">
  11663. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11664. When set to "1", specifies to include the packagedata for
  11665. all recipes in the "world" target in the extensible SDK.
  11666. Including this data allows the
  11667. <filename>devtool search</filename> command to find these
  11668. recipes in search results, as well as allows the
  11669. <filename>devtool add</filename> command to map
  11670. dependencies more effectively.
  11671. <note>
  11672. Enabling the <filename>SDK_INCLUDE_PKGDATA</filename>
  11673. variable significantly increases build time because
  11674. all of world needs to be built.
  11675. Enabling the variable also slightly increases the size
  11676. of the extensible SDK.
  11677. </note>
  11678. </para>
  11679. </glossdef>
  11680. </glossentry>
  11681. <glossentry id='var-SDK_INCLUDE_TOOLCHAIN'><glossterm>SDK_INCLUDE_TOOLCHAIN</glossterm>
  11682. <info>
  11683. SDK_INCLUDE_TOOLCHAIN[doc] = "When set to "1", specifies to include the toolchain in the extensible SDK."
  11684. </info>
  11685. <glossdef>
  11686. <para role="glossdeffirst">
  11687. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11688. When set to "1", specifies to include the toolchain in the
  11689. extensible SDK.
  11690. Including the toolchain is useful particularly when
  11691. <link linkend='var-SDK_EXT_TYPE'><filename>SDK_EXT_TYPE</filename></link>
  11692. is set to "minimal" to keep the SDK reasonably small
  11693. but you still want to provide a usable toolchain.
  11694. For example, suppose you want to use the toolchain from an
  11695. IDE (e.g. Eclipse) or from other tools and you do not
  11696. want to perform additional steps to install the toolchain.
  11697. </para>
  11698. <para>
  11699. The <filename>SDK_INCLUDE_TOOLCHAIN</filename> variable
  11700. defaults to "0" if <filename>SDK_EXT_TYPE</filename>
  11701. is set to "minimal", and defaults to "1" if
  11702. <filename>SDK_EXT_TYPE</filename> is set to "full".
  11703. </para>
  11704. </glossdef>
  11705. </glossentry>
  11706. <glossentry id='var-SDK_INHERIT_BLACKLIST'><glossterm>SDK_INHERIT_BLACKLIST</glossterm>
  11707. <info>
  11708. SDK_INHERIT_BLACKLIST[doc] = "A list of classes to remove from the INHERIT value globally within the extensible SDK configuration."
  11709. </info>
  11710. <glossdef>
  11711. <para role="glossdeffirst">
  11712. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11713. A list of classes to remove from the
  11714. <link linkend='var-INHERIT'><filename>INHERIT</filename></link>
  11715. value globally within the extensible SDK configuration.
  11716. The
  11717. <link linkend='ref-classes-populate-sdk-*'><filename>populate-sdk-ext</filename></link>
  11718. class sets the default value:
  11719. <literallayout class='monospaced'>
  11720. SDK_INHERIT_BLACKLIST ?= "buildhistory icecc"
  11721. </literallayout>
  11722. </para>
  11723. <para>
  11724. Some classes are not generally applicable within
  11725. the extensible SDK context.
  11726. You can use this variable to disable those classes.
  11727. </para>
  11728. <para>
  11729. For additional information on how to customize the
  11730. extensible SDK's configuration, see the
  11731. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-configuring-the-extensible-sdk'>Configuring the Extensible SDK</ulink>"
  11732. section in the Yocto Project Application Development and
  11733. the Extensible Software Development Kit (eSDK) manual.
  11734. </para>
  11735. </glossdef>
  11736. </glossentry>
  11737. <glossentry id='var-SDK_LOCAL_CONF_BLACKLIST'><glossterm>SDK_LOCAL_CONF_BLACKLIST</glossterm>
  11738. <info>
  11739. SDK_LOCAL_CONF_BLACKLIST[doc] = "A list of variables not allowed through from the build system configuration into the extensible SDK configuration."
  11740. </info>
  11741. <glossdef>
  11742. <para role="glossdeffirst">
  11743. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11744. A list of variables not allowed through from the
  11745. OpenEmbedded build system configuration into the extensible
  11746. SDK configuration.
  11747. Usually, these are variables that are specific to the
  11748. machine on which the build system is running and thus
  11749. would be potentially problematic within the extensible SDK.
  11750. </para>
  11751. <para>By default,
  11752. <filename>SDK_LOCAL_CONF_BLACKLIST</filename> is set in the
  11753. <link linkend='ref-classes-populate-sdk-*'><filename>populate-sdk-ext</filename></link>
  11754. class and excludes the following variables:
  11755. <literallayout class='monospaced'>
  11756. <link linkend='var-CONF_VERSION'>CONF_VERSION</link>
  11757. <link linkend='var-BB_NUMBER_THREADS'>BB_NUMBER_THREADS</link>
  11758. <ulink url='&YOCTO_DOCS_BB_URL;#var-BB_NUMBER_PARSE_THREADS'>BB_NUMBER_PARSE_THREADS</ulink>
  11759. <link linkend='var-PARALLEL_MAKE'>PARALLEL_MAKE</link>
  11760. <link linkend='var-PRSERV_HOST'>PRSERV_HOST</link>
  11761. <link linkend='var-SSTATE_MIRRORS'>SSTATE_MIRRORS</link>
  11762. <link linkend='var-DL_DIR'>DL_DIR</link>
  11763. <link linkend='var-SSTATE_DIR'>SSTATE_DIR</link>
  11764. <link linkend='var-TMPDIR'>TMPDIR</link>
  11765. <link linkend='var-BB_SERVER_TIMEOUT'>BB_SERVER_TIMEOUT</link>
  11766. </literallayout>
  11767. </para>
  11768. <para>
  11769. For additional information on how to customize the
  11770. extensible SDK's configuration, see the
  11771. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-configuring-the-extensible-sdk'>Configuring the Extensible SDK</ulink>"
  11772. section in the Yocto Project Application Development and
  11773. the Extensible Software Development Kit (eSDK) manual.
  11774. </para>
  11775. </glossdef>
  11776. </glossentry>
  11777. <glossentry id='var-SDK_LOCAL_CONF_WHITELIST'><glossterm>SDK_LOCAL_CONF_WHITELIST</glossterm>
  11778. <info>
  11779. SDK_LOCAL_CONF_WHITELIST[doc] = "A list of variables allowed through from the build system configuration into the extensible SDK configuration."
  11780. </info>
  11781. <glossdef>
  11782. <para role="glossdeffirst">
  11783. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11784. A list of variables allowed through from the OpenEmbedded
  11785. build system configuration into the extensible SDK
  11786. configuration.
  11787. By default, the list of variables is empty and is set in
  11788. the
  11789. <link linkend='ref-classes-populate-sdk-*'><filename>populate-sdk-ext</filename></link>
  11790. class.
  11791. </para>
  11792. <para>
  11793. This list overrides the variables specified using the
  11794. <link linkend='var-SDK_LOCAL_CONF_BLACKLIST'><filename>SDK_LOCAL_CONF_BLACKLIST</filename></link>
  11795. variable as well as any variables identified by automatic
  11796. blacklisting due to the "/" character being found at the
  11797. start of the value, which is usually indicative of being a
  11798. path and thus might not be valid on the system where the
  11799. SDK is installed.
  11800. </para>
  11801. <para>
  11802. For additional information on how to customize the
  11803. extensible SDK's configuration, see the
  11804. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-configuring-the-extensible-sdk'>Configuring the Extensible SDK</ulink>"
  11805. section in the Yocto Project Application Development and
  11806. the Extensible Software Development Kit (eSDK) manual.
  11807. </para>
  11808. </glossdef>
  11809. </glossentry>
  11810. <glossentry id='var-SDK_NAME'><glossterm>SDK_NAME</glossterm>
  11811. <info>
  11812. SDK_NAME[doc] = "The base name for SDK output files."
  11813. </info>
  11814. <glossdef>
  11815. <para role="glossdeffirst">
  11816. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11817. The base name for SDK output files.
  11818. The name is derived from the
  11819. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>,
  11820. <link linkend='var-TCLIBC'><filename>TCLIBC</filename></link>,
  11821. <link linkend='var-SDK_ARCH'><filename>SDK_ARCH</filename></link>,
  11822. <link linkend='var-IMAGE_BASENAME'><filename>IMAGE_BASENAME</filename></link>,
  11823. and
  11824. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>
  11825. variables:
  11826. <literallayout class='monospaced'>
  11827. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"
  11828. </literallayout>
  11829. </para>
  11830. </glossdef>
  11831. </glossentry>
  11832. <glossentry id='var-SDK_OS'><glossterm>SDK_OS</glossterm>
  11833. <info>
  11834. SDK_OS[doc] = "The operating system for which the SDK will be built."
  11835. </info>
  11836. <glossdef>
  11837. <para role="glossdeffirst">
  11838. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11839. Specifies the operating system for which the SDK
  11840. will be built.
  11841. The default value is the value of
  11842. <link linkend='var-BUILD_OS'><filename>BUILD_OS</filename></link>.
  11843. </para>
  11844. </glossdef>
  11845. </glossentry>
  11846. <glossentry id='var-SDK_OUTPUT'><glossterm>SDK_OUTPUT</glossterm>
  11847. <info>
  11848. SDK_OUTPUT[doc] = "The location used by the OpenEmbedded build system when creating SDK output."
  11849. </info>
  11850. <glossdef>
  11851. <para role="glossdeffirst">
  11852. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11853. The location used by the OpenEmbedded build system when
  11854. creating SDK output.
  11855. The
  11856. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11857. class defines the variable as follows:
  11858. <literallayout class='monospaced'>
  11859. SDK_DIR = "${WORKDIR}/sdk"
  11860. SDK_OUTPUT = "${SDK_DIR}/image"
  11861. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  11862. </literallayout>
  11863. <note>
  11864. The <filename>SDK_OUTPUT</filename> directory is a
  11865. temporary directory as it is part of
  11866. <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  11867. by way of
  11868. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>.
  11869. The final output directory is
  11870. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>.
  11871. </note>
  11872. </para>
  11873. </glossdef>
  11874. </glossentry>
  11875. <glossentry id='var-SDK_PACKAGE_ARCHS'><glossterm>SDK_PACKAGE_ARCHS</glossterm>
  11876. <info>
  11877. 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."
  11878. </info>
  11879. <glossdef>
  11880. <para role="glossdeffirst">
  11881. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11882. Specifies a list of architectures compatible with
  11883. the SDK machine.
  11884. This variable is set automatically and should not
  11885. normally be hand-edited.
  11886. Entries are separated using spaces and listed in order
  11887. of priority.
  11888. The default value for
  11889. <filename>SDK_PACKAGE_ARCHS</filename> is "all any noarch
  11890. ${SDK_ARCH}-${SDKPKGSUFFIX}".
  11891. </para>
  11892. </glossdef>
  11893. </glossentry>
  11894. <glossentry id='var-SDK_POSTPROCESS_COMMAND'><glossterm>SDK_POSTPROCESS_COMMAND</glossterm>
  11895. <info>
  11896. SDK_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system creates the SDK."
  11897. </info>
  11898. <glossdef>
  11899. <para role="glossdeffirst">
  11900. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11901. Specifies a list of functions to call once the
  11902. OpenEmbedded build system creates the SDK.
  11903. You can specify functions separated by semicolons:
  11904. <literallayout class='monospaced'>
  11905. SDK_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  11906. </literallayout>
  11907. </para>
  11908. <para>
  11909. If you need to pass an SDK path to a command within a
  11910. function, you can use
  11911. <filename>${SDK_DIR}</filename>, which points to
  11912. the parent directory used by the OpenEmbedded build system
  11913. when creating SDK output.
  11914. See the
  11915. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  11916. variable for more information.
  11917. </para>
  11918. </glossdef>
  11919. </glossentry>
  11920. <glossentry id='var-SDK_PREFIX'><glossterm>SDK_PREFIX</glossterm>
  11921. <info>
  11922. SDK_PREFIX[doc] = "The toolchain binary prefix used for nativesdk recipes."
  11923. </info>
  11924. <glossdef>
  11925. <para role="glossdeffirst">
  11926. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11927. The toolchain binary prefix used for
  11928. <filename>nativesdk</filename> recipes.
  11929. The OpenEmbedded build system uses the
  11930. <filename>SDK_PREFIX</filename> value to set the
  11931. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  11932. when building <filename>nativesdk</filename> recipes.
  11933. The default value is "${SDK_SYS}-".
  11934. </para>
  11935. </glossdef>
  11936. </glossentry>
  11937. <glossentry id='var-SDK_RECRDEP_TASKS'><glossterm>SDK_RECRDEP_TASKS</glossterm>
  11938. <info>
  11939. SDK_RECRDEP_TASKS[doc] = "A list of shared state tasks added to the extensible SDK."
  11940. </info>
  11941. <glossdef>
  11942. <para role="glossdeffirst">
  11943. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11944. A list of shared state tasks added to the extensible SDK.
  11945. By default, the following tasks are added:
  11946. <literallayout class='monospaced'>
  11947. do_populate_lic
  11948. do_package_qa
  11949. do_populate_sysroot
  11950. do_deploy
  11951. </literallayout>
  11952. Despite the default value of "" for the
  11953. <filename>SDK_RECRDEP_TASKS</filename> variable, the
  11954. above four tasks are always added to the SDK.
  11955. To specify tasks beyond these four, you need to use
  11956. the <filename>SDK_RECRDEP_TASKS</filename> variable (e.g.
  11957. you are defining additional tasks that are needed in
  11958. order to build
  11959. <link linkend='var-SDK_TARGETS'><filename>SDK_TARGETS</filename></link>).
  11960. </para>
  11961. </glossdef>
  11962. </glossentry>
  11963. <glossentry id='var-SDK_SYS'><glossterm>SDK_SYS</glossterm>
  11964. <info>
  11965. SDK_SYS[doc] = "Specifies the system, including the architecture and the operating system, for which the SDK will be built."
  11966. </info>
  11967. <glossdef>
  11968. <para role="glossdeffirst">
  11969. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11970. Specifies the system, including the architecture and the
  11971. operating system, for which the SDK will be built.
  11972. </para>
  11973. <para>
  11974. The OpenEmbedded build system automatically sets this
  11975. variable based on
  11976. <link linkend='var-SDK_ARCH'><filename>SDK_ARCH</filename></link>,
  11977. <link linkend='var-SDK_VENDOR'><filename>SDK_VENDOR</filename></link>,
  11978. and
  11979. <link linkend='var-SDK_OS'><filename>SDK_OS</filename></link>.
  11980. You do not need to set the <filename>SDK_SYS</filename>
  11981. variable yourself.
  11982. </para>
  11983. </glossdef>
  11984. </glossentry>
  11985. <glossentry id='var-SDK_TARGET_MANIFEST'><glossterm>SDK_TARGET_MANIFEST</glossterm>
  11986. <info>
  11987. 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."
  11988. </info>
  11989. <glossdef>
  11990. <para role="glossdeffirst">
  11991. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11992. The manifest file for the target part of the SDK.
  11993. This file lists all the installed packages that make up
  11994. the target part of the SDK.
  11995. The file contains package information on a line-per-package
  11996. basis as follows:
  11997. <literallayout class='monospaced'>
  11998. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  11999. </literallayout>
  12000. </para>
  12001. <para>
  12002. The
  12003. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  12004. class defines the manifest file as follows:
  12005. <literallayout class='monospaced'>
  12006. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  12007. </literallayout>
  12008. The location is derived using the
  12009. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>
  12010. and
  12011. <link linkend='var-TOOLCHAIN_OUTPUTNAME'><filename>TOOLCHAIN_OUTPUTNAME</filename></link>
  12012. variables.
  12013. </para>
  12014. </glossdef>
  12015. </glossentry>
  12016. <glossentry id='var-SDK_TARGETS'><glossterm>SDK_TARGETS</glossterm>
  12017. <info>
  12018. SDK_TARGETS[doc] = "A list of targets to install from shared state as part of the standard or extensible SDK installation."
  12019. </info>
  12020. <glossdef>
  12021. <para role="glossdeffirst">
  12022. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12023. A list of targets to install from shared state as part of
  12024. the standard or extensible SDK installation.
  12025. The default value is "${PN}" (i.e. the image from which
  12026. the SDK is built).
  12027. </para>
  12028. <para>
  12029. The <filename>SDK_TARGETS</filename> variable is an
  12030. internal variable and typically would not be changed.
  12031. </para>
  12032. </glossdef>
  12033. </glossentry>
  12034. <glossentry id='var-SDK_TITLE'><glossterm>SDK_TITLE</glossterm>
  12035. <info>
  12036. SDK_TITLE[doc] = "The title to be printed when running the SDK installer."
  12037. </info>
  12038. <glossdef>
  12039. <para role="glossdeffirst">
  12040. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12041. The title to be printed when running the SDK installer.
  12042. By default, this title is based on the
  12043. <link linkend='var-DISTRO_NAME'><filename>DISTRO_NAME</filename></link>
  12044. or
  12045. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>
  12046. variable and is set in the
  12047. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  12048. class as follows:
  12049. <literallayout class='monospaced'>
  12050. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  12051. </literallayout>
  12052. For the default distribution "poky",
  12053. <filename>SDK_TITLE</filename> is set to
  12054. "Poky (Yocto Project Reference Distro)".
  12055. </para>
  12056. <para>
  12057. For information on how to change this default title,
  12058. see the
  12059. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-changing-the-sdk-installer-title'>Changing the Extensible SDK Installer Title</ulink>"
  12060. section in the Yocto Project Application Development and
  12061. the Extensible Software Development Kit (eSDK) manual.
  12062. </para>
  12063. </glossdef>
  12064. </glossentry>
  12065. <glossentry id='var-SDK_UPDATE_URL'><glossterm>SDK_UPDATE_URL</glossterm>
  12066. <info>
  12067. SDK_UPDATE_URL[doc] = "An optional URL for an update server for the extensible SDK."
  12068. </info>
  12069. <glossdef>
  12070. <para role="glossdeffirst">
  12071. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12072. An optional URL for an update server for the extensible
  12073. SDK.
  12074. If set, the value is used as the default update server when
  12075. running <filename>devtool sdk-update</filename> within the
  12076. extensible SDK.
  12077. </para>
  12078. </glossdef>
  12079. </glossentry>
  12080. <glossentry id='var-SDK_VENDOR'><glossterm>SDK_VENDOR</glossterm>
  12081. <info>
  12082. SDK_VENDOR[doc] = "Specifies the name of the SDK vendor."
  12083. </info>
  12084. <glossdef>
  12085. <para role="glossdeffirst">
  12086. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12087. Specifies the name of the SDK vendor.
  12088. </para>
  12089. </glossdef>
  12090. </glossentry>
  12091. <glossentry id='var-SDK_VERSION'><glossterm>SDK_VERSION</glossterm>
  12092. <info>
  12093. SDK_VERSION[doc] = "Specifies the version for the SDK."
  12094. </info>
  12095. <glossdef>
  12096. <para role="glossdeffirst">
  12097. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12098. Specifies the version of the SDK.
  12099. The distribution configuration file (e.g.
  12100. <filename>/meta-poky/conf/distro/poky.conf</filename>)
  12101. defines the <filename>SDK_VERSION</filename> as follows:
  12102. <literallayout class='monospaced'>
  12103. SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"
  12104. </literallayout>
  12105. </para>
  12106. <para>
  12107. For additional information, see the
  12108. <link linkend='var-DISTRO_VERSION'><filename>DISTRO_VERSION</filename></link>
  12109. and
  12110. <link linkend='var-DATE'><filename>DATE</filename></link>
  12111. variables.
  12112. </para>
  12113. </glossdef>
  12114. </glossentry>
  12115. <glossentry id='var-SDKEXTPATH'><glossterm>SDKEXTPATH</glossterm>
  12116. <info>
  12117. SDKEXTPATH[doc] = "The default installation directory for the extensible SDK."
  12118. </info>
  12119. <glossdef>
  12120. <para role="glossdeffirst">
  12121. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12122. The default installation directory for the Extensible SDK.
  12123. By default, this directory is based on the
  12124. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>
  12125. variable and is set in the
  12126. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  12127. class as follows:
  12128. <literallayout class='monospaced'>
  12129. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  12130. </literallayout>
  12131. For the default distribution "poky", the
  12132. <filename>SDKEXTPATH</filename> is set to "poky_sdk".
  12133. </para>
  12134. <para>
  12135. For information on how to change this default directory,
  12136. see the
  12137. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-changing-the-default-sdk-installation-directory'>Changing the Default SDK Installation Directory</ulink>"
  12138. section in the Yocto Project Application Development and
  12139. the Extensible Software Development Kit (eSDK) manual.
  12140. </para>
  12141. </glossdef>
  12142. </glossentry>
  12143. <glossentry id='var-SDKIMAGE_FEATURES'><glossterm>SDKIMAGE_FEATURES</glossterm>
  12144. <info>
  12145. 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'."
  12146. </info>
  12147. <glossdef>
  12148. <para role="glossdeffirst">
  12149. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12150. Equivalent to
  12151. <filename><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></filename>.
  12152. However, this variable applies to the SDK generated from an
  12153. image using the following command:
  12154. <literallayout class='monospaced'>
  12155. $ bitbake -c populate_sdk <replaceable>imagename</replaceable>
  12156. </literallayout>
  12157. </para>
  12158. </glossdef>
  12159. </glossentry>
  12160. <glossentry id='var-SDKMACHINE'><glossterm>SDKMACHINE</glossterm>
  12161. <info>
  12162. SDKMACHINE[doc] = "Specifies the architecture (i.e. i686 or x86_64) for which to build SDK items."
  12163. </info>
  12164. <glossdef>
  12165. <para role="glossdeffirst">
  12166. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12167. The machine for which the SDK is built.
  12168. In other words, the SDK is built such that it
  12169. runs on the target you specify with the
  12170. <filename>SDKMACHINE</filename> value.
  12171. The value points to a corresponding
  12172. <filename>.conf</filename> file under
  12173. <filename>conf/machine-sdk/</filename>.
  12174. </para>
  12175. <para>
  12176. You can use "i686" and "x86_64" as possible values
  12177. for this variable. The variable defaults to "i686"
  12178. and is set in the local.conf file in the Build Directory.
  12179. <literallayout class='monospaced'>
  12180. SDKMACHINE ?= "i686"
  12181. </literallayout>
  12182. <note>
  12183. You cannot set the <filename>SDKMACHINE</filename>
  12184. variable in your distribution configuration file.
  12185. If you do, the configuration will not take affect.
  12186. </note>
  12187. </para>
  12188. </glossdef>
  12189. </glossentry>
  12190. <glossentry id='var-SDKPATH'><glossterm>SDKPATH</glossterm>
  12191. <info>
  12192. SDKPATH[doc] = "Defines the path offered to the user for installation of the SDK that is generated by the OpenEmbedded build system."
  12193. </info>
  12194. <glossdef>
  12195. <para role="glossdeffirst">
  12196. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12197. Defines the path offered to the user for installation
  12198. of the SDK that is generated by the OpenEmbedded build
  12199. system.
  12200. The path appears as the default location for installing
  12201. the SDK when you run the SDK's installation script.
  12202. You can override the offered path when you run the
  12203. script.
  12204. </para>
  12205. </glossdef>
  12206. </glossentry>
  12207. <glossentry id='var-SDKTARGETSYSROOT'><glossterm>SDKTARGETSYSROOT</glossterm>
  12208. <info>
  12209. SDKTARGETSYSROOT[doc] = "Full path to the sysroot used for cross-compilation within an SDK as it will be when installed into the default SDKPATH."
  12210. </info>
  12211. <glossdef>
  12212. <para role="glossdeffirst">
  12213. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12214. The full path to the sysroot used for cross-compilation
  12215. within an SDK as it will be when installed into the
  12216. default
  12217. <link linkend='var-SDKPATH'><filename>SDKPATH</filename></link>.
  12218. </para>
  12219. </glossdef>
  12220. </glossentry>
  12221. <glossentry id='var-SECTION'><glossterm>SECTION</glossterm>
  12222. <info>
  12223. SECTION[doc] = "The section in which packages should be categorized. Package management utilities can make use of this variable."
  12224. </info>
  12225. <glossdef>
  12226. <para role="glossdeffirst">
  12227. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12228. The section in which packages should be categorized.
  12229. Package management utilities can make use of this variable.
  12230. </para>
  12231. </glossdef>
  12232. </glossentry>
  12233. <glossentry id='var-SELECTED_OPTIMIZATION'><glossterm>SELECTED_OPTIMIZATION</glossterm>
  12234. <info>
  12235. 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."
  12236. </info>
  12237. <glossdef>
  12238. <para role="glossdeffirst">
  12239. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12240. Specifies the optimization flags passed to the C compiler
  12241. when building for the target.
  12242. The flags are passed through the default value of the
  12243. <link linkend='var-TARGET_CFLAGS'><filename>TARGET_CFLAGS</filename></link>
  12244. variable.
  12245. </para>
  12246. <para>
  12247. The <filename>SELECTED_OPTIMIZATION</filename> variable
  12248. takes the value of
  12249. <filename><link linkend='var-FULL_OPTIMIZATION'>FULL_OPTIMIZATION</link></filename>
  12250. unless <filename><link linkend='var-DEBUG_BUILD'>DEBUG_BUILD</link></filename> = "1".
  12251. If that is the case, the value of
  12252. <filename><link linkend='var-DEBUG_OPTIMIZATION'>DEBUG_OPTIMIZATION</link></filename> is used.
  12253. </para>
  12254. </glossdef>
  12255. </glossentry>
  12256. <glossentry id='var-SERIAL_CONSOLE'><glossterm>SERIAL_CONSOLE</glossterm>
  12257. <info>
  12258. SERIAL_CONSOLE[doc] = "Defines the serial consoles (TTYs) to enable using getty."
  12259. </info>
  12260. <glossdef>
  12261. <para role="glossdeffirst">
  12262. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12263. Defines a serial console (TTY) to enable using
  12264. <ulink url='https://en.wikipedia.org/wiki/Getty_(Unix)'>getty</ulink>.
  12265. Provide a value that specifies the baud rate followed by
  12266. the TTY device name separated by a space.
  12267. You cannot specify more than one TTY device:
  12268. <literallayout class='monospaced'>
  12269. SERIAL_CONSOLE = "115200 ttyS0"
  12270. </literallayout>
  12271. <note>
  12272. The <filename>SERIAL_CONSOLE</filename> variable
  12273. is deprecated.
  12274. Please use the
  12275. <link linkend='var-SERIAL_CONSOLES'><filename>SERIAL_CONSOLES</filename></link>
  12276. variable.
  12277. </note>
  12278. </para>
  12279. </glossdef>
  12280. </glossentry>
  12281. <glossentry id='var-SERIAL_CONSOLES'><glossterm>SERIAL_CONSOLES</glossterm>
  12282. <info>
  12283. SERIAL_CONSOLES[doc] = "Defines the serial consoles (TTYs) to enable using getty."
  12284. </info>
  12285. <glossdef>
  12286. <para role="glossdeffirst">
  12287. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12288. Defines a serial console (TTY) to enable using
  12289. <ulink url='https://en.wikipedia.org/wiki/Getty_(Unix)'>getty</ulink>.
  12290. Provide a value that specifies the baud rate followed by
  12291. the TTY device name separated by a semicolon.
  12292. Use spaces to separate multiple devices:
  12293. <literallayout class='monospaced'>
  12294. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  12295. </literallayout>
  12296. </para>
  12297. </glossdef>
  12298. </glossentry>
  12299. <glossentry id='var-SERIAL_CONSOLES_CHECK'><glossterm>SERIAL_CONSOLES_CHECK</glossterm>
  12300. <info>
  12301. SERIAL_CONSOLES_CHECK[doc] = "Selected SERIAL_CONSOLES to check against /proc/console before enabling using getty. Supported only by SysVinit."
  12302. </info>
  12303. <glossdef>
  12304. <para role="glossdeffirst">
  12305. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12306. Specifies serial consoles, which must be listed in
  12307. <link linkend='var-SERIAL_CONSOLES'><filename>SERIAL_CONSOLES</filename></link>,
  12308. to check against <filename>/proc/console</filename>
  12309. before enabling them using getty.
  12310. This variable allows aliasing in the format:
  12311. &lt;device&gt;:&lt;alias&gt;.
  12312. If a device was listed as "sclp_line0"
  12313. in <filename>/dev/</filename> and "ttyS0" was listed
  12314. in <filename>/proc/console</filename>, you would do the
  12315. following:
  12316. <literallayout class='monospaced'>
  12317. SERIAL_CONSOLES_CHECK = "slcp_line0:ttyS0"
  12318. </literallayout>
  12319. This variable is currently only supported with SysVinit
  12320. (i.e. not with systemd).
  12321. </para>
  12322. </glossdef>
  12323. </glossentry>
  12324. <glossentry id='var-SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS'><glossterm>SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS</glossterm>
  12325. <info>
  12326. 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."
  12327. </info>
  12328. <glossdef>
  12329. <para role="glossdeffirst">
  12330. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12331. A list of recipe dependencies that should not be used to
  12332. determine signatures of tasks from one recipe when they
  12333. depend on tasks from another recipe.
  12334. For example:
  12335. <literallayout class='monospaced'>
  12336. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  12337. </literallayout>
  12338. </para>
  12339. <para>
  12340. In the previous example, <filename>intone</filename>
  12341. depends on <filename>mplayer2</filename>.
  12342. </para>
  12343. <para>
  12344. You can use the special token <filename>"*"</filename> on
  12345. the left-hand side of the dependency to match all
  12346. recipes except the one on the right-hand side.
  12347. Here is an example:
  12348. <literallayout class='monospaced'>
  12349. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  12350. </literallayout>
  12351. </para>
  12352. <para>
  12353. In the previous example, all recipes except
  12354. <filename>quilt-native</filename> ignore task
  12355. signatures from the <filename>quilt-native</filename>
  12356. recipe when determining their task signatures.
  12357. </para>
  12358. <para>
  12359. Use of this variable is one mechanism to remove dependencies
  12360. that affect task signatures and thus force rebuilds when a
  12361. recipe changes.
  12362. <note><title>Caution</title>
  12363. If you add an inappropriate dependency for a recipe
  12364. relationship, the software might break during
  12365. runtime if the interface of the second recipe was
  12366. changed after the first recipe had been built.
  12367. </note>
  12368. </para>
  12369. </glossdef>
  12370. </glossentry>
  12371. <glossentry id='var-SIGGEN_EXCLUDERECIPES_ABISAFE'><glossterm>SIGGEN_EXCLUDERECIPES_ABISAFE</glossterm>
  12372. <info>
  12373. SIGGEN_EXCLUDERECIPES_ABISAFE[doc] = "A list of recipes that are completely stable and will never change."
  12374. </info>
  12375. <glossdef>
  12376. <para role="glossdeffirst">
  12377. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12378. A list of recipes that are completely stable and will
  12379. never change.
  12380. The ABI for the recipes in the list are presented by
  12381. output from the tasks run to build the recipe.
  12382. Use of this variable is one way to remove dependencies from
  12383. one recipe on another that affect task signatures and
  12384. thus force rebuilds when the recipe changes.
  12385. <note><title>Caution</title>
  12386. If you add an inappropriate variable to this list,
  12387. the software might break at runtime if the
  12388. interface of the recipe was changed after the other
  12389. had been built.
  12390. </note>
  12391. </para>
  12392. </glossdef>
  12393. </glossentry>
  12394. <glossentry id='var-SITEINFO_BITS'><glossterm>SITEINFO_BITS</glossterm>
  12395. <info>
  12396. SITEINFO_BITS[doc] = "Specifies the number of bits for the target system CPU."
  12397. </info>
  12398. <glossdef>
  12399. <para role="glossdeffirst">
  12400. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12401. Specifies the number of bits for the target system CPU.
  12402. The value should be either "32" or "64".
  12403. </para>
  12404. </glossdef>
  12405. </glossentry>
  12406. <glossentry id='var-SITEINFO_ENDIANNESS'><glossterm>SITEINFO_ENDIANNESS</glossterm>
  12407. <info>
  12408. 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'."
  12409. </info>
  12410. <glossdef>
  12411. <para role="glossdeffirst">
  12412. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12413. Specifies the endian byte order of the target system.
  12414. The value should be either "le" for little-endian or "be" for big-endian.
  12415. </para>
  12416. </glossdef>
  12417. </glossentry>
  12418. <glossentry id='var-SKIP_FILEDEPS'><glossterm>SKIP_FILEDEPS</glossterm>
  12419. <info>
  12420. SKIP_FILEDEPS[doc] = "Enables you to remove all files from
  12421. the "Provides" section of an RPM package."
  12422. </info>
  12423. <glossdef>
  12424. <para role="glossdeffirst">
  12425. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12426. Enables removal of all files from the "Provides" section of
  12427. an RPM package.
  12428. Removal of these files is required for packages containing
  12429. prebuilt binaries and libraries such as
  12430. <filename>libstdc++</filename> and
  12431. <filename>glibc</filename>.
  12432. </para>
  12433. <para>
  12434. To enable file removal, set the variable to "1" in your
  12435. <filename>conf/local.conf</filename> configuration file
  12436. in your:
  12437. <link linkend='build-directory'>Build Directory</link>.
  12438. <literallayout class='monospaced'>
  12439. SKIP_FILEDEPS = "1"
  12440. </literallayout>
  12441. </para>
  12442. </glossdef>
  12443. </glossentry>
  12444. <glossentry id='var-SOC_FAMILY'><glossterm>SOC_FAMILY</glossterm>
  12445. <info>
  12446. 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."
  12447. </info>
  12448. <glossdef>
  12449. <para role="glossdeffirst">
  12450. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12451. Groups together machines based upon the same family
  12452. of SOC (System On Chip).
  12453. You typically set this variable in a common
  12454. <filename>.inc</filename> file that you include in the
  12455. configuration files of all the machines.
  12456. <note>
  12457. You must include
  12458. <filename>conf/machine/include/soc-family.inc</filename>
  12459. for this variable to appear in
  12460. <link linkend='var-MACHINEOVERRIDES'><filename>MACHINEOVERRIDES</filename></link>.
  12461. </note>
  12462. </para>
  12463. </glossdef>
  12464. </glossentry>
  12465. <glossentry id='var-SOLIBS'><glossterm>SOLIBS</glossterm>
  12466. <info>
  12467. SOLIBS[doc] = "Defines the suffix for shared libraries used on the target platform."
  12468. </info>
  12469. <glossdef>
  12470. <para role="glossdeffirst">
  12471. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12472. Defines the suffix for shared libraries used on the
  12473. target platform.
  12474. By default, this suffix is ".so.*" for all Linux-based
  12475. systems and is defined in the
  12476. <filename>meta/conf/bitbake.conf</filename> configuration
  12477. file.
  12478. </para>
  12479. <para>
  12480. You will see this variable referenced in the default values
  12481. of <filename>FILES_${PN}</filename>.
  12482. </para>
  12483. </glossdef>
  12484. </glossentry>
  12485. <glossentry id='var-SOLIBSDEV'><glossterm>SOLIBSDEV</glossterm>
  12486. <info>
  12487. SOLIBSDEV[doc] = "Defines the suffix for the development symbolic link (symlink) for shared libraries on the target platform."
  12488. </info>
  12489. <glossdef>
  12490. <para role="glossdeffirst">
  12491. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12492. Defines the suffix for the development symbolic link
  12493. (symlink) for shared libraries on the target platform.
  12494. By default, this suffix is ".so" for Linux-based
  12495. systems and is defined in the
  12496. <filename>meta/conf/bitbake.conf</filename> configuration
  12497. file.
  12498. </para>
  12499. <para>
  12500. You will see this variable referenced in the default values
  12501. of <filename>FILES_${PN}-dev</filename>.
  12502. </para>
  12503. </glossdef>
  12504. </glossentry>
  12505. <glossentry id='var-SOURCE_MIRROR_FETCH'><glossterm>SOURCE_MIRROR_FETCH</glossterm>
  12506. <info>
  12507. SOURCE_MIRROR_FETCH[doc] = "Set as part of a source mirror generation script to skip COMPATIBLE_MACHINE and COMPATIBLE_HOST checks."
  12508. </info>
  12509. <glossdef>
  12510. <para role="glossdeffirst">
  12511. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12512. When you are fetching files to create a mirror of sources
  12513. (i.e. creating a source mirror), setting
  12514. <filename>SOURCE_MIRROR_FETCH</filename> to "1" in your
  12515. <filename>local.conf</filename> configuration file ensures
  12516. the source for all recipes are fetched regardless of
  12517. whether or not a recipe is compatible with the
  12518. configuration.
  12519. A recipe is considered incompatible with the currently
  12520. configured machine when either or both the
  12521. <link linkend='var-COMPATIBLE_MACHINE'><filename>COMPATIBLE_MACHINE</filename></link>
  12522. variable and
  12523. <link linkend='var-COMPATIBLE_HOST'><filename>COMPATIBLE_HOST</filename></link>
  12524. variables specify compatibility with a machine other
  12525. than that of the current machine or host.
  12526. <note><title>Warning</title>
  12527. Do not set the
  12528. <filename>SOURCE_MIRROR_FETCH</filename> variable
  12529. unless you are creating a source mirror.
  12530. In other words, do not set the variable during a
  12531. normal build.
  12532. </note>
  12533. </para>
  12534. </glossdef>
  12535. </glossentry>
  12536. <glossentry id='var-SOURCE_MIRROR_URL'><glossterm>SOURCE_MIRROR_URL</glossterm>
  12537. <info>
  12538. SOURCE_MIRROR_URL[doc] = "URL to source mirror that will be used before fetching from original SRC_URI."
  12539. </info>
  12540. <glossdef>
  12541. <para role="glossdeffirst">
  12542. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12543. Defines your own
  12544. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  12545. from which to first fetch source before attempting to fetch
  12546. from the upstream specified in
  12547. <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>.
  12548. </para>
  12549. <para>
  12550. To use this variable, you must globally inherit the
  12551. <link linkend='ref-classes-own-mirrors'><filename>own-mirrors</filename></link>
  12552. class and then provide the URL to your mirrors.
  12553. Here is the general syntax:
  12554. <literallayout class='monospaced'>
  12555. INHERIT += "own-mirrors"
  12556. SOURCE_MIRROR_URL = "http://<replaceable>example</replaceable>.com/<replaceable>my_source_mirror</replaceable>"
  12557. </literallayout>
  12558. <note>
  12559. You can specify only a single URL in
  12560. <filename>SOURCE_MIRROR_URL</filename>.
  12561. </note>
  12562. </para>
  12563. </glossdef>
  12564. </glossentry>
  12565. <glossentry id='var-SPDXLICENSEMAP'><glossterm>SPDXLICENSEMAP</glossterm>
  12566. <info>
  12567. SPDXLICENSEMAP[doc] = "Maps commonly used license names to their SPDX counterparts found in meta/files/common-licenses/."
  12568. </info>
  12569. <glossdef>
  12570. <para role="glossdeffirst">
  12571. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12572. Maps commonly used license names to their SPDX counterparts
  12573. found in <filename>meta/files/common-licenses/</filename>.
  12574. For the default <filename>SPDXLICENSEMAP</filename>
  12575. mappings, see the
  12576. <filename>meta/conf/licenses.conf</filename> file.
  12577. </para>
  12578. <para>
  12579. For additional information, see the
  12580. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  12581. variable.
  12582. </para>
  12583. </glossdef>
  12584. </glossentry>
  12585. <glossentry id='var-SPECIAL_PKGSUFFIX'><glossterm>SPECIAL_PKGSUFFIX</glossterm>
  12586. <info>
  12587. 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."
  12588. </info>
  12589. <glossdef>
  12590. <para role="glossdeffirst">
  12591. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12592. A list of prefixes for <link linkend='var-PN'><filename>PN</filename></link> used by the
  12593. OpenEmbedded build system to create variants of recipes or packages.
  12594. The list specifies the prefixes to strip off during certain circumstances
  12595. such as the generation of the <link linkend='var-BPN'><filename>BPN</filename></link> variable.
  12596. </para>
  12597. </glossdef>
  12598. </glossentry>
  12599. <glossentry id='var-SPL_BINARY'><glossterm>SPL_BINARY</glossterm>
  12600. <info>
  12601. SPL_BINARY[doc] = "The file type of the Secondary Program Loader (SPL)."
  12602. </info>
  12603. <glossdef>
  12604. <para role="glossdeffirst">
  12605. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12606. The file type for the Secondary Program Loader (SPL).
  12607. Some devices use an SPL from which to boot (e.g. the
  12608. BeagleBone development board).
  12609. For such cases, you can declare the file type of the
  12610. SPL binary in the <filename>u-boot.inc</filename> include
  12611. file, which is used in the U-Boot recipe.
  12612. </para>
  12613. <para>
  12614. The SPL file type is set to "null" by default in the
  12615. <filename>u-boot.inc</filename> file as follows:
  12616. <literallayout class='monospaced'>
  12617. # Some versions of u-boot build an SPL (Second Program Loader) image that
  12618. # should be packaged along with the u-boot binary as well as placed in the
  12619. # deploy directory. For those versions they can set the following variables
  12620. # to allow packaging the SPL.
  12621. SPL_BINARY ?= ""
  12622. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  12623. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  12624. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  12625. </literallayout>
  12626. The <filename>SPL_BINARY</filename> variable helps form
  12627. various <filename>SPL_*</filename> variables used by
  12628. the OpenEmbedded build system.
  12629. </para>
  12630. <para>
  12631. See the BeagleBone machine configuration example in the
  12632. "<ulink url='&YOCTO_DOCS_BSP_URL;#creating-a-new-bsp-layer-using-the-bitbake-layers-script'>Creating a new BSP Layer Using the <filename>bitbake-layers</filename> Script</ulink>"
  12633. section in the Yocto Project Board Support Package
  12634. Developer's Guide for additional information.
  12635. </para>
  12636. </glossdef>
  12637. </glossentry>
  12638. <glossentry id='var-SRC_URI'><glossterm>SRC_URI</glossterm>
  12639. <info>
  12640. 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."
  12641. </info>
  12642. <glossdef>
  12643. <para role="glossdeffirst">
  12644. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12645. The list of source files - local or remote.
  12646. This variable tells the OpenEmbedded build system which bits
  12647. to pull in for the build and how to pull them in.
  12648. For example, if the recipe or append file only needs to
  12649. fetch a tarball from the Internet, the recipe or
  12650. append file uses a single <filename>SRC_URI</filename>
  12651. entry.
  12652. On the other hand, if the recipe or append file needs to
  12653. fetch a tarball, apply two patches, and include a custom
  12654. file, the recipe or append file would include four
  12655. instances of the variable.
  12656. </para>
  12657. <para>
  12658. The following list explains the available URI protocols.
  12659. URI protocols are highly dependent on particular BitBake
  12660. Fetcher submodules.
  12661. Depending on the fetcher BitBake uses, various URL
  12662. parameters are employed.
  12663. For specifics on the supported Fetchers, see the
  12664. "<ulink url='&YOCTO_DOCS_BB_URL;#bb-fetchers'>Fetchers</ulink>"
  12665. section in the BitBake User Manual.
  12666. <itemizedlist>
  12667. <listitem><para><emphasis><filename>file://</filename> -</emphasis>
  12668. Fetches files, which are usually files shipped with
  12669. the
  12670. <link linkend='metadata'>Metadata</link>,
  12671. from the local machine (e.g.
  12672. <ulink url='&YOCTO_DOCS_OM_URL;#patching-dev-environment'>patch</ulink>
  12673. files).
  12674. The path is relative to the
  12675. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>
  12676. variable.
  12677. Thus, the build system searches, in order, from the
  12678. following directories, which are assumed to be a
  12679. subdirectories of the directory in which the
  12680. recipe file (<filename>.bb</filename>) or
  12681. append file (<filename>.bbappend</filename>)
  12682. resides:
  12683. <itemizedlist>
  12684. <listitem><para><emphasis><filename>${BPN}</filename> -</emphasis>
  12685. The base recipe name without any special
  12686. suffix or version numbers.
  12687. </para></listitem>
  12688. <listitem><para><emphasis><filename>${BP}</filename> -</emphasis>
  12689. <filename>${<link linkend='var-BPN'>BPN</link>}-${PV}</filename>.
  12690. The base recipe name and version but without
  12691. any special package name suffix.
  12692. </para></listitem>
  12693. <listitem><para><emphasis>files -</emphasis>
  12694. Files within a directory, which is named
  12695. <filename>files</filename> and is also
  12696. alongside the recipe or append file.
  12697. </para></listitem>
  12698. </itemizedlist>
  12699. <note>
  12700. If you want the build system to pick up files
  12701. specified through a
  12702. <filename>SRC_URI</filename>
  12703. statement from your append file, you need to be
  12704. sure to extend the
  12705. <filename>FILESPATH</filename>
  12706. variable by also using the
  12707. <link linkend='var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></link>
  12708. variable from within your append file.
  12709. </note>
  12710. </para></listitem>
  12711. <listitem><para><emphasis><filename>bzr://</filename> -</emphasis> Fetches files from a
  12712. Bazaar revision control repository.</para></listitem>
  12713. <listitem><para><emphasis><filename>git://</filename> -</emphasis> Fetches files from a
  12714. Git revision control repository.</para></listitem>
  12715. <listitem><para><emphasis><filename>osc://</filename> -</emphasis> Fetches files from
  12716. an OSC (OpenSUSE Build service) revision control repository.</para></listitem>
  12717. <listitem><para><emphasis><filename>repo://</filename> -</emphasis> Fetches files from
  12718. a repo (Git) repository.</para></listitem>
  12719. <listitem><para><emphasis><filename>ccrc://</filename> -</emphasis>
  12720. Fetches files from a ClearCase repository.
  12721. </para></listitem>
  12722. <listitem><para><emphasis><filename>http://</filename> -</emphasis> Fetches files from
  12723. the Internet using <filename>http</filename>.</para></listitem>
  12724. <listitem><para><emphasis><filename>https://</filename> -</emphasis> Fetches files
  12725. from the Internet using <filename>https</filename>.</para></listitem>
  12726. <listitem><para><emphasis><filename>ftp://</filename> -</emphasis> Fetches files
  12727. from the Internet using <filename>ftp</filename>.</para></listitem>
  12728. <listitem><para><emphasis><filename>cvs://</filename> -</emphasis> Fetches files from
  12729. a CVS revision control repository.</para></listitem>
  12730. <listitem><para><emphasis><filename>hg://</filename> -</emphasis> Fetches files from
  12731. a Mercurial (<filename>hg</filename>) revision control repository.</para></listitem>
  12732. <listitem><para><emphasis><filename>p4://</filename> -</emphasis> Fetches files from
  12733. a Perforce (<filename>p4</filename>) revision control repository.</para></listitem>
  12734. <listitem><para><emphasis><filename>ssh://</filename> -</emphasis> Fetches files from
  12735. a secure shell.</para></listitem>
  12736. <listitem><para><emphasis><filename>svn://</filename> -</emphasis> Fetches files from
  12737. a Subversion (<filename>svn</filename>) revision control repository.</para></listitem>
  12738. </itemizedlist>
  12739. </para>
  12740. <para>
  12741. Standard and recipe-specific options for <filename>SRC_URI</filename> exist.
  12742. Here are standard options:
  12743. <itemizedlist>
  12744. <listitem><para><emphasis><filename>apply</filename> -</emphasis> Whether to apply
  12745. the patch or not.
  12746. The default action is to apply the patch.</para></listitem>
  12747. <listitem><para><emphasis><filename>striplevel</filename> -</emphasis> Which
  12748. striplevel to use when applying the patch.
  12749. The default level is 1.</para></listitem>
  12750. <listitem><para><emphasis><filename>patchdir</filename> -</emphasis> Specifies
  12751. the directory in which the patch should be applied.
  12752. The default is <filename>${</filename><link linkend='var-S'><filename>S</filename></link><filename>}</filename>.
  12753. </para></listitem>
  12754. </itemizedlist>
  12755. </para>
  12756. <para>
  12757. Here are options specific to recipes building code from a revision control system:
  12758. <itemizedlist>
  12759. <listitem><para><emphasis><filename>mindate</filename> -</emphasis>
  12760. Apply the patch only if
  12761. <link linkend='var-SRCDATE'><filename>SRCDATE</filename></link>
  12762. is equal to or greater than <filename>mindate</filename>.
  12763. </para></listitem>
  12764. <listitem><para><emphasis><filename>maxdate</filename> -</emphasis>
  12765. Apply the patch only if <filename>SRCDATE</filename>
  12766. is not later than <filename>maxdate</filename>.
  12767. </para></listitem>
  12768. <listitem><para><emphasis><filename>minrev</filename> -</emphasis>
  12769. Apply the patch only if <filename>SRCREV</filename>
  12770. is equal to or greater than <filename>minrev</filename>.
  12771. </para></listitem>
  12772. <listitem><para><emphasis><filename>maxrev</filename> -</emphasis>
  12773. Apply the patch only if <filename>SRCREV</filename>
  12774. is not later than <filename>maxrev</filename>.
  12775. </para></listitem>
  12776. <listitem><para><emphasis><filename>rev</filename> -</emphasis>
  12777. Apply the patch only if <filename>SRCREV</filename>
  12778. is equal to <filename>rev</filename>.
  12779. </para></listitem>
  12780. <listitem><para><emphasis><filename>notrev</filename> -</emphasis>
  12781. Apply the patch only if <filename>SRCREV</filename>
  12782. is not equal to <filename>rev</filename>.
  12783. </para></listitem>
  12784. </itemizedlist>
  12785. </para>
  12786. <para>
  12787. Here are some additional options worth mentioning:
  12788. <itemizedlist>
  12789. <listitem><para><emphasis><filename>unpack</filename> -</emphasis> Controls
  12790. whether or not to unpack the file if it is an archive.
  12791. The default action is to unpack the file.</para></listitem>
  12792. <listitem><para><emphasis><filename>destsuffix</filename> -</emphasis> Places the file
  12793. (or extracts its contents) into the specified
  12794. subdirectory of <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  12795. when the Git fetcher is used.
  12796. </para></listitem>
  12797. <listitem><para><emphasis><filename>subdir</filename> -</emphasis> Places the file
  12798. (or extracts its contents) into the specified
  12799. subdirectory of <filename>WORKDIR</filename>
  12800. when the local (<filename>file://</filename>)
  12801. fetcher is used.
  12802. </para></listitem>
  12803. <listitem><para><emphasis><filename>localdir</filename> -</emphasis> Places the file
  12804. (or extracts its contents) into the specified
  12805. subdirectory of <filename>WORKDIR</filename> when
  12806. the CVS fetcher is used.
  12807. </para></listitem>
  12808. <listitem><para><emphasis><filename>subpath</filename> -</emphasis>
  12809. Limits the checkout to a specific subpath of the
  12810. tree when using the Git fetcher is used.
  12811. </para></listitem>
  12812. <listitem><para><emphasis><filename>name</filename> -</emphasis> Specifies a
  12813. name to be used for association with <filename>SRC_URI</filename> checksums
  12814. when you have more than one file specified in <filename>SRC_URI</filename>.
  12815. </para></listitem>
  12816. <listitem><para><emphasis><filename>downloadfilename</filename> -</emphasis> Specifies
  12817. the filename used when storing the downloaded file.</para></listitem>
  12818. </itemizedlist>
  12819. </para>
  12820. </glossdef>
  12821. </glossentry>
  12822. <glossentry id='var-SRC_URI_OVERRIDES_PACKAGE_ARCH'><glossterm>SRC_URI_OVERRIDES_PACKAGE_ARCH</glossterm>
  12823. <info>
  12824. 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."
  12825. </info>
  12826. <glossdef>
  12827. <para role="glossdeffirst">
  12828. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12829. By default, the OpenEmbedded build system automatically detects whether
  12830. <filename><link linkend='var-SRC_URI'>SRC_URI</link></filename>
  12831. contains files that are machine-specific.
  12832. If so, the build system automatically changes
  12833. <filename><link linkend='var-PACKAGE_ARCH'>PACKAGE_ARCH</link></filename>.
  12834. Setting this variable to "0" disables this behavior.
  12835. </para>
  12836. </glossdef>
  12837. </glossentry>
  12838. <glossentry id='var-SRCDATE'><glossterm>SRCDATE</glossterm>
  12839. <info>
  12840. 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)."
  12841. </info>
  12842. <glossdef>
  12843. <para role="glossdeffirst">
  12844. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12845. The date of the source code used to build the package.
  12846. This variable applies only if the source was fetched from a Source Code Manager (SCM).
  12847. </para>
  12848. </glossdef>
  12849. </glossentry>
  12850. <glossentry id='var-SRCPV'><glossterm>SRCPV</glossterm>
  12851. <info>
  12852. SRCPV[doc] = "Returns the version string of the current package. This string is used to help define the value of PV."
  12853. </info>
  12854. <glossdef>
  12855. <para role="glossdeffirst">
  12856. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12857. Returns the version string of the current package.
  12858. This string is used to help define the value of
  12859. <link linkend='var-PV'><filename>PV</filename></link>.
  12860. </para>
  12861. <para>
  12862. The <filename>SRCPV</filename> variable is defined in the
  12863. <filename>meta/conf/bitbake.conf</filename> configuration
  12864. file in the
  12865. <link linkend='source-directory'>Source Directory</link>
  12866. as follows:
  12867. <literallayout class='monospaced'>
  12868. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  12869. </literallayout>
  12870. </para>
  12871. <para>
  12872. Recipes that need to define <filename>PV</filename> do so
  12873. with the help of the <filename>SRCPV</filename>.
  12874. For example, the <filename>ofono</filename> recipe
  12875. (<filename>ofono_git.bb</filename>) located in
  12876. <filename>meta/recipes-connectivity</filename> in the
  12877. Source Directory defines <filename>PV</filename> as
  12878. follows:
  12879. <literallayout class='monospaced'>
  12880. PV = "0.12-git${SRCPV}"
  12881. </literallayout>
  12882. </para>
  12883. </glossdef>
  12884. </glossentry>
  12885. <glossentry id='var-SRCREV'><glossterm>SRCREV</glossterm>
  12886. <info>
  12887. SRCREV[doc] = "The revision of the source code used to build the package. This variable applies to Subversion, Git, Mercurial, and Bazaar only."
  12888. </info>
  12889. <glossdef>
  12890. <para role="glossdeffirst">
  12891. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12892. The revision of the source code used to build the package.
  12893. This variable applies to Subversion, Git, Mercurial, and
  12894. Bazaar only.
  12895. Note that if you want to build a fixed revision and you
  12896. want to avoid performing a query on the remote repository
  12897. every time BitBake parses your recipe, you should specify
  12898. a <filename>SRCREV</filename> that is a
  12899. full revision identifier and not just a tag.
  12900. <note>
  12901. For information on limitations when inheriting the
  12902. latest revision of software using
  12903. <filename>SRCREV</filename>, see the
  12904. <link linkend='var-AUTOREV'><filename>AUTOREV</filename></link>
  12905. variable description and the
  12906. "<ulink url='&YOCTO_DOCS_DEV_URL;#automatically-incrementing-a-binary-package-revision-number'>Automatically Incrementing a Binary Package Revision Number</ulink>"
  12907. section, which is in the Yocto Project Development
  12908. Tasks Manual.
  12909. </note>
  12910. </para>
  12911. </glossdef>
  12912. </glossentry>
  12913. <glossentry id='var-SSTATE_DIR'><glossterm>SSTATE_DIR</glossterm>
  12914. <info>
  12915. SSTATE_DIR[doc] = "The directory for the shared state cache."
  12916. </info>
  12917. <glossdef>
  12918. <para role="glossdeffirst">
  12919. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12920. The directory for the shared state cache.
  12921. </para>
  12922. </glossdef>
  12923. </glossentry>
  12924. <glossentry id='var-SSTATE_MIRROR_ALLOW_NETWORK'><glossterm>SSTATE_MIRROR_ALLOW_NETWORK</glossterm>
  12925. <info>
  12926. 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 is disabled by setting BB_NO_NETWORK to "1"."
  12927. </info>
  12928. <glossdef>
  12929. <para role="glossdeffirst">
  12930. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12931. If set to "1", allows fetches from
  12932. mirrors that are specified in
  12933. <link linkend='var-SSTATE_MIRRORS'><filename>SSTATE_MIRRORS</filename></link>
  12934. to work even when fetching from the network is
  12935. disabled by setting <filename>BB_NO_NETWORK</filename>
  12936. to "1".
  12937. Using the
  12938. <filename>SSTATE_MIRROR_ALLOW_NETWORK</filename>
  12939. variable is useful if you have set
  12940. <filename>SSTATE_MIRRORS</filename> to point to an
  12941. internal server for your shared state cache, but
  12942. you want to disable any other fetching from the network.
  12943. </para>
  12944. </glossdef>
  12945. </glossentry>
  12946. <glossentry id='var-SSTATE_MIRRORS'><glossterm>SSTATE_MIRRORS</glossterm>
  12947. <info>
  12948. 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."
  12949. </info>
  12950. <glossdef>
  12951. <para role="glossdeffirst">
  12952. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12953. Configures the OpenEmbedded build system to search other
  12954. mirror locations for prebuilt cache data objects before
  12955. building out the data.
  12956. This variable works like fetcher
  12957. <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link>
  12958. and <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  12959. and points to the cache locations to check for the shared
  12960. state (sstate) objects.
  12961. </para>
  12962. <para>
  12963. You can specify a filesystem directory or a remote URL such
  12964. as HTTP or FTP.
  12965. The locations you specify need to contain the shared state
  12966. cache (sstate-cache) results from previous builds.
  12967. The sstate-cache you point to can also be from builds on
  12968. other machines.
  12969. </para>
  12970. <para>
  12971. When pointing to sstate build artifacts on another machine
  12972. that uses a different GCC version for native builds,
  12973. you must configure <filename>SSTATE_MIRROR</filename>
  12974. with a regular expression that maps local search paths
  12975. to server paths.
  12976. The paths need to take into account
  12977. <link linkend='var-NATIVELSBSTRING'><filename>NATIVELSBSTRING</filename></link>
  12978. set by the
  12979. <link linkend='ref-classes-uninative'><filename>uninative</filename></link>
  12980. class.
  12981. For example, the following maps the local search path
  12982. <filename>universal-4.9</filename> to the server-provided
  12983. path <replaceable>server_url_sstate_path</replaceable>:
  12984. <literallayout class='monospaced'>
  12985. SSTATE_MIRRORS ?= file://universal-4.9/(.*) http://<replaceable>server_url_sstate_path</replaceable>/universal-4.8/\1 \n
  12986. </literallayout>
  12987. </para>
  12988. <para>
  12989. If a mirror uses the same structure as
  12990. <link linkend='var-SSTATE_DIR'><filename>SSTATE_DIR</filename></link>,
  12991. you need to add
  12992. "PATH" at the end as shown in the examples below.
  12993. The build system substitutes the correct path within the
  12994. directory structure.
  12995. <literallayout class='monospaced'>
  12996. SSTATE_MIRRORS ?= "\
  12997. file://.* http://<replaceable>someserver</replaceable>.tld/share/sstate/PATH;downloadfilename=PATH \n \
  12998. file://.* file:///<replaceable>some-local-dir</replaceable>/sstate/PATH"
  12999. </literallayout>
  13000. </para>
  13001. </glossdef>
  13002. </glossentry>
  13003. <glossentry id='var-SSTATE_SCAN_FILES'><glossterm>SSTATE_SCAN_FILES</glossterm>
  13004. <info>
  13005. SSTATE_SCAN_FILES[doc] = "Controls the list of files the OpenEmbedded build system scans for hardcoded installation paths."
  13006. </info>
  13007. <glossdef>
  13008. <para role="glossdeffirst">
  13009. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13010. Controls the list of files the OpenEmbedded build system
  13011. scans for hardcoded installation paths. The variable uses a
  13012. space-separated list of filenames (not paths) with standard
  13013. wildcard characters allowed.
  13014. </para>
  13015. <para>
  13016. During a build, the OpenEmbedded build system creates a
  13017. shared state (sstate) object during the first stage of
  13018. preparing the sysroots. That object is scanned for
  13019. hardcoded paths for original installation locations.
  13020. The list of files that are scanned for paths is controlled
  13021. by the <filename>SSTATE_SCAN_FILES</filename> variable.
  13022. Typically, recipes add files they want to be scanned to the
  13023. value of <filename>SSTATE_SCAN_FILES</filename> rather than
  13024. the variable being comprehensively set. The
  13025. <link linkend='ref-classes-sstate'><filename>sstate</filename></link>
  13026. class specifies the default list of files.
  13027. </para>
  13028. <para>
  13029. For details on the process, see the
  13030. <link linkend='ref-classes-staging'><filename>staging</filename></link>
  13031. class.
  13032. </para>
  13033. </glossdef>
  13034. </glossentry>
  13035. <glossentry id='var-STAGING_BASE_LIBDIR_NATIVE'><glossterm>STAGING_BASE_LIBDIR_NATIVE</glossterm>
  13036. <info>
  13037. STAGING_BASE_LIBDIR_NATIVE[doc] = "Specifies the path to the /lib subdirectory of the sysroot directory for the build host."
  13038. </info>
  13039. <glossdef>
  13040. <para role="glossdeffirst">
  13041. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13042. Specifies the path to the <filename>/lib</filename>
  13043. subdirectory of the sysroot directory for the
  13044. build host.
  13045. </para>
  13046. </glossdef>
  13047. </glossentry>
  13048. <glossentry id='var-STAGING_BASELIBDIR'><glossterm>STAGING_BASELIBDIR</glossterm>
  13049. <info>
  13050. 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)."
  13051. </info>
  13052. <glossdef>
  13053. <para role="glossdeffirst">
  13054. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13055. Specifies the path to the <filename>/lib</filename>
  13056. subdirectory of the sysroot directory for the target
  13057. for which the current recipe is being built
  13058. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  13059. </para>
  13060. </glossdef>
  13061. </glossentry>
  13062. <glossentry id='var-STAGING_BINDIR'><glossterm>STAGING_BINDIR</glossterm>
  13063. <info>
  13064. 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)."
  13065. </info>
  13066. <glossdef>
  13067. <para role="glossdeffirst">
  13068. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13069. Specifies the path to the
  13070. <filename>/usr/bin</filename> subdirectory of the
  13071. sysroot directory for the target for which the current
  13072. recipe is being built
  13073. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  13074. </para>
  13075. </glossdef>
  13076. </glossentry>
  13077. <glossentry id='var-STAGING_BINDIR_CROSS'><glossterm>STAGING_BINDIR_CROSS</glossterm>
  13078. <info>
  13079. 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."
  13080. </info>
  13081. <glossdef>
  13082. <para role="glossdeffirst">
  13083. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13084. Specifies the path to the directory containing binary
  13085. configuration scripts.
  13086. These scripts provide configuration information for
  13087. other software that wants to make use of libraries or
  13088. include files provided by the software associated with
  13089. the script.
  13090. <note>
  13091. This style of build configuration has been largely
  13092. replaced by <filename>pkg-config</filename>.
  13093. Consequently, if <filename>pkg-config</filename>
  13094. is supported by the library to which you are linking,
  13095. it is recommended you use
  13096. <filename>pkg-config</filename> instead of a
  13097. provided configuration script.
  13098. </note>
  13099. </para>
  13100. </glossdef>
  13101. </glossentry>
  13102. <glossentry id='var-STAGING_BINDIR_NATIVE'><glossterm>STAGING_BINDIR_NATIVE</glossterm>
  13103. <info>
  13104. STAGING_BINDIR_NATIVE[doc] = "Specifies the path to the /usr/bin subdirectory of the sysroot directory for the build host."
  13105. </info>
  13106. <glossdef>
  13107. <para role="glossdeffirst">
  13108. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13109. Specifies the path to the
  13110. <filename>/usr/bin</filename> subdirectory of the
  13111. sysroot directory for the build host.
  13112. </para>
  13113. </glossdef>
  13114. </glossentry>
  13115. <glossentry id='var-STAGING_DATADIR'><glossterm>STAGING_DATADIR</glossterm>
  13116. <info>
  13117. 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)."
  13118. </info>
  13119. <glossdef>
  13120. <para role="glossdeffirst">
  13121. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13122. Specifies the path to the <filename>/usr/share</filename>
  13123. subdirectory of the sysroot directory for the target
  13124. for which the current recipe is being built
  13125. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  13126. </para>
  13127. </glossdef>
  13128. </glossentry>
  13129. <glossentry id='var-STAGING_DATADIR_NATIVE'><glossterm>STAGING_DATADIR_NATIVE</glossterm>
  13130. <info>
  13131. STAGING_DATADIR_NATIVE[doc] = "Specifies the path to the /usr/share subdirectory of the sysroot directory for the build host."
  13132. </info>
  13133. <glossdef>
  13134. <para role="glossdeffirst">
  13135. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13136. Specifies the path to the <filename>/usr/share</filename>
  13137. subdirectory of the sysroot directory for the build host.
  13138. </para>
  13139. </glossdef>
  13140. </glossentry>
  13141. <glossentry id='var-STAGING_DIR'><glossterm>STAGING_DIR</glossterm>
  13142. <info>
  13143. STAGING_DIR[doc] = "Helps construct the recipe-sysroots directory, which is used during packaging."
  13144. </info>
  13145. <glossdef>
  13146. <para role="glossdeffirst">
  13147. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13148. Helps construct the <filename>recipe-sysroots</filename>
  13149. directory, which is used during packaging.
  13150. </para>
  13151. <para>
  13152. For information on how staging for recipe-specific
  13153. sysroots occurs, see the
  13154. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  13155. task, the
  13156. "<ulink url='&YOCTO_DOCS_DEV_URL;#new-sharing-files-between-recipes'>Sharing Files Between Recipes</ulink>"
  13157. section in the Yocto Project Development Tasks Manual, the
  13158. "<ulink url='&YOCTO_DOCS_OM_URL;#configuration-compilation-and-staging-dev-environment'>Configuration, Compilation, and Staging</ulink>"
  13159. section in the Yocto Project Overview and Concepts Manual,
  13160. and the
  13161. <link linkend='var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></link>
  13162. variable.
  13163. <note>
  13164. Recipes should never write files directly under
  13165. the <filename>STAGING_DIR</filename> directory because
  13166. the OpenEmbedded build system
  13167. manages the directory automatically.
  13168. Instead, files should be installed to
  13169. <filename>${</filename><link linkend='var-D'><filename>D</filename></link><filename>}</filename>
  13170. within your recipe's
  13171. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  13172. task and then the OpenEmbedded build system will
  13173. stage a subset of those files into the sysroot.
  13174. </note>
  13175. </para>
  13176. </glossdef>
  13177. </glossentry>
  13178. <glossentry id='var-STAGING_DIR_HOST'><glossterm>STAGING_DIR_HOST</glossterm>
  13179. <info>
  13180. STAGING_DIR_HOST[doc] = "Specifies the path to the sysroot directory for the system that the component is built to run on."
  13181. </info>
  13182. <glossdef>
  13183. <para role="glossdeffirst">
  13184. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13185. Specifies the path to the sysroot directory for the system
  13186. on which the component is built to run (the system that
  13187. hosts the component).
  13188. For most recipes, this sysroot is the one in which that
  13189. recipe's
  13190. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  13191. task copies files.
  13192. Exceptions include <filename>-native</filename> recipes,
  13193. where the <filename>do_populate_sysroot</filename> task
  13194. instead uses
  13195. <link linkend='var-STAGING_DIR_NATIVE'><filename>STAGING_DIR_NATIVE</filename></link>.
  13196. Depending on the type of recipe and the build target,
  13197. <filename>STAGING_DIR_HOST</filename> can have the
  13198. following values:
  13199. <itemizedlist>
  13200. <listitem><para>
  13201. For recipes building for the target machine, the
  13202. value is
  13203. "${<link linkend='var-STAGING_DIR'>STAGING_DIR</link>}/${<link linkend='var-MACHINE'>MACHINE</link>}".
  13204. </para></listitem>
  13205. <listitem><para>
  13206. For native recipes building for the build host, the
  13207. value is empty given the assumption that when
  13208. building for the build host, the build host's own
  13209. directories should be used.
  13210. <note>
  13211. <para><filename>-native</filename> recipes are
  13212. not installed into host paths like such as
  13213. <filename>/usr</filename>.
  13214. Rather, these recipes are installed into
  13215. <filename>STAGING_DIR_NATIVE</filename>.
  13216. When compiling <filename>-native</filename>
  13217. recipes, standard build environment variables
  13218. such as
  13219. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  13220. and
  13221. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  13222. are set up so that both host paths and
  13223. <filename>STAGING_DIR_NATIVE</filename> are
  13224. searched for libraries and headers using, for
  13225. example, GCC's <filename>-isystem</filename>
  13226. option.</para>
  13227. <para>Thus, the emphasis is that the
  13228. <filename>STAGING_DIR*</filename> variables
  13229. should be viewed as input variables by tasks
  13230. such as
  13231. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>,
  13232. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>,
  13233. and
  13234. <link linkend='ref-tasks-install'><filename>do_install</filename></link>.
  13235. Having the real system root correspond to
  13236. <filename>STAGING_DIR_HOST</filename> makes
  13237. conceptual sense for
  13238. <filename>-native</filename> recipes, as
  13239. they make use of host headers and libraries.
  13240. </para>
  13241. </note>
  13242. </para></listitem>
  13243. </itemizedlist>
  13244. </para>
  13245. </glossdef>
  13246. </glossentry>
  13247. <glossentry id='var-STAGING_DIR_NATIVE'><glossterm>STAGING_DIR_NATIVE</glossterm>
  13248. <info>
  13249. STAGING_DIR_NATIVE[doc] = "Specifies the path to the sysroot directory used when building components that run on the build host itself."
  13250. </info>
  13251. <glossdef>
  13252. <para role="glossdeffirst">
  13253. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13254. Specifies the path to the sysroot directory used when
  13255. building components that run on the build host itself.
  13256. </para>
  13257. </glossdef>
  13258. </glossentry>
  13259. <glossentry id='var-STAGING_DIR_TARGET'><glossterm>STAGING_DIR_TARGET</glossterm>
  13260. <info>
  13261. STAGING_DIR_TARGET[doc] = "Specifies the path to the sysroot used for the system for which the component generates code."
  13262. </info>
  13263. <glossdef>
  13264. <para role="glossdeffirst">
  13265. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13266. Specifies the path to the sysroot used for the system for
  13267. which the component generates code.
  13268. For components that do not generate code, which is the
  13269. majority, <filename>STAGING_DIR_TARGET</filename> is set
  13270. to match
  13271. <link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>.
  13272. </para>
  13273. <para>
  13274. Some recipes build binaries that can run on the target
  13275. system but those binaries in turn generate code for
  13276. another different system (e.g. cross-canadian recipes).
  13277. Using terminology from GNU, the primary system is referred
  13278. to as the "HOST" and the secondary, or different, system is
  13279. referred to as the "TARGET".
  13280. Thus, the binaries run on the "HOST" system
  13281. and generate binaries for the "TARGET" system.
  13282. The <filename>STAGING_DIR_HOST</filename> variable points
  13283. to the sysroot used for the "HOST" system, while
  13284. <filename>STAGING_DIR_TARGET</filename>
  13285. points to the sysroot used for the "TARGET" system.
  13286. </para>
  13287. </glossdef>
  13288. </glossentry>
  13289. <glossentry id='var-STAGING_ETCDIR_NATIVE'><glossterm>STAGING_ETCDIR_NATIVE</glossterm>
  13290. <info>
  13291. STAGING_ETCDIR_NATIVE[doc] = "Specifies the path to the /etc subdirectory of the sysroot directory for the build host."
  13292. </info>
  13293. <glossdef>
  13294. <para role="glossdeffirst">
  13295. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13296. Specifies the path to the <filename>/etc</filename>
  13297. subdirectory of the sysroot directory for the
  13298. build host.
  13299. </para>
  13300. </glossdef>
  13301. </glossentry>
  13302. <glossentry id='var-STAGING_EXECPREFIXDIR'><glossterm>STAGING_EXECPREFIXDIR</glossterm>
  13303. <info>
  13304. 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)."
  13305. </info>
  13306. <glossdef>
  13307. <para role="glossdeffirst">
  13308. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13309. Specifies the path to the <filename>/usr</filename>
  13310. subdirectory of the sysroot directory for the target
  13311. for which the current recipe is being built
  13312. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  13313. </para>
  13314. </glossdef>
  13315. </glossentry>
  13316. <glossentry id='var-STAGING_INCDIR'><glossterm>STAGING_INCDIR</glossterm>
  13317. <info>
  13318. 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)."
  13319. </info>
  13320. <glossdef>
  13321. <para role="glossdeffirst">
  13322. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13323. Specifies the path to the
  13324. <filename>/usr/include</filename> subdirectory of the
  13325. sysroot directory for the target for which the current
  13326. recipe being built
  13327. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  13328. </para>
  13329. </glossdef>
  13330. </glossentry>
  13331. <glossentry id='var-STAGING_INCDIR_NATIVE'><glossterm>STAGING_INCDIR_NATIVE</glossterm>
  13332. <info>
  13333. STAGING_INCDIR_NATIVE[doc] = "Specifies the path to the /usr/include subdirectory of the sysroot directory for the build host."
  13334. </info>
  13335. <glossdef>
  13336. <para role="glossdeffirst">
  13337. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13338. Specifies the path to the <filename>/usr/include</filename>
  13339. subdirectory of the sysroot directory for the build host.
  13340. </para>
  13341. </glossdef>
  13342. </glossentry>
  13343. <glossentry id='var-STAGING_KERNEL_BUILDDIR'><glossterm>STAGING_KERNEL_BUILDDIR</glossterm>
  13344. <info>
  13345. STAGING_KERNEL_BUILDDIR[doc] = "Points to the directory containing the kernel build artifacts."
  13346. </info>
  13347. <glossdef>
  13348. <para role="glossdeffirst">
  13349. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13350. Points to the directory containing the kernel build
  13351. artifacts.
  13352. Recipes building software that needs to access kernel
  13353. build artifacts
  13354. (e.g. <filename>systemtap-uprobes</filename>) can look in
  13355. the directory specified with the
  13356. <filename>STAGING_KERNEL_BUILDDIR</filename> variable to
  13357. find these artifacts after the kernel has been built.
  13358. </para>
  13359. </glossdef>
  13360. </glossentry>
  13361. <glossentry id='var-STAGING_KERNEL_DIR'><glossterm>STAGING_KERNEL_DIR</glossterm>
  13362. <info>
  13363. STAGING_KERNEL_DIR[doc] = "The directory with kernel headers that are required to build out-of-tree modules."
  13364. </info>
  13365. <glossdef>
  13366. <para role="glossdeffirst">
  13367. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13368. The directory with kernel headers that are required to build out-of-tree
  13369. modules.
  13370. </para>
  13371. </glossdef>
  13372. </glossentry>
  13373. <glossentry id='var-STAGING_LIBDIR'><glossterm>STAGING_LIBDIR</glossterm>
  13374. <info>
  13375. 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)."
  13376. </info>
  13377. <glossdef>
  13378. <para role="glossdeffirst">
  13379. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13380. Specifies the path to the <filename>/usr/lib</filename>
  13381. subdirectory of the sysroot directory for the target for
  13382. which the current recipe is being built
  13383. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  13384. </para>
  13385. </glossdef>
  13386. </glossentry>
  13387. <glossentry id='var-STAGING_LIBDIR_NATIVE'><glossterm>STAGING_LIBDIR_NATIVE</glossterm>
  13388. <info>
  13389. STAGING_LIBDIR_NATIVE[doc] = "Specifies the path to the /usr/lib subdirectory of the sysroot directory for the build host."
  13390. </info>
  13391. <glossdef>
  13392. <para role="glossdeffirst">
  13393. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13394. Specifies the path to the <filename>/usr/lib</filename>
  13395. subdirectory of the sysroot directory for the build host.
  13396. </para>
  13397. </glossdef>
  13398. </glossentry>
  13399. <glossentry id='var-STAMP'><glossterm>STAMP</glossterm>
  13400. <info>
  13401. 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."
  13402. </info>
  13403. <glossdef>
  13404. <para role="glossdeffirst">
  13405. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13406. Specifies the base path used to create recipe stamp files.
  13407. The path to an actual stamp file is constructed by evaluating this
  13408. string and then appending additional information.
  13409. Currently, the default assignment for <filename>STAMP</filename>
  13410. as set in the <filename>meta/conf/bitbake.conf</filename> file
  13411. is:
  13412. <literallayout class='monospaced'>
  13413. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  13414. </literallayout>
  13415. </para>
  13416. <para>
  13417. For information on how BitBake uses stamp files to determine
  13418. if a task should be rerun, see the
  13419. "<ulink url='&YOCTO_DOCS_OM_URL;#stamp-files-and-the-rerunning-of-tasks'>Stamp Files and the Rerunning of Tasks</ulink>"
  13420. section in the Yocto Project Overview and Concepts Manual.
  13421. </para>
  13422. <para>
  13423. See <link linkend='var-STAMPS_DIR'><filename>STAMPS_DIR</filename></link>,
  13424. <link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>,
  13425. <link linkend='var-PN'><filename>PN</filename></link>,
  13426. <link linkend='var-EXTENDPE'><filename>EXTENDPE</filename></link>,
  13427. <link linkend='var-PV'><filename>PV</filename></link>, and
  13428. <link linkend='var-PR'><filename>PR</filename></link> for related variable
  13429. information.
  13430. </para>
  13431. </glossdef>
  13432. </glossentry>
  13433. <glossentry id='var-STAMPS_DIR'><glossterm>STAMPS_DIR</glossterm>
  13434. <info>
  13435. STAMPS_DIR[doc] = "Specifies the base directory in which the OpenEmbedded build system places stamps."
  13436. </info>
  13437. <glossdef>
  13438. <para role="glossdeffirst">
  13439. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13440. Specifies the base directory in which the OpenEmbedded
  13441. build system places stamps.
  13442. The default directory is
  13443. <filename>${TMPDIR}/stamps</filename>.
  13444. </para>
  13445. </glossdef>
  13446. </glossentry>
  13447. <glossentry id='var-STRIP'><glossterm>STRIP</glossterm>
  13448. <info>
  13449. STRIP[doc] = "Minimal command and arguments to run 'strip' (strip symbols)."
  13450. </info>
  13451. <glossdef>
  13452. <para role="glossdeffirst">
  13453. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13454. The minimal command and arguments to run
  13455. <filename>strip</filename>, which is used to strip
  13456. symbols.
  13457. </para>
  13458. </glossdef>
  13459. </glossentry>
  13460. <glossentry id='var-SUMMARY'><glossterm>SUMMARY</glossterm>
  13461. <info>
  13462. 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."
  13463. </info>
  13464. <glossdef>
  13465. <para role="glossdeffirst">
  13466. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13467. The short (72 characters or less) summary of the binary package for packaging
  13468. systems such as <filename>opkg</filename>, <filename>rpm</filename>, or
  13469. <filename>dpkg</filename>.
  13470. By default, <filename>SUMMARY</filename> is used to define
  13471. the <link linkend='var-DESCRIPTION'><filename>DESCRIPTION</filename></link>
  13472. variable if <filename>DESCRIPTION</filename> is not set
  13473. in the recipe.
  13474. </para>
  13475. </glossdef>
  13476. </glossentry>
  13477. <glossentry id='var-SVNDIR'><glossterm>SVNDIR</glossterm>
  13478. <info>
  13479. SVNDIR[doc] = "The directory where Subversion checkouts are stored."
  13480. </info>
  13481. <glossdef>
  13482. <para role="glossdeffirst">
  13483. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13484. The directory in which files checked out of a Subversion
  13485. system are stored.
  13486. </para>
  13487. </glossdef>
  13488. </glossentry>
  13489. <glossentry id='var-SYSLINUX_DEFAULT_CONSOLE'><glossterm>SYSLINUX_DEFAULT_CONSOLE</glossterm>
  13490. <info>
  13491. SYSLINUX_DEFAULT_CONSOLE[doc] = "Specifies the kernel boot default console."
  13492. </info>
  13493. <glossdef>
  13494. <para role="glossdeffirst">
  13495. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13496. Specifies the kernel boot default console.
  13497. If you want to use a console other than the default,
  13498. set this variable in your recipe as follows where "X" is
  13499. the console number you want to use:
  13500. <literallayout class='monospaced'>
  13501. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  13502. </literallayout>
  13503. </para>
  13504. <para>
  13505. The
  13506. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13507. class initially sets this variable to null but then checks
  13508. for a value later.
  13509. </para>
  13510. </glossdef>
  13511. </glossentry>
  13512. <glossentry id='var-SYSLINUX_OPTS'><glossterm>SYSLINUX_OPTS</glossterm>
  13513. <info>
  13514. SYSLINUX_OPTS[doc] = "Lists additional options to add to the syslinux file."
  13515. </info>
  13516. <glossdef>
  13517. <para role="glossdeffirst">
  13518. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13519. Lists additional options to add to the syslinux file.
  13520. You need to set this variable in your recipe.
  13521. If you want to list multiple options, separate the options
  13522. with a semicolon character (<filename>;</filename>).
  13523. </para>
  13524. <para>
  13525. The
  13526. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13527. class uses this variable to create a set of options.
  13528. </para>
  13529. </glossdef>
  13530. </glossentry>
  13531. <glossentry id='var-SYSLINUX_SERIAL'><glossterm>SYSLINUX_SERIAL</glossterm>
  13532. <info>
  13533. SYSLINUX_SERIAL[doc] = "Specifies the alternate serial port or turns it off."
  13534. </info>
  13535. <glossdef>
  13536. <para role="glossdeffirst">
  13537. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13538. Specifies the alternate serial port or turns it off.
  13539. To turn off serial, set this variable to an empty string
  13540. in your recipe.
  13541. The variable's default value is set in the
  13542. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13543. class as follows:
  13544. <literallayout class='monospaced'>
  13545. SYSLINUX_SERIAL ?= "0 115200"
  13546. </literallayout>
  13547. </para>
  13548. <para>
  13549. The class checks for and uses the variable as needed.
  13550. </para>
  13551. </glossdef>
  13552. </glossentry>
  13553. <glossentry id='var-SYSLINUX_SPLASH'><glossterm>SYSLINUX_SPLASH</glossterm>
  13554. <info>
  13555. SYSLINUX_SPLASH[doc] = "An .LSS file used as the background for the VGA boot menu when you use the boot menu."
  13556. </info>
  13557. <glossdef>
  13558. <para role="glossdeffirst">
  13559. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13560. An <filename>.LSS</filename> file used as the background
  13561. for the VGA boot menu when you use the boot menu.
  13562. You need to set this variable in your recipe.
  13563. </para>
  13564. <para>
  13565. The
  13566. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13567. class checks for this variable and if found, the
  13568. OpenEmbedded build system installs the splash screen.
  13569. </para>
  13570. </glossdef>
  13571. </glossentry>
  13572. <glossentry id='var-SYSLINUX_SERIAL_TTY'><glossterm>SYSLINUX_SERIAL_TTY</glossterm>
  13573. <info>
  13574. SYSLINUX_SERIAL_TTY[doc] = "Specifies the alternate console=tty... kernel boot argument."
  13575. </info>
  13576. <glossdef>
  13577. <para role="glossdeffirst">
  13578. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13579. Specifies the alternate console=tty... kernel boot argument.
  13580. The variable's default value is set in the
  13581. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13582. class as follows:
  13583. <literallayout class='monospaced'>
  13584. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  13585. </literallayout>
  13586. </para>
  13587. <para>
  13588. The class checks for and uses the variable as needed.
  13589. </para>
  13590. </glossdef>
  13591. </glossentry>
  13592. <glossentry id='var-SYSROOT_DESTDIR'><glossterm>SYSROOT_DESTDIR</glossterm>
  13593. <info>
  13594. SYSROOT_DESTDIR[doc] = "Points to the temporary work directory (default ${WORKDIR}/sysroot-destdir) where the files populated into the sysroot are assembled during the do_populate_sysroot task."
  13595. </info>
  13596. <glossdef>
  13597. <para role="glossdeffirst">
  13598. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13599. Points to the temporary directory under the work directory
  13600. (default
  13601. "<filename>${</filename><link linkend='var-WORKDIR'><filename>WORKDIR</filename></link><filename>}/sysroot-destdir</filename>")
  13602. where the files populated into the sysroot are assembled
  13603. during the
  13604. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  13605. task.
  13606. </para>
  13607. </glossdef>
  13608. </glossentry>
  13609. <glossentry id='var-SYSROOT_DIRS'><glossterm>SYSROOT_DIRS</glossterm>
  13610. <info>
  13611. SYSROOT_DIRS[doc] = "Directories that are staged into the sysroot by the do_populate_sysroot task."
  13612. </info>
  13613. <glossdef>
  13614. <para role="glossdeffirst">
  13615. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13616. Directories that are staged into the sysroot by the
  13617. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  13618. task.
  13619. By default, the following directories are staged:
  13620. <literallayout class='monospaced'>
  13621. SYSROOT_DIRS = " \
  13622. ${includedir} \
  13623. ${libdir} \
  13624. ${base_libdir} \
  13625. ${nonarch_base_libdir} \
  13626. ${datadir} \
  13627. "
  13628. </literallayout>
  13629. </para>
  13630. </glossdef>
  13631. </glossentry>
  13632. <glossentry id='var-SYSROOT_DIRS_BLACKLIST'><glossterm>SYSROOT_DIRS_BLACKLIST</glossterm>
  13633. <info>
  13634. SYSROOT_DIRS_BLACKLIST[doc] = "Directories that are not staged into the sysroot by the do_populate_sysroot task."
  13635. </info>
  13636. <glossdef>
  13637. <para role="glossdeffirst">
  13638. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13639. Directories that are not staged into the sysroot by the
  13640. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  13641. task.
  13642. You can use this variable to exclude certain subdirectories
  13643. of directories listed in
  13644. <link linkend='var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></link>
  13645. from staging.
  13646. By default, the following directories are not staged:
  13647. <literallayout class='monospaced'>
  13648. SYSROOT_DIRS_BLACKLIST = " \
  13649. ${mandir} \
  13650. ${docdir} \
  13651. ${infodir} \
  13652. ${datadir}/locale \
  13653. ${datadir}/applications \
  13654. ${datadir}/fonts \
  13655. ${datadir}/pixmaps \
  13656. "
  13657. </literallayout>
  13658. </para>
  13659. </glossdef>
  13660. </glossentry>
  13661. <glossentry id='var-SYSROOT_DIRS_NATIVE'><glossterm>SYSROOT_DIRS_NATIVE</glossterm>
  13662. <info>
  13663. SYSROOT_DIRS_NATIVE[doc] = "Extra directories staged into the sysroot by the do_populate_sysroot task for -native recipes, in addition to those specified in SYSROOT_DIRS."
  13664. </info>
  13665. <glossdef>
  13666. <para role="glossdeffirst">
  13667. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13668. Extra directories staged into the sysroot by the
  13669. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  13670. task for <filename>-native</filename> recipes, in addition
  13671. to those specified in
  13672. <link linkend='var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></link>.
  13673. By default, the following extra directories are staged:
  13674. <literallayout class='monospaced'>
  13675. SYSROOT_DIRS_NATIVE = " \
  13676. ${bindir} \
  13677. ${sbindir} \
  13678. ${base_bindir} \
  13679. ${base_sbindir} \
  13680. ${libexecdir} \
  13681. ${sysconfdir} \
  13682. ${localstatedir} \
  13683. "
  13684. </literallayout>
  13685. <note>
  13686. Programs built by <filename>-native</filename> recipes
  13687. run directly from the sysroot
  13688. (<link linkend='var-STAGING_DIR_NATIVE'><filename>STAGING_DIR_NATIVE</filename></link>),
  13689. which is why additional directories containing program
  13690. executables and supporting files need to be staged.
  13691. </note>
  13692. </para>
  13693. </glossdef>
  13694. </glossentry>
  13695. <glossentry id='var-SYSROOT_PREPROCESS_FUNCS'><glossterm>SYSROOT_PREPROCESS_FUNCS</glossterm>
  13696. <info>
  13697. 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."
  13698. </info>
  13699. <glossdef>
  13700. <para role="glossdeffirst">
  13701. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13702. A list of functions to execute after files are staged into
  13703. the sysroot.
  13704. These functions are usually used to apply additional
  13705. processing on the staged files, or to stage additional
  13706. files.
  13707. </para>
  13708. </glossdef>
  13709. </glossentry>
  13710. <glossentry id='var-SYSTEMD_AUTO_ENABLE'><glossterm>SYSTEMD_AUTO_ENABLE</glossterm>
  13711. <info>
  13712. SYSTEMD_AUTO_ENABLE[doc] = "For recipes that inherit the systemd class, this variable specifies whether the specified service in SYSTEMD_SERVICE should start automatically or not."
  13713. </info>
  13714. <glossdef>
  13715. <para role="glossdeffirst">
  13716. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13717. When inheriting the
  13718. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  13719. class, this variable specifies whether the specified service
  13720. in
  13721. <link linkend='var-SYSTEMD_SERVICE'><filename>SYSTEMD_SERVICE</filename></link>
  13722. should start automatically or not.
  13723. By default, the service is enabled to automatically start
  13724. at boot time.
  13725. The default setting is in the
  13726. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  13727. class as follows:
  13728. <literallayout class='monospaced'>
  13729. SYSTEMD_AUTO_ENABLE ??= "enable"
  13730. </literallayout>
  13731. </para>
  13732. <para>
  13733. You can disable the service by setting the variable to
  13734. "disable".
  13735. </para>
  13736. </glossdef>
  13737. </glossentry>
  13738. <glossentry id='var-SYSTEMD_BOOT_CFG'><glossterm>SYSTEMD_BOOT_CFG</glossterm>
  13739. <info>
  13740. 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."
  13741. </info>
  13742. <glossdef>
  13743. <para role="glossdeffirst">
  13744. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13745. When
  13746. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  13747. is set to "systemd-boot", the
  13748. <filename>SYSTEMD_BOOT_CFG</filename> variable specifies the
  13749. configuration file that should be used.
  13750. By default, the
  13751. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  13752. class sets the <filename>SYSTEMD_BOOT_CFG</filename> as
  13753. follows:
  13754. <literallayout class='monospaced'>
  13755. SYSTEMD_BOOT_CFG ?= "${<link linkend='var-S'>S</link>}/loader.conf"
  13756. </literallayout>
  13757. </para>
  13758. <para>
  13759. For information on Systemd-boot, see the
  13760. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  13761. </para>
  13762. </glossdef>
  13763. </glossentry>
  13764. <glossentry id='var-SYSTEMD_BOOT_ENTRIES'><glossterm>SYSTEMD_BOOT_ENTRIES</glossterm>
  13765. <info>
  13766. 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 install that contain one boot entry per file."
  13767. </info>
  13768. <glossdef>
  13769. <para role="glossdeffirst">
  13770. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13771. When
  13772. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  13773. is set to "systemd-boot", the
  13774. <filename>SYSTEMD_BOOT_ENTRIES</filename> variable specifies
  13775. a list of entry files
  13776. (<filename>*.conf</filename>) to install that contain
  13777. one boot entry per file.
  13778. By default, the
  13779. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  13780. class sets the <filename>SYSTEMD_BOOT_ENTRIES</filename> as
  13781. follows:
  13782. <literallayout class='monospaced'>
  13783. SYSTEMD_BOOT_ENTRIES ?= ""
  13784. </literallayout>
  13785. </para>
  13786. <para>
  13787. For information on Systemd-boot, see the
  13788. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  13789. </para>
  13790. </glossdef>
  13791. </glossentry>
  13792. <glossentry id='var-SYSTEMD_BOOT_TIMEOUT'><glossterm>SYSTEMD_BOOT_TIMEOUT</glossterm>
  13793. <info>
  13794. SYSTEMD_BOOT_TIMEOUT[doc] = "When EFI_PROVIDER is set to "systemd-boot", the SYSTEMD_BOOT_TIMEOUT variable specifies the boot menu timeout in seconds."
  13795. </info>
  13796. <glossdef>
  13797. <para role="glossdeffirst">
  13798. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13799. When
  13800. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  13801. is set to "systemd-boot", the
  13802. <filename>SYSTEMD_BOOT_TIMEOUT</filename> variable specifies
  13803. the boot menu timeout in seconds.
  13804. By default, the
  13805. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  13806. class sets the <filename>SYSTEMD_BOOT_TIMEOUT</filename> as
  13807. follows:
  13808. <literallayout class='monospaced'>
  13809. SYSTEMD_BOOT_TIMEOUT ?= "10"
  13810. </literallayout>
  13811. </para>
  13812. <para>
  13813. For information on Systemd-boot, see the
  13814. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  13815. </para>
  13816. </glossdef>
  13817. </glossentry>
  13818. <glossentry id='var-SYSTEMD_PACKAGES'><glossterm>SYSTEMD_PACKAGES</glossterm>
  13819. <info>
  13820. 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."
  13821. </info>
  13822. <glossdef>
  13823. <para role="glossdeffirst">
  13824. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13825. When inheriting the
  13826. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  13827. class, this variable locates the systemd unit files when
  13828. they are not found in the main recipe's package.
  13829. By default, the
  13830. <filename>SYSTEMD_PACKAGES</filename> variable is set
  13831. such that the systemd unit files are assumed to reside in
  13832. the recipes main package:
  13833. <literallayout class='monospaced'>
  13834. SYSTEMD_PACKAGES ?= "${PN}"
  13835. </literallayout>
  13836. </para>
  13837. <para>
  13838. If these unit files are not in this recipe's main
  13839. package, you need to use
  13840. <filename>SYSTEMD_PACKAGES</filename> to list the package
  13841. or packages in which the build system can find the systemd
  13842. unit files.
  13843. </para>
  13844. </glossdef>
  13845. </glossentry>
  13846. <glossentry id='var-SYSTEMD_SERVICE'><glossterm>SYSTEMD_SERVICE</glossterm>
  13847. <info>
  13848. SYSTEMD_SERVICE[doc] = "For recipes that inherit the systemd class, this variable specifies the systemd service name for a package."
  13849. </info>
  13850. <glossdef>
  13851. <para role="glossdeffirst">
  13852. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13853. When inheriting the
  13854. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  13855. class, this variable specifies the systemd service name for
  13856. a package.
  13857. </para>
  13858. <para>
  13859. When you specify this file in your recipe, use a package
  13860. name override to indicate the package to which the value
  13861. applies.
  13862. Here is an example from the connman recipe:
  13863. <literallayout class='monospaced'>
  13864. SYSTEMD_SERVICE_${PN} = "connman.service"
  13865. </literallayout>
  13866. </para>
  13867. </glossdef>
  13868. </glossentry>
  13869. <glossentry id='var-SYSVINIT_ENABLED_GETTYS'><glossterm>SYSVINIT_ENABLED_GETTYS</glossterm>
  13870. <info>
  13871. SYSVINIT_ENABLED_GETTYS[doc] = "Specifies which virtual terminals should run a getty, the default is '1'."
  13872. </info>
  13873. <glossdef>
  13874. <para role="glossdeffirst">
  13875. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13876. When using
  13877. <ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-enabling-system-services'>SysVinit</ulink>,
  13878. specifies a space-separated list of the virtual terminals
  13879. that should run a
  13880. <ulink url='http://en.wikipedia.org/wiki/Getty_%28Unix%29'>getty</ulink>
  13881. (allowing login), assuming
  13882. <link linkend='var-USE_VT'><filename>USE_VT</filename></link>
  13883. is not set to "0".
  13884. </para>
  13885. <para>
  13886. The default value for
  13887. <filename>SYSVINIT_ENABLED_GETTYS</filename> is "1"
  13888. (i.e. only run a getty on the first virtual terminal).
  13889. </para>
  13890. </glossdef>
  13891. </glossentry>
  13892. </glossdiv>
  13893. <glossdiv id='var-glossary-t'><title>T</title>
  13894. <glossentry id='var-T'><glossterm>T</glossterm>
  13895. <info>
  13896. 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."
  13897. </info>
  13898. <glossdef>
  13899. <para role="glossdeffirst">
  13900. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13901. This variable points to a directory were BitBake places
  13902. temporary files, which consist mostly of task logs and
  13903. scripts, when building a particular recipe.
  13904. The variable is typically set as follows:
  13905. <literallayout class='monospaced'>
  13906. T = "${WORKDIR}/temp"
  13907. </literallayout>
  13908. </para>
  13909. <para>
  13910. The <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  13911. is the directory into which BitBake unpacks and builds the
  13912. recipe.
  13913. The default <filename>bitbake.conf</filename> file sets this variable.</para>
  13914. <para>The <filename>T</filename> variable is not to be confused with
  13915. the <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link> variable,
  13916. which points to the root of the directory tree where BitBake
  13917. places the output of an entire build.
  13918. </para>
  13919. </glossdef>
  13920. </glossentry>
  13921. <glossentry id='var-TARGET_ARCH'><glossterm>TARGET_ARCH</glossterm>
  13922. <info>
  13923. TARGET_ARCH[doc] = "The architecture of the device being built. The OpenEmbedded build system supports the following architectures: arm, mips, ppc, x86, x86-64."
  13924. </info>
  13925. <glossdef>
  13926. <para role="glossdeffirst">
  13927. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13928. The target machine's architecture.
  13929. The OpenEmbedded build system supports many
  13930. architectures.
  13931. Here is an example list of architectures supported.
  13932. This list is by no means complete as the architecture
  13933. is configurable:
  13934. <literallayout class='monospaced'>
  13935. arm
  13936. i586
  13937. x86_64
  13938. powerpc
  13939. powerpc64
  13940. mips
  13941. mipsel
  13942. </literallayout>
  13943. </para>
  13944. <para>
  13945. For additional information on machine architectures, see
  13946. the
  13947. <link linkend='var-TUNE_ARCH'><filename>TUNE_ARCH</filename></link>
  13948. variable.
  13949. </para>
  13950. </glossdef>
  13951. </glossentry>
  13952. <glossentry id='var-TARGET_AS_ARCH'><glossterm>TARGET_AS_ARCH</glossterm>
  13953. <info>
  13954. TARGET_AS_ARCH[doc] = "Specifies architecture-specific assembler flags for the target system."
  13955. </info>
  13956. <glossdef>
  13957. <para role="glossdeffirst">
  13958. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13959. Specifies architecture-specific assembler flags for the
  13960. target system.
  13961. <filename>TARGET_AS_ARCH</filename> is initialized from
  13962. <link linkend='var-TUNE_ASARGS'><filename>TUNE_ASARGS</filename></link>
  13963. by default in the BitBake configuration file
  13964. (<filename>meta/conf/bitbake.conf</filename>):
  13965. <literallayout class='monospaced'>
  13966. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  13967. </literallayout>
  13968. </para>
  13969. </glossdef>
  13970. </glossentry>
  13971. <glossentry id='var-TARGET_CC_ARCH'><glossterm>TARGET_CC_ARCH</glossterm>
  13972. <info>
  13973. TARGET_CC_ARCH[doc] = "Specifies architecture-specific C compiler flags for the target system."
  13974. </info>
  13975. <glossdef>
  13976. <para role="glossdeffirst">
  13977. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13978. Specifies architecture-specific C compiler flags for the
  13979. target system.
  13980. <filename>TARGET_CC_ARCH</filename> is initialized from
  13981. <link linkend='var-TUNE_CCARGS'><filename>TUNE_CCARGS</filename></link>
  13982. by default.
  13983. <note>
  13984. It is a common workaround to append
  13985. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  13986. to <filename>TARGET_CC_ARCH</filename>
  13987. in recipes that build software for the target that
  13988. would not otherwise respect the exported
  13989. <filename>LDFLAGS</filename> variable.
  13990. </note>
  13991. </para>
  13992. </glossdef>
  13993. </glossentry>
  13994. <glossentry id='var-TARGET_CC_KERNEL_ARCH'><glossterm>TARGET_CC_KERNEL_ARCH</glossterm>
  13995. <info>
  13996. TARGET_CC_KERNEL_ARCH[doc] = "This is a specific kernel compiler flag for a CPU or Application Binary Interface (ABI) tune."
  13997. </info>
  13998. <glossdef>
  13999. <para role="glossdeffirst">
  14000. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14001. This is a specific kernel compiler flag for a CPU or
  14002. Application Binary Interface (ABI) tune.
  14003. The flag is used rarely and only for cases where a
  14004. userspace
  14005. <link linkend='var-TUNE_CCARGS'><filename>TUNE_CCARGS</filename></link>
  14006. is not compatible with the kernel compilation.
  14007. The <filename>TARGET_CC_KERNEL_ARCH</filename> variable
  14008. allows the kernel (and associated modules) to use a
  14009. different configuration.
  14010. See the
  14011. <filename>meta/conf/machine/include/arm/feature-arm-thumb.inc</filename>
  14012. file in the
  14013. <link linkend='source-directory'>Source Directory</link>
  14014. for an example.
  14015. </para>
  14016. </glossdef>
  14017. </glossentry>
  14018. <glossentry id='var-TARGET_CFLAGS'><glossterm>TARGET_CFLAGS</glossterm>
  14019. <info>
  14020. TARGET_CFLAGS[doc] = "Flags passed to the C compiler for the target system. This variable evaluates to the same as CFLAGS."
  14021. </info>
  14022. <glossdef>
  14023. <para role="glossdeffirst">
  14024. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14025. Specifies the flags to pass to the C compiler when building
  14026. for the target.
  14027. When building in the target context,
  14028. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  14029. is set to the value of this variable by default.
  14030. </para>
  14031. <para>
  14032. Additionally, the SDK's environment setup script sets
  14033. the <filename>CFLAGS</filename> variable in the environment
  14034. to the <filename>TARGET_CFLAGS</filename> value so that
  14035. executables built using the SDK also have the flags
  14036. applied.
  14037. </para>
  14038. </glossdef>
  14039. </glossentry>
  14040. <glossentry id='var-TARGET_CPPFLAGS'><glossterm>TARGET_CPPFLAGS</glossterm>
  14041. <info>
  14042. 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."
  14043. </info>
  14044. <glossdef>
  14045. <para role="glossdeffirst">
  14046. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14047. Specifies the flags to pass to the C pre-processor
  14048. (i.e. to both the C and the C++ compilers) when building
  14049. for the target.
  14050. When building in the target context,
  14051. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  14052. is set to the value of this variable by default.
  14053. </para>
  14054. <para>
  14055. Additionally, the SDK's environment setup script sets
  14056. the <filename>CPPFLAGS</filename> variable in the
  14057. environment to the <filename>TARGET_CPPFLAGS</filename>
  14058. value so that executables built using the SDK also have
  14059. the flags applied.
  14060. </para>
  14061. </glossdef>
  14062. </glossentry>
  14063. <glossentry id='var-TARGET_CXXFLAGS'><glossterm>TARGET_CXXFLAGS</glossterm>
  14064. <info>
  14065. TARGET_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the target."
  14066. </info>
  14067. <glossdef>
  14068. <para role="glossdeffirst">
  14069. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14070. Specifies the flags to pass to the C++ compiler when
  14071. building for the target.
  14072. When building in the target context,
  14073. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  14074. is set to the value of this variable by default.
  14075. </para>
  14076. <para>
  14077. Additionally, the SDK's environment setup script sets
  14078. the <filename>CXXFLAGS</filename> variable in the
  14079. environment to the <filename>TARGET_CXXFLAGS</filename>
  14080. value so that executables built using the SDK also have
  14081. the flags applied.
  14082. </para>
  14083. </glossdef>
  14084. </glossentry>
  14085. <glossentry id='var-TARGET_FPU'><glossterm>TARGET_FPU</glossterm>
  14086. <info>
  14087. 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."
  14088. </info>
  14089. <glossdef>
  14090. <para role="glossdeffirst">
  14091. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14092. Specifies the method for handling FPU code.
  14093. For FPU-less targets, which include most ARM CPUs, the variable must be
  14094. set to "soft".
  14095. If not, the kernel emulation gets used, which results in a performance penalty.
  14096. </para>
  14097. </glossdef>
  14098. </glossentry>
  14099. <glossentry id='var-TARGET_LD_ARCH'><glossterm>TARGET_LD_ARCH</glossterm>
  14100. <info>
  14101. TARGET_LD_ARCH[doc] = "Specifies architecture-specific linker flags for the target system."
  14102. </info>
  14103. <glossdef>
  14104. <para role="glossdeffirst">
  14105. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14106. Specifies architecture-specific linker flags for the
  14107. target system.
  14108. <filename>TARGET_LD_ARCH</filename> is initialized from
  14109. <link linkend='var-TUNE_LDARGS'><filename>TUNE_LDARGS</filename></link>
  14110. by default in the BitBake configuration file
  14111. (<filename>meta/conf/bitbake.conf</filename>):
  14112. <literallayout class='monospaced'>
  14113. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  14114. </literallayout>
  14115. </para>
  14116. </glossdef>
  14117. </glossentry>
  14118. <glossentry id='var-TARGET_LDFLAGS'><glossterm>TARGET_LDFLAGS</glossterm>
  14119. <info>
  14120. TARGET_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the target."
  14121. </info>
  14122. <glossdef>
  14123. <para role="glossdeffirst">
  14124. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14125. Specifies the flags to pass to the linker when building
  14126. for the target.
  14127. When building in the target context,
  14128. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  14129. is set to the value of this variable by default.
  14130. </para>
  14131. <para>
  14132. Additionally, the SDK's environment setup script sets
  14133. the
  14134. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  14135. variable in the environment to the
  14136. <filename>TARGET_LDFLAGS</filename> value so that
  14137. executables built using the SDK also have the flags
  14138. applied.
  14139. </para>
  14140. </glossdef>
  14141. </glossentry>
  14142. <glossentry id='var-TARGET_OS'><glossterm>TARGET_OS</glossterm>
  14143. <info>
  14144. TARGET_OS[doc] = "Specifies the target's operating system."
  14145. </info>
  14146. <glossdef>
  14147. <para role="glossdeffirst">
  14148. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14149. Specifies the target's operating system.
  14150. The variable can be set to "linux" for glibc-based systems
  14151. (GNU C Library) and to "linux-musl" for musl libc.
  14152. For ARM/EABI targets, "linux-gnueabi" and "linux-musleabi"
  14153. possible values exist.
  14154. </para>
  14155. </glossdef>
  14156. </glossentry>
  14157. <glossentry id='var-TARGET_PREFIX'><glossterm>TARGET_PREFIX</glossterm>
  14158. <info>
  14159. TARGET_PREFIX[doc] = "The prefix used for the toolchain binary target tools."
  14160. </info>
  14161. <glossdef>
  14162. <para role="glossdeffirst">
  14163. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14164. Specifies the prefix used for the toolchain binary target
  14165. tools.
  14166. </para>
  14167. <para>
  14168. Depending on the type of recipe and the build target,
  14169. <filename>TARGET_PREFIX</filename> is set as follows:
  14170. <itemizedlist>
  14171. <listitem><para>
  14172. For recipes building for the target machine,
  14173. the value is
  14174. "${<link linkend='var-TARGET_SYS'>TARGET_SYS</link>}-".
  14175. </para></listitem>
  14176. <listitem><para>
  14177. For native recipes, the build system sets the
  14178. variable to the value of
  14179. <filename>BUILD_PREFIX</filename>.
  14180. </para></listitem>
  14181. <listitem><para>
  14182. For native SDK recipes
  14183. (<filename>nativesdk</filename>), the
  14184. build system sets the variable to the value of
  14185. <filename>SDK_PREFIX</filename>.
  14186. </para></listitem>
  14187. </itemizedlist>
  14188. </para>
  14189. </glossdef>
  14190. </glossentry>
  14191. <glossentry id='var-TARGET_SYS'><glossterm>TARGET_SYS</glossterm>
  14192. <info>
  14193. TARGET_SYS[doc] = "The target system is comprised of TARGET_ARCH,TARGET_VENDOR and TARGET_OS."
  14194. </info>
  14195. <glossdef>
  14196. <para role="glossdeffirst">
  14197. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14198. Specifies the system, including the architecture and the
  14199. operating system, for which the build is occurring in
  14200. the context of the current recipe.
  14201. </para>
  14202. <para>
  14203. The OpenEmbedded build system automatically sets this
  14204. variable based on
  14205. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>,
  14206. <link linkend='var-TARGET_VENDOR'><filename>TARGET_VENDOR</filename></link>,
  14207. and
  14208. <link linkend='var-TARGET_OS'><filename>TARGET_OS</filename></link>
  14209. variables.
  14210. <note>
  14211. You do not need to set the
  14212. <filename>TARGET_SYS</filename> variable yourself.
  14213. </note>
  14214. </para>
  14215. <para>
  14216. Consider these two examples:
  14217. <itemizedlist>
  14218. <listitem><para>
  14219. Given a native recipe on a 32-bit, x86 machine
  14220. running Linux, the value is "i686-linux".
  14221. </para></listitem>
  14222. <listitem><para>
  14223. Given a recipe being built for a little-endian,
  14224. MIPS target running Linux, the value might be
  14225. "mipsel-linux".
  14226. </para></listitem>
  14227. </itemizedlist>
  14228. </para>
  14229. </glossdef>
  14230. </glossentry>
  14231. <glossentry id='var-TARGET_VENDOR'><glossterm>TARGET_VENDOR</glossterm>
  14232. <info>
  14233. TARGET_VENDOR[doc] = "The name of the target vendor."
  14234. </info>
  14235. <glossdef>
  14236. <para role="glossdeffirst">
  14237. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14238. Specifies the name of the target vendor.
  14239. </para>
  14240. </glossdef>
  14241. </glossentry>
  14242. <glossentry id='var-TCLIBC'><glossterm>TCLIBC</glossterm>
  14243. <info>
  14244. TCLIBC[doc] = "Specifies GNU standard C library (libc) variant to use during the build process. You can select 'glibc', 'musl' or "newlib."
  14245. </info>
  14246. <glossdef>
  14247. <para role="glossdeffirst">
  14248. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14249. Specifies the GNU standard C library
  14250. (<filename>libc</filename>) variant to use during the
  14251. build process.
  14252. This variable replaces <filename>POKYLIBC</filename>,
  14253. which is no longer supported.
  14254. </para>
  14255. <para>
  14256. You can select "glibc", "musl", "newlib", or "baremetal"
  14257. </para>
  14258. </glossdef>
  14259. </glossentry>
  14260. <glossentry id='var-TCLIBCAPPEND'><glossterm>TCLIBCAPPEND</glossterm>
  14261. <info>
  14262. TCLIBCAPPEND[doc] = "Specifies a suffix appended to TMPDIR that identifies the libc variant for the build."
  14263. </info>
  14264. <glossdef>
  14265. <para role="glossdeffirst">
  14266. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14267. Specifies a suffix to be appended onto the
  14268. <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link>
  14269. value.
  14270. The suffix identifies the <filename>libc</filename> variant
  14271. for building.
  14272. When you are building for multiple variants with the same
  14273. <link linkend='build-directory'>Build Directory</link>,
  14274. this mechanism ensures that output for different
  14275. <filename>libc</filename> variants is kept separate to
  14276. avoid potential conflicts.
  14277. </para>
  14278. <para>
  14279. In the <filename>defaultsetup.conf</filename> file, the
  14280. default value of <filename>TCLIBCAPPEND</filename> is
  14281. "-${TCLIBC}".
  14282. However, distros such as poky, which normally only support
  14283. one <filename>libc</filename> variant, set
  14284. <filename>TCLIBCAPPEND</filename> to "" in their distro
  14285. configuration file resulting in no suffix being applied.
  14286. </para>
  14287. </glossdef>
  14288. </glossentry>
  14289. <glossentry id='var-TCMODE'><glossterm>TCMODE</glossterm>
  14290. <info>
  14291. TCMODE[doc] = "Enables an external toolchain (where provided by an additional layer) if set to a value other than 'default'."
  14292. </info>
  14293. <glossdef>
  14294. <para role="glossdeffirst">
  14295. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14296. Specifies the toolchain selector.
  14297. <filename>TCMODE</filename> controls the characteristics
  14298. of the generated packages and images by telling the
  14299. OpenEmbedded build system which toolchain profile to use.
  14300. By default, the OpenEmbedded build system builds its own
  14301. internal toolchain.
  14302. The variable's default value is "default", which uses
  14303. that internal toolchain.
  14304. <note>
  14305. If <filename>TCMODE</filename> is set to a value
  14306. other than "default", then it is your responsibility
  14307. to ensure that the toolchain is compatible with the
  14308. default toolchain.
  14309. Using older or newer versions of these components
  14310. might cause build problems.
  14311. See the Release Notes for the Yocto Project release
  14312. for the specific components with which the toolchain
  14313. must be compatible.
  14314. To access the Release Notes, go to the
  14315. <ulink url='&YOCTO_HOME_URL;/software-overview/downloads/'>Downloads</ulink>
  14316. page on the Yocto Project website and click on the
  14317. "RELEASE INFORMATION" link for the appropriate
  14318. release.
  14319. </note>
  14320. </para>
  14321. <para>
  14322. The <filename>TCMODE</filename> variable is similar to
  14323. <link linkend='var-TCLIBC'><filename>TCLIBC</filename></link>,
  14324. which controls the variant of the GNU standard C library
  14325. (<filename>libc</filename>) used during the build process:
  14326. <filename>glibc</filename> or <filename>musl</filename>.
  14327. </para>
  14328. <para>
  14329. With additional layers, it is possible to use a pre-compiled
  14330. external toolchain.
  14331. One example is the Sourcery G++ Toolchain.
  14332. The support for this toolchain resides in the separate
  14333. <trademark class='registered'>Mentor Graphics</trademark>
  14334. <filename>meta-sourcery</filename> layer at
  14335. <ulink url='http://github.com/MentorEmbedded/meta-sourcery/'></ulink>.
  14336. </para>
  14337. <para>
  14338. The layer's <filename>README</filename> file contains
  14339. information on how to use the Sourcery G++ Toolchain as
  14340. an external toolchain.
  14341. In summary, you must be sure to add the layer to your
  14342. <filename>bblayers.conf</filename> file in front of the
  14343. <filename>meta</filename> layer and then set the
  14344. <filename>EXTERNAL_TOOLCHAIN</filename>
  14345. variable in your <filename>local.conf</filename> file
  14346. to the location in which you installed the toolchain.
  14347. </para>
  14348. <para>
  14349. The fundamentals used for this example apply to any
  14350. external toolchain.
  14351. You can use <filename>meta-sourcery</filename> as a
  14352. template for adding support for other external toolchains.
  14353. </para>
  14354. </glossdef>
  14355. </glossentry>
  14356. <glossentry id='var-TEST_EXPORT_DIR'><glossterm>TEST_EXPORT_DIR</glossterm>
  14357. <info>
  14358. TEST_EXPORT_DIR[doc] = "The location the OpenEmbedded build system uses to export tests when the TEST_EXPORT_ONLY variable is set to "1"."
  14359. </info>
  14360. <glossdef>
  14361. <para role="glossdeffirst">
  14362. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14363. The location the OpenEmbedded build system uses to export
  14364. tests when the
  14365. <link linkend='var-TEST_EXPORT_ONLY'><filename>TEST_EXPORT_ONLY</filename></link>
  14366. variable is set to "1".
  14367. </para>
  14368. <para>
  14369. The <filename>TEST_EXPORT_DIR</filename> variable defaults
  14370. to <filename>"${TMPDIR}/testimage/${PN}"</filename>.
  14371. </para>
  14372. </glossdef>
  14373. </glossentry>
  14374. <glossentry id='var-TEST_EXPORT_ONLY'><glossterm>TEST_EXPORT_ONLY</glossterm>
  14375. <info>
  14376. 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."
  14377. </info>
  14378. <glossdef>
  14379. <para role="glossdeffirst">
  14380. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14381. Specifies to export the tests only.
  14382. Set this variable to "1" if you do not want to run the
  14383. tests but you want them to be exported in a manner that
  14384. you to run them outside of the build system.
  14385. </para>
  14386. </glossdef>
  14387. </glossentry>
  14388. <glossentry id='var-TEST_LOG_DIR'><glossterm>TEST_LOG_DIR</glossterm>
  14389. <info>
  14390. TEST_LOG_DIR[doc] = "Holds the SSH log and the boot log for QEMU machines. The TEST_LOG_DIR variable defaults to "${WORKDIR}/testimage"."
  14391. </info>
  14392. <glossdef>
  14393. <para role="glossdeffirst">
  14394. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14395. Holds the SSH log and the boot log for QEMU machines.
  14396. The <filename>TEST_LOG_DIR</filename> variable defaults
  14397. to <filename>"${WORKDIR}/testimage"</filename>.
  14398. <note>
  14399. Actual test results reside in the task log
  14400. (<filename>log.do_testimage</filename>), which is in
  14401. the <filename>${WORKDIR}/temp/</filename> directory.
  14402. </note>
  14403. </para>
  14404. </glossdef>
  14405. </glossentry>
  14406. <glossentry id='var-TEST_POWERCONTROL_CMD'><glossterm>TEST_POWERCONTROL_CMD</glossterm>
  14407. <info>
  14408. TEST_POWERCONTROL_CMD[doc] = "For automated hardware testing, specifies the command to use to control the power of the target machine under test"
  14409. </info>
  14410. <glossdef>
  14411. <para role="glossdeffirst">
  14412. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14413. For automated hardware testing, specifies the command to
  14414. use to control the power of the target machine under test.
  14415. Typically, this command would point to a script that
  14416. performs the appropriate action (e.g. interacting
  14417. with a web-enabled power strip).
  14418. The specified command should expect to receive as the last
  14419. argument "off", "on" or "cycle" specifying to power off,
  14420. on, or cycle (power off and then power on) the device,
  14421. respectively.
  14422. </para>
  14423. </glossdef>
  14424. </glossentry>
  14425. <glossentry id='var-TEST_POWERCONTROL_EXTRA_ARGS'><glossterm>TEST_POWERCONTROL_EXTRA_ARGS</glossterm>
  14426. <info>
  14427. TEST_POWERCONTROL_EXTRA_ARGS[doc] = "For automated hardware testing, specifies additional arguments to pass through to the command specified in TEST_POWERCONTROL_CMD"
  14428. </info>
  14429. <glossdef>
  14430. <para role="glossdeffirst">
  14431. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14432. For automated hardware testing, specifies additional
  14433. arguments to pass through to the command specified in
  14434. <link linkend='var-TEST_POWERCONTROL_CMD'><filename>TEST_POWERCONTROL_CMD</filename></link>.
  14435. Setting <filename>TEST_POWERCONTROL_EXTRA_ARGS</filename>
  14436. is optional.
  14437. You can use it if you wish, for example, to separate the
  14438. machine-specific and non-machine-specific parts of the
  14439. arguments.
  14440. </para>
  14441. </glossdef>
  14442. </glossentry>
  14443. <glossentry id='var-TEST_QEMUBOOT_TIMEOUT'><glossterm>TEST_QEMUBOOT_TIMEOUT</glossterm>
  14444. <info>
  14445. TEST_QEMUBOOT_TIMEOUT[doc] = "The time in seconds allowed for an image to boot before automated runtime tests begin to run against an image."
  14446. </info>
  14447. <glossdef>
  14448. <para role="glossdeffirst">
  14449. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14450. The time in seconds allowed for an image to boot before
  14451. automated runtime tests begin to run against an
  14452. image.
  14453. The default timeout period to allow the boot process to
  14454. reach the login prompt is 500 seconds.
  14455. You can specify a different value in the
  14456. <filename>local.conf</filename> file.
  14457. </para>
  14458. <para>
  14459. For more information on testing images, see the
  14460. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  14461. section in the Yocto Project Development Tasks Manual.
  14462. </para>
  14463. </glossdef>
  14464. </glossentry>
  14465. <glossentry id='var-TEST_SERIALCONTROL_CMD'><glossterm>TEST_SERIALCONTROL_CMD</glossterm>
  14466. <info>
  14467. 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."
  14468. </info>
  14469. <glossdef>
  14470. <para role="glossdeffirst">
  14471. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14472. For automated hardware testing, specifies the command
  14473. to use to connect to the serial console of the target
  14474. machine under test.
  14475. This command simply needs to connect to the serial console
  14476. and forward that connection to standard input and output
  14477. as any normal terminal program does.
  14478. </para>
  14479. <para>
  14480. For example, to use the Picocom terminal program on
  14481. serial device <filename>/dev/ttyUSB0</filename> at
  14482. 115200bps, you would set the variable as follows:
  14483. <literallayout class='monospaced'>
  14484. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  14485. </literallayout>
  14486. </para>
  14487. </glossdef>
  14488. </glossentry>
  14489. <glossentry id='var-TEST_SERIALCONTROL_EXTRA_ARGS'><glossterm>TEST_SERIALCONTROL_EXTRA_ARGS</glossterm>
  14490. <info>
  14491. TEST_SERIALCONTROL_EXTRA_ARGS[doc] = "For automated hardware testing, specifies additional arguments to pass through to the command specified in TEST_SERIALCONTROL_CMD."
  14492. </info>
  14493. <glossdef>
  14494. <para role="glossdeffirst">
  14495. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14496. For automated hardware testing, specifies additional
  14497. arguments to pass through to the command specified in
  14498. <link linkend='var-TEST_SERIALCONTROL_CMD'><filename>TEST_SERIALCONTROL_CMD</filename></link>.
  14499. Setting <filename>TEST_SERIALCONTROL_EXTRA_ARGS</filename>
  14500. is optional.
  14501. You can use it if you wish, for example, to separate the
  14502. machine-specific and non-machine-specific parts of the
  14503. command.
  14504. </para>
  14505. </glossdef>
  14506. </glossentry>
  14507. <glossentry id='var-TEST_SERVER_IP'><glossterm>TEST_SERVER_IP</glossterm>
  14508. <info>
  14509. TEST_SERVER_IP[doc] = "The IP address of the build machine (host machine). This IP address is usually automatically detected."
  14510. </info>
  14511. <glossdef>
  14512. <para role="glossdeffirst">
  14513. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14514. The IP address of the build machine (host machine).
  14515. This IP address is usually automatically detected.
  14516. However, if detection fails, this variable needs to be set
  14517. to the IP address of the build machine (i.e. where
  14518. the build is taking place).
  14519. <note>
  14520. The <filename>TEST_SERVER_IP</filename> variable
  14521. is only used for a small number of tests such as
  14522. the "dnf" test suite, which needs to download
  14523. packages from
  14524. <filename>WORKDIR/oe-rootfs-repo</filename>.
  14525. </note>
  14526. </para>
  14527. </glossdef>
  14528. </glossentry>
  14529. <glossentry id='var-TEST_TARGET'><glossterm>TEST_TARGET</glossterm>
  14530. <info>
  14531. TEST_TARGET[doc] = "For automated runtime testing, specifies the method of deploying the image and running tests on the target machine."
  14532. </info>
  14533. <glossdef>
  14534. <para role="glossdeffirst">
  14535. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14536. Specifies the target controller to use when running tests
  14537. against a test image.
  14538. The default controller to use is "QemuTarget":
  14539. <literallayout class='monospaced'>
  14540. TEST_TARGET = "QemuTarget"
  14541. </literallayout>
  14542. </para>
  14543. <para>
  14544. A target controller is a class that defines how an
  14545. image gets deployed on a target and how a target is started.
  14546. A layer can extend the controllers by adding a module
  14547. in the layer's <filename>/lib/oeqa/controllers</filename>
  14548. directory and by inheriting the
  14549. <filename>BaseTarget</filename> class, which is an abstract
  14550. class that cannot be used as a value of
  14551. <filename>TEST_TARGET</filename>.
  14552. </para>
  14553. <para>
  14554. You can provide the following arguments with
  14555. <filename>TEST_TARGET</filename>:
  14556. <itemizedlist>
  14557. <listitem><para><emphasis>"QemuTarget":</emphasis>
  14558. Boots a QEMU image and runs the tests.
  14559. See the
  14560. "<ulink url='&YOCTO_DOCS_DEV_URL;#qemu-image-enabling-tests'>Enabling Runtime Tests on QEMU</ulink>"
  14561. section in the Yocto Project Development Tasks
  14562. Manual for more information.
  14563. </para></listitem>
  14564. <listitem><para><emphasis>"SimpleRemoteTarget":</emphasis>
  14565. Runs the tests on target hardware that is already
  14566. up and running.
  14567. The hardware can be on the network or it can be
  14568. a device running an image on QEMU.
  14569. You must also set
  14570. <link linkend='var-TEST_TARGET_IP'><filename>TEST_TARGET_IP</filename></link>
  14571. when you use "SimpleRemoteTarget".
  14572. <note>
  14573. This argument is defined in
  14574. <filename>meta/lib/oeqa/controllers/simpleremote.py</filename>.
  14575. </note>
  14576. </para></listitem>
  14577. </itemizedlist>
  14578. </para>
  14579. <para>
  14580. For information on running tests on hardware, see the
  14581. "<ulink url='&YOCTO_DOCS_DEV_URL;#hardware-image-enabling-tests'>Enabling Runtime Tests on Hardware</ulink>"
  14582. section in the Yocto Project Development Tasks Manual.
  14583. </para>
  14584. </glossdef>
  14585. </glossentry>
  14586. <glossentry id='var-TEST_TARGET_IP'><glossterm>TEST_TARGET_IP</glossterm>
  14587. <info>
  14588. TEST_TARGET_IP[doc] = "The IP address of your hardware under test."
  14589. </info>
  14590. <glossdef>
  14591. <para role="glossdeffirst">
  14592. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14593. The IP address of your hardware under test.
  14594. The <filename>TEST_TARGET_IP</filename> variable has no
  14595. effect when
  14596. <link linkend='var-TEST_TARGET'><filename>TEST_TARGET</filename></link>
  14597. is set to "qemu".
  14598. </para>
  14599. <para>
  14600. When you specify the IP address, you can also include a
  14601. port.
  14602. Here is an example:
  14603. <literallayout class='monospaced'>
  14604. TEST_TARGET_IP = "192.168.1.4:2201"
  14605. </literallayout>
  14606. Specifying a port is useful when SSH is started on a
  14607. non-standard port or in cases when your hardware under test
  14608. is behind a firewall or network that is not directly
  14609. accessible from your host and you need to do port address
  14610. translation.
  14611. </para>
  14612. </glossdef>
  14613. </glossentry>
  14614. <glossentry id='var-TEST_SUITES'><glossterm>TEST_SUITES</glossterm>
  14615. <info>
  14616. TEST_SUITES[doc] = "An ordered list of tests (modules) to run against an image when performing automated runtime testing."
  14617. </info>
  14618. <glossdef>
  14619. <para role="glossdeffirst">
  14620. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14621. An ordered list of tests (modules) to run against
  14622. an image when performing automated runtime testing.
  14623. </para>
  14624. <para>
  14625. The OpenEmbedded build system provides a core set of tests
  14626. that can be used against images.
  14627. <note>
  14628. Currently, there is only support for running these tests
  14629. under QEMU.
  14630. </note>
  14631. Tests include <filename>ping</filename>,
  14632. <filename>ssh</filename>, <filename>df</filename> among
  14633. others.
  14634. You can add your own tests to the list of tests by
  14635. appending <filename>TEST_SUITES</filename> as follows:
  14636. <literallayout class='monospaced'>
  14637. TEST_SUITES_append = " <replaceable>mytest</replaceable>"
  14638. </literallayout>
  14639. Alternatively, you can provide the "auto" option to
  14640. have all applicable tests run against the image.
  14641. <literallayout class='monospaced'>
  14642. TEST_SUITES_append = " auto"
  14643. </literallayout>
  14644. Using this option causes the build system to automatically
  14645. run tests that are applicable to the image.
  14646. Tests that are not applicable are skipped.
  14647. </para>
  14648. <para>
  14649. The order in which tests are run is important.
  14650. Tests that depend on another test must appear later in the
  14651. list than the test on which they depend.
  14652. For example, if you append the list of tests with two
  14653. tests (<filename>test_A</filename> and
  14654. <filename>test_B</filename>) where
  14655. <filename>test_B</filename> is dependent on
  14656. <filename>test_A</filename>, then you must order the tests
  14657. as follows:
  14658. <literallayout class='monospaced'>
  14659. TEST_SUITES = " test_A test_B"
  14660. </literallayout>
  14661. </para>
  14662. <para>
  14663. For more information on testing images, see the
  14664. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  14665. section in the Yocto Project Development Tasks Manual.
  14666. </para>
  14667. </glossdef>
  14668. </glossentry>
  14669. <glossentry id='var-TESTIMAGE_AUTO'><glossterm>TESTIMAGE_AUTO</glossterm>
  14670. <info>
  14671. TESTIMAGE_AUTO[doc] = "Enables automatic testing of an image once it is built."
  14672. </info>
  14673. <glossdef>
  14674. <para role="glossdeffirst">
  14675. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14676. Automatically runs the series of automated tests for
  14677. images when an image is successfully built.
  14678. Setting <filename>TESTIMAGE_AUTO</filename> to "1"
  14679. causes any image that successfully builds to automatically
  14680. boot under QEMU.
  14681. Using the variable also adds in dependencies so that any
  14682. SDK for which testing is requested is automatically built
  14683. first.
  14684. </para>
  14685. <para>
  14686. These tests are written in Python making use of the
  14687. <filename>unittest</filename> module, and the majority of
  14688. them run commands on the target system over
  14689. <filename>ssh</filename>.
  14690. You can set this variable to "1" in your
  14691. <filename>local.conf</filename> file in the
  14692. <link linkend='build-directory'>Build Directory</link>
  14693. to have the OpenEmbedded build system automatically run
  14694. these tests after an image successfully builds:
  14695. <literallayout class='monospaced'>
  14696. TESTIMAGE_AUTO = "1"
  14697. </literallayout>
  14698. For more information on enabling, running, and writing
  14699. these tests, see the
  14700. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  14701. section in the Yocto Project Development Tasks Manual and
  14702. the
  14703. "<link linkend='ref-classes-testimage*'><filename>testimage*.bbclass</filename></link>"
  14704. section.
  14705. </para>
  14706. </glossdef>
  14707. </glossentry>
  14708. <glossentry id='var-THISDIR'><glossterm>THISDIR</glossterm>
  14709. <info>
  14710. THISDIR[doc] = "The directory in which the file BitBake is currently parsing is located."
  14711. </info>
  14712. <glossdef>
  14713. <para role="glossdeffirst">
  14714. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14715. The directory in which the file BitBake is currently
  14716. parsing is located.
  14717. Do not manually set this variable.
  14718. </para>
  14719. </glossdef>
  14720. </glossentry>
  14721. <glossentry id='var-TIME'><glossterm>TIME</glossterm>
  14722. <info>
  14723. TIME[doc] = "The time the build was started using HMS format."
  14724. </info>
  14725. <glossdef>
  14726. <para role="glossdeffirst">
  14727. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14728. The time the build was started.
  14729. Times appear using the hour, minute, and second (HMS)
  14730. format (e.g. "140159" for one minute and fifty-nine
  14731. seconds past 1400 hours).
  14732. </para>
  14733. </glossdef>
  14734. </glossentry>
  14735. <glossentry id='var-TMPDIR'><glossterm>TMPDIR</glossterm>
  14736. <info>
  14737. 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."
  14738. </info>
  14739. <glossdef>
  14740. <para role="glossdeffirst">
  14741. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14742. This variable is the base directory the OpenEmbedded
  14743. build system uses for all build output and intermediate
  14744. files (other than the shared state cache).
  14745. By default, the <filename>TMPDIR</filename> variable points
  14746. to <filename>tmp</filename> within the
  14747. <link linkend='build-directory'>Build Directory</link>.
  14748. </para>
  14749. <para>
  14750. If you want to establish this directory in a location other
  14751. than the default, you can uncomment and edit the following
  14752. statement in the
  14753. <filename>conf/local.conf</filename> file in the
  14754. <link linkend='source-directory'>Source Directory</link>:
  14755. <literallayout class='monospaced'>
  14756. #TMPDIR = "${TOPDIR}/tmp"
  14757. </literallayout>
  14758. An example use for this scenario is to set
  14759. <filename>TMPDIR</filename> to a local disk, which does
  14760. not use NFS, while having the Build Directory use NFS.
  14761. </para>
  14762. <para>
  14763. The filesystem used by <filename>TMPDIR</filename> must
  14764. have standard filesystem semantics (i.e. mixed-case files
  14765. are unique, POSIX file locking, and persistent inodes).
  14766. Due to various issues with NFS and bugs in some
  14767. implementations, NFS does not meet this minimum
  14768. requirement.
  14769. Consequently, <filename>TMPDIR</filename> cannot be on
  14770. NFS.
  14771. </para>
  14772. </glossdef>
  14773. </glossentry>
  14774. <glossentry id='var-TOOLCHAIN_HOST_TASK'><glossterm>TOOLCHAIN_HOST_TASK</glossterm>
  14775. <info>
  14776. TOOLCHAIN_HOST_TASK[doc] = "This variable lists packages the OpenEmbedded build system uses when building an SDK, which contains a cross-development environment."
  14777. </info>
  14778. <glossdef>
  14779. <para role="glossdeffirst">
  14780. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14781. This variable lists packages the OpenEmbedded build system
  14782. uses when building an SDK, which contains a
  14783. cross-development environment.
  14784. The packages specified by this variable are part of the
  14785. toolchain set that runs on the
  14786. <link linkend='var-SDKMACHINE'><filename>SDKMACHINE</filename></link>,
  14787. and each package should usually have the prefix
  14788. <filename>nativesdk-</filename>.
  14789. For example, consider the following command when
  14790. building an SDK:
  14791. <literallayout class='monospaced'>
  14792. $ bitbake -c populate_sdk <replaceable>imagename</replaceable>
  14793. </literallayout>
  14794. In this case, a default list of packages is set in this
  14795. variable, but you can add additional packages to the list.
  14796. See the
  14797. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-adding-individual-packages'>Adding Individual Packages to the Standard SDK</ulink>"
  14798. section in the Yocto Project Application Development and
  14799. the Extensible Software Development Kit (eSDK) manual
  14800. for more information.
  14801. </para>
  14802. <para>
  14803. For background information on cross-development toolchains
  14804. in the Yocto Project development environment, see the
  14805. "<ulink url='&YOCTO_DOCS_OM_URL;#cross-development-toolchain-generation'>Cross-Development Toolchain Generation</ulink>"
  14806. section in the Yocto Project Overview and Concepts Manual.
  14807. For information on setting up a cross-development
  14808. environment, see the
  14809. <ulink url='&YOCTO_DOCS_SDK_URL;'>Yocto Project Application Development and the Extensible Software Development Kit (eSDK)</ulink>
  14810. manual.
  14811. </para>
  14812. </glossdef>
  14813. </glossentry>
  14814. <glossentry id='var-TOOLCHAIN_OUTPUTNAME'><glossterm>TOOLCHAIN_OUTPUTNAME</glossterm>
  14815. <info>
  14816. TOOLCHAIN_OUTPUTNAME[doc] = "Defines the name used for the toolchain output."
  14817. </info>
  14818. <glossdef>
  14819. <para role="glossdeffirst">
  14820. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14821. This variable defines the name used for the toolchain
  14822. output.
  14823. The
  14824. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  14825. class sets the
  14826. <filename>TOOLCHAIN_OUTPUTNAME</filename> variable as
  14827. follows:
  14828. <literallayout class='monospaced'>
  14829. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  14830. </literallayout>
  14831. See the
  14832. <link linkend='var-SDK_NAME'><filename>SDK_NAME</filename></link>
  14833. and
  14834. <link linkend='var-SDK_VERSION'><filename>SDK_VERSION</filename></link>
  14835. variables for additional information.
  14836. </para>
  14837. </glossdef>
  14838. </glossentry>
  14839. <glossentry id='var-TOOLCHAIN_TARGET_TASK'><glossterm>TOOLCHAIN_TARGET_TASK</glossterm>
  14840. <info>
  14841. 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."
  14842. </info>
  14843. <glossdef>
  14844. <para role="glossdeffirst">
  14845. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14846. This variable lists packages the OpenEmbedded build system
  14847. uses when it creates the target part of an SDK
  14848. (i.e. the part built for the target hardware), which
  14849. includes libraries and headers.
  14850. Use this variable to add individual packages to the
  14851. part of the SDK that runs on the target.
  14852. See the
  14853. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-adding-individual-packages'>Adding Individual Packages to the Standard SDK</ulink>"
  14854. section in the Yocto Project Application Development and
  14855. the Extensible Software Development Kit (eSDK) manual for
  14856. more information.
  14857. </para>
  14858. <para>
  14859. For background information on cross-development toolchains
  14860. in the Yocto Project development environment, see the
  14861. "<ulink url='&YOCTO_DOCS_OM_URL;#cross-development-toolchain-generation'>Cross-Development Toolchain Generation</ulink>"
  14862. section in the Yocto Project Overview and Concepts Manual.
  14863. For information on setting up a cross-development
  14864. environment, see the
  14865. <ulink url='&YOCTO_DOCS_SDK_URL;'>Yocto Project Application Development and the Extensible Software Development Kit (eSDK)</ulink>
  14866. manual.
  14867. </para>
  14868. </glossdef>
  14869. </glossentry>
  14870. <glossentry id='var-TOPDIR'><glossterm>TOPDIR</glossterm>
  14871. <info>
  14872. TOPDIR[doc] = "The Build Directory. BitBake automatically sets this variable. The OpenEmbedded build system uses the Build Directory when building images."
  14873. </info>
  14874. <glossdef>
  14875. <para role="glossdeffirst">
  14876. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14877. The top-level
  14878. <link linkend='build-directory'>Build Directory</link>.
  14879. BitBake automatically sets this variable when you
  14880. initialize your build environment using
  14881. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>.
  14882. </para>
  14883. </glossdef>
  14884. </glossentry>
  14885. <glossentry id='var-TRANSLATED_TARGET_ARCH'><glossterm>TRANSLATED_TARGET_ARCH</glossterm>
  14886. <info>
  14887. 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."
  14888. </info>
  14889. <glossdef>
  14890. <para role="glossdeffirst">
  14891. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14892. A sanitized version of
  14893. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>.
  14894. This variable is used where the architecture is needed in
  14895. a value where underscores are not allowed, for example
  14896. within package filenames.
  14897. In this case, dash characters replace any underscore
  14898. characters used in <filename>TARGET_ARCH</filename>.
  14899. </para>
  14900. <para>
  14901. Do not edit this variable.
  14902. </para>
  14903. </glossdef>
  14904. </glossentry>
  14905. <glossentry id='var-TUNE_ARCH'><glossterm>TUNE_ARCH</glossterm>
  14906. <info>
  14907. TUNE_ARCH[doc] = "The GNU canonical architecture for a specific architecture (i.e. arm, armeb, mips, mips64, and so forth)."
  14908. </info>
  14909. <glossdef>
  14910. <para role="glossdeffirst">
  14911. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14912. The GNU canonical architecture for a specific architecture
  14913. (i.e. <filename>arm</filename>,
  14914. <filename>armeb</filename>,
  14915. <filename>mips</filename>,
  14916. <filename>mips64</filename>, and so forth).
  14917. BitBake uses this value to setup configuration.
  14918. </para>
  14919. <para>
  14920. <filename>TUNE_ARCH</filename> definitions are specific to
  14921. a given architecture.
  14922. The definitions can be a single static definition, or
  14923. can be dynamically adjusted.
  14924. You can see details for a given CPU family by looking at
  14925. the architecture's <filename>README</filename> file.
  14926. For example, the
  14927. <filename>meta/conf/machine/include/mips/README</filename>
  14928. file in the
  14929. <link linkend='source-directory'>Source Directory</link>
  14930. provides information for <filename>TUNE_ARCH</filename>
  14931. specific to the <filename>mips</filename> architecture.
  14932. </para>
  14933. <para>
  14934. <filename>TUNE_ARCH</filename> is tied closely to
  14935. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>,
  14936. which defines the target machine's architecture.
  14937. The BitBake configuration file
  14938. (<filename>meta/conf/bitbake.conf</filename>) sets
  14939. <filename>TARGET_ARCH</filename> as follows:
  14940. <literallayout class='monospaced'>
  14941. TARGET_ARCH = "${TUNE_ARCH}"
  14942. </literallayout>
  14943. </para>
  14944. <para>
  14945. The following list, which is by no means complete since
  14946. architectures are configurable, shows supported machine
  14947. architectures:
  14948. <literallayout class='monospaced'>
  14949. arm
  14950. i586
  14951. x86_64
  14952. powerpc
  14953. powerpc64
  14954. mips
  14955. mipsel
  14956. </literallayout>
  14957. </para>
  14958. </glossdef>
  14959. </glossentry>
  14960. <glossentry id='var-TUNE_ASARGS'><glossterm>TUNE_ASARGS</glossterm>
  14961. <info>
  14962. TUNE_ASARGS[doc] = "Specifies architecture-specific assembler flags for the target system."
  14963. </info>
  14964. <glossdef>
  14965. <para role="glossdeffirst">
  14966. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14967. Specifies architecture-specific assembler flags for
  14968. the target system.
  14969. The set of flags is based on the selected tune features.
  14970. <filename>TUNE_ASARGS</filename> is set using
  14971. the tune include files, which are typically under
  14972. <filename>meta/conf/machine/include/</filename> and are
  14973. influenced through
  14974. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  14975. For example, the
  14976. <filename>meta/conf/machine/include/x86/arch-x86.inc</filename>
  14977. file defines the flags for the x86 architecture as follows:
  14978. <literallayout class='monospaced'>
  14979. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  14980. </literallayout>
  14981. <note>
  14982. Board Support Packages (BSPs) select the tune.
  14983. The selected tune, in turn, affects the tune variables
  14984. themselves (i.e. the tune can supply its own
  14985. set of flags).
  14986. </note>
  14987. </para>
  14988. </glossdef>
  14989. </glossentry>
  14990. <glossentry id='var-TUNE_CCARGS'><glossterm>TUNE_CCARGS</glossterm>
  14991. <info>
  14992. TUNE_CCARGS[doc] = "Specifies architecture-specific C compiler flags for the target system."
  14993. </info>
  14994. <glossdef>
  14995. <para role="glossdeffirst">
  14996. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14997. Specifies architecture-specific C compiler flags for
  14998. the target system.
  14999. The set of flags is based on the selected tune features.
  15000. <filename>TUNE_CCARGS</filename> is set using
  15001. the tune include files, which are typically under
  15002. <filename>meta/conf/machine/include/</filename> and are
  15003. influenced through
  15004. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  15005. <note>
  15006. Board Support Packages (BSPs) select the tune.
  15007. The selected tune, in turn, affects the tune variables
  15008. themselves (i.e. the tune can supply its own
  15009. set of flags).
  15010. </note>
  15011. </para>
  15012. </glossdef>
  15013. </glossentry>
  15014. <glossentry id='var-TUNE_LDARGS'><glossterm>TUNE_LDARGS</glossterm>
  15015. <info>
  15016. TUNE_LDARGS[doc] = "Specifies architecture-specific linker flags for the target system."
  15017. </info>
  15018. <glossdef>
  15019. <para role="glossdeffirst">
  15020. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15021. Specifies architecture-specific linker flags for
  15022. the target system.
  15023. The set of flags is based on the selected tune features.
  15024. <filename>TUNE_LDARGS</filename> is set using
  15025. the tune include files, which are typically under
  15026. <filename>meta/conf/machine/include/</filename> and are
  15027. influenced through
  15028. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  15029. For example, the
  15030. <filename>meta/conf/machine/include/x86/arch-x86.inc</filename>
  15031. file defines the flags for the x86 architecture as follows:
  15032. <literallayout class='monospaced'>
  15033. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  15034. </literallayout>
  15035. <note>
  15036. Board Support Packages (BSPs) select the tune.
  15037. The selected tune, in turn, affects the tune variables
  15038. themselves (i.e. the tune can supply its own
  15039. set of flags).
  15040. </note>
  15041. </para>
  15042. </glossdef>
  15043. </glossentry>
  15044. <glossentry id='var-TUNE_FEATURES'><glossterm>TUNE_FEATURES</glossterm>
  15045. <info>
  15046. TUNE_FEATURES[doc] = "Features used to "tune" a compiler for optimal use given a specific processor."
  15047. </info>
  15048. <glossdef>
  15049. <para role="glossdeffirst">
  15050. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15051. Features used to "tune" a compiler for optimal use
  15052. given a specific processor.
  15053. The features are defined within the tune files and allow
  15054. arguments (i.e. <filename>TUNE_*ARGS</filename>) to be
  15055. dynamically generated based on the features.
  15056. </para>
  15057. <para>
  15058. The OpenEmbedded build system verifies the features
  15059. to be sure they are not conflicting and that they are
  15060. supported.
  15061. </para>
  15062. <para>
  15063. The BitBake configuration file
  15064. (<filename>meta/conf/bitbake.conf</filename>) defines
  15065. <filename>TUNE_FEATURES</filename> as follows:
  15066. <literallayout class='monospaced'>
  15067. TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}"
  15068. </literallayout>
  15069. See the
  15070. <link linkend='var-DEFAULTTUNE'><filename>DEFAULTTUNE</filename></link>
  15071. variable for more information.
  15072. </para>
  15073. </glossdef>
  15074. </glossentry>
  15075. <glossentry id='var-TUNE_PKGARCH'><glossterm>TUNE_PKGARCH</glossterm>
  15076. <info>
  15077. TUNE_PKGARCH[doc] = "The package architecture understood by the packaging system to define the architecture, ABI, and tuning of output packages."
  15078. </info>
  15079. <glossdef>
  15080. <para role="glossdeffirst">
  15081. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15082. The package architecture understood by the packaging
  15083. system to define the architecture, ABI, and tuning of
  15084. output packages.
  15085. The specific tune is defined using the "_tune" override
  15086. as follows:
  15087. <literallayout class='monospaced'>
  15088. TUNE_PKGARCH_tune-<replaceable>tune</replaceable> = "<replaceable>tune</replaceable>"
  15089. </literallayout>
  15090. </para>
  15091. <para>
  15092. These tune-specific package architectures are defined in
  15093. the machine include files.
  15094. Here is an example of the "core2-32" tuning as used
  15095. in the
  15096. <filename>meta/conf/machine/include/tune-core2.inc</filename>
  15097. file:
  15098. <literallayout class='monospaced'>
  15099. TUNE_PKGARCH_tune-core2-32 = "core2-32"
  15100. </literallayout>
  15101. </para>
  15102. </glossdef>
  15103. </glossentry>
  15104. <glossentry id='var-TUNEABI'><glossterm>TUNEABI</glossterm>
  15105. <info>
  15106. 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."
  15107. </info>
  15108. <glossdef>
  15109. <para role="glossdeffirst">
  15110. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15111. An underlying Application Binary Interface (ABI) used by
  15112. a particular tuning in a given toolchain layer.
  15113. Providers that use prebuilt libraries can use the
  15114. <filename>TUNEABI</filename>,
  15115. <link linkend='var-TUNEABI_OVERRIDE'><filename>TUNEABI_OVERRIDE</filename></link>,
  15116. and
  15117. <link linkend='var-TUNEABI_WHITELIST'><filename>TUNEABI_WHITELIST</filename></link>
  15118. variables to check compatibility of tunings against their
  15119. selection of libraries.
  15120. </para>
  15121. <para>
  15122. If <filename>TUNEABI</filename> is undefined, then every
  15123. tuning is allowed.
  15124. See the
  15125. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  15126. class to see how the variable is used.
  15127. </para>
  15128. </glossdef>
  15129. </glossentry>
  15130. <glossentry id='var-TUNEABI_OVERRIDE'><glossterm>TUNEABI_OVERRIDE</glossterm>
  15131. <info>
  15132. TUNEABI_OVERRIDE[doc] = "If set, ignores TUNEABI_WHITELIST."
  15133. </info>
  15134. <glossdef>
  15135. <para role="glossdeffirst">
  15136. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15137. If set, the OpenEmbedded system ignores the
  15138. <link linkend='var-TUNEABI_WHITELIST'><filename>TUNEABI_WHITELIST</filename></link>
  15139. variable.
  15140. Providers that use prebuilt libraries can use the
  15141. <filename>TUNEABI_OVERRIDE</filename>,
  15142. <filename>TUNEABI_WHITELIST</filename>,
  15143. and
  15144. <link linkend='var-TUNEABI'><filename>TUNEABI</filename></link>
  15145. variables to check compatibility of a tuning against their
  15146. selection of libraries.
  15147. </para>
  15148. <para>
  15149. See the
  15150. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  15151. class to see how the variable is used.
  15152. </para>
  15153. </glossdef>
  15154. </glossentry>
  15155. <glossentry id='var-TUNEABI_WHITELIST'><glossterm>TUNEABI_WHITELIST</glossterm>
  15156. <info>
  15157. TUNEABI_WHITELIST[doc] = "A whitelist of permissible TUNEABI values. If the variable is not set, all values are allowed."
  15158. </info>
  15159. <glossdef>
  15160. <para role="glossdeffirst">
  15161. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15162. A whitelist of permissible
  15163. <link linkend='var-TUNEABI'><filename>TUNEABI</filename></link>
  15164. values.
  15165. If <filename>TUNEABI_WHITELIST</filename> is not set,
  15166. all tunes are allowed.
  15167. Providers that use prebuilt libraries can use the
  15168. <filename>TUNEABI_WHITELIST</filename>,
  15169. <link linkend='var-TUNEABI_OVERRIDE'><filename>TUNEABI_OVERRIDE</filename></link>,
  15170. and <filename>TUNEABI</filename> variables to check
  15171. compatibility of a tuning against their selection of
  15172. libraries.
  15173. </para>
  15174. <para>
  15175. See the
  15176. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  15177. class to see how the variable is used.
  15178. </para>
  15179. </glossdef>
  15180. </glossentry>
  15181. <glossentry id='var-TUNECONFLICTS'><glossterm>TUNECONFLICTS[<replaceable>feature</replaceable>]</glossterm>
  15182. <info>
  15183. TUNECONFLICTS[doc] = "Specifies CPU or Application Binary Interface (ABI) tuning features that conflict with specified feature."
  15184. </info>
  15185. <glossdef>
  15186. <para role="glossdeffirst">
  15187. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15188. Specifies CPU or Application Binary Interface (ABI)
  15189. tuning features that conflict with <replaceable>feature</replaceable>.
  15190. </para>
  15191. <para>
  15192. Known tuning conflicts are specified in the machine include
  15193. files in the
  15194. <link linkend='source-directory'>Source Directory</link>.
  15195. Here is an example from the
  15196. <filename>meta/conf/machine/include/mips/arch-mips.inc</filename>
  15197. include file that lists the "o32" and "n64" features as
  15198. conflicting with the "n32" feature:
  15199. <literallayout class='monospaced'>
  15200. TUNECONFLICTS[n32] = "o32 n64"
  15201. </literallayout>
  15202. </para>
  15203. </glossdef>
  15204. </glossentry>
  15205. <glossentry id='var-TUNEVALID'><glossterm>TUNEVALID[<replaceable>feature</replaceable>]</glossterm>
  15206. <info>
  15207. TUNEVALID[doc] = "Descriptions, stored as flags, of valid tuning features."
  15208. </info>
  15209. <glossdef>
  15210. <para role="glossdeffirst">
  15211. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15212. Specifies a valid CPU or Application Binary Interface (ABI)
  15213. tuning feature.
  15214. The specified feature is stored as a flag.
  15215. Valid features are specified in the machine include files
  15216. (e.g. <filename>meta/conf/machine/include/arm/arch-arm.inc</filename>).
  15217. Here is an example from that file:
  15218. <literallayout class='monospaced'>
  15219. TUNEVALID[bigendian] = "Enable big-endian mode."
  15220. </literallayout>
  15221. </para>
  15222. <para>
  15223. See the machine include files in the
  15224. <link linkend='source-directory'>Source Directory</link>
  15225. for these features.
  15226. </para>
  15227. </glossdef>
  15228. </glossentry>
  15229. </glossdiv>
  15230. <glossdiv id='var-glossary-u'><title>U</title>
  15231. <glossentry id='var-UBOOT_CONFIG'><glossterm>UBOOT_CONFIG</glossterm>
  15232. <info>
  15233. UBOOT_CONFIG[doc] = "Configures the UBOOT_MACHINE and can also define IMAGE_FSTYPES for individual cases."
  15234. </info>
  15235. <glossdef>
  15236. <para role="glossdeffirst">
  15237. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15238. Configures the
  15239. <link linkend='var-UBOOT_MACHINE'><filename>UBOOT_MACHINE</filename></link>
  15240. and can also define
  15241. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  15242. for individual cases.
  15243. </para>
  15244. <para>
  15245. Following is an example from the
  15246. <filename>meta-fsl-arm</filename> layer.
  15247. <literallayout class='monospaced'>
  15248. UBOOT_CONFIG ??= "sd"
  15249. UBOOT_CONFIG[sd] = "mx6qsabreauto_config,sdcard"
  15250. UBOOT_CONFIG[eimnor] = "mx6qsabreauto_eimnor_config"
  15251. UBOOT_CONFIG[nand] = "mx6qsabreauto_nand_config,ubifs"
  15252. UBOOT_CONFIG[spinor] = "mx6qsabreauto_spinor_config"
  15253. </literallayout>
  15254. In this example, "sd" is selected as the configuration
  15255. of the possible four for the
  15256. <filename>UBOOT_MACHINE</filename>.
  15257. The "sd" configuration defines "mx6qsabreauto_config"
  15258. as the value for <filename>UBOOT_MACHINE</filename>, while
  15259. the "sdcard" specifies the
  15260. <filename>IMAGE_FSTYPES</filename> to use for the U-boot
  15261. image.
  15262. </para>
  15263. <para>
  15264. For more information on how the
  15265. <filename>UBOOT_CONFIG</filename> is handled, see the
  15266. <ulink url='http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/uboot-config.bbclass'><filename>uboot-config</filename></ulink>
  15267. class.
  15268. </para>
  15269. </glossdef>
  15270. </glossentry>
  15271. <glossentry id='var-UBOOT_ENTRYPOINT'><glossterm>UBOOT_ENTRYPOINT</glossterm>
  15272. <info>
  15273. UBOOT_ENTRYPOINT[doc] = "Specifies the entry point for the U-Boot image."
  15274. </info>
  15275. <glossdef>
  15276. <para role="glossdeffirst">
  15277. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15278. Specifies the entry point for the U-Boot image.
  15279. During U-Boot image creation, the
  15280. <filename>UBOOT_ENTRYPOINT</filename> variable is passed
  15281. as a command-line parameter to the
  15282. <filename>uboot-mkimage</filename> utility.
  15283. </para>
  15284. </glossdef>
  15285. </glossentry>
  15286. <glossentry id='var-UBOOT_LOADADDRESS'><glossterm>UBOOT_LOADADDRESS</glossterm>
  15287. <info>
  15288. UBOOT_LOADADDRESS[doc] = "Specifies the load address for the U-Boot image."
  15289. </info>
  15290. <glossdef>
  15291. <para role="glossdeffirst">
  15292. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15293. Specifies the load address for the U-Boot image.
  15294. During U-Boot image creation, the
  15295. <filename>UBOOT_LOADADDRESS</filename> variable is passed
  15296. as a command-line parameter to the
  15297. <filename>uboot-mkimage</filename> utility.
  15298. </para>
  15299. </glossdef>
  15300. </glossentry>
  15301. <glossentry id='var-UBOOT_LOCALVERSION'><glossterm>UBOOT_LOCALVERSION</glossterm>
  15302. <info>
  15303. UBOOT_LOCALVERSION[doc] = "Appends a string to the name of the local version of the U-Boot image."
  15304. </info>
  15305. <glossdef>
  15306. <para role="glossdeffirst">
  15307. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15308. Appends a string to the name of the local version of the
  15309. U-Boot image.
  15310. For example, assuming the version of the U-Boot image
  15311. built was "2013.10, the full version string reported by
  15312. U-Boot would be "2013.10-yocto" given the following
  15313. statement:
  15314. <literallayout class='monospaced'>
  15315. UBOOT_LOCALVERSION = "-yocto"
  15316. </literallayout>
  15317. </para>
  15318. </glossdef>
  15319. </glossentry>
  15320. <glossentry id='var-UBOOT_MACHINE'><glossterm>UBOOT_MACHINE</glossterm>
  15321. <info>
  15322. UBOOT_MACHINE[doc] = "Specifies the value passed on the make command line when building a U-Boot image."
  15323. </info>
  15324. <glossdef>
  15325. <para role="glossdeffirst">
  15326. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15327. Specifies the value passed on the
  15328. <filename>make</filename> command line when building
  15329. a U-Boot image.
  15330. The value indicates the target platform configuration.
  15331. You typically set this variable from the machine
  15332. configuration file (i.e.
  15333. <filename>conf/machine/<replaceable>machine_name</replaceable>.conf</filename>).
  15334. </para>
  15335. <para>
  15336. Please see the "Selection of Processor Architecture and
  15337. Board Type" section in the U-Boot README for valid values
  15338. for this variable.
  15339. </para>
  15340. </glossdef>
  15341. </glossentry>
  15342. <glossentry id='var-UBOOT_MAKE_TARGET'><glossterm>UBOOT_MAKE_TARGET</glossterm>
  15343. <info>
  15344. UBOOT_MAKE_TARGET[doc] = "Specifies the target called in the Makefile."
  15345. </info>
  15346. <glossdef>
  15347. <para role="glossdeffirst">
  15348. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15349. Specifies the target called in the
  15350. <filename>Makefile</filename>.
  15351. The default target is "all".
  15352. </para>
  15353. </glossdef>
  15354. </glossentry>
  15355. <glossentry id='var-UBOOT_SUFFIX'><glossterm>UBOOT_SUFFIX</glossterm>
  15356. <info>
  15357. UBOOT_SUFFIX[doc] = "Points to the generated U-Boot extension."
  15358. </info>
  15359. <glossdef>
  15360. <para role="glossdeffirst">
  15361. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15362. Points to the generated U-Boot extension.
  15363. For example, <filename>u-boot.sb</filename> has a
  15364. <filename>.sb</filename> extension.
  15365. </para>
  15366. <para>
  15367. The default U-Boot extension is
  15368. <filename>.bin</filename>
  15369. </para>
  15370. </glossdef>
  15371. </glossentry>
  15372. <glossentry id='var-UBOOT_TARGET'><glossterm>UBOOT_TARGET</glossterm>
  15373. <info>
  15374. UBOOT_TARGET[doc] = "Specifies the target used for building U-Boot."
  15375. </info>
  15376. <glossdef>
  15377. <para role="glossdeffirst">
  15378. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15379. Specifies the target used for building U-Boot.
  15380. The target is passed directly as part of the "make" command
  15381. (e.g. SPL and AIS).
  15382. If you do not specifically set this variable, the
  15383. OpenEmbedded build process passes and uses "all" for the
  15384. target during the U-Boot building process.
  15385. </para>
  15386. </glossdef>
  15387. </glossentry>
  15388. <glossentry id='var-UNKNOWN_CONFIGURE_WHITELIST'><glossterm>UNKNOWN_CONFIGURE_WHITELIST</glossterm>
  15389. <info>
  15390. 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."
  15391. </info>
  15392. <glossdef>
  15393. <para role="glossdeffirst">
  15394. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15395. Specifies a list of options that, if reported by the
  15396. configure script as being invalid, should not generate a
  15397. warning during the
  15398. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  15399. task.
  15400. Normally, invalid configure options are simply not passed
  15401. to the configure script (e.g. should be removed from
  15402. <link linkend='var-EXTRA_OECONF'><filename>EXTRA_OECONF</filename></link>
  15403. or
  15404. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>).
  15405. However, common options, for example, exist that are passed
  15406. to all configure scripts at a class level that might not
  15407. be valid for some configure scripts.
  15408. It follows that no benefit exists in seeing a warning about
  15409. these options.
  15410. For these cases, the options are added to
  15411. <filename>UNKNOWN_CONFIGURE_WHITELIST</filename>.
  15412. </para>
  15413. <para>
  15414. The configure arguments check that uses
  15415. <filename>UNKNOWN_CONFIGURE_WHITELIST</filename> is part
  15416. of the
  15417. <link linkend='ref-classes-insane'><filename>insane</filename></link>
  15418. class and is only enabled if the recipe inherits the
  15419. <link linkend='ref-classes-autotools'><filename>autotools</filename></link>
  15420. class.
  15421. </para>
  15422. </glossdef>
  15423. </glossentry>
  15424. <glossentry id='var-UPDATERCPN'><glossterm>UPDATERCPN</glossterm>
  15425. <info>
  15426. UPDATERCPN[doc] = "Specifies the package that contains the initscript that is enabled."
  15427. </info>
  15428. <glossdef>
  15429. <para role="glossdeffirst">
  15430. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15431. For recipes inheriting the
  15432. <link linkend='ref-classes-update-rc.d'><filename>update-rc.d</filename></link>
  15433. class, <filename>UPDATERCPN</filename> specifies
  15434. the package that contains the initscript that is
  15435. enabled.
  15436. </para>
  15437. <para>
  15438. The default value is "${PN}".
  15439. Given that almost all recipes that install initscripts
  15440. package them in the main package for the recipe, you
  15441. rarely need to set this variable in individual recipes.
  15442. </para>
  15443. </glossdef>
  15444. </glossentry>
  15445. <glossentry id='var-UPSTREAM_CHECK_GITTAGREGEX'><glossterm>UPSTREAM_CHECK_GITTAGREGEX</glossterm>
  15446. <info>
  15447. UPSTREAM_CHECK_GITTAGREGEX[doc] = "Filters relevant Git tags when fetching source from an upstream Git repository."
  15448. </info>
  15449. <glossdef>
  15450. <para role="glossdeffirst">
  15451. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15452. When the
  15453. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  15454. class is enabled globally, you can perform a per-recipe
  15455. check for what the latest upstream source code version is
  15456. by calling
  15457. <filename>bitbake -c checkpkg</filename> <replaceable>recipe</replaceable>.
  15458. If the recipe source code is provided from Git
  15459. repositories, the OpenEmbedded build system determines the
  15460. latest upstream version by picking the latest tag from the
  15461. list of all repository tags.
  15462. You can use the
  15463. <filename>UPSTREAM_CHECK_GITTAGREGEX</filename>
  15464. variable to provide a regular expression to filter only the
  15465. relevant tags should the default filter not work
  15466. correctly.
  15467. <literallayout class='monospaced'>
  15468. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  15469. </literallayout>
  15470. </para>
  15471. </glossdef>
  15472. </glossentry>
  15473. <glossentry id='var-UPSTREAM_CHECK_REGEX'><glossterm>UPSTREAM_CHECK_REGEX</glossterm>
  15474. <info>
  15475. UPSTREAM_CHECK_REGEX[doc] = "The regular expression the package checking system uses to parse the page pointed to by UPSTREAM_CHECK_URI."
  15476. </info>
  15477. <glossdef>
  15478. <para role="glossdeffirst">
  15479. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15480. When the
  15481. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  15482. class is enabled globally, use the
  15483. <filename>UPSTREAM_CHECK_REGEX</filename> variable to
  15484. specify a different regular expression instead of the
  15485. default one when the package checking system is parsing
  15486. the page found using
  15487. <link linkend='var-UPSTREAM_CHECK_URI'><filename>UPSTREAM_CHECK_URI</filename></link>.
  15488. <literallayout class='monospaced'>
  15489. UPSTREAM_CHECK_REGEX = "package_regex"
  15490. </literallayout>
  15491. </para>
  15492. </glossdef>
  15493. </glossentry>
  15494. <glossentry id='var-UPSTREAM_CHECK_URI'><glossterm>UPSTREAM_CHECK_URI</glossterm>
  15495. <info>
  15496. 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."
  15497. </info>
  15498. <glossdef>
  15499. <para role="glossdeffirst">
  15500. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15501. When the
  15502. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  15503. class is enabled globally, you can perform a per-recipe
  15504. check for what the latest upstream source code version is
  15505. by calling <filename>bitbake -c checkpkg</filename>
  15506. <replaceable>recipe</replaceable>.
  15507. If the source code is provided from tarballs, the latest
  15508. version is determined by fetching the directory listing
  15509. where the tarball is and attempting to find a later tarball.
  15510. When this approach does not work, you can use
  15511. <filename>UPSTREAM_CHECK_URI</filename> to
  15512. provide a different URI that contains the link to the
  15513. latest tarball.
  15514. <literallayout class='monospaced'>
  15515. UPSTREAM_CHECK_URI = "recipe_url"
  15516. </literallayout>
  15517. </para>
  15518. </glossdef>
  15519. </glossentry>
  15520. <glossentry id='var-USE_DEVFS'><glossterm>USE_DEVFS</glossterm>
  15521. <info>
  15522. USE_DEVFS[doc] = "Determines if devtmpfs is used for /dev population."
  15523. </info>
  15524. <glossdef>
  15525. <para role="glossdeffirst">
  15526. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15527. Determines if <filename>devtmpfs</filename> is used for
  15528. <filename>/dev</filename> population.
  15529. The default value used for <filename>USE_DEVFS</filename>
  15530. is "1" when no value is specifically set.
  15531. Typically, you would set <filename>USE_DEVFS</filename>
  15532. to "0" for a statically populated <filename>/dev</filename>
  15533. directory.
  15534. </para>
  15535. <para>
  15536. See the
  15537. "<ulink url='&YOCTO_DOCS_DEV_URL;#selecting-dev-manager'>Selecting a Device Manager</ulink>"
  15538. section in the Yocto Project Development Tasks Manual for
  15539. information on how to use this variable.
  15540. </para>
  15541. </glossdef>
  15542. </glossentry>
  15543. <glossentry id='var-USE_VT'><glossterm>USE_VT</glossterm>
  15544. <info>
  15545. 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."
  15546. </info>
  15547. <glossdef>
  15548. <para role="glossdeffirst">
  15549. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15550. When using
  15551. <ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-enabling-system-services'>SysVinit</ulink>,
  15552. determines whether or not to run a
  15553. <ulink url='http://en.wikipedia.org/wiki/Getty_%28Unix%29'>getty</ulink>
  15554. on any virtual terminals in order to enable logging in
  15555. through those terminals.
  15556. </para>
  15557. <para>
  15558. The default value used for <filename>USE_VT</filename>
  15559. is "1" when no default value is specifically set.
  15560. Typically, you would set <filename>USE_VT</filename>
  15561. to "0" in the machine configuration file for machines
  15562. that do not have a graphical display attached and
  15563. therefore do not need virtual terminal functionality.
  15564. </para>
  15565. </glossdef>
  15566. </glossentry>
  15567. <glossentry id='var-USER_CLASSES'><glossterm>USER_CLASSES</glossterm>
  15568. <info>
  15569. USER_CLASSES[doc] = "List of additional classes to use when building images that enable extra features."
  15570. </info>
  15571. <glossdef>
  15572. <para role="glossdeffirst">
  15573. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15574. A list of classes to globally inherit.
  15575. These classes are used by the OpenEmbedded build system
  15576. to enable extra features (e.g.
  15577. <filename>buildstats</filename>,
  15578. <filename>image-mklibs</filename>, and so forth).
  15579. </para>
  15580. <para>
  15581. The default list is set in your
  15582. <filename>local.conf</filename> file:
  15583. <literallayout class='monospaced'>
  15584. USER_CLASSES ?= "buildstats image-mklibs image-prelink"
  15585. </literallayout>
  15586. For more information, see
  15587. <filename>meta-poky/conf/local.conf.sample</filename> in
  15588. the
  15589. <link linkend='source-directory'>Source Directory</link>.
  15590. </para>
  15591. </glossdef>
  15592. </glossentry>
  15593. <glossentry id='var-USERADD_ERROR_DYNAMIC'><glossterm>USERADD_ERROR_DYNAMIC</glossterm>
  15594. <info>
  15595. USERADD_ERROR_DYNAMIC[doc] = "If set to 'error', 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. If set to 'warn', a warning will be issued instead."
  15596. </info>
  15597. <glossdef>
  15598. <para role="glossdeffirst">
  15599. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15600. If set to "error", forces the OpenEmbedded build system to
  15601. produce an error if the user identification
  15602. (<filename>uid</filename>) and group identification
  15603. (<filename>gid</filename>) values are not defined
  15604. in <filename>files/passwd</filename>
  15605. and <filename>files/group</filename> files.
  15606. If set to "warn", a warning will be issued instead.
  15607. </para>
  15608. <para>
  15609. The default behavior for the build system is to dynamically
  15610. apply <filename>uid</filename> and
  15611. <filename>gid</filename> values.
  15612. Consequently, the <filename>USERADD_ERROR_DYNAMIC</filename>
  15613. variable is by default not set.
  15614. If you plan on using statically assigned
  15615. <filename>gid</filename> and <filename>uid</filename>
  15616. values, you should set
  15617. the <filename>USERADD_ERROR_DYNAMIC</filename> variable in
  15618. your <filename>local.conf</filename> file as
  15619. follows:
  15620. <literallayout class='monospaced'>
  15621. USERADD_ERROR_DYNAMIC = "error"
  15622. </literallayout>
  15623. Overriding the default behavior implies you are going to
  15624. also take steps to set static <filename>uid</filename> and
  15625. <filename>gid</filename> values through use of the
  15626. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>,
  15627. <link linkend='var-USERADD_UID_TABLES'><filename>USERADD_UID_TABLES</filename></link>,
  15628. and
  15629. <link linkend='var-USERADD_GID_TABLES'><filename>USERADD_GID_TABLES</filename></link>
  15630. variables.
  15631. </para>
  15632. </glossdef>
  15633. </glossentry>
  15634. <glossentry id='var-USERADD_GID_TABLES'><glossterm>USERADD_GID_TABLES</glossterm>
  15635. <info>
  15636. 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."
  15637. </info>
  15638. <glossdef>
  15639. <para role="glossdeffirst">
  15640. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15641. Specifies a password file to use for obtaining static
  15642. group identification (<filename>gid</filename>) values
  15643. when the OpenEmbedded build system adds a group to the
  15644. system during package installation.
  15645. </para>
  15646. <para>
  15647. When applying static group identification
  15648. (<filename>gid</filename>) values, the OpenEmbedded build
  15649. system looks in
  15650. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>
  15651. for a <filename>files/group</filename> file and then applies
  15652. those <filename>uid</filename> values.
  15653. Set the variable as follows in your
  15654. <filename>local.conf</filename> file:
  15655. <literallayout class='monospaced'>
  15656. USERADD_GID_TABLES = "files/group"
  15657. </literallayout>
  15658. </para>
  15659. <note>
  15660. Setting the
  15661. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>
  15662. variable to "useradd-staticids" causes the build system
  15663. to use static <filename>gid</filename> values.
  15664. </note>
  15665. </glossdef>
  15666. </glossentry>
  15667. <glossentry id='var-USERADD_PACKAGES'><glossterm>USERADD_PACKAGES</glossterm>
  15668. <info>
  15669. 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."
  15670. </info>
  15671. <glossdef>
  15672. <para role="glossdeffirst">
  15673. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15674. When inheriting the
  15675. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  15676. class, this variable
  15677. specifies the individual packages within the recipe that
  15678. require users and/or groups to be added.
  15679. </para>
  15680. <para>
  15681. You must set this variable if the recipe inherits the
  15682. class.
  15683. For example, the following enables adding a user for the
  15684. main package in a recipe:
  15685. <literallayout class='monospaced'>
  15686. USERADD_PACKAGES = "${PN}"
  15687. </literallayout>
  15688. <note>
  15689. It follows that if you are going to use the
  15690. <filename>USERADD_PACKAGES</filename> variable,
  15691. you need to set one or more of the
  15692. <link linkend='var-USERADD_PARAM'><filename>USERADD_PARAM</filename></link>,
  15693. <link linkend='var-GROUPADD_PARAM'><filename>GROUPADD_PARAM</filename></link>,
  15694. or
  15695. <link linkend='var-GROUPMEMS_PARAM'><filename>GROUPMEMS_PARAM</filename></link>
  15696. variables.
  15697. </note>
  15698. </para>
  15699. </glossdef>
  15700. </glossentry>
  15701. <glossentry id='var-USERADD_PARAM'><glossterm>USERADD_PARAM</glossterm>
  15702. <info>
  15703. USERADD_PARAM[doc] = "When a recipe inherits the useradd class, this variable specifies for a package what parameters should pass to the useradd command if you add a user to the system when the package is installed."
  15704. </info>
  15705. <glossdef>
  15706. <para role="glossdeffirst">
  15707. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15708. When inheriting the
  15709. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  15710. class, this variable
  15711. specifies for a package what parameters should pass
  15712. to the <filename>useradd</filename> command
  15713. if you add a user to the system when the package
  15714. is installed.
  15715. </para>
  15716. <para>
  15717. Here is an example from the <filename>dbus</filename>
  15718. recipe:
  15719. <literallayout class='monospaced'>
  15720. USERADD_PARAM_${PN} = "--system --home ${localstatedir}/lib/dbus \
  15721. --no-create-home --shell /bin/false \
  15722. --user-group messagebus"
  15723. </literallayout>
  15724. For information on the standard Linux shell command
  15725. <filename>useradd</filename>, see
  15726. <ulink url='http://linux.die.net/man/8/useradd'></ulink>.
  15727. </para>
  15728. </glossdef>
  15729. </glossentry>
  15730. <glossentry id='var-USERADD_UID_TABLES'><glossterm>USERADD_UID_TABLES</glossterm>
  15731. <info>
  15732. 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."
  15733. </info>
  15734. <glossdef>
  15735. <para role="glossdeffirst">
  15736. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15737. Specifies a password file to use for obtaining static
  15738. user identification (<filename>uid</filename>) values
  15739. when the OpenEmbedded build system adds a user to the
  15740. system during package installation.
  15741. </para>
  15742. <para>
  15743. When applying static user identification
  15744. (<filename>uid</filename>) values, the OpenEmbedded build
  15745. system looks in
  15746. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>
  15747. for a <filename>files/passwd</filename> file and then applies
  15748. those <filename>uid</filename> values.
  15749. Set the variable as follows in your
  15750. <filename>local.conf</filename> file:
  15751. <literallayout class='monospaced'>
  15752. USERADD_UID_TABLES = "files/passwd"
  15753. </literallayout>
  15754. </para>
  15755. <note>
  15756. Setting the
  15757. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>
  15758. variable to "useradd-staticids" causes the build system
  15759. to use static <filename>uid</filename> values.
  15760. </note>
  15761. </glossdef>
  15762. </glossentry>
  15763. <glossentry id='var-USERADDEXTENSION'><glossterm>USERADDEXTENSION</glossterm>
  15764. <info>
  15765. 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."
  15766. </info>
  15767. <glossdef>
  15768. <para role="glossdeffirst">
  15769. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15770. When set to "useradd-staticids", causes the
  15771. OpenEmbedded build system to base all user and group
  15772. additions on a static
  15773. <filename>passwd</filename> and
  15774. <filename>group</filename> files found in
  15775. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>.
  15776. </para>
  15777. <para>
  15778. To use static user identification (<filename>uid</filename>)
  15779. and group identification (<filename>gid</filename>)
  15780. values, set the variable
  15781. as follows in your <filename>local.conf</filename> file:
  15782. <literallayout class='monospaced'>
  15783. USERADDEXTENSION = "useradd-staticids"
  15784. </literallayout>
  15785. <note>
  15786. Setting this variable to use static
  15787. <filename>uid</filename> and <filename>gid</filename>
  15788. values causes the OpenEmbedded build system to employ
  15789. the
  15790. <link linkend='ref-classes-useradd'><filename>useradd-staticids</filename></link>
  15791. class.
  15792. </note>
  15793. </para>
  15794. <para>
  15795. If you use static <filename>uid</filename> and
  15796. <filename>gid</filename> information, you must also
  15797. specify the <filename>files/passwd</filename> and
  15798. <filename>files/group</filename> files by setting the
  15799. <link linkend='var-USERADD_UID_TABLES'><filename>USERADD_UID_TABLES</filename></link>
  15800. and
  15801. <link linkend='var-USERADD_GID_TABLES'><filename>USERADD_GID_TABLES</filename></link>
  15802. variables.
  15803. Additionally, you should also set the
  15804. <link linkend='var-USERADD_ERROR_DYNAMIC'><filename>USERADD_ERROR_DYNAMIC</filename></link>
  15805. variable.
  15806. </para>
  15807. </glossdef>
  15808. </glossentry>
  15809. </glossdiv>
  15810. <glossdiv id='var-glossary-v'><title>V</title>
  15811. <glossentry id='var-VOLATILE_LOG_DIR'><glossterm>VOLATILE_LOG_DIR</glossterm>
  15812. <info>
  15813. VOLATILE_LOG_DIR[doc] = "Specifies the persistence of the target's /var/log directory, which is used to house postinstall target log files."
  15814. </info>
  15815. <glossdef>
  15816. <para role="glossdeffirst">
  15817. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15818. Specifies the persistence of the target's
  15819. <filename>/var/log</filename> directory, which is used to
  15820. house postinstall target log files.
  15821. </para>
  15822. <para>
  15823. By default, <filename>VOLATILE_LOG_DIR</filename> is set
  15824. to "yes", which means the file is not persistent.
  15825. You can override this setting by setting the
  15826. variable to "no" to make the log directory persistent.
  15827. </para>
  15828. </glossdef>
  15829. </glossentry>
  15830. </glossdiv>
  15831. <glossdiv id='var-glossary-w'><title>W</title>
  15832. <glossentry id='var-WARN_QA'><glossterm>WARN_QA</glossterm>
  15833. <info>
  15834. WARN_QA[doc] = "Specifies the quality assurance checks whose failures are reported as warnings by the OpenEmbedded build system."
  15835. </info>
  15836. <glossdef>
  15837. <para role="glossdeffirst">
  15838. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15839. Specifies the quality assurance checks whose failures are
  15840. reported as warnings by the OpenEmbedded build system.
  15841. You set this variable in your distribution configuration
  15842. file.
  15843. For a list of the checks you can control with this variable,
  15844. see the
  15845. "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  15846. section.
  15847. </para>
  15848. </glossdef>
  15849. </glossentry>
  15850. <glossentry id='var-WKS_FILE_DEPENDS'><glossterm>WKS_FILE_DEPENDS</glossterm>
  15851. <info>
  15852. WKS_FILE_DEPENDS[doc] = "Lists a recipe's build-time dependencies specific to Wic."
  15853. </info>
  15854. <glossdef>
  15855. <para role="glossdeffirst">
  15856. When placed in the recipe that builds your image, this
  15857. variable lists build-time dependencies.
  15858. The <filename>WKS_FILE_DEPENDS</filename> variable is only
  15859. applicable when Wic images are active (i.e. when
  15860. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  15861. contains entries related to Wic).
  15862. If your recipe does not create Wic images, the variable
  15863. has no effect.
  15864. </para>
  15865. <para>
  15866. The <filename>WKS_FILE_DEPENDS</filename> variable is
  15867. similar to the
  15868. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  15869. variable.
  15870. When you use the variable in your recipe that builds the
  15871. Wic image, dependencies you list in the
  15872. <filename>WIC_FILE_DEPENDS</filename> variable are added to
  15873. the <filename>DEPENDS</filename> variable.
  15874. </para>
  15875. <para>
  15876. With the <filename>WKS_FILE_DEPENDS</filename> variable,
  15877. you have the possibility to specify a list of additional
  15878. dependencies (e.g. native tools, bootloaders, and so forth),
  15879. that are required to build Wic images.
  15880. Following is an example:
  15881. <literallayout class='monospaced'>
  15882. WKS_FILE_DEPENDS = "<replaceable>some-native-tool</replaceable>"
  15883. </literallayout>
  15884. In the previous example,
  15885. <replaceable>some-native-tool</replaceable> would be
  15886. replaced with an actual native tool on which the build
  15887. would depend.
  15888. </para>
  15889. </glossdef>
  15890. </glossentry>
  15891. <glossentry id='var-WKS_FILE'><glossterm>WKS_FILE</glossterm>
  15892. <info>
  15893. WKS_FILE[doc] = "Specifies the name of the wic kickstart file."
  15894. </info>
  15895. <glossdef>
  15896. <para role="glossdeffirst">
  15897. Specifies the location of the Wic
  15898. kickstart file that is used by the OpenEmbedded build
  15899. system to create a partitioned image
  15900. (<replaceable>image</replaceable><filename>.wic</filename>).
  15901. For information on how to create a partitioned image, see
  15902. the
  15903. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-partitioned-images-using-wic'>Creating Partitioned Images Using Wic</ulink>"
  15904. section in the Yocto Project Development Tasks Manual.
  15905. For details on the kickstart file format, see the
  15906. "<link linkend='ref-kickstart'>OpenEmbedded Kickstart (<filename>.wks</filename>) Reference</link>
  15907. Chapter.
  15908. </para>
  15909. </glossdef>
  15910. </glossentry>
  15911. <glossentry id='var-WORKDIR'><glossterm>WORKDIR</glossterm>
  15912. <info>
  15913. 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."
  15914. </info>
  15915. <glossdef>
  15916. <para role="glossdeffirst">
  15917. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15918. The pathname of the work directory in which the OpenEmbedded
  15919. build system builds a recipe.
  15920. This directory is located within the
  15921. <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link>
  15922. directory structure and is specific to the recipe being
  15923. built and the system for which it is being built.
  15924. </para>
  15925. <para>
  15926. The <filename>WORKDIR</filename> directory is defined as
  15927. follows:
  15928. <literallayout class='monospaced'>
  15929. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  15930. </literallayout>
  15931. The actual directory depends on several things:
  15932. <itemizedlist>
  15933. <listitem><filename>TMPDIR</filename>:
  15934. The top-level build output directory</listitem>
  15935. <listitem><link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>:
  15936. The target system identifier</listitem>
  15937. <listitem><link linkend='var-PN'><filename>PN</filename></link>:
  15938. The recipe name</listitem>
  15939. <listitem><link linkend='var-EXTENDPE'><filename>EXTENDPE</filename></link>:
  15940. The epoch - (if
  15941. <link linkend='var-PE'><filename>PE</filename></link>
  15942. is not specified, which is usually the case for most
  15943. recipes, then <filename>EXTENDPE</filename> is blank)</listitem>
  15944. <listitem><link linkend='var-PV'><filename>PV</filename></link>:
  15945. The recipe version</listitem>
  15946. <listitem><link linkend='var-PR'><filename>PR</filename></link>:
  15947. The recipe revision</listitem>
  15948. </itemizedlist>
  15949. </para>
  15950. <para>
  15951. As an example, assume a Source Directory top-level folder
  15952. name <filename>poky</filename>, a default Build Directory at
  15953. <filename>poky/build</filename>, and a
  15954. <filename>qemux86-poky-linux</filename> machine target
  15955. system.
  15956. Furthermore, suppose your recipe is named
  15957. <filename>foo_1.3.0-r0.bb</filename>.
  15958. In this case, the work directory the build system uses to
  15959. build the package would be as follows:
  15960. <literallayout class='monospaced'>
  15961. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  15962. </literallayout>
  15963. </para>
  15964. </glossdef>
  15965. </glossentry>
  15966. </glossdiv>
  15967. <glossdiv id='var-glossary-x'><title>X</title>
  15968. <glossentry id='var-XSERVER'><glossterm>XSERVER</glossterm>
  15969. <info>
  15970. XSERVER[doc] = "Specifies the packages that should be installed
  15971. to provide an X server and drivers for the current machine."
  15972. </info>
  15973. <glossdef>
  15974. <para role="glossdeffirst">
  15975. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15976. Specifies the packages that should be installed to
  15977. provide an X server and drivers for the current machine,
  15978. assuming your image directly includes
  15979. <filename>packagegroup-core-x11-xserver</filename> or,
  15980. perhaps indirectly, includes "x11-base" in
  15981. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  15982. </para>
  15983. <para>
  15984. The default value of <filename>XSERVER</filename>, if not
  15985. specified in the machine configuration, is
  15986. "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  15987. </para>
  15988. </glossdef>
  15989. </glossentry>
  15990. </glossdiv>
  15991. <!-- <glossdiv id='var-glossary-y'><title>Y</title>-->
  15992. <!-- </glossdiv>-->
  15993. <!-- <glossdiv id='var-glossary-z'><title>Z</title>-->
  15994. <!-- </glossdiv>-->
  15995. </glossary>
  15996. </chapter>
  15997. <!--
  15998. vim: expandtab tw=80 ts=4
  15999. -->