ref-variables.xml 864 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916
  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. The use of the "<filename>*</filename>"
  622. character only works at the beginning of
  623. a host name.
  624. You cannot use the wildcard character in any
  625. other location of the name.
  626. </note>
  627. </para></listitem>
  628. <listitem><para>
  629. Mirrors not in the host list are skipped and
  630. logged in debug.
  631. </para></listitem>
  632. <listitem><para>
  633. Attempts to access networks not in the host list
  634. cause a failure.
  635. </para></listitem>
  636. </itemizedlist>
  637. Using <filename>BB_ALLOWED_NETWORKS</filename> in
  638. conjunction with
  639. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  640. is very useful.
  641. Adding the host you want to use to
  642. <filename>PREMIRRORS</filename> results in the source code
  643. being fetched from an allowed location and avoids raising
  644. an error when a host that is not allowed is in a
  645. <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
  646. statement.
  647. This is because the fetcher does not attempt to use the
  648. host listed in <filename>SRC_URI</filename> after a
  649. successful fetch from the
  650. <filename>PREMIRRORS</filename> occurs.
  651. </para>
  652. </glossdef>
  653. </glossentry>
  654. <glossentry id='var-BB_DANGLINGAPPENDS_WARNONLY'><glossterm>BB_DANGLINGAPPENDS_WARNONLY</glossterm>
  655. <info>
  656. BB_DANGLINGAPPENDS_WARNONLY[doc] = "Defines how BitBake handles situations where an append file (.bbappend) has no corresponding recipe file (.bb)."
  657. </info>
  658. <glossdef>
  659. <para role="glossdeffirst">
  660. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  661. Defines how BitBake handles situations where an append
  662. file (<filename>.bbappend</filename>) has no
  663. corresponding recipe file (<filename>.bb</filename>).
  664. This condition often occurs when layers get out of sync
  665. (e.g. <filename>oe-core</filename> bumps a
  666. recipe version and the old recipe no longer exists and the
  667. other layer has not been updated to the new version
  668. of the recipe yet).
  669. </para>
  670. <para>
  671. The default fatal behavior is safest because it is
  672. the sane reaction given something is out of sync.
  673. It is important to realize when your changes are no longer
  674. being applied.
  675. </para>
  676. <para>
  677. You can change the default behavior by setting this
  678. variable to "1", "yes", or "true"
  679. in your <filename>local.conf</filename> file, which is
  680. located in the
  681. <link linkend='build-directory'>Build Directory</link>:
  682. Here is an example:
  683. <literallayout class='monospaced'>
  684. BB_DANGLINGAPPENDS_WARNONLY = "1"
  685. </literallayout>
  686. </para>
  687. </glossdef>
  688. </glossentry>
  689. <glossentry id='var-BB_DISKMON_DIRS'><glossterm>BB_DISKMON_DIRS</glossterm>
  690. <info>
  691. BB_DISKMON_DIRS[doc] = "Monitors disk space and available inodes during the build and allows you to control the build based on these parameters."
  692. </info>
  693. <glossdef>
  694. <para role="glossdeffirst">
  695. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  696. Monitors disk space and available inodes during the build
  697. and allows you to control the build based on these
  698. parameters.
  699. </para>
  700. <para>
  701. Disk space monitoring is disabled by default.
  702. To enable monitoring, add the <filename>BB_DISKMON_DIRS</filename>
  703. variable to your <filename>conf/local.conf</filename> file found in the
  704. <link linkend='build-directory'>Build Directory</link>.
  705. Use the following form:
  706. <literallayout class='monospaced'>
  707. BB_DISKMON_DIRS = "<replaceable>action</replaceable>,<replaceable>dir</replaceable>,<replaceable>threshold</replaceable> [...]"
  708. where:
  709. <replaceable>action</replaceable> is:
  710. ABORT: Immediately abort the build when
  711. a threshold is broken.
  712. STOPTASKS: Stop the build after the currently
  713. executing tasks have finished when
  714. a threshold is broken.
  715. WARN: Issue a warning but continue the
  716. build when a threshold is broken.
  717. Subsequent warnings are issued as
  718. defined by the BB_DISKMON_WARNINTERVAL
  719. variable, which must be defined in
  720. the conf/local.conf file.
  721. <replaceable>dir</replaceable> is:
  722. Any directory you choose. You can specify one or
  723. more directories to monitor by separating the
  724. groupings with a space. If two directories are
  725. on the same device, only the first directory
  726. is monitored.
  727. <replaceable>threshold</replaceable> is:
  728. Either the minimum available disk space,
  729. the minimum number of free inodes, or
  730. both. You must specify at least one. To
  731. omit one or the other, simply omit the value.
  732. Specify the threshold using G, M, K for Gbytes,
  733. Mbytes, and Kbytes, respectively. If you do
  734. not specify G, M, or K, Kbytes is assumed by
  735. default. Do not use GB, MB, or KB.
  736. </literallayout>
  737. </para>
  738. <para>
  739. Here are some examples:
  740. <literallayout class='monospaced'>
  741. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  742. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  743. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  744. </literallayout>
  745. The first example works only if you also provide
  746. the <link linkend='var-BB_DISKMON_WARNINTERVAL'><filename>BB_DISKMON_WARNINTERVAL</filename></link> variable
  747. in the <filename>conf/local.conf</filename>.
  748. This example causes the build system to immediately
  749. abort when either the disk space in <filename>${TMPDIR}</filename> drops
  750. below 1 Gbyte or the available free inodes drops below
  751. 100 Kbytes.
  752. Because two directories are provided with the variable, the
  753. build system also issue a
  754. warning when the disk space in the
  755. <filename>${SSTATE_DIR}</filename> directory drops
  756. below 1 Gbyte or the number of free inodes drops
  757. below 100 Kbytes.
  758. Subsequent warnings are issued during intervals as
  759. defined by the <filename>BB_DISKMON_WARNINTERVAL</filename>
  760. variable.
  761. </para>
  762. <para>
  763. The second example stops the build after all currently
  764. executing tasks complete when the minimum disk space
  765. in the <filename>${<link linkend='var-TMPDIR'>TMPDIR</link>}</filename>
  766. directory drops below 1 Gbyte.
  767. No disk monitoring occurs for the free inodes in this case.
  768. </para>
  769. <para>
  770. The final example immediately aborts the build when the
  771. number of free inodes in the <filename>${TMPDIR}</filename> directory
  772. drops below 100 Kbytes.
  773. No disk space monitoring for the directory itself occurs
  774. in this case.
  775. </para>
  776. </glossdef>
  777. </glossentry>
  778. <glossentry id='var-BB_DISKMON_WARNINTERVAL'><glossterm>BB_DISKMON_WARNINTERVAL</glossterm>
  779. <info>
  780. 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."
  781. </info>
  782. <glossdef>
  783. <para role="glossdeffirst">
  784. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  785. Defines the disk space and free inode warning intervals.
  786. To set these intervals, define the variable in your
  787. <filename>conf/local.conf</filename> file in the
  788. <link linkend='build-directory'>Build Directory</link>.
  789. </para>
  790. <para>
  791. If you are going to use the
  792. <filename>BB_DISKMON_WARNINTERVAL</filename> variable, you must
  793. also use the
  794. <link linkend='var-BB_DISKMON_DIRS'><filename>BB_DISKMON_DIRS</filename></link> variable
  795. and define its action as "WARN".
  796. During the build, subsequent warnings are issued each time
  797. disk space or number of free inodes further reduces by
  798. the respective interval.
  799. </para>
  800. <para>
  801. If you do not provide a <filename>BB_DISKMON_WARNINTERVAL</filename>
  802. variable and you do use <filename>BB_DISKMON_DIRS</filename> with
  803. the "WARN" action, the disk monitoring interval defaults to
  804. the following:
  805. <literallayout class='monospaced'>
  806. BB_DISKMON_WARNINTERVAL = "50M,5K"
  807. </literallayout>
  808. </para>
  809. <para>
  810. When specifying the variable in your configuration file,
  811. use the following form:
  812. <literallayout class='monospaced'>
  813. BB_DISKMON_WARNINTERVAL = "<replaceable>disk_space_interval</replaceable>,<replaceable>disk_inode_interval</replaceable>"
  814. where:
  815. <replaceable>disk_space_interval</replaceable> is:
  816. An interval of memory expressed in either
  817. G, M, or K for Gbytes, Mbytes, or Kbytes,
  818. respectively. You cannot use GB, MB, or KB.
  819. <replaceable>disk_inode_interval</replaceable> is:
  820. An interval of free inodes expressed in either
  821. G, M, or K for Gbytes, Mbytes, or Kbytes,
  822. respectively. You cannot use GB, MB, or KB.
  823. </literallayout>
  824. </para>
  825. <para>
  826. Here is an example:
  827. <literallayout class='monospaced'>
  828. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  829. BB_DISKMON_WARNINTERVAL = "50M,5K"
  830. </literallayout>
  831. These variables cause the OpenEmbedded build system to
  832. issue subsequent warnings each time the available
  833. disk space further reduces by 50 Mbytes or the number
  834. of free inodes further reduces by 5 Kbytes in the
  835. <filename>${SSTATE_DIR}</filename> directory.
  836. Subsequent warnings based on the interval occur each time
  837. a respective interval is reached beyond the initial warning
  838. (i.e. 1 Gbytes and 100 Kbytes).
  839. </para>
  840. </glossdef>
  841. </glossentry>
  842. <glossentry id='var-BB_GENERATE_MIRROR_TARBALLS'><glossterm>BB_GENERATE_MIRROR_TARBALLS</glossterm>
  843. <info>
  844. BB_GENERATE_MIRROR_TARBALLS[doc] = "Causes tarballs of the Git repositories to be placed in the DL_DIR directory."
  845. </info>
  846. <glossdef>
  847. <para role="glossdeffirst">
  848. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  849. Causes tarballs of the Git repositories, including the
  850. Git metadata, to be placed in the
  851. <link linkend='var-DL_DIR'><filename>DL_DIR</filename></link>
  852. directory.
  853. </para>
  854. <para>
  855. For performance reasons, creating and placing tarballs of
  856. the Git repositories is not the default action by the
  857. OpenEmbedded build system.
  858. <literallayout class='monospaced'>
  859. BB_GENERATE_MIRROR_TARBALLS = "1"
  860. </literallayout>
  861. Set this variable in your <filename>local.conf</filename>
  862. file in the
  863. <link linkend='build-directory'>Build Directory</link>.
  864. </para>
  865. </glossdef>
  866. </glossentry>
  867. <glossentry id='var-BB_NUMBER_THREADS'><glossterm>BB_NUMBER_THREADS</glossterm>
  868. <info>
  869. 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."
  870. </info>
  871. <glossdef>
  872. <para role="glossdeffirst">
  873. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  874. The maximum number of tasks BitBake should run in parallel
  875. at any one time.
  876. The OpenEmbedded build system automatically configures
  877. this variable to be equal to the number of cores on the
  878. build system.
  879. For example, a system with a dual core processor that
  880. also uses hyper-threading causes the
  881. <filename>BB_NUMBER_THREADS</filename> variable to default
  882. to "4".
  883. </para>
  884. <para>
  885. For single socket systems (i.e. one CPU), you should not
  886. have to override this variable to gain optimal parallelism
  887. during builds.
  888. However, if you have very large systems that employ
  889. multiple physical CPUs, you might want to make sure the
  890. <filename>BB_NUMBER_THREADS</filename> variable is not
  891. set higher than "20".
  892. </para>
  893. <para>
  894. For more information on speeding up builds, see the
  895. "<ulink url='&YOCTO_DOCS_DEV_URL;#speeding-up-a-build'>Speeding Up a Build</ulink>"
  896. section in the Yocto Project Development Tasks Manual.
  897. </para>
  898. </glossdef>
  899. </glossentry>
  900. <glossentry id='var-BB_SERVER_TIMEOUT'><glossterm>BB_SERVER_TIMEOUT</glossterm>
  901. <info>
  902. BB_SERVER_TIMEOUT [doc] = "Specifies the time (in seconds) after which to unload the BitBake server due to inactivity."
  903. </info>
  904. <glossdef>
  905. <para role="glossdeffirst">
  906. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  907. Specifies the time (in seconds) after which to unload the
  908. BitBake server due to inactivity.
  909. Set <filename>BB_SERVER_TIMEOUT</filename> to determine how
  910. long the BitBake server stays resident between invocations.
  911. </para>
  912. <para>
  913. For example, the following statement in your
  914. <filename>local.conf</filename> file instructs the server
  915. to be unloaded after 20 seconds of inactivity:
  916. <literallayout class='monospaced'>
  917. BB_SERVER_TIMEOUT = "20"
  918. </literallayout>
  919. If you want the server to never be unloaded, set
  920. <filename>BB_SERVER_TIMEOUT</filename> to "-1".
  921. </para>
  922. </glossdef>
  923. </glossentry>
  924. <glossentry id='var-BBCLASSEXTEND'><glossterm>BBCLASSEXTEND</glossterm>
  925. <info>
  926. 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."
  927. </info>
  928. <glossdef>
  929. <para role="glossdeffirst">
  930. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  931. Allows you to extend a recipe so that it builds variants of the software.
  932. Common variants for recipes exist such as "natives" like <filename>quilt-native</filename>,
  933. which is a copy of Quilt built to run on the build system;
  934. "crosses" such as <filename>gcc-cross</filename>,
  935. which is a compiler built to run on the build machine but produces binaries
  936. that run on the target <link linkend='var-MACHINE'><filename>MACHINE</filename></link>;
  937. "nativesdk", which targets the SDK machine instead of <filename>MACHINE</filename>;
  938. and "mulitlibs" in the form "<filename>multilib:</filename><replaceable>multilib_name</replaceable>".
  939. </para>
  940. <para>
  941. To build a different variant of the recipe with a minimal amount of code, it usually
  942. is as simple as adding the following to your recipe:
  943. <literallayout class='monospaced'>
  944. BBCLASSEXTEND =+ "native nativesdk"
  945. BBCLASSEXTEND =+ "multilib:<replaceable>multilib_name</replaceable>"
  946. </literallayout>
  947. <note>
  948. <para>
  949. Internally, the <filename>BBCLASSEXTEND</filename>
  950. mechanism generates recipe variants by rewriting
  951. variable values and applying overrides such as
  952. <filename>_class-native</filename>.
  953. For example, to generate a native version of a recipe,
  954. a
  955. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  956. on "foo" is rewritten to a <filename>DEPENDS</filename>
  957. on "foo-native".
  958. </para>
  959. <para>
  960. Even when using <filename>BBCLASSEXTEND</filename>, the
  961. recipe is only parsed once.
  962. Parsing once adds some limitations.
  963. For example, it is not possible to
  964. include a different file depending on the variant,
  965. since <filename>include</filename> statements are
  966. processed when the recipe is parsed.
  967. </para>
  968. </note>
  969. </para>
  970. </glossdef>
  971. </glossentry>
  972. <glossentry id='var-BBFILE_COLLECTIONS'><glossterm>BBFILE_COLLECTIONS</glossterm>
  973. <info>
  974. BBFILE_COLLECTIONS[doc] = "Lists the names of configured layers. These names are used to find the other BBFILE_* variables."
  975. </info>
  976. <glossdef>
  977. <para role="glossdeffirst">
  978. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  979. Lists the names of configured layers.
  980. These names are used to find the other <filename>BBFILE_*</filename>
  981. variables.
  982. Typically, each layer will append its name to this variable in its
  983. <filename>conf/layer.conf</filename> file.
  984. </para>
  985. </glossdef>
  986. </glossentry>
  987. <glossentry id='var-BBFILE_PATTERN'><glossterm>BBFILE_PATTERN</glossterm>
  988. <info>
  989. 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."
  990. </info>
  991. <glossdef>
  992. <para role="glossdeffirst">
  993. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  994. Variable that expands to match files from
  995. <link linkend='var-BBFILES'><filename>BBFILES</filename></link>
  996. in a particular layer.
  997. This variable is used in the <filename>conf/layer.conf</filename> file and must
  998. be suffixed with the name of the specific layer (e.g.
  999. <filename>BBFILE_PATTERN_emenlow</filename>).
  1000. </para>
  1001. </glossdef>
  1002. </glossentry>
  1003. <glossentry id='var-BBFILE_PRIORITY'><glossterm>BBFILE_PRIORITY</glossterm>
  1004. <info>
  1005. 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."
  1006. </info>
  1007. <glossdef>
  1008. <para role="glossdeffirst">
  1009. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1010. Assigns the priority for recipe files in each layer.
  1011. </para>
  1012. <para>
  1013. This variable is useful in situations where the same recipe appears in
  1014. more than one layer.
  1015. Setting this variable allows you to prioritize a
  1016. layer against other layers that contain the same recipe - effectively
  1017. letting you control the precedence for the multiple layers.
  1018. The precedence established through this variable stands regardless of a
  1019. recipe's version
  1020. (<link linkend='var-PV'><filename>PV</filename></link> variable).
  1021. For example, a layer that has a recipe with a higher <filename>PV</filename> value but for
  1022. which the <filename>BBFILE_PRIORITY</filename> is set to have a lower precedence still has a
  1023. lower precedence.
  1024. </para>
  1025. <para>
  1026. A larger value for the <filename>BBFILE_PRIORITY</filename> variable results in a higher
  1027. precedence.
  1028. For example, the value 6 has a higher precedence than the value 5.
  1029. If not specified, the <filename>BBFILE_PRIORITY</filename> variable is set based on layer
  1030. dependencies (see the
  1031. <filename><link linkend='var-LAYERDEPENDS'>LAYERDEPENDS</link></filename> variable for
  1032. more information.
  1033. The default priority, if unspecified
  1034. for a layer with no dependencies, is the lowest defined priority + 1
  1035. (or 1 if no priorities are defined).
  1036. </para>
  1037. <tip>
  1038. You can use the command <filename>bitbake-layers show-layers</filename> to list
  1039. all configured layers along with their priorities.
  1040. </tip>
  1041. </glossdef>
  1042. </glossentry>
  1043. <glossentry id='var-BBFILES'><glossterm>BBFILES</glossterm>
  1044. <info>
  1045. BBFILES[doc] = "A space-separated list of recipe files BitBake uses to build software."
  1046. </info>
  1047. <glossdef>
  1048. <para role="glossdeffirst">
  1049. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1050. A space-separated list of recipe files BitBake uses to
  1051. build software.
  1052. </para>
  1053. <para>
  1054. When specifying recipe files, you can pattern match using
  1055. Python's
  1056. <ulink url='https://docs.python.org/2/library/glob.html'><filename>glob</filename></ulink>
  1057. syntax.
  1058. For details on the syntax, see the documentation by
  1059. following the previous link.
  1060. </para>
  1061. </glossdef>
  1062. </glossentry>
  1063. <glossentry id='var-BBFILES_DYNAMIC'><glossterm>BBFILES_DYNAMIC</glossterm>
  1064. <info>
  1065. BBFILES_DYNAMIC[doc] = "Activates content when identified layers are present."
  1066. </info>
  1067. <glossdef>
  1068. <para role="glossdeffirst">
  1069. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1070. Activates content when identified layers are present.
  1071. You identify the layers by the collections that the layers
  1072. define.
  1073. </para>
  1074. <para>
  1075. Use the <filename>BBFILES_DYNAMIC</filename> variable to
  1076. avoid <filename>.bbappend</filename> files whose
  1077. corresponding <filename>.bb</filename> file is in a layer
  1078. that attempts to modify other layers through
  1079. <filename>.bbappend</filename> but does not want to
  1080. introduce a hard dependency on those other layers.
  1081. </para>
  1082. <para>
  1083. Use the following form for
  1084. <filename>BBFILES_DYNAMIC</filename>:
  1085. <literallayout class='monospaced'>
  1086. <replaceable>collection_name</replaceable>:<replaceable>filename_pattern</replaceable>
  1087. </literallayout>
  1088. The following example identifies two collection names and
  1089. two filename patterns:
  1090. <literallayout class='monospaced'>
  1091. BBFILES_DYNAMIC += " \
  1092. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  1093. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  1094. "
  1095. </literallayout>
  1096. This next example shows an error message that occurs
  1097. because invalid entries are found, which cause parsing to
  1098. abort:
  1099. <literallayout class='monospaced'>
  1100. ERROR: BBFILES_DYNAMIC entries must be of the form &lt;collection name&gt;:&lt;filename pattern&gt;, not:
  1101. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  1102. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  1103. </literallayout>
  1104. </para>
  1105. </glossdef>
  1106. </glossentry>
  1107. <glossentry id='var-BBINCLUDELOGS'><glossterm>BBINCLUDELOGS</glossterm>
  1108. <info>
  1109. BBINCLUDELOGS[doc] = "Variable that controls how BitBake displays logs on build failure."
  1110. </info>
  1111. <glossdef>
  1112. <para role="glossdeffirst">
  1113. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1114. Variable that controls how BitBake displays logs on build failure.
  1115. </para>
  1116. </glossdef>
  1117. </glossentry>
  1118. <glossentry id='var-BBINCLUDELOGS_LINES'><glossterm>BBINCLUDELOGS_LINES</glossterm>
  1119. <info>
  1120. BBINCLUDELOGS_LINES[doc] = "Amount of log lines printed on failure."
  1121. </info>
  1122. <glossdef>
  1123. <para role="glossdeffirst">
  1124. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1125. If
  1126. <link linkend='var-BBINCLUDELOGS'><filename>BBINCLUDELOGS</filename></link>
  1127. is set, specifies the maximum number of lines from the
  1128. task log file to print when reporting a failed task.
  1129. If you do not set <filename>BBINCLUDELOGS_LINES</filename>,
  1130. the entire log is printed.
  1131. </para>
  1132. </glossdef>
  1133. </glossentry>
  1134. <glossentry id='var-BBLAYERS'><glossterm>BBLAYERS</glossterm>
  1135. <info>
  1136. BBLAYERS[doc] = "Lists the layers to enable during the build. This variable is defined in the bblayers.conf configuration file."
  1137. </info>
  1138. <glossdef>
  1139. <para role="glossdeffirst">
  1140. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1141. Lists the layers to enable during the build.
  1142. This variable is defined in the <filename>bblayers.conf</filename> configuration
  1143. file in the
  1144. <link linkend='build-directory'>Build Directory</link>.
  1145. Here is an example:
  1146. <literallayout class='monospaced'>
  1147. BBLAYERS = " \
  1148. /home/scottrif/poky/meta \
  1149. /home/scottrif/poky/meta-poky \
  1150. /home/scottrif/poky/meta-yocto-bsp \
  1151. /home/scottrif/poky/meta-mykernel \
  1152. "
  1153. </literallayout>
  1154. </para>
  1155. <para>
  1156. This example enables four layers, one of which is a custom, user-defined layer
  1157. named <filename>meta-mykernel</filename>.
  1158. </para>
  1159. </glossdef>
  1160. </glossentry>
  1161. <glossentry id='var-BBMASK'><glossterm>BBMASK</glossterm>
  1162. <info>
  1163. BBMASK[doc] = "Prevents BitBake from processing specific recipes or recipe append files."
  1164. </info>
  1165. <glossdef>
  1166. <para role="glossdeffirst">
  1167. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1168. Prevents BitBake from processing recipes and recipe
  1169. append files.
  1170. </para>
  1171. <para>
  1172. You can use the <filename>BBMASK</filename> variable
  1173. to "hide" these <filename>.bb</filename> and
  1174. <filename>.bbappend</filename> files.
  1175. BitBake ignores any recipe or recipe append files that
  1176. match any of the expressions.
  1177. It is as if BitBake does not see them at all.
  1178. Consequently, matching files are not parsed or otherwise
  1179. used by BitBake.
  1180. </para>
  1181. <para>
  1182. The values you provide are passed to Python's regular
  1183. expression compiler.
  1184. Consequently, the syntax follows Python's Regular
  1185. Expression (re) syntax.
  1186. The expressions are compared against the full paths to
  1187. the files.
  1188. For complete syntax information, see Python's
  1189. documentation at
  1190. <ulink url='http://docs.python.org/release/2.3/lib/re-syntax.html'></ulink>.
  1191. </para>
  1192. <para>
  1193. The following example uses a complete regular expression
  1194. to tell BitBake to ignore all recipe and recipe append
  1195. files in the <filename>meta-ti/recipes-misc/</filename>
  1196. directory:
  1197. <literallayout class='monospaced'>
  1198. BBMASK = "meta-ti/recipes-misc/"
  1199. </literallayout>
  1200. If you want to mask out multiple directories or recipes,
  1201. you can specify multiple regular expression fragments.
  1202. This next example masks out multiple directories and
  1203. individual recipes:
  1204. <literallayout class='monospaced'>
  1205. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  1206. BBMASK += "/meta-oe/recipes-support/"
  1207. BBMASK += "/meta-foo/.*/openldap"
  1208. BBMASK += "opencv.*\.bbappend"
  1209. BBMASK += "lzma"
  1210. </literallayout>
  1211. <note>
  1212. When specifying a directory name, use the trailing
  1213. slash character to ensure you match just that directory
  1214. name.
  1215. </note>
  1216. </para>
  1217. </glossdef>
  1218. </glossentry>
  1219. <glossentry id='var-BBMULTICONFIG'><glossterm>BBMULTICONFIG</glossterm>
  1220. <info>
  1221. BBMULTICONFIG[doc] = "Specifies each separate configuration when you are building targets with multiple configurations."
  1222. </info>
  1223. <glossdef>
  1224. <para role="glossdeffirst">
  1225. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1226. Specifies each separate configuration when you are
  1227. building targets with multiple configurations.
  1228. Use this variable in your
  1229. <filename>conf/local.conf</filename> configuration file.
  1230. Specify a <replaceable>multiconfigname</replaceable> for
  1231. each configuration file you are using.
  1232. For example, the following line specifies three
  1233. configuration files:
  1234. <literallayout class='monospaced'>
  1235. BBMULTIFONFIG = "configA configB configC"
  1236. </literallayout>
  1237. Each configuration file you use must reside in the
  1238. <link linkend='build-directory'>Build Directory</link>
  1239. <filename>conf/multiconfig</filename> directory
  1240. (e.g.
  1241. <replaceable>build_directory</replaceable><filename>/conf/multiconfig/configA.conf</filename>).
  1242. </para>
  1243. <para>
  1244. For information on how to use
  1245. <filename>BBMULTICONFIG</filename> in an environment that
  1246. supports building targets with multiple configurations,
  1247. see the
  1248. "<ulink url='&YOCTO_DOCS_DEV_URL;#dev-building-images-for-multiple-targets-using-multiple-configurations'>Building Images for Multiple Targets Using Multiple Configurations</ulink>"
  1249. section in the Yocto Project Development Tasks Manual.
  1250. </para>
  1251. </glossdef>
  1252. </glossentry>
  1253. <glossentry id='var-BBPATH'><glossterm>BBPATH</glossterm>
  1254. <info>
  1255. BBPATH[doc] = "Used by BitBake to locate .bbclass and configuration files. This variable is analogous to the PATH variable."
  1256. </info>
  1257. <glossdef>
  1258. <para role="glossdeffirst">
  1259. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1260. Used by BitBake to locate
  1261. <filename>.bbclass</filename> and configuration files.
  1262. This variable is analogous to the
  1263. <filename>PATH</filename> variable.
  1264. <note>
  1265. If you run BitBake from a directory outside of the
  1266. <link linkend='build-directory'>Build Directory</link>,
  1267. you must be sure to set
  1268. <filename>BBPATH</filename> to point to the
  1269. Build Directory.
  1270. Set the variable as you would any environment variable
  1271. and then run BitBake:
  1272. <literallayout class='monospaced'>
  1273. $ BBPATH = "<replaceable>build_directory</replaceable>"
  1274. $ export BBPATH
  1275. $ bitbake <replaceable>target</replaceable>
  1276. </literallayout>
  1277. </note>
  1278. </para>
  1279. </glossdef>
  1280. </glossentry>
  1281. <glossentry id='var-BBSERVER'><glossterm>BBSERVER</glossterm>
  1282. <info>
  1283. BBSERVER[doc] = "Points to the BitBake remote server."
  1284. </info>
  1285. <glossdef>
  1286. <para role="glossdeffirst">
  1287. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1288. If defined in the BitBake environment,
  1289. <filename>BBSERVER</filename> points to the BitBake
  1290. remote server.
  1291. </para>
  1292. <para>
  1293. Use the following format to export the variable to the
  1294. BitBake environment:
  1295. <literallayout class='monospaced'>
  1296. export BBSERVER=localhost:$port"
  1297. </literallayout>
  1298. </para>
  1299. <para>
  1300. By default, <filename>BBSERVER</filename> also appears in
  1301. <ulink url='&YOCTO_DOCS_BB_URL;#var-BB_HASHBASE_WHITELIST'><filename>BB_HASHBASE_WHITELIST</filename></ulink>.
  1302. Consequently, <filename>BBSERVER</filename> is excluded
  1303. from checksum and dependency data.
  1304. </para>
  1305. </glossdef>
  1306. </glossentry>
  1307. <glossentry id='var-BINCONFIG'><glossterm>BINCONFIG</glossterm>
  1308. <info>
  1309. 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."
  1310. </info>
  1311. <glossdef>
  1312. <para role="glossdeffirst">
  1313. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1314. When inheriting the
  1315. <link linkend='ref-classes-binconfig-disabled'><filename>binconfig-disabled</filename></link>
  1316. class, this variable specifies binary configuration
  1317. scripts to disable in favor of using
  1318. <filename>pkg-config</filename> to query the information.
  1319. The <filename>binconfig-disabled</filename> class will
  1320. modify the specified scripts to return an error so that
  1321. calls to them can be easily found and replaced.
  1322. </para>
  1323. <para>
  1324. To add multiple scripts, separate them by spaces.
  1325. Here is an example from the <filename>libpng</filename>
  1326. recipe:
  1327. <literallayout class='monospaced'>
  1328. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  1329. </literallayout>
  1330. </para>
  1331. </glossdef>
  1332. </glossentry>
  1333. <glossentry id='var-BINCONFIG_GLOB'><glossterm>BINCONFIG_GLOB</glossterm>
  1334. <info>
  1335. BINCONFIG_GLOB[doc] = "When inheriting binconfig.bbclass from a recipe, this variable specifies a wildcard for configuration scripts that need editing."
  1336. </info>
  1337. <glossdef>
  1338. <para role="glossdeffirst">
  1339. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1340. When inheriting the
  1341. <link linkend='ref-classes-binconfig'><filename>binconfig</filename></link>
  1342. class, this variable specifies a wildcard for
  1343. configuration scripts that need editing.
  1344. The scripts are edited to correct any paths that have been
  1345. set up during compilation so that they are correct for
  1346. use when installed into the sysroot and called by the
  1347. build processes of other recipes.
  1348. <note>
  1349. The <filename>BINCONFIG_GLOB</filename> variable
  1350. uses
  1351. <ulink url='http://tldp.org/LDP/abs/html/globbingref.html'>shell globbing</ulink>,
  1352. which is recognition and expansion of wildcards during
  1353. pattern matching.
  1354. Shell globbing is very similar to
  1355. <ulink url='https://docs.python.org/2/library/fnmatch.html#module-fnmatch'><filename>fnmatch</filename></ulink>
  1356. and
  1357. <ulink url='https://docs.python.org/2/library/glob.html'><filename>glob</filename></ulink>.
  1358. </note>
  1359. </para>
  1360. <para>
  1361. For more information on how this variable works, see
  1362. <filename>meta/classes/binconfig.bbclass</filename> in the
  1363. <link linkend='source-directory'>Source Directory</link>.
  1364. You can also find general information on the class in the
  1365. "<link linkend='ref-classes-binconfig'><filename>binconfig.bbclass</filename></link>"
  1366. section.
  1367. </para>
  1368. </glossdef>
  1369. </glossentry>
  1370. <glossentry id='var-BP'><glossterm>BP</glossterm>
  1371. <info>
  1372. 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}"
  1373. </info>
  1374. <glossdef>
  1375. <para role="glossdeffirst">
  1376. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1377. The base recipe name and version but without any special
  1378. recipe name suffix (i.e. <filename>-native</filename>, <filename>lib64-</filename>,
  1379. and so forth).
  1380. <filename>BP</filename> is comprised of the following:
  1381. <literallayout class="monospaced">
  1382. ${BPN}-${PV}
  1383. </literallayout>
  1384. </para>
  1385. </glossdef>
  1386. </glossentry>
  1387. <glossentry id='var-BPN'><glossterm>BPN</glossterm>
  1388. <info>
  1389. BPN[doc] = "This variable is a version of the PN variable but removes common suffixes and prefixes."
  1390. </info>
  1391. <glossdef>
  1392. <para role="glossdeffirst">
  1393. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1394. This variable is a version of the
  1395. <link linkend='var-PN'><filename>PN</filename></link>
  1396. variable with common prefixes and suffixes
  1397. removed, such as <filename>nativesdk-</filename>,
  1398. <filename>-cross</filename>,
  1399. <filename>-native</filename>, and multilib's
  1400. <filename>lib64-</filename> and
  1401. <filename>lib32-</filename>.
  1402. The exact lists of prefixes and suffixes removed are
  1403. specified by the
  1404. <link linkend='var-MLPREFIX'><filename>MLPREFIX</filename></link>
  1405. and
  1406. <link linkend='var-SPECIAL_PKGSUFFIX'><filename>SPECIAL_PKGSUFFIX</filename></link>
  1407. variables, respectively.
  1408. </para>
  1409. </glossdef>
  1410. </glossentry>
  1411. <glossentry id='var-BUGTRACKER'><glossterm>BUGTRACKER</glossterm>
  1412. <info>
  1413. BUGTRACKER[doc] = "Specifies a URL for an upstream bug tracking website for a recipe."
  1414. </info>
  1415. <glossdef>
  1416. <para role="glossdeffirst">
  1417. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1418. Specifies a URL for an upstream bug tracking website for
  1419. a recipe.
  1420. The OpenEmbedded build system does not use this variable.
  1421. Rather, the variable is a useful pointer in case a bug
  1422. in the software being built needs to be manually reported.
  1423. </para>
  1424. </glossdef>
  1425. </glossentry>
  1426. <glossentry id='var-BUILD_ARCH'><glossterm>BUILD_ARCH</glossterm>
  1427. <info>
  1428. BUILD_ARCH[doc] = "The name of the building architecture (e.g. i686)."
  1429. </info>
  1430. <glossdef>
  1431. <para role="glossdeffirst">
  1432. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1433. Specifies the architecture of the build host
  1434. (e.g. <filename>i686</filename>).
  1435. The OpenEmbedded build system sets the value of
  1436. <filename>BUILD_ARCH</filename> from the machine name
  1437. reported by the <filename>uname</filename> command.
  1438. </para>
  1439. </glossdef>
  1440. </glossentry>
  1441. <glossentry id='var-BUILD_AS_ARCH'><glossterm>BUILD_AS_ARCH</glossterm>
  1442. <info>
  1443. BUILD_AS_ARCH[doc] = "Specifies the architecture-specific assembler flags for the build host."
  1444. </info>
  1445. <glossdef>
  1446. <para role="glossdeffirst">
  1447. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1448. Specifies the architecture-specific assembler flags for
  1449. the build host. By default, the value of
  1450. <filename>BUILD_AS_ARCH</filename> is empty.
  1451. </para>
  1452. </glossdef>
  1453. </glossentry>
  1454. <glossentry id='var-BUILD_CC_ARCH'><glossterm>BUILD_CC_ARCH</glossterm>
  1455. <info>
  1456. BUILD_CC_ARCH[doc] = "Specifies the architecture-specific C compiler flags for the build host."
  1457. </info>
  1458. <glossdef>
  1459. <para role="glossdeffirst">
  1460. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1461. Specifies the architecture-specific C compiler flags for
  1462. the build host. By default, the value of
  1463. <filename>BUILD_CC_ARCH</filename> is empty.
  1464. </para>
  1465. </glossdef>
  1466. </glossentry>
  1467. <glossentry id='var-BUILD_CCLD'><glossterm>BUILD_CCLD</glossterm>
  1468. <info>
  1469. BUILD_CCLD[doc] = "Specifies the linker command to be used for the build host when the C compiler is being used as the linker."
  1470. </info>
  1471. <glossdef>
  1472. <para role="glossdeffirst">
  1473. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1474. Specifies the linker command to be used for the build host
  1475. when the C compiler is being used as the linker. By default,
  1476. <filename>BUILD_CCLD</filename> points to GCC and passes as
  1477. arguments the value of
  1478. <link linkend='var-BUILD_CC_ARCH'><filename>BUILD_CC_ARCH</filename></link>,
  1479. assuming <filename>BUILD_CC_ARCH</filename> is set.
  1480. </para>
  1481. </glossdef>
  1482. </glossentry>
  1483. <glossentry id='var-BUILD_CFLAGS'><glossterm>BUILD_CFLAGS</glossterm>
  1484. <info>
  1485. BUILD_CFLAGS[doc] = "Specifies the flags to pass to the C compiler when building for the build host."
  1486. </info>
  1487. <glossdef>
  1488. <para role="glossdeffirst">
  1489. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1490. Specifies the flags to pass to the C compiler when building
  1491. for the build host.
  1492. When building in the <filename>-native</filename> context,
  1493. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  1494. is set to the value of this variable by default.
  1495. </para>
  1496. </glossdef>
  1497. </glossentry>
  1498. <glossentry id='var-BUILD_CPPFLAGS'><glossterm>BUILD_CPPFLAGS</glossterm>
  1499. <info>
  1500. 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."
  1501. </info>
  1502. <glossdef>
  1503. <para role="glossdeffirst">
  1504. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1505. Specifies the flags to pass to the C preprocessor
  1506. (i.e. to both the C and the C++ compilers) when building
  1507. for the build host.
  1508. When building in the <filename>-native</filename> context,
  1509. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  1510. is set to the value of this variable by default.
  1511. </para>
  1512. </glossdef>
  1513. </glossentry>
  1514. <glossentry id='var-BUILD_CXXFLAGS'><glossterm>BUILD_CXXFLAGS</glossterm>
  1515. <info>
  1516. BUILD_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the build host."
  1517. </info>
  1518. <glossdef>
  1519. <para role="glossdeffirst">
  1520. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1521. Specifies the flags to pass to the C++ compiler when
  1522. building for the build host.
  1523. When building in the <filename>-native</filename> context,
  1524. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  1525. is set to the value of this variable by default.
  1526. </para>
  1527. </glossdef>
  1528. </glossentry>
  1529. <glossentry id='var-BUILD_FC'><glossterm>BUILD_FC</glossterm>
  1530. <info>
  1531. BUILD_FC[doc] = "Specifies the Fortran compiler command for the build host."
  1532. </info>
  1533. <glossdef>
  1534. <para role="glossdeffirst">
  1535. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1536. Specifies the Fortran compiler command for the build host.
  1537. By default, <filename>BUILD_FC</filename> points to
  1538. Gfortran and passes as arguments the value of
  1539. <link linkend='var-BUILD_CC_ARCH'><filename>BUILD_CC_ARCH</filename></link>,
  1540. assuming <filename>BUILD_CC_ARCH</filename> is set.
  1541. </para>
  1542. </glossdef>
  1543. </glossentry>
  1544. <glossentry id='var-BUILD_LD'><glossterm>BUILD_LD</glossterm>
  1545. <info>
  1546. BUILD_LD[doc] = "Specifies the linker command for the build host."
  1547. </info>
  1548. <glossdef>
  1549. <para role="glossdeffirst">
  1550. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1551. Specifies the linker command for the build host. By default,
  1552. <filename>BUILD_LD</filename> points to the GNU linker (ld)
  1553. and passes as arguments the value of
  1554. <link linkend='var-BUILD_LD_ARCH'><filename>BUILD_LD_ARCH</filename></link>,
  1555. assuming <filename>BUILD_LD_ARCH</filename> is set.
  1556. </para>
  1557. </glossdef>
  1558. </glossentry>
  1559. <glossentry id='var-BUILD_LD_ARCH'><glossterm>BUILD_LD_ARCH</glossterm>
  1560. <info>
  1561. BUILD_LD_ARCH[doc] = "Specifies architecture-specific linker flags for the build."
  1562. </info>
  1563. <glossdef>
  1564. <para role="glossdeffirst">
  1565. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1566. Specifies architecture-specific linker flags for the build
  1567. host. By default, the value of
  1568. <filename>BUILD_LD_ARCH</filename> is empty.
  1569. </para>
  1570. </glossdef>
  1571. </glossentry>
  1572. <glossentry id='var-BUILD_LDFLAGS'><glossterm>BUILD_LDFLAGS</glossterm>
  1573. <info>
  1574. BUILD_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the build host."
  1575. </info>
  1576. <glossdef>
  1577. <para role="glossdeffirst">
  1578. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1579. Specifies the flags to pass to the linker when building
  1580. for the build host.
  1581. When building in the <filename>-native</filename> context,
  1582. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  1583. is set to the value of this variable by default.
  1584. </para>
  1585. </glossdef>
  1586. </glossentry>
  1587. <glossentry id='var-BUILD_OPTIMIZATION'><glossterm>BUILD_OPTIMIZATION</glossterm>
  1588. <info>
  1589. BUILD_OPTIMIZATION[doc] = "Specifies the optimization flags passed to the C compiler when building for the build host or the SDK."
  1590. </info>
  1591. <glossdef>
  1592. <para role="glossdeffirst">
  1593. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1594. Specifies the optimization flags passed to the C compiler
  1595. when building for the build host or the SDK.
  1596. The flags are passed through the
  1597. <link linkend='var-BUILD_CFLAGS'><filename>BUILD_CFLAGS</filename></link>
  1598. and
  1599. <link linkend='var-BUILDSDK_CFLAGS'><filename>BUILDSDK_CFLAGS</filename></link>
  1600. default values.
  1601. </para>
  1602. <para>
  1603. The default value of the
  1604. <filename>BUILD_OPTIMIZATION</filename> variable is
  1605. "-O2 -pipe".
  1606. </para>
  1607. </glossdef>
  1608. </glossentry>
  1609. <glossentry id='var-BUILD_OS'><glossterm>BUILD_OS</glossterm>
  1610. <info>
  1611. BUILD_OS[doc] = "The operating system (in lower case) of the building architecture (e.g. Linux)."
  1612. </info>
  1613. <glossdef>
  1614. <para role="glossdeffirst">
  1615. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1616. Specifies the operating system in use on the build
  1617. host (e.g. "linux").
  1618. The OpenEmbedded build system sets the value of
  1619. <filename>BUILD_OS</filename> from the OS reported by
  1620. the <filename>uname</filename> command - the first word,
  1621. converted to lower-case characters.
  1622. </para>
  1623. </glossdef>
  1624. </glossentry>
  1625. <glossentry id='var-BUILD_PREFIX'><glossterm>BUILD_PREFIX</glossterm>
  1626. <info>
  1627. BUILD_PREFIX[doc] = "The toolchain binary prefix used for native recipes."
  1628. </info>
  1629. <glossdef>
  1630. <para role="glossdeffirst">
  1631. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1632. The toolchain binary prefix used for native recipes.
  1633. The OpenEmbedded build system uses the
  1634. <filename>BUILD_PREFIX</filename> value to set the
  1635. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  1636. when building for <filename>native</filename> recipes.
  1637. </para>
  1638. </glossdef>
  1639. </glossentry>
  1640. <glossentry id='var-BUILD_STRIP'><glossterm>BUILD_STRIP</glossterm>
  1641. <info>
  1642. BUILD_STRIP[doc] = "Specifies the command to be used to strip debugging symbols from binaries produced for the build host."
  1643. </info>
  1644. <glossdef>
  1645. <para role="glossdeffirst">
  1646. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1647. Specifies the command to be used to strip debugging symbols
  1648. from binaries produced for the build host. By default,
  1649. <filename>BUILD_STRIP</filename> points to
  1650. <filename>${</filename><link linkend='var-BUILD_PREFIX'><filename>BUILD_PREFIX</filename></link><filename>}strip</filename>.
  1651. </para>
  1652. </glossdef>
  1653. </glossentry>
  1654. <glossentry id='var-BUILD_SYS'><glossterm>BUILD_SYS</glossterm>
  1655. <info>
  1656. BUILD_SYS[doc] = "The toolchain binary prefix used for native recipes."
  1657. </info>
  1658. <glossdef>
  1659. <para role="glossdeffirst">
  1660. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1661. Specifies the system, including the architecture and
  1662. the operating system, to use when building for the build
  1663. host (i.e. when building <filename>native</filename>
  1664. recipes).
  1665. </para>
  1666. <para>
  1667. The OpenEmbedded build system automatically sets this
  1668. variable based on
  1669. <link linkend='var-BUILD_ARCH'><filename>BUILD_ARCH</filename></link>,
  1670. <link linkend='var-BUILD_VENDOR'><filename>BUILD_VENDOR</filename></link>,
  1671. and
  1672. <link linkend='var-BUILD_OS'><filename>BUILD_OS</filename></link>.
  1673. You do not need to set the <filename>BUILD_SYS</filename>
  1674. variable yourself.
  1675. </para>
  1676. </glossdef>
  1677. </glossentry>
  1678. <glossentry id='var-BUILD_VENDOR'><glossterm>BUILD_VENDOR</glossterm>
  1679. <info>
  1680. BUILD_VENDOR[doc] = "The vendor name to use when building for the build host."
  1681. </info>
  1682. <glossdef>
  1683. <para role="glossdeffirst">
  1684. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1685. Specifies the vendor name to use when building for the
  1686. build host.
  1687. The default value is an empty string ("").
  1688. </para>
  1689. </glossdef>
  1690. </glossentry>
  1691. <glossentry id='var-BUILDDIR'><glossterm>BUILDDIR</glossterm>
  1692. <info>
  1693. BUILDDIR[doc] = "Points to the location of the Build Directory."
  1694. </info>
  1695. <glossdef>
  1696. <para role="glossdeffirst">
  1697. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1698. Points to the location of the
  1699. <link linkend='build-directory'>Build Directory</link>.
  1700. You can define this directory indirectly through the
  1701. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>
  1702. script by passing in a Build Directory path when you run
  1703. the script.
  1704. If you run the script and do not provide a Build Directory
  1705. path, the <filename>BUILDDIR</filename> defaults to
  1706. <filename>build</filename> in the current directory.
  1707. </para>
  1708. </glossdef>
  1709. </glossentry>
  1710. <glossentry id='var-BUILDHISTORY_COMMIT'><glossterm>BUILDHISTORY_COMMIT</glossterm>
  1711. <info>
  1712. 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."
  1713. </info>
  1714. <glossdef>
  1715. <para role="glossdeffirst">
  1716. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1717. When inheriting the
  1718. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1719. class, this variable specifies whether or not to commit the
  1720. build history output in a local Git repository.
  1721. If set to "1", this local repository will be maintained
  1722. automatically by the
  1723. <filename>buildhistory</filename>
  1724. class and a commit will be created on every
  1725. build for changes to each top-level subdirectory of the
  1726. build history output (images, packages, and sdk).
  1727. If you want to track changes to build history over
  1728. time, you should set this value to "1".
  1729. </para>
  1730. <para>
  1731. By default, the <filename>buildhistory</filename> class
  1732. does not commit the build history output in a local
  1733. Git repository:
  1734. <literallayout class='monospaced'>
  1735. BUILDHISTORY_COMMIT ?= "0"
  1736. </literallayout>
  1737. </para>
  1738. </glossdef>
  1739. </glossentry>
  1740. <glossentry id='var-BUILDHISTORY_COMMIT_AUTHOR'><glossterm>BUILDHISTORY_COMMIT_AUTHOR</glossterm>
  1741. <info>
  1742. BUILDHISTORY_COMMIT_AUTHOR[doc] = "When inheriting the buildhistory class, this variable specifies the author to use for each Git commit."
  1743. </info>
  1744. <glossdef>
  1745. <para role="glossdeffirst">
  1746. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1747. When inheriting the
  1748. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1749. class, this variable specifies the author to use for each
  1750. Git commit.
  1751. In order for the <filename>BUILDHISTORY_COMMIT_AUTHOR</filename>
  1752. variable to work, the
  1753. <link linkend='var-BUILDHISTORY_COMMIT'><filename>BUILDHISTORY_COMMIT</filename></link>
  1754. variable must be set to "1".
  1755. </para>
  1756. <para>
  1757. Git requires that the value you provide for the
  1758. <filename>BUILDHISTORY_COMMIT_AUTHOR</filename> variable
  1759. takes the form of "name <replaceable>email@host</replaceable>".
  1760. Providing an email address or host that is not valid does
  1761. not produce an error.
  1762. </para>
  1763. <para>
  1764. By default, the <filename>buildhistory</filename> class
  1765. sets the variable as follows:
  1766. <literallayout class='monospaced'>
  1767. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory &lt;buildhistory@${DISTRO}&gt;"
  1768. </literallayout>
  1769. </para>
  1770. </glossdef>
  1771. </glossentry>
  1772. <glossentry id='var-BUILDHISTORY_DIR'><glossterm>BUILDHISTORY_DIR</glossterm>
  1773. <info>
  1774. BUILDHISTORY_DIR[doc] = "When inheriting the buildhistory class, this variable specifies the directory in which build history information is kept."
  1775. </info>
  1776. <glossdef>
  1777. <para role="glossdeffirst">
  1778. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1779. When inheriting the
  1780. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1781. class, this variable specifies the directory in which
  1782. build history information is kept.
  1783. For more information on how the variable works, see the
  1784. <filename>buildhistory.class</filename>.
  1785. </para>
  1786. <para>
  1787. By default, the <filename>buildhistory</filename> class
  1788. sets the directory as follows:
  1789. <literallayout class='monospaced'>
  1790. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  1791. </literallayout>
  1792. </para>
  1793. </glossdef>
  1794. </glossentry>
  1795. <glossentry id='var-BUILDHISTORY_FEATURES'><glossterm>BUILDHISTORY_FEATURES</glossterm>
  1796. <info>
  1797. BUILDHISTORY_FEATURES[doc] = "When inheriting the buildhistory class, this variable specifies the build history features to be enabled."
  1798. </info>
  1799. <glossdef>
  1800. <para role="glossdeffirst">
  1801. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1802. When inheriting the
  1803. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1804. class, this variable specifies the build history features
  1805. to be enabled.
  1806. For more information on how build history works, see the
  1807. "<ulink url='&YOCTO_DOCS_DEV_URL;#maintaining-build-output-quality'>Maintaining Build Output Quality</ulink>"
  1808. section in the Yocto Project Development Tasks Manual.
  1809. </para>
  1810. <para>
  1811. You can specify these features in the form of a
  1812. space-separated list:
  1813. <itemizedlist>
  1814. <listitem><para><emphasis>image:</emphasis>
  1815. Analysis of the contents of images, which
  1816. includes the list of installed packages among other
  1817. things.
  1818. </para></listitem>
  1819. <listitem><para><emphasis>package:</emphasis>
  1820. Analysis of the contents of individual packages.
  1821. </para></listitem>
  1822. <listitem><para><emphasis>sdk:</emphasis>
  1823. Analysis of the contents of the software
  1824. development kit (SDK).
  1825. </para></listitem>
  1826. <listitem><para><emphasis>task:</emphasis>
  1827. Save output file signatures for
  1828. <ulink url='&YOCTO_DOCS_OM_URL;#shared-state-cache'>shared state</ulink>
  1829. (sstate) tasks.
  1830. This saves one file per task and lists the SHA-256
  1831. checksums for each file staged (i.e. the output of
  1832. the task).
  1833. </para></listitem>
  1834. </itemizedlist>
  1835. </para>
  1836. <para>
  1837. By default, the <filename>buildhistory</filename> class
  1838. enables the following features:
  1839. <literallayout class='monospaced'>
  1840. BUILDHISTORY_FEATURES ?= "image package sdk"
  1841. </literallayout>
  1842. </para>
  1843. </glossdef>
  1844. </glossentry>
  1845. <glossentry id='var-BUILDHISTORY_IMAGE_FILES'><glossterm>BUILDHISTORY_IMAGE_FILES</glossterm>
  1846. <info>
  1847. 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."
  1848. </info>
  1849. <glossdef>
  1850. <para role="glossdeffirst">
  1851. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1852. When inheriting the
  1853. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1854. class, this variable specifies a list of paths to files
  1855. copied from the
  1856. image contents into the build history directory under
  1857. an "image-files" directory in the directory for
  1858. the image, so that you can track the contents of each file.
  1859. The default is to copy <filename>/etc/passwd</filename>
  1860. and <filename>/etc/group</filename>, which allows you to
  1861. monitor for changes in user and group entries.
  1862. You can modify the list to include any file.
  1863. Specifying an invalid path does not produce an error.
  1864. Consequently, you can include files that might
  1865. not always be present.
  1866. </para>
  1867. <para>
  1868. By default, the <filename>buildhistory</filename> class
  1869. provides paths to the following files:
  1870. <literallayout class='monospaced'>
  1871. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  1872. </literallayout>
  1873. </para>
  1874. </glossdef>
  1875. </glossentry>
  1876. <glossentry id='var-BUILDHISTORY_PUSH_REPO'><glossterm>BUILDHISTORY_PUSH_REPO</glossterm>
  1877. <info>
  1878. BUILDHISTORY_PUSH_REPO[doc] = "When inheriting the buildhistory class, this variable optionally specifies a remote repository to which build history pushes Git changes."
  1879. </info>
  1880. <glossdef>
  1881. <para role="glossdeffirst">
  1882. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1883. When inheriting the
  1884. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1885. class, this variable optionally specifies a remote
  1886. repository to which build history pushes Git changes.
  1887. In order for <filename>BUILDHISTORY_PUSH_REPO</filename>
  1888. to work,
  1889. <link linkend='var-BUILDHISTORY_COMMIT'><filename>BUILDHISTORY_COMMIT</filename></link>
  1890. must be set to "1".
  1891. </para>
  1892. <para>
  1893. The repository should correspond to a remote
  1894. address that specifies a repository as understood by
  1895. Git, or alternatively to a remote name that you have
  1896. set up manually using <filename>git remote</filename>
  1897. within the local repository.
  1898. </para>
  1899. <para>
  1900. By default, the <filename>buildhistory</filename> class
  1901. sets the variable as follows:
  1902. <literallayout class='monospaced'>
  1903. BUILDHISTORY_PUSH_REPO ?= ""
  1904. </literallayout>
  1905. </para>
  1906. </glossdef>
  1907. </glossentry>
  1908. <glossentry id='var-BUILDSDK_CFLAGS'><glossterm>BUILDSDK_CFLAGS</glossterm>
  1909. <info>
  1910. BUILDSDK_CFLAGS[doc] = "Specifies the flags to pass to the C compiler when building for the SDK."
  1911. </info>
  1912. <glossdef>
  1913. <para role="glossdeffirst">
  1914. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1915. Specifies the flags to pass to the C compiler when building
  1916. for the SDK.
  1917. When building in the <filename>nativesdk-</filename>
  1918. context,
  1919. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  1920. is set to the value of this variable by default.
  1921. </para>
  1922. </glossdef>
  1923. </glossentry>
  1924. <glossentry id='var-BUILDSDK_CPPFLAGS'><glossterm>BUILDSDK_CPPFLAGS</glossterm>
  1925. <info>
  1926. 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."
  1927. </info>
  1928. <glossdef>
  1929. <para role="glossdeffirst">
  1930. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1931. Specifies the flags to pass to the C pre-processor
  1932. (i.e. to both the C and the C++ compilers) when building
  1933. for the SDK.
  1934. When building in the <filename>nativesdk-</filename>
  1935. context,
  1936. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  1937. is set to the value of this variable by default.
  1938. </para>
  1939. </glossdef>
  1940. </glossentry>
  1941. <glossentry id='var-BUILDSDK_CXXFLAGS'><glossterm>BUILDSDK_CXXFLAGS</glossterm>
  1942. <info>
  1943. BUILDSDK_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the SDK."
  1944. </info>
  1945. <glossdef>
  1946. <para role="glossdeffirst">
  1947. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1948. Specifies the flags to pass to the C++ compiler when
  1949. building for the SDK.
  1950. When building in the <filename>nativesdk-</filename>
  1951. context,
  1952. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  1953. is set to the value of this variable by default.
  1954. </para>
  1955. </glossdef>
  1956. </glossentry>
  1957. <glossentry id='var-BUILDSDK_LDFLAGS'><glossterm>BUILDSDK_LDFLAGS</glossterm>
  1958. <info>
  1959. BUILDSDK_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the SDK."
  1960. </info>
  1961. <glossdef>
  1962. <para role="glossdeffirst">
  1963. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1964. Specifies the flags to pass to the linker when building
  1965. for the SDK.
  1966. When building in the <filename>nativesdk-</filename>
  1967. context,
  1968. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  1969. is set to the value of this variable by default.
  1970. </para>
  1971. </glossdef>
  1972. </glossentry>
  1973. <glossentry id='var-BUILDSTATS_BASE'><glossterm>BUILDSTATS_BASE</glossterm>
  1974. <info>
  1975. BUILDSTATS_BASE[doc] = "Points to the location of the directory that holds build statistics when you use and enable the buildstats class."
  1976. </info>
  1977. <glossdef>
  1978. <para role="glossdeffirst">
  1979. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1980. Points to the location of the directory that holds build
  1981. statistics when you use and enable the
  1982. <link linkend='ref-classes-buildstats'><filename>buildstats</filename></link>
  1983. class.
  1984. The <filename>BUILDSTATS_BASE</filename> directory defaults
  1985. to
  1986. <filename>${</filename><link linkend='var-TMPDIR'><filename>TMPDIR</filename></link><filename>}/buildstats/</filename>.
  1987. </para>
  1988. </glossdef>
  1989. </glossentry>
  1990. <glossentry id='var-BUSYBOX_SPLIT_SUID'><glossterm>BUSYBOX_SPLIT_SUID</glossterm>
  1991. <info>
  1992. 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."
  1993. </info>
  1994. <glossdef>
  1995. <para role="glossdeffirst">
  1996. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1997. For the BusyBox recipe, specifies whether to split the
  1998. output executable file into two parts: one for features
  1999. that require <filename>setuid root</filename>, and one for
  2000. the remaining features (i.e. those that do not require
  2001. <filename>setuid root</filename>).
  2002. </para>
  2003. <para>
  2004. The <filename>BUSYBOX_SPLIT_SUID</filename> variable
  2005. defaults to "1", which results in a single output
  2006. executable file.
  2007. Set the variable to "0" to split the output file.
  2008. </para>
  2009. </glossdef>
  2010. </glossentry>
  2011. </glossdiv>
  2012. <glossdiv id='var-glossary-c'><title>C</title>
  2013. <glossentry id='var-CACHE'><glossterm>CACHE</glossterm>
  2014. <info>
  2015. CACHE[doc] = "The directory BitBake uses to store a cache of the metadata."
  2016. </info>
  2017. <glossdef>
  2018. <para role="glossdeffirst">
  2019. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2020. Specifies the directory BitBake uses to store a cache
  2021. of the
  2022. <link linkend='metadata'>Metadata</link>
  2023. so it does not need to be parsed every time BitBake is
  2024. started.
  2025. </para>
  2026. </glossdef>
  2027. </glossentry>
  2028. <glossentry id='var-CC'><glossterm>CC</glossterm>
  2029. <info>
  2030. CC[doc] = "Minimum command and arguments to run the C compiler."
  2031. </info>
  2032. <glossdef>
  2033. <para role="glossdeffirst">
  2034. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2035. The minimal command and arguments used to run the C
  2036. compiler.
  2037. </para>
  2038. </glossdef>
  2039. </glossentry>
  2040. <glossentry id='var-CFLAGS'><glossterm>CFLAGS</glossterm>
  2041. <info>
  2042. CFLAGS[doc] = "Flags passed to the C compiler for the target system. This variable evaluates to the same as TARGET_CFLAGS."
  2043. </info>
  2044. <glossdef>
  2045. <para role="glossdeffirst">
  2046. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2047. Specifies the flags to pass to the C compiler.
  2048. This variable is exported to an environment
  2049. variable and thus made visible to the software being
  2050. built during the compilation step.
  2051. </para>
  2052. <para>
  2053. Default initialization for <filename>CFLAGS</filename>
  2054. varies depending on what is being built:
  2055. <itemizedlist>
  2056. <listitem><para>
  2057. <link linkend='var-TARGET_CFLAGS'><filename>TARGET_CFLAGS</filename></link>
  2058. when building for the target
  2059. </para></listitem>
  2060. <listitem><para>
  2061. <link linkend='var-BUILD_CFLAGS'><filename>BUILD_CFLAGS</filename></link>
  2062. when building for the build host (i.e.
  2063. <filename>-native</filename>)
  2064. </para></listitem>
  2065. <listitem><para>
  2066. <link linkend='var-BUILDSDK_CFLAGS'><filename>BUILDSDK_CFLAGS</filename></link>
  2067. when building for an SDK (i.e.
  2068. <filename>nativesdk-</filename>)
  2069. </para></listitem>
  2070. </itemizedlist>
  2071. </para>
  2072. </glossdef>
  2073. </glossentry>
  2074. <glossentry id='var-CLASSOVERRIDE'><glossterm>CLASSOVERRIDE</glossterm>
  2075. <info>
  2076. CLASSOVERRIDE[doc] = "An internal variable specifying the special class override that should currently apply (e.g. "class-target", "class-native", and so forth)."
  2077. </info>
  2078. <glossdef>
  2079. <para role="glossdeffirst">
  2080. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2081. An internal variable specifying the special class override
  2082. that should currently apply (e.g. "class-target",
  2083. "class-native", and so forth).
  2084. The classes that use this variable (e.g.
  2085. <link linkend='ref-classes-native'><filename>native</filename></link>,
  2086. <link linkend='ref-classes-nativesdk'><filename>nativesdk</filename></link>,
  2087. and so forth) set the variable to appropriate values.
  2088. <note>
  2089. <filename>CLASSOVERRIDE</filename> gets its default
  2090. "class-target" value from the
  2091. <filename>bitbake.conf</filename> file.
  2092. </note>
  2093. </para>
  2094. <para>
  2095. As an example, the following override allows you to install
  2096. extra files, but only when building for the target:
  2097. <literallayout class='monospaced'>
  2098. do_install_append_class-target() {
  2099. install my-extra-file ${D}${sysconfdir}
  2100. }
  2101. </literallayout>
  2102. Here is an example where <filename>FOO</filename>
  2103. is set to "native" when building for the build host, and
  2104. to "other" when not building for the build host:
  2105. <literallayout class='monospaced'>
  2106. FOO_class-native = "native"
  2107. FOO = "other"
  2108. </literallayout>
  2109. The underlying mechanism behind
  2110. <filename>CLASSOVERRIDE</filename> is simply that it is
  2111. included in the default value of
  2112. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  2113. </para>
  2114. </glossdef>
  2115. </glossentry>
  2116. <glossentry id='var-CLEANBROKEN'><glossterm>CLEANBROKEN</glossterm>
  2117. <info>
  2118. CLEANBROKEN[doc] = "Prevents the build system from running 'make clean' during the do_configure task."
  2119. </info>
  2120. <glossdef>
  2121. <para role="glossdeffirst">
  2122. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2123. If set to "1" within a recipe,
  2124. <filename>CLEANBROKEN</filename> specifies that
  2125. the <filename>make clean</filename> command does
  2126. not work for the software being built.
  2127. Consequently, the OpenEmbedded build system will not try
  2128. to run <filename>make clean</filename> during the
  2129. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  2130. task, which is the default behavior.
  2131. </para>
  2132. </glossdef>
  2133. </glossentry>
  2134. <glossentry id='var-COMBINED_FEATURES'><glossterm>COMBINED_FEATURES</glossterm>
  2135. <info>
  2136. COMBINED_FEATURES[doc] = "A set of features common between MACHINE_FEATURES and DISTRO_FEATURES."
  2137. </info>
  2138. <glossdef>
  2139. <para role="glossdeffirst">
  2140. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2141. Provides a list of hardware features that are enabled in
  2142. both
  2143. <link linkend='var-MACHINE_FEATURES'><filename>MACHINE_FEATURES</filename></link>
  2144. and
  2145. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>.
  2146. This select list of features contains features that make
  2147. sense to be controlled both at the machine and distribution
  2148. configuration level.
  2149. For example, the "bluetooth" feature requires hardware
  2150. support but should also be optional at the distribution
  2151. level, in case the hardware supports Bluetooth but you
  2152. do not ever intend to use it.
  2153. </para>
  2154. </glossdef>
  2155. </glossentry>
  2156. <glossentry id='var-COMMON_LICENSE_DIR'><glossterm>COMMON_LICENSE_DIR</glossterm>
  2157. <info>
  2158. COMMON_LICENSE_DIR[doc] = "Points to meta/files/common-licenses in the Source Directory, which is where generic license files reside."
  2159. </info>
  2160. <glossdef>
  2161. <para role="glossdeffirst">
  2162. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2163. Points to <filename>meta/files/common-licenses</filename>
  2164. in the
  2165. <link linkend='source-directory'>Source Directory</link>,
  2166. which is where generic license files reside.
  2167. </para>
  2168. </glossdef>
  2169. </glossentry>
  2170. <glossentry id='var-COMPATIBLE_HOST'><glossterm>COMPATIBLE_HOST</glossterm>
  2171. <info>
  2172. 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."
  2173. </info>
  2174. <glossdef>
  2175. <para role="glossdeffirst">
  2176. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2177. A regular expression that resolves to one or more hosts
  2178. (when the recipe is native) or one or more targets (when
  2179. the recipe is non-native) with which a recipe is compatible.
  2180. The regular expression is matched against
  2181. <link linkend="var-HOST_SYS"><filename>HOST_SYS</filename></link>.
  2182. You can use the variable to stop recipes from being built
  2183. for classes of systems with which the recipes are not
  2184. compatible.
  2185. Stopping these builds is particularly useful with kernels.
  2186. The variable also helps to increase parsing speed
  2187. since the build system skips parsing recipes not
  2188. compatible with the current system.
  2189. </para>
  2190. </glossdef>
  2191. </glossentry>
  2192. <glossentry id='var-COMPATIBLE_MACHINE'><glossterm>COMPATIBLE_MACHINE</glossterm>
  2193. <info>
  2194. COMPATIBLE_MACHINE[doc] = "A regular expression that resolves to one or more target machines with which a recipe is compatible."
  2195. </info>
  2196. <glossdef>
  2197. <para role="glossdeffirst">
  2198. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2199. A regular expression that resolves to one or more
  2200. target machines with which a recipe is compatible.
  2201. The regular expression is matched against
  2202. <link linkend="var-MACHINEOVERRIDES"><filename>MACHINEOVERRIDES</filename></link>.
  2203. You can use the variable to stop recipes from being built
  2204. for machines with which the recipes are not compatible.
  2205. Stopping these builds is particularly useful with kernels.
  2206. The variable also helps to increase parsing speed
  2207. since the build system skips parsing recipes not
  2208. compatible with the current machine.
  2209. </para>
  2210. </glossdef>
  2211. </glossentry>
  2212. <glossentry id='var-COMPLEMENTARY_GLOB'><glossterm>COMPLEMENTARY_GLOB</glossterm>
  2213. <info>
  2214. COMPLEMENTARY_GLOB[doc] = "Defines wildcards to match when installing a list of complementary packages for all the packages installed in an image."
  2215. </info>
  2216. <glossdef>
  2217. <para role="glossdeffirst">
  2218. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2219. Defines wildcards to match when installing a list of
  2220. complementary packages for all the packages explicitly
  2221. (or implicitly) installed in an image.
  2222. <note>
  2223. The <filename>COMPLEMENTARY_GLOB</filename> variable
  2224. uses Unix filename pattern matching
  2225. (<ulink url='https://docs.python.org/2/library/fnmatch.html#module-fnmatch'><filename>fnmatch</filename></ulink>),
  2226. which is similar to the Unix style pathname pattern
  2227. expansion
  2228. (<ulink url='https://docs.python.org/2/library/glob.html'><filename>glob</filename></ulink>).
  2229. </note>
  2230. The resulting list of complementary packages is associated
  2231. with an item that can be added to
  2232. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  2233. An example usage of this is the "dev-pkgs" item that when
  2234. added to <filename>IMAGE_FEATURES</filename> will
  2235. install -dev packages (containing headers and other
  2236. development files) for every package in the image.
  2237. </para>
  2238. <para>
  2239. To add a new feature item pointing to a wildcard, use a
  2240. variable flag to specify the feature item name and
  2241. use the value to specify the wildcard.
  2242. Here is an example:
  2243. <literallayout class='monospaced'>
  2244. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  2245. </literallayout>
  2246. </para>
  2247. </glossdef>
  2248. </glossentry>
  2249. <glossentry id='var-COMPONENTS_DIR'><glossterm>COMPONENTS_DIR</glossterm>
  2250. <info>
  2251. COMPONENTS_DIR[doc] = "Stores sysroot components for each recipe."
  2252. </info>
  2253. <glossdef>
  2254. <para role="glossdeffirst">
  2255. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2256. Stores sysroot components for each recipe.
  2257. The OpenEmbedded build system uses
  2258. <filename>COMPONENTS_DIR</filename> when constructing
  2259. recipe-specific sysroots for other recipes.
  2260. </para>
  2261. <para>
  2262. The default is
  2263. "<filename>${</filename><link linkend='var-STAGING_DIR'><filename>STAGING_DIR</filename></link><filename>}-components</filename>."
  2264. (i.e. "<filename>${</filename><link linkend='var-TMPDIR'><filename>TMPDIR</filename></link><filename>}/sysroots-components</filename>").
  2265. </para>
  2266. </glossdef>
  2267. </glossentry>
  2268. <glossentry id='var-CONF_VERSION'><glossterm>CONF_VERSION</glossterm>
  2269. <info>
  2270. CONF_VERSION[doc] = "Tracks the version of local.conf. Increased each time build/conf/ changes incompatibly."
  2271. </info>
  2272. <glossdef>
  2273. <para role="glossdeffirst">
  2274. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2275. Tracks the version of the local configuration file
  2276. (i.e. <filename>local.conf</filename>).
  2277. The value for <filename>CONF_VERSION</filename>
  2278. increments each time <filename>build/conf/</filename>
  2279. compatibility changes.
  2280. </para>
  2281. </glossdef>
  2282. </glossentry>
  2283. <glossentry id='var-CONFFILES'><glossterm>CONFFILES</glossterm>
  2284. <info>
  2285. CONFFILES[doc] = "Identifies editable or configurable files that are part of a package."
  2286. </info>
  2287. <glossdef>
  2288. <para role="glossdeffirst">
  2289. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2290. Identifies editable or configurable files that are part of a package.
  2291. If the Package Management System (PMS) is being used to update
  2292. packages on the target system, it is possible that
  2293. configuration files you have changed after the original installation
  2294. and that you now want to remain unchanged are overwritten.
  2295. In other words, editable files might exist in the package that you do not
  2296. want reset as part of the package update process.
  2297. You can use the <filename>CONFFILES</filename> variable to list the files in the
  2298. package that you wish to prevent the PMS from overwriting during this update process.
  2299. </para>
  2300. <para>
  2301. To use the <filename>CONFFILES</filename> variable, provide a package name
  2302. override that identifies the resulting package.
  2303. Then, provide a space-separated list of files.
  2304. Here is an example:
  2305. <literallayout class='monospaced'>
  2306. CONFFILES_${PN} += "${sysconfdir}/file1 \
  2307. ${sysconfdir}/file2 ${sysconfdir}/file3"
  2308. </literallayout>
  2309. </para>
  2310. <para>
  2311. A relationship exists between the <filename>CONFFILES</filename> and
  2312. <filename><link linkend='var-FILES'>FILES</link></filename> variables.
  2313. The files listed within <filename>CONFFILES</filename> must be a subset of
  2314. the files listed within <filename>FILES</filename>.
  2315. Because the configuration files you provide with <filename>CONFFILES</filename>
  2316. are simply being identified so that the PMS will not overwrite them,
  2317. it makes sense that
  2318. the files must already be included as part of the package through the
  2319. <filename>FILES</filename> variable.
  2320. </para>
  2321. <note>
  2322. When specifying paths as part of the <filename>CONFFILES</filename> variable,
  2323. it is good practice to use appropriate path variables.
  2324. For example, <filename>${sysconfdir}</filename> rather than
  2325. <filename>/etc</filename> or <filename>${bindir}</filename> rather
  2326. than <filename>/usr/bin</filename>.
  2327. You can find a list of these variables at the top of the
  2328. <filename>meta/conf/bitbake.conf</filename> file in the
  2329. <link linkend='source-directory'>Source Directory</link>.
  2330. </note>
  2331. </glossdef>
  2332. </glossentry>
  2333. <glossentry id='var-CONFIG_INITRAMFS_SOURCE'><glossterm>CONFIG_INITRAMFS_SOURCE</glossterm>
  2334. <info>
  2335. 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."
  2336. </info>
  2337. <glossdef>
  2338. <para role="glossdeffirst">
  2339. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2340. Identifies the initial RAM filesystem (initramfs) source
  2341. files.
  2342. The OpenEmbedded build system receives and uses
  2343. this kernel Kconfig variable as an environment variable.
  2344. By default, the variable is set to null ("").
  2345. </para>
  2346. <para>
  2347. The <filename>CONFIG_INITRAMFS_SOURCE</filename> can be
  2348. either a single cpio archive with a
  2349. <filename>.cpio</filename> suffix or a
  2350. space-separated list of directories and files for building
  2351. the initramfs image.
  2352. A cpio archive should contain a filesystem archive
  2353. to be used as an initramfs image.
  2354. Directories should contain a filesystem layout to be
  2355. included in the initramfs image.
  2356. Files should contain entries according to the format
  2357. described by the
  2358. <filename>usr/gen_init_cpio</filename> program in the
  2359. kernel tree.
  2360. </para>
  2361. <para>
  2362. If you specify multiple directories and files, the
  2363. initramfs image will be the aggregate of all of them.
  2364. </para>
  2365. <para>
  2366. For information on creating an initramfs, see the
  2367. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  2368. section in the Yocto Project Development Tasks Manual.
  2369. </para>
  2370. </glossdef>
  2371. </glossentry>
  2372. <glossentry id='var-CONFIG_SITE'><glossterm>CONFIG_SITE</glossterm>
  2373. <info>
  2374. 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."
  2375. </info>
  2376. <glossdef>
  2377. <para role="glossdeffirst">
  2378. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2379. A list of files that contains <filename>autoconf</filename> test results relevant
  2380. to the current build.
  2381. This variable is used by the Autotools utilities when running
  2382. <filename>configure</filename>.
  2383. </para>
  2384. </glossdef>
  2385. </glossentry>
  2386. <glossentry id='var-CONFIGURE_FLAGS'><glossterm>CONFIGURE_FLAGS</glossterm>
  2387. <info>
  2388. CONFIGURE_FLAGS[doc] = "The minimal arguments for GNU configure."
  2389. </info>
  2390. <glossdef>
  2391. <para role="glossdeffirst">
  2392. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2393. The minimal arguments for GNU configure.
  2394. </para>
  2395. </glossdef>
  2396. </glossentry>
  2397. <glossentry id='var-CONFLICT_DISTRO_FEATURES'><glossterm>CONFLICT_DISTRO_FEATURES</glossterm>
  2398. <info>
  2399. 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."
  2400. </info>
  2401. <glossdef>
  2402. <para role="glossdeffirst">
  2403. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2404. When inheriting the
  2405. <link linkend='ref-classes-distro_features_check'><filename>distro_features_check</filename></link>
  2406. class, this
  2407. variable identifies distribution features that would
  2408. be in conflict should the recipe
  2409. be built.
  2410. In other words, if the
  2411. <filename>CONFLICT_DISTRO_FEATURES</filename> variable
  2412. lists a feature that also appears in
  2413. <filename>DISTRO_FEATURES</filename> within the
  2414. current configuration, an error occurs and the
  2415. build stops.
  2416. </para>
  2417. </glossdef>
  2418. </glossentry>
  2419. <glossentry id='var-COPYLEFT_LICENSE_EXCLUDE'><glossterm>COPYLEFT_LICENSE_EXCLUDE</glossterm>
  2420. <info>
  2421. COPYLEFT_LICENSE_EXCLUDE[doc] = "Licenses to exclude in the source archived by the archiver class."
  2422. </info>
  2423. <glossdef>
  2424. <para role="glossdeffirst">
  2425. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2426. A space-separated list of licenses to exclude from the
  2427. source archived by the
  2428. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2429. class.
  2430. In other words, if a license in a recipe's
  2431. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  2432. value is in the value of
  2433. <filename>COPYLEFT_LICENSE_EXCLUDE</filename>, then its
  2434. source is not archived by the class.
  2435. <note>
  2436. The <filename>COPYLEFT_LICENSE_EXCLUDE</filename>
  2437. variable takes precedence over the
  2438. <link linkend='var-COPYLEFT_LICENSE_INCLUDE'><filename>COPYLEFT_LICENSE_INCLUDE</filename></link>
  2439. variable.
  2440. </note>
  2441. The default value, which is "CLOSED Proprietary", for
  2442. <filename>COPYLEFT_LICENSE_EXCLUDE</filename> is set
  2443. by the
  2444. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2445. class, which is inherited by the
  2446. <filename>archiver</filename> class.
  2447. </para>
  2448. </glossdef>
  2449. </glossentry>
  2450. <glossentry id='var-COPYLEFT_LICENSE_INCLUDE'><glossterm>COPYLEFT_LICENSE_INCLUDE</glossterm>
  2451. <info>
  2452. COPYLEFT_LICENSE_INCLUDE[doc] = "Licenses to include in the source archived by the archiver class."
  2453. </info>
  2454. <glossdef>
  2455. <para role="glossdeffirst">
  2456. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2457. A space-separated list of licenses to include in the
  2458. source archived by the
  2459. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2460. class.
  2461. In other words, if a license in a recipe's
  2462. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  2463. value is in the value of
  2464. <filename>COPYLEFT_LICENSE_INCLUDE</filename>, then its
  2465. source is archived by the class.
  2466. </para>
  2467. <para>
  2468. The default value is set by the
  2469. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2470. class, which is inherited by the
  2471. <filename>archiver</filename> class.
  2472. The default value includes "GPL*", "LGPL*", and "AGPL*".
  2473. </para>
  2474. </glossdef>
  2475. </glossentry>
  2476. <glossentry id='var-COPYLEFT_PN_EXCLUDE'><glossterm>COPYLEFT_PN_EXCLUDE</glossterm>
  2477. <info>
  2478. COPYLEFT_PN_EXCLUDE[doc] = "Recipes to exclude in the source archived by the archiver class."
  2479. </info>
  2480. <glossdef>
  2481. <para role="glossdeffirst">
  2482. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2483. A list of recipes to exclude in the source archived
  2484. by the
  2485. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2486. class.
  2487. The <filename>COPYLEFT_PN_EXCLUDE</filename> variable
  2488. overrides the license inclusion and exclusion caused
  2489. through the
  2490. <link linkend='var-COPYLEFT_LICENSE_INCLUDE'><filename>COPYLEFT_LICENSE_INCLUDE</filename></link>
  2491. and
  2492. <link linkend='var-COPYLEFT_LICENSE_EXCLUDE'><filename>COPYLEFT_LICENSE_EXCLUDE</filename></link>
  2493. variables, respectively.
  2494. </para>
  2495. <para>
  2496. The default value, which is "" indicating to not explicitly
  2497. exclude any recipes by name, for
  2498. <filename>COPYLEFT_PN_EXCLUDE</filename> is set
  2499. by the
  2500. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2501. class, which is inherited by the
  2502. <filename>archiver</filename> class.
  2503. </para>
  2504. </glossdef>
  2505. </glossentry>
  2506. <glossentry id='var-COPYLEFT_PN_INCLUDE'><glossterm>COPYLEFT_PN_INCLUDE</glossterm>
  2507. <info>
  2508. COPYLEFT_PN_INCLUDE[doc] = "Recipes to include in the source archived by the archiver class."
  2509. </info>
  2510. <glossdef>
  2511. <para role="glossdeffirst">
  2512. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2513. A list of recipes to include in the source archived
  2514. by the
  2515. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2516. class.
  2517. The <filename>COPYLEFT_PN_INCLUDE</filename> variable
  2518. overrides the license inclusion and exclusion caused
  2519. through the
  2520. <link linkend='var-COPYLEFT_LICENSE_INCLUDE'><filename>COPYLEFT_LICENSE_INCLUDE</filename></link>
  2521. and
  2522. <link linkend='var-COPYLEFT_LICENSE_EXCLUDE'><filename>COPYLEFT_LICENSE_EXCLUDE</filename></link>
  2523. variables, respectively.
  2524. </para>
  2525. <para>
  2526. The default value, which is "" indicating to not explicitly
  2527. include any recipes by name, for
  2528. <filename>COPYLEFT_PN_INCLUDE</filename> is set
  2529. by the
  2530. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2531. class, which is inherited by the
  2532. <filename>archiver</filename> class.
  2533. </para>
  2534. </glossdef>
  2535. </glossentry>
  2536. <glossentry id='var-COPYLEFT_RECIPE_TYPES'><glossterm>COPYLEFT_RECIPE_TYPES</glossterm>
  2537. <info>
  2538. COPYLEFT_RECIPE_TYPES[doc] = "Recipe types to include in the source archived by the archiver class."
  2539. </info>
  2540. <glossdef>
  2541. <para role="glossdeffirst">
  2542. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2543. A space-separated list of recipe types to include
  2544. in the source archived by the
  2545. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2546. class.
  2547. Recipe types are <filename>target</filename>,
  2548. <filename>native</filename>,
  2549. <filename>nativesdk</filename>,
  2550. <filename>cross</filename>,
  2551. <filename>crosssdk</filename>, and
  2552. <filename>cross-canadian</filename>.
  2553. </para>
  2554. <para>
  2555. The default value, which is "target*", for
  2556. <filename>COPYLEFT_RECIPE_TYPES</filename> is set
  2557. by the
  2558. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2559. class, which is inherited by the
  2560. <filename>archiver</filename> class.
  2561. </para>
  2562. </glossdef>
  2563. </glossentry>
  2564. <glossentry id='var-COPY_LIC_DIRS'><glossterm>COPY_LIC_DIRS</glossterm>
  2565. <info>
  2566. 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."
  2567. </info>
  2568. <glossdef>
  2569. <para role="glossdeffirst">
  2570. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2571. If set to "1" along with the
  2572. <link linkend='var-COPY_LIC_MANIFEST'><filename>COPY_LIC_MANIFEST</filename></link>
  2573. variable, the OpenEmbedded build system copies
  2574. into the image the license files, which are located in
  2575. <filename>/usr/share/common-licenses</filename>,
  2576. for each package.
  2577. The license files are placed
  2578. in directories within the image itself during build time.
  2579. <note>
  2580. The <filename>COPY_LIC_DIRS</filename> does not
  2581. offer a path for adding licenses for newly installed
  2582. packages to an image, which might be most suitable
  2583. for read-only filesystems that cannot be upgraded.
  2584. See the
  2585. <link linkend='var-LICENSE_CREATE_PACKAGE'><filename>LICENSE_CREATE_PACKAGE</filename></link>
  2586. variable for additional information.
  2587. You can also reference the
  2588. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  2589. section in the Yocto Project Development Tasks Manual
  2590. for information on providing license text.
  2591. </note>
  2592. </para>
  2593. </glossdef>
  2594. </glossentry>
  2595. <glossentry id='var-COPY_LIC_MANIFEST'><glossterm>COPY_LIC_MANIFEST</glossterm>
  2596. <info>
  2597. 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."
  2598. </info>
  2599. <glossdef>
  2600. <para role="glossdeffirst">
  2601. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2602. If set to "1", the OpenEmbedded build system copies
  2603. the license manifest for the image to
  2604. <filename>/usr/share/common-licenses/license.manifest</filename>
  2605. within the image itself during build time.
  2606. <note>
  2607. The <filename>COPY_LIC_MANIFEST</filename> does not
  2608. offer a path for adding licenses for newly installed
  2609. packages to an image, which might be most suitable
  2610. for read-only filesystems that cannot be upgraded.
  2611. See the
  2612. <link linkend='var-LICENSE_CREATE_PACKAGE'><filename>LICENSE_CREATE_PACKAGE</filename></link>
  2613. variable for additional information.
  2614. You can also reference the
  2615. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  2616. section in the Yocto Project Development Tasks Manual
  2617. for information on providing license text.
  2618. </note>
  2619. </para>
  2620. </glossdef>
  2621. </glossentry>
  2622. <glossentry id='var-CORE_IMAGE_EXTRA_INSTALL'><glossterm>CORE_IMAGE_EXTRA_INSTALL</glossterm>
  2623. <info>
  2624. 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."
  2625. </info>
  2626. <glossdef>
  2627. <para role="glossdeffirst">
  2628. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2629. Specifies the list of packages to be added to the image.
  2630. You should only set this variable in the
  2631. <filename>local.conf</filename> configuration file found
  2632. in the
  2633. <link linkend='build-directory'>Build Directory</link>.
  2634. </para>
  2635. <para>
  2636. This variable replaces <filename>POKY_EXTRA_INSTALL</filename>, which is no longer supported.
  2637. </para>
  2638. </glossdef>
  2639. </glossentry>
  2640. <glossentry id='var-COREBASE'><glossterm>COREBASE</glossterm>
  2641. <info>
  2642. COREBASE[doc] = "Specifies the parent directory of the OpenEmbedded-Core Metadata layer (i.e. meta)."
  2643. </info>
  2644. <glossdef>
  2645. <para role="glossdeffirst">
  2646. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2647. Specifies the parent directory of the OpenEmbedded-Core
  2648. Metadata layer (i.e. <filename>meta</filename>).
  2649. </para>
  2650. <para>
  2651. It is an important distinction that
  2652. <filename>COREBASE</filename> points to the parent of this
  2653. layer and not the layer itself.
  2654. Consider an example where you have cloned the Poky Git
  2655. repository and retained the <filename>poky</filename>
  2656. name for your local copy of the repository.
  2657. In this case, <filename>COREBASE</filename> points to
  2658. the <filename>poky</filename> folder because it is the
  2659. parent directory of the <filename>poky/meta</filename>
  2660. layer.
  2661. </para>
  2662. </glossdef>
  2663. </glossentry>
  2664. <glossentry id='var-COREBASE_FILES'><glossterm>COREBASE_FILES</glossterm>
  2665. <info>
  2666. COREBASE_FILES[doc] = "Lists files from the COREBASE directory that should be copied other than the layers listed in the bblayers.conf file."
  2667. </info>
  2668. <glossdef>
  2669. <para role="glossdeffirst">
  2670. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2671. Lists files from the
  2672. <link linkend='var-COREBASE'><filename>COREBASE</filename></link>
  2673. directory that should be copied other than the layers
  2674. listed in the <filename>bblayers.conf</filename> file.
  2675. The <filename>COREBASE_FILES</filename> variable exists
  2676. for the purpose of copying metadata from the
  2677. OpenEmbedded build system into the extensible
  2678. SDK.
  2679. </para>
  2680. <para>
  2681. Explicitly listing files in <filename>COREBASE</filename>
  2682. is needed because it typically contains build
  2683. directories and other files that should not normally
  2684. be copied into the extensible SDK.
  2685. Consequently, the value of
  2686. <filename>COREBASE_FILES</filename> is used in order to
  2687. only copy the files that are actually needed.
  2688. </para>
  2689. </glossdef>
  2690. </glossentry>
  2691. <glossentry id='var-CPP'><glossterm>CPP</glossterm>
  2692. <info>
  2693. CPP[doc] = "Minimum command and arguments to run the C preprocessor."
  2694. </info>
  2695. <glossdef>
  2696. <para role="glossdeffirst">
  2697. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2698. The minimal command and arguments used to run the C
  2699. preprocessor.
  2700. </para>
  2701. </glossdef>
  2702. </glossentry>
  2703. <glossentry id='var-CPPFLAGS'><glossterm>CPPFLAGS</glossterm>
  2704. <info>
  2705. CPPFLAGS[doc] = "Specifies the flags to pass to the C pre-processor (i.e. to both the C and the C++ compilers)."
  2706. </info>
  2707. <glossdef>
  2708. <para role="glossdeffirst">
  2709. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2710. Specifies the flags to pass to the C pre-processor
  2711. (i.e. to both the C and the C++ compilers).
  2712. This variable is exported to an environment
  2713. variable and thus made visible to the software being
  2714. built during the compilation step.
  2715. </para>
  2716. <para>
  2717. Default initialization for <filename>CPPFLAGS</filename>
  2718. varies depending on what is being built:
  2719. <itemizedlist>
  2720. <listitem><para>
  2721. <link linkend='var-TARGET_CPPFLAGS'><filename>TARGET_CPPFLAGS</filename></link>
  2722. when building for the target
  2723. </para></listitem>
  2724. <listitem><para>
  2725. <link linkend='var-BUILD_CPPFLAGS'><filename>BUILD_CPPFLAGS</filename></link>
  2726. when building for the build host (i.e.
  2727. <filename>-native</filename>)
  2728. </para></listitem>
  2729. <listitem><para>
  2730. <link linkend='var-BUILDSDK_CPPFLAGS'><filename>BUILDSDK_CPPFLAGS</filename></link>
  2731. when building for an SDK (i.e.
  2732. <filename>nativesdk-</filename>)
  2733. </para></listitem>
  2734. </itemizedlist>
  2735. </para>
  2736. </glossdef>
  2737. </glossentry>
  2738. <glossentry id='var-CROSS_COMPILE'><glossterm>CROSS_COMPILE</glossterm>
  2739. <info>
  2740. CROSS_COMPILE[doc] = "The toolchain binary prefix for the target tools."
  2741. </info>
  2742. <glossdef>
  2743. <para role="glossdeffirst">
  2744. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2745. The toolchain binary prefix for the target tools.
  2746. The <filename>CROSS_COMPILE</filename> variable is the
  2747. same as the
  2748. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  2749. variable.
  2750. <note>
  2751. The OpenEmbedded build system sets the
  2752. <filename>CROSS_COMPILE</filename> variable only in
  2753. certain contexts (e.g. when building for kernel
  2754. and kernel module recipes).
  2755. </note>
  2756. </para>
  2757. </glossdef>
  2758. </glossentry>
  2759. <glossentry id='var-CVSDIR'><glossterm>CVSDIR</glossterm>
  2760. <info>
  2761. CVSDIR[doc] = "The directory where cvs checkouts will be stored in."
  2762. </info>
  2763. <glossdef>
  2764. <para role="glossdeffirst">
  2765. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2766. The directory in which files checked out under the
  2767. CVS system are stored.
  2768. </para>
  2769. </glossdef>
  2770. </glossentry>
  2771. <glossentry id='var-CXX'><glossterm>CXX</glossterm>
  2772. <info>
  2773. CXX[doc] = "Minimum command and arguments to run the C++ compiler."
  2774. </info>
  2775. <glossdef>
  2776. <para role="glossdeffirst">
  2777. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2778. The minimal command and arguments used to run the C++
  2779. compiler.
  2780. </para>
  2781. </glossdef>
  2782. </glossentry>
  2783. <glossentry id='var-CXXFLAGS'><glossterm>CXXFLAGS</glossterm>
  2784. <info>
  2785. CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler."
  2786. </info>
  2787. <glossdef>
  2788. <para role="glossdeffirst">
  2789. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2790. Specifies the flags to pass to the C++ compiler.
  2791. This variable is exported to an environment
  2792. variable and thus made visible to the software being
  2793. built during the compilation step.
  2794. </para>
  2795. <para>
  2796. Default initialization for <filename>CXXFLAGS</filename>
  2797. varies depending on what is being built:
  2798. <itemizedlist>
  2799. <listitem><para>
  2800. <link linkend='var-TARGET_CXXFLAGS'><filename>TARGET_CXXFLAGS</filename></link>
  2801. when building for the target
  2802. </para></listitem>
  2803. <listitem><para>
  2804. <link linkend='var-BUILD_CXXFLAGS'><filename>BUILD_CXXFLAGS</filename></link>
  2805. when building for the build host (i.e.
  2806. <filename>-native</filename>)
  2807. </para></listitem>
  2808. <listitem><para>
  2809. <link linkend='var-BUILDSDK_CXXFLAGS'><filename>BUILDSDK_CXXFLAGS</filename></link>
  2810. when building for an SDK (i.e.
  2811. <filename>nativesdk-</filename>)
  2812. </para></listitem>
  2813. </itemizedlist>
  2814. </para>
  2815. </glossdef>
  2816. </glossentry>
  2817. </glossdiv>
  2818. <glossdiv id='var-glossary-d'><title>D</title>
  2819. <glossentry id='var-D'><glossterm>D</glossterm>
  2820. <info>
  2821. D[doc] = "The destination directory."
  2822. </info>
  2823. <glossdef>
  2824. <para role="glossdeffirst">
  2825. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2826. The destination directory.
  2827. The location in the
  2828. <link linkend='build-directory'>Build Directory</link>
  2829. where components are installed by the
  2830. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  2831. task.
  2832. This location defaults to:
  2833. <literallayout class='monospaced'>
  2834. ${WORKDIR}/image
  2835. </literallayout>
  2836. <note><title>Caution</title>
  2837. Tasks that read from or write to this directory should
  2838. run under
  2839. <ulink url='&YOCTO_DOCS_OM_URL;#fakeroot-and-pseudo'>fakeroot</ulink>.
  2840. </note>
  2841. </para>
  2842. </glossdef>
  2843. </glossentry>
  2844. <glossentry id='var-DATE'><glossterm>DATE</glossterm>
  2845. <info>
  2846. DATE[doc] = "The date the build was started using YMD format."
  2847. </info>
  2848. <glossdef>
  2849. <para role="glossdeffirst">
  2850. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2851. The date the build was started.
  2852. Dates appear using the year, month, and day (YMD) format
  2853. (e.g. "20150209" for February 9th, 2015).
  2854. </para>
  2855. </glossdef>
  2856. </glossentry>
  2857. <glossentry id='var-DATETIME'><glossterm>DATETIME</glossterm>
  2858. <info>
  2859. DATETIME[doc] = "The date and time the build was started."
  2860. </info>
  2861. <glossdef>
  2862. <para role="glossdeffirst">
  2863. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2864. The date and time on which the current build started.
  2865. The format is suitable for timestamps.
  2866. </para>
  2867. </glossdef>
  2868. </glossentry>
  2869. <glossentry id='var-DEBIAN_NOAUTONAME'><glossterm>DEBIAN_NOAUTONAME</glossterm>
  2870. <info>
  2871. DEBIAN_NOAUTONAME[doc] = "Prevents a particular package from being renamed according to Debian package naming."
  2872. </info>
  2873. <glossdef>
  2874. <para role="glossdeffirst">
  2875. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2876. When the
  2877. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  2878. class is inherited, which is the default behavior,
  2879. <filename>DEBIAN_NOAUTONAME</filename> specifies a
  2880. particular package should not be renamed according to
  2881. Debian library package naming.
  2882. You must use the package name as an override when you
  2883. set this variable.
  2884. Here is an example from the <filename>fontconfig</filename>
  2885. recipe:
  2886. <literallayout class='monospaced'>
  2887. DEBIAN_NOAUTONAME_fontconfig-utils = "1"
  2888. </literallayout>
  2889. </para>
  2890. </glossdef>
  2891. </glossentry>
  2892. <glossentry id='var-DEBIANNAME'><glossterm>DEBIANNAME</glossterm>
  2893. <info>
  2894. DEBIANNAME[doc] = "Allows you to override the library name for an individual package for Debian library package renaming."
  2895. </info>
  2896. <glossdef>
  2897. <para role="glossdeffirst">
  2898. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2899. When the
  2900. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  2901. class is inherited, which is the default behavior,
  2902. <filename>DEBIANNAME</filename> allows you to override the
  2903. library name for an individual package.
  2904. Overriding the library name in these cases is rare.
  2905. You must use the package name as an override when you
  2906. set this variable.
  2907. Here is an example from the <filename>dbus</filename>
  2908. recipe:
  2909. <literallayout class='monospaced'>
  2910. DEBIANNAME_${PN} = "dbus-1"
  2911. </literallayout>
  2912. </para>
  2913. </glossdef>
  2914. </glossentry>
  2915. <glossentry id='var-DEBUG_BUILD'><glossterm>DEBUG_BUILD</glossterm>
  2916. <info>
  2917. DEBUG_BUILD[doc] = "Specifies to build packages with debugging information. This influences the value of the SELECTED_OPTIMIZATION variable."
  2918. </info>
  2919. <glossdef>
  2920. <para role="glossdeffirst">
  2921. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2922. Specifies to build packages with debugging information.
  2923. This influences the value of the
  2924. <filename><link linkend='var-SELECTED_OPTIMIZATION'>SELECTED_OPTIMIZATION</link></filename>
  2925. variable.
  2926. </para>
  2927. </glossdef>
  2928. </glossentry>
  2929. <glossentry id='var-DEBUG_OPTIMIZATION'><glossterm>DEBUG_OPTIMIZATION</glossterm>
  2930. <info>
  2931. 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'."
  2932. </info>
  2933. <glossdef>
  2934. <para role="glossdeffirst">
  2935. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2936. The options to pass in
  2937. <filename><link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link></filename>
  2938. and <filename><link linkend='var-CFLAGS'>CFLAGS</link></filename> when compiling
  2939. a system for debugging.
  2940. This variable defaults to "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  2941. </para>
  2942. </glossdef>
  2943. </glossentry>
  2944. <glossentry id='var-DEFAULT_PREFERENCE'><glossterm>DEFAULT_PREFERENCE</glossterm>
  2945. <info>
  2946. DEFAULT_PREFERENCE[doc] = "Specifies a weak bias for recipe selection priority."
  2947. </info>
  2948. <glossdef>
  2949. <para role="glossdeffirst">
  2950. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2951. Specifies a weak bias for recipe selection priority.
  2952. </para>
  2953. <para>
  2954. The most common usage of this is variable is to set
  2955. it to "-1" within a recipe for a development version of a
  2956. piece of software.
  2957. Using the variable in this way causes the stable version
  2958. of the recipe to build by default in the absence of
  2959. <filename><link linkend='var-PREFERRED_VERSION'>PREFERRED_VERSION</link></filename>
  2960. being used to build the development version.
  2961. </para>
  2962. <note>
  2963. The bias provided by <filename>DEFAULT_PREFERENCE</filename>
  2964. is weak and is overridden by
  2965. <filename><link linkend='var-BBFILE_PRIORITY'>BBFILE_PRIORITY</link></filename>
  2966. if that variable is different between two layers
  2967. that contain different versions of the same recipe.
  2968. </note>
  2969. </glossdef>
  2970. </glossentry>
  2971. <glossentry id='var-DEFAULTTUNE'><glossterm>DEFAULTTUNE</glossterm>
  2972. <info>
  2973. DEFAULTTUNE[doc] = "The default CPU and Application Binary Interface (ABI) tunings (i.e. the "tune") used by the OpenEmbedded build system."
  2974. </info>
  2975. <glossdef>
  2976. <para role="glossdeffirst">
  2977. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2978. The default CPU and Application Binary Interface (ABI)
  2979. tunings (i.e. the "tune") used by the OpenEmbedded build
  2980. system.
  2981. The <filename>DEFAULTTUNE</filename> helps define
  2982. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  2983. </para>
  2984. <para>
  2985. The default tune is either implicitly or explicitly set
  2986. by the machine
  2987. (<link linkend='var-MACHINE'><filename>MACHINE</filename></link>).
  2988. However, you can override the setting using available tunes
  2989. as defined with
  2990. <link linkend='var-AVAILTUNES'><filename>AVAILTUNES</filename></link>.
  2991. </para>
  2992. </glossdef>
  2993. </glossentry>
  2994. <glossentry id='var-DEPENDS'><glossterm>DEPENDS</glossterm>
  2995. <info>
  2996. DEPENDS[doc] = "Lists a recipe's build-time dependencies (i.e. other recipe files)."
  2997. </info>
  2998. <glossdef>
  2999. <para role="glossdeffirst">
  3000. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3001. Lists a recipe's build-time dependencies.
  3002. These are dependencies on other recipes whose
  3003. contents (e.g. headers and shared libraries) are needed
  3004. by the recipe at build time.
  3005. </para>
  3006. <para>
  3007. As an example, consider a recipe <filename>foo</filename>
  3008. that contains the following assignment:
  3009. <literallayout class='monospaced'>
  3010. DEPENDS = "bar"
  3011. </literallayout>
  3012. The practical effect of the previous assignment is that
  3013. all files installed by bar will be available in the
  3014. appropriate staging sysroot, given by the
  3015. <link linkend='var-STAGING_DIR'><filename>STAGING_DIR*</filename></link>
  3016. variables, by the time the
  3017. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  3018. task for <filename>foo</filename> runs.
  3019. This mechanism is implemented by having
  3020. <filename>do_configure</filename> depend on the
  3021. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  3022. task of each recipe listed in <filename>DEPENDS</filename>,
  3023. through a
  3024. <filename>[</filename><ulink url='&YOCTO_DOCS_BB_URL;#variable-flags'><filename>deptask</filename></ulink><filename>]</filename>
  3025. declaration in the
  3026. <link linkend='ref-classes-base'><filename>base</filename></link>
  3027. class.
  3028. <note>
  3029. It seldom is necessary to reference, for example,
  3030. <filename>STAGING_DIR_HOST</filename> explicitly.
  3031. The standard classes and build-related variables are
  3032. configured to automatically use the appropriate staging
  3033. sysroots.
  3034. </note>
  3035. As another example, <filename>DEPENDS</filename> can also
  3036. be used to add utilities that run on the build machine
  3037. during the build.
  3038. For example, a recipe that makes use of a code generator
  3039. built by the recipe <filename>codegen</filename> might have
  3040. the following:
  3041. <literallayout class='monospaced'>
  3042. DEPENDS = "codegen-native"
  3043. </literallayout>
  3044. For more information, see the
  3045. <link linkend='ref-classes-native'><filename>native</filename></link>
  3046. class and the
  3047. <link linkend='var-EXTRANATIVEPATH'><filename>EXTRANATIVEPATH</filename></link>
  3048. variable.
  3049. <note>
  3050. <title>Notes</title>
  3051. <itemizedlist>
  3052. <listitem><para>
  3053. <filename>DEPENDS</filename> is a list of
  3054. recipe names.
  3055. Or, to be more precise, it is a list of
  3056. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  3057. names, which usually match recipe names.
  3058. Putting a package name such as "foo-dev" in
  3059. <filename>DEPENDS</filename> does not make
  3060. sense.
  3061. Use "foo" instead, as this will put files
  3062. from all the packages that make up
  3063. <filename>foo</filename>, which includes
  3064. those from <filename>foo-dev</filename>, into
  3065. the sysroot.
  3066. </para></listitem>
  3067. <listitem><para>
  3068. One recipe having another recipe in
  3069. <filename>DEPENDS</filename> does not by itself
  3070. add any runtime dependencies between the
  3071. packages produced by the two recipes.
  3072. However, as explained in the
  3073. "<ulink url='&YOCTO_DOCS_OM_URL;#automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</ulink>"
  3074. section in the Yocto Project Overview and
  3075. Concepts Manual, runtime dependencies will
  3076. often be added automatically, meaning
  3077. <filename>DEPENDS</filename> alone is
  3078. sufficient for most recipes.
  3079. </para></listitem>
  3080. <listitem><para>
  3081. Counterintuitively,
  3082. <filename>DEPENDS</filename> is often necessary
  3083. even for recipes that install precompiled
  3084. components.
  3085. For example, if <filename>libfoo</filename>
  3086. is a precompiled library that links against
  3087. <filename>libbar</filename>, then
  3088. linking against <filename>libfoo</filename>
  3089. requires both <filename>libfoo</filename>
  3090. and <filename>libbar</filename> to be available
  3091. in the sysroot.
  3092. Without a <filename>DEPENDS</filename> from the
  3093. recipe that installs <filename>libfoo</filename>
  3094. to the recipe that installs
  3095. <filename>libbar</filename>, other recipes might
  3096. fail to link against
  3097. <filename>libfoo</filename>.
  3098. </para></listitem>
  3099. </itemizedlist>
  3100. </note>
  3101. </para>
  3102. <para>
  3103. For information on runtime dependencies, see the
  3104. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  3105. variable.
  3106. You can also see the
  3107. "<ulink url='&YOCTO_DOCS_BB_URL;#tasks'>Tasks</ulink>" and
  3108. "<ulink url='&YOCTO_DOCS_BB_URL;#dependencies'>Dependencies</ulink>"
  3109. sections in the BitBake User Manual for additional
  3110. information on tasks and dependencies.
  3111. </para>
  3112. </glossdef>
  3113. </glossentry>
  3114. <glossentry id='var-DEPLOY_DIR'><glossterm>DEPLOY_DIR</glossterm>
  3115. <info>
  3116. 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."
  3117. </info>
  3118. <glossdef>
  3119. <para role="glossdeffirst">
  3120. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3121. Points to the general area that the OpenEmbedded build
  3122. system uses to place images, packages, SDKs, and other output
  3123. files that are ready to be used outside of the build system.
  3124. By default, this directory resides within the
  3125. <link linkend='build-directory'>Build Directory</link>
  3126. as <filename>${TMPDIR}/deploy</filename>.
  3127. </para>
  3128. <para>
  3129. For more information on the structure of the Build
  3130. Directory, see
  3131. "<link linkend='structure-build'>The Build Directory - <filename>build/</filename></link>"
  3132. section.
  3133. For more detail on the contents of the
  3134. <filename>deploy</filename> directory, see the
  3135. "<ulink url='&YOCTO_DOCS_OM_URL;#images-dev-environment'>Images</ulink>",
  3136. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>",
  3137. and
  3138. "<ulink url='&YOCTO_DOCS_OM_URL;#sdk-dev-environment'>Application Development SDK</ulink>"
  3139. sections all in the Yocto Project Overview and Concepts
  3140. Manual.
  3141. </para>
  3142. </glossdef>
  3143. </glossentry>
  3144. <glossentry id='var-DEPLOY_DIR_DEB'><glossterm>DEPLOY_DIR_DEB</glossterm>
  3145. <info>
  3146. 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."
  3147. </info>
  3148. <glossdef>
  3149. <para role="glossdeffirst">
  3150. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3151. Points to the area that the OpenEmbedded build system uses
  3152. to place Debian packages that are ready to be used outside
  3153. of the build system.
  3154. This variable applies only when
  3155. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  3156. contains "package_deb".
  3157. </para>
  3158. <para>
  3159. The BitBake configuration file initially defines the
  3160. <filename>DEPLOY_DIR_DEB</filename> variable as a
  3161. sub-folder of
  3162. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3163. <literallayout class='monospaced'>
  3164. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  3165. </literallayout>
  3166. </para>
  3167. <para>
  3168. The
  3169. <link linkend='ref-classes-package_deb'><filename>package_deb</filename></link>
  3170. class uses the
  3171. <filename>DEPLOY_DIR_DEB</filename> variable to make sure
  3172. the
  3173. <link linkend='ref-tasks-package_write_deb'><filename>do_package_write_deb</filename></link>
  3174. task writes Debian packages into the appropriate folder.
  3175. For more information on how packaging works, see the
  3176. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>"
  3177. section in the Yocto Project Overview and Concepts Manual.
  3178. </para>
  3179. </glossdef>
  3180. </glossentry>
  3181. <glossentry id='var-DEPLOY_DIR_IMAGE'><glossterm>DEPLOY_DIR_IMAGE</glossterm>
  3182. <info>
  3183. 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."
  3184. </info>
  3185. <glossdef>
  3186. <para role="glossdeffirst">
  3187. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3188. Points to the area that the OpenEmbedded build system uses
  3189. to place images and other associated output files that are
  3190. ready to be deployed onto the target machine.
  3191. The directory is machine-specific as it contains the
  3192. <filename>${MACHINE}</filename> name.
  3193. By default, this directory resides within the
  3194. <link linkend='build-directory'>Build Directory</link>
  3195. as <filename>${DEPLOY_DIR}/images/${MACHINE}/</filename>.
  3196. </para>
  3197. <para>
  3198. For more information on the structure of the Build
  3199. Directory, see
  3200. "<link linkend='structure-build'>The Build Directory - <filename>build/</filename></link>"
  3201. section.
  3202. For more detail on the contents of the
  3203. <filename>deploy</filename> directory, see the
  3204. "<ulink url='&YOCTO_DOCS_OM_URL;#images-dev-environment'>Images</ulink>"
  3205. and
  3206. "<ulink url='&YOCTO_DOCS_OM_URL;#sdk-dev-environment'>Application Development SDK</ulink>"
  3207. sections both in the Yocto Project Overview and Concepts
  3208. Manual.
  3209. </para>
  3210. </glossdef>
  3211. </glossentry>
  3212. <glossentry id='var-DEPLOY_DIR_IPK'><glossterm>DEPLOY_DIR_IPK</glossterm>
  3213. <info>
  3214. 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."
  3215. </info>
  3216. <glossdef>
  3217. <para role="glossdeffirst">
  3218. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3219. Points to the area that the OpenEmbedded build system uses
  3220. to place IPK packages that are ready to be used outside of
  3221. the build system.
  3222. This variable applies only when
  3223. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  3224. contains "package_ipk".
  3225. </para>
  3226. <para>
  3227. The BitBake configuration file initially defines this
  3228. variable as a sub-folder of
  3229. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3230. <literallayout class='monospaced'>
  3231. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  3232. </literallayout>
  3233. </para>
  3234. <para>
  3235. The
  3236. <link linkend='ref-classes-package_ipk'><filename>package_ipk</filename></link>
  3237. class uses the
  3238. <filename>DEPLOY_DIR_IPK</filename> variable to make sure
  3239. the
  3240. <link linkend='ref-tasks-package_write_ipk'><filename>do_package_write_ipk</filename></link>
  3241. task writes IPK packages into the appropriate folder.
  3242. For more information on how packaging works, see the
  3243. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>"
  3244. section in the Yocto Project Overview and Concepts Manual.
  3245. </para>
  3246. </glossdef>
  3247. </glossentry>
  3248. <glossentry id='var-DEPLOY_DIR_RPM'><glossterm>DEPLOY_DIR_RPM</glossterm>
  3249. <info>
  3250. 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."
  3251. </info>
  3252. <glossdef>
  3253. <para role="glossdeffirst">
  3254. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3255. Points to the area that the OpenEmbedded build system uses
  3256. to place RPM packages that are ready to be used outside
  3257. of the build system.
  3258. This variable applies only when
  3259. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  3260. contains "package_rpm".
  3261. </para>
  3262. <para>
  3263. The BitBake configuration file initially defines this
  3264. variable as a sub-folder of
  3265. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3266. <literallayout class='monospaced'>
  3267. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  3268. </literallayout>
  3269. </para>
  3270. <para>
  3271. The
  3272. <link linkend='ref-classes-package_rpm'><filename>package_rpm</filename></link>
  3273. class uses the
  3274. <filename>DEPLOY_DIR_RPM</filename> variable to make sure
  3275. the
  3276. <link linkend='ref-tasks-package_write_rpm'><filename>do_package_write_rpm</filename></link>
  3277. task writes RPM packages into the appropriate folder.
  3278. For more information on how packaging works, see the
  3279. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>"
  3280. section in the Yocto Project Overview and Concepts Manual.
  3281. </para>
  3282. </glossdef>
  3283. </glossentry>
  3284. <glossentry id='var-DEPLOY_DIR_TAR'><glossterm>DEPLOY_DIR_TAR</glossterm>
  3285. <info>
  3286. 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."
  3287. </info>
  3288. <glossdef>
  3289. <para role="glossdeffirst">
  3290. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3291. Points to the area that the OpenEmbedded build system uses
  3292. to place tarballs that are ready to be used outside of
  3293. the build system.
  3294. This variable applies only when
  3295. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  3296. contains "package_tar".
  3297. </para>
  3298. <para>
  3299. The BitBake configuration file initially defines this
  3300. variable as a sub-folder of
  3301. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3302. <literallayout class='monospaced'>
  3303. DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
  3304. </literallayout>
  3305. </para>
  3306. <para>
  3307. The
  3308. <link linkend='ref-classes-package_tar'><filename>package_tar</filename></link>
  3309. class uses the
  3310. <filename>DEPLOY_DIR_TAR</filename> variable to make sure
  3311. the
  3312. <link linkend='ref-tasks-package_write_tar'><filename>do_package_write_tar</filename></link>
  3313. task writes TAR packages into the appropriate folder.
  3314. For more information on how packaging works, see the
  3315. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>"
  3316. section in the Yocto Project Overview and Concepts Manual.
  3317. </para>
  3318. </glossdef>
  3319. </glossentry>
  3320. <glossentry id='var-DEPLOYDIR'><glossterm>DEPLOYDIR</glossterm>
  3321. <info>
  3322. DEPLOYDIR[doc] = "For recipes that inherit the deploy class, the DEPLOYDIR points to a temporary work area for deployed files."
  3323. </info>
  3324. <glossdef>
  3325. <para role="glossdeffirst">
  3326. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3327. When inheriting the
  3328. <link linkend='ref-classes-deploy'><filename>deploy</filename></link>
  3329. class, the <filename>DEPLOYDIR</filename> points to a
  3330. temporary work area for deployed files that is set in the
  3331. <filename>deploy</filename> class as follows:
  3332. <literallayout class='monospaced'>
  3333. DEPLOYDIR = "${WORKDIR}/deploy-${<link linkend='var-PN'><filename>PN</filename></link>}"
  3334. </literallayout>
  3335. </para>
  3336. <para>
  3337. Recipes inheriting the <filename>deploy</filename> class
  3338. should copy files to be deployed into
  3339. <filename>DEPLOYDIR</filename>, and the class will take
  3340. care of copying them into
  3341. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>
  3342. afterwards.
  3343. </para>
  3344. </glossdef>
  3345. </glossentry>
  3346. <glossentry id='var-DESCRIPTION'><glossterm>DESCRIPTION</glossterm>
  3347. <info>
  3348. DESCRIPTION[doc] = "The package description used by package managers. If not set, DESCRIPTION takes the value of the SUMMARY variable."
  3349. </info>
  3350. <glossdef>
  3351. <para role="glossdeffirst">
  3352. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3353. The package description used by package managers.
  3354. If not set, <filename>DESCRIPTION</filename> takes
  3355. the value of the
  3356. <link linkend='var-SUMMARY'><filename>SUMMARY</filename></link>
  3357. variable.
  3358. </para>
  3359. </glossdef>
  3360. </glossentry>
  3361. <glossentry id='var-DISK_SIGNATURE'><glossterm>DISK_SIGNATURE</glossterm>
  3362. <info>
  3363. DISK_SIGNATURE[doc] = "A 32-bit MBR disk signature used by directdisk images."
  3364. </info>
  3365. <glossdef>
  3366. <para role="glossdeffirst">
  3367. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3368. A 32-bit MBR disk signature used by
  3369. <filename>directdisk</filename> images.
  3370. </para>
  3371. <para>
  3372. By default, the signature is set to an automatically
  3373. generated random value that allows the OpenEmbedded
  3374. build system to create a boot loader.
  3375. You can override the signature in the image recipe
  3376. by setting <filename>DISK_SIGNATURE</filename> to an
  3377. 8-digit hex string.
  3378. You might want to override
  3379. <filename>DISK_SIGNATURE</filename> if you want the disk
  3380. signature to remain constant between image builds.
  3381. </para>
  3382. <para>
  3383. When using Linux 3.8 or later, you can use
  3384. <filename>DISK_SIGNATURE</filename> to specify the root
  3385. by UUID to allow the kernel to locate the root device
  3386. even if the device name changes due to differences in
  3387. hardware configuration.
  3388. By default, <filename>ROOT_VM</filename> is set
  3389. as follows:
  3390. <literallayout class='monospaced'>
  3391. ROOT_VM ?= "root=/dev/sda2"
  3392. </literallayout>
  3393. However, you can change this to locate the root device
  3394. using the disk signature instead:
  3395. <literallayout class='monospaced'>
  3396. ROOT_VM = "root=PARTUUID=${DISK_SIGNATURE}-02"
  3397. </literallayout>
  3398. </para>
  3399. <para>
  3400. As previously mentioned, it is possible to set the
  3401. <filename>DISK_SIGNATURE</filename> variable in your
  3402. <filename>local.conf</filename> file to a fixed
  3403. value if you do not want <filename>syslinux.cfg</filename>
  3404. changing for each build.
  3405. You might find this useful when you want to upgrade the
  3406. root filesystem on a device without having to recreate or
  3407. modify the master boot record.
  3408. </para>
  3409. </glossdef>
  3410. </glossentry>
  3411. <glossentry id='var-DISTRO'><glossterm>DISTRO</glossterm>
  3412. <info>
  3413. DISTRO[doc] = "The short name of the distribution. If the variable is blank, meta/conf/distro/defaultsetup.conf will be used."
  3414. </info>
  3415. <glossdef>
  3416. <para role="glossdeffirst">
  3417. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3418. The short name of the distribution.
  3419. For information on the long name of the distribution, see
  3420. the
  3421. <link linkend='var-DISTRO_NAME'><filename>DISTRO_NAME</filename></link>
  3422. variable.
  3423. </para>
  3424. <para>
  3425. The <filename>DISTRO</filename> variable corresponds to a
  3426. distribution configuration file whose root name is the
  3427. same as the variable's argument and whose filename
  3428. extension is <filename>.conf</filename>.
  3429. For example, the distribution configuration file for the
  3430. Poky distribution is named <filename>poky.conf</filename>
  3431. and resides in the
  3432. <filename>meta-poky/conf/distro</filename> directory of
  3433. the
  3434. <link linkend='source-directory'>Source Directory</link>.
  3435. </para>
  3436. <para>
  3437. Within that <filename>poky.conf</filename> file, the
  3438. <filename>DISTRO</filename> variable is set as follows:
  3439. <literallayout class='monospaced'>
  3440. DISTRO = "poky"
  3441. </literallayout>
  3442. </para>
  3443. <para>
  3444. Distribution configuration files are located in a
  3445. <filename>conf/distro</filename> directory within the
  3446. <link linkend='metadata'>Metadata</link>
  3447. that contains the distribution configuration.
  3448. The value for <filename>DISTRO</filename> must not contain
  3449. spaces, and is typically all lower-case.
  3450. <note>
  3451. If the <filename>DISTRO</filename> variable is blank,
  3452. a set of default configurations are used, which are
  3453. specified within
  3454. <filename>meta/conf/distro/defaultsetup.conf</filename>
  3455. also in the Source Directory.
  3456. </note>
  3457. </para>
  3458. </glossdef>
  3459. </glossentry>
  3460. <glossentry id='var-DISTRO_CODENAME'><glossterm>DISTRO_CODENAME</glossterm>
  3461. <info>
  3462. DISTRO_CODENAME[doc] = "Specifies a codename for the distribution being built."
  3463. </info>
  3464. <glossdef>
  3465. <para role="glossdeffirst">
  3466. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3467. Specifies a codename for the distribution being built.
  3468. </para>
  3469. </glossdef>
  3470. </glossentry>
  3471. <glossentry id='var-DISTRO_EXTRA_RDEPENDS'><glossterm>DISTRO_EXTRA_RDEPENDS</glossterm>
  3472. <info>
  3473. 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."
  3474. </info>
  3475. <glossdef>
  3476. <para role="glossdeffirst">
  3477. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3478. Specifies a list of distro-specific packages to add to all images.
  3479. This variable takes affect through
  3480. <filename>packagegroup-base</filename> so the
  3481. variable only really applies to the more full-featured
  3482. images that include <filename>packagegroup-base</filename>.
  3483. You can use this variable to keep distro policy out of
  3484. generic images.
  3485. As with all other distro variables, you set this variable
  3486. in the distro <filename>.conf</filename> file.
  3487. </para>
  3488. </glossdef>
  3489. </glossentry>
  3490. <glossentry id='var-DISTRO_EXTRA_RRECOMMENDS'><glossterm>DISTRO_EXTRA_RRECOMMENDS</glossterm>
  3491. <info>
  3492. 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."
  3493. </info>
  3494. <glossdef>
  3495. <para role="glossdeffirst">
  3496. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3497. Specifies a list of distro-specific packages to add to all images
  3498. if the packages exist.
  3499. The packages might not exist or be empty (e.g. kernel modules).
  3500. The list of packages are automatically installed but you can
  3501. remove them.
  3502. </para>
  3503. </glossdef>
  3504. </glossentry>
  3505. <glossentry id='var-DISTRO_FEATURES'><glossterm>DISTRO_FEATURES</glossterm>
  3506. <info>
  3507. DISTRO_FEATURES[doc] = "The features enabled for the distribution."
  3508. </info>
  3509. <glossdef>
  3510. <para role="glossdeffirst">
  3511. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3512. The software support you want in your distribution for
  3513. various features.
  3514. You define your distribution features in the distribution
  3515. configuration file.
  3516. </para>
  3517. <para>
  3518. In most cases, the presence or absence of a feature in
  3519. <filename>DISTRO_FEATURES</filename> is translated to the
  3520. appropriate option supplied to the configure script
  3521. during the
  3522. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  3523. task for recipes that optionally support the feature.
  3524. For example, specifying "x11" in
  3525. <filename>DISTRO_FEATURES</filename>, causes
  3526. every piece of software built for the target that can
  3527. optionally support X11 to have its X11 support enabled.
  3528. </para>
  3529. <para>
  3530. Two more examples are Bluetooth and NFS support.
  3531. For a more complete list of features that ships with the
  3532. Yocto Project and that you can provide with this variable,
  3533. see the
  3534. "<link linkend='ref-features-distro'>Distro Features</link>"
  3535. section.
  3536. </para>
  3537. </glossdef>
  3538. </glossentry>
  3539. <glossentry id='var-DISTRO_FEATURES_BACKFILL'><glossterm>DISTRO_FEATURES_BACKFILL</glossterm>
  3540. <info>
  3541. 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."
  3542. </info>
  3543. <glossdef>
  3544. <para role="glossdeffirst">
  3545. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3546. Features to be added to
  3547. <filename><link linkend='var-DISTRO_FEATURES'>DISTRO_FEATURES</link></filename>
  3548. if not also present in
  3549. <filename><link linkend='var-DISTRO_FEATURES_BACKFILL_CONSIDERED'>DISTRO_FEATURES_BACKFILL_CONSIDERED</link></filename>.
  3550. </para>
  3551. <para>
  3552. This variable is set in the <filename>meta/conf/bitbake.conf</filename> file.
  3553. It is not intended to be user-configurable.
  3554. It is best to just reference the variable to see which distro features are
  3555. being backfilled for all distro configurations.
  3556. See the <link linkend='ref-features-backfill'>Feature Backfilling</link> section for
  3557. more information.
  3558. </para>
  3559. </glossdef>
  3560. </glossentry>
  3561. <glossentry id='var-DISTRO_FEATURES_BACKFILL_CONSIDERED'><glossterm>DISTRO_FEATURES_BACKFILL_CONSIDERED</glossterm>
  3562. <info>
  3563. DISTRO_FEATURES_BACKFILL_CONSIDERED[doc] = "Features from DISTRO_FEATURES_BACKFILL that should not be backfilled (i.e. added to DISTRO_FEATURES) during the build."
  3564. </info>
  3565. <glossdef>
  3566. <para role="glossdeffirst">
  3567. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3568. Features from
  3569. <filename><link linkend='var-DISTRO_FEATURES_BACKFILL'>DISTRO_FEATURES_BACKFILL</link></filename>
  3570. that should not be backfilled (i.e. added to
  3571. <filename><link linkend='var-DISTRO_FEATURES'>DISTRO_FEATURES</link></filename>)
  3572. during the build.
  3573. See the "<link linkend='ref-features-backfill'>Feature Backfilling</link>" section for
  3574. more information.
  3575. </para>
  3576. </glossdef>
  3577. </glossentry>
  3578. <glossentry id='var-DISTRO_FEATURES_DEFAULT'><glossterm>DISTRO_FEATURES_DEFAULT</glossterm>
  3579. <info>
  3580. DISTRO_FEATURES_DEFAULT[doc] = "Provides the default list of distro features with the exception of any libc-specific features."
  3581. </info>
  3582. <glossdef>
  3583. <para role="glossdeffirst">
  3584. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3585. A convenience variable that gives you the default
  3586. list of distro features with the exception of any
  3587. features specific to the C library
  3588. (<filename>libc</filename>).
  3589. </para>
  3590. <para>
  3591. When creating a custom distribution, you might find it
  3592. useful to be able to reuse the default
  3593. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3594. options without the need to write out the full set.
  3595. Here is an example that uses
  3596. <filename>DISTRO_FEATURES_DEFAULT</filename> from a
  3597. custom distro configuration file:
  3598. <literallayout class='monospaced'>
  3599. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} myfeature"
  3600. </literallayout>
  3601. </para>
  3602. </glossdef>
  3603. </glossentry>
  3604. <glossentry id='var-DISTRO_FEATURES_FILTER_NATIVE'><glossterm>DISTRO_FEATURES_FILTER_NATIVE</glossterm>
  3605. <info>
  3606. 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."
  3607. </info>
  3608. <glossdef>
  3609. <para role="glossdeffirst">
  3610. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3611. Specifies a list of features that if present in
  3612. the target
  3613. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3614. value should be included in
  3615. <filename>DISTRO_FEATURES</filename> when building native
  3616. recipes.
  3617. This variable is used in addition to the features
  3618. filtered using the
  3619. <link linkend='var-DISTRO_FEATURES_NATIVE'><filename>DISTRO_FEATURES_NATIVE</filename></link>
  3620. variable.
  3621. </para>
  3622. </glossdef>
  3623. </glossentry>
  3624. <glossentry id='var-DISTRO_FEATURES_FILTER_NATIVESDK'><glossterm>DISTRO_FEATURES_FILTER_NATIVESDK</glossterm>
  3625. <info>
  3626. 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."
  3627. </info>
  3628. <glossdef>
  3629. <para role="glossdeffirst">
  3630. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3631. Specifies a list of features that if present in the target
  3632. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3633. value should be included in
  3634. <filename>DISTRO_FEATURES</filename> when building
  3635. nativesdk recipes.
  3636. This variable is used in addition to the features
  3637. filtered using the
  3638. <link linkend='var-DISTRO_FEATURES_NATIVESDK'><filename>DISTRO_FEATURES_NATIVESDK</filename></link>
  3639. variable.
  3640. </para>
  3641. </glossdef>
  3642. </glossentry>
  3643. <glossentry id='var-DISTRO_FEATURES_LIBC'><glossterm>DISTRO_FEATURES_LIBC</glossterm>
  3644. <info>
  3645. DISTRO_FEATURES_LIBC[doc] = "Specifies the list of distro features that are specific to the C library (libc)."
  3646. </info>
  3647. <glossdef>
  3648. <para role="glossdeffirst">
  3649. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3650. A convenience variable that specifies the list of distro
  3651. features that are specific to the C library
  3652. (<filename>libc</filename>).
  3653. Typically, these features are prefixed with "libc-" and
  3654. control which features are enabled at during the build
  3655. within the C library itself.
  3656. </para>
  3657. </glossdef>
  3658. </glossentry>
  3659. <glossentry id='var-DISTRO_FEATURES_NATIVE'><glossterm>DISTRO_FEATURES_NATIVE</glossterm>
  3660. <info>
  3661. DISTRO_FEATURES_NATIVE[doc] = "Specifies a list of features that should be included in DISTRO_FEATURES when building native recipes."
  3662. </info>
  3663. <glossdef>
  3664. <para role="glossdeffirst">
  3665. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3666. Specifies a list of features that should be included in
  3667. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3668. when building native recipes.
  3669. This variable is used in addition to the features
  3670. filtered using the
  3671. <link linkend='var-DISTRO_FEATURES_FILTER_NATIVE'><filename>DISTRO_FEATURES_FILTER_NATIVE</filename></link>
  3672. variable.
  3673. </para>
  3674. </glossdef>
  3675. </glossentry>
  3676. <glossentry id='var-DISTRO_FEATURES_NATIVESDK'><glossterm>DISTRO_FEATURES_NATIVESDK</glossterm>
  3677. <info>
  3678. DISTRO_FEATURES_NATIVESDK[doc] = "Specifies a list of features that should be included in DISTRO_FEATURES when building nativesdk recipes."
  3679. </info>
  3680. <glossdef>
  3681. <para role="glossdeffirst">
  3682. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3683. Specifies a list of features that should be included in
  3684. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3685. when building nativesdk recipes.
  3686. This variable is used in addition to the features
  3687. filtered using the
  3688. <link linkend='var-DISTRO_FEATURES_FILTER_NATIVESDK'><filename>DISTRO_FEATURES_FILTER_NATIVESDK</filename></link>
  3689. variable.
  3690. </para>
  3691. </glossdef>
  3692. </glossentry>
  3693. <glossentry id='var-DISTRO_NAME'><glossterm>DISTRO_NAME</glossterm>
  3694. <info>
  3695. DISTRO_NAME[doc] = "The long name of the distribution."
  3696. </info>
  3697. <glossdef>
  3698. <para role="glossdeffirst">
  3699. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3700. The long name of the distribution.
  3701. For information on the short name of the distribution, see
  3702. the
  3703. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>
  3704. variable.
  3705. </para>
  3706. <para>
  3707. The <filename>DISTRO_NAME</filename> variable corresponds
  3708. to a distribution configuration file whose root name is the
  3709. same as the variable's argument and whose filename
  3710. extension is <filename>.conf</filename>.
  3711. For example, the distribution configuration file for the
  3712. Poky distribution is named <filename>poky.conf</filename>
  3713. and resides in the
  3714. <filename>meta-poky/conf/distro</filename> directory of
  3715. the
  3716. <link linkend='source-directory'>Source Directory</link>.
  3717. </para>
  3718. <para>
  3719. Within that <filename>poky.conf</filename> file, the
  3720. <filename>DISTRO_NAME</filename> variable is set as
  3721. follows:
  3722. <literallayout class='monospaced'>
  3723. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  3724. </literallayout>
  3725. </para>
  3726. <para>
  3727. Distribution configuration files are located in a
  3728. <filename>conf/distro</filename> directory within the
  3729. <link linkend='metadata'>Metadata</link>
  3730. that contains the distribution configuration.
  3731. <note>
  3732. If the <filename>DISTRO_NAME</filename> variable is
  3733. blank, a set of default configurations are used, which
  3734. are specified within
  3735. <filename>meta/conf/distro/defaultsetup.conf</filename>
  3736. also in the Source Directory.
  3737. </note>
  3738. </para>
  3739. </glossdef>
  3740. </glossentry>
  3741. <glossentry id='var-DISTRO_VERSION'><glossterm>DISTRO_VERSION</glossterm>
  3742. <info>
  3743. DISTRO_VERSION[doc] = "The version of the distribution."
  3744. </info>
  3745. <glossdef>
  3746. <para role="glossdeffirst">
  3747. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3748. The version of the distribution.
  3749. </para>
  3750. </glossdef>
  3751. </glossentry>
  3752. <glossentry id='var-DISTROOVERRIDES'><glossterm>DISTROOVERRIDES</glossterm>
  3753. <info>
  3754. DISTROOVERRIDES[doc] = "A colon-separated list of overrides specific to the current distribution."
  3755. </info>
  3756. <glossdef>
  3757. <para role="glossdeffirst">
  3758. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3759. A colon-separated list of overrides specific to the
  3760. current distribution.
  3761. By default, this list includes the value of
  3762. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>.
  3763. </para>
  3764. <para>
  3765. You can extend <filename>DISTROOVERRIDES</filename>
  3766. to add extra overrides that should apply to
  3767. the distribution.
  3768. </para>
  3769. <para>
  3770. The underlying mechanism behind
  3771. <filename>DISTROOVERRIDES</filename> is simply that it
  3772. is included in the default value of
  3773. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  3774. </para>
  3775. </glossdef>
  3776. </glossentry>
  3777. <glossentry id='var-DL_DIR'><glossterm>DL_DIR</glossterm>
  3778. <info>
  3779. 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."
  3780. </info>
  3781. <glossdef>
  3782. <para role="glossdeffirst">
  3783. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3784. The central download directory used by the build process to
  3785. store downloads.
  3786. By default, <filename>DL_DIR</filename> gets files
  3787. suitable for mirroring for everything except Git
  3788. repositories.
  3789. If you want tarballs of Git repositories, use the
  3790. <link linkend='var-BB_GENERATE_MIRROR_TARBALLS'><filename>BB_GENERATE_MIRROR_TARBALLS</filename></link>
  3791. variable.
  3792. </para>
  3793. <para>
  3794. You can set this directory by defining the
  3795. <filename>DL_DIR</filename> variable in the
  3796. <filename>conf/local.conf</filename> file.
  3797. This directory is self-maintaining and you should not have
  3798. to touch it.
  3799. By default, the directory is <filename>downloads</filename>
  3800. in the
  3801. <link linkend='build-directory'>Build Directory</link>.
  3802. <literallayout class='monospaced'>
  3803. #DL_DIR ?= "${TOPDIR}/downloads"
  3804. </literallayout>
  3805. To specify a different download directory, simply remove
  3806. the comment from the line and provide your directory.
  3807. </para>
  3808. <para>
  3809. During a first build, the system downloads many different
  3810. source code tarballs from various upstream projects.
  3811. Downloading can take a while, particularly if your network
  3812. connection is slow.
  3813. Tarballs are all stored in the directory defined by
  3814. <filename>DL_DIR</filename> and the build system looks there
  3815. first to find source tarballs.
  3816. <note>
  3817. When wiping and rebuilding, you can preserve this
  3818. directory to speed up this part of subsequent
  3819. builds.
  3820. </note>
  3821. </para>
  3822. <para>
  3823. You can safely share this directory between multiple builds
  3824. on the same development machine.
  3825. For additional information on how the build process gets
  3826. source files when working behind a firewall or proxy server,
  3827. see this specific question in the
  3828. "<link linkend='how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server'>FAQ</link>"
  3829. chapter.
  3830. You can also refer to the
  3831. "<ulink url='&YOCTO_WIKI_URL;/wiki/Working_Behind_a_Network_Proxy'>Working Behind a Network Proxy</ulink>"
  3832. Wiki page.
  3833. </para>
  3834. </glossdef>
  3835. </glossentry>
  3836. <glossentry id='var-DOC_COMPRESS'><glossterm>DOC_COMPRESS</glossterm>
  3837. <info>
  3838. 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."
  3839. </info>
  3840. <glossdef>
  3841. <para role="glossdeffirst">
  3842. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3843. When inheriting the
  3844. <link linkend='ref-classes-compress_doc'><filename>compress_doc</filename></link>
  3845. class, this variable sets the compression policy used when
  3846. the OpenEmbedded build system compresses man pages and info
  3847. pages.
  3848. By default, the compression method used is gz (gzip).
  3849. Other policies available are xz and bz2.
  3850. </para>
  3851. <para>
  3852. For information on policies and on how to use this
  3853. variable, see the comments in the
  3854. <filename>meta/classes/compress_doc.bbclass</filename> file.
  3855. </para>
  3856. </glossdef>
  3857. </glossentry>
  3858. </glossdiv>
  3859. <glossdiv id='var-glossary-e'><title>E</title>
  3860. <glossentry id='var-EFI_PROVIDER'><glossterm>EFI_PROVIDER</glossterm>
  3861. <info>
  3862. 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."
  3863. </info>
  3864. <glossdef>
  3865. <para role="glossdeffirst">
  3866. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3867. When building bootable images (i.e. where
  3868. <filename>hddimg</filename>, <filename>iso</filename>,
  3869. or <filename>wic.vmdk</filename> is in
  3870. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>),
  3871. the <filename>EFI_PROVIDER</filename> variable specifies
  3872. the EFI bootloader to use.
  3873. The default is "grub-efi", but "systemd-boot" can be used
  3874. instead.
  3875. </para>
  3876. <para>
  3877. See the
  3878. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  3879. and
  3880. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  3881. classes for more information.
  3882. </para>
  3883. </glossdef>
  3884. </glossentry>
  3885. <glossentry id='var-ENABLE_BINARY_LOCALE_GENERATION'><glossterm>ENABLE_BINARY_LOCALE_GENERATION</glossterm>
  3886. <info>
  3887. 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."
  3888. </info>
  3889. <glossdef>
  3890. <para role="glossdeffirst">
  3891. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3892. Variable that controls which locales for
  3893. <filename>glibc</filename> are generated during the
  3894. build (useful if the target device has 64Mbytes
  3895. of RAM or less).
  3896. </para>
  3897. </glossdef>
  3898. </glossentry>
  3899. <glossentry id='var-ERR_REPORT_DIR'><glossterm>ERR_REPORT_DIR</glossterm>
  3900. <info>
  3901. 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."
  3902. </info>
  3903. <glossdef>
  3904. <para role="glossdeffirst">
  3905. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3906. When used with the
  3907. <link linkend='ref-classes-report-error'><filename>report-error</filename></link>
  3908. class, specifies the path used for storing the debug files
  3909. created by the
  3910. <ulink url='&YOCTO_DOCS_DEV_URL;#using-the-error-reporting-tool'>error reporting tool</ulink>,
  3911. which allows you to submit build errors you encounter to a
  3912. central database.
  3913. By default, the value of this variable is
  3914. <filename>${</filename><link linkend='var-LOG_DIR'><filename>LOG_DIR</filename></link><filename>}/error-report</filename>.
  3915. </para>
  3916. <para>
  3917. You can set <filename>ERR_REPORT_DIR</filename> to the path
  3918. you want the error reporting tool to store the debug files
  3919. as follows in your <filename>local.conf</filename> file:
  3920. <literallayout class='monospaced'>
  3921. ERR_REPORT_DIR = "<replaceable>path</replaceable>"
  3922. </literallayout>
  3923. </para>
  3924. </glossdef>
  3925. </glossentry>
  3926. <glossentry id='var-ERROR_QA'><glossterm>ERROR_QA</glossterm>
  3927. <info>
  3928. ERROR_QA[doc] = "Specifies the quality assurance checks whose failures are reported as errors by the OpenEmbedded build system."
  3929. </info>
  3930. <glossdef>
  3931. <para role="glossdeffirst">
  3932. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3933. Specifies the quality assurance checks whose failures are
  3934. reported as errors by the OpenEmbedded build system.
  3935. You set this variable in your distribution configuration
  3936. file.
  3937. For a list of the checks you can control with this variable,
  3938. see the
  3939. "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  3940. section.
  3941. </para>
  3942. </glossdef>
  3943. </glossentry>
  3944. <glossentry id='var-EXCLUDE_FROM_SHLIBS'><glossterm>EXCLUDE_FROM_SHLIBS</glossterm>
  3945. <info>
  3946. EXCLUDE_FROM_SHLIBS[doc] = "Causes the OpenEmbedded build system's shared libraries resolver to exclude an entire package when scanning for shared libraries."
  3947. </info>
  3948. <glossdef>
  3949. <para role="glossdeffirst">
  3950. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3951. Triggers the OpenEmbedded build system's shared libraries
  3952. resolver to exclude an entire package when scanning for
  3953. shared libraries.
  3954. <note>
  3955. The shared libraries resolver's functionality results
  3956. in part from the internal function
  3957. <filename>package_do_shlibs</filename>, which is part of
  3958. the
  3959. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  3960. task.
  3961. You should be aware that the shared libraries resolver
  3962. might implicitly define some dependencies between
  3963. packages.
  3964. </note>
  3965. The <filename>EXCLUDE_FROM_SHLIBS</filename> variable is
  3966. similar to the
  3967. <link linkend='var-PRIVATE_LIBS'><filename>PRIVATE_LIBS</filename></link>
  3968. variable, which excludes a package's particular libraries
  3969. only and not the whole package.
  3970. </para>
  3971. <para>
  3972. Use the
  3973. <filename>EXCLUDE_FROM_SHLIBS</filename> variable by
  3974. setting it to "1" for a particular package:
  3975. <literallayout class='monospaced'>
  3976. EXCLUDE_FROM_SHLIBS = "1"
  3977. </literallayout>
  3978. </para>
  3979. </glossdef>
  3980. </glossentry>
  3981. <glossentry id='var-EXCLUDE_FROM_WORLD'><glossterm>EXCLUDE_FROM_WORLD</glossterm>
  3982. <info>
  3983. EXCLUDE_FROM_WORLD[doc] = "Directs BitBake to exclude a recipe from world builds (i.e. bitbake world)."
  3984. </info>
  3985. <glossdef>
  3986. <para role="glossdeffirst">
  3987. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3988. Directs BitBake to exclude a recipe from world builds (i.e.
  3989. <filename>bitbake world</filename>).
  3990. During world builds, BitBake locates, parses and builds all
  3991. recipes found in every layer exposed in the
  3992. <filename>bblayers.conf</filename> configuration file.
  3993. </para>
  3994. <para>
  3995. To exclude a recipe from a world build using this variable,
  3996. set the variable to "1" in the recipe.
  3997. </para>
  3998. <note>
  3999. Recipes added to <filename>EXCLUDE_FROM_WORLD</filename>
  4000. may still be built during a world build in order to satisfy
  4001. dependencies of other recipes.
  4002. Adding a recipe to <filename>EXCLUDE_FROM_WORLD</filename>
  4003. only ensures that the recipe is not explicitly added
  4004. to the list of build targets in a world build.
  4005. </note>
  4006. </glossdef>
  4007. </glossentry>
  4008. <glossentry id='var-EXTENDPE'><glossterm>EXTENDPE</glossterm>
  4009. <info>
  4010. 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."
  4011. </info>
  4012. <glossdef>
  4013. <para role="glossdeffirst">
  4014. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4015. Used with file and pathnames to create a prefix for a recipe's
  4016. version based on the recipe's
  4017. <link linkend='var-PE'><filename>PE</filename></link> value.
  4018. If <filename>PE</filename> is set and greater than zero for a recipe,
  4019. <filename>EXTENDPE</filename> becomes that value (e.g if
  4020. <filename>PE</filename> is equal to "1" then <filename>EXTENDPE</filename>
  4021. becomes "1_").
  4022. If a recipe's <filename>PE</filename> is not set (the default) or is equal to
  4023. zero, <filename>EXTENDPE</filename> becomes "".</para>
  4024. <para>See the <link linkend='var-STAMP'><filename>STAMP</filename></link>
  4025. variable for an example.
  4026. </para>
  4027. </glossdef>
  4028. </glossentry>
  4029. <glossentry id='var-EXTENDPKGV'><glossterm>EXTENDPKGV</glossterm>
  4030. <info>
  4031. EXTENDPKGV[doc] = "The full package version specification as it appears on the final packages produced by a recipe."
  4032. </info>
  4033. <glossdef>
  4034. <para role="glossdeffirst">
  4035. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4036. The full package version specification as it appears on the
  4037. final packages produced by a recipe.
  4038. The variable's value is normally used to fix a runtime
  4039. dependency to the exact same version of another package
  4040. in the same recipe:
  4041. <literallayout class='monospaced'>
  4042. RDEPENDS_${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  4043. </literallayout>
  4044. </para>
  4045. <para>
  4046. The dependency relationships are intended to force the
  4047. package manager to upgrade these types of packages in
  4048. lock-step.
  4049. </para>
  4050. </glossdef>
  4051. </glossentry>
  4052. <glossentry id='var-EXTERNAL_KERNEL_TOOLS'><glossterm>EXTERNAL_KERNEL_TOOLS</glossterm>
  4053. <info>
  4054. EXTERNAL_KERNEL_TOOLS[doc] = "Indicates kernel tools are external to the source tree."
  4055. </info>
  4056. <glossdef>
  4057. <para role="glossdeffirst">
  4058. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4059. When set, the <filename>EXTERNAL_KERNEL_TOOLS</filename>
  4060. variable indicates that these tools are not in the
  4061. source tree.
  4062. </para>
  4063. <para>
  4064. When kernel tools are available in the tree, they are
  4065. preferred over any externally installed tools.
  4066. Setting the <filename>EXTERNAL_KERNEL_TOOLS</filename>
  4067. variable tells the OpenEmbedded build system to prefer
  4068. the installed external tools.
  4069. See the
  4070. <link linkend='ref-classes-kernel-yocto'><filename>kernel-yocto</filename></link>
  4071. class in <filename>meta/classes</filename> to see how
  4072. the variable is used.
  4073. </para>
  4074. </glossdef>
  4075. </glossentry>
  4076. <glossentry id='var-EXTERNALSRC'><glossterm>EXTERNALSRC</glossterm>
  4077. <info>
  4078. EXTERNALSRC[doc] = "If externalsrc.bbclass is inherited, this variable points to the source tree, which is outside of the OpenEmbedded build system."
  4079. </info>
  4080. <glossdef>
  4081. <para role="glossdeffirst">
  4082. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4083. When inheriting the
  4084. <link linkend='ref-classes-externalsrc'><filename>externalsrc</filename></link>
  4085. class, this variable points to the source tree, which is
  4086. outside of the OpenEmbedded build system.
  4087. When set, this variable sets the
  4088. <link linkend='var-S'><filename>S</filename></link>
  4089. variable, which is what the OpenEmbedded build system uses
  4090. to locate unpacked recipe source code.
  4091. </para>
  4092. <para>
  4093. For more information on
  4094. <filename>externalsrc.bbclass</filename>, see the
  4095. "<link linkend='ref-classes-externalsrc'><filename>externalsrc.bbclass</filename></link>"
  4096. section.
  4097. You can also find information on how to use this variable
  4098. in the
  4099. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-software-from-an-external-source'>Building Software from an External Source</ulink>"
  4100. section in the Yocto Project Development Tasks Manual.
  4101. </para>
  4102. </glossdef>
  4103. </glossentry>
  4104. <glossentry id='var-EXTERNALSRC_BUILD'><glossterm>EXTERNALSRC_BUILD</glossterm>
  4105. <info>
  4106. 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."
  4107. </info>
  4108. <glossdef>
  4109. <para role="glossdeffirst">
  4110. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4111. When inheriting the
  4112. <link linkend='ref-classes-externalsrc'><filename>externalsrc</filename></link>
  4113. class, this variable points to the directory in which the
  4114. recipe's source code is built, which is outside of the
  4115. OpenEmbedded build system.
  4116. When set, this variable sets the
  4117. <link linkend='var-B'><filename>B</filename></link>
  4118. variable, which is what the OpenEmbedded build system uses
  4119. to locate the Build Directory.
  4120. </para>
  4121. <para>
  4122. For more information on
  4123. <filename>externalsrc.bbclass</filename>, see the
  4124. "<link linkend='ref-classes-externalsrc'><filename>externalsrc.bbclass</filename></link>"
  4125. section.
  4126. You can also find information on how to use this variable
  4127. in the
  4128. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-software-from-an-external-source'>Building Software from an External Source</ulink>"
  4129. section in the Yocto Project Development Tasks Manual.
  4130. </para>
  4131. </glossdef>
  4132. </glossentry>
  4133. <glossentry id='var-EXTRA_AUTORECONF'><glossterm>EXTRA_AUTORECONF</glossterm>
  4134. <info>
  4135. EXTRA_AUTORECONF[doc] = "Extra options passed to the autoreconf command, which is executed during do_configure."
  4136. </info>
  4137. <glossdef>
  4138. <para role="glossdeffirst">
  4139. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4140. For recipes inheriting the
  4141. <link linkend='ref-classes-autotools'><filename>autotools</filename></link>
  4142. class, you can use <filename>EXTRA_AUTORECONF</filename> to
  4143. specify extra options to pass to the
  4144. <filename>autoreconf</filename> command that is
  4145. executed during the
  4146. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  4147. task.
  4148. </para>
  4149. <para>
  4150. The default value is "--exclude=autopoint".
  4151. </para>
  4152. </glossdef>
  4153. </glossentry>
  4154. <glossentry id='var-EXTRA_IMAGE_FEATURES'><glossterm>EXTRA_IMAGE_FEATURES</glossterm>
  4155. <info>
  4156. 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."
  4157. </info>
  4158. <glossdef>
  4159. <para role="glossdeffirst">
  4160. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4161. A list of additional features to include in an image.
  4162. When listing more than one feature, separate them with
  4163. a space.
  4164. </para>
  4165. <para>
  4166. Typically, you configure this variable in your
  4167. <filename>local.conf</filename> file, which is found in the
  4168. <link linkend='build-directory'>Build Directory</link>.
  4169. Although you can use this variable from within a recipe,
  4170. best practices dictate that you do not.
  4171. <note>
  4172. To enable primary features from within the image
  4173. recipe, use the
  4174. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  4175. variable.
  4176. </note>
  4177. </para>
  4178. <para>
  4179. Here are some examples of features you can add:
  4180. <literallayout class='monospaced'>
  4181. "dbg-pkgs" - Adds -dbg packages for all installed packages
  4182. including symbol information for debugging and
  4183. profiling.
  4184. "debug-tweaks" - Makes an image suitable for debugging.
  4185. For example, allows root logins without
  4186. passwords and enables post-installation
  4187. logging. See the 'allow-empty-password'
  4188. and 'post-install-logging' features in
  4189. the "<link linkend='ref-features-image'>Image Features</link>" section for
  4190. more information.
  4191. "dev-pkgs" - Adds -dev packages for all installed packages.
  4192. This is useful if you want to develop against
  4193. the libraries in the image.
  4194. "read-only-rootfs" - Creates an image whose root
  4195. filesystem is read-only. See the
  4196. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-a-read-only-root-filesystem'>Creating a Read-Only Root Filesystem</ulink>"
  4197. section in the Yocto Project
  4198. Development Tasks Manual for
  4199. more information
  4200. "tools-debug" - Adds debugging tools such as gdb and
  4201. strace.
  4202. "tools-sdk" - Adds development tools such as gcc, make,
  4203. pkgconfig and so forth.
  4204. "tools-testapps" - Adds useful testing tools such as
  4205. ts_print, aplay, arecord and so
  4206. forth.
  4207. </literallayout>
  4208. </para>
  4209. <para>
  4210. For a complete list of image features that ships with the
  4211. Yocto Project, see the
  4212. "<link linkend="ref-features-image">Image Features</link>"
  4213. section.
  4214. </para>
  4215. <para>
  4216. For an example that shows how to customize your image by
  4217. using this variable, see the
  4218. "<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>"
  4219. section in the Yocto Project Development Tasks Manual.
  4220. </para>
  4221. </glossdef>
  4222. </glossentry>
  4223. <glossentry id='var-EXTRA_IMAGECMD'><glossterm>EXTRA_IMAGECMD</glossterm>
  4224. <info>
  4225. 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."
  4226. </info>
  4227. <glossdef>
  4228. <para role="glossdeffirst">
  4229. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4230. Specifies additional options for the image
  4231. creation command that has been specified in
  4232. <link linkend='var-IMAGE_CMD'><filename>IMAGE_CMD</filename></link>.
  4233. When setting this variable, use an override for the
  4234. associated image type.
  4235. Here is an example:
  4236. <literallayout class='monospaced'>
  4237. EXTRA_IMAGECMD_ext3 ?= "-i 4096"
  4238. </literallayout>
  4239. </para>
  4240. </glossdef>
  4241. </glossentry>
  4242. <glossentry id='var-EXTRA_IMAGEDEPENDS'><glossterm>EXTRA_IMAGEDEPENDS</glossterm>
  4243. <info>
  4244. 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."
  4245. </info>
  4246. <glossdef>
  4247. <para role="glossdeffirst">
  4248. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4249. A list of recipes to build that do not provide packages
  4250. for installing into the root filesystem.
  4251. </para>
  4252. <para>
  4253. Sometimes a recipe is required to build the final image but is not
  4254. needed in the root filesystem.
  4255. You can use the <filename>EXTRA_IMAGEDEPENDS</filename> variable to
  4256. list these recipes and thus specify the dependencies.
  4257. A typical example is a required bootloader in a machine configuration.
  4258. </para>
  4259. <note>
  4260. To add packages to the root filesystem, see the various
  4261. <filename>*<link linkend='var-RDEPENDS'>RDEPENDS</link></filename>
  4262. and <filename>*<link linkend='var-RRECOMMENDS'>RRECOMMENDS</link></filename>
  4263. variables.
  4264. </note>
  4265. </glossdef>
  4266. </glossentry>
  4267. <glossentry id='var-EXTRANATIVEPATH'><glossterm>EXTRANATIVEPATH</glossterm>
  4268. <info>
  4269. EXTRANATIVEPATH[doc] = "A list of subdirectories of ${STAGING_BINDIR_NATIVE} added to the beginning of the environment variable PATH."
  4270. </info>
  4271. <glossdef>
  4272. <para role="glossdeffirst">
  4273. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4274. A list of subdirectories of
  4275. <filename>${</filename><link linkend='var-STAGING_BINDIR_NATIVE'><filename>STAGING_BINDIR_NATIVE</filename></link><filename>}</filename>
  4276. added to the beginning of the environment variable
  4277. <filename>PATH</filename>.
  4278. As an example, the following prepends
  4279. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:"
  4280. to <filename>PATH</filename>:
  4281. <literallayout class='monospaced'>
  4282. EXTRANATIVEPATH = "foo bar"
  4283. </literallayout>
  4284. </para>
  4285. </glossdef>
  4286. </glossentry>
  4287. <glossentry id='var-EXTRA_OECMAKE'><glossterm>EXTRA_OECMAKE</glossterm>
  4288. <info>
  4289. EXTRA_OECMAKE[doc] = "Additional cmake options."
  4290. </info>
  4291. <glossdef>
  4292. <para role="glossdeffirst">
  4293. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4294. Additional <filename>cmake</filename> options.
  4295. </para>
  4296. </glossdef>
  4297. </glossentry>
  4298. <glossentry id='var-EXTRA_OECONF'><glossterm>EXTRA_OECONF</glossterm>
  4299. <info>
  4300. EXTRA_OECONF[doc] = "Additional configure script options."
  4301. </info>
  4302. <glossdef>
  4303. <para role="glossdeffirst">
  4304. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4305. Additional <filename>configure</filename> script options.
  4306. See
  4307. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>
  4308. for additional information on passing configure script
  4309. options.
  4310. </para>
  4311. </glossdef>
  4312. </glossentry>
  4313. <glossentry id='var-EXTRA_OEMAKE'><glossterm>EXTRA_OEMAKE</glossterm>
  4314. <info>
  4315. EXTRA_OEMAKE[doc] = "Additional GNU make options."
  4316. </info>
  4317. <glossdef>
  4318. <para role="glossdeffirst">
  4319. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4320. Additional GNU <filename>make</filename> options.
  4321. </para>
  4322. <para>
  4323. Because the <filename>EXTRA_OEMAKE</filename> defaults to
  4324. "", you need to set the variable to specify any required
  4325. GNU options.
  4326. </para>
  4327. <para>
  4328. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  4329. and
  4330. <link linkend='var-PARALLEL_MAKEINST'><filename>PARALLEL_MAKEINST</filename></link>
  4331. also make use of
  4332. <filename>EXTRA_OEMAKE</filename> to pass the required
  4333. flags.
  4334. </para>
  4335. </glossdef>
  4336. </glossentry>
  4337. <glossentry id='var-EXTRA_OESCONS'><glossterm>EXTRA_OESCONS</glossterm>
  4338. <info>
  4339. 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."
  4340. </info>
  4341. <glossdef>
  4342. <para role="glossdeffirst">
  4343. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4344. When inheriting the
  4345. <link linkend='ref-classes-scons'><filename>scons</filename></link>
  4346. class, this variable specifies additional configuration
  4347. options you want to pass to the
  4348. <filename>scons</filename> command line.
  4349. </para>
  4350. </glossdef>
  4351. </glossentry>
  4352. <glossentry id='var-EXTRA_USERS_PARAMS'><glossterm>EXTRA_USERS_PARAMS</glossterm>
  4353. <info>
  4354. EXTRA_USERS_PARAMS[doc] = "When a recipe inherits the extrausers class, this variable provides image level user and group operations."
  4355. </info>
  4356. <glossdef>
  4357. <para role="glossdeffirst">
  4358. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4359. When inheriting the
  4360. <link linkend='ref-classes-extrausers'><filename>extrausers</filename></link>
  4361. class, this variable provides image level user and group
  4362. operations.
  4363. This is a more global method of providing user and group
  4364. configuration as compared to using the
  4365. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  4366. class, which ties user and group configurations to a
  4367. specific recipe.
  4368. </para>
  4369. <para>
  4370. The set list of commands you can configure using the
  4371. <filename>EXTRA_USERS_PARAMS</filename> is shown in the
  4372. <filename>extrausers</filename> class.
  4373. These commands map to the normal Unix commands of the same
  4374. names:
  4375. <literallayout class='monospaced'>
  4376. # EXTRA_USERS_PARAMS = "\
  4377. # useradd -p '' tester; \
  4378. # groupadd developers; \
  4379. # userdel nobody; \
  4380. # groupdel -g video; \
  4381. # groupmod -g 1020 developers; \
  4382. # usermod -s /bin/sh tester; \
  4383. # "
  4384. </literallayout>
  4385. </para>
  4386. </glossdef>
  4387. </glossentry>
  4388. </glossdiv>
  4389. <glossdiv id='var-glossary-f'><title>F</title>
  4390. <glossentry id='var-FEATURE_PACKAGES'><glossterm>FEATURE_PACKAGES</glossterm>
  4391. <info>
  4392. 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."
  4393. </info>
  4394. <glossdef>
  4395. <para role="glossdeffirst">
  4396. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4397. Defines one or more packages to include in an image when
  4398. a specific item is included in
  4399. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  4400. When setting the value, <filename>FEATURE_PACKAGES</filename>
  4401. should have the name of the feature item as an override.
  4402. Here is an example:
  4403. <literallayout class='monospaced'>
  4404. FEATURE_PACKAGES_widget = "<replaceable>package1</replaceable> <replaceable>package2</replaceable>"
  4405. </literallayout>
  4406. </para>
  4407. <para>
  4408. In this example, if "widget" were added to
  4409. <filename>IMAGE_FEATURES</filename>, <replaceable>package1</replaceable> and
  4410. <replaceable>package2</replaceable> would be included in the image.
  4411. <note>
  4412. Packages installed by features defined through
  4413. <filename>FEATURE_PACKAGES</filename> are often package
  4414. groups.
  4415. While similarly named, you should not confuse the
  4416. <filename>FEATURE_PACKAGES</filename> variable with
  4417. package groups, which are discussed elsewhere in the
  4418. documentation.
  4419. </note>
  4420. </para>
  4421. </glossdef>
  4422. </glossentry>
  4423. <glossentry id='var-FEED_DEPLOYDIR_BASE_URI'><glossterm>FEED_DEPLOYDIR_BASE_URI</glossterm>
  4424. <info>
  4425. 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."
  4426. </info>
  4427. <glossdef>
  4428. <para role="glossdeffirst">
  4429. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4430. Points to the base URL of the server and location within
  4431. the document-root that provides the metadata and
  4432. packages required by OPKG to support runtime package
  4433. management of IPK packages.
  4434. You set this variable in your
  4435. <filename>local.conf</filename> file.
  4436. </para>
  4437. <para>
  4438. Consider the following example:
  4439. <literallayout class='monospaced'>
  4440. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  4441. </literallayout>
  4442. This example assumes you are serving your packages over
  4443. HTTP and your databases are located in a directory
  4444. named <filename>BOARD-dir</filename>, which is underneath
  4445. your HTTP server's document-root.
  4446. In this case, the OpenEmbedded build system generates a set
  4447. of configuration files for you in your target that work
  4448. with the feed.
  4449. </para>
  4450. </glossdef>
  4451. </glossentry>
  4452. <glossentry id='var-FILES'><glossterm>FILES</glossterm>
  4453. <info>
  4454. FILES[doc] = "The list of directories or files that are placed in a package."
  4455. </info>
  4456. <glossdef>
  4457. <para role="glossdeffirst">
  4458. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4459. The list of files and directories that are placed in a
  4460. package.
  4461. The
  4462. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  4463. variable lists the packages generated by a recipe.
  4464. </para>
  4465. <para>
  4466. To use the <filename>FILES</filename> variable, provide a
  4467. package name override that identifies the resulting package.
  4468. Then, provide a space-separated list of files or paths
  4469. that identify the files you want included as part of the
  4470. resulting package.
  4471. Here is an example:
  4472. <literallayout class='monospaced'>
  4473. FILES_${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  4474. </literallayout>
  4475. <note><title>Notes</title>
  4476. <itemizedlist>
  4477. <listitem><para>
  4478. When specifying files or paths, you can pattern
  4479. match using Python's
  4480. <ulink url='https://docs.python.org/2/library/glob.html'><filename>glob</filename></ulink>
  4481. syntax.
  4482. For details on the syntax, see the
  4483. documentation by following the previous link.
  4484. </para></listitem>
  4485. <listitem><para>
  4486. When specifying paths as part of the
  4487. <filename>FILES</filename> variable, it is
  4488. good practice to use appropriate path
  4489. variables.
  4490. For example, use <filename>${sysconfdir}</filename>
  4491. rather than <filename>/etc</filename>, or
  4492. <filename>${bindir}</filename> rather than
  4493. <filename>/usr/bin</filename>.
  4494. You can find a list of these variables at the
  4495. top of the
  4496. <filename>meta/conf/bitbake.conf</filename>
  4497. file in the
  4498. <link linkend='source-directory'>Source Directory</link>.
  4499. You will also find the default values of the
  4500. various <filename>FILES_*</filename> variables
  4501. in this file.
  4502. </para></listitem>
  4503. </itemizedlist>
  4504. </note>
  4505. </para>
  4506. <para>
  4507. If some of the files you provide with the
  4508. <filename>FILES</filename> variable are editable and you
  4509. know they should not be overwritten during the package
  4510. update process by the Package Management System (PMS), you
  4511. can identify these files so that the PMS will not
  4512. overwrite them.
  4513. See the
  4514. <link linkend='var-CONFFILES'><filename>CONFFILES</filename></link>
  4515. variable for information on how to identify these files to
  4516. the PMS.
  4517. </para>
  4518. </glossdef>
  4519. </glossentry>
  4520. <glossentry id='var-FILES_SOLIBSDEV'><glossterm>FILES_SOLIBSDEV</glossterm>
  4521. <info>
  4522. FILES_SOLIBSDEV[doc] = "Defines the full path name of the development symbolic link (symlink) for shared libraries on the target platform."
  4523. </info>
  4524. <glossdef>
  4525. <para role="glossdeffirst">
  4526. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4527. Defines the file specification to match
  4528. <link linkend='var-SOLIBSDEV'><filename>SOLIBSDEV</filename></link>.
  4529. In other words, <filename>FILES_SOLIBSDEV</filename>
  4530. defines the full path name of the development symbolic link
  4531. (symlink) for shared libraries on the target platform.
  4532. </para>
  4533. <para>
  4534. The following statement from the
  4535. <filename>bitbake.conf</filename> shows how it is set:
  4536. <literallayout class='monospaced'>
  4537. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  4538. </literallayout>
  4539. </para>
  4540. </glossdef>
  4541. </glossentry>
  4542. <glossentry id='var-FILESEXTRAPATHS'><glossterm>FILESEXTRAPATHS</glossterm>
  4543. <info>
  4544. FILESEXTRAPATHS[doc] = "Extends the search path the OpenEmbedded build system uses when looking for files and patches as it processes recipes and append files."
  4545. </info>
  4546. <glossdef>
  4547. <para role="glossdeffirst">
  4548. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4549. Extends the search path the OpenEmbedded build system uses
  4550. when looking for files and patches as it processes recipes
  4551. and append files.
  4552. The default directories BitBake uses when it processes
  4553. recipes are initially defined by the
  4554. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>
  4555. variable.
  4556. You can extend <filename>FILESPATH</filename> variable
  4557. by using <filename>FILESEXTRAPATHS</filename>.
  4558. </para>
  4559. <para>
  4560. Best practices dictate that you accomplish this by using
  4561. <filename>FILESEXTRAPATHS</filename> from within a
  4562. <filename>.bbappend</filename> file and that you prepend
  4563. paths as follows:
  4564. <literallayout class='monospaced'>
  4565. FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
  4566. </literallayout>
  4567. In the above example, the build system first looks for files
  4568. in a directory that has the same name as the corresponding
  4569. append file.
  4570. <note>
  4571. <para>When extending
  4572. <filename>FILESEXTRAPATHS</filename>,
  4573. be sure to use the immediate expansion
  4574. (<filename>:=</filename>) operator.
  4575. Immediate expansion makes sure that BitBake evaluates
  4576. <link linkend='var-THISDIR'><filename>THISDIR</filename></link>
  4577. at the time the directive is encountered rather than at
  4578. some later time when expansion might result in a
  4579. directory that does not contain the files you need.
  4580. </para>
  4581. <para>Also, include the trailing separating colon
  4582. character if you are prepending.
  4583. The trailing colon character is necessary because you
  4584. are directing BitBake to extend the path by prepending
  4585. directories to the search path.</para>
  4586. </note>
  4587. Here is another common use:
  4588. <literallayout class='monospaced'>
  4589. FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
  4590. </literallayout>
  4591. In this example, the build system extends the
  4592. <filename>FILESPATH</filename> variable to include a
  4593. directory named <filename>files</filename> that is in the
  4594. same directory as the corresponding append file.
  4595. </para>
  4596. <para>
  4597. This next example specifically adds three paths:
  4598. <literallayout class='monospaced'>
  4599. FILESEXTRAPATHS_prepend := "path_1:path_2:path_3:"
  4600. </literallayout>
  4601. </para>
  4602. <para>
  4603. A final example shows how you can extend the search path
  4604. and include a
  4605. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>-specific
  4606. override, which is useful in a BSP layer:
  4607. <literallayout class='monospaced'>
  4608. FILESEXTRAPATHS_prepend_intel-x86-common := "${THISDIR}/${PN}:"
  4609. </literallayout>
  4610. The previous statement appears in the
  4611. <filename>linux-yocto-dev.bbappend</filename> file, which
  4612. is found in the Yocto Project
  4613. <ulink url='&YOCTO_DOCS_OM_URL;#source-repositories'>Source Repositories</ulink>
  4614. in
  4615. <filename>meta-intel/common/recipes-kernel/linux</filename>.
  4616. Here, the machine override is a special
  4617. <link linkend='var-PACKAGE_ARCH'><filename>PACKAGE_ARCH</filename></link>
  4618. definition for multiple <filename>meta-intel</filename>
  4619. machines.
  4620. <note>
  4621. For a layer that supports a single BSP, the override
  4622. could just be the value of <filename>MACHINE</filename>.
  4623. </note>
  4624. </para>
  4625. <para>
  4626. By prepending paths in <filename>.bbappend</filename>
  4627. files, you allow multiple append files that reside in
  4628. different layers but are used for the same recipe to
  4629. correctly extend the path.
  4630. </para>
  4631. </glossdef>
  4632. </glossentry>
  4633. <glossentry id='var-FILESOVERRIDES'><glossterm>FILESOVERRIDES</glossterm>
  4634. <info>
  4635. FILESOVERRIDES[doc] = "A subset of OVERRIDES used by the OpenEmbedded build system for creating FILESPATH."
  4636. </info>
  4637. <glossdef>
  4638. <para role="glossdeffirst">
  4639. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4640. A subset of <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>
  4641. used by the OpenEmbedded build system for creating
  4642. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>.
  4643. You can find more information on how overrides are handled
  4644. in the
  4645. <ulink url='&YOCTO_DOCS_BB_URL;'>BitBake User Manual</ulink>.
  4646. </para>
  4647. <para>
  4648. By default, the <filename>FILESOVERRIDES</filename>
  4649. variable is defined as:
  4650. <literallayout class='monospaced'>
  4651. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  4652. </literallayout>
  4653. <note>
  4654. Do not hand-edit the <filename>FILESOVERRIDES</filename>
  4655. variable.
  4656. The values match up with expected overrides and are
  4657. used in an expected manner by the build system.
  4658. </note>
  4659. </para>
  4660. </glossdef>
  4661. </glossentry>
  4662. <glossentry id='var-FILESPATH'><glossterm>FILESPATH</glossterm>
  4663. <info>
  4664. 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."
  4665. </info>
  4666. <glossdef>
  4667. <para role="glossdeffirst">
  4668. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4669. The default set of directories the OpenEmbedded build system
  4670. uses when searching for patches and files.
  4671. During the build process, BitBake searches each directory in
  4672. <filename>FILESPATH</filename> in the specified order when
  4673. looking for files and patches specified by each
  4674. <filename>file://</filename> URI in a recipe's
  4675. <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
  4676. statements.
  4677. </para>
  4678. <para>
  4679. The default value for the <filename>FILESPATH</filename>
  4680. variable is defined in the <filename>base.bbclass</filename>
  4681. class found in <filename>meta/classes</filename> in the
  4682. <link linkend='source-directory'>Source Directory</link>:
  4683. <literallayout class='monospaced'>
  4684. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  4685. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  4686. </literallayout>
  4687. <note>
  4688. Do not hand-edit the <filename>FILESPATH</filename>
  4689. variable.
  4690. If you want the build system to look in directories
  4691. other than the defaults, extend the
  4692. <filename>FILESPATH</filename> variable by using the
  4693. <link linkend='var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></link>
  4694. variable.
  4695. </note>
  4696. Be aware that the default <filename>FILESPATH</filename>
  4697. directories do not map to directories in custom layers
  4698. where append files (<filename>.bbappend</filename>)
  4699. are used.
  4700. If you want the build system to find patches or files
  4701. that reside with your append files, you need to extend
  4702. the <filename>FILESPATH</filename> variable by using
  4703. the <filename>FILESEXTRAPATHS</filename> variable.
  4704. </para>
  4705. <para>
  4706. You can find out more about the patching process in the
  4707. "<ulink url='&YOCTO_DOCS_OM_URL;#patching-dev-environment'>Patching</ulink>"
  4708. section in the Yocto Project Overview and Concepts Manual
  4709. and the
  4710. "<ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-patching-code'>Patching Code</ulink>"
  4711. section in the Yocto Project Development Tasks Manual.
  4712. See the
  4713. <link linkend='ref-tasks-patch'><filename>do_patch</filename></link>
  4714. task as well.
  4715. </para>
  4716. </glossdef>
  4717. </glossentry>
  4718. <glossentry id='var-FILESYSTEM_PERMS_TABLES'><glossterm>FILESYSTEM_PERMS_TABLES</glossterm>
  4719. <info>
  4720. FILESYSTEM_PERMS_TABLES[doc] = "Allows you to define your own file permissions settings table as part of your configuration for the packaging process."
  4721. </info>
  4722. <glossdef>
  4723. <para role="glossdeffirst">
  4724. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4725. Allows you to define your own file permissions settings table as part of
  4726. your configuration for the packaging process.
  4727. For example, suppose you need a consistent set of custom permissions for
  4728. a set of groups and users across an entire work project.
  4729. It is best to do this in the packages themselves but this is not always
  4730. possible.
  4731. </para>
  4732. <para>
  4733. By default, the OpenEmbedded build system uses the <filename>fs-perms.txt</filename>, which
  4734. is located in the <filename>meta/files</filename> folder in the
  4735. <link linkend='source-directory'>Source Directory</link>.
  4736. If you create your own file permissions setting table, you should place it in your
  4737. layer or the distro's layer.
  4738. </para>
  4739. <para>
  4740. You define the <filename>FILESYSTEM_PERMS_TABLES</filename> variable in the
  4741. <filename>conf/local.conf</filename> file, which is found in the
  4742. <link linkend='build-directory'>Build Directory</link>, to
  4743. point to your custom <filename>fs-perms.txt</filename>.
  4744. You can specify more than a single file permissions setting table.
  4745. The paths you specify to these files must be defined within the
  4746. <link linkend='var-BBPATH'><filename>BBPATH</filename></link> variable.
  4747. </para>
  4748. <para>
  4749. For guidance on how to create your own file permissions settings table file,
  4750. examine the existing <filename>fs-perms.txt</filename>.
  4751. </para>
  4752. </glossdef>
  4753. </glossentry>
  4754. <glossentry id='var-FONT_EXTRA_RDEPENDS'><glossterm>FONT_EXTRA_RDEPENDS</glossterm>
  4755. <info>
  4756. 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'."
  4757. </info>
  4758. <glossdef>
  4759. <para role="glossdeffirst">
  4760. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4761. When inheriting the
  4762. <link linkend='ref-classes-fontcache'><filename>fontcache</filename></link>
  4763. class, this variable specifies the runtime dependencies
  4764. for font packages.
  4765. By default, the <filename>FONT_EXTRA_RDEPENDS</filename>
  4766. is set to "fontconfig-utils".
  4767. </para>
  4768. </glossdef>
  4769. </glossentry>
  4770. <glossentry id='var-FONT_PACKAGES'><glossterm>FONT_PACKAGES</glossterm>
  4771. <info>
  4772. FONT_PACKAGES[doc] = "When a recipe inherits the fontcache class, this variable identifies packages containing font files that need to be cached by Fontconfig."
  4773. </info>
  4774. <glossdef>
  4775. <para role="glossdeffirst">
  4776. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4777. When inheriting the
  4778. <link linkend='ref-classes-fontcache'><filename>fontcache</filename></link>
  4779. class, this variable identifies packages containing font
  4780. files that need to be cached by Fontconfig.
  4781. By default, the <filename>fontcache</filename> class assumes
  4782. that fonts are in the recipe's main package
  4783. (i.e. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  4784. Use this variable if fonts you need are in a package
  4785. other than that main package.
  4786. </para>
  4787. </glossdef>
  4788. </glossentry>
  4789. <glossentry id='var-FORCE_RO_REMOVE'><glossterm>FORCE_RO_REMOVE</glossterm>
  4790. <info>
  4791. FORCE_RO_REMOVE[doc] = "Forces the removal of the packages listed in ROOTFS_RO_UNNEEDED during the generation of the root filesystem."
  4792. </info>
  4793. <glossdef>
  4794. <para role="glossdeffirst">
  4795. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4796. Forces the removal of the packages listed in
  4797. <filename>ROOTFS_RO_UNNEEDED</filename> during the
  4798. generation of the root filesystem.
  4799. </para>
  4800. <para>
  4801. Set the variable to "1" to force the removal of these
  4802. packages.
  4803. </para>
  4804. </glossdef>
  4805. </glossentry>
  4806. <glossentry id='var-FULL_OPTIMIZATION'><glossterm>FULL_OPTIMIZATION</glossterm>
  4807. <info>
  4808. 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'."
  4809. </info>
  4810. <glossdef>
  4811. <para role="glossdeffirst">
  4812. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4813. The options to pass in
  4814. <filename><link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link></filename>
  4815. and <filename><link linkend='var-CFLAGS'>CFLAGS</link></filename>
  4816. when compiling an optimized system.
  4817. This variable defaults to
  4818. "-O2 -pipe ${DEBUG_FLAGS}".
  4819. </para>
  4820. </glossdef>
  4821. </glossentry>
  4822. </glossdiv>
  4823. <glossdiv id='var-glossary-g'><title>G</title>
  4824. <glossentry id='var-GCCPIE'><glossterm>GCCPIE</glossterm>
  4825. <info>
  4826. GCCPIE[doc] = "Enables Position Independent Executables (PIE) within the GNU C Compiler (GCC)."
  4827. </info>
  4828. <glossdef>
  4829. <para role="glossdeffirst">
  4830. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4831. Enables Position Independent Executables (PIE) within the
  4832. GNU C Compiler (GCC).
  4833. Enabling PIE in the GCC makes Return Oriented Programming
  4834. (ROP) attacks much more difficult to
  4835. execute.
  4836. </para>
  4837. <para>
  4838. By default the <filename>security_flags.inc</filename>
  4839. file enables PIE by setting the variable as follows:
  4840. <literallayout class='monospaced'>
  4841. GCCPIE ?= "--enable-default-pie"
  4842. </literallayout>
  4843. </para>
  4844. </glossdef>
  4845. </glossentry>
  4846. <glossentry id='var-GDB'><glossterm>GDB</glossterm>
  4847. <info>
  4848. GDB[doc] = "The minimal command and arguments to run the GNU Debugger."
  4849. </info>
  4850. <glossdef>
  4851. <para role="glossdeffirst">
  4852. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4853. The minimal command and arguments to run the GNU Debugger.
  4854. </para>
  4855. </glossdef>
  4856. </glossentry>
  4857. <glossentry id='var-GITDIR'><glossterm>GITDIR</glossterm>
  4858. <info>
  4859. GITDIR[doc] = "The directory where Git clones will be stored."
  4860. </info>
  4861. <glossdef>
  4862. <para role="glossdeffirst">
  4863. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4864. The directory in which a local copy of a Git repository
  4865. is stored when it is cloned.
  4866. </para>
  4867. </glossdef>
  4868. </glossentry>
  4869. <glossentry id='var-GLIBC_GENERATE_LOCALES'><glossterm>GLIBC_GENERATE_LOCALES</glossterm>
  4870. <info>
  4871. 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."
  4872. </info>
  4873. <glossdef>
  4874. <para role="glossdeffirst">
  4875. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4876. Specifies the list of GLIBC locales to generate should you
  4877. not wish to generate all LIBC locals, which can be time
  4878. consuming.
  4879. <note>
  4880. If you specifically remove the locale
  4881. <filename>en_US.UTF-8</filename>, you must set
  4882. <link linkend='var-IMAGE_LINGUAS'><filename>IMAGE_LINGUAS</filename></link>
  4883. appropriately.
  4884. </note>
  4885. </para>
  4886. <para>
  4887. You can set <filename>GLIBC_GENERATE_LOCALES</filename>
  4888. in your <filename>local.conf</filename> file.
  4889. By default, all locales are generated.
  4890. <literallayout class='monospaced'>
  4891. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  4892. </literallayout>
  4893. </para>
  4894. </glossdef>
  4895. </glossentry>
  4896. <glossentry id='var-GROUPADD_PARAM'><glossterm>GROUPADD_PARAM</glossterm>
  4897. <info>
  4898. 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."
  4899. </info>
  4900. <glossdef>
  4901. <para role="glossdeffirst">
  4902. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4903. When inheriting the
  4904. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  4905. class, this variable
  4906. specifies for a package what parameters should be passed
  4907. to the <filename>groupadd</filename> command
  4908. if you wish to add a group to the system when the package
  4909. is installed.
  4910. </para>
  4911. <para>
  4912. Here is an example from the <filename>dbus</filename>
  4913. recipe:
  4914. <literallayout class='monospaced'>
  4915. GROUPADD_PARAM_${PN} = "-r netdev"
  4916. </literallayout>
  4917. For information on the standard Linux shell command
  4918. <filename>groupadd</filename>, see
  4919. <ulink url='http://linux.die.net/man/8/groupadd'></ulink>.
  4920. </para>
  4921. </glossdef>
  4922. </glossentry>
  4923. <glossentry id='var-GROUPMEMS_PARAM'><glossterm>GROUPMEMS_PARAM</glossterm>
  4924. <info>
  4925. 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."
  4926. </info>
  4927. <glossdef>
  4928. <para role="glossdeffirst">
  4929. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4930. When inheriting the
  4931. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  4932. class, this variable
  4933. specifies for a package what parameters should be passed
  4934. to the <filename>groupmems</filename> command
  4935. if you wish to modify the members of a group when the
  4936. package is installed.
  4937. </para>
  4938. <para>
  4939. For information on the standard Linux shell command
  4940. <filename>groupmems</filename>, see
  4941. <ulink url='http://linux.die.net/man/8/groupmems'></ulink>.
  4942. </para>
  4943. </glossdef>
  4944. </glossentry>
  4945. <glossentry id='var-GRUB_GFXSERIAL'><glossterm>GRUB_GFXSERIAL</glossterm>
  4946. <info>
  4947. GRUB_GFXSERIAL[doc] = "Configures the GNU GRand Unified Bootloader (GRUB) to have graphics and serial in the boot menu."
  4948. </info>
  4949. <glossdef>
  4950. <para role="glossdeffirst">
  4951. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4952. Configures the GNU GRand Unified Bootloader (GRUB) to have
  4953. graphics and serial in the boot menu.
  4954. Set this variable to "1" in your
  4955. <filename>local.conf</filename> or distribution
  4956. configuration file to enable graphics and serial
  4957. in the menu.
  4958. </para>
  4959. <para>
  4960. See the
  4961. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  4962. class for more information on how this variable is used.
  4963. </para>
  4964. </glossdef>
  4965. </glossentry>
  4966. <glossentry id='var-GRUB_OPTS'><glossterm>GRUB_OPTS</glossterm>
  4967. <info>
  4968. GRUB_OPTS[doc] = "Additional options to add to the GNU GRand Unified Bootloader (GRUB) configuration."
  4969. </info>
  4970. <glossdef>
  4971. <para role="glossdeffirst">
  4972. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4973. Additional options to add to the GNU GRand Unified
  4974. Bootloader (GRUB) configuration.
  4975. Use a semi-colon character (<filename>;</filename>) to
  4976. separate multiple options.
  4977. </para>
  4978. <para>
  4979. The <filename>GRUB_OPTS</filename> variable is optional.
  4980. See the
  4981. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  4982. class for more information on how this variable is used.
  4983. </para>
  4984. </glossdef>
  4985. </glossentry>
  4986. <glossentry id='var-GRUB_TIMEOUT'><glossterm>GRUB_TIMEOUT</glossterm>
  4987. <info>
  4988. GRUB_TIMEOUT[doc] = "Specifies the timeout before executing the default LABEL in the GNU GRand Unified Bootloader (GRUB)."
  4989. </info>
  4990. <glossdef>
  4991. <para role="glossdeffirst">
  4992. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4993. Specifies the timeout before executing the default
  4994. <filename>LABEL</filename> in the GNU GRand Unified
  4995. Bootloader (GRUB).
  4996. </para>
  4997. <para>
  4998. The <filename>GRUB_TIMEOUT</filename> variable is optional.
  4999. See the
  5000. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  5001. class for more information on how this variable is used.
  5002. </para>
  5003. </glossdef>
  5004. </glossentry>
  5005. <glossentry id='var-GTKIMMODULES_PACKAGES'><glossterm>GTKIMMODULES_PACKAGES</glossterm>
  5006. <info>
  5007. 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."
  5008. </info>
  5009. <glossdef>
  5010. <para role="glossdeffirst">
  5011. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5012. When inheriting the
  5013. <link linkend='ref-classes-gtk-immodules-cache'><filename>gtk-immodules-cache</filename></link>
  5014. class, this variable specifies the packages that contain the
  5015. GTK+ input method modules being installed when the modules
  5016. are in packages other than the main package.
  5017. </para>
  5018. </glossdef>
  5019. </glossentry>
  5020. </glossdiv>
  5021. <glossdiv id='var-glossary-h'><title>H</title>
  5022. <glossentry id='var-HOMEPAGE'><glossterm>HOMEPAGE</glossterm>
  5023. <info>
  5024. HOMEPAGE[doc] = "Website where more information about the software the recipe is building can be found."
  5025. </info>
  5026. <glossdef>
  5027. <para role="glossdeffirst">
  5028. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5029. Website where more information about the software the recipe is building
  5030. can be found.
  5031. </para>
  5032. </glossdef>
  5033. </glossentry>
  5034. <glossentry id='var-HOST_ARCH'><glossterm>HOST_ARCH</glossterm>
  5035. <info>
  5036. HOST_ARCH[doc] = "The name of the target architecture. Normally same as the TARGET_ARCH."
  5037. </info>
  5038. <glossdef>
  5039. <para role="glossdeffirst">
  5040. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5041. The name of the target architecture, which is normally
  5042. the same as
  5043. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>.
  5044. The OpenEmbedded build system supports many
  5045. architectures.
  5046. Here is an example list of architectures supported.
  5047. This list is by no means complete as the architecture
  5048. is configurable:
  5049. <literallayout class='monospaced'>
  5050. arm
  5051. i586
  5052. x86_64
  5053. powerpc
  5054. powerpc64
  5055. mips
  5056. mipsel
  5057. </literallayout>
  5058. </para>
  5059. </glossdef>
  5060. </glossentry>
  5061. <glossentry id='var-HOST_CC_ARCH'><glossterm>HOST_CC_ARCH</glossterm>
  5062. <info>
  5063. HOST_CC_ARCH[doc] = "The name of the host architecture. Normally same as the TARGET_CC_ARCH."
  5064. </info>
  5065. <glossdef>
  5066. <para role="glossdeffirst">
  5067. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5068. Specifies architecture-specific compiler flags that are
  5069. passed to the C compiler.
  5070. </para>
  5071. <para>
  5072. Default initialization for <filename>HOST_CC_ARCH</filename>
  5073. varies depending on what is being built:
  5074. <itemizedlist>
  5075. <listitem><para>
  5076. <link linkend='var-TARGET_CC_ARCH'><filename>TARGET_CC_ARCH</filename></link>
  5077. when building for the target
  5078. </para></listitem>
  5079. <listitem><para>
  5080. <filename>BUILD_CC_ARCH</filename>
  5081. when building for the build host (i.e.
  5082. <filename>-native</filename>)
  5083. </para></listitem>
  5084. <listitem><para>
  5085. <filename>BUILDSDK_CC_ARCH</filename>
  5086. when building for an SDK (i.e.
  5087. <filename>nativesdk-</filename>)
  5088. </para></listitem>
  5089. </itemizedlist>
  5090. </para>
  5091. </glossdef>
  5092. </glossentry>
  5093. <glossentry id='var-HOST_OS'><glossterm>HOST_OS</glossterm>
  5094. <info>
  5095. HOST_OS[doc] = "The name of the target operating system. Normally the same as the TARGET_OS."
  5096. </info>
  5097. <glossdef>
  5098. <para role="glossdeffirst">
  5099. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5100. Specifies the name of the target operating system, which
  5101. is normally the same as the
  5102. <link linkend='var-TARGET_OS'><filename>TARGET_OS</filename></link>.
  5103. The variable can be set to "linux" for <filename>glibc</filename>-based systems and
  5104. to "linux-musl" for <filename>musl</filename>.
  5105. For ARM/EABI targets, there are also "linux-gnueabi" and
  5106. "linux-musleabi" values possible.
  5107. </para>
  5108. </glossdef>
  5109. </glossentry>
  5110. <glossentry id='var-HOST_PREFIX'><glossterm>HOST_PREFIX</glossterm>
  5111. <info>
  5112. HOST_PREFIX[doc] = "The prefix for the cross compile toolchain. Normally same as the TARGET_PREFIX."
  5113. </info>
  5114. <glossdef>
  5115. <para role="glossdeffirst">
  5116. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5117. Specifies the prefix for the cross-compile toolchain.
  5118. <filename>HOST_PREFIX</filename> is normally the same as
  5119. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>.
  5120. </para>
  5121. </glossdef>
  5122. </glossentry>
  5123. <glossentry id='var-HOST_SYS'><glossterm>HOST_SYS</glossterm>
  5124. <info>
  5125. 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."
  5126. </info>
  5127. <glossdef>
  5128. <para role="glossdeffirst">
  5129. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5130. Specifies the system, including the architecture and the
  5131. operating system, for which the build is occurring
  5132. in the context of the current recipe.
  5133. </para>
  5134. <para>
  5135. The OpenEmbedded build system automatically sets this
  5136. variable based on
  5137. <link linkend='var-HOST_ARCH'><filename>HOST_ARCH</filename></link>,
  5138. <link linkend='var-HOST_VENDOR'><filename>HOST_VENDOR</filename></link>,
  5139. and
  5140. <link linkend='var-HOST_OS'><filename>HOST_OS</filename></link>
  5141. variables.
  5142. <note>
  5143. You do not need to set the variable yourself.
  5144. </note>
  5145. </para>
  5146. <para>
  5147. Consider these two examples:
  5148. <itemizedlist>
  5149. <listitem><para>Given a native recipe on a 32-bit
  5150. x86 machine running Linux, the value is
  5151. "i686-linux".
  5152. </para></listitem>
  5153. <listitem><para>Given a recipe being built for a
  5154. little-endian MIPS target running Linux,
  5155. the value might be "mipsel-linux".
  5156. </para></listitem>
  5157. </itemizedlist>
  5158. </para>
  5159. </glossdef>
  5160. </glossentry>
  5161. <glossentry id='var-HOSTTOOLS'><glossterm>HOSTTOOLS</glossterm>
  5162. <info>
  5163. HOSTTOOLS[doc] = "A space-separated list (filter) of tools on the build host that should be allowed to be called from within build tasks."
  5164. </info>
  5165. <glossdef>
  5166. <para role="glossdeffirst">
  5167. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5168. A space-separated list (filter) of tools on the build host
  5169. that should be allowed to be called from within build tasks.
  5170. Using this filter helps reduce the possibility of host
  5171. contamination.
  5172. If a tool specified in the value of
  5173. <filename>HOSTTOOLS</filename> is not found on the
  5174. build host, the OpenEmbedded build system produces
  5175. an error and the build is not started.
  5176. </para>
  5177. <para>
  5178. For additional information, see
  5179. <link linkend='var-HOSTTOOLS_NONFATAL'><filename>HOSTTOOLS_NONFATAL</filename></link>.
  5180. </para>
  5181. </glossdef>
  5182. </glossentry>
  5183. <glossentry id='var-HOSTTOOLS_NONFATAL'><glossterm>HOSTTOOLS_NONFATAL</glossterm>
  5184. <info>
  5185. 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."
  5186. </info>
  5187. <glossdef>
  5188. <para role="glossdeffirst">
  5189. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5190. A space-separated list (filter) of tools on the build host
  5191. that should be allowed to be called from within build tasks.
  5192. Using this filter helps reduce the possibility of host
  5193. contamination.
  5194. Unlike
  5195. <link linkend='var-HOSTTOOLS'><filename>HOSTTOOLS</filename></link>,
  5196. the OpenEmbedded build system does not produce an error
  5197. if a tool specified in the value of
  5198. <filename>HOSTTOOLS_NONFATAL</filename> is not found on the
  5199. build host.
  5200. Thus, you can use <filename>HOSTTOOLS_NONFATAL</filename>
  5201. to filter optional host tools.
  5202. </para>
  5203. </glossdef>
  5204. </glossentry>
  5205. <glossentry id='var-HOST_VENDOR'><glossterm>HOST_VENDOR</glossterm>
  5206. <info>
  5207. HOST_VENDOR[doc] = "The name of the vendor. Normally same as the TARGET_VENDOR."
  5208. </info>
  5209. <glossdef>
  5210. <para role="glossdeffirst">
  5211. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5212. Specifies the name of the vendor.
  5213. <filename>HOST_VENDOR</filename> is normally the same as
  5214. <link linkend='var-TARGET_VENDOR'><filename>TARGET_VENDOR</filename></link>.
  5215. </para>
  5216. </glossdef>
  5217. </glossentry>
  5218. </glossdiv>
  5219. <glossdiv id='var-glossary-i'><title>I</title>
  5220. <glossentry id='var-ICECC_DISABLED'><glossterm>ICECC_DISABLED</glossterm>
  5221. <info>
  5222. ICECC_DISABLED[doc] = "Disables or enables the icecc (Icecream) function."
  5223. </info>
  5224. <glossdef>
  5225. <para role="glossdeffirst">
  5226. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5227. Disables or enables the <filename>icecc</filename>
  5228. (Icecream) function.
  5229. For more information on this function and best practices
  5230. for using this variable, see the
  5231. "<link linkend='ref-classes-icecc'><filename>icecc.bbclass</filename></link>"
  5232. section.
  5233. </para>
  5234. <para>
  5235. Setting this variable to "1" in your
  5236. <filename>local.conf</filename> disables the function:
  5237. <literallayout class='monospaced'>
  5238. ICECC_DISABLED ??= "1"
  5239. </literallayout>
  5240. To enable the function, set the variable as follows:
  5241. <literallayout class='monospaced'>
  5242. ICECC_DISABLED = ""
  5243. </literallayout>
  5244. </para>
  5245. </glossdef>
  5246. </glossentry>
  5247. <glossentry id='var-ICECC_ENV_EXEC'><glossterm>ICECC_ENV_EXEC</glossterm>
  5248. <info>
  5249. ICECC_ENV_EXEC[doc] = "Points to the icecc-create-env script that you provide."
  5250. </info>
  5251. <glossdef>
  5252. <para role="glossdeffirst">
  5253. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5254. Points to the <filename>icecc-create-env</filename> script
  5255. that you provide.
  5256. This variable is used by the
  5257. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5258. class.
  5259. You set this variable in your
  5260. <filename>local.conf</filename> file.
  5261. </para>
  5262. <para>
  5263. If you do not point to a script that you provide, the
  5264. OpenEmbedded build system uses the default script provided
  5265. by the <filename>icecc-create-env.bb</filename> recipe,
  5266. which is a modified version and not the one that comes with
  5267. <filename>icecc</filename>.
  5268. </para>
  5269. </glossdef>
  5270. </glossentry>
  5271. <glossentry id='var-ICECC_PARALLEL_MAKE'><glossterm>ICECC_PARALLEL_MAKE</glossterm>
  5272. <info>
  5273. ICECC_PARALLEL_MAKE[doc] = "Extra options passed to the make command during the do_compile task that specify parallel compilation."
  5274. </info>
  5275. <glossdef>
  5276. <para role="glossdeffirst">
  5277. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5278. Extra options passed to the <filename>make</filename>
  5279. command during the
  5280. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>
  5281. task that specify parallel compilation.
  5282. This variable usually takes the form of
  5283. "-j <replaceable>x</replaceable>", where
  5284. <replaceable>x</replaceable> represents the maximum
  5285. number of parallel threads <filename>make</filename> can
  5286. run.
  5287. <note>
  5288. The options passed affect builds on all enabled
  5289. machines on the network, which are machines running the
  5290. <filename>iceccd</filename> daemon.
  5291. </note>
  5292. </para>
  5293. <para>
  5294. If your enabled machines support multiple cores,
  5295. coming up with the maximum number of parallel threads
  5296. that gives you the best performance could take some
  5297. experimentation since machine speed, network lag,
  5298. available memory, and existing machine loads can all
  5299. affect build time.
  5300. Consequently, unlike the
  5301. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  5302. variable, there is no rule-of-thumb for setting
  5303. <filename>ICECC_PARALLEL_MAKE</filename> to achieve
  5304. optimal performance.
  5305. </para>
  5306. <para>
  5307. If you do not set <filename>ICECC_PARALLEL_MAKE</filename>,
  5308. the build system does not use it (i.e. the system does
  5309. not detect and assign the number of cores as is done with
  5310. <filename>PARALLEL_MAKE</filename>).
  5311. </para>
  5312. </glossdef>
  5313. </glossentry>
  5314. <glossentry id='var-ICECC_PATH'><glossterm>ICECC_PATH</glossterm>
  5315. <info>
  5316. ICECC_PATH[doc] = "The location of the icecc binary."
  5317. </info>
  5318. <glossdef>
  5319. <para role="glossdeffirst">
  5320. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5321. The location of the <filename>icecc</filename> binary.
  5322. You can set this variable in your
  5323. <filename>local.conf</filename> file.
  5324. If your <filename>local.conf</filename> file does not define
  5325. this variable, the
  5326. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5327. class attempts to define it by locating
  5328. <filename>icecc</filename> using <filename>which</filename>.
  5329. </para>
  5330. </glossdef>
  5331. </glossentry>
  5332. <glossentry id='var-ICECC_USER_CLASS_BL'><glossterm>ICECC_USER_CLASS_BL</glossterm>
  5333. <info>
  5334. ICECC_USER_CLASS_BL[doc] = "Identifies user classes that you do not want the Icecream distributed compile support to consider."
  5335. </info>
  5336. <glossdef>
  5337. <para role="glossdeffirst">
  5338. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5339. Identifies user classes that you do not want the
  5340. Icecream distributed compile support to consider.
  5341. This variable is used by the
  5342. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5343. class.
  5344. You set this variable in your
  5345. <filename>local.conf</filename> file.
  5346. </para>
  5347. <para>
  5348. When you list classes using this variable, you are
  5349. "blacklisting" them from distributed compilation across
  5350. remote hosts.
  5351. Any classes you list will be distributed and compiled
  5352. locally.
  5353. </para>
  5354. </glossdef>
  5355. </glossentry>
  5356. <glossentry id='var-ICECC_USER_PACKAGE_BL'><glossterm>ICECC_USER_PACKAGE_BL</glossterm>
  5357. <info>
  5358. ICECC_USER_PACKAGE_BL[doc] = "Identifies user recipes that you do not want the Icecream distributed compile support to consider."
  5359. </info>
  5360. <glossdef>
  5361. <para role="glossdeffirst">
  5362. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5363. Identifies user recipes that you do not want the
  5364. Icecream distributed compile support to consider.
  5365. This variable is used by the
  5366. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5367. class.
  5368. You set this variable in your
  5369. <filename>local.conf</filename> file.
  5370. </para>
  5371. <para>
  5372. When you list packages using this variable, you are
  5373. "blacklisting" them from distributed compilation across
  5374. remote hosts.
  5375. Any packages you list will be distributed and compiled
  5376. locally.
  5377. </para>
  5378. </glossdef>
  5379. </glossentry>
  5380. <glossentry id='var-ICECC_USER_PACKAGE_WL'><glossterm>ICECC_USER_PACKAGE_WL</glossterm>
  5381. <info>
  5382. 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."
  5383. </info>
  5384. <glossdef>
  5385. <para role="glossdeffirst">
  5386. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5387. Identifies user recipes that use an empty
  5388. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  5389. variable that you want to force remote distributed
  5390. compilation on using the Icecream distributed compile
  5391. support.
  5392. This variable is used by the
  5393. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5394. class.
  5395. You set this variable in your
  5396. <filename>local.conf</filename> file.
  5397. </para>
  5398. </glossdef>
  5399. </glossentry>
  5400. <glossentry id='var-IMAGE_BASENAME'><glossterm>IMAGE_BASENAME</glossterm>
  5401. <info>
  5402. IMAGE_BASENAME[doc] = "The base name of image output files."
  5403. </info>
  5404. <glossdef>
  5405. <para role="glossdeffirst">
  5406. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5407. The base name of image output files.
  5408. This variable defaults to the recipe name
  5409. (<filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  5410. </para>
  5411. </glossdef>
  5412. </glossentry>
  5413. <glossentry id='var-IMAGE_BOOT_FILES'><glossterm>IMAGE_BOOT_FILES</glossterm>
  5414. <info>
  5415. IMAGE_BOOT_FILES[doc] = "A space-separated list of files from ${DEPLOY_DIR_IMAGE} to place in boot partition."
  5416. </info>
  5417. <glossdef>
  5418. <para role="glossdeffirst">
  5419. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5420. A space-separated list of files installed into the
  5421. boot partition when preparing an image using the Wic tool
  5422. with the <filename>bootimg-partition</filename> source
  5423. plugin.
  5424. By default, the files are installed under the same name as
  5425. the source files.
  5426. To change the installed name, separate it from the
  5427. original name with a semi-colon (;).
  5428. Source files need to be located in
  5429. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>.
  5430. Here are two examples:
  5431. <literallayout class="monospaced">
  5432. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  5433. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  5434. </literallayout>
  5435. </para>
  5436. <para>
  5437. Alternatively, source files can be picked up using
  5438. a glob pattern.
  5439. In this case, the destination file must have the same name
  5440. as the base name of the source file path.
  5441. To install files into a directory within the
  5442. target location, pass its name after a semi-colon
  5443. (;).
  5444. Here are two examples:
  5445. <literallayout class="monospaced">
  5446. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  5447. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  5448. </literallayout>
  5449. The first example installs all files from
  5450. <filename>${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles</filename>
  5451. into the root of the target partition.
  5452. The second example installs the same files into a
  5453. <filename>boot</filename> directory within the
  5454. target partition.
  5455. </para>
  5456. <para>
  5457. You can find information on how to use the Wic tool in the
  5458. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-partitioned-images-using-wic'>Creating Partitioned Images Using Wic</ulink>"
  5459. section of the Yocto Project Development Tasks Manual.
  5460. Reference material for Wic is located in the
  5461. "<ulink url='&YOCTO_DOCS_REF_URL;#ref-kickstart'>OpenEmbedded Kickstart (.wks) Reference</ulink>"
  5462. chapter.
  5463. </para>
  5464. </glossdef>
  5465. </glossentry>
  5466. <glossentry id='var-IMAGE_CLASSES'><glossterm>IMAGE_CLASSES</glossterm>
  5467. <info>
  5468. IMAGE_CLASSES[doc] = "A list of classes that all images should inherit."
  5469. </info>
  5470. <glossdef>
  5471. <para role="glossdeffirst">
  5472. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5473. A list of classes that all images should inherit.
  5474. You typically use this variable to specify the list of
  5475. classes that register the different types of images
  5476. the OpenEmbedded build system creates.
  5477. </para>
  5478. <para>
  5479. The default value for <filename>IMAGE_CLASSES</filename> is
  5480. <filename>image_types</filename>.
  5481. You can set this variable in your
  5482. <filename>local.conf</filename> or in a distribution
  5483. configuration file.
  5484. </para>
  5485. <para>
  5486. For more information, see
  5487. <filename>meta/classes/image_types.bbclass</filename> in the
  5488. <link linkend='source-directory'>Source Directory</link>.
  5489. </para>
  5490. </glossdef>
  5491. </glossentry>
  5492. <glossentry id='var-IMAGE_CMD'><glossterm>IMAGE_CMD</glossterm>
  5493. <info>
  5494. 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)."
  5495. </info>
  5496. <glossdef>
  5497. <para role="glossdeffirst">
  5498. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5499. Specifies the command to create the image file for a
  5500. specific image type, which corresponds to the value set
  5501. set in
  5502. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>,
  5503. (e.g. <filename>ext3</filename>,
  5504. <filename>btrfs</filename>, and so forth).
  5505. When setting this variable, you should use
  5506. an override for the associated type.
  5507. Here is an example:
  5508. <literallayout class='monospaced'>
  5509. IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} \
  5510. --faketime --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
  5511. ${EXTRA_IMAGECMD}"
  5512. </literallayout>
  5513. </para>
  5514. <para>
  5515. You typically do not need to set this variable unless
  5516. you are adding support for a new image type.
  5517. For more examples on how to set this variable, see the
  5518. <link linkend='ref-classes-image_types'><filename>image_types</filename></link>
  5519. class file, which is
  5520. <filename>meta/classes/image_types.bbclass</filename>.
  5521. </para>
  5522. </glossdef>
  5523. </glossentry>
  5524. <glossentry id='var-IMAGE_DEVICE_TABLES'><glossterm>IMAGE_DEVICE_TABLES</glossterm>
  5525. <info>
  5526. 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."
  5527. </info>
  5528. <glossdef>
  5529. <para role="glossdeffirst">
  5530. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5531. Specifies one or more files that contain custom device
  5532. tables that are passed to the
  5533. <filename>makedevs</filename> command as part of creating
  5534. an image.
  5535. These files list basic device nodes that should be
  5536. created under <filename>/dev</filename> within the image.
  5537. If <filename>IMAGE_DEVICE_TABLES</filename> is not set,
  5538. <filename>files/device_table-minimal.txt</filename> is
  5539. used, which is located by
  5540. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>.
  5541. For details on how you should write device table files,
  5542. see <filename>meta/files/device_table-minimal.txt</filename>
  5543. as an example.
  5544. </para>
  5545. </glossdef>
  5546. </glossentry>
  5547. <glossentry id='var-IMAGE_FEATURES'><glossterm>IMAGE_FEATURES</glossterm>
  5548. <info>
  5549. IMAGE_FEATURES[doc] = "The primary list of features to include in an image. Configure this variable in an image recipe."
  5550. </info>
  5551. <glossdef>
  5552. <para role="glossdeffirst">
  5553. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5554. The primary list of features to include in an image.
  5555. Typically, you configure this variable in an image recipe.
  5556. Although you can use this variable from your
  5557. <filename>local.conf</filename> file, which is found in the
  5558. <link linkend='build-directory'>Build Directory</link>,
  5559. best practices dictate that you do not.
  5560. <note>
  5561. To enable extra features from outside the image recipe,
  5562. use the
  5563. <filename><link linkend='var-EXTRA_IMAGE_FEATURES'>EXTRA_IMAGE_FEATURES</link></filename> variable.
  5564. </note>
  5565. </para>
  5566. <para>
  5567. For a list of image features that ships with the Yocto
  5568. Project, see the
  5569. "<link linkend="ref-features-image">Image Features</link>"
  5570. section.
  5571. </para>
  5572. <para>
  5573. For an example that shows how to customize your image by
  5574. using this variable, see the
  5575. "<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>"
  5576. section in the Yocto Project Development Tasks Manual.
  5577. </para>
  5578. </glossdef>
  5579. </glossentry>
  5580. <glossentry id='var-IMAGE_FSTYPES'><glossterm>IMAGE_FSTYPES</glossterm>
  5581. <info>
  5582. IMAGE_FSTYPES[doc] = "Formats of root filesystem images that you want to have created."
  5583. </info>
  5584. <glossdef>
  5585. <para role="glossdeffirst">
  5586. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5587. Specifies the formats the OpenEmbedded build system uses
  5588. during the build when creating the root filesystem.
  5589. For example, setting <filename>IMAGE_FSTYPES</filename>
  5590. as follows causes the build system to create root
  5591. filesystems using two formats: <filename>.ext3</filename>
  5592. and <filename>.tar.bz2</filename>:
  5593. <literallayout class='monospaced'>
  5594. IMAGE_FSTYPES = "ext3 tar.bz2"
  5595. </literallayout>
  5596. </para>
  5597. <para>
  5598. For the complete list of supported image formats from which
  5599. you can choose, see
  5600. <link linkend='var-IMAGE_TYPES'><filename>IMAGE_TYPES</filename></link>.
  5601. </para>
  5602. <note><title>Notes</title>
  5603. <itemizedlist>
  5604. <listitem><para>
  5605. If you add "live" to
  5606. <filename>IMAGE_FSTYPES</filename> inside an image
  5607. recipe, be sure that you do so prior to the
  5608. "inherit image" line of the recipe or the live
  5609. image will not build.
  5610. </para></listitem>
  5611. <listitem><para>
  5612. Due to the way the OpenEmbedded build system
  5613. processes this variable, you cannot update its
  5614. contents by using <filename>_append</filename> or
  5615. <filename>_prepend</filename>.
  5616. You must use the <filename>+=</filename>
  5617. operator to add one or more options to the
  5618. <filename>IMAGE_FSTYPES</filename> variable.
  5619. </para></listitem>
  5620. </itemizedlist>
  5621. </note>
  5622. </glossdef>
  5623. </glossentry>
  5624. <glossentry id='var-IMAGE_INSTALL'><glossterm>IMAGE_INSTALL</glossterm>
  5625. <info>
  5626. IMAGE_INSTALL[doc] = "Used by recipes to specify the packages to install into an image through image.bbclass."
  5627. </info>
  5628. <glossdef>
  5629. <para role="glossdeffirst">
  5630. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5631. Used by recipes to specify the packages to install into an
  5632. image through the
  5633. <link linkend='ref-classes-image'><filename>image</filename></link>
  5634. class.
  5635. Use the <filename>IMAGE_INSTALL</filename> variable with
  5636. care to avoid ordering issues.
  5637. </para>
  5638. <para>
  5639. Image recipes set <filename>IMAGE_INSTALL</filename>
  5640. to specify the packages to install into an image through
  5641. <filename>image.bbclass</filename>.
  5642. Additionally, "helper" classes such as the
  5643. <link linkend='ref-classes-core-image'><filename>core-image</filename></link>
  5644. class exist that can take lists used with
  5645. <filename><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></filename>
  5646. and turn them into auto-generated entries in
  5647. <filename>IMAGE_INSTALL</filename> in addition to its
  5648. default contents.
  5649. </para>
  5650. <para>
  5651. When you use this variable, it is best to use it as follows:
  5652. <literallayout class='monospaced'>
  5653. IMAGE_INSTALL_append = " <replaceable>package-name</replaceable>"
  5654. </literallayout>
  5655. Be sure to include the space between the quotation character
  5656. and the start of the package name or names.
  5657. <note><title>Caution</title>
  5658. <itemizedlist>
  5659. <listitem><para>
  5660. When working with a
  5661. <link linkend='images-core-image-minimal-initramfs'><filename>core-image-minimal-initramfs</filename></link>
  5662. image, do not use the
  5663. <filename>IMAGE_INSTALL</filename> variable to
  5664. specify packages for installation.
  5665. Instead, use the
  5666. <link linkend='var-PACKAGE_INSTALL'><filename>PACKAGE_INSTALL</filename></link>
  5667. variable, which allows the initial RAM
  5668. filesystem (initramfs) recipe to use a fixed
  5669. set of packages and not be affected by
  5670. <filename>IMAGE_INSTALL</filename>.
  5671. For information on creating an initramfs, see
  5672. the
  5673. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  5674. section in the Yocto Project Development Tasks
  5675. Manual.
  5676. </para></listitem>
  5677. <listitem><para>
  5678. Using <filename>IMAGE_INSTALL</filename> with
  5679. the
  5680. <ulink url='&YOCTO_DOCS_BB_URL;#appending-and-prepending'><filename>+=</filename></ulink>
  5681. BitBake operator within the
  5682. <filename>/conf/local.conf</filename> file or
  5683. from within an image recipe is not recommended.
  5684. Use of this operator in these ways can cause
  5685. ordering issues.
  5686. Since <filename>core-image.bbclass</filename>
  5687. sets <filename>IMAGE_INSTALL</filename> to a
  5688. default value using the
  5689. <ulink url='&YOCTO_DOCS_BB_URL;#setting-a-default-value'><filename>?=</filename></ulink>
  5690. operator, using a <filename>+=</filename>
  5691. operation against
  5692. <filename>IMAGE_INSTALL</filename> results in
  5693. unexpected behavior when used within
  5694. <filename>conf/local.conf</filename>.
  5695. Furthermore, the same operation from within
  5696. an image recipe may or may not succeed
  5697. depending on the specific situation.
  5698. In both these cases, the behavior is contrary
  5699. to how most users expect the
  5700. <filename>+=</filename> operator to work.
  5701. </para></listitem>
  5702. </itemizedlist>
  5703. </note>
  5704. </para>
  5705. </glossdef>
  5706. </glossentry>
  5707. <glossentry id='var-IMAGE_LINGUAS'><glossterm>IMAGE_LINGUAS</glossterm>
  5708. <info>
  5709. IMAGE_LINGUAS[doc] = "Specifies the list of locales to install into the image during the root filesystem construction process."
  5710. </info>
  5711. <glossdef>
  5712. <para role="glossdeffirst">
  5713. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5714. Specifies the list of locales to install into the image
  5715. during the root filesystem construction process.
  5716. The OpenEmbedded build system automatically splits locale
  5717. files, which are used for localization, into separate
  5718. packages.
  5719. Setting the <filename>IMAGE_LINGUAS</filename> variable
  5720. ensures that any locale packages that correspond to packages
  5721. already selected for installation into the image are also
  5722. installed.
  5723. Here is an example:
  5724. <literallayout class='monospaced'>
  5725. IMAGE_LINGUAS = "pt-br de-de"
  5726. </literallayout>
  5727. </para>
  5728. <para>
  5729. In this example, the build system ensures any Brazilian
  5730. Portuguese and German locale files that correspond to
  5731. packages in the image are installed (i.e.
  5732. <filename>*-locale-pt-br</filename>
  5733. and <filename>*-locale-de-de</filename> as well as
  5734. <filename>*-locale-pt</filename>
  5735. and <filename>*-locale-de</filename>, since some software
  5736. packages only provide locale files by language and not by
  5737. country-specific language).
  5738. </para>
  5739. <para>
  5740. See the
  5741. <link linkend='var-GLIBC_GENERATE_LOCALES'><filename>GLIBC_GENERATE_LOCALES</filename></link>
  5742. variable for information on generating GLIBC locales.
  5743. </para>
  5744. </glossdef>
  5745. </glossentry>
  5746. <glossentry id='var-IMAGE_MANIFEST'><glossterm>IMAGE_MANIFEST</glossterm>
  5747. <info>
  5748. IMAGE_MANIFEST[doc] = "The manifest file for the image. This file lists all the installed packages that make up the image."
  5749. </info>
  5750. <glossdef>
  5751. <para role="glossdeffirst">
  5752. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5753. The manifest file for the image.
  5754. This file lists all the installed packages that make up
  5755. the image.
  5756. The file contains package information on a line-per-package
  5757. basis as follows:
  5758. <literallayout class='monospaced'>
  5759. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  5760. </literallayout>
  5761. </para>
  5762. <para>
  5763. The
  5764. <link linkend='ref-classes-image'><filename>image</filename></link>
  5765. class defines the manifest file as follows:
  5766. <literallayout class='monospaced'>
  5767. IMAGE_MANIFEST = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest"
  5768. </literallayout>
  5769. The location is derived using the
  5770. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>
  5771. and
  5772. <link linkend='var-IMAGE_NAME'><filename>IMAGE_NAME</filename></link>
  5773. variables.
  5774. You can find information on how the image
  5775. is created in the
  5776. "<ulink url='&YOCTO_DOCS_OM_URL;#image-generation-dev-environment'>Image Generation</ulink>"
  5777. section in the Yocto Project Overview and Concepts Manual.
  5778. </para>
  5779. </glossdef>
  5780. </glossentry>
  5781. <glossentry id='var-IMAGE_NAME'><glossterm>IMAGE_NAME</glossterm>
  5782. <info>
  5783. IMAGE_NAME[doc] = "The name of the output image files minus the extension."
  5784. </info>
  5785. <glossdef>
  5786. <para role="glossdeffirst">
  5787. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5788. The name of the output image files minus the extension.
  5789. This variable is derived using the
  5790. <link linkend='var-IMAGE_BASENAME'><filename>IMAGE_BASENAME</filename></link>,
  5791. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>,
  5792. and
  5793. <link linkend='var-DATETIME'><filename>DATETIME</filename></link>
  5794. variables:
  5795. <literallayout class='monospaced'>
  5796. IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}"
  5797. </literallayout>
  5798. </para>
  5799. </glossdef>
  5800. </glossentry>
  5801. <glossentry id='var-IMAGE_OVERHEAD_FACTOR'><glossterm>IMAGE_OVERHEAD_FACTOR</glossterm>
  5802. <info>
  5803. 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."
  5804. </info>
  5805. <glossdef>
  5806. <para role="glossdeffirst">
  5807. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5808. Defines a multiplier that the build system applies to the initial image
  5809. size for cases when the multiplier times the returned disk usage value
  5810. for the image is greater than the sum of
  5811. <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>
  5812. and
  5813. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>.
  5814. The result of the multiplier applied to the initial image size creates
  5815. free disk space in the image as overhead.
  5816. By default, the build process uses a multiplier of 1.3 for this variable.
  5817. This default value results in 30% free disk space added to the image when this
  5818. method is used to determine the final generated image size.
  5819. You should be aware that post install scripts and the package management
  5820. system uses disk space inside this overhead area.
  5821. Consequently, the multiplier does not produce an image with
  5822. all the theoretical free disk space.
  5823. See <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>
  5824. for information on how the build system determines the overall image size.
  5825. </para>
  5826. <para>
  5827. The default 30% free disk space typically gives the image enough room to boot
  5828. and allows for basic post installs while still leaving a small amount of
  5829. free disk space.
  5830. If 30% free space is inadequate, you can increase the default value.
  5831. For example, the following setting gives you 50% free space added to the image:
  5832. <literallayout class='monospaced'>
  5833. IMAGE_OVERHEAD_FACTOR = "1.5"
  5834. </literallayout>
  5835. </para>
  5836. <para>
  5837. Alternatively, you can ensure a specific amount of free disk space is added
  5838. to the image by using the
  5839. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>
  5840. variable.
  5841. </para>
  5842. </glossdef>
  5843. </glossentry>
  5844. <glossentry id='var-IMAGE_PKGTYPE'><glossterm>IMAGE_PKGTYPE</glossterm>
  5845. <info>
  5846. IMAGE_PKGTYPE[doc] = "Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the OpenEmbedded build system."
  5847. </info>
  5848. <glossdef>
  5849. <para role="glossdeffirst">
  5850. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5851. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used
  5852. by the OpenEmbedded build system.
  5853. The variable is defined appropriately by the
  5854. <link linkend='ref-classes-package_deb'><filename>package_deb</filename></link>,
  5855. <link linkend='ref-classes-package_rpm'><filename>package_rpm</filename></link>,
  5856. <link linkend='ref-classes-package_ipk'><filename>package_ipk</filename></link>,
  5857. or
  5858. <link linkend='ref-classes-package_tar'><filename>package_tar</filename></link>
  5859. class.
  5860. <note><title>Warning</title>
  5861. The <filename>package_tar</filename> class is broken
  5862. and is not supported.
  5863. It is recommended that you do not use it.
  5864. </note>
  5865. </para>
  5866. <para>
  5867. The
  5868. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_*</filename></link>
  5869. and
  5870. <link linkend='ref-classes-image'><filename>image</filename></link>
  5871. classes use the <filename>IMAGE_PKGTYPE</filename> for
  5872. packaging up images and SDKs.
  5873. </para>
  5874. <para>
  5875. You should not set the <filename>IMAGE_PKGTYPE</filename>
  5876. manually.
  5877. Rather, the variable is set indirectly through the
  5878. appropriate
  5879. <link linkend='ref-classes-package'><filename>package_*</filename></link>
  5880. class using the
  5881. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  5882. variable.
  5883. The OpenEmbedded build system uses the first package type
  5884. (e.g. DEB, RPM, or IPK) that appears with the variable
  5885. <note>
  5886. Files using the <filename>.tar</filename> format are
  5887. never used as a substitute packaging format for DEB,
  5888. RPM, and IPK formatted files for your image or SDK.
  5889. </note>
  5890. </para>
  5891. </glossdef>
  5892. </glossentry>
  5893. <glossentry id='var-IMAGE_POSTPROCESS_COMMAND'><glossterm>IMAGE_POSTPROCESS_COMMAND</glossterm>
  5894. <info>
  5895. IMAGE_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system creates the final image output files."
  5896. </info>
  5897. <glossdef>
  5898. <para role="glossdeffirst">
  5899. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5900. Specifies a list of functions to call once the
  5901. OpenEmbedded build system creates the final image
  5902. output files.
  5903. You can specify functions separated by semicolons:
  5904. <literallayout class='monospaced'>
  5905. IMAGE_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  5906. </literallayout>
  5907. </para>
  5908. <para>
  5909. If you need to pass the root filesystem path to a command
  5910. within the function, you can use
  5911. <filename>${IMAGE_ROOTFS}</filename>, which points to
  5912. the directory that becomes the root filesystem image.
  5913. See the
  5914. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  5915. variable for more information.
  5916. </para>
  5917. </glossdef>
  5918. </glossentry>
  5919. <glossentry id='var-IMAGE_PREPROCESS_COMMAND'><glossterm>IMAGE_PREPROCESS_COMMAND</glossterm>
  5920. <info>
  5921. IMAGE_PREPROCESS_COMMAND[doc] = "Specifies a list of functions to call before the OpenEmbedded build system creates the final image output files."
  5922. </info>
  5923. <glossdef>
  5924. <para role="glossdeffirst">
  5925. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5926. Specifies a list of functions to call before the
  5927. OpenEmbedded build system creates the final image
  5928. output files.
  5929. You can specify functions separated by semicolons:
  5930. <literallayout class='monospaced'>
  5931. IMAGE_PREPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  5932. </literallayout>
  5933. </para>
  5934. <para>
  5935. If you need to pass the root filesystem path to a command
  5936. within the function, you can use
  5937. <filename>${IMAGE_ROOTFS}</filename>, which points to
  5938. the directory that becomes the root filesystem image.
  5939. See the
  5940. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  5941. variable for more information.
  5942. </para>
  5943. </glossdef>
  5944. </glossentry>
  5945. <glossentry id='var-IMAGE_ROOTFS'><glossterm>IMAGE_ROOTFS</glossterm>
  5946. <info>
  5947. IMAGE_ROOTFS[doc] = "The location of the root filesystem while it is under construction (i.e. during do_rootfs)."
  5948. </info>
  5949. <glossdef>
  5950. <para role="glossdeffirst">
  5951. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5952. The location of the root filesystem while it is under
  5953. construction (i.e. during the
  5954. <link linkend='ref-tasks-rootfs'><filename>do_rootfs</filename></link>
  5955. task).
  5956. This variable is not configurable.
  5957. Do not change it.
  5958. </para>
  5959. </glossdef>
  5960. </glossentry>
  5961. <glossentry id='var-IMAGE_ROOTFS_ALIGNMENT'><glossterm>IMAGE_ROOTFS_ALIGNMENT</glossterm>
  5962. <info>
  5963. IMAGE_ROOTFS_ALIGNMENT[doc] = "Specifies the alignment for the output image file in Kbytes."
  5964. </info>
  5965. <glossdef>
  5966. <para role="glossdeffirst">
  5967. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5968. Specifies the alignment for the output image file in
  5969. Kbytes.
  5970. If the size of the image is not a multiple of
  5971. this value, then the size is rounded up to the nearest
  5972. multiple of the value.
  5973. The default value is "1".
  5974. See
  5975. <link linkend='var-IMAGE_ROOTFS_SIZE'><filename>IMAGE_ROOTFS_SIZE</filename></link>
  5976. for additional information.
  5977. </para>
  5978. </glossdef>
  5979. </glossentry>
  5980. <glossentry id='var-IMAGE_ROOTFS_EXTRA_SPACE'><glossterm>IMAGE_ROOTFS_EXTRA_SPACE</glossterm>
  5981. <info>
  5982. IMAGE_ROOTFS_EXTRA_SPACE[doc] = "Defines additional free disk space created in the image in Kbytes. By default, this variable is set to '0'."
  5983. </info>
  5984. <glossdef>
  5985. <para role="glossdeffirst">
  5986. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5987. Defines additional free disk space created in the image in Kbytes.
  5988. By default, this variable is set to "0".
  5989. This free disk space is added to the image after the build system determines
  5990. the image size as described in
  5991. <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>.
  5992. </para>
  5993. <para>
  5994. This variable is particularly useful when you want to ensure that a
  5995. specific amount of free disk space is available on a device after an image
  5996. is installed and running.
  5997. For example, to be sure 5 Gbytes of free disk space is available, set the
  5998. variable as follows:
  5999. <literallayout class='monospaced'>
  6000. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  6001. </literallayout>
  6002. </para>
  6003. <para>
  6004. For example, the Yocto Project Build Appliance specifically requests 40 Gbytes
  6005. of extra space with the line:
  6006. <literallayout class='monospaced'>
  6007. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  6008. </literallayout>
  6009. </para>
  6010. </glossdef>
  6011. </glossentry>
  6012. <glossentry id='var-IMAGE_ROOTFS_SIZE'><glossterm>IMAGE_ROOTFS_SIZE</glossterm>
  6013. <info>
  6014. IMAGE_ROOTFS_SIZE[doc] = "Defines the size in Kbytes for the generated image."
  6015. </info>
  6016. <glossdef>
  6017. <para role="glossdeffirst">
  6018. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6019. Defines the size in Kbytes for the generated image.
  6020. The OpenEmbedded build system determines the final size for the generated
  6021. image using an algorithm that takes into account the initial disk space used
  6022. for the generated image, a requested size for the image, and requested
  6023. additional free disk space to be added to the image.
  6024. Programatically, the build system determines the final size of the
  6025. generated image as follows:
  6026. <literallayout class='monospaced'>
  6027. if (image-du * overhead) &lt; rootfs-size:
  6028. internal-rootfs-size = rootfs-size + xspace
  6029. else:
  6030. internal-rootfs-size = (image-du * overhead) + xspace
  6031. where:
  6032. image-du = Returned value of the du command on
  6033. the image.
  6034. overhead = IMAGE_OVERHEAD_FACTOR
  6035. rootfs-size = IMAGE_ROOTFS_SIZE
  6036. internal-rootfs-size = Initial root filesystem
  6037. size before any modifications.
  6038. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  6039. </literallayout>
  6040. </para>
  6041. <para>
  6042. See the <link linkend='var-IMAGE_OVERHEAD_FACTOR'><filename>IMAGE_OVERHEAD_FACTOR</filename></link>
  6043. and <link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'><filename>IMAGE_ROOTFS_EXTRA_SPACE</filename></link>
  6044. variables for related information.
  6045. <!-- In the above example, <filename>overhead</filename> is defined by the
  6046. <filename><link linkend='var-IMAGE_OVERHEAD_FACTOR'>IMAGE_OVERHEAD_FACTOR</link></filename>
  6047. variable, <filename>xspace</filename> is defined by the
  6048. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>
  6049. variable, and <filename>du</filename> is the results of the disk usage command
  6050. on the initially generated image. -->
  6051. </para>
  6052. </glossdef>
  6053. </glossentry>
  6054. <glossentry id='var-IMAGE_TYPEDEP'><glossterm>IMAGE_TYPEDEP</glossterm>
  6055. <info>
  6056. IMAGE_TYPEDEP[doc] = "Specifies a dependency from one image type on another."
  6057. </info>
  6058. <glossdef>
  6059. <para role="glossdeffirst">
  6060. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6061. Specifies a dependency from one image type on another.
  6062. Here is an example from the
  6063. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  6064. class:
  6065. <literallayout class='monospaced'>
  6066. IMAGE_TYPEDEP_live = "ext3"
  6067. </literallayout>
  6068. </para>
  6069. <para>
  6070. In the previous example, the variable ensures that when
  6071. "live" is listed with the
  6072. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  6073. variable, the OpenEmbedded build system produces an
  6074. <filename>ext3</filename> image first since one of the
  6075. components of the live
  6076. image is an <filename>ext3</filename>
  6077. formatted partition containing the root
  6078. filesystem.
  6079. </para>
  6080. </glossdef>
  6081. </glossentry>
  6082. <glossentry id='var-IMAGE_TYPES'><glossterm>IMAGE_TYPES</glossterm>
  6083. <info>
  6084. IMAGE_TYPES[doc] = "Specifies the complete list of supported image types by default."
  6085. </info>
  6086. <glossdef>
  6087. <para role="glossdeffirst">
  6088. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6089. Specifies the complete list of supported image types
  6090. by default:
  6091. <literallayout class='monospaced'>
  6092. btrfs
  6093. cpio
  6094. cpio.gz
  6095. cpio.lz4
  6096. cpio.lzma
  6097. cpio.xz
  6098. cramfs
  6099. elf
  6100. ext2
  6101. ext2.bz2
  6102. ext2.gz
  6103. ext2.lzma
  6104. ext3
  6105. ext3.gz
  6106. ext4
  6107. ext4.gz
  6108. hdddirect
  6109. hddimg
  6110. iso
  6111. jffs2
  6112. jffs2.sum
  6113. multiubi
  6114. squashfs
  6115. squashfs-lzo
  6116. squashfs-xz
  6117. tar
  6118. tar.bz2
  6119. tar.gz
  6120. tar.lz4
  6121. tar.xz
  6122. ubi
  6123. ubifs
  6124. wic
  6125. wic.bz2
  6126. wic.gz
  6127. wic.lzma
  6128. </literallayout>
  6129. </para>
  6130. <para>
  6131. For more information about these types of images, see
  6132. <filename>meta/classes/image_types*.bbclass</filename>
  6133. in the
  6134. <link linkend='source-directory'>Source Directory</link>.
  6135. </para>
  6136. </glossdef>
  6137. </glossentry>
  6138. <glossentry id='var-INC_PR'><glossterm>INC_PR</glossterm>
  6139. <info>
  6140. INC_PR[doc] = "Helps define the recipe revision for recipes that share a common include file."
  6141. </info>
  6142. <glossdef>
  6143. <para role="glossdeffirst">
  6144. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6145. Helps define the recipe revision for recipes that share
  6146. a common <filename>include</filename> file.
  6147. You can think of this variable as part of the recipe revision
  6148. as set from within an include file.
  6149. </para>
  6150. <para>
  6151. Suppose, for example, you have a set of recipes that
  6152. are used across several projects.
  6153. And, within each of those recipes the revision
  6154. (its <link linkend='var-PR'><filename>PR</filename></link>
  6155. value) is set accordingly.
  6156. In this case, when the revision of those recipes changes,
  6157. the burden is on you to find all those recipes and
  6158. be sure that they get changed to reflect the updated
  6159. version of the recipe.
  6160. In this scenario, it can get complicated when recipes
  6161. that are used in many places and provide common functionality
  6162. are upgraded to a new revision.
  6163. </para>
  6164. <para>
  6165. A more efficient way of dealing with this situation is
  6166. to set the <filename>INC_PR</filename> variable inside
  6167. the <filename>include</filename> files that the recipes
  6168. share and then expand the <filename>INC_PR</filename>
  6169. variable within the recipes to help
  6170. define the recipe revision.
  6171. </para>
  6172. <para>
  6173. The following provides an example that shows how to use
  6174. the <filename>INC_PR</filename> variable
  6175. given a common <filename>include</filename> file that
  6176. defines the variable.
  6177. Once the variable is defined in the
  6178. <filename>include</filename> file, you can use the
  6179. variable to set the <filename>PR</filename> values in
  6180. each recipe.
  6181. You will notice that when you set a recipe's
  6182. <filename>PR</filename> you can provide more granular
  6183. revisioning by appending values to the
  6184. <filename>INC_PR</filename> variable:
  6185. <literallayout class='monospaced'>
  6186. recipes-graphics/xorg-font/xorg-font-common.inc:INC_PR = "r2"
  6187. recipes-graphics/xorg-font/encodings_1.0.4.bb:PR = "${INC_PR}.1"
  6188. recipes-graphics/xorg-font/font-util_1.3.0.bb:PR = "${INC_PR}.0"
  6189. recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
  6190. </literallayout>
  6191. The first line of the example establishes the baseline
  6192. revision to be used for all recipes that use the
  6193. <filename>include</filename> file.
  6194. The remaining lines in the example are from individual
  6195. recipes and show how the <filename>PR</filename> value
  6196. is set.
  6197. </para>
  6198. </glossdef>
  6199. </glossentry>
  6200. <glossentry id='var-INCOMPATIBLE_LICENSE'><glossterm>INCOMPATIBLE_LICENSE</glossterm>
  6201. <info>
  6202. INCOMPATIBLE_LICENSE[doc] = "Specifies a space-separated list of license names (as they would appear in LICENSE) that should be excluded from the build."
  6203. </info>
  6204. <glossdef>
  6205. <para role="glossdeffirst">
  6206. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6207. Specifies a space-separated list of license names
  6208. (as they would appear in
  6209. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>)
  6210. that should be excluded from the build.
  6211. Recipes that provide no alternatives to listed incompatible
  6212. licenses are not built.
  6213. Packages that are individually licensed with the specified
  6214. incompatible licenses will be deleted.
  6215. </para>
  6216. <note>
  6217. This functionality is only regularly tested using
  6218. the following setting:
  6219. <literallayout class='monospaced'>
  6220. INCOMPATIBLE_LICENSE = "GPL-3.0 LGPL-3.0 AGPL-3.0"
  6221. </literallayout>
  6222. Although you can use other settings, you might be required
  6223. to remove dependencies on or provide alternatives to
  6224. components that are required to produce a functional system
  6225. image.
  6226. </note>
  6227. </glossdef>
  6228. </glossentry>
  6229. <glossentry id='var-INHERIT'><glossterm>INHERIT</glossterm>
  6230. <info>
  6231. INHERIT[doc] = "Causes the named class or classes to be inherited globally."
  6232. </info>
  6233. <glossdef>
  6234. <para role="glossdeffirst">
  6235. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6236. Causes the named class or classes to be inherited globally.
  6237. Anonymous functions in the class or classes
  6238. are not executed for the
  6239. base configuration and in each individual recipe.
  6240. The OpenEmbedded build system ignores changes to
  6241. <filename>INHERIT</filename> in individual recipes.
  6242. </para>
  6243. <para>
  6244. For more information on <filename>INHERIT</filename>, see
  6245. the
  6246. "<ulink url="&YOCTO_DOCS_BB_URL;#inherit-configuration-directive"><filename>INHERIT</filename> Configuration Directive</ulink>"
  6247. section in the Bitbake User Manual.
  6248. </para>
  6249. </glossdef>
  6250. </glossentry>
  6251. <glossentry id='var-INHERIT_DISTRO'><glossterm>INHERIT_DISTRO</glossterm>
  6252. <info>
  6253. INHERIT_DISTRO[doc] = "Lists classes that will be inherited at the distribution level. It is unlikely that you want to edit this variable."
  6254. </info>
  6255. <glossdef>
  6256. <para role="glossdeffirst">
  6257. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6258. Lists classes that will be inherited at the
  6259. distribution level.
  6260. It is unlikely that you want to edit this variable.
  6261. </para>
  6262. <para>
  6263. The default value of the variable is set as follows in the
  6264. <filename>meta/conf/distro/defaultsetup.conf</filename>
  6265. file:
  6266. <literallayout class='monospaced'>
  6267. INHERIT_DISTRO ?= "debian devshell sstate license"
  6268. </literallayout>
  6269. </para>
  6270. </glossdef>
  6271. </glossentry>
  6272. <glossentry id='var-INHIBIT_DEFAULT_DEPS'><glossterm>INHIBIT_DEFAULT_DEPS</glossterm>
  6273. <info>
  6274. INHIBIT_DEFAULT_DEPS[doc] = "Prevents the default dependencies, namely the C compiler and standard C library (libc), from being added to DEPENDS."
  6275. </info>
  6276. <glossdef>
  6277. <para role="glossdeffirst">
  6278. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6279. Prevents the default dependencies, namely the C compiler
  6280. and standard C library (libc), from being added to
  6281. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>.
  6282. This variable is usually used within recipes that do not
  6283. require any compilation using the C compiler.
  6284. </para>
  6285. <para>
  6286. Set the variable to "1" to prevent the default dependencies
  6287. from being added.
  6288. </para>
  6289. </glossdef>
  6290. </glossentry>
  6291. <glossentry id='var-INHIBIT_PACKAGE_DEBUG_SPLIT'><glossterm>INHIBIT_PACKAGE_DEBUG_SPLIT</glossterm>
  6292. <info>
  6293. INHIBIT_PACKAGE_DEBUG_SPLIT[doc] = "If set to "1", prevents the OpenEmbedded build system from splitting out debug information during packaging"
  6294. </info>
  6295. <glossdef>
  6296. <para role="glossdeffirst">
  6297. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6298. Prevents the OpenEmbedded build system from splitting
  6299. out debug information during packaging.
  6300. By default, the build system splits out debugging
  6301. information during the
  6302. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  6303. task.
  6304. For more information on how debug information is split out,
  6305. see the
  6306. <link linkend='var-PACKAGE_DEBUG_SPLIT_STYLE'><filename>PACKAGE_DEBUG_SPLIT_STYLE</filename></link>
  6307. variable.
  6308. </para>
  6309. <para>
  6310. To prevent the build system from splitting out
  6311. debug information during packaging, set the
  6312. <filename>INHIBIT_PACKAGE_DEBUG_SPLIT</filename> variable
  6313. as follows:
  6314. <literallayout class='monospaced'>
  6315. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  6316. </literallayout>
  6317. </para>
  6318. </glossdef>
  6319. </glossentry>
  6320. <glossentry id='var-INHIBIT_PACKAGE_STRIP'><glossterm>INHIBIT_PACKAGE_STRIP</glossterm>
  6321. <info>
  6322. INHIBIT_PACKAGE_STRIP[doc] = "If set to "1", causes the build to not strip binaries in resulting packages."
  6323. </info>
  6324. <glossdef>
  6325. <para role="glossdeffirst">
  6326. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6327. If set to "1", causes the build to not strip binaries in
  6328. resulting packages and prevents the
  6329. <filename>-dbg</filename> package from containing the
  6330. source files.
  6331. </para>
  6332. <para>
  6333. By default, the OpenEmbedded build system strips
  6334. binaries and puts the debugging symbols into
  6335. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}-dbg</filename>.
  6336. Consequently, you should not set
  6337. <filename>INHIBIT_PACKAGE_STRIP</filename> when you plan
  6338. to debug in general.
  6339. </para>
  6340. </glossdef>
  6341. </glossentry>
  6342. <glossentry id='var-INITRAMFS_FSTYPES'><glossterm>INITRAMFS_FSTYPES</glossterm>
  6343. <info>
  6344. INITRAMFS_FSTYPES[doc] = "Defines the format for the output image of an initial RAM filesystem (initramfs), which is used during boot."
  6345. </info>
  6346. <glossdef>
  6347. <para role="glossdeffirst">
  6348. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6349. Defines the format for the output image of an initial
  6350. RAM filesystem (initramfs), which is used during boot.
  6351. Supported formats are the same as those supported by the
  6352. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  6353. variable.
  6354. </para>
  6355. <para>
  6356. The default value of this variable, which is set in the
  6357. <filename>meta/conf/bitbake.conf</filename> configuration
  6358. file in the
  6359. <link linkend='source-directory'>Source Directory</link>,
  6360. is "cpio.gz".
  6361. The Linux kernel's initramfs mechanism, as opposed to the
  6362. initial RAM filesystem
  6363. <ulink url='https://en.wikipedia.org/wiki/Initrd'>initrd</ulink>
  6364. mechanism, expects an optionally compressed cpio
  6365. archive.
  6366. </para>
  6367. </glossdef>
  6368. </glossentry>
  6369. <glossentry id='var-INITRAMFS_IMAGE'><glossterm>INITRAMFS_IMAGE</glossterm>
  6370. <info>
  6371. INITRAMFS_IMAGE[doc] = "Specifies the PROVIDES name of an image recipe that is used to build an initial RAM filesystem (initramfs) image."
  6372. </info>
  6373. <glossdef>
  6374. <para role="glossdeffirst">
  6375. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6376. Specifies the
  6377. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  6378. name of an image recipe that is used to build an initial
  6379. RAM filesystem (initramfs) image.
  6380. In other words, the <filename>INITRAMFS_IMAGE</filename>
  6381. variable causes an additional recipe to be built as
  6382. a dependency to whatever root filesystem recipe you
  6383. might be using (e.g. <filename>core-image-sato</filename>).
  6384. The initramfs image recipe you provide should set
  6385. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  6386. to
  6387. <link linkend='var-INITRAMFS_FSTYPES'><filename>INITRAMFS_FSTYPES</filename></link>.
  6388. </para>
  6389. <para>
  6390. An initramfs image provides a temporary root filesystem
  6391. used for early system initialization (e.g. loading of
  6392. modules needed to locate and mount the "real" root
  6393. filesystem).
  6394. <note>
  6395. See the <filename>meta/recipes-core/images/core-image-minimal-initramfs.bb</filename>
  6396. recipe in the
  6397. <link linkend='source-directory'>Source Directory</link>
  6398. for an example initramfs recipe.
  6399. To select this sample recipe as the one built
  6400. to provide the initramfs image,
  6401. set <filename>INITRAMFS_IMAGE</filename> to
  6402. "core-image-minimal-initramfs".
  6403. </note>
  6404. </para>
  6405. <para>
  6406. You can also find more information by referencing the
  6407. <filename>meta-poky/conf/local.conf.sample.extended</filename>
  6408. configuration file in the Source Directory,
  6409. the
  6410. <link linkend='ref-classes-image'><filename>image</filename></link>
  6411. class, and the
  6412. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  6413. class to see how to use the
  6414. <filename>INITRAMFS_IMAGE</filename> variable.
  6415. </para>
  6416. <para>
  6417. If <filename>INITRAMFS_IMAGE</filename> is empty, which is
  6418. the default, then no initramfs image is built.
  6419. </para>
  6420. <para>
  6421. For more information, you can also see the
  6422. <link linkend='var-INITRAMFS_IMAGE_BUNDLE'><filename>INITRAMFS_IMAGE_BUNDLE</filename></link>
  6423. variable, which allows the generated image to be bundled
  6424. inside the kernel image.
  6425. Additionally, for information on creating an initramfs
  6426. image, see the
  6427. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  6428. section in the Yocto Project Development Tasks Manual.
  6429. </para>
  6430. </glossdef>
  6431. </glossentry>
  6432. <glossentry id='var-INITRAMFS_IMAGE_BUNDLE'><glossterm>INITRAMFS_IMAGE_BUNDLE</glossterm>
  6433. <info>
  6434. 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)."
  6435. </info>
  6436. <glossdef>
  6437. <para role="glossdeffirst">
  6438. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6439. Controls whether or not the image recipe specified by
  6440. <link linkend='var-INITRAMFS_IMAGE'><filename>INITRAMFS_IMAGE</filename></link>
  6441. is run through an extra pass
  6442. (<link linkend='ref-tasks-bundle_initramfs'><filename>do_bundle_initramfs</filename></link>)
  6443. during kernel compilation in order to build a single binary
  6444. that contains both the kernel image and the initial RAM
  6445. filesystem (initramfs) image.
  6446. This makes use of the
  6447. <link linkend='var-CONFIG_INITRAMFS_SOURCE'><filename>CONFIG_INITRAMFS_SOURCE</filename></link>
  6448. kernel feature.
  6449. <note>
  6450. Using an extra compilation pass to bundle the initramfs
  6451. avoids a circular dependency between the kernel recipe and
  6452. the initramfs recipe should the initramfs include kernel
  6453. modules.
  6454. Should that be the case, the initramfs recipe depends on
  6455. the kernel for the kernel modules, and the kernel depends
  6456. on the initramfs recipe since the initramfs is bundled
  6457. inside the kernel image.
  6458. </note>
  6459. </para>
  6460. <para>
  6461. The combined binary is deposited into the
  6462. <filename>tmp/deploy</filename> directory, which is part
  6463. of the
  6464. <link linkend='build-directory'>Build Directory</link>.
  6465. </para>
  6466. <para>
  6467. Setting the variable to "1" in a configuration file causes the
  6468. OpenEmbedded build system to generate a kernel image with the
  6469. initramfs specified in <filename>INITRAMFS_IMAGE</filename>
  6470. bundled within:
  6471. <literallayout class='monospaced'>
  6472. INITRAMFS_IMAGE_BUNDLE = "1"
  6473. </literallayout>
  6474. By default, the
  6475. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  6476. class sets this variable to a null string as follows:
  6477. <literallayout class='monospaced'>
  6478. INITRAMFS_IMAGE_BUNDLE ?= ""
  6479. </literallayout>
  6480. <note>
  6481. You must set the
  6482. <filename>INITRAMFS_IMAGE_BUNDLE</filename> variable in
  6483. a configuration file.
  6484. You cannot set the variable in a recipe file.
  6485. </note>
  6486. See the
  6487. <ulink url='&YOCTO_GIT_URL;/cgit/cgit.cgi/poky/tree/meta-poky/conf/local.conf.sample.extended'><filename>local.conf.sample.extended</filename></ulink>
  6488. file for additional information.
  6489. Also, for information on creating an initramfs, see the
  6490. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  6491. section in the Yocto Project Development Tasks Manual.
  6492. </para>
  6493. </glossdef>
  6494. </glossentry>
  6495. <glossentry id='var-INITRD'><glossterm>INITRD</glossterm>
  6496. <info>
  6497. INITRD[doc] = "Indicates a list of filesystem images to concatenate and use as an initial RAM disk (initrd)."
  6498. </info>
  6499. <glossdef>
  6500. <para role="glossdeffirst">
  6501. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6502. Indicates list of filesystem images to concatenate and use
  6503. as an initial RAM disk (<filename>initrd</filename>).
  6504. </para>
  6505. <para>
  6506. The <filename>INITRD</filename> variable is an optional
  6507. variable used with the
  6508. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  6509. class.
  6510. </para>
  6511. </glossdef>
  6512. </glossentry>
  6513. <glossentry id='var-INITRD_IMAGE'><glossterm>INITRD_IMAGE</glossterm>
  6514. <info>
  6515. 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."
  6516. </info>
  6517. <glossdef>
  6518. <para role="glossdeffirst">
  6519. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6520. When building a "live" bootable image (i.e. when
  6521. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  6522. contains "live"), <filename>INITRD_IMAGE</filename>
  6523. specifies the image recipe that should be built
  6524. to provide the initial RAM disk image.
  6525. The default value is "core-image-minimal-initramfs".
  6526. </para>
  6527. <para>
  6528. See the
  6529. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  6530. class for more information.
  6531. </para>
  6532. </glossdef>
  6533. </glossentry>
  6534. <glossentry id='var-INITSCRIPT_NAME'><glossterm>INITSCRIPT_NAME</glossterm>
  6535. <info>
  6536. INITSCRIPT_NAME[doc] = "The filename of the initialization script as installed to ${sysconfdir}/init.d."
  6537. </info>
  6538. <glossdef>
  6539. <para role="glossdeffirst">
  6540. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6541. The filename of the initialization script as installed to
  6542. <filename>${sysconfdir}/init.d</filename>.
  6543. </para>
  6544. <para>
  6545. This variable is used in recipes when using <filename>update-rc.d.bbclass</filename>.
  6546. The variable is mandatory.
  6547. </para>
  6548. </glossdef>
  6549. </glossentry>
  6550. <glossentry id='var-INITSCRIPT_PACKAGES'><glossterm>INITSCRIPT_PACKAGES</glossterm>
  6551. <info>
  6552. 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."
  6553. </info>
  6554. <glossdef>
  6555. <para role="glossdeffirst">
  6556. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6557. A list of the packages that contain initscripts.
  6558. If multiple packages are specified, you need to append the package name
  6559. to the other <filename>INITSCRIPT_*</filename> as an override.
  6560. </para>
  6561. <para>
  6562. This variable is used in recipes when using <filename>update-rc.d.bbclass</filename>.
  6563. The variable is optional and defaults to the
  6564. <link linkend='var-PN'><filename>PN</filename></link> variable.
  6565. </para>
  6566. </glossdef>
  6567. </glossentry>
  6568. <glossentry id='var-INITSCRIPT_PARAMS'><glossterm>INITSCRIPT_PARAMS</glossterm>
  6569. <info>
  6570. 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."
  6571. </info>
  6572. <glossdef>
  6573. <para role="glossdeffirst">
  6574. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6575. Specifies the options to pass to <filename>update-rc.d</filename>.
  6576. Here is an example:
  6577. <literallayout class='monospaced'>
  6578. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  6579. </literallayout>
  6580. </para>
  6581. <para>
  6582. In this example, the script has a runlevel of 99,
  6583. starts the script in initlevels 2 and 5, and
  6584. stops the script in levels 0, 1 and 6.
  6585. </para>
  6586. <para>
  6587. The variable's default value is "defaults", which is
  6588. set in the
  6589. <link linkend='ref-classes-update-rc.d'><filename>update-rc.d</filename></link>
  6590. class.
  6591. </para>
  6592. <para>
  6593. The value in
  6594. <filename>INITSCRIPT_PARAMS</filename> is passed through
  6595. to the <filename>update-rc.d</filename> command.
  6596. For more information on valid parameters, please see the
  6597. <filename>update-rc.d</filename> manual page at
  6598. <ulink url='http://www.tin.org/bin/man.cgi?section=8&amp;topic=update-rc.d'></ulink>.
  6599. </para>
  6600. </glossdef>
  6601. </glossentry>
  6602. <glossentry id='var-INSANE_SKIP'><glossterm>INSANE_SKIP</glossterm>
  6603. <info>
  6604. INSANE_SKIP[doc] = "Specifies the QA checks to skip for a specific package within a recipe."
  6605. </info>
  6606. <glossdef>
  6607. <para role="glossdeffirst">
  6608. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6609. Specifies the QA checks to skip for a specific package
  6610. within a recipe.
  6611. For example, to skip the check for symbolic link
  6612. <filename>.so</filename> files in the main package of a
  6613. recipe, add the following to the recipe.
  6614. The package name override must be used, which in this
  6615. example is <filename>${PN}</filename>:
  6616. <literallayout class='monospaced'>
  6617. INSANE_SKIP_${PN} += "dev-so"
  6618. </literallayout>
  6619. </para>
  6620. <para>
  6621. See the "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  6622. section for a list of the valid QA checks you can
  6623. specify using this variable.
  6624. </para>
  6625. </glossdef>
  6626. </glossentry>
  6627. <glossentry id='var-INSTALL_TIMEZONE_FILE'><glossterm>INSTALL_TIMEZONE_FILE</glossterm>
  6628. <info>
  6629. INSTALL_TIMEZONE_FILE[doc] = "Enables installation of the /etc/timezone file."
  6630. </info>
  6631. <glossdef>
  6632. <para role="glossdeffirst">
  6633. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6634. By default, the <filename>tzdata</filename> recipe packages
  6635. an <filename>/etc/timezone</filename> file.
  6636. Set the <filename>INSTALL_TIMEZONE_FILE</filename>
  6637. variable to "0" at the configuration level to disable this
  6638. behavior.
  6639. </para>
  6640. </glossdef>
  6641. </glossentry>
  6642. <glossentry id='var-IPK_FEED_URIS'><glossterm>IPK_FEED_URIS</glossterm>
  6643. <info>
  6644. IPK_FEED_URIS[doc] = "List of ipkg feed records to put into generated image."
  6645. </info>
  6646. <glossdef>
  6647. <para role="glossdeffirst">
  6648. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6649. When the IPK backend is in use and package management
  6650. is enabled on the target, you can use this variable to
  6651. set up <filename>opkg</filename> in the target image
  6652. to point to package feeds on a nominated server.
  6653. Once the feed is established, you can perform
  6654. installations or upgrades using the package manager
  6655. at runtime.
  6656. </para>
  6657. </glossdef>
  6658. </glossentry>
  6659. <!--
  6660. <glossentry id='var-INTERCEPT_DIR'><glossterm>INTERCEPT_DIR</glossterm>
  6661. <glossdef>
  6662. <para>
  6663. An environment variable that defines the directory where
  6664. post installation hooks are installed for the
  6665. post install environment.
  6666. This variable is fixed as follows:
  6667. <literallayout class='monospaced'>
  6668. ${WORKDIR}/intercept_scripts
  6669. </literallayout>
  6670. </para>
  6671. <para>
  6672. After installation of a target's root filesystem,
  6673. post installation scripts, which are essentially bash scripts,
  6674. are all executed just a single time.
  6675. Limiting execution of these scripts minimizes installation
  6676. time that would be lengthened due to certain packages
  6677. triggering redundant operations.
  6678. For example, consider the installation of font packages
  6679. as a common example.
  6680. Without limiting the execution of post installation scripts,
  6681. all font directories would be rescanned to create the
  6682. cache after each individual font package was installed.
  6683. </para>
  6684. <para>
  6685. Do not edit the <filename>INTERCEPT_DIR</filename>
  6686. variable.
  6687. </para>
  6688. </glossdef>
  6689. </glossentry>
  6690. -->
  6691. </glossdiv>
  6692. <!-- <glossdiv id='var-glossary-j'><title>J</title>-->
  6693. <!-- </glossdiv>-->
  6694. <glossdiv id='var-glossary-k'><title>K</title>
  6695. <glossentry id='var-KARCH'><glossterm>KARCH</glossterm>
  6696. <info>
  6697. KARCH[doc] = "Defines the kernel architecture used when assembling the configuration. You define the KARCH variable in the BSP Descriptions."
  6698. </info>
  6699. <glossdef>
  6700. <para role="glossdeffirst">
  6701. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6702. Defines the kernel architecture used when assembling
  6703. the configuration.
  6704. Architectures supported for this release are:
  6705. <literallayout class='monospaced'>
  6706. powerpc
  6707. i386
  6708. x86_64
  6709. arm
  6710. qemu
  6711. mips
  6712. </literallayout>
  6713. </para>
  6714. <para>
  6715. You define the <filename>KARCH</filename> variable in the
  6716. <ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#bsp-descriptions'>BSP Descriptions</ulink>.
  6717. </para>
  6718. </glossdef>
  6719. </glossentry>
  6720. <glossentry id='var-KBRANCH'><glossterm>KBRANCH</glossterm>
  6721. <info>
  6722. 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."
  6723. </info>
  6724. <glossdef>
  6725. <para role="glossdeffirst">
  6726. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6727. A regular expression used by the build process to explicitly
  6728. identify the kernel branch that is validated, patched,
  6729. and configured during a build.
  6730. You must set this variable to ensure the exact kernel
  6731. branch you want is being used by the build process.
  6732. </para>
  6733. <para>
  6734. Values for this variable are set in the kernel's recipe
  6735. file and the kernel's append file.
  6736. For example, if you are using the
  6737. <filename>linux-yocto_4.12</filename> kernel, the kernel
  6738. recipe file is the
  6739. <filename>meta/recipes-kernel/linux/linux-yocto_4.12.bb</filename>
  6740. file.
  6741. <filename>KBRANCH</filename> is set as follows in that
  6742. kernel recipe file:
  6743. <literallayout class='monospaced'>
  6744. KBRANCH ?= "standard/base"
  6745. </literallayout>
  6746. </para>
  6747. <para>
  6748. This variable is also used from the kernel's append file
  6749. to identify the kernel branch specific to a particular
  6750. machine or target hardware.
  6751. Continuing with the previous kernel example, the kernel's
  6752. append file (i.e.
  6753. <filename>linux-yocto_4.12.bbappend</filename>) is located
  6754. in the BSP layer for a given machine.
  6755. For example, the append file for the Beaglebone,
  6756. EdgeRouter, and generic versions of both 32 and 64-bit IA
  6757. machines (<filename>meta-yocto-bsp</filename>) is named
  6758. <filename>meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.12.bbappend</filename>.
  6759. Here are the related statements from that append file:
  6760. <literallayout class='monospaced'>
  6761. KBRANCH_genericx86 = "standard/base"
  6762. KBRANCH_genericx86-64 = "standard/base"
  6763. KBRANCH_edgerouter = "standard/edgerouter"
  6764. KBRANCH_beaglebone = "standard/beaglebone"
  6765. KBRANCH_mpc8315e-rdb = "standard/fsl-mpc8315e-rdb"
  6766. </literallayout>
  6767. The <filename>KBRANCH</filename> statements identify
  6768. the kernel branch to use when building for each
  6769. supported BSP.
  6770. </para>
  6771. </glossdef>
  6772. </glossentry>
  6773. <glossentry id='var-KBUILD_DEFCONFIG'><glossterm>KBUILD_DEFCONFIG</glossterm>
  6774. <info>
  6775. KBUILD_DEFCONFIG[doc] = "Specifies an "in-tree" kernel configuration file for use during a kernel build."
  6776. </info>
  6777. <glossdef>
  6778. <para role="glossdeffirst">
  6779. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6780. When used with the
  6781. <link linkend='ref-classes-kernel-yocto'><filename>kernel-yocto</filename></link>
  6782. class, specifies an "in-tree" kernel configuration file
  6783. for use during a kernel build.
  6784. </para>
  6785. <para>
  6786. Typically, when using a <filename>defconfig</filename> to
  6787. configure a kernel during a build, you place the
  6788. file in your layer in the same manner as you would
  6789. place patch files and configuration fragment files (i.e.
  6790. "out-of-tree").
  6791. However, if you want to use a <filename>defconfig</filename>
  6792. file that is part of the kernel tree (i.e. "in-tree"),
  6793. you can use the
  6794. <filename>KBUILD_DEFCONFIG</filename> variable and append
  6795. the
  6796. <link linkend='var-KMACHINE'><filename>KMACHINE</filename></link>
  6797. variable to point to the <filename>defconfig</filename>
  6798. file.
  6799. </para>
  6800. <para>
  6801. To use the variable, set it in the append file for your
  6802. kernel recipe using the following form:
  6803. <literallayout class='monospaced'>
  6804. KBUILD_DEFCONFIG_<replaceable>KMACHINE</replaceable> ?= <replaceable>defconfig_file</replaceable>
  6805. </literallayout>
  6806. Here is an example from a "raspberrypi2"
  6807. <filename>KMACHINE</filename> build that uses a
  6808. <filename>defconfig</filename> file named
  6809. "bcm2709_defconfig":
  6810. <literallayout class='monospaced'>
  6811. KBUILD_DEFCONFIG_raspberrypi2 = "bcm2709_defconfig"
  6812. </literallayout>
  6813. As an alternative, you can use the following within your
  6814. append file:
  6815. <literallayout class='monospaced'>
  6816. KBUILD_DEFCONFIG_pn-linux-yocto ?= <replaceable>defconfig_file</replaceable>
  6817. </literallayout>
  6818. For more information on how to use the
  6819. <filename>KBUILD_DEFCONFIG</filename> variable, see the
  6820. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#using-an-in-tree-defconfig-file'>Using an "In-Tree" <filename>defconfig</filename> File</ulink>"
  6821. section in the Yocto Project Linux Kernel Development
  6822. Manual.
  6823. </para>
  6824. </glossdef>
  6825. </glossentry>
  6826. <glossentry id='var-KERNEL_ALT_IMAGETYPE'><glossterm>KERNEL_ALT_IMAGETYPE</glossterm>
  6827. <info>
  6828. KERNEL_ALT_IMAGETYPE[doc] = "Specifies an alternate kernel image type for creation."
  6829. </info>
  6830. <glossdef>
  6831. <para role="glossdeffirst">
  6832. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6833. Specifies an alternate kernel image type for creation in
  6834. addition to the kernel image type specified using the
  6835. <link linkend='var-KERNEL_IMAGETYPE'><filename>KERNEL_IMAGETYPE</filename></link>
  6836. variable.
  6837. </para>
  6838. </glossdef>
  6839. </glossentry>
  6840. <glossentry id='var-KERNEL_CLASSES'><glossterm>KERNEL_CLASSES</glossterm>
  6841. <info>
  6842. KERNEL_CLASSES[doc] = "A list of classes defining kernel image types that kernel class should inherit."
  6843. </info>
  6844. <glossdef>
  6845. <para role="glossdeffirst">
  6846. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6847. A list of classes defining kernel image types that the
  6848. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  6849. class should inherit.
  6850. You typically append this variable to enable extended image
  6851. types.
  6852. An example is the "kernel-fitimage", which enables
  6853. fitImage support and resides in
  6854. <filename>meta/classes/kernel-fitimage.bbclass</filename>.
  6855. You can register custom kernel image types with the
  6856. <filename>kernel</filename> class using this variable.
  6857. </para>
  6858. </glossdef>
  6859. </glossentry>
  6860. <glossentry id='var-KERNEL_DEVICETREE'><glossterm>KERNEL_DEVICETREE</glossterm>
  6861. <info>
  6862. KERNEL_DEVICETREE[doc] = "Specifies the name of the generated Linux kernel device tree (i.e. the .dtb) file."
  6863. </info>
  6864. <glossdef>
  6865. <para role="glossdeffirst">
  6866. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6867. Specifies the name of the generated Linux kernel device tree
  6868. (i.e. the <filename>.dtb</filename>) file.
  6869. <note>
  6870. Legacy support exists for specifying the full path
  6871. to the device tree.
  6872. However, providing just the <filename>.dtb</filename>
  6873. file is preferred.
  6874. </note>
  6875. In order to use this variable, you must have the include
  6876. files in your kernel recipe:
  6877. <literallayout class='monospaced'>
  6878. require recipes-kernel/linux/linux-dtb.inc
  6879. </literallayout>
  6880. or
  6881. <literallayout class='monospaced'>
  6882. require recipes-kernel/linux/linux-yocto.inc
  6883. </literallayout>
  6884. </para>
  6885. </glossdef>
  6886. </glossentry>
  6887. <glossentry id='var-KERNEL_EXTRA_ARGS'><glossterm>KERNEL_EXTRA_ARGS</glossterm>
  6888. <info>
  6889. KERNEL_EXTRA_ARGS[doc] = "Specifies additional make command-line arguments the OpenEmbedded build system passes on when compiling the kernel."
  6890. </info>
  6891. <glossdef>
  6892. <para role="glossdeffirst">
  6893. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6894. Specifies additional <filename>make</filename>
  6895. command-line arguments the OpenEmbedded build system
  6896. passes on when compiling the kernel.
  6897. </para>
  6898. </glossdef>
  6899. </glossentry>
  6900. <glossentry id='var-KERNEL_FEATURES'><glossterm>KERNEL_FEATURES</glossterm>
  6901. <info>
  6902. KERNEL_FEATURES[doc] = "Includes additional kernel metadata. The metadata you add through this variable includes config fragments and features descriptions."
  6903. </info>
  6904. <glossdef>
  6905. <para role="glossdeffirst">
  6906. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6907. Includes additional kernel metadata.
  6908. In the OpenEmbedded build system, the default Board Support
  6909. Packages (BSPs)
  6910. <link linkend='metadata'>Metadata</link>
  6911. is provided through
  6912. the <link linkend='var-KMACHINE'><filename>KMACHINE</filename></link>
  6913. and
  6914. <link linkend='var-KBRANCH'><filename>KBRANCH</filename></link>
  6915. variables.
  6916. You can use the <filename>KERNEL_FEATURES</filename>
  6917. variable from within the kernel recipe or kernel append
  6918. file to further add metadata for all BSPs or specific
  6919. BSPs.
  6920. </para>
  6921. <para>
  6922. The metadata you add through this variable includes config
  6923. fragments and features descriptions,
  6924. which usually includes patches as well as config fragments.
  6925. You typically override the
  6926. <filename>KERNEL_FEATURES</filename> variable for a
  6927. specific machine.
  6928. In this way, you can provide validated, but optional,
  6929. sets of kernel configurations and features.
  6930. </para>
  6931. <para>
  6932. For example, the following example from the
  6933. <filename>linux-yocto-rt_4.12</filename> kernel recipe
  6934. adds "netfilter" and "taskstats" features to all BSPs
  6935. as well as "virtio" configurations to all QEMU machines.
  6936. The last two statements add specific configurations to
  6937. targeted machine types:
  6938. <literallayout class='monospaced'>
  6939. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  6940. KERNEL_FEATURES_append = " ${KERNEL_EXTRA_FEATURES}"
  6941. KERNEL_FEATURES_append_qemuall=" cfg/virtio.scc"
  6942. KERNEL_FEATURES_append_qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc"
  6943. KERNEL_FEATURES_append_qemux86-64=" cfg/sound.scc"
  6944. </literallayout></para>
  6945. </glossdef>
  6946. </glossentry>
  6947. <glossentry id='var-KERNEL_IMAGE_BASE_NAME'><glossterm>KERNEL_IMAGE_BASE_NAME</glossterm>
  6948. <info>
  6949. KERNEL_IMAGE_BASE_NAME[doc] = "The base name of the kernel image."
  6950. </info>
  6951. <glossdef>
  6952. <para role="glossdeffirst">
  6953. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6954. The base name of the kernel image.
  6955. This variable is set in the
  6956. <link linkend='ref-classes-kernel'>kernel</link> class
  6957. as follows:
  6958. <literallayout class='monospaced'>
  6959. KERNEL_IMAGE_BASE_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
  6960. </literallayout>
  6961. </para>
  6962. <para>
  6963. See the
  6964. <link linkend='var-PKGE'><filename>PKGE</filename></link>,
  6965. <link linkend='var-PKGV'><filename>PKGV</filename></link>,
  6966. <link linkend='var-PKGR'><filename>PKGR</filename></link>,
  6967. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>,
  6968. and
  6969. <link linkend='var-DATETIME'><filename>DATETIME</filename></link>
  6970. variables for additional information.
  6971. </para>
  6972. </glossdef>
  6973. </glossentry>
  6974. <glossentry id='var-KERNEL_IMAGE_MAXSIZE'><glossterm>KERNEL_IMAGE_MAXSIZE</glossterm>
  6975. <info>
  6976. KERNEL_IMAGE_MAXSIZE[doc] = "The maximum allowable size in kilobytes of the kernel image file."
  6977. </info>
  6978. <glossdef>
  6979. <para role="glossdeffirst">
  6980. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6981. Specifies the maximum size of the kernel image file in
  6982. kilobytes.
  6983. If <filename>KERNEL_IMAGE_MAXSIZE</filename> is set,
  6984. the size of the kernel image file is checked against
  6985. the set value during the
  6986. <link linkend='ref-tasks-sizecheck'><filename>do_sizecheck</filename></link>
  6987. task.
  6988. The task fails if the kernel image file is larger than
  6989. the setting.
  6990. </para>
  6991. <para>
  6992. <filename>KERNEL_IMAGE_MAXSIZE</filename> is useful for
  6993. target devices that have a limited amount of space in
  6994. which the kernel image must be stored.
  6995. </para>
  6996. <para>
  6997. By default, this variable is not set, which means the
  6998. size of the kernel image is not checked.
  6999. </para>
  7000. </glossdef>
  7001. </glossentry>
  7002. <glossentry id='var-KERNEL_IMAGETYPE'><glossterm>KERNEL_IMAGETYPE</glossterm>
  7003. <info>
  7004. KERNEL_IMAGETYPE[doc] = "The type of kernel to build for a device, usually set by the machine configuration files and defaults to 'zImage'."
  7005. </info>
  7006. <glossdef>
  7007. <para role="glossdeffirst">
  7008. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7009. The type of kernel to build for a device, usually set by the
  7010. machine configuration files and defaults to "zImage".
  7011. This variable is used
  7012. when building the kernel and is passed to <filename>make</filename> as the target to
  7013. build.
  7014. </para>
  7015. <para>
  7016. If you want to build an alternate kernel image type, use the
  7017. <link linkend='var-KERNEL_ALT_IMAGETYPE'><filename>KERNEL_ALT_IMAGETYPE</filename></link>
  7018. variable.
  7019. </para>
  7020. </glossdef>
  7021. </glossentry>
  7022. <glossentry id='var-KERNEL_MODULE_AUTOLOAD'><glossterm>KERNEL_MODULE_AUTOLOAD</glossterm>
  7023. <info>
  7024. KERNEL_MODULE_AUTOLOAD[doc] = "Lists kernel modules that need to be auto-loaded during boot"
  7025. </info>
  7026. <glossdef>
  7027. <para role="glossdeffirst">
  7028. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7029. Lists kernel modules that need to be auto-loaded during
  7030. boot.
  7031. <note>
  7032. This variable replaces the deprecated
  7033. <link linkend='var-module_autoload'><filename>module_autoload</filename></link>
  7034. variable.
  7035. </note>
  7036. </para>
  7037. <para>
  7038. You can use the <filename>KERNEL_MODULE_AUTOLOAD</filename>
  7039. variable anywhere that it can be
  7040. recognized by the kernel recipe or by an out-of-tree kernel
  7041. module recipe (e.g. a machine configuration file, a
  7042. distribution configuration file, an append file for the
  7043. recipe, or the recipe itself).
  7044. </para>
  7045. <para>
  7046. Specify it as follows:
  7047. <literallayout class='monospaced'>
  7048. KERNEL_MODULE_AUTOLOAD += "<replaceable>module_name1</replaceable> <replaceable>module_name2</replaceable> <replaceable>module_name3</replaceable>"
  7049. </literallayout>
  7050. </para>
  7051. <para>
  7052. Including <filename>KERNEL_MODULE_AUTOLOAD</filename> causes
  7053. the OpenEmbedded build system to populate the
  7054. <filename>/etc/modules-load.d/modname.conf</filename>
  7055. file with the list of modules to be auto-loaded on boot.
  7056. The modules appear one-per-line in the file.
  7057. Here is an example of the most common use case:
  7058. <literallayout class='monospaced'>
  7059. KERNEL_MODULE_AUTOLOAD += "<replaceable>module_name</replaceable>"
  7060. </literallayout>
  7061. </para>
  7062. <para>
  7063. For information on how to populate the
  7064. <filename>modname.conf</filename> file with
  7065. <filename>modprobe.d</filename> syntax lines, see the
  7066. <link linkend='var-KERNEL_MODULE_PROBECONF'><filename>KERNEL_MODULE_PROBECONF</filename></link>
  7067. variable.
  7068. </para>
  7069. </glossdef>
  7070. </glossentry>
  7071. <glossentry id='var-KERNEL_MODULE_PROBECONF'><glossterm>KERNEL_MODULE_PROBECONF</glossterm>
  7072. <info>
  7073. 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."
  7074. </info>
  7075. <glossdef>
  7076. <para role="glossdeffirst">
  7077. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7078. Provides a list of modules for which the OpenEmbedded
  7079. build system expects to find
  7080. <filename>module_conf_</filename><replaceable>modname</replaceable>
  7081. values that specify configuration for each of the modules.
  7082. For information on how to provide those module
  7083. configurations, see the
  7084. <link linkend='var-module_conf'><filename>module_conf_*</filename></link>
  7085. variable.
  7086. </para>
  7087. </glossdef>
  7088. </glossentry>
  7089. <glossentry id='var-KERNEL_PATH'><glossterm>KERNEL_PATH</glossterm>
  7090. <info>
  7091. 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)."
  7092. </info>
  7093. <glossdef>
  7094. <para role="glossdeffirst">
  7095. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7096. The location of the kernel sources.
  7097. This variable is set to the value of the
  7098. <link linkend='var-STAGING_KERNEL_DIR'><filename>STAGING_KERNEL_DIR</filename></link>
  7099. within the
  7100. <link linkend='ref-classes-module'><filename>module</filename></link>
  7101. class.
  7102. For information on how this variable is used, see the
  7103. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#incorporating-out-of-tree-modules'>Incorporating Out-of-Tree Modules</ulink>"
  7104. section in the Yocto Project Linux Kernel Development
  7105. Manual.
  7106. </para>
  7107. <para>
  7108. To help maximize compatibility with out-of-tree drivers
  7109. used to build modules, the OpenEmbedded build system also
  7110. recognizes and uses the
  7111. <link linkend='var-KERNEL_SRC'><filename>KERNEL_SRC</filename></link>
  7112. variable, which is identical to the
  7113. <filename>KERNEL_PATH</filename> variable.
  7114. Both variables are common variables used by external
  7115. Makefiles to point to the kernel source directory.
  7116. </para>
  7117. </glossdef>
  7118. </glossentry>
  7119. <glossentry id='var-KERNEL_SRC'><glossterm>KERNEL_SRC</glossterm>
  7120. <info>
  7121. 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)."
  7122. </info>
  7123. <glossdef>
  7124. <para role="glossdeffirst">
  7125. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7126. The location of the kernel sources.
  7127. This variable is set to the value of the
  7128. <link linkend='var-STAGING_KERNEL_DIR'><filename>STAGING_KERNEL_DIR</filename></link>
  7129. within the
  7130. <link linkend='ref-classes-module'><filename>module</filename></link>
  7131. class.
  7132. For information on how this variable is used, see the
  7133. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#incorporating-out-of-tree-modules'>Incorporating Out-of-Tree Modules</ulink>"
  7134. section in the Yocto Project Linux Kernel Development
  7135. Manual.
  7136. </para>
  7137. <para>
  7138. To help maximize compatibility with out-of-tree drivers
  7139. used to build modules, the OpenEmbedded build system also
  7140. recognizes and uses the
  7141. <link linkend='var-KERNEL_PATH'><filename>KERNEL_PATH</filename></link>
  7142. variable, which is identical to the
  7143. <filename>KERNEL_SRC</filename> variable.
  7144. Both variables are common variables used by external
  7145. Makefiles to point to the kernel source directory.
  7146. </para>
  7147. </glossdef>
  7148. </glossentry>
  7149. <glossentry id='var-KERNEL_VERSION'><glossterm>KERNEL_VERSION</glossterm>
  7150. <info>
  7151. KERNEL_VERSION[doc] = "Specifies the version of the kernel as extracted from version.h or utsrelease.h within the kernel sources."
  7152. </info>
  7153. <glossdef>
  7154. <para role="glossdeffirst">
  7155. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7156. Specifies the version of the kernel as extracted from
  7157. <filename>version.h</filename> or
  7158. <filename>utsrelease.h</filename> within the kernel sources.
  7159. Effects of setting this variable do not take affect until
  7160. the kernel has been configured.
  7161. Consequently, attempting to refer to this variable in
  7162. contexts prior to configuration will not work.
  7163. </para>
  7164. </glossdef>
  7165. </glossentry>
  7166. <glossentry id='var-KERNELDEPMODDEPEND'><glossterm>KERNELDEPMODDEPEND</glossterm>
  7167. <info>
  7168. KERNELDEPMODDEPEND[doc] = "Specifies whether or not to use the data referenced through the PKGDATA_DIR directory."
  7169. </info>
  7170. <glossdef>
  7171. <para role="glossdeffirst">
  7172. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7173. Specifies whether the data referenced through
  7174. <link linkend='var-PKGDATA_DIR'><filename>PKGDATA_DIR</filename></link>
  7175. is needed or not.
  7176. The <filename>KERNELDEPMODDEPEND</filename> does not
  7177. control whether or not that data exists,
  7178. but simply whether or not it is used.
  7179. If you do not need to use the data, set the
  7180. <filename>KERNELDEPMODDEPEND</filename> variable in your
  7181. <filename>initramfs</filename> recipe.
  7182. Setting the variable there when the data is not needed
  7183. avoids a potential dependency loop.
  7184. </para>
  7185. </glossdef>
  7186. </glossentry>
  7187. <glossentry id='var-KFEATURE_DESCRIPTION'><glossterm>KFEATURE_DESCRIPTION</glossterm>
  7188. <info>
  7189. 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."
  7190. </info>
  7191. <glossdef>
  7192. <para role="glossdeffirst">
  7193. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7194. Provides a short description of a configuration fragment.
  7195. You use this variable in the <filename>.scc</filename>
  7196. file that describes a configuration fragment file.
  7197. Here is the variable used in a file named
  7198. <filename>smp.scc</filename> to describe SMP being
  7199. enabled:
  7200. <literallayout class='monospaced'>
  7201. define KFEATURE_DESCRIPTION "Enable SMP"
  7202. </literallayout>
  7203. </para>
  7204. </glossdef>
  7205. </glossentry>
  7206. <glossentry id='var-KMACHINE'><glossterm>KMACHINE</glossterm>
  7207. <info>
  7208. KMACHINE[doc] = "The machine as known by the kernel."
  7209. </info>
  7210. <glossdef>
  7211. <para role="glossdeffirst">
  7212. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7213. The machine as known by the kernel.
  7214. Sometimes the machine name used by the kernel does not
  7215. match the machine name used by the OpenEmbedded build
  7216. system.
  7217. For example, the machine name that the OpenEmbedded build
  7218. system understands as
  7219. <filename>core2-32-intel-common</filename> goes by a
  7220. different name in the Linux Yocto kernel.
  7221. The kernel understands that machine as
  7222. <filename>intel-core2-32</filename>.
  7223. For cases like these, the <filename>KMACHINE</filename>
  7224. variable maps the kernel machine name to the OpenEmbedded
  7225. build system machine name.
  7226. </para>
  7227. <para>
  7228. These mappings between different names occur in the
  7229. Yocto Linux Kernel's <filename>meta</filename> branch.
  7230. As an example take a look in the
  7231. <filename>common/recipes-kernel/linux/linux-yocto_3.19.bbappend</filename>
  7232. file:
  7233. <literallayout class='monospaced'>
  7234. LINUX_VERSION_core2-32-intel-common = "3.19.0"
  7235. COMPATIBLE_MACHINE_core2-32-intel-common = "${MACHINE}"
  7236. SRCREV_meta_core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  7237. SRCREV_machine_core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  7238. KMACHINE_core2-32-intel-common = "intel-core2-32"
  7239. KBRANCH_core2-32-intel-common = "standard/base"
  7240. KERNEL_FEATURES_append_core2-32-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}"
  7241. </literallayout>
  7242. The <filename>KMACHINE</filename> statement says that
  7243. the kernel understands the machine name as
  7244. "intel-core2-32".
  7245. However, the OpenEmbedded build system understands the
  7246. machine as "core2-32-intel-common".
  7247. </para>
  7248. </glossdef>
  7249. </glossentry>
  7250. <glossentry id='var-KTYPE'><glossterm>KTYPE</glossterm>
  7251. <info>
  7252. KTYPE[doc] = "Defines the kernel type to be used in assembling the configuration."
  7253. </info>
  7254. <glossdef>
  7255. <para role="glossdeffirst">
  7256. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7257. Defines the kernel type to be used in assembling the
  7258. configuration.
  7259. The linux-yocto recipes define "standard", "tiny",
  7260. and "preempt-rt" kernel types.
  7261. See the
  7262. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#kernel-types'>Kernel Types</ulink>"
  7263. section in the Yocto Project Linux Kernel Development
  7264. Manual for more information on kernel types.
  7265. </para>
  7266. <para>
  7267. You define the <filename>KTYPE</filename> variable in the
  7268. <ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#bsp-descriptions'>BSP Descriptions</ulink>.
  7269. The value you use must match the value used for the
  7270. <link linkend='var-LINUX_KERNEL_TYPE'><filename>LINUX_KERNEL_TYPE</filename></link>
  7271. value used by the kernel recipe.
  7272. </para>
  7273. </glossdef>
  7274. </glossentry>
  7275. </glossdiv>
  7276. <glossdiv id='var-glossary-l'><title>L</title>
  7277. <glossentry id='var-LABELS'><glossterm>LABELS</glossterm>
  7278. <info>
  7279. LABELS[doc] = "Provides a list of targets for automatic configuration."
  7280. </info>
  7281. <glossdef>
  7282. <para role="glossdeffirst">
  7283. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7284. Provides a list of targets for automatic configuration.
  7285. </para>
  7286. <para>
  7287. See the
  7288. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  7289. class for more information on how this variable is used.
  7290. </para>
  7291. </glossdef>
  7292. </glossentry>
  7293. <glossentry id='var-LAYERDEPENDS'><glossterm>LAYERDEPENDS</glossterm>
  7294. <info>
  7295. 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."
  7296. </info>
  7297. <glossdef>
  7298. <para role="glossdeffirst">
  7299. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7300. Lists the layers, separated by spaces, on which this
  7301. recipe depends.
  7302. Optionally, you can specify a specific layer version for a
  7303. dependency by adding it to the end of the layer name.
  7304. Here is an example:
  7305. <literallayout class='monospaced'>
  7306. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  7307. </literallayout>
  7308. In this previous example, version 3 of "anotherlayer"
  7309. is compared against
  7310. <link linkend='var-LAYERVERSION'><filename>LAYERVERSION</filename></link><filename>_anotherlayer</filename>.
  7311. </para>
  7312. <para>
  7313. An error is produced if any dependency is missing or
  7314. the version numbers (if specified) do not match exactly.
  7315. This variable is used in the
  7316. <filename>conf/layer.conf</filename> file and must be
  7317. suffixed with the name of the specific layer (e.g.
  7318. <filename>LAYERDEPENDS_mylayer</filename>).
  7319. </para>
  7320. </glossdef>
  7321. </glossentry>
  7322. <glossentry id='var-LAYERDIR'><glossterm>LAYERDIR</glossterm>
  7323. <info>
  7324. LAYERDIR[doc] = "When used inside the layer.conf configuration file, this variable provides the path of the current layer."
  7325. </info>
  7326. <glossdef>
  7327. <para role="glossdeffirst">
  7328. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7329. When used inside the <filename>layer.conf</filename> configuration
  7330. file, this variable provides the path of the current layer.
  7331. This variable is not available outside of <filename>layer.conf</filename>
  7332. and references are expanded immediately when parsing of the file completes.
  7333. </para>
  7334. </glossdef>
  7335. </glossentry>
  7336. <glossentry id='var-LAYERRECOMMENDS'><glossterm>LAYERRECOMMENDS</glossterm>
  7337. <info>
  7338. LAYERRECOMMENDS[doc] = "Lists the layers, separated by spaces, recommended for use with this layer."
  7339. </info>
  7340. <glossdef>
  7341. <para role="glossdeffirst">
  7342. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7343. Lists the layers, separated by spaces, recommended for
  7344. use with this layer.
  7345. </para>
  7346. <para>
  7347. Optionally, you can specify a specific layer version for a
  7348. recommendation by adding the version to the end of the
  7349. layer name.
  7350. Here is an example:
  7351. <literallayout class='monospaced'>
  7352. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  7353. </literallayout>
  7354. In this previous example, version 3 of "anotherlayer" is
  7355. compared against
  7356. <filename>LAYERVERSION_anotherlayer</filename>.
  7357. </para>
  7358. <para>
  7359. This variable is used in the
  7360. <filename>conf/layer.conf</filename> file and must be
  7361. suffixed with the name of the specific layer (e.g.
  7362. <filename>LAYERRECOMMENDS_mylayer</filename>).
  7363. </para>
  7364. </glossdef>
  7365. </glossentry>
  7366. <glossentry id='var-LAYERSERIES_COMPAT'><glossterm>LAYERSERIES_COMPAT</glossterm>
  7367. <info>
  7368. LAYERSERIES_COMPAT[doc] = "Lists the OpenEmbedded-Core versions for which a layer is compatible."
  7369. </info>
  7370. <glossdef>
  7371. <para role="glossdeffirst">
  7372. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7373. Lists the versions of the
  7374. <link linkend='oe-core'>OpenEmbedded-Core</link> for which
  7375. a layer is compatible.
  7376. Using the <filename>LAYERSERIES_COMPAT</filename> variable
  7377. allows the layer maintainer to indicate which combinations
  7378. of the layer and OE-Core can be expected to work.
  7379. The variable gives the system a way to detect when a layer
  7380. has not been tested with new releases of OE-Core (e.g.
  7381. the layer is not maintained).
  7382. </para>
  7383. <para>
  7384. To specify the OE-Core versions for which a layer is
  7385. compatible, use this variable in your layer's
  7386. <filename>conf/layer.conf</filename> configuration file.
  7387. For the list, use the Yocto Project
  7388. <ulink url='https://wiki.yoctoproject.org/wiki/Releases'>Release Name</ulink>
  7389. (e.g. &DISTRO_NAME_NO_CAP;).
  7390. To specify multiple OE-Core versions for the layer,
  7391. use a space-separated list:
  7392. <literallayout class='monospaced'>
  7393. LAYERSERIES_COMPAT_<replaceable>layer_root_name</replaceable> = "&DISTRO_NAME_NO_CAP; &DISTRO_NAME_NO_CAP_MINUS_ONE;"
  7394. </literallayout>
  7395. <note>
  7396. Setting <filename>LAYERSERIES_COMPAT</filename> is
  7397. required by the Yocto Project Compatible version 2
  7398. standard.
  7399. The OpenEmbedded build system produces a warning if
  7400. the variable is not set for any given layer.
  7401. </note>
  7402. </para>
  7403. <para>
  7404. See the
  7405. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-your-own-layer'>Creating Your Own Layer</ulink>"
  7406. section in the Yocto Project Development Tasks Manual.
  7407. </para>
  7408. </glossdef>
  7409. </glossentry>
  7410. <glossentry id='var-LAYERVERSION'><glossterm>LAYERVERSION</glossterm>
  7411. <info>
  7412. 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."
  7413. </info>
  7414. <glossdef>
  7415. <para role="glossdeffirst">
  7416. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7417. Optionally specifies the version of a layer as a single number.
  7418. You can use this within
  7419. <link linkend='var-LAYERDEPENDS'><filename>LAYERDEPENDS</filename></link>
  7420. for another layer in order to depend on a specific version
  7421. of the layer.
  7422. This variable is used in the <filename>conf/layer.conf</filename> file
  7423. and must be suffixed with the name of the specific layer (e.g.
  7424. <filename>LAYERVERSION_mylayer</filename>).
  7425. </para>
  7426. </glossdef>
  7427. </glossentry>
  7428. <glossentry id='var-LD'><glossterm>LD</glossterm>
  7429. <info>
  7430. LD[doc] = "Minimal command and arguments to run the linker."
  7431. </info>
  7432. <glossdef>
  7433. <para role="glossdeffirst">
  7434. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7435. The minimal command and arguments used to run the
  7436. linker.
  7437. </para>
  7438. </glossdef>
  7439. </glossentry>
  7440. <glossentry id='var-LDFLAGS'><glossterm>LDFLAGS</glossterm>
  7441. <info>
  7442. LDFLAGS[doc] = "Specifies the flags to pass to the linker."
  7443. </info>
  7444. <glossdef>
  7445. <para role="glossdeffirst">
  7446. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7447. Specifies the flags to pass to the linker.
  7448. This variable is exported to an environment
  7449. variable and thus made visible to the software being
  7450. built during the compilation step.
  7451. </para>
  7452. <para>
  7453. Default initialization for <filename>LDFLAGS</filename>
  7454. varies depending on what is being built:
  7455. <itemizedlist>
  7456. <listitem><para>
  7457. <link linkend='var-TARGET_LDFLAGS'><filename>TARGET_LDFLAGS</filename></link>
  7458. when building for the target
  7459. </para></listitem>
  7460. <listitem><para>
  7461. <link linkend='var-BUILD_LDFLAGS'><filename>BUILD_LDFLAGS</filename></link>
  7462. when building for the build host (i.e.
  7463. <filename>-native</filename>)
  7464. </para></listitem>
  7465. <listitem><para>
  7466. <link linkend='var-BUILDSDK_LDFLAGS'><filename>BUILDSDK_LDFLAGS</filename></link>
  7467. when building for an SDK (i.e.
  7468. <filename>nativesdk-</filename>)
  7469. </para></listitem>
  7470. </itemizedlist>
  7471. </para>
  7472. </glossdef>
  7473. </glossentry>
  7474. <glossentry id='var-LEAD_SONAME'><glossterm>LEAD_SONAME</glossterm>
  7475. <info>
  7476. 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."
  7477. </info>
  7478. <glossdef>
  7479. <para role="glossdeffirst">
  7480. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7481. Specifies the lead (or primary) compiled library file
  7482. (i.e. <filename>.so</filename>) that the
  7483. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  7484. class applies its naming policy to given a recipe that
  7485. packages multiple libraries.
  7486. </para>
  7487. <para>
  7488. This variable works in conjunction with the
  7489. <filename>debian</filename> class.
  7490. </para>
  7491. </glossdef>
  7492. </glossentry>
  7493. <glossentry id='var-LIC_FILES_CHKSUM'><glossterm>LIC_FILES_CHKSUM</glossterm>
  7494. <info>
  7495. LIC_FILES_CHKSUM[doc] = "Checksums of the license text in the recipe source code."
  7496. </info>
  7497. <glossdef>
  7498. <para role="glossdeffirst">
  7499. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7500. Checksums of the license text in the recipe source code.
  7501. </para>
  7502. <para>
  7503. This variable tracks changes in license text of the source
  7504. code files.
  7505. If the license text is changed, it will trigger a build
  7506. failure, which gives the developer an opportunity to review any
  7507. license change.
  7508. </para>
  7509. <para>
  7510. This variable must be defined for all recipes (unless
  7511. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  7512. is set to "CLOSED").</para>
  7513. <para>For more information, see the
  7514. "<ulink url='&YOCTO_DOCS_DEV_URL;#usingpoky-configuring-LIC_FILES_CHKSUM'>Tracking License Changes</ulink>"
  7515. section in the Yocto Project Development Tasks Manual.
  7516. </para>
  7517. </glossdef>
  7518. </glossentry>
  7519. <glossentry id='var-LICENSE'><glossterm>LICENSE</glossterm>
  7520. <info>
  7521. LICENSE[doc] = "The list of source licenses for the recipe. The logical operators &amp;, '|', and parentheses can be used."
  7522. </info>
  7523. <glossdef>
  7524. <para role="glossdeffirst">
  7525. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7526. The list of source licenses for the recipe.
  7527. Follow these rules:
  7528. <itemizedlist>
  7529. <listitem><para>Do not use spaces within individual
  7530. license names.</para></listitem>
  7531. <listitem><para>Separate license names using
  7532. | (pipe) when there is a choice between licenses.
  7533. </para></listitem>
  7534. <listitem><para>Separate license names using
  7535. &amp; (ampersand) when multiple licenses exist
  7536. that cover different parts of the source.
  7537. </para></listitem>
  7538. <listitem><para>You can use spaces between license
  7539. names.</para></listitem>
  7540. <listitem><para>For standard licenses, use the names
  7541. of the files in
  7542. <filename>meta/files/common-licenses/</filename>
  7543. or the
  7544. <link linkend='var-SPDXLICENSEMAP'><filename>SPDXLICENSEMAP</filename></link>
  7545. flag names defined in
  7546. <filename>meta/conf/licenses.conf</filename>.
  7547. </para></listitem>
  7548. </itemizedlist>
  7549. </para>
  7550. <para>
  7551. Here are some examples:
  7552. <literallayout class='monospaced'>
  7553. LICENSE = "LGPLv2.1 | GPLv3"
  7554. LICENSE = "MPL-1 &amp; LGPLv2.1"
  7555. LICENSE = "GPLv2+"
  7556. </literallayout>
  7557. The first example is from the recipes for Qt, which the user
  7558. may choose to distribute under either the LGPL version
  7559. 2.1 or GPL version 3.
  7560. The second example is from Cairo where two licenses cover
  7561. different parts of the source code.
  7562. The final example is from <filename>sysstat</filename>,
  7563. which presents a single license.
  7564. </para>
  7565. <para>
  7566. You can also specify licenses on a per-package basis to
  7567. handle situations where components of the output have
  7568. different licenses.
  7569. For example, a piece of software whose code is
  7570. licensed under GPLv2 but has accompanying documentation
  7571. licensed under the GNU Free Documentation License 1.2 could
  7572. be specified as follows:
  7573. <literallayout class='monospaced'>
  7574. LICENSE = "GFDL-1.2 &amp; GPLv2"
  7575. LICENSE_${PN} = "GPLv2"
  7576. LICENSE_${PN}-doc = "GFDL-1.2"
  7577. </literallayout>
  7578. </para>
  7579. </glossdef>
  7580. </glossentry>
  7581. <glossentry id='var-LICENSE_CREATE_PACKAGE'><glossterm>LICENSE_CREATE_PACKAGE</glossterm>
  7582. <info>
  7583. LICENSE_CREATE_PACKAGE[doc] = "Creates an extra package (i.e. ${PN}-lic) for each recipe and adds that package to the RRECOMMENDS+${PN}."
  7584. </info>
  7585. <glossdef>
  7586. <para role="glossdeffirst">
  7587. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7588. Setting <filename>LICENSE_CREATE_PACKAGE</filename>
  7589. to "1" causes the OpenEmbedded build system to create
  7590. an extra package (i.e.
  7591. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}-lic</filename>)
  7592. for each recipe and to add those packages to the
  7593. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link><filename>_${PN}</filename>.
  7594. </para>
  7595. <para>
  7596. The <filename>${PN}-lic</filename> package installs a
  7597. directory in <filename>/usr/share/licenses</filename>
  7598. named <filename>${PN}</filename>, which is the recipe's
  7599. base name, and installs files in that directory that
  7600. contain license and copyright information (i.e. copies of
  7601. the appropriate license files from
  7602. <filename>meta/common-licenses</filename> that match the
  7603. licenses specified in the
  7604. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  7605. variable of the recipe metadata and copies of files marked
  7606. in
  7607. <link linkend='var-LIC_FILES_CHKSUM'><filename>LIC_FILES_CHKSUM</filename></link>
  7608. as containing license text).
  7609. </para>
  7610. <para>
  7611. For related information on providing license text, see the
  7612. <link linkend='var-COPY_LIC_DIRS'><filename>COPY_LIC_DIRS</filename></link>
  7613. variable, the
  7614. <link linkend='var-COPY_LIC_MANIFEST'><filename>COPY_LIC_MANIFEST</filename></link>
  7615. variable, and the
  7616. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  7617. section in the Yocto Project Development Tasks Manual.
  7618. </para>
  7619. </glossdef>
  7620. </glossentry>
  7621. <glossentry id='var-LICENSE_FLAGS'><glossterm>LICENSE_FLAGS</glossterm>
  7622. <info>
  7623. 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."
  7624. </info>
  7625. <glossdef>
  7626. <para role="glossdeffirst">
  7627. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7628. Specifies additional flags for a recipe you must
  7629. whitelist through
  7630. <link linkend='var-LICENSE_FLAGS_WHITELIST'><filename>LICENSE_FLAGS_WHITELIST</filename></link>
  7631. in order to allow the recipe to be built.
  7632. When providing multiple flags, separate them with
  7633. spaces.
  7634. </para>
  7635. <para>
  7636. This value is independent of
  7637. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  7638. and is typically used to mark recipes that might
  7639. require additional licenses in order to be used in a
  7640. commercial product.
  7641. For more information, see the
  7642. "<ulink url='&YOCTO_DOCS_DEV_URL;#enabling-commercially-licensed-recipes'>Enabling Commercially Licensed Recipes</ulink>"
  7643. section in the Yocto Project Development Tasks Manual.
  7644. </para>
  7645. </glossdef>
  7646. </glossentry>
  7647. <glossentry id='var-LICENSE_FLAGS_WHITELIST'><glossterm>LICENSE_FLAGS_WHITELIST</glossterm>
  7648. <info>
  7649. LICENSE_FLAGS_WHITELIST[doc] = "Lists license flags that when specified in LICENSE_FLAGS within a recipe should not prevent that recipe from being built."
  7650. </info>
  7651. <glossdef>
  7652. <para role="glossdeffirst">
  7653. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7654. Lists license flags that when specified in
  7655. <link linkend='var-LICENSE_FLAGS'><filename>LICENSE_FLAGS</filename></link>
  7656. within a recipe should not prevent that recipe from being
  7657. built.
  7658. This practice is otherwise known as "whitelisting"
  7659. license flags.
  7660. For more information, see the
  7661. "<ulink url='&YOCTO_DOCS_DEV_URL;#enabling-commercially-licensed-recipes'>Enabling Commercially Licensed Recipes</ulink>"
  7662. section in the Yocto Project Development Tasks Manual.
  7663. </para>
  7664. </glossdef>
  7665. </glossentry>
  7666. <glossentry id='var-LICENSE_PATH'><glossterm>LICENSE_PATH</glossterm>
  7667. <info>
  7668. LICENSE_PATH[doc] = "Path to additional licenses used during the build."
  7669. </info>
  7670. <glossdef>
  7671. <para role="glossdeffirst">
  7672. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7673. Path to additional licenses used during the build.
  7674. By default, the OpenEmbedded build system uses <filename>COMMON_LICENSE_DIR</filename>
  7675. to define the directory that holds common license text used during the build.
  7676. The <filename>LICENSE_PATH</filename> variable allows you to extend that
  7677. location to other areas that have additional licenses:
  7678. <literallayout class='monospaced'>
  7679. LICENSE_PATH += "<replaceable>path-to-additional-common-licenses</replaceable>"
  7680. </literallayout>
  7681. </para>
  7682. </glossdef>
  7683. </glossentry>
  7684. <glossentry id='var-LINUX_KERNEL_TYPE'><glossterm>LINUX_KERNEL_TYPE</glossterm>
  7685. <info>
  7686. LINUX_KERNEL_TYPE[doc] = "Defines the kernel type to be used in assembling the configuration."
  7687. </info>
  7688. <glossdef>
  7689. <para role="glossdeffirst">
  7690. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7691. Defines the kernel type to be used in assembling the
  7692. configuration.
  7693. The linux-yocto recipes define "standard", "tiny", and
  7694. "preempt-rt" kernel types.
  7695. See the
  7696. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#kernel-types'>Kernel Types</ulink>"
  7697. section in the Yocto Project Linux Kernel Development
  7698. Manual for more information on kernel types.
  7699. </para>
  7700. <para>
  7701. If you do not specify a
  7702. <filename>LINUX_KERNEL_TYPE</filename>, it defaults to
  7703. "standard".
  7704. Together with
  7705. <link linkend='var-KMACHINE'><filename>KMACHINE</filename></link>,
  7706. the <filename>LINUX_KERNEL_TYPE</filename> variable
  7707. defines the search
  7708. arguments used by the kernel tools to find the appropriate
  7709. description within the kernel
  7710. <link linkend='metadata'>Metadata</link>
  7711. with which to build out the sources and configuration.
  7712. </para>
  7713. </glossdef>
  7714. </glossentry>
  7715. <glossentry id='var-LINUX_VERSION'><glossterm>LINUX_VERSION</glossterm>
  7716. <info>
  7717. 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."
  7718. </info>
  7719. <glossdef>
  7720. <para role="glossdeffirst">
  7721. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7722. The Linux version from <filename>kernel.org</filename>
  7723. on which the Linux kernel image being built using the
  7724. OpenEmbedded build system is based.
  7725. You define this variable in the kernel recipe.
  7726. For example, the <filename>linux-yocto-3.4.bb</filename>
  7727. kernel recipe found in
  7728. <filename>meta/recipes-kernel/linux</filename>
  7729. defines the variables as follows:
  7730. <literallayout class='monospaced'>
  7731. LINUX_VERSION ?= "3.4.24"
  7732. </literallayout>
  7733. </para>
  7734. <para>
  7735. The <filename>LINUX_VERSION</filename> variable is used to
  7736. define <link linkend='var-PV'><filename>PV</filename></link>
  7737. for the recipe:
  7738. <literallayout class='monospaced'>
  7739. PV = "${LINUX_VERSION}+git${SRCPV}"
  7740. </literallayout>
  7741. </para>
  7742. </glossdef>
  7743. </glossentry>
  7744. <glossentry id='var-LINUX_VERSION_EXTENSION'><glossterm>LINUX_VERSION_EXTENSION</glossterm>
  7745. <info>
  7746. 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."
  7747. </info>
  7748. <glossdef>
  7749. <para role="glossdeffirst">
  7750. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7751. A string extension compiled into the version
  7752. string of the Linux kernel built with the OpenEmbedded
  7753. build system.
  7754. You define this variable in the kernel recipe.
  7755. For example, the linux-yocto kernel recipes all define
  7756. the variable as follows:
  7757. <literallayout class='monospaced'>
  7758. LINUX_VERSION_EXTENSION ?= "-yocto-${<link linkend='var-LINUX_KERNEL_TYPE'>LINUX_KERNEL_TYPE</link>}"
  7759. </literallayout>
  7760. </para>
  7761. <para>
  7762. Defining this variable essentially sets the
  7763. Linux kernel configuration item
  7764. <filename>CONFIG_LOCALVERSION</filename>, which is visible
  7765. through the <filename>uname</filename> command.
  7766. Here is an example that shows the extension assuming it
  7767. was set as previously shown:
  7768. <literallayout class='monospaced'>
  7769. $ uname -r
  7770. 3.7.0-rc8-custom
  7771. </literallayout>
  7772. </para>
  7773. </glossdef>
  7774. </glossentry>
  7775. <glossentry id='var-LOG_DIR'><glossterm>LOG_DIR</glossterm>
  7776. <info>
  7777. LOG_DIR[doc] = "Specifies the directory to which the OpenEmbedded build system writes overall log files. The default directory is ${TMPDIR}/log"
  7778. </info>
  7779. <glossdef>
  7780. <para role="glossdeffirst">
  7781. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7782. Specifies the directory to which the OpenEmbedded build
  7783. system writes overall log files.
  7784. The default directory is <filename>${TMPDIR}/log</filename>.
  7785. </para>
  7786. <para>
  7787. For the directory containing logs specific to each task,
  7788. see the <link linkend='var-T'><filename>T</filename></link>
  7789. variable.
  7790. </para>
  7791. </glossdef>
  7792. </glossentry>
  7793. </glossdiv>
  7794. <glossdiv id='var-glossary-m'><title>M</title>
  7795. <glossentry id='var-MACHINE'><glossterm>MACHINE</glossterm>
  7796. <info>
  7797. 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."
  7798. </info>
  7799. <glossdef>
  7800. <para role="glossdeffirst">
  7801. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7802. Specifies the target device for which the image is built.
  7803. You define <filename>MACHINE</filename> in the
  7804. <filename>local.conf</filename> file found in the
  7805. <link linkend='build-directory'>Build Directory</link>.
  7806. By default, <filename>MACHINE</filename> is set to
  7807. "qemux86", which is an x86-based architecture machine to
  7808. be emulated using QEMU:
  7809. <literallayout class='monospaced'>
  7810. MACHINE ?= "qemux86"
  7811. </literallayout>
  7812. </para>
  7813. <para>
  7814. The variable corresponds to a machine configuration file of the
  7815. same name, through which machine-specific configurations are set.
  7816. Thus, when <filename>MACHINE</filename> is set to "qemux86" there
  7817. exists the corresponding <filename>qemux86.conf</filename> machine
  7818. configuration file, which can be found in the
  7819. <link linkend='source-directory'>Source Directory</link>
  7820. in <filename>meta/conf/machine</filename>.
  7821. </para>
  7822. <para>
  7823. The list of machines supported by the Yocto Project as
  7824. shipped include the following:
  7825. <literallayout class='monospaced'>
  7826. MACHINE ?= "qemuarm"
  7827. MACHINE ?= "qemuarm64"
  7828. MACHINE ?= "qemumips"
  7829. MACHINE ?= "qemumips64"
  7830. MACHINE ?= "qemuppc"
  7831. MACHINE ?= "qemux86"
  7832. MACHINE ?= "qemux86-64"
  7833. MACHINE ?= "genericx86"
  7834. MACHINE ?= "genericx86-64"
  7835. MACHINE ?= "beaglebone"
  7836. MACHINE ?= "mpc8315e-rdb"
  7837. MACHINE ?= "edgerouter"
  7838. </literallayout>
  7839. The last five are Yocto Project reference hardware boards, which
  7840. are provided in the <filename>meta-yocto-bsp</filename> layer.
  7841. <note>Adding additional Board Support Package (BSP) layers
  7842. to your configuration adds new possible settings for
  7843. <filename>MACHINE</filename>.
  7844. </note>
  7845. </para>
  7846. </glossdef>
  7847. </glossentry>
  7848. <glossentry id='var-MACHINE_ARCH'><glossterm>MACHINE_ARCH</glossterm>
  7849. <info>
  7850. MACHINE_ARCH[doc] = "Specifies the name of the machine-specific architecture. This variable is set automatically from MACHINE or TUNE_PKGARCH."
  7851. </info>
  7852. <glossdef>
  7853. <para role="glossdeffirst">
  7854. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7855. Specifies the name of the machine-specific architecture.
  7856. This variable is set automatically from
  7857. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>
  7858. or
  7859. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>.
  7860. You should not hand-edit the
  7861. <filename>MACHINE_ARCH</filename> variable.
  7862. </para>
  7863. </glossdef>
  7864. </glossentry>
  7865. <glossentry id='var-MACHINE_ESSENTIAL_EXTRA_RDEPENDS'><glossterm>MACHINE_ESSENTIAL_EXTRA_RDEPENDS</glossterm>
  7866. <info>
  7867. 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."
  7868. </info>
  7869. <glossdef>
  7870. <para role="glossdeffirst">
  7871. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7872. A list of required machine-specific packages to install as part of
  7873. the image being built.
  7874. The build process depends on these packages being present.
  7875. Furthermore, because this is a "machine-essential" variable, the list of
  7876. packages are essential for the machine to boot.
  7877. The impact of this variable affects images based on
  7878. <filename>packagegroup-core-boot</filename>,
  7879. including the <filename>core-image-minimal</filename> image.
  7880. </para>
  7881. <para>
  7882. This variable is similar to the
  7883. <filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'>MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</link></filename>
  7884. variable with the exception that the image being built has a build
  7885. dependency on the variable's list of packages.
  7886. In other words, the image will not build if a file in this list is not found.
  7887. </para>
  7888. <para>
  7889. As an example, suppose the machine for which you are building requires
  7890. <filename>example-init</filename> to be run during boot to initialize the hardware.
  7891. In this case, you would use the following in the machine's
  7892. <filename>.conf</filename> configuration file:
  7893. <literallayout class='monospaced'>
  7894. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  7895. </literallayout>
  7896. </para>
  7897. </glossdef>
  7898. </glossentry>
  7899. <glossentry id='var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'><glossterm>MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</glossterm>
  7900. <info>
  7901. 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."
  7902. </info>
  7903. <glossdef>
  7904. <para role="glossdeffirst">
  7905. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7906. A list of recommended machine-specific packages to install as part of
  7907. the image being built.
  7908. The build process does not depend on these packages being present.
  7909. However, because this is a "machine-essential" variable, the list of
  7910. packages are essential for the machine to boot.
  7911. The impact of this variable affects images based on
  7912. <filename>packagegroup-core-boot</filename>,
  7913. including the <filename>core-image-minimal</filename> image.
  7914. </para>
  7915. <para>
  7916. This variable is similar to the
  7917. <filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RDEPENDS'>MACHINE_ESSENTIAL_EXTRA_RDEPENDS</link></filename>
  7918. variable with the exception that the image being built does not have a build
  7919. dependency on the variable's list of packages.
  7920. In other words, the image will still build if a package in this list is not found.
  7921. Typically, this variable is used to handle essential kernel modules, whose
  7922. functionality may be selected to be built into the kernel rather than as a module,
  7923. in which case a package will not be produced.
  7924. </para>
  7925. <para>
  7926. Consider an example where you have a custom kernel where a specific touchscreen
  7927. driver is required for the machine to be usable.
  7928. However, the driver can be built as a module or
  7929. into the kernel depending on the kernel configuration.
  7930. If the driver is built as a module, you want it to be installed.
  7931. But, when the driver is built into the kernel, you still want the
  7932. build to succeed.
  7933. This variable sets up a "recommends" relationship so that in the latter case,
  7934. the build will not fail due to the missing package.
  7935. To accomplish this, assuming the package for the module was called
  7936. <filename>kernel-module-ab123</filename>, you would use the
  7937. following in the machine's <filename>.conf</filename> configuration
  7938. file:
  7939. <literallayout class='monospaced'>
  7940. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  7941. </literallayout>
  7942. <note>
  7943. In this example, the
  7944. <filename>kernel-module-ab123</filename> recipe
  7945. needs to explicitly set its
  7946. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  7947. variable to ensure that BitBake does not use the
  7948. kernel recipe's
  7949. <link linkend='var-PACKAGES_DYNAMIC'><filename>PACKAGES_DYNAMIC</filename></link>
  7950. variable to satisfy the dependency.
  7951. </note>
  7952. </para>
  7953. <para>
  7954. Some examples of these machine essentials are flash, screen, keyboard, mouse,
  7955. or touchscreen drivers (depending on the machine).
  7956. </para>
  7957. </glossdef>
  7958. </glossentry>
  7959. <glossentry id='var-MACHINE_EXTRA_RDEPENDS'><glossterm>MACHINE_EXTRA_RDEPENDS</glossterm>
  7960. <info>
  7961. 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."
  7962. </info>
  7963. <glossdef>
  7964. <para role="glossdeffirst">
  7965. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7966. A list of machine-specific packages to install as part of the
  7967. image being built that are not essential for the machine to boot.
  7968. However, the build process for more fully-featured images
  7969. depends on the packages being present.
  7970. </para>
  7971. <para>
  7972. This variable affects all images based on
  7973. <filename>packagegroup-base</filename>, which does not include the
  7974. <filename>core-image-minimal</filename> or <filename>core-image-full-cmdline</filename>
  7975. images.
  7976. </para>
  7977. <para>
  7978. The variable is similar to the
  7979. <filename><link linkend='var-MACHINE_EXTRA_RRECOMMENDS'>MACHINE_EXTRA_RRECOMMENDS</link></filename>
  7980. variable with the exception that the image being built has a build
  7981. dependency on the variable's list of packages.
  7982. In other words, the image will not build if a file in this list is not found.
  7983. </para>
  7984. <para>
  7985. An example is a machine that has WiFi capability but is not
  7986. essential for the machine to boot the image.
  7987. However, if you are building a more fully-featured image, you want to enable
  7988. the WiFi.
  7989. The package containing the firmware for the WiFi hardware is always
  7990. expected to exist, so it is acceptable for the build process to depend upon
  7991. finding the package.
  7992. In this case, assuming the package for the firmware was called
  7993. <filename>wifidriver-firmware</filename>, you would use the following in the
  7994. <filename>.conf</filename> file for the machine:
  7995. <literallayout class='monospaced'>
  7996. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  7997. </literallayout>
  7998. </para>
  7999. </glossdef>
  8000. </glossentry>
  8001. <glossentry id='var-MACHINE_EXTRA_RRECOMMENDS'><glossterm>MACHINE_EXTRA_RRECOMMENDS</glossterm>
  8002. <info>
  8003. 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."
  8004. </info>
  8005. <glossdef>
  8006. <para role="glossdeffirst">
  8007. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8008. A list of machine-specific packages to install as part of the
  8009. image being built that are not essential for booting the machine.
  8010. The image being built has no build dependency on this list of packages.
  8011. </para>
  8012. <para>
  8013. This variable affects only images based on
  8014. <filename>packagegroup-base</filename>, which does not include the
  8015. <filename>core-image-minimal</filename> or <filename>core-image-full-cmdline</filename>
  8016. images.
  8017. </para>
  8018. <para>
  8019. This variable is similar to the
  8020. <filename><link linkend='var-MACHINE_EXTRA_RDEPENDS'>MACHINE_EXTRA_RDEPENDS</link></filename>
  8021. variable with the exception that the image being built does not have a build
  8022. dependency on the variable's list of packages.
  8023. In other words, the image will build if a file in this list is not found.
  8024. </para>
  8025. <para>
  8026. An example is a machine that has WiFi capability but is not essential
  8027. For the machine to boot the image.
  8028. However, if you are building a more fully-featured image, you want to enable
  8029. WiFi.
  8030. In this case, the package containing the WiFi kernel module will not be produced
  8031. if the WiFi driver is built into the kernel, in which case you still want the
  8032. build to succeed instead of failing as a result of the package not being found.
  8033. To accomplish this, assuming the package for the module was called
  8034. <filename>kernel-module-examplewifi</filename>, you would use the
  8035. following in the <filename>.conf</filename> file for the machine:
  8036. <literallayout class='monospaced'>
  8037. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  8038. </literallayout>
  8039. </para>
  8040. </glossdef>
  8041. </glossentry>
  8042. <glossentry id='var-MACHINE_FEATURES'><glossterm>MACHINE_FEATURES</glossterm>
  8043. <info>
  8044. MACHINE_FEATURES[doc] = "Specifies the list of hardware features the MACHINE supports."
  8045. </info>
  8046. <glossdef>
  8047. <para role="glossdeffirst">
  8048. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8049. Specifies the list of hardware features the
  8050. <link linkend='var-MACHINE'><filename>MACHINE</filename></link> is capable
  8051. of supporting.
  8052. For related information on enabling features, see the
  8053. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>,
  8054. <link linkend='var-COMBINED_FEATURES'><filename>COMBINED_FEATURES</filename></link>,
  8055. and
  8056. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  8057. variables.
  8058. </para>
  8059. <para>
  8060. For a list of hardware features supported by the Yocto
  8061. Project as shipped, see the
  8062. "<link linkend='ref-features-machine'>Machine Features</link>"
  8063. section.
  8064. </para>
  8065. </glossdef>
  8066. </glossentry>
  8067. <glossentry id='var-MACHINE_FEATURES_BACKFILL'><glossterm>MACHINE_FEATURES_BACKFILL</glossterm>
  8068. <info>
  8069. 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."
  8070. </info>
  8071. <glossdef>
  8072. <para role="glossdeffirst">
  8073. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8074. Features to be added to
  8075. <filename><link linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link></filename>
  8076. if not also present in
  8077. <filename><link linkend='var-MACHINE_FEATURES_BACKFILL_CONSIDERED'>MACHINE_FEATURES_BACKFILL_CONSIDERED</link></filename>.
  8078. </para>
  8079. <para>
  8080. This variable is set in the <filename>meta/conf/bitbake.conf</filename> file.
  8081. It is not intended to be user-configurable.
  8082. It is best to just reference the variable to see which machine features are
  8083. being backfilled for all machine configurations.
  8084. See the "<link linkend='ref-features-backfill'>Feature Backfilling</link>" section for
  8085. more information.
  8086. </para>
  8087. </glossdef>
  8088. </glossentry>
  8089. <glossentry id='var-MACHINE_FEATURES_BACKFILL_CONSIDERED'><glossterm>MACHINE_FEATURES_BACKFILL_CONSIDERED</glossterm>
  8090. <info>
  8091. MACHINE_FEATURES_BACKFILL_CONSIDERED[doc] = "Features from MACHINE_FEATURES_BACKFILL that should not be backfilled (i.e. added to MACHINE_FEATURES) during the build."
  8092. </info>
  8093. <glossdef>
  8094. <para role="glossdeffirst">
  8095. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8096. Features from
  8097. <filename><link linkend='var-MACHINE_FEATURES_BACKFILL'>MACHINE_FEATURES_BACKFILL</link></filename>
  8098. that should not be backfilled (i.e. added to
  8099. <filename><link linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link></filename>)
  8100. during the build.
  8101. See the "<link linkend='ref-features-backfill'>Feature Backfilling</link>" section for
  8102. more information.
  8103. </para>
  8104. </glossdef>
  8105. </glossentry>
  8106. <glossentry id='var-MACHINEOVERRIDES'><glossterm>MACHINEOVERRIDES</glossterm>
  8107. <info>
  8108. MACHINEOVERRIDES[doc] = "A colon-separated list of overrides that apply to the current machine."
  8109. </info>
  8110. <glossdef>
  8111. <para role="glossdeffirst">
  8112. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8113. A colon-separated list of overrides that apply to the
  8114. current machine.
  8115. By default, this list includes the value of
  8116. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>.
  8117. </para>
  8118. <para>
  8119. You can extend <filename>MACHINEOVERRIDES</filename>
  8120. to add extra overrides that should apply to a machine.
  8121. For example, all machines emulated in QEMU (e.g.
  8122. <filename>qemuarm</filename>, <filename>qemux86</filename>,
  8123. and so forth) include a file named
  8124. <filename>meta/conf/machine/include/qemu.inc</filename>
  8125. that prepends the following override to
  8126. <filename>MACHINEOVERRIDES</filename>:
  8127. <literallayout class='monospaced'>
  8128. MACHINEOVERRIDES =. "qemuall:"
  8129. </literallayout>
  8130. This override allows variables to be overriden for all
  8131. machines emulated in QEMU, like in the following example
  8132. from the <filename>connman-conf</filename> recipe:
  8133. <literallayout class='monospaced'>
  8134. SRC_URI_append_qemuall = "file://wired.config \
  8135. file://wired-setup \
  8136. "
  8137. </literallayout>
  8138. The underlying mechanism behind
  8139. <filename>MACHINEOVERRIDES</filename> is simply that it is
  8140. included in the default value of
  8141. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  8142. </para>
  8143. </glossdef>
  8144. </glossentry>
  8145. <glossentry id='var-MAINTAINER'><glossterm>MAINTAINER</glossterm>
  8146. <info>
  8147. MAINTAINER[doc] = "The email address of the distribution maintainer."
  8148. </info>
  8149. <glossdef>
  8150. <para role="glossdeffirst">
  8151. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8152. The email address of the distribution maintainer.
  8153. </para>
  8154. </glossdef>
  8155. </glossentry>
  8156. <glossentry id='var-MIRRORS'><glossterm>MIRRORS</glossterm>
  8157. <info>
  8158. MIRRORS[doc] = "Specifies additional paths from which the OpenEmbedded build system gets source code."
  8159. </info>
  8160. <glossdef>
  8161. <para role="glossdeffirst">
  8162. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8163. Specifies additional paths from which the OpenEmbedded
  8164. build system gets source code.
  8165. When the build system searches for source code, it first
  8166. tries the local download directory.
  8167. If that location fails, the build system tries locations
  8168. defined by
  8169. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>,
  8170. the upstream source, and then locations specified by
  8171. <filename>MIRRORS</filename> in that order.
  8172. </para>
  8173. <para>
  8174. Assuming your distribution
  8175. (<link linkend='var-DISTRO'><filename>DISTRO</filename></link>)
  8176. is "poky", the default value for
  8177. <filename>MIRRORS</filename> is defined in the
  8178. <filename>conf/distro/poky.conf</filename> file in the
  8179. <filename>meta-poky</filename> Git repository.
  8180. </para>
  8181. </glossdef>
  8182. </glossentry>
  8183. <glossentry id='var-MLPREFIX'><glossterm>MLPREFIX</glossterm>
  8184. <info>
  8185. 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)."
  8186. </info>
  8187. <glossdef>
  8188. <para role="glossdeffirst">
  8189. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8190. Specifies a prefix has been added to
  8191. <link linkend='var-PN'><filename>PN</filename></link> to create a special version
  8192. of a recipe or package (i.e. a Multilib version).
  8193. The variable is used in places where the prefix needs to be
  8194. added to or removed from a the name (e.g. the
  8195. <link linkend='var-BPN'><filename>BPN</filename></link> variable).
  8196. <filename>MLPREFIX</filename> gets set when a prefix has been
  8197. added to <filename>PN</filename>.
  8198. <note>
  8199. The "ML" in <filename>MLPREFIX</filename> stands for
  8200. "MultiLib".
  8201. This representation is historical and comes from
  8202. a time when <filename>nativesdk</filename> was a suffix
  8203. rather than a prefix on the recipe name.
  8204. When <filename>nativesdk</filename> was turned into a
  8205. prefix, it made sense to set
  8206. <filename>MLPREFIX</filename> for it as well.
  8207. </note>
  8208. </para>
  8209. <para>
  8210. To help understand when <filename>MLPREFIX</filename>
  8211. might be needed, consider when
  8212. <link linkend='var-BBCLASSEXTEND'><filename>BBCLASSEXTEND</filename></link>
  8213. is used to provide a <filename>nativesdk</filename> version
  8214. of a recipe in addition to the target version.
  8215. If that recipe declares build-time dependencies on tasks in
  8216. other recipes by using
  8217. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>,
  8218. then a dependency on "foo" will automatically get rewritten
  8219. to a dependency on "nativesdk-foo".
  8220. However, dependencies like the following will not get
  8221. rewritten automatically:
  8222. <literallayout class='monospaced'>
  8223. do_foo[depends] += "<replaceable>recipe</replaceable>:do_foo"
  8224. </literallayout>
  8225. If you want such a dependency to also get transformed,
  8226. you can do the following:
  8227. <literallayout class='monospaced'>
  8228. do_foo[depends] += "${MLPREFIX}<replaceable>recipe</replaceable>:do_foo"
  8229. </literallayout>
  8230. </para>
  8231. </glossdef>
  8232. </glossentry>
  8233. <glossentry id='var-module_autoload'><glossterm>module_autoload</glossterm>
  8234. <info>
  8235. 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."
  8236. </info>
  8237. <glossdef>
  8238. <para role="glossdeffirst">
  8239. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8240. This variable has been replaced by the
  8241. <filename>KERNEL_MODULE_AUTOLOAD</filename> variable.
  8242. You should replace all occurrences of
  8243. <filename>module_autoload</filename> with additions to
  8244. <filename>KERNEL_MODULE_AUTOLOAD</filename>, for example:
  8245. <literallayout class='monospaced'>
  8246. module_autoload_rfcomm = "rfcomm"
  8247. </literallayout>
  8248. </para>
  8249. <para>
  8250. should now be replaced with:
  8251. <literallayout class='monospaced'>
  8252. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  8253. </literallayout>
  8254. See the
  8255. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  8256. variable for more information.
  8257. </para>
  8258. </glossdef>
  8259. </glossentry>
  8260. <glossentry id='var-module_conf'><glossterm>module_conf</glossterm>
  8261. <info>
  8262. module_conf[doc] = "Specifies modprobe.d syntax lines for inclusion in the /etc/modprobe.d/modname.conf file."
  8263. </info>
  8264. <glossdef>
  8265. <para role="glossdeffirst">
  8266. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8267. Specifies
  8268. <ulink url='http://linux.die.net/man/5/modprobe.d'><filename>modprobe.d</filename></ulink>
  8269. syntax lines for inclusion in the
  8270. <filename>/etc/modprobe.d/modname.conf</filename> file.
  8271. </para>
  8272. <para>
  8273. You can use this variable anywhere that it can be
  8274. recognized by the kernel recipe or out-of-tree kernel
  8275. module recipe (e.g. a machine configuration file, a
  8276. distribution configuration file, an append file for the
  8277. recipe, or the recipe itself).
  8278. If you use this variable, you must also be sure to list
  8279. the module name in the
  8280. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  8281. variable.
  8282. </para>
  8283. <para>
  8284. Here is the general syntax:
  8285. <literallayout class='monospaced'>
  8286. module_conf_<replaceable>module_name</replaceable> = "<replaceable>modprobe.d-syntax</replaceable>"
  8287. </literallayout>
  8288. You must use the kernel module name override.
  8289. </para>
  8290. <para>
  8291. Run <filename>man modprobe.d</filename> in the shell to
  8292. find out more information on the exact syntax
  8293. you want to provide with <filename>module_conf</filename>.
  8294. </para>
  8295. <para>
  8296. Including <filename>module_conf</filename> causes the
  8297. OpenEmbedded build system to populate the
  8298. <filename>/etc/modprobe.d/modname.conf</filename>
  8299. file with <filename>modprobe.d</filename> syntax lines.
  8300. Here is an example that adds the options
  8301. <filename>arg1</filename> and <filename>arg2</filename>
  8302. to a module named <filename>mymodule</filename>:
  8303. <literallayout class='monospaced'>
  8304. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  8305. </literallayout>
  8306. </para>
  8307. <para>
  8308. For information on how to specify kernel modules to
  8309. auto-load on boot, see the
  8310. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  8311. variable.
  8312. </para>
  8313. </glossdef>
  8314. </glossentry>
  8315. <glossentry id='var-MODULE_IMAGE_BASE_NAME'><glossterm>MODULE_IMAGE_BASE_NAME</glossterm>
  8316. <info>
  8317. MODULE_IMAGE_BASE_NAME[doc] = "The base name of the kernel modules tarball."
  8318. </info>
  8319. <glossdef>
  8320. <para role="glossdeffirst">
  8321. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8322. The base name of the kernel modules tarball.
  8323. This variable is set in the
  8324. <link linkend='ref-classes-kernel'>kernel</link> class
  8325. as follows:
  8326. <literallayout class='monospaced'>
  8327. MODULE_IMAGE_BASE_NAME ?= "modules-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
  8328. </literallayout>
  8329. </para>
  8330. <para>
  8331. See the
  8332. <link linkend='var-PKGE'><filename>PKGE</filename></link>,
  8333. <link linkend='var-PKGV'><filename>PKGV</filename></link>,
  8334. <link linkend='var-PKGR'><filename>PKGR</filename></link>,
  8335. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>,
  8336. and
  8337. <link linkend='var-DATETIME'><filename>DATETIME</filename></link>
  8338. variables for additional information.
  8339. </para>
  8340. </glossdef>
  8341. </glossentry>
  8342. <glossentry id='var-MODULE_TARBALL_DEPLOY'><glossterm>MODULE_TARBALL_DEPLOY</glossterm>
  8343. <info>
  8344. 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."
  8345. </info>
  8346. <glossdef>
  8347. <para role="glossdeffirst">
  8348. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8349. Controls creation of the <filename>modules-*.tgz</filename>
  8350. file.
  8351. Set this variable to "0" to disable creation of this
  8352. file, which contains all of the kernel modules resulting
  8353. from a kernel build.
  8354. </para>
  8355. </glossdef>
  8356. </glossentry>
  8357. <!--
  8358. <glossentry id='var-MULTIMACH_HOST_SYS'><glossterm>MULTIMACH_HOST_SYS</glossterm>
  8359. <info>
  8360. MULTIMACH_HOST_SYS[doc] = "Separates files for different machines such that you can build for multiple host machines using the same output directories."
  8361. </info>
  8362. <glossdef>
  8363. <para role="glossdeffirst">
  8364. -->
  8365. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8366. <!--
  8367. Serves the same purpose as
  8368. <link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>,
  8369. but for the "HOST" system, in situations that involve a
  8370. "HOST" and a "TARGET" system.
  8371. See the
  8372. <link linkend='var-STAGING_DIR_TARGET'><filename>STAGING_DIR_TARGET</filename></link>
  8373. variable for more information.
  8374. </para>
  8375. <para>
  8376. The default value of this variable is:
  8377. <literallayout class='monospaced'>
  8378. ${PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}
  8379. </literallayout>
  8380. </para>
  8381. </glossdef>
  8382. </glossentry>
  8383. -->
  8384. <glossentry id='var-MULTIMACH_TARGET_SYS'><glossterm>MULTIMACH_TARGET_SYS</glossterm>
  8385. <info>
  8386. MULTIMACH_TARGET_SYS[doc] = "Separates files for different machines such that you can build for multiple target machines using the same output directories."
  8387. </info>
  8388. <glossdef>
  8389. <para role="glossdeffirst">
  8390. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8391. Uniquely identifies the type of the target system for
  8392. which packages are being built.
  8393. This variable allows output for different types of target
  8394. systems to be put into different subdirectories of the same
  8395. output directory.
  8396. </para>
  8397. <para>
  8398. The default value of this variable is:
  8399. <literallayout class='monospaced'>
  8400. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  8401. </literallayout>
  8402. Some classes (e.g.
  8403. <link linkend='ref-classes-cross-canadian'><filename>cross-canadian</filename></link>)
  8404. modify the <filename>MULTIMACH_TARGET_SYS</filename> value.
  8405. </para>
  8406. <para>
  8407. See the
  8408. <link linkend='var-STAMP'><filename>STAMP</filename></link>
  8409. variable for an example.
  8410. See the
  8411. <link linkend='var-STAGING_DIR_TARGET'><filename>STAGING_DIR_TARGET</filename></link>
  8412. variable for more information.
  8413. </para>
  8414. </glossdef>
  8415. </glossentry>
  8416. </glossdiv>
  8417. <glossdiv id='var-glossary-n'><title>N</title>
  8418. <glossentry id='var-NATIVELSBSTRING'><glossterm>NATIVELSBSTRING</glossterm>
  8419. <info>
  8420. NATIVELSBSTRING[doc] = "A string identifying the host distribution."
  8421. </info>
  8422. <glossdef>
  8423. <para role="glossdeffirst">
  8424. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8425. A string identifying the host distribution.
  8426. Strings consist of the host distributor ID
  8427. followed by the release, as reported by the
  8428. <filename>lsb_release</filename> tool
  8429. or as read from <filename>/etc/lsb-release</filename>.
  8430. For example, when running a build on Ubuntu 12.10, the value
  8431. is "Ubuntu-12.10".
  8432. If this information is unable to be determined, the value
  8433. resolves to "Unknown".
  8434. </para>
  8435. <para>
  8436. This variable is used by default to isolate native shared
  8437. state packages for different distributions (e.g. to avoid
  8438. problems with <filename>glibc</filename> version
  8439. incompatibilities).
  8440. Additionally, the variable is checked against
  8441. <link linkend='var-SANITY_TESTED_DISTROS'><filename>SANITY_TESTED_DISTROS</filename></link>
  8442. if that variable is set.
  8443. </para>
  8444. </glossdef>
  8445. </glossentry>
  8446. <glossentry id='var-NM'><glossterm>NM</glossterm>
  8447. <info>
  8448. NM[doc] = "Minimal command and arguments to run 'nm'."
  8449. </info>
  8450. <glossdef>
  8451. <para role="glossdeffirst">
  8452. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8453. The minimal command and arguments to run
  8454. <filename>nm</filename>.
  8455. </para>
  8456. </glossdef>
  8457. </glossentry>
  8458. <glossentry id='var-NO_GENERIC_LICENSE'><glossterm>NO_GENERIC_LICENSE</glossterm>
  8459. <info>
  8460. NO_GENERIC_LICENSE[doc] = "Used to allow copying a license that does not exist in common licenses."
  8461. </info>
  8462. <glossdef>
  8463. <para role="glossdeffirst">
  8464. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8465. Avoids QA errors when you use a non-common, non-CLOSED
  8466. license in a recipe.
  8467. Packages exist, such as the linux-firmware package, with
  8468. many licenses that are not in any way common.
  8469. Also, new licenses are added occasionally to avoid
  8470. introducing a lot of common license files, which are only
  8471. applicable to a specific package.
  8472. <filename>NO_GENERIC_LICENSE</filename> is used to allow
  8473. copying a license that does not exist in common licenses.
  8474. </para>
  8475. <para>
  8476. The following example shows how to add
  8477. <filename>NO_GENERIC_LICENSE</filename> to a recipe:
  8478. <literallayout class='monospaced'>
  8479. NO_GENERIC_LICENSE[<replaceable>license_name</replaceable>] = "<replaceable>license_file_in_fetched_source</replaceable>"
  8480. </literallayout>
  8481. The following is an example that uses the
  8482. <filename>LICENSE.Abilis.txt</filename> file as the license
  8483. from the fetched source:
  8484. <literallayout class='monospaced'>
  8485. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  8486. </literallayout>
  8487. </para>
  8488. </glossdef>
  8489. </glossentry>
  8490. <glossentry id='var-NO_RECOMMENDATIONS'><glossterm>NO_RECOMMENDATIONS</glossterm>
  8491. <info>
  8492. 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."
  8493. </info>
  8494. <glossdef>
  8495. <para role="glossdeffirst">
  8496. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8497. Prevents installation of all "recommended-only" packages.
  8498. Recommended-only packages are packages installed only
  8499. through the
  8500. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link>
  8501. variable).
  8502. Setting the <filename>NO_RECOMMENDATIONS</filename> variable
  8503. to "1" turns this feature on:
  8504. <literallayout class='monospaced'>
  8505. NO_RECOMMENDATIONS = "1"
  8506. </literallayout>
  8507. </para>
  8508. <para>
  8509. You can set this variable globally in your
  8510. <filename>local.conf</filename> file or you can attach it to
  8511. a specific image recipe by using the recipe name override:
  8512. <literallayout class='monospaced'>
  8513. NO_RECOMMENDATIONS_pn-<replaceable>target_image</replaceable> = "1"
  8514. </literallayout>
  8515. </para>
  8516. <para>
  8517. It is important to realize that if you choose to not install
  8518. packages using this variable and some other packages are
  8519. dependent on them (i.e. listed in a recipe's
  8520. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  8521. variable), the OpenEmbedded build system ignores your
  8522. request and will install the packages to avoid dependency
  8523. errors.
  8524. <note>
  8525. Some recommended packages might be required for certain
  8526. system functionality, such as kernel modules.
  8527. It is up to you to add packages with the
  8528. <link linkend='var-IMAGE_INSTALL'><filename>IMAGE_INSTALL</filename></link>
  8529. variable.
  8530. </note>
  8531. </para>
  8532. <para>
  8533. Support for this variable exists only when using the
  8534. IPK and RPM packaging backend.
  8535. Support does not exist for DEB.
  8536. </para>
  8537. <para>
  8538. See the
  8539. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>
  8540. and the
  8541. <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link>
  8542. variables for related information.
  8543. </para>
  8544. </glossdef>
  8545. </glossentry>
  8546. <glossentry id='var-NOAUTOPACKAGEDEBUG'><glossterm>NOAUTOPACKAGEDEBUG</glossterm>
  8547. <info>
  8548. NOAUTOPACKAGEDEBUG[doc] = "Disables auto package from splitting .debug files."
  8549. </info>
  8550. <glossdef>
  8551. <para role="glossdeffirst">
  8552. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8553. Disables auto package from splitting
  8554. <filename>.debug</filename> files. If a recipe requires
  8555. <filename>FILES_${PN}-dbg</filename> to be set manually,
  8556. the <filename>NOAUTOPACKAGEDEBUG</filename> can be defined
  8557. allowing you to define the content of the debug package.
  8558. For example:
  8559. <literallayout class='monospaced'>
  8560. NOAUTOPACKAGEDEBUG = "1"
  8561. FILES_${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  8562. FILES_${PN}-dbg = "/usr/src/debug/"
  8563. FILES_${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  8564. </literallayout>
  8565. </para>
  8566. </glossdef>
  8567. </glossentry>
  8568. <glossentry id='var-NOHDD'><glossterm>NOHDD</glossterm>
  8569. <info>
  8570. NOHDD[doc] = "Causes the OpenEmbedded build system to skip building the .hddimg image."
  8571. </info>
  8572. <glossdef>
  8573. <para role="glossdeffirst">
  8574. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8575. Causes the OpenEmbedded build system to skip building the
  8576. <filename>.hddimg</filename> image.
  8577. The <filename>NOHDD</filename> variable is used with the
  8578. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  8579. class.
  8580. Set the variable to "1" to prevent the
  8581. <filename>.hddimg</filename> image from being built.
  8582. </para>
  8583. </glossdef>
  8584. </glossentry>
  8585. <glossentry id='var-NOISO'><glossterm>NOISO</glossterm>
  8586. <info>
  8587. NOISO[doc] = "Causes the OpenEmbedded build system to skip building the ISO image."
  8588. </info>
  8589. <glossdef>
  8590. <para role="glossdeffirst">
  8591. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8592. Causes the OpenEmbedded build system to skip building the
  8593. ISO image.
  8594. The <filename>NOISO</filename> variable is used with the
  8595. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  8596. class.
  8597. Set the variable to "1" to prevent the ISO image from
  8598. being built.
  8599. To enable building an ISO image, set the variable to "0".
  8600. </para>
  8601. </glossdef>
  8602. </glossentry>
  8603. </glossdiv>
  8604. <glossdiv id='var-glossary-o'><title>O</title>
  8605. <glossentry id='var-OBJCOPY'><glossterm>OBJCOPY</glossterm>
  8606. <info>
  8607. OBJCOPY[doc] = "Minimal command and arguments to run 'objcopy'."
  8608. </info>
  8609. <glossdef>
  8610. <para role="glossdeffirst">
  8611. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8612. The minimal command and arguments to run
  8613. <filename>objcopy</filename>.
  8614. </para>
  8615. </glossdef>
  8616. </glossentry>
  8617. <glossentry id='var-OBJDUMP'><glossterm>OBJDUMP</glossterm>
  8618. <info>
  8619. OBJDUMP[doc] = "Minimal command and arguments to run 'objdump'."
  8620. </info>
  8621. <glossdef>
  8622. <para role="glossdeffirst">
  8623. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8624. The minimal command and arguments to run
  8625. <filename>objdump</filename>.
  8626. </para>
  8627. </glossdef>
  8628. </glossentry>
  8629. <glossentry id='var-OE_BINCONFIG_EXTRA_MANGLE'><glossterm>OE_BINCONFIG_EXTRA_MANGLE</glossterm>
  8630. <info>
  8631. OE_BINCONFIG_EXTRA_MANGLE[doc] = "When a recipe inherits the binconfig.bbclass class, this variable specifies additional arguments passed to the "sed" command."
  8632. </info>
  8633. <glossdef>
  8634. <para role="glossdeffirst">
  8635. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8636. When inheriting the
  8637. <link linkend='ref-classes-binconfig'><filename>binconfig</filename></link>
  8638. class, this variable
  8639. specifies additional arguments passed to the "sed" command.
  8640. The sed command alters any paths in configuration scripts
  8641. that have been set up during compilation.
  8642. Inheriting this class results in all paths in these scripts
  8643. being changed to point into the
  8644. <filename>sysroots/</filename> directory so that all builds
  8645. that use the script will use the correct directories
  8646. for the cross compiling layout.
  8647. </para>
  8648. <para>
  8649. See the <filename>meta/classes/binconfig.bbclass</filename>
  8650. in the
  8651. <link linkend='source-directory'>Source Directory</link>
  8652. for details on how this class applies these additional
  8653. sed command arguments.
  8654. For general information on the
  8655. <filename>binconfig</filename> class, see the
  8656. "<link linkend='ref-classes-binconfig'><filename>binconfig.bbclass</filename></link>"
  8657. section.
  8658. </para>
  8659. </glossdef>
  8660. </glossentry>
  8661. <glossentry id='var-OE_IMPORTS'><glossterm>OE_IMPORTS</glossterm>
  8662. <info>
  8663. 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."
  8664. </info>
  8665. <glossdef>
  8666. <para role="glossdeffirst">
  8667. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8668. An internal variable used to tell the OpenEmbedded build
  8669. system what Python modules to import for every Python
  8670. function run by the system.
  8671. </para>
  8672. <note>
  8673. Do not set this variable.
  8674. It is for internal use only.
  8675. </note>
  8676. </glossdef>
  8677. </glossentry>
  8678. <glossentry id='var-OE_INIT_ENV_SCRIPT'><glossterm>OE_INIT_ENV_SCRIPT</glossterm>
  8679. <info>
  8680. 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."
  8681. </info>
  8682. <glossdef>
  8683. <para role="glossdeffirst">
  8684. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8685. The name of the build environment setup script for the
  8686. purposes of setting up the environment within the
  8687. extensible SDK.
  8688. The default value is "oe-init-build-env".
  8689. </para>
  8690. <para>
  8691. If you use a custom script to set up your build
  8692. environment, set the
  8693. <filename>OE_INIT_ENV_SCRIPT</filename> variable to its
  8694. name.
  8695. </para>
  8696. </glossdef>
  8697. </glossentry>
  8698. <glossentry id='var-OE_TERMINAL'><glossterm>OE_TERMINAL</glossterm>
  8699. <info>
  8700. OE_TERMINAL[doc] = "Controls how the OpenEmbedded build system spawns interactive terminals on the host development system."
  8701. </info>
  8702. <glossdef>
  8703. <para role="glossdeffirst">
  8704. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8705. Controls how the OpenEmbedded build system spawns
  8706. interactive terminals on the host development system
  8707. (e.g. using the BitBake command with the
  8708. <filename>-c devshell</filename> command-line option).
  8709. For more information, see the
  8710. "<ulink url='&YOCTO_DOCS_DEV_URL;#platdev-appdev-devshell'>Using a Development Shell</ulink>" section
  8711. in the Yocto Project Development Tasks Manual.
  8712. </para>
  8713. <para>
  8714. You can use the following values for the
  8715. <filename>OE_TERMINAL</filename> variable:
  8716. <literallayout class='monospaced'>
  8717. auto
  8718. gnome
  8719. xfce
  8720. rxvt
  8721. screen
  8722. konsole
  8723. none
  8724. </literallayout>
  8725. </para>
  8726. </glossdef>
  8727. </glossentry>
  8728. <glossentry id='var-OEROOT'><glossterm>OEROOT</glossterm>
  8729. <info>
  8730. OEROOT[doc] = "The directory from which the top-level build environment setup script is sourced."
  8731. </info>
  8732. <glossdef>
  8733. <para role="glossdeffirst">
  8734. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8735. The directory from which the top-level build environment
  8736. setup script is sourced.
  8737. The Yocto Project provides a top-level build environment
  8738. setup script:
  8739. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>.
  8740. When you run this script, the
  8741. <filename>OEROOT</filename> variable resolves to the
  8742. directory that contains the script.
  8743. </para>
  8744. <para>
  8745. For additional information on how this variable is used,
  8746. see the initialization script.
  8747. </para>
  8748. </glossdef>
  8749. </glossentry>
  8750. <glossentry id='var-OLDEST_KERNEL'><glossterm>OLDEST_KERNEL</glossterm>
  8751. <info>
  8752. OLDEST_KERNEL[doc] = "Declares the oldest version of the Linux kernel that the produced binaries must support."
  8753. </info>
  8754. <glossdef>
  8755. <para role="glossdeffirst">
  8756. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8757. Declares the oldest version of the Linux kernel that the
  8758. produced binaries must support.
  8759. This variable is passed into the build of the Embedded
  8760. GNU C Library (<filename>glibc</filename>).
  8761. </para>
  8762. <para>
  8763. The default for this variable comes from the
  8764. <filename>meta/conf/bitbake.conf</filename> configuration
  8765. file.
  8766. You can override this default by setting the variable
  8767. in a custom distribution configuration file.
  8768. </para>
  8769. </glossdef>
  8770. </glossentry>
  8771. <glossentry id='var-OVERRIDES'><glossterm>OVERRIDES</glossterm>
  8772. <info>
  8773. OVERRIDES[doc] = "A colon-separated list of overrides that currently apply."
  8774. </info>
  8775. <glossdef>
  8776. <para role="glossdeffirst">
  8777. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8778. A colon-separated list of overrides that currently apply.
  8779. Overrides are a BitBake mechanism that allows variables to
  8780. be selectively overridden at the end of parsing.
  8781. The set of overrides in <filename>OVERRIDES</filename>
  8782. represents the "state" during building, which includes
  8783. the current recipe being built, the machine for which
  8784. it is being built, and so forth.
  8785. </para>
  8786. <para>
  8787. As an example, if the string "an-override" appears as an
  8788. element in the colon-separated list in
  8789. <filename>OVERRIDES</filename>, then the following
  8790. assignment will override <filename>FOO</filename> with the
  8791. value "overridden" at the end of parsing:
  8792. <literallayout class='monospaced'>
  8793. FOO_an-override = "overridden"
  8794. </literallayout>
  8795. See the
  8796. "<ulink url='&YOCTO_DOCS_BB_URL;#conditional-syntax-overrides'>Conditional Syntax (Overrides)</ulink>"
  8797. section in the BitBake User Manual for more information on
  8798. the overrides mechanism.
  8799. </para>
  8800. <para>
  8801. The default value of <filename>OVERRIDES</filename>
  8802. includes the values of the
  8803. <link linkend='var-CLASSOVERRIDE'><filename>CLASSOVERRIDE</filename></link>,
  8804. <link linkend='var-MACHINEOVERRIDES'><filename>MACHINEOVERRIDES</filename></link>,
  8805. and
  8806. <link linkend='var-DISTROOVERRIDES'><filename>DISTROOVERRIDES</filename></link>
  8807. variables.
  8808. Another important override included by default is
  8809. <filename>pn-${PN}</filename>.
  8810. This override allows variables to be set for a single
  8811. recipe within configuration (<filename>.conf</filename>)
  8812. files.
  8813. Here is an example:
  8814. <literallayout class='monospaced'>
  8815. FOO_pn-myrecipe = "myrecipe-specific value"
  8816. </literallayout>
  8817. <note><title>Tip</title>
  8818. An easy way to see what overrides apply is to search for
  8819. <filename>OVERRIDES</filename> in the output of the
  8820. <filename>bitbake -e</filename> command.
  8821. See the
  8822. "<ulink url='&YOCTO_DOCS_DEV_URL;#dev-debugging-viewing-variable-values'>Viewing Variable Values</ulink>"
  8823. section in the Yocto Project Development Tasks
  8824. Manual for more information.
  8825. </note>
  8826. </para>
  8827. </glossdef>
  8828. </glossentry>
  8829. </glossdiv>
  8830. <glossdiv id='var-glossary-p'><title>P</title>
  8831. <glossentry id='var-P'><glossterm>P</glossterm>
  8832. <info>
  8833. P[doc] = "The recipe name and version. P is comprised of ${PN}-${PV}."
  8834. </info>
  8835. <glossdef>
  8836. <para role="glossdeffirst">
  8837. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8838. The recipe name and version.
  8839. <filename>P</filename> is comprised of the following:
  8840. <literallayout class='monospaced'>
  8841. ${PN}-${PV}
  8842. </literallayout>
  8843. </para>
  8844. </glossdef>
  8845. </glossentry>
  8846. <glossentry id='var-PACKAGE_ARCH'><glossterm>PACKAGE_ARCH</glossterm>
  8847. <info>
  8848. PACKAGE_ARCH[doc] = "The architecture of the resulting package or packages."
  8849. </info>
  8850. <glossdef>
  8851. <para role="glossdeffirst">
  8852. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8853. The architecture of the resulting package or packages.
  8854. </para>
  8855. <para>
  8856. By default, the value of this variable is set to
  8857. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>
  8858. when building for the target,
  8859. <link linkend='var-BUILD_ARCH'><filename>BUILD_ARCH</filename></link>
  8860. when building for the
  8861. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building
  8862. for the SDK.
  8863. <note>
  8864. See
  8865. <link linkend='var-SDK_ARCH'><filename>SDK_ARCH</filename></link>
  8866. for more information.
  8867. </note>
  8868. However, if your recipe's output packages are built
  8869. specific to the target machine rather than generally for
  8870. the architecture of the machine, you should set
  8871. <filename>PACKAGE_ARCH</filename> to the value of
  8872. <link linkend='var-MACHINE_ARCH'><filename>MACHINE_ARCH</filename></link>
  8873. in the recipe as follows:
  8874. <literallayout class='monospaced'>
  8875. PACKAGE_ARCH = "${MACHINE_ARCH}"
  8876. </literallayout>
  8877. </para>
  8878. </glossdef>
  8879. </glossentry>
  8880. <glossentry id='var-PACKAGE_ARCHS'><glossterm>PACKAGE_ARCHS</glossterm>
  8881. <info>
  8882. PACKAGE_ARCHS[doc] = "A list of architectures compatible with the given target in order of priority."
  8883. </info>
  8884. <glossdef>
  8885. <para role="glossdeffirst">
  8886. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8887. Specifies a list of architectures compatible with
  8888. the target machine.
  8889. This variable is set automatically and should not
  8890. normally be hand-edited.
  8891. Entries are separated using spaces and listed in order
  8892. of priority.
  8893. The default value for
  8894. <filename>PACKAGE_ARCHS</filename> is "all any noarch
  8895. ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  8896. </para>
  8897. </glossdef>
  8898. </glossentry>
  8899. <glossentry id='var-PACKAGE_BEFORE_PN'><glossterm>PACKAGE_BEFORE_PN</glossterm>
  8900. <info>
  8901. 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."
  8902. </info>
  8903. <glossdef>
  8904. <para role="glossdeffirst">
  8905. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8906. Enables easily adding packages to
  8907. <filename><link linkend='var-PACKAGES'>PACKAGES</link></filename>
  8908. before <filename>${<link linkend='var-PN'>PN</link>}</filename>
  8909. so that those added packages can pick up files that would normally be
  8910. included in the default package.
  8911. </para>
  8912. </glossdef>
  8913. </glossentry>
  8914. <glossentry id='var-PACKAGE_CLASSES'><glossterm>PACKAGE_CLASSES</glossterm>
  8915. <info>
  8916. 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."
  8917. </info>
  8918. <glossdef>
  8919. <para role="glossdeffirst">
  8920. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8921. This variable, which is set in the
  8922. <filename>local.conf</filename> configuration file found in
  8923. the <filename>conf</filename> folder of the
  8924. <link linkend='build-directory'>Build Directory</link>,
  8925. specifies the package manager the OpenEmbedded build system
  8926. uses when packaging data.
  8927. </para>
  8928. <para>
  8929. You can provide one or more of the following arguments for
  8930. the variable:
  8931. <literallayout class='monospaced'>
  8932. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk package_tar"
  8933. </literallayout>
  8934. <note><title>Warning</title>
  8935. While it is a legal option, the
  8936. <filename>package_tar</filename> class has limited
  8937. functionality due to no support for package
  8938. dependencies by that backend.
  8939. Therefore, it is recommended that you do not use it.
  8940. </note>
  8941. The build system uses only the first argument in the list
  8942. as the package manager when creating your image or SDK.
  8943. However, packages will be created using any additional
  8944. packaging classes you specify.
  8945. For example, if you use the following in your
  8946. <filename>local.conf</filename> file:
  8947. <literallayout class='monospaced'>
  8948. PACKAGE_CLASSES ?= "package_ipk"
  8949. </literallayout>
  8950. The OpenEmbedded build system uses the IPK package manager
  8951. to create your image or SDK.
  8952. </para>
  8953. <para>
  8954. For information on packaging and build performance effects
  8955. as a result of the package manager in use, see the
  8956. "<link linkend='ref-classes-package'><filename>package.bbclass</filename></link>"
  8957. section.
  8958. </para>
  8959. </glossdef>
  8960. </glossentry>
  8961. <glossentry id='var-PACKAGE_DEBUG_SPLIT_STYLE'><glossterm>PACKAGE_DEBUG_SPLIT_STYLE</glossterm>
  8962. <info>
  8963. 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)."
  8964. </info>
  8965. <glossdef>
  8966. <para role="glossdeffirst">
  8967. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8968. Determines how to split up the binary and debug information
  8969. when creating <filename>*-dbg</filename> packages to be
  8970. used with the GNU Project Debugger (GDB).
  8971. </para>
  8972. <para>
  8973. With the
  8974. <filename>PACKAGE_DEBUG_SPLIT_STYLE</filename> variable,
  8975. you can control where debug information, which can include
  8976. or exclude source files, is stored:
  8977. <itemizedlist>
  8978. <listitem><para>
  8979. ".debug": Debug symbol files are placed next
  8980. to the binary in a <filename>.debug</filename>
  8981. directory on the target.
  8982. For example, if a binary is installed into
  8983. <filename>/bin</filename>, the corresponding debug
  8984. symbol files are installed in
  8985. <filename>/bin/.debug</filename>.
  8986. Source files are placed in
  8987. <filename>/usr/src/debug</filename>.
  8988. This is the default behavior.
  8989. </para></listitem>
  8990. <listitem><para>
  8991. "debug-file-directory": Debug symbol files are
  8992. placed under <filename>/usr/lib/debug</filename>
  8993. on the target, and separated by the path from where
  8994. the binary is installed.
  8995. For example, if a binary is installed in
  8996. <filename>/bin</filename>, the corresponding debug
  8997. symbols are installed in
  8998. <filename>/usr/lib/debug/bin</filename>.
  8999. Source files are placed in
  9000. <filename>/usr/src/debug</filename>.
  9001. </para></listitem>
  9002. <listitem><para>
  9003. "debug-without-src": The same behavior as
  9004. ".debug" previously described with the exception
  9005. that no source files are installed.
  9006. </para></listitem>.
  9007. <listitem><para>
  9008. "debug-with-srcpkg": The same behavior as
  9009. ".debug" previously described with the exception
  9010. that all source files are placed in a separate
  9011. <filename>*-src</filename> pkg.
  9012. </para></listitem>
  9013. </itemizedlist>
  9014. </para>
  9015. <para>
  9016. You can find out more about debugging using GDB by reading
  9017. the
  9018. "<ulink url='&YOCTO_DOCS_DEV_URL;#platdev-gdb-remotedebug'>Debugging With the GNU Project Debugger (GDB) Remotely</ulink>"
  9019. section in the Yocto Project Development Tasks Manual.
  9020. </para>
  9021. </glossdef>
  9022. </glossentry>
  9023. <glossentry id='var-PACKAGE_EXCLUDE_COMPLEMENTARY'><glossterm>PACKAGE_EXCLUDE_COMPLEMENTARY</glossterm>
  9024. <info>
  9025. PACKAGE_EXCLUDE_COMPLEMENTARY[doc] = "Prevents specific packages from being installed when you are installing complementary packages."
  9026. </info>
  9027. <glossdef>
  9028. <para role="glossdeffirst">
  9029. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9030. Prevents specific packages from being installed when
  9031. you are installing complementary packages.
  9032. </para>
  9033. <para>
  9034. You might find that you want to prevent installing certain
  9035. packages when you are installing complementary packages.
  9036. For example, if you are using
  9037. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  9038. to install <filename>dev-pkgs</filename>, you might not want
  9039. to install all packages from a particular multilib.
  9040. If you find yourself in this situation, you can use the
  9041. <filename>PACKAGE_EXCLUDE_COMPLEMENTARY</filename> variable
  9042. to specify regular expressions to match the packages you
  9043. want to exclude.
  9044. </para>
  9045. </glossdef>
  9046. </glossentry>
  9047. <glossentry id='var-PACKAGE_EXCLUDE'><glossterm>PACKAGE_EXCLUDE</glossterm>
  9048. <info>
  9049. PACKAGE_EXCLUDE[doc] = "Packages to exclude from the installation. If a listed package is required, an error is generated."
  9050. </info>
  9051. <glossdef>
  9052. <para role="glossdeffirst">
  9053. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9054. Lists packages that should not be installed into an image.
  9055. For example:
  9056. <literallayout class='monospaced'>
  9057. PACKAGE_EXCLUDE = "<replaceable>package_name</replaceable> <replaceable>package_name</replaceable> <replaceable>package_name</replaceable> ..."
  9058. </literallayout>
  9059. </para>
  9060. <para>
  9061. You can set this variable globally in your
  9062. <filename>local.conf</filename> file or you can attach it to
  9063. a specific image recipe by using the recipe name override:
  9064. <literallayout class='monospaced'>
  9065. PACKAGE_EXCLUDE_pn-<replaceable>target_image</replaceable> = "<replaceable>package_name</replaceable>"
  9066. </literallayout>
  9067. </para>
  9068. <para>
  9069. If you choose to not install
  9070. a package using this variable and some other package is
  9071. dependent on it (i.e. listed in a recipe's
  9072. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  9073. variable), the OpenEmbedded build system generates a fatal
  9074. installation error.
  9075. Because the build system halts the process with a fatal
  9076. error, you can use the variable with an iterative
  9077. development process to remove specific components from a
  9078. system.
  9079. </para>
  9080. <para>
  9081. Support for this variable exists only when using the
  9082. IPK and RPM packaging backend.
  9083. Support does not exist for DEB.
  9084. </para>
  9085. <para>
  9086. See the
  9087. <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link>
  9088. and the
  9089. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>
  9090. variables for related information.
  9091. </para>
  9092. </glossdef>
  9093. </glossentry>
  9094. <glossentry id='var-PACKAGE_EXTRA_ARCHS'><glossterm>PACKAGE_EXTRA_ARCHS</glossterm>
  9095. <info>
  9096. 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."
  9097. </info>
  9098. <glossdef>
  9099. <para role="glossdeffirst">
  9100. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9101. Specifies the list of architectures compatible with the device CPU.
  9102. This variable is useful when you build for several different devices that use
  9103. miscellaneous processors such as XScale and ARM926-EJS.
  9104. </para>
  9105. </glossdef>
  9106. </glossentry>
  9107. <glossentry id='var-PACKAGE_FEED_ARCHS'><glossterm>PACKAGE_FEED_ARCHS</glossterm>
  9108. <info>
  9109. PACKAGE_FEED_ARCHS[doc] = "Optionally specifies user-defined package architectures when constructing package feed URIs."
  9110. </info>
  9111. <glossdef>
  9112. <para role="glossdeffirst">
  9113. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9114. Optionally specifies the package architectures used as
  9115. part of the package feed URIs during the build.
  9116. When used, the <filename>PACKAGE_FEED_ARCHS</filename>
  9117. variable is appended to the final package feed URI, which
  9118. is constructed using the
  9119. <link linkend='var-PACKAGE_FEED_URIS'><filename>PACKAGE_FEED_URIS</filename></link>
  9120. and
  9121. <link linkend='var-PACKAGE_FEED_BASE_PATHS'><filename>PACKAGE_FEED_BASE_PATHS</filename></link>
  9122. variables.
  9123. <note><title>Tip</title>
  9124. You can use the <filename>PACKAGE_FEEDS_ARCHS</filename>
  9125. variable to whitelist specific package architectures.
  9126. If you do not need to whitelist specific architectures,
  9127. which is a common case, you can omit this variable.
  9128. Omitting the variable results in all available
  9129. architectures for the current machine being included
  9130. into remote package feeds.
  9131. </note>
  9132. </para>
  9133. <para>
  9134. Consider the following example where the
  9135. <filename>PACKAGE_FEED_URIS</filename>,
  9136. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  9137. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  9138. defined in your <filename>local.conf</filename> file:
  9139. <literallayout class='monospaced'>
  9140. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  9141. https://example.com/packagerepos/updates"
  9142. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  9143. PACKAGE_FEED_ARCHS = "all core2-64"
  9144. </literallayout>
  9145. Given these settings, the resulting package feeds are
  9146. as follows:
  9147. <literallayout class='monospaced'>
  9148. https://example.com/packagerepos/release/rpm/all
  9149. https://example.com/packagerepos/release/rpm/core2-64
  9150. https://example.com/packagerepos/release/rpm-dev/all
  9151. https://example.com/packagerepos/release/rpm-dev/core2-64
  9152. https://example.com/packagerepos/updates/rpm/all
  9153. https://example.com/packagerepos/updates/rpm/core2-64
  9154. https://example.com/packagerepos/updates/rpm-dev/all
  9155. https://example.com/packagerepos/updates/rpm-dev/core2-64
  9156. </literallayout>
  9157. </para>
  9158. </glossdef>
  9159. </glossentry>
  9160. <glossentry id='var-PACKAGE_FEED_BASE_PATHS'><glossterm>PACKAGE_FEED_BASE_PATHS</glossterm>
  9161. <info>
  9162. PACKAGE_FEED_BASE_PATHS[doc] = "Specifies base path used when constructing package feed URIs."
  9163. </info>
  9164. <glossdef>
  9165. <para role="glossdeffirst">
  9166. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9167. Specifies the base path used when constructing package feed
  9168. URIs.
  9169. The <filename>PACKAGE_FEED_BASE_PATHS</filename> variable
  9170. makes up the middle portion of a package feed URI used
  9171. by the OpenEmbedded build system.
  9172. The base path lies between the
  9173. <link linkend='var-PACKAGE_FEED_URIS'><filename>PACKAGE_FEED_URIS</filename></link>
  9174. and
  9175. <link linkend='var-PACKAGE_FEED_ARCHS'><filename>PACKAGE_FEED_ARCHS</filename></link>
  9176. variables.
  9177. </para>
  9178. <para>
  9179. Consider the following example where the
  9180. <filename>PACKAGE_FEED_URIS</filename>,
  9181. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  9182. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  9183. defined in your <filename>local.conf</filename> file:
  9184. <literallayout class='monospaced'>
  9185. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  9186. https://example.com/packagerepos/updates"
  9187. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  9188. PACKAGE_FEED_ARCHS = "all core2-64"
  9189. </literallayout>
  9190. Given these settings, the resulting package feeds are
  9191. as follows:
  9192. <literallayout class='monospaced'>
  9193. https://example.com/packagerepos/release/rpm/all
  9194. https://example.com/packagerepos/release/rpm/core2-64
  9195. https://example.com/packagerepos/release/rpm-dev/all
  9196. https://example.com/packagerepos/release/rpm-dev/core2-64
  9197. https://example.com/packagerepos/updates/rpm/all
  9198. https://example.com/packagerepos/updates/rpm/core2-64
  9199. https://example.com/packagerepos/updates/rpm-dev/all
  9200. https://example.com/packagerepos/updates/rpm-dev/core2-64
  9201. </literallayout>
  9202. </para>
  9203. </glossdef>
  9204. </glossentry>
  9205. <glossentry id='var-PACKAGE_FEED_URIS'><glossterm>PACKAGE_FEED_URIS</glossterm>
  9206. <info>
  9207. PACKAGE_FEED_URIS[doc] = "Specifies the front portion of the package feed URI used by the OpenEmbedded build system."
  9208. </info>
  9209. <glossdef>
  9210. <para role="glossdeffirst">
  9211. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9212. Specifies the front portion of the package feed URI
  9213. used by the OpenEmbedded build system.
  9214. Each final package feed URI is comprised of
  9215. <filename>PACKAGE_FEED_URIS</filename>,
  9216. <link linkend='var-PACKAGE_FEED_BASE_PATHS'><filename>PACKAGE_FEED_BASE_PATHS</filename></link>,
  9217. and
  9218. <link linkend='var-PACKAGE_FEED_ARCHS'><filename>PACKAGE_FEED_ARCHS</filename></link>
  9219. variables.
  9220. </para>
  9221. <para>
  9222. Consider the following example where the
  9223. <filename>PACKAGE_FEED_URIS</filename>,
  9224. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  9225. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  9226. defined in your <filename>local.conf</filename> file:
  9227. <literallayout class='monospaced'>
  9228. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  9229. https://example.com/packagerepos/updates"
  9230. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  9231. PACKAGE_FEED_ARCHS = "all core2-64"
  9232. </literallayout>
  9233. Given these settings, the resulting package feeds are
  9234. as follows:
  9235. <literallayout class='monospaced'>
  9236. https://example.com/packagerepos/release/rpm/all
  9237. https://example.com/packagerepos/release/rpm/core2-64
  9238. https://example.com/packagerepos/release/rpm-dev/all
  9239. https://example.com/packagerepos/release/rpm-dev/core2-64
  9240. https://example.com/packagerepos/updates/rpm/all
  9241. https://example.com/packagerepos/updates/rpm/core2-64
  9242. https://example.com/packagerepos/updates/rpm-dev/all
  9243. https://example.com/packagerepos/updates/rpm-dev/core2-64
  9244. </literallayout>
  9245. </para>
  9246. </glossdef>
  9247. </glossentry>
  9248. <glossentry id='var-PACKAGE_GROUP'><glossterm>PACKAGE_GROUP</glossterm>
  9249. <info>
  9250. PACKAGE_GROUP[doc] = "Defines one or more packages to include in an image when a specific item is included in IMAGE_FEATURES."
  9251. </info>
  9252. <glossdef>
  9253. <para role="glossdeffirst">
  9254. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9255. The <filename>PACKAGE_GROUP</filename> variable has been
  9256. renamed to
  9257. <link linkend='var-FEATURE_PACKAGES'><filename>FEATURE_PACKAGES</filename></link>.
  9258. See the variable description for
  9259. <filename>FEATURE_PACKAGES</filename> for information.
  9260. </para>
  9261. <para>
  9262. If if you use the <filename>PACKAGE_GROUP</filename>
  9263. variable, the OpenEmbedded build system issues a warning
  9264. message.
  9265. </para>
  9266. </glossdef>
  9267. </glossentry>
  9268. <glossentry id='var-PACKAGE_INSTALL'><glossterm>PACKAGE_INSTALL</glossterm>
  9269. <info>
  9270. 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."
  9271. </info>
  9272. <glossdef>
  9273. <para role="glossdeffirst">
  9274. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9275. The final list of packages passed to the package manager
  9276. for installation into the image.
  9277. </para>
  9278. <para>
  9279. Because the package manager controls actual installation
  9280. of all packages, the list of packages passed using
  9281. <filename>PACKAGE_INSTALL</filename> is not the final list
  9282. of packages that are actually installed.
  9283. This variable is internal to the image construction
  9284. code.
  9285. Consequently, in general, you should use the
  9286. <link linkend='var-IMAGE_INSTALL'><filename>IMAGE_INSTALL</filename></link>
  9287. variable to specify packages for installation.
  9288. The exception to this is when working with
  9289. the
  9290. <link linkend='images-core-image-minimal-initramfs'><filename>core-image-minimal-initramfs</filename></link>
  9291. image.
  9292. When working with an initial RAM filesystem (initramfs)
  9293. image, use the <filename>PACKAGE_INSTALL</filename>
  9294. variable.
  9295. For information on creating an initramfs, see the
  9296. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  9297. section in the Yocto Project Development Tasks Manual.
  9298. </para>
  9299. </glossdef>
  9300. </glossentry>
  9301. <glossentry id='var-PACKAGE_INSTALL_ATTEMPTONLY'><glossterm>PACKAGE_INSTALL_ATTEMPTONLY</glossterm>
  9302. <info>
  9303. 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."
  9304. </info>
  9305. <glossdef>
  9306. <para role="glossdeffirst">
  9307. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9308. Specifies a list of packages the OpenEmbedded build
  9309. system attempts to install when creating an image.
  9310. If a listed package fails to install, the build system
  9311. does not generate an error.
  9312. This variable is generally not user-defined.
  9313. </para>
  9314. </glossdef>
  9315. </glossentry>
  9316. <glossentry id='var-PACKAGE_PREPROCESS_FUNCS'><glossterm>PACKAGE_PREPROCESS_FUNCS</glossterm>
  9317. <info>
  9318. 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."
  9319. </info>
  9320. <glossdef>
  9321. <para role="glossdeffirst">
  9322. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9323. Specifies a list of functions run to pre-process the
  9324. <link linkend='var-PKGD'><filename>PKGD</filename></link>
  9325. directory prior to splitting the files out to individual
  9326. packages.
  9327. </para>
  9328. </glossdef>
  9329. </glossentry>
  9330. <glossentry id='var-PACKAGE_WRITE_DEPS'><glossterm>PACKAGE_WRITE_DEPS</glossterm>
  9331. <info>
  9332. PACKAGE_WRITE_DEPS[doc] = "Specifies post-installation and pre-installation script dependencies on native/cross tools."
  9333. </info>
  9334. <glossdef>
  9335. <para role="glossdeffirst">
  9336. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9337. Specifies a list of dependencies for post-installation and
  9338. pre-installation scripts on native/cross tools.
  9339. If your post-installation or pre-installation script can
  9340. execute at rootfs creation time rather than on the
  9341. target but depends on a native tool in order to execute,
  9342. you need to list the tools in
  9343. <filename>PACKAGE_WRITE_DEPS</filename>.
  9344. </para>
  9345. <para>
  9346. For information on running post-installation scripts, see
  9347. the
  9348. "<ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-post-installation-scripts'>Post-Installation Scripts</ulink>"
  9349. section in the Yocto Project Development Tasks Manual.
  9350. </para>
  9351. </glossdef>
  9352. </glossentry>
  9353. <glossentry id='var-PACKAGECONFIG'><glossterm>PACKAGECONFIG</glossterm>
  9354. <info>
  9355. PACKAGECONFIG[doc] = "This variable provides a means of enabling or disabling features of a recipe on a per-recipe basis."
  9356. </info>
  9357. <glossdef>
  9358. <para role="glossdeffirst">
  9359. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9360. This variable provides a means of enabling or disabling
  9361. features of a recipe on a per-recipe basis.
  9362. <filename>PACKAGECONFIG</filename> blocks are defined
  9363. in recipes when you specify features and then arguments
  9364. that define feature behaviors.
  9365. Here is the basic block structure:
  9366. <literallayout class='monospaced'>
  9367. PACKAGECONFIG ??= "f1 f2 f3 ..."
  9368. PACKAGECONFIG[f1] = "--with-f1,--without-f1,build-deps-f1,rt-deps-f1"
  9369. PACKAGECONFIG[f2] = "--with-f2,--without-f2,build-deps-f2,rt-deps-f2"
  9370. PACKAGECONFIG[f3] = "--with-f3,--without-f3,build-deps-f3,rt-deps-f3"
  9371. </literallayout>
  9372. </para>
  9373. <para>
  9374. The <filename>PACKAGECONFIG</filename>
  9375. variable itself specifies a space-separated list of the
  9376. features to enable.
  9377. Following the features, you can determine the behavior of
  9378. each feature by providing up to four order-dependent
  9379. arguments, which are separated by commas.
  9380. You can omit any argument you like but must retain the
  9381. separating commas.
  9382. The order is important and specifies the following:
  9383. <orderedlist>
  9384. <listitem><para>Extra arguments
  9385. that should be added to the configure script
  9386. argument list
  9387. (<link linkend='var-EXTRA_OECONF'><filename>EXTRA_OECONF</filename></link>
  9388. or
  9389. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>)
  9390. if the feature is enabled.</para></listitem>
  9391. <listitem><para>Extra arguments
  9392. that should be added to <filename>EXTRA_OECONF</filename>
  9393. or <filename>PACKAGECONFIG_CONFARGS</filename>
  9394. if the feature is disabled.
  9395. </para></listitem>
  9396. <listitem><para>Additional build dependencies
  9397. (<link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>)
  9398. that should be added if the feature is enabled.
  9399. </para></listitem>
  9400. <listitem><para>Additional runtime dependencies
  9401. (<link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>)
  9402. that should be added if the feature is enabled.
  9403. </para></listitem>
  9404. </orderedlist>
  9405. </para>
  9406. <para>
  9407. Consider the following
  9408. <filename>PACKAGECONFIG</filename> block taken from the
  9409. <filename>librsvg</filename> recipe.
  9410. In this example the feature is <filename>croco</filename>,
  9411. which has three arguments that determine the feature's
  9412. behavior.
  9413. <literallayout class='monospaced'>
  9414. PACKAGECONFIG ??= "croco"
  9415. PACKAGECONFIG[croco] = "--with-croco,--without-croco,libcroco"
  9416. </literallayout>
  9417. The <filename>--with-croco</filename> and
  9418. <filename>libcroco</filename> arguments apply only if
  9419. the feature is enabled.
  9420. In this case, <filename>--with-croco</filename> is
  9421. added to the configure script argument list and
  9422. <filename>libcroco</filename> is added to
  9423. <filename>DEPENDS</filename>.
  9424. On the other hand, if the feature is disabled say through
  9425. a <filename>.bbappend</filename> file in another layer, then
  9426. the second argument <filename>--without-croco</filename> is
  9427. added to the configure script rather than
  9428. <filename>--with-croco</filename>.
  9429. </para>
  9430. <para>
  9431. The basic <filename>PACKAGECONFIG</filename> structure
  9432. previously described holds true regardless of whether you
  9433. are creating a block or changing a block.
  9434. When creating a block, use the structure inside your
  9435. recipe.
  9436. </para>
  9437. <para>
  9438. If you want to change an existing
  9439. <filename>PACKAGECONFIG</filename> block, you can do so
  9440. one of two ways:
  9441. <itemizedlist>
  9442. <listitem><para><emphasis>Append file:</emphasis>
  9443. Create an append file named
  9444. <replaceable>recipename</replaceable><filename>.bbappend</filename>
  9445. in your layer and override the value of
  9446. <filename>PACKAGECONFIG</filename>.
  9447. You can either completely override the variable:
  9448. <literallayout class='monospaced'>
  9449. PACKAGECONFIG="f4 f5"
  9450. </literallayout>
  9451. Or, you can just append the variable:
  9452. <literallayout class='monospaced'>
  9453. PACKAGECONFIG_append = " f4"
  9454. </literallayout></para></listitem>
  9455. <listitem><para><emphasis>Configuration file:</emphasis>
  9456. This method is identical to changing the block
  9457. through an append file except you edit your
  9458. <filename>local.conf</filename> or
  9459. <filename><replaceable>mydistro</replaceable>.conf</filename> file.
  9460. As with append files previously described,
  9461. you can either completely override the variable:
  9462. <literallayout class='monospaced'>
  9463. PACKAGECONFIG_pn-<replaceable>recipename</replaceable>="f4 f5"
  9464. </literallayout>
  9465. Or, you can just amend the variable:
  9466. <literallayout class='monospaced'>
  9467. PACKAGECONFIG_append_pn-<replaceable>recipename</replaceable> = " f4"
  9468. </literallayout></para></listitem>
  9469. </itemizedlist>
  9470. </para>
  9471. </glossdef>
  9472. </glossentry>
  9473. <glossentry id='var-PACKAGECONFIG_CONFARGS'><glossterm>PACKAGECONFIG_CONFARGS</glossterm>
  9474. <info>
  9475. PACKAGECONFIG_CONFARGS[doc] = "A space-separated list of configuration options generated from the PACKAGECONFIG setting."
  9476. </info>
  9477. <glossdef>
  9478. <para role="glossdeffirst">
  9479. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9480. A space-separated list of configuration options generated
  9481. from the
  9482. <link linkend='var-PACKAGECONFIG'><filename>PACKAGECONFIG</filename></link>
  9483. setting.
  9484. </para>
  9485. <para>
  9486. Classes such as
  9487. <link linkend='ref-classes-autotools'><filename>autotools</filename></link>
  9488. and
  9489. <link linkend='ref-classes-cmake'><filename>cmake</filename></link>
  9490. use <filename>PACKAGECONFIG_CONFARGS</filename> to pass
  9491. <filename>PACKAGECONFIG</filename> options to
  9492. <filename>configure</filename> and
  9493. <filename>cmake</filename>, respectively.
  9494. If you are using
  9495. <filename>PACKAGECONFIG</filename> but not a class that
  9496. handles the <filename>do_configure</filename> task, then
  9497. you need to use
  9498. <filename>PACKAGECONFIG_CONFARGS</filename> appropriately.
  9499. </para>
  9500. </glossdef>
  9501. </glossentry>
  9502. <glossentry id='var-PACKAGEGROUP_DISABLE_COMPLEMENTARY'><glossterm>PACKAGEGROUP_DISABLE_COMPLEMENTARY</glossterm>
  9503. <info>
  9504. PACKAGEGROUP_DISABLE_COMPLEMENTARY[doc] = "Prevents automatic creation of the normal complementary packages such as -dev and -dbg in a packagegroup recipe."
  9505. </info>
  9506. <glossdef>
  9507. <para role="glossdeffirst">
  9508. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9509. For recipes inheriting the
  9510. <link linkend='ref-classes-packagegroup'><filename>packagegroup</filename></link>
  9511. class, setting
  9512. <filename>PACKAGEGROUP_DISABLE_COMPLEMENTARY</filename> to
  9513. "1" specifies that the normal complementary packages
  9514. (i.e. <filename>-dev</filename>,
  9515. <filename>-dbg</filename>, and so forth) should not be
  9516. automatically created by the
  9517. <filename>packagegroup</filename> recipe, which is the
  9518. default behavior.
  9519. </para>
  9520. </glossdef>
  9521. </glossentry>
  9522. <glossentry id='var-PACKAGES'><glossterm>PACKAGES</glossterm>
  9523. <info>
  9524. PACKAGES[doc] = "The list of packages the recipe creates."
  9525. </info>
  9526. <glossdef>
  9527. <para role="glossdeffirst">
  9528. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9529. The list of packages the recipe creates.
  9530. The default value is the following:
  9531. <literallayout class='monospaced'>
  9532. ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  9533. </literallayout>
  9534. </para>
  9535. <para>
  9536. During packaging, the
  9537. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  9538. task goes through <filename>PACKAGES</filename> and uses
  9539. the
  9540. <link linkend='var-FILES'><filename>FILES</filename></link>
  9541. variable corresponding to each package to assign files to
  9542. the package.
  9543. If a file matches the <filename>FILES</filename> variable
  9544. for more than one package in <filename>PACKAGES</filename>,
  9545. it will be assigned to the earliest (leftmost) package.
  9546. </para>
  9547. <para>
  9548. Packages in the variable's list that are empty (i.e. where
  9549. none of the patterns in
  9550. <filename>FILES_</filename><replaceable>pkg</replaceable>
  9551. match any files installed by the
  9552. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  9553. task) are not generated, unless generation is forced through
  9554. the
  9555. <link linkend='var-ALLOW_EMPTY'><filename>ALLOW_EMPTY</filename></link>
  9556. variable.
  9557. </para>
  9558. </glossdef>
  9559. </glossentry>
  9560. <glossentry id='var-PACKAGES_DYNAMIC'><glossterm>PACKAGES_DYNAMIC</glossterm>
  9561. <info>
  9562. PACKAGES_DYNAMIC[doc] = "A promise that your recipe satisfies runtime dependencies for optional modules that are found in other recipes."
  9563. </info>
  9564. <glossdef>
  9565. <para role="glossdeffirst">
  9566. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9567. A promise that your recipe satisfies runtime dependencies
  9568. for optional modules that are found in other recipes.
  9569. <filename>PACKAGES_DYNAMIC</filename>
  9570. does not actually satisfy the dependencies, it only states that
  9571. they should be satisfied.
  9572. For example, if a hard, runtime dependency
  9573. (<link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>)
  9574. of another package is satisfied
  9575. at build time through the <filename>PACKAGES_DYNAMIC</filename>
  9576. variable, but a package with the module name is never actually
  9577. produced, then the other package will be broken.
  9578. Thus, if you attempt to include that package in an image,
  9579. you will get a dependency failure from the packaging system
  9580. during the
  9581. <link linkend='ref-tasks-rootfs'><filename>do_rootfs</filename></link>
  9582. task.
  9583. </para>
  9584. <para>
  9585. Typically, if there is a chance that such a situation can
  9586. occur and the package that is not created is valid
  9587. without the dependency being satisfied, then you should use
  9588. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link>
  9589. (a soft runtime dependency) instead of
  9590. <filename>RDEPENDS</filename>.
  9591. </para>
  9592. <para>
  9593. For an example of how to use the <filename>PACKAGES_DYNAMIC</filename>
  9594. variable when you are splitting packages, see the
  9595. "<ulink url='&YOCTO_DOCS_DEV_URL;#handling-optional-module-packaging'>Handling Optional Module Packaging</ulink>" section
  9596. in the Yocto Project Development Tasks Manual.
  9597. </para>
  9598. </glossdef>
  9599. </glossentry>
  9600. <glossentry id='var-PACKAGESPLITFUNCS'><glossterm>PACKAGESPLITFUNCS</glossterm>
  9601. <info>
  9602. PACKAGESPLITFUNCS[doc] = "Specifies a list of functions run to perform additional splitting of files into individual packages."
  9603. </info>
  9604. <glossdef>
  9605. <para role="glossdeffirst">
  9606. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9607. Specifies a list of functions run to perform additional
  9608. splitting of files into individual packages.
  9609. Recipes can either prepend to this variable or prepend
  9610. to the <filename>populate_packages</filename> function
  9611. in order to perform additional package splitting.
  9612. In either case, the function should set
  9613. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>,
  9614. <link linkend='var-FILES'><filename>FILES</filename></link>,
  9615. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  9616. and other packaging variables appropriately in order to
  9617. perform the desired splitting.
  9618. </para>
  9619. </glossdef>
  9620. </glossentry>
  9621. <glossentry id='var-PARALLEL_MAKE'><glossterm>PARALLEL_MAKE</glossterm>
  9622. <info>
  9623. 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."
  9624. </info>
  9625. <glossdef>
  9626. <para role="glossdeffirst">
  9627. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9628. Extra options passed to the <filename>make</filename>
  9629. command during the
  9630. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>
  9631. task in order to specify parallel compilation on the local
  9632. build host.
  9633. This variable is usually in the form "-j <replaceable>x</replaceable>",
  9634. where <replaceable>x</replaceable> represents the maximum
  9635. number of parallel threads <filename>make</filename> can
  9636. run.
  9637. <note><title>Caution</title>
  9638. In order for <filename>PARALLEL_MAKE</filename> to be
  9639. effective, <filename>make</filename> must be called
  9640. with
  9641. <filename>${</filename><link linkend='var-EXTRA_OEMAKE'><filename>EXTRA_OEMAKE</filename></link><filename>}</filename>.
  9642. An easy way to ensure this is to use the
  9643. <filename>oe_runmake</filename> function.
  9644. </note>
  9645. </para>
  9646. <para>
  9647. By default, the OpenEmbedded build system automatically
  9648. sets this variable to be equal to the number of cores the
  9649. build system uses.
  9650. <note>
  9651. If the software being built experiences dependency
  9652. issues during the <filename>do_compile</filename>
  9653. task that result in race conditions, you can clear
  9654. the <filename>PARALLEL_MAKE</filename> variable within
  9655. the recipe as a workaround.
  9656. For information on addressing race conditions, see the
  9657. "<ulink url='&YOCTO_DOCS_DEV_URL;#debugging-parallel-make-races'>Debugging Parallel Make Races</ulink>"
  9658. section in the Yocto Project Development Tasks Manual.
  9659. </note>
  9660. For single socket systems (i.e. one CPU), you should not
  9661. have to override this variable to gain optimal parallelism
  9662. during builds.
  9663. However, if you have very large systems that employ
  9664. multiple physical CPUs, you might want to make sure the
  9665. <filename>PARALLEL_MAKE</filename> variable is not
  9666. set higher than "-j 20".
  9667. </para>
  9668. <para>
  9669. For more information on speeding up builds, see the
  9670. "<ulink url='&YOCTO_DOCS_DEV_URL;#speeding-up-a-build'>Speeding Up a Build</ulink>"
  9671. section in the Yocto Project Development Tasks Manual.
  9672. </para>
  9673. </glossdef>
  9674. </glossentry>
  9675. <glossentry id='var-PARALLEL_MAKEINST'><glossterm>PARALLEL_MAKEINST</glossterm>
  9676. <info>
  9677. PARALLEL_MAKEINST[doc] = "Extra options passed to the make install command during the do_install task in order to specify parallel installation."
  9678. </info>
  9679. <glossdef>
  9680. <para role="glossdeffirst">
  9681. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9682. Extra options passed to the
  9683. <filename>make install</filename> command during the
  9684. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  9685. task in order to specify parallel installation.
  9686. This variable defaults to the value of
  9687. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>.
  9688. <note><title>Notes and Cautions</title>
  9689. <para>In order for <filename>PARALLEL_MAKEINST</filename>
  9690. to be
  9691. effective, <filename>make</filename> must be called
  9692. with
  9693. <filename>${</filename><link linkend='var-EXTRA_OEMAKE'><filename>EXTRA_OEMAKE</filename></link><filename>}</filename>.
  9694. An easy way to ensure this is to use the
  9695. <filename>oe_runmake</filename> function.</para>
  9696. <para>If the software being built experiences
  9697. dependency issues during the
  9698. <filename>do_install</filename> task that result in
  9699. race conditions, you can clear the
  9700. <filename>PARALLEL_MAKEINST</filename> variable within
  9701. the recipe as a workaround.
  9702. For information on addressing race conditions, see the
  9703. "<ulink url='&YOCTO_DOCS_DEV_URL;#debugging-parallel-make-races'>Debugging Parallel Make Races</ulink>"
  9704. section in the Yocto Project Development Tasks Manual.
  9705. </para>
  9706. </note>
  9707. </para>
  9708. </glossdef>
  9709. </glossentry>
  9710. <glossentry id='var-PATCHRESOLVE'><glossterm>PATCHRESOLVE</glossterm>
  9711. <info>
  9712. PATCHRESOLVE[doc] = "Enable or disable interactive patch resolution."
  9713. </info>
  9714. <glossdef>
  9715. <para role="glossdeffirst">
  9716. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9717. Determines the action to take when a patch fails.
  9718. You can set this variable to one of two values: "noop" and
  9719. "user".
  9720. </para>
  9721. <para>
  9722. The default value of "noop" causes the build to simply fail
  9723. when the OpenEmbedded build system cannot successfully
  9724. apply a patch.
  9725. Setting the value to "user" causes the build system to
  9726. launch a shell and places you in the right location so that
  9727. you can manually resolve the conflicts.
  9728. </para>
  9729. <para>
  9730. Set this variable in your
  9731. <filename>local.conf</filename> file.
  9732. </para>
  9733. </glossdef>
  9734. </glossentry>
  9735. <glossentry id='var-PATCHTOOL'><glossterm>PATCHTOOL</glossterm>
  9736. <info>
  9737. PATCHTOOL[doc] = "Specifies the utility used to apply patches for a recipe during do_patch."
  9738. </info>
  9739. <glossdef>
  9740. <para role="glossdeffirst">
  9741. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9742. Specifies the utility used to apply patches for a recipe
  9743. during the
  9744. <link linkend='ref-tasks-patch'><filename>do_patch</filename></link>
  9745. task.
  9746. You can specify one of three utilities: "patch", "quilt", or
  9747. "git".
  9748. The default utility used is "quilt" except for the
  9749. quilt-native recipe itself.
  9750. Because the quilt tool is not available at the
  9751. time quilt-native is being patched, it uses "patch".
  9752. </para>
  9753. <para>
  9754. If you wish to use an alternative patching tool, set the
  9755. variable in the recipe using one of the following:
  9756. <literallayout class='monospaced'>
  9757. PATCHTOOL = "patch"
  9758. PATCHTOOL = "quilt"
  9759. PATCHTOOL = "git"
  9760. </literallayout>
  9761. </para>
  9762. </glossdef>
  9763. </glossentry>
  9764. <glossentry id='var-PE'><glossterm>PE</glossterm>
  9765. <info>
  9766. 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."
  9767. </info>
  9768. <glossdef>
  9769. <para role="glossdeffirst">
  9770. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9771. The epoch of the recipe.
  9772. By default, this variable is unset.
  9773. The variable is used to make upgrades possible when the
  9774. versioning scheme changes in some backwards incompatible
  9775. way.
  9776. </para>
  9777. <para>
  9778. <filename>PE</filename> is the default value of the
  9779. <link linkend='var-PKGE'><filename>PKGE</filename></link>
  9780. variable.
  9781. </para>
  9782. </glossdef>
  9783. </glossentry>
  9784. <glossentry id='var-PF'><glossterm>PF</glossterm>
  9785. <info>
  9786. PF[doc] = "Specifies the recipe or package name and includes all version and revision numbers. This variable is comprised of ${PN}-${EXTENDPE}${PV}-${PR}."
  9787. </info>
  9788. <glossdef>
  9789. <para role="glossdeffirst">
  9790. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9791. Specifies the recipe or package name and includes all version and revision
  9792. numbers (i.e. <filename>glibc-2.13-r20+svnr15508/</filename> and
  9793. <filename>bash-4.2-r1/</filename>).
  9794. This variable is comprised of the following:
  9795. <literallayout class='monospaced'>
  9796. ${<link linkend='var-PN'>PN</link>}-${<link linkend='var-EXTENDPE'>EXTENDPE</link>}${<link linkend='var-PV'>PV</link>}-${<link linkend='var-PR'>PR</link>}
  9797. </literallayout>
  9798. </para>
  9799. </glossdef>
  9800. </glossentry>
  9801. <glossentry id='var-PIXBUF_PACKAGES'><glossterm>PIXBUF_PACKAGES</glossterm>
  9802. <info>
  9803. PIXBUF_PACKAGES[doc] = "When a recipe inherits the pixbufcache class, this variable identifies packages that contain the pixbuf loaders used with gdk-pixbuf."
  9804. </info>
  9805. <glossdef>
  9806. <para role="glossdeffirst">
  9807. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9808. When inheriting the
  9809. <link linkend='ref-classes-pixbufcache'><filename>pixbufcache</filename></link>
  9810. class, this variable identifies packages that contain
  9811. the pixbuf loaders used with
  9812. <filename>gdk-pixbuf</filename>.
  9813. By default, the <filename>pixbufcache</filename> class
  9814. assumes that the loaders are in the recipe's main package
  9815. (i.e. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  9816. Use this variable if the loaders you need are in a package
  9817. other than that main package.
  9818. </para>
  9819. </glossdef>
  9820. </glossentry>
  9821. <glossentry id='var-PKG'><glossterm>PKG</glossterm>
  9822. <info>
  9823. 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."
  9824. </info>
  9825. <glossdef>
  9826. <para role="glossdeffirst">
  9827. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9828. The name of the resulting package created by the
  9829. OpenEmbedded build system.
  9830. <note>
  9831. When using the <filename>PKG</filename> variable, you
  9832. must use a package name override.
  9833. </note>
  9834. </para>
  9835. <para>
  9836. For example, when the
  9837. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  9838. class renames the output package, it does so by setting
  9839. <filename>PKG_<replaceable>packagename</replaceable></filename>.
  9840. </para>
  9841. </glossdef>
  9842. </glossentry>
  9843. <glossentry id='var-PKG_CONFIG_PATH'><glossterm>PKG_CONFIG_PATH</glossterm>
  9844. <info>
  9845. PKG_CONFIG_PATH[doc] = "Path to pkg-config files for the current build context."
  9846. </info>
  9847. <glossdef>
  9848. <para role="glossdeffirst">
  9849. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9850. The path to <filename>pkg-config</filename> files for the
  9851. current build context.
  9852. <filename>pkg-config</filename> reads this variable
  9853. from the environment.
  9854. </para>
  9855. </glossdef>
  9856. </glossentry>
  9857. <glossentry id='var-PKGD'><glossterm>PKGD</glossterm>
  9858. <info>
  9859. PKGD[doc] = "Points to the destination directory for files to be packaged before they are split into individual packages."
  9860. </info>
  9861. <glossdef>
  9862. <para role="glossdeffirst">
  9863. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9864. Points to the destination directory for files to be
  9865. packaged before they are split into individual packages.
  9866. This directory defaults to the following:
  9867. <literallayout class='monospaced'>
  9868. ${WORKDIR}/package
  9869. </literallayout>
  9870. </para>
  9871. <para>
  9872. Do not change this default.
  9873. </para>
  9874. </glossdef>
  9875. </glossentry>
  9876. <glossentry id='var-PKGDATA_DIR'><glossterm>PKGDATA_DIR</glossterm>
  9877. <info>
  9878. PKGDATA_DIR[doc] = "Points to a shared, global-state directory that holds data generated during the packaging process."
  9879. </info>
  9880. <glossdef>
  9881. <para role="glossdeffirst">
  9882. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9883. Points to a shared, global-state directory that holds data
  9884. generated during the packaging process.
  9885. During the packaging process, the
  9886. <link linkend='ref-tasks-packagedata'><filename>do_packagedata</filename></link>
  9887. task packages data for each recipe and installs it into
  9888. this temporary, shared area.
  9889. This directory defaults to the following, which you should
  9890. not change:
  9891. <literallayout class='monospaced'>
  9892. ${STAGING_DIR_HOST}/pkgdata
  9893. </literallayout>
  9894. For examples of how this data is used, see the
  9895. "<ulink url='&YOCTO_DOCS_OM_URL;#automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</ulink>"
  9896. section in the Yocto Project Overview and Concepts Manual
  9897. and the
  9898. "<ulink url='&YOCTO_DOCS_DEV_URL;#viewing-package-information-with-oe-pkgdata-util'>Viewing Package Information with <filename>oe-pkgdata-util</filename></ulink>"
  9899. section in the Yocto Project Development Tasks Manual.
  9900. For more information on the shared, global-state directory,
  9901. see
  9902. <link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>.
  9903. </para>
  9904. </glossdef>
  9905. </glossentry>
  9906. <glossentry id='var-PKGDEST'><glossterm>PKGDEST</glossterm>
  9907. <info>
  9908. PKGDEST[doc] = "Points to the parent directory for files to be packaged after they have been split into individual packages."
  9909. </info>
  9910. <glossdef>
  9911. <para role="glossdeffirst">
  9912. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9913. Points to the parent directory for files to be packaged
  9914. after they have been split into individual packages.
  9915. This directory defaults to the following:
  9916. <literallayout class='monospaced'>
  9917. ${WORKDIR}/packages-split
  9918. </literallayout>
  9919. </para>
  9920. <para>
  9921. Under this directory, the build system creates
  9922. directories for each package specified in
  9923. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>.
  9924. Do not change this default.
  9925. </para>
  9926. </glossdef>
  9927. </glossentry>
  9928. <glossentry id='var-PKGDESTWORK'><glossterm>PKGDESTWORK</glossterm>
  9929. <info>
  9930. PKGDESTWORK[doc] = "Points to a temporary work area where the do_package task saves package metadata."
  9931. </info>
  9932. <glossdef>
  9933. <para role="glossdeffirst">
  9934. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9935. Points to a temporary work area where the
  9936. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  9937. task saves package metadata.
  9938. The <filename>PKGDESTWORK</filename> location defaults to
  9939. the following:
  9940. <literallayout class='monospaced'>
  9941. ${WORKDIR}/pkgdata
  9942. </literallayout>
  9943. Do not change this default.
  9944. </para>
  9945. <para>
  9946. The
  9947. <link linkend='ref-tasks-packagedata'><filename>do_packagedata</filename></link>
  9948. task copies the package metadata from
  9949. <filename>PKGDESTWORK</filename> to
  9950. <link linkend='var-PKGDATA_DIR'><filename>PKGDATA_DIR</filename></link>
  9951. to make it available globally.
  9952. </para>
  9953. </glossdef>
  9954. </glossentry>
  9955. <glossentry id='var-PKGE'><glossterm>PKGE</glossterm>
  9956. <info>
  9957. PKGE[doc] = "The epoch of the package(s) built by the recipe."
  9958. </info>
  9959. <glossdef>
  9960. <para role="glossdeffirst">
  9961. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9962. The epoch of the package(s) built by the recipe.
  9963. By default, <filename>PKGE</filename> is set to
  9964. <link linkend='var-PE'><filename>PE</filename></link>.
  9965. </para>
  9966. </glossdef>
  9967. </glossentry>
  9968. <glossentry id='var-PKGR'><glossterm>PKGR</glossterm>
  9969. <info>
  9970. PKGR[doc] = "The revision of the package(s) built by the recipe."
  9971. </info>
  9972. <glossdef>
  9973. <para role="glossdeffirst">
  9974. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9975. The revision of the package(s) built by the recipe.
  9976. By default, <filename>PKGR</filename> is set to
  9977. <link linkend='var-PR'><filename>PR</filename></link>.
  9978. </para>
  9979. </glossdef>
  9980. </glossentry>
  9981. <glossentry id='var-PKGV'><glossterm>PKGV</glossterm>
  9982. <info>
  9983. PKGV[doc] = "The version of the package(s) built by the recipe."
  9984. </info>
  9985. <glossdef>
  9986. <para role="glossdeffirst">
  9987. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9988. The version of the package(s) built by the
  9989. recipe.
  9990. By default, <filename>PKGV</filename> is set to
  9991. <link linkend='var-PV'><filename>PV</filename></link>.
  9992. </para>
  9993. </glossdef>
  9994. </glossentry>
  9995. <glossentry id='var-PN'><glossterm>PN</glossterm>
  9996. <info>
  9997. 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.
  9998. </info>
  9999. <glossdef>
  10000. <para role="glossdeffirst">
  10001. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10002. This variable can have two separate functions depending on the context: a recipe
  10003. name or a resulting package name.
  10004. </para>
  10005. <para>
  10006. <filename>PN</filename> refers to a recipe name in the context of a file used
  10007. by the OpenEmbedded build system as input to create a package.
  10008. The name is normally extracted from the recipe file name.
  10009. For example, if the recipe is named
  10010. <filename>expat_2.0.1.bb</filename>, then the default value of <filename>PN</filename>
  10011. will be "expat".
  10012. </para>
  10013. <para>
  10014. The variable refers to a package name in the context of a file created or produced by the
  10015. OpenEmbedded build system.
  10016. </para>
  10017. <para>
  10018. If applicable, the <filename>PN</filename> variable also contains any special
  10019. suffix or prefix.
  10020. For example, using <filename>bash</filename> to build packages for the native
  10021. machine, <filename>PN</filename> is <filename>bash-native</filename>.
  10022. Using <filename>bash</filename> to build packages for the target and for Multilib,
  10023. <filename>PN</filename> would be <filename>bash</filename> and
  10024. <filename>lib64-bash</filename>, respectively.
  10025. </para>
  10026. </glossdef>
  10027. </glossentry>
  10028. <glossentry id='var-PNBLACKLIST'><glossterm>PNBLACKLIST</glossterm>
  10029. <info>
  10030. PNBLACKLIST[doc] = "Lists recipes you do not want the OpenEmbedded build system to build."
  10031. </info>
  10032. <glossdef>
  10033. <para role="glossdeffirst">
  10034. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10035. Lists recipes you do not want the OpenEmbedded build system
  10036. to build.
  10037. This variable works in conjunction with the
  10038. <link linkend='ref-classes-blacklist'><filename>blacklist</filename></link>
  10039. class, which is inherited globally.
  10040. </para>
  10041. <para>
  10042. To prevent a recipe from being built, use the
  10043. <filename>PNBLACKLIST</filename> variable in your
  10044. <filename>local.conf</filename> file.
  10045. Here is an example that prevents
  10046. <filename>myrecipe</filename> from being built:
  10047. <literallayout class='monospaced'>
  10048. PNBLACKLIST[myrecipe] = "Not supported by our organization."
  10049. </literallayout>
  10050. </para>
  10051. </glossdef>
  10052. </glossentry>
  10053. <glossentry id='var-POPULATE_SDK_POST_HOST_COMMAND'><glossterm>POPULATE_SDK_POST_HOST_COMMAND</glossterm>
  10054. <info>
  10055. 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."
  10056. </info>
  10057. <glossdef>
  10058. <para role="glossdeffirst">
  10059. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10060. Specifies a list of functions to call once the
  10061. OpenEmbedded build system has created the host part of
  10062. the SDK.
  10063. You can specify functions separated by semicolons:
  10064. <literallayout class='monospaced'>
  10065. POPULATE_SDK_POST_HOST_COMMAND += "<replaceable>function</replaceable>; ... "
  10066. </literallayout>
  10067. </para>
  10068. <para>
  10069. If you need to pass the SDK path to a command
  10070. within a function, you can use
  10071. <filename>${SDK_DIR}</filename>, which points to
  10072. the parent directory used by the OpenEmbedded build
  10073. system when creating SDK output.
  10074. See the
  10075. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  10076. variable for more information.
  10077. </para>
  10078. </glossdef>
  10079. </glossentry>
  10080. <glossentry id='var-POPULATE_SDK_POST_TARGET_COMMAND'><glossterm>POPULATE_SDK_POST_TARGET_COMMAND</glossterm>
  10081. <info>
  10082. 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."
  10083. </info>
  10084. <glossdef>
  10085. <para role="glossdeffirst">
  10086. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10087. Specifies a list of functions to call once the
  10088. OpenEmbedded build system has created the target part of
  10089. the SDK.
  10090. You can specify functions separated by semicolons:
  10091. <literallayout class='monospaced'>
  10092. POPULATE_SDK_POST_TARGET_COMMAND += "<replaceable>function</replaceable>; ... "
  10093. </literallayout>
  10094. </para>
  10095. <para>
  10096. If you need to pass the SDK path to a command
  10097. within a function, you can use
  10098. <filename>${SDK_DIR}</filename>, which points to
  10099. the parent directory used by the OpenEmbedded build
  10100. system when creating SDK output.
  10101. See the
  10102. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  10103. variable for more information.
  10104. </para>
  10105. </glossdef>
  10106. </glossentry>
  10107. <glossentry id='var-PR'><glossterm>PR</glossterm>
  10108. <info>
  10109. PR[doc] = "The revision of the recipe. The default value for this variable is 'r0'."
  10110. </info>
  10111. <glossdef>
  10112. <para role="glossdeffirst">
  10113. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10114. The revision of the recipe. The default value for this
  10115. variable is "r0".
  10116. Subsequent revisions of the recipe conventionally have the
  10117. values "r1", "r2", and so forth.
  10118. When
  10119. <link linkend='var-PV'><filename>PV</filename></link>
  10120. increases, <filename>PR</filename> is conventionally reset
  10121. to "r0".
  10122. <note>
  10123. The OpenEmbedded build system does not need the aid of
  10124. <filename>PR</filename> to know when to rebuild a
  10125. recipe.
  10126. The build system uses the task
  10127. <ulink url='&YOCTO_DOCS_OM_URL;#overview-checksums'>input checksums</ulink>
  10128. along with the
  10129. <link linkend='structure-build-tmp-stamps'>stamp</link>
  10130. and
  10131. <ulink url='&YOCTO_DOCS_OM_URL;#shared-state-cache'>shared state cache</ulink>
  10132. mechanisms.
  10133. </note>
  10134. The <filename>PR</filename> variable primarily becomes
  10135. significant when a package manager dynamically installs
  10136. packages on an already built image.
  10137. In this case, <filename>PR</filename>, which is the default
  10138. value of
  10139. <link linkend='var-PKGR'><filename>PKGR</filename></link>,
  10140. helps the package manager distinguish which package is the
  10141. most recent one in cases where many packages have the same
  10142. <filename>PV</filename> (i.e. <filename>PKGV</filename>).
  10143. A component having many packages with the same
  10144. <filename>PV</filename> usually means that the packages all
  10145. install the same upstream version, but with later
  10146. (<filename>PR</filename>) version packages including
  10147. packaging fixes.
  10148. <note>
  10149. <filename>PR</filename> does not need to be increased
  10150. for changes that do not change the package contents or
  10151. metadata.
  10152. </note>
  10153. Because manually managing <filename>PR</filename> can be
  10154. cumbersome and error-prone, an automated solution exists.
  10155. See the
  10156. "<ulink url='&YOCTO_DOCS_DEV_URL;#working-with-a-pr-service'>Working With a PR Service</ulink>"
  10157. section in the Yocto Project Development Tasks Manual
  10158. for more information.
  10159. </para>
  10160. </glossdef>
  10161. </glossentry>
  10162. <glossentry id='var-PREFERRED_PROVIDER'><glossterm>PREFERRED_PROVIDER</glossterm>
  10163. <info>
  10164. PREFERRED_PROVIDER[doc] = "If multiple recipes provide an item, this variable determines which recipe should be given preference."
  10165. </info>
  10166. <glossdef>
  10167. <para role="glossdeffirst">
  10168. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10169. If multiple recipes provide the same item, this variable
  10170. determines which recipe is preferred and thus provides
  10171. the item (i.e. the preferred provider).
  10172. You should always suffix this variable with the name of the
  10173. provided item.
  10174. And, you should define the variable using the preferred
  10175. recipe's name
  10176. (<link linkend='var-PN'><filename>PN</filename></link>).
  10177. Here is a common example:
  10178. <literallayout class='monospaced'>
  10179. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  10180. </literallayout>
  10181. In the previous example, multiple recipes are providing
  10182. "virtual/kernel".
  10183. The <filename>PREFERRED_PROVIDER</filename> variable is
  10184. set with the name (<filename>PN</filename>) of the recipe
  10185. you prefer to provide "virtual/kernel".
  10186. </para>
  10187. <para>
  10188. Following are more examples:
  10189. <literallayout class='monospaced'>
  10190. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  10191. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  10192. </literallayout>
  10193. For more information, see the
  10194. "<ulink url='&YOCTO_DOCS_DEV_URL;#metadata-virtual-providers'>Using Virtual Providers</ulink>"
  10195. section in the Yocto Project Development Tasks Manual.
  10196. <note>
  10197. If you use a <filename>virtual/*</filename> item
  10198. with <filename>PREFERRED_PROVIDER</filename>, then any
  10199. recipe that
  10200. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  10201. that item but is not selected (defined) by
  10202. <filename>PREFERRED_PROVIDER</filename> is prevented
  10203. from building, which is usually desirable since this
  10204. mechanism is designed to select between mutually
  10205. exclusive alternative providers.
  10206. </note>
  10207. </para>
  10208. </glossdef>
  10209. </glossentry>
  10210. <glossentry id='var-PREFERRED_VERSION'><glossterm>PREFERRED_VERSION</glossterm>
  10211. <info>
  10212. PREFERRED_VERSION[doc] = "If there are multiple versions of recipes available, this variable determines which recipe should be given preference."
  10213. </info>
  10214. <glossdef>
  10215. <para role="glossdeffirst">
  10216. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10217. If multiple versions of recipes exist, this
  10218. variable determines which version is given preference.
  10219. You must always suffix the variable with the
  10220. <link linkend='var-PN'><filename>PN</filename></link>
  10221. you want to select, and you should set the
  10222. <link linkend='var-PV'><filename>PV</filename></link>
  10223. accordingly for precedence.
  10224. </para>
  10225. <para>
  10226. The <filename>PREFERRED_VERSION</filename> variable
  10227. supports limited wildcard use through the
  10228. "<filename>%</filename>" character.
  10229. You can use the character to match any number of
  10230. characters, which can be useful when specifying versions
  10231. that contain long revision numbers that potentially change.
  10232. Here are two examples:
  10233. <literallayout class='monospaced'>
  10234. PREFERRED_VERSION_python = "3.4.0"
  10235. PREFERRED_VERSION_linux-yocto = "4.12%"
  10236. </literallayout>
  10237. <note><title>Important</title>
  10238. The use of the "<filename>%</filename>" character
  10239. is limited in that it only works at the end of the
  10240. string.
  10241. You cannot use the wildcard character in any other
  10242. location of the string.
  10243. </note>
  10244. </para>
  10245. <para>
  10246. The specified version is matched against
  10247. <link linkend='var-PV'><filename>PV</filename></link>,
  10248. which does not necessarily match the version part of
  10249. the recipe's filename.
  10250. For example, consider two recipes
  10251. <filename>foo_1.2.bb</filename> and
  10252. <filename>foo_git.bb</filename> where
  10253. <filename>foo_git.bb</filename> contains the following
  10254. assignment:
  10255. <literallayout class='monospaced'>
  10256. PV = "1.1+git${SRCPV}"
  10257. </literallayout>
  10258. In this case, the correct way to select
  10259. <filename>foo_git.bb</filename> is by using an
  10260. assignment such as the following:
  10261. <literallayout class='monospaced'>
  10262. PREFERRED_VERSION_foo = "1.1+git%"
  10263. </literallayout>
  10264. Compare that previous example against the following
  10265. incorrect example, which does not work:
  10266. <literallayout class='monospaced'>
  10267. PREFERRED_VERSION_foo = "git"
  10268. </literallayout>
  10269. </para>
  10270. <para>
  10271. Sometimes the <filename>PREFERRED_VERSION</filename>
  10272. variable can be set by configuration files in a way that
  10273. is hard to change.
  10274. You can use
  10275. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>
  10276. to set a machine-specific override.
  10277. Here is an example:
  10278. <literallayout class='monospaced'>
  10279. PREFERRED_VERSION_linux-yocto_qemux86 = "4.12%"
  10280. </literallayout>
  10281. Although not recommended, worst case, you can also use the
  10282. "forcevariable" override, which is the strongest override
  10283. possible.
  10284. Here is an example:
  10285. <literallayout class='monospaced'>
  10286. PREFERRED_VERSION_linux-yocto_forcevariable = "4.12%"
  10287. </literallayout>
  10288. <note>
  10289. The <filename>_forcevariable</filename> override is
  10290. not handled specially.
  10291. This override only works because the default value of
  10292. <filename>OVERRIDES</filename> includes
  10293. "forcevariable".
  10294. </note>
  10295. </para>
  10296. </glossdef>
  10297. </glossentry>
  10298. <glossentry id='var-PREMIRRORS'><glossterm>PREMIRRORS</glossterm>
  10299. <info>
  10300. PREMIRRORS[doc] = "Specifies additional paths from which the OpenEmbedded build system gets source code."
  10301. </info>
  10302. <glossdef>
  10303. <para role="glossdeffirst">
  10304. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10305. Specifies additional paths from which the OpenEmbedded
  10306. build system gets source code.
  10307. When the build system searches for source code, it first
  10308. tries the local download directory.
  10309. If that location fails, the build system tries locations
  10310. defined by <filename>PREMIRRORS</filename>, the upstream
  10311. source, and then locations specified by
  10312. <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link>
  10313. in that order.
  10314. </para>
  10315. <para>
  10316. Assuming your distribution
  10317. (<link linkend='var-DISTRO'><filename>DISTRO</filename></link>)
  10318. is "poky", the default value for
  10319. <filename>PREMIRRORS</filename> is defined in the
  10320. <filename>conf/distro/poky.conf</filename> file in the
  10321. <filename>meta-poky</filename> Git repository.
  10322. </para>
  10323. <para>
  10324. Typically, you could add a specific server for the
  10325. build system to attempt before any others by adding
  10326. something like the following to the
  10327. <filename>local.conf</filename> configuration file in the
  10328. <link linkend='build-directory'>Build Directory</link>:
  10329. <literallayout class='monospaced'>
  10330. PREMIRRORS_prepend = "\
  10331. git://.*/.* http://www.yoctoproject.org/sources/ \n \
  10332. ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
  10333. http://.*/.* http://www.yoctoproject.org/sources/ \n \
  10334. https://.*/.* http://www.yoctoproject.org/sources/ \n"
  10335. </literallayout>
  10336. These changes cause the build system to intercept
  10337. Git, FTP, HTTP, and HTTPS requests and direct them to
  10338. the <filename>http://</filename> sources mirror.
  10339. You can use <filename>file://</filename> URLs to point
  10340. to local directories or network shares as well.
  10341. </para>
  10342. </glossdef>
  10343. </glossentry>
  10344. <glossentry id='var-PRIORITY'><glossterm>PRIORITY</glossterm>
  10345. <info>
  10346. PRIORITY[doc] = "Indicates the importance of a package. The default value is 'optional'. Other standard values are 'required', 'standard', and 'extra'."
  10347. </info>
  10348. <glossdef>
  10349. <para role="glossdeffirst">
  10350. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10351. Indicates the importance of a package.
  10352. </para>
  10353. <para>
  10354. <filename>PRIORITY</filename> is considered to be part of
  10355. the distribution policy because the importance of any given
  10356. recipe depends on the purpose for which the distribution
  10357. is being produced.
  10358. Thus, <filename>PRIORITY</filename> is not normally set
  10359. within recipes.
  10360. </para>
  10361. <para>
  10362. You can set <filename>PRIORITY</filename> to "required",
  10363. "standard", "extra", and "optional", which is the default.
  10364. </para>
  10365. </glossdef>
  10366. </glossentry>
  10367. <glossentry id='var-PRIVATE_LIBS'><glossterm>PRIVATE_LIBS</glossterm>
  10368. <info>
  10369. PRIVATE_LIBS[doc] = "Specifies libraries installed within a recipe that should be ignored by the OpenEmbedded build system's shared library resolver."
  10370. </info>
  10371. <glossdef>
  10372. <para role="glossdeffirst">
  10373. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10374. Specifies libraries installed within a recipe that
  10375. should be ignored by the OpenEmbedded build system's
  10376. shared library resolver.
  10377. This variable is typically used when software being
  10378. built by a recipe has its own private versions of a
  10379. library normally provided by another recipe.
  10380. In this case, you would not want the package containing
  10381. the private libraries to be set as a dependency on other
  10382. unrelated packages that should instead depend on the
  10383. package providing the standard version of the library.
  10384. </para>
  10385. <para>
  10386. Libraries specified in this variable should be specified
  10387. by their file name.
  10388. For example, from the Firefox recipe in meta-browser:
  10389. <literallayout class='monospaced'>
  10390. PRIVATE_LIBS = "libmozjs.so \
  10391. libxpcom.so \
  10392. libnspr4.so \
  10393. libxul.so \
  10394. libmozalloc.so \
  10395. libplc4.so \
  10396. libplds4.so"
  10397. </literallayout>
  10398. </para>
  10399. <para>
  10400. For more information, see the
  10401. "<ulink url='&YOCTO_DOCS_OM_URL;#automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</ulink>"
  10402. section in the Yocto Project Overview and Concepts Manual.
  10403. </para>
  10404. </glossdef>
  10405. </glossentry>
  10406. <glossentry id='var-PROVIDES'><glossterm>PROVIDES</glossterm>
  10407. <info>
  10408. 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."
  10409. </info>
  10410. <glossdef>
  10411. <para role="glossdeffirst">
  10412. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10413. A list of aliases by which a particular recipe can be
  10414. known.
  10415. By default, a recipe's own
  10416. <filename><link linkend='var-PN'>PN</link></filename>
  10417. is implicitly already in its <filename>PROVIDES</filename>
  10418. list.
  10419. If a recipe uses <filename>PROVIDES</filename>, the
  10420. additional aliases are synonyms for the recipe and can
  10421. be useful satisfying dependencies of other recipes during
  10422. the build as specified by
  10423. <filename><link linkend='var-DEPENDS'>DEPENDS</link></filename>.
  10424. </para>
  10425. <para>
  10426. Consider the following example
  10427. <filename>PROVIDES</filename> statement from a recipe
  10428. file <filename>libav_0.8.11.bb</filename>:
  10429. <literallayout class='monospaced'>
  10430. PROVIDES += "libpostproc"
  10431. </literallayout>
  10432. The <filename>PROVIDES</filename> statement results in
  10433. the "libav" recipe also being known as "libpostproc".
  10434. </para>
  10435. <para>
  10436. In addition to providing recipes under alternate names,
  10437. the <filename>PROVIDES</filename> mechanism is also used
  10438. to implement virtual targets.
  10439. A virtual target is a name that corresponds to some
  10440. particular functionality (e.g. a Linux kernel).
  10441. Recipes that provide the functionality in question list the
  10442. virtual target in <filename>PROVIDES</filename>.
  10443. Recipes that depend on the functionality in question can
  10444. include the virtual target in <filename>DEPENDS</filename>
  10445. to leave the choice of provider open.
  10446. </para>
  10447. <para>
  10448. Conventionally, virtual targets have names on the form
  10449. "virtual/function" (e.g. "virtual/kernel").
  10450. The slash is simply part of the name and has no
  10451. syntactical significance.
  10452. </para>
  10453. <para>
  10454. The
  10455. <link linkend='var-PREFERRED_PROVIDER'><filename>PREFERRED_PROVIDER</filename></link>
  10456. variable is used to select which particular recipe
  10457. provides a virtual target.
  10458. <note>
  10459. <para>A corresponding mechanism for virtual runtime
  10460. dependencies (packages) exists.
  10461. However, the mechanism does not depend on any special
  10462. functionality beyond ordinary variable assignments.
  10463. For example,
  10464. <filename>VIRTUAL-RUNTIME_dev_manager</filename>
  10465. refers to the package of the component that manages
  10466. the <filename>/dev</filename> directory.</para>
  10467. <para>Setting the "preferred provider" for runtime
  10468. dependencies is as simple as using the following
  10469. assignment in a configuration file:</para>
  10470. <literallayout class='monospaced'>
  10471. VIRTUAL-RUNTIME_dev_manager = "udev"
  10472. </literallayout>
  10473. </note>
  10474. </para>
  10475. </glossdef>
  10476. </glossentry>
  10477. <glossentry id='var-PRSERV_HOST'><glossterm>PRSERV_HOST</glossterm>
  10478. <info>
  10479. PRSERV_HOST[doc] = "The network based PR service host and port."
  10480. </info>
  10481. <glossdef>
  10482. <para role="glossdeffirst">
  10483. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10484. The network based
  10485. <link linkend='var-PR'><filename>PR</filename></link>
  10486. service host and port.
  10487. </para>
  10488. <para>
  10489. The <filename>conf/local.conf.sample.extended</filename>
  10490. configuration file in the
  10491. <link linkend='source-directory'>Source Directory</link>
  10492. shows how the <filename>PRSERV_HOST</filename> variable is
  10493. set:
  10494. <literallayout class='monospaced'>
  10495. PRSERV_HOST = "localhost:0"
  10496. </literallayout>
  10497. You must set the variable if you want to automatically
  10498. start a local
  10499. <ulink url='&YOCTO_DOCS_DEV_URL;#working-with-a-pr-service'>PR service</ulink>.
  10500. You can set <filename>PRSERV_HOST</filename> to other
  10501. values to use a remote PR service.
  10502. </para>
  10503. </glossdef>
  10504. </glossentry>
  10505. <glossentry id='var-PTEST_ENABLED'><glossterm>PTEST_ENABLED</glossterm>
  10506. <info>
  10507. PRSERV_HOST[doc] = "Specifies whether or not Package Test (ptest) functionality is enabled when building a recipe."
  10508. </info>
  10509. <glossdef>
  10510. <para role="glossdeffirst">
  10511. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10512. Specifies whether or not
  10513. <ulink url='&YOCTO_DOCS_DEV_URL;#testing-packages-with-ptest'>Package Test</ulink>
  10514. (ptest) functionality is enabled when building a recipe.
  10515. You should not set this variable directly.
  10516. Enabling and disabling building Package Tests
  10517. at build time should be done by adding "ptest" to (or
  10518. removing it from)
  10519. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>.
  10520. </para>
  10521. </glossdef>
  10522. </glossentry>
  10523. <glossentry id='var-PV'><glossterm>PV</glossterm>
  10524. <info>
  10525. PV[doc] = "The version of the recipe. The version is normally extracted from the recipe filename."
  10526. </info>
  10527. <glossdef>
  10528. <para role="glossdeffirst">
  10529. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10530. The version of the recipe.
  10531. The version is normally extracted from the recipe filename.
  10532. For example, if the recipe is named
  10533. <filename>expat_2.0.1.bb</filename>, then the default value
  10534. of <filename>PV</filename> will be "2.0.1".
  10535. <filename>PV</filename> is generally not overridden within
  10536. a recipe unless it is building an unstable (i.e.
  10537. development) version from a source code repository
  10538. (e.g. Git or Subversion).
  10539. </para>
  10540. <para>
  10541. <filename>PV</filename> is the default value of the
  10542. <link linkend='var-PKGV'><filename>PKGV</filename></link>
  10543. variable.
  10544. </para>
  10545. </glossdef>
  10546. </glossentry>
  10547. <glossentry id='var-PYTHON_ABI'><glossterm>PYTHON_ABI</glossterm>
  10548. <info>
  10549. 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."
  10550. </info>
  10551. <glossdef>
  10552. <para role="glossdeffirst">
  10553. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10554. When used by recipes that inherit the
  10555. <link linkend='ref-classes-distutils3'><filename>distutils3</filename></link>,
  10556. <link linkend='ref-classes-setuptools3'><filename>setuptools3</filename></link>,
  10557. <link linkend='ref-classes-distutils'><filename>distutils</filename></link>,
  10558. or
  10559. <link linkend='ref-classes-setuptools'><filename>setuptools</filename></link>
  10560. classes, denotes the Application Binary Interface (ABI)
  10561. currently in use for Python.
  10562. By default, the ABI is "m".
  10563. You do not have to set this variable as the OpenEmbedded
  10564. build system sets it for you.
  10565. </para>
  10566. <para>
  10567. The OpenEmbedded build system uses the ABI to construct
  10568. directory names used when installing the Python headers
  10569. and libraries in sysroot
  10570. (e.g. <filename>.../python3.3m/...</filename>).
  10571. </para>
  10572. <para>
  10573. Recipes that inherit the <filename>distutils</filename>
  10574. class during cross-builds also use this variable to
  10575. locate the headers and libraries of the appropriate Python
  10576. that the extension is targeting.
  10577. </para>
  10578. </glossdef>
  10579. </glossentry>
  10580. <glossentry id='var-PYTHON_PN'><glossterm>PYTHON_PN</glossterm>
  10581. <info>
  10582. PYTHON_PN[doc] = "When used by recipes that inherit the distutils3, setuptools3, distutils, or setuptools classes, specifies the major Python version being built."
  10583. </info>
  10584. <glossdef>
  10585. <para role="glossdeffirst">
  10586. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10587. When used by recipes that inherit the
  10588. <link linkend='ref-classes-distutils3'><filename>distutils3</filename></link>,
  10589. <link linkend='ref-classes-setuptools3'><filename>setuptools3</filename></link>,
  10590. <link linkend='ref-classes-distutils'><filename>distutils</filename></link>,
  10591. or
  10592. <link linkend='ref-classes-setuptools'><filename>setuptools</filename></link>
  10593. classes, specifies the major Python version being built.
  10594. For Python 2.x, <filename>PYTHON_PN</filename> would
  10595. be "python2". For Python 3.x, the variable would be
  10596. "python3".
  10597. You do not have to set this variable as the
  10598. OpenEmbedded build system automatically sets it for you.
  10599. </para>
  10600. <para>
  10601. The variable allows recipes to use common infrastructure
  10602. such as the following:
  10603. <literallayout class='monospaced'>
  10604. DEPENDS += "${PYTHON_PN}-native"
  10605. </literallayout>
  10606. In the previous example, the version of the dependency
  10607. is <filename>PYTHON_PN</filename>.
  10608. </para>
  10609. </glossdef>
  10610. </glossentry>
  10611. </glossdiv>
  10612. <glossdiv id='var-glossary-r'><title>R</title>
  10613. <glossentry id='var-RANLIB'><glossterm>RANLIB</glossterm>
  10614. <info>
  10615. RANLIB[doc] = "Minimal command and arguments to run 'ranlib'."
  10616. </info>
  10617. <glossdef>
  10618. <para role="glossdeffirst">
  10619. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10620. The minimal command and arguments to run
  10621. <filename>ranlib</filename>.
  10622. </para>
  10623. </glossdef>
  10624. </glossentry>
  10625. <glossentry id='var-RCONFLICTS'><glossterm>RCONFLICTS</glossterm>
  10626. <info>
  10627. 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."
  10628. </info>
  10629. <glossdef>
  10630. <para role="glossdeffirst">
  10631. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10632. The list of packages that conflict with packages.
  10633. Note that packages will not be installed if conflicting
  10634. packages are not first removed.
  10635. </para>
  10636. <para>
  10637. Like all package-controlling variables, you must always use
  10638. them in conjunction with a package name override.
  10639. Here is an example:
  10640. <literallayout class='monospaced'>
  10641. RCONFLICTS_${PN} = "<replaceable>another_conflicting_package_name</replaceable>"
  10642. </literallayout>
  10643. </para>
  10644. <para>
  10645. BitBake, which the OpenEmbedded build system uses, supports
  10646. specifying versioned dependencies.
  10647. Although the syntax varies depending on the packaging
  10648. format, BitBake hides these differences from you.
  10649. Here is the general syntax to specify versions with
  10650. the <filename>RCONFLICTS</filename> variable:
  10651. <literallayout class='monospaced'>
  10652. RCONFLICTS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  10653. </literallayout>
  10654. For <filename>operator</filename>, you can specify the
  10655. following:
  10656. <literallayout class='monospaced'>
  10657. =
  10658. &lt;
  10659. &gt;
  10660. &lt;=
  10661. &gt;=
  10662. </literallayout>
  10663. For example, the following sets up a dependency on version
  10664. 1.2 or greater of the package <filename>foo</filename>:
  10665. <literallayout class='monospaced'>
  10666. RCONFLICTS_${PN} = "foo (>= 1.2)"
  10667. </literallayout>
  10668. </para>
  10669. </glossdef>
  10670. </glossentry>
  10671. <glossentry id='var-RDEPENDS'><glossterm>RDEPENDS</glossterm>
  10672. <info>
  10673. RDEPENDS[doc] = "Lists runtime dependencies of a package."
  10674. </info>
  10675. <glossdef>
  10676. <para role="glossdeffirst">
  10677. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10678. Lists runtime dependencies of a package.
  10679. These dependencies are other packages that must be
  10680. installed in order for the package to function correctly.
  10681. As an example, the following assignment declares that the
  10682. package <filename>foo</filename> needs the packages
  10683. <filename>bar</filename> and <filename>baz</filename> to
  10684. be installed:
  10685. <literallayout class='monospaced'>
  10686. RDEPENDS_foo = "bar baz"
  10687. </literallayout>
  10688. The most common types of package runtime dependencies are
  10689. automatically detected and added.
  10690. Therefore, most recipes do not need to set
  10691. <filename>RDEPENDS</filename>.
  10692. For more information, see the
  10693. "<ulink url='&YOCTO_DOCS_OM_URL;#automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</ulink>"
  10694. section in the Yocto Project Overview and Concepts Manual.
  10695. </para>
  10696. <para>
  10697. The practical effect of the above
  10698. <filename>RDEPENDS</filename> assignment is that
  10699. <filename>bar</filename> and <filename>baz</filename>
  10700. will be declared as dependencies inside the package
  10701. <filename>foo</filename> when it is written out by one of
  10702. the
  10703. <link linkend='ref-tasks-package_write_deb'><filename>do_package_write_*</filename></link>
  10704. tasks.
  10705. Exactly how this is done depends on which package format
  10706. is used, which is determined by
  10707. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>.
  10708. When the corresponding package manager installs the
  10709. package, it will know to also install the packages on
  10710. which it depends.
  10711. </para>
  10712. <para>
  10713. To ensure that the packages <filename>bar</filename> and
  10714. <filename>baz</filename> get built, the previous
  10715. <filename>RDEPENDS</filename> assignment also causes a task
  10716. dependency to be added.
  10717. This dependency is from the recipe's
  10718. <link linkend='ref-tasks-build'><filename>do_build</filename></link>
  10719. (not to be confused with
  10720. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>)
  10721. task to the <filename>do_package_write_*</filename>
  10722. task of the recipes that build <filename>bar</filename> and
  10723. <filename>baz</filename>.
  10724. </para>
  10725. <para>
  10726. The names of the packages you list within
  10727. <filename>RDEPENDS</filename> must be the names of other
  10728. packages - they cannot be recipe names.
  10729. Although package names and recipe names usually match,
  10730. the important point here is that you are
  10731. providing package names within the
  10732. <filename>RDEPENDS</filename> variable.
  10733. For an example of the default list of packages created from
  10734. a recipe, see the
  10735. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  10736. variable.
  10737. </para>
  10738. <para>
  10739. Because the <filename>RDEPENDS</filename> variable applies
  10740. to packages being built, you should always use the variable
  10741. in a form with an attached package name (remember that a
  10742. single recipe can build multiple packages).
  10743. For example, suppose you are building a development package
  10744. that depends on the <filename>perl</filename> package.
  10745. In this case, you would use the following
  10746. <filename>RDEPENDS</filename> statement:
  10747. <literallayout class='monospaced'>
  10748. RDEPENDS_${PN}-dev += "perl"
  10749. </literallayout>
  10750. In the example, the development package depends on
  10751. the <filename>perl</filename> package.
  10752. Thus, the <filename>RDEPENDS</filename> variable has the
  10753. <filename>${PN}-dev</filename> package name as part of the
  10754. variable.
  10755. <note>
  10756. <title>Caution</title>
  10757. <filename>RDEPENDS_${PN}-dev</filename> includes
  10758. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>
  10759. by default.
  10760. This default is set in the BitBake configuration file
  10761. (<filename>meta/conf/bitbake.conf</filename>).
  10762. Be careful not to accidentally remove
  10763. <filename>${PN}</filename> when modifying
  10764. <filename>RDEPENDS_${PN}-dev</filename>.
  10765. Use the "+=" operator rather than the "=" operator.
  10766. </note>
  10767. </para>
  10768. <para>
  10769. The package names you use with
  10770. <filename>RDEPENDS</filename> must appear as they would in
  10771. the <filename>PACKAGES</filename> variable.
  10772. The
  10773. <link linkend='var-PKG'><filename>PKG</filename></link>
  10774. variable allows a different name to be used for
  10775. the final package (e.g. the
  10776. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  10777. class uses this to rename packages), but this final package
  10778. name cannot be used with <filename>RDEPENDS</filename>,
  10779. which makes sense as <filename>RDEPENDS</filename> is meant
  10780. to be independent of the package format used.
  10781. </para>
  10782. <para>
  10783. BitBake, which the OpenEmbedded build system uses, supports
  10784. specifying versioned dependencies.
  10785. Although the syntax varies depending on the packaging
  10786. format, BitBake hides these differences from you.
  10787. Here is the general syntax to specify versions with
  10788. the <filename>RDEPENDS</filename> variable:
  10789. <literallayout class='monospaced'>
  10790. RDEPENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  10791. </literallayout>
  10792. For <replaceable>operator</replaceable>, you can specify the
  10793. following:
  10794. <literallayout class='monospaced'>
  10795. =
  10796. &lt;
  10797. &gt;
  10798. &lt;=
  10799. &gt;=
  10800. </literallayout>
  10801. For <replaceable>version</replaceable>, provide the version
  10802. number.
  10803. <note><title>Tip</title>
  10804. You can use
  10805. <link linkend='var-EXTENDPKGV'><filename>EXTENDPKGV</filename></link>
  10806. to provide a full package version specification.
  10807. </note>
  10808. For example, the following sets up a dependency on version
  10809. 1.2 or greater of the package <filename>foo</filename>:
  10810. <literallayout class='monospaced'>
  10811. RDEPENDS_${PN} = "foo (>= 1.2)"
  10812. </literallayout>
  10813. </para>
  10814. <para>
  10815. For information on build-time dependencies, see the
  10816. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  10817. variable.
  10818. You can also see the
  10819. "<ulink url='&YOCTO_DOCS_BB_URL;#tasks'>Tasks</ulink>" and
  10820. "<ulink url='&YOCTO_DOCS_BB_URL;#dependencies'>Dependencies</ulink>"
  10821. sections in the BitBake User Manual for additional
  10822. information on tasks and dependencies.
  10823. </para>
  10824. </glossdef>
  10825. </glossentry>
  10826. <glossentry id='var-REQUIRED_DISTRO_FEATURES'><glossterm>REQUIRED_DISTRO_FEATURES</glossterm>
  10827. <info>
  10828. 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."
  10829. </info>
  10830. <glossdef>
  10831. <para role="glossdeffirst">
  10832. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10833. When inheriting the
  10834. <link linkend='ref-classes-distro_features_check'><filename>distro_features_check</filename></link>
  10835. class, this
  10836. variable identifies distribution features that must
  10837. exist in the current configuration in order for the
  10838. OpenEmbedded build system to build the recipe.
  10839. In other words, if the
  10840. <filename>REQUIRED_DISTRO_FEATURES</filename> variable
  10841. lists a feature that does not appear in
  10842. <filename>DISTRO_FEATURES</filename> within the
  10843. current configuration, an error occurs and the
  10844. build stops.
  10845. </para>
  10846. </glossdef>
  10847. </glossentry>
  10848. <glossentry id='var-RM_WORK_EXCLUDE'><glossterm>RM_WORK_EXCLUDE</glossterm>
  10849. <info>
  10850. RM_WORK_EXCLUDE[doc] = "With rm_work enabled, this variable specifies a list of packages whose work directories should not be removed."
  10851. </info>
  10852. <glossdef>
  10853. <para role="glossdeffirst">
  10854. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10855. With <filename>rm_work</filename> enabled, this
  10856. variable specifies a list of recipes whose work directories
  10857. should not be removed.
  10858. See the "<link linkend='ref-classes-rm-work'><filename>rm_work.bbclass</filename></link>"
  10859. section for more details.
  10860. </para>
  10861. </glossdef>
  10862. </glossentry>
  10863. <glossentry id='var-ROOT_HOME'><glossterm>ROOT_HOME</glossterm>
  10864. <info>
  10865. ROOT_HOME[doc] = "Defines the root home directory."
  10866. </info>
  10867. <glossdef>
  10868. <para role="glossdeffirst">
  10869. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10870. Defines the root home directory.
  10871. By default, this directory is set as follows in the
  10872. BitBake configuration file:
  10873. <literallayout class='monospaced'>
  10874. ROOT_HOME ??= "/home/root"
  10875. </literallayout>
  10876. <note>
  10877. This default value is likely used because some
  10878. embedded solutions prefer to have a read-only root
  10879. filesystem and prefer to keep writeable data in one
  10880. place.
  10881. </note>
  10882. </para>
  10883. <para>
  10884. You can override the default by setting the variable
  10885. in any layer or in the <filename>local.conf</filename> file.
  10886. Because the default is set using a "weak" assignment
  10887. (i.e. "??="), you can use either of the following forms
  10888. to define your override:
  10889. <literallayout class='monospaced'>
  10890. ROOT_HOME = "/root"
  10891. ROOT_HOME ?= "/root"
  10892. </literallayout>
  10893. These override examples use <filename>/root</filename>,
  10894. which is probably the most commonly used override.
  10895. </para>
  10896. </glossdef>
  10897. </glossentry>
  10898. <glossentry id='var-ROOTFS'><glossterm>ROOTFS</glossterm>
  10899. <info>
  10900. ROOTFS[doc] = "Indicates a filesystem image to include as the root filesystem."
  10901. </info>
  10902. <glossdef>
  10903. <para role="glossdeffirst">
  10904. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10905. Indicates a filesystem image to include as the root
  10906. filesystem.
  10907. </para>
  10908. <para>
  10909. The <filename>ROOTFS</filename> variable is an optional
  10910. variable used with the
  10911. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  10912. class.
  10913. </para>
  10914. </glossdef>
  10915. </glossentry>
  10916. <glossentry id='var-ROOTFS_POSTINSTALL_COMMAND'><glossterm>ROOTFS_POSTINSTALL_COMMAND</glossterm>
  10917. <info>
  10918. ROOTFS_POSTINSTALL_COMMAND[doc] = "Specifies a list of functions to call after installing packages."
  10919. </info>
  10920. <glossdef>
  10921. <para role="glossdeffirst">
  10922. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10923. Specifies a list of functions to call after the
  10924. OpenEmbedded build system has installed packages.
  10925. You can specify functions separated by semicolons:
  10926. <literallayout class='monospaced'>
  10927. ROOTFS_POSTINSTALL_COMMAND += "<replaceable>function</replaceable>; ... "
  10928. </literallayout>
  10929. </para>
  10930. <para>
  10931. If you need to pass the root filesystem path to a command
  10932. within a function, you can use
  10933. <filename>${IMAGE_ROOTFS}</filename>, which points to
  10934. the directory that becomes the root filesystem image.
  10935. See the
  10936. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  10937. variable for more information.
  10938. </para>
  10939. </glossdef>
  10940. </glossentry>
  10941. <glossentry id='var-ROOTFS_POSTPROCESS_COMMAND'><glossterm>ROOTFS_POSTPROCESS_COMMAND</glossterm>
  10942. <info>
  10943. ROOTFS_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system has created the root filesystem."
  10944. </info>
  10945. <glossdef>
  10946. <para role="glossdeffirst">
  10947. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10948. Specifies a list of functions to call once the
  10949. OpenEmbedded build system has created the root filesystem.
  10950. You can specify functions separated by semicolons:
  10951. <literallayout class='monospaced'>
  10952. ROOTFS_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  10953. </literallayout>
  10954. </para>
  10955. <para>
  10956. If you need to pass the root filesystem path to a command
  10957. within a function, you can use
  10958. <filename>${IMAGE_ROOTFS}</filename>, which points to
  10959. the directory that becomes the root filesystem image.
  10960. See the
  10961. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  10962. variable for more information.
  10963. </para>
  10964. </glossdef>
  10965. </glossentry>
  10966. <glossentry id='var-ROOTFS_POSTUNINSTALL_COMMAND'><glossterm>ROOTFS_POSTUNINSTALL_COMMAND</glossterm>
  10967. <info>
  10968. ROOTFS_POSTUNINSTALL_COMMAND[doc] = "Specifies a list of functions to call after removal of unneeded packages."
  10969. </info>
  10970. <glossdef>
  10971. <para role="glossdeffirst">
  10972. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10973. Specifies a list of functions to call after the
  10974. OpenEmbedded build system has removed unnecessary
  10975. packages.
  10976. When runtime package management is disabled in the
  10977. image, several packages are removed including
  10978. <filename>base-passwd</filename>,
  10979. <filename>shadow</filename>, and
  10980. <filename>update-alternatives</filename>.
  10981. You can specify functions separated by semicolons:
  10982. <literallayout class='monospaced'>
  10983. ROOTFS_POSTUNINSTALL_COMMAND += "<replaceable>function</replaceable>; ... "
  10984. </literallayout>
  10985. </para>
  10986. <para>
  10987. If you need to pass the root filesystem path to a command
  10988. within a function, you can use
  10989. <filename>${IMAGE_ROOTFS}</filename>, which points to
  10990. the directory that becomes the root filesystem image.
  10991. See the
  10992. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  10993. variable for more information.
  10994. </para>
  10995. </glossdef>
  10996. </glossentry>
  10997. <glossentry id='var-ROOTFS_PREPROCESS_COMMAND'><glossterm>ROOTFS_PREPROCESS_COMMAND</glossterm>
  10998. <info>
  10999. ROOTFS_PREPROCESS_COMMAND[doc] = "Specifies a list of functions to call before the OpenEmbedded build system has created the root filesystem."
  11000. </info>
  11001. <glossdef>
  11002. <para role="glossdeffirst">
  11003. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11004. Specifies a list of functions to call before the
  11005. OpenEmbedded build system has created the root filesystem.
  11006. You can specify functions separated by semicolons:
  11007. <literallayout class='monospaced'>
  11008. ROOTFS_PREPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  11009. </literallayout>
  11010. </para>
  11011. <para>
  11012. If you need to pass the root filesystem path to a command
  11013. within a function, you can use
  11014. <filename>${IMAGE_ROOTFS}</filename>, which points to
  11015. the directory that becomes the root filesystem image.
  11016. See the
  11017. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  11018. variable for more information.
  11019. </para>
  11020. </glossdef>
  11021. </glossentry>
  11022. <glossentry id='var-RPROVIDES'><glossterm>RPROVIDES</glossterm>
  11023. <info>
  11024. 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."
  11025. </info>
  11026. <glossdef>
  11027. <para role="glossdeffirst">
  11028. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11029. A list of package name aliases that a package also provides.
  11030. These aliases are useful for satisfying runtime dependencies
  11031. of other packages both during the build and on the target
  11032. (as specified by
  11033. <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename>).
  11034. <note>
  11035. A package's own name is implicitly already in its
  11036. <filename>RPROVIDES</filename> list.
  11037. </note>
  11038. </para>
  11039. <para>
  11040. As with all package-controlling variables, you must always
  11041. use the variable in conjunction with a package name override.
  11042. Here is an example:
  11043. <literallayout class='monospaced'>
  11044. RPROVIDES_${PN} = "widget-abi-2"
  11045. </literallayout>
  11046. </para>
  11047. </glossdef>
  11048. </glossentry>
  11049. <glossentry id='var-RRECOMMENDS'><glossterm>RRECOMMENDS</glossterm>
  11050. <info>
  11051. 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."
  11052. </info>
  11053. <glossdef>
  11054. <para role="glossdeffirst">
  11055. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11056. A list of packages that extends the usability of a package
  11057. being built.
  11058. The package being built does not depend on this list of
  11059. packages in order to successfully build, but rather
  11060. uses them for extended usability.
  11061. To specify runtime dependencies for packages, see the
  11062. <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename>
  11063. variable.
  11064. </para>
  11065. <para>
  11066. The package manager will automatically install the
  11067. <filename>RRECOMMENDS</filename> list of packages when
  11068. installing the built package.
  11069. However, you can prevent listed packages from being
  11070. installed by using the
  11071. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>,
  11072. <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link>,
  11073. and
  11074. <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link>
  11075. variables.
  11076. </para>
  11077. <para>
  11078. Packages specified in
  11079. <filename>RRECOMMENDS</filename> need not actually be
  11080. produced.
  11081. However, a recipe must exist that provides each package,
  11082. either through the
  11083. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  11084. or
  11085. <link linkend='var-PACKAGES_DYNAMIC'><filename>PACKAGES_DYNAMIC</filename></link>
  11086. variables or the
  11087. <link linkend='var-RPROVIDES'><filename>RPROVIDES</filename></link>
  11088. variable, or an error will occur during the build.
  11089. If such a recipe does exist and the package is not produced,
  11090. the build continues without error.
  11091. </para>
  11092. <para>
  11093. Because the <filename>RRECOMMENDS</filename> variable
  11094. applies to packages being built, you should always attach
  11095. an override to the variable to specify the particular
  11096. package whose usability is being extended.
  11097. For example, suppose you are building a development package
  11098. that is extended to support wireless functionality.
  11099. In this case, you would use the following:
  11100. <literallayout class='monospaced'>
  11101. RRECOMMENDS_${PN}-dev += "<replaceable>wireless_package_name</replaceable>"
  11102. </literallayout>
  11103. In the example, the package name
  11104. (<filename>${<link linkend='var-PN'>PN</link>}-dev</filename>)
  11105. must appear as it would in the
  11106. <filename>PACKAGES</filename> namespace before any renaming
  11107. of the output package by classes such as
  11108. <filename>debian.bbclass</filename>.
  11109. </para>
  11110. <para>
  11111. BitBake, which the OpenEmbedded build system uses, supports
  11112. specifying versioned recommends.
  11113. Although the syntax varies depending on the packaging
  11114. format, BitBake hides these differences from you.
  11115. Here is the general syntax to specify versions with
  11116. the <filename>RRECOMMENDS</filename> variable:
  11117. <literallayout class='monospaced'>
  11118. RRECOMMENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  11119. </literallayout>
  11120. For <filename>operator</filename>, you can specify the
  11121. following:
  11122. <literallayout class='monospaced'>
  11123. =
  11124. &lt;
  11125. &gt;
  11126. &lt;=
  11127. &gt;=
  11128. </literallayout>
  11129. For example, the following sets up a recommend on version
  11130. 1.2 or greater of the package <filename>foo</filename>:
  11131. <literallayout class='monospaced'>
  11132. RRECOMMENDS_${PN} = "foo (>= 1.2)"
  11133. </literallayout>
  11134. </para>
  11135. </glossdef>
  11136. </glossentry>
  11137. <glossentry id='var-RREPLACES'><glossterm>RREPLACES</glossterm>
  11138. <info>
  11139. 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."
  11140. </info>
  11141. <glossdef>
  11142. <para role="glossdeffirst">
  11143. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11144. A list of packages replaced by a package.
  11145. The package manager uses this variable to determine which
  11146. package should be installed to replace other package(s)
  11147. during an upgrade.
  11148. In order to also have the other package(s) removed at the
  11149. same time, you must add the name of the other
  11150. package to the
  11151. <filename><link linkend='var-RCONFLICTS'>RCONFLICTS</link></filename> variable.
  11152. </para>
  11153. <para>
  11154. As with all package-controlling variables, you must use
  11155. this variable in conjunction with a package name
  11156. override.
  11157. Here is an example:
  11158. <literallayout class='monospaced'>
  11159. RREPLACES_${PN} = "<replaceable>other_package_being_replaced</replaceable>"
  11160. </literallayout>
  11161. </para>
  11162. <para>
  11163. BitBake, which the OpenEmbedded build system uses, supports
  11164. specifying versioned replacements.
  11165. Although the syntax varies depending on the packaging
  11166. format, BitBake hides these differences from you.
  11167. Here is the general syntax to specify versions with
  11168. the <filename>RREPLACES</filename> variable:
  11169. <literallayout class='monospaced'>
  11170. RREPLACES_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  11171. </literallayout>
  11172. For <filename>operator</filename>, you can specify the
  11173. following:
  11174. <literallayout class='monospaced'>
  11175. =
  11176. &lt;
  11177. &gt;
  11178. &lt;=
  11179. &gt;=
  11180. </literallayout>
  11181. For example, the following sets up a replacement using
  11182. version 1.2 or greater of the package
  11183. <filename>foo</filename>:
  11184. <literallayout class='monospaced'>
  11185. RREPLACES_${PN} = "foo (>= 1.2)"
  11186. </literallayout>
  11187. </para>
  11188. </glossdef>
  11189. </glossentry>
  11190. <glossentry id='var-RSUGGESTS'><glossterm>RSUGGESTS</glossterm>
  11191. <info>
  11192. 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."
  11193. </info>
  11194. <glossdef>
  11195. <para role="glossdeffirst">
  11196. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11197. A list of additional packages that you can suggest for
  11198. installation by the package manager at the time a package
  11199. is installed.
  11200. Not all package managers support this functionality.
  11201. </para>
  11202. <para>
  11203. As with all package-controlling variables, you must always
  11204. use this variable in conjunction with a package name
  11205. override.
  11206. Here is an example:
  11207. <literallayout class='monospaced'>
  11208. RSUGGESTS_${PN} = "<replaceable>useful_package</replaceable> <replaceable>another_package</replaceable>"
  11209. </literallayout>
  11210. </para>
  11211. </glossdef>
  11212. </glossentry>
  11213. </glossdiv>
  11214. <glossdiv id='var-glossary-s'><title>S</title>
  11215. <glossentry id='var-S'><glossterm>S</glossterm>
  11216. <info>
  11217. S[doc] = "The location in the Build Directory where unpacked package source code resides."
  11218. </info>
  11219. <glossdef>
  11220. <para role="glossdeffirst">
  11221. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11222. The location in the
  11223. <link linkend='build-directory'>Build Directory</link>
  11224. where unpacked recipe source code resides.
  11225. By default, this directory is
  11226. <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>,
  11227. where <filename>${BPN}</filename> is the base recipe name
  11228. and <filename>${PV}</filename> is the recipe version.
  11229. If the source tarball extracts the code to a directory
  11230. named anything other than <filename>${BPN}-${PV}</filename>,
  11231. or if the source code is fetched from an SCM such as
  11232. Git or Subversion, then you must set <filename>S</filename>
  11233. in the recipe so that the OpenEmbedded build system
  11234. knows where to find the unpacked source.
  11235. </para>
  11236. <para>
  11237. As an example, assume a
  11238. <link linkend='source-directory'>Source Directory</link>
  11239. top-level folder named <filename>poky</filename> and a
  11240. default Build Directory at <filename>poky/build</filename>.
  11241. In this case, the work directory the build system uses
  11242. to keep the unpacked recipe for <filename>db</filename>
  11243. is the following:
  11244. <literallayout class='monospaced'>
  11245. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  11246. </literallayout>
  11247. The unpacked source code resides in the
  11248. <filename>db-5.1.19</filename> folder.
  11249. </para>
  11250. <para>
  11251. This next example assumes a Git repository.
  11252. By default, Git repositories are cloned to
  11253. <filename>${WORKDIR}/git</filename> during
  11254. <link linkend='ref-tasks-fetch'><filename>do_fetch</filename></link>.
  11255. Since this path is different from the default value of
  11256. <filename>S</filename>, you must set it specifically
  11257. so the source can be located:
  11258. <literallayout class='monospaced'>
  11259. SRC_URI = "git://path/to/repo.git"
  11260. S = "${WORKDIR}/git"
  11261. </literallayout>
  11262. </para>
  11263. </glossdef>
  11264. </glossentry>
  11265. <glossentry id='var-SANITY_REQUIRED_UTILITIES'><glossterm>SANITY_REQUIRED_UTILITIES</glossterm>
  11266. <info>
  11267. 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."
  11268. </info>
  11269. <glossdef>
  11270. <para role="glossdeffirst">
  11271. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11272. Specifies a list of command-line utilities that should be
  11273. checked for during the initial sanity checking process when
  11274. running BitBake.
  11275. If any of the utilities are not installed on the build host,
  11276. then BitBake immediately exits with an error.
  11277. </para>
  11278. </glossdef>
  11279. </glossentry>
  11280. <glossentry id='var-SANITY_TESTED_DISTROS'><glossterm>SANITY_TESTED_DISTROS</glossterm>
  11281. <info>
  11282. SANITY_TESTED_DISTROS[doc] = "A list of the host distribution identifiers that the build system has been tested against."
  11283. </info>
  11284. <glossdef>
  11285. <para role="glossdeffirst">
  11286. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11287. A list of the host distribution identifiers that the
  11288. build system has been tested against.
  11289. Identifiers consist of the host distributor ID
  11290. followed by the release,
  11291. as reported by the <filename>lsb_release</filename> tool
  11292. or as read from <filename>/etc/lsb-release</filename>.
  11293. Separate the list items with explicit newline
  11294. characters (<filename>\n</filename>).
  11295. If <filename>SANITY_TESTED_DISTROS</filename> is not empty
  11296. and the current value of
  11297. <link linkend='var-NATIVELSBSTRING'><filename>NATIVELSBSTRING</filename></link>
  11298. does not appear in the list, then the build system reports
  11299. a warning that indicates the current host distribution has
  11300. not been tested as a build host.
  11301. </para>
  11302. </glossdef>
  11303. </glossentry>
  11304. <glossentry id='var-SDK_ARCH'><glossterm>SDK_ARCH</glossterm>
  11305. <info>
  11306. SDK_ARCH[doc] = "The target architecture for the SDK."
  11307. </info>
  11308. <glossdef>
  11309. <para role="glossdeffirst">
  11310. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11311. The target architecture for the SDK.
  11312. Typically, you do not directly set this variable.
  11313. Instead, use
  11314. <link linkend='var-SDKMACHINE'><filename>SDKMACHINE</filename></link>.
  11315. </para>
  11316. </glossdef>
  11317. </glossentry>
  11318. <glossentry id='var-SDK_DEPLOY'><glossterm>SDK_DEPLOY</glossterm>
  11319. <info>
  11320. SDK_DEPLOY[doc] = "The directory set up and used by the populate_sdk_base to which the SDK is deployed."
  11321. </info>
  11322. <glossdef>
  11323. <para role="glossdeffirst">
  11324. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11325. The directory set up and used by the
  11326. <link linkend='ref-classes-populate-sdk'><filename>populate_sdk_base</filename></link>
  11327. class to which the SDK is deployed.
  11328. The <filename>populate_sdk_base</filename> class defines
  11329. <filename>SDK_DEPLOY</filename> as follows:
  11330. <literallayout class='monospaced'>
  11331. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  11332. </literallayout>
  11333. </para>
  11334. </glossdef>
  11335. </glossentry>
  11336. <glossentry id='var-SDK_DIR'><glossterm>SDK_DIR</glossterm>
  11337. <info>
  11338. SDK_DIR[doc] = "The parent directory used by the OpenEmbedded build system when creating SDK output."
  11339. </info>
  11340. <glossdef>
  11341. <para role="glossdeffirst">
  11342. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11343. The parent directory used by the OpenEmbedded build system
  11344. when creating SDK output.
  11345. The
  11346. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11347. class defines the variable as follows:
  11348. <literallayout class='monospaced'>
  11349. SDK_DIR = "${WORKDIR}/sdk"
  11350. </literallayout>
  11351. <note>
  11352. The <filename>SDK_DIR</filename> directory is a
  11353. temporary directory as it is part of
  11354. <filename>WORKDIR</filename>.
  11355. The final output directory is
  11356. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>.
  11357. </note>
  11358. </para>
  11359. </glossdef>
  11360. </glossentry>
  11361. <glossentry id='var-SDK_EXT_TYPE'><glossterm>SDK_EXT_TYPE</glossterm>
  11362. <info>
  11363. SDK_EXT_TYPE[doc] = "Controls whether or not shared state artifacts are copied into the extensible SDK."
  11364. </info>
  11365. <glossdef>
  11366. <para role="glossdeffirst">
  11367. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11368. Controls whether or not shared state artifacts are copied
  11369. into the extensible SDK.
  11370. The default value of "full" copies all of the required
  11371. shared state artifacts into the extensible SDK.
  11372. The value "minimal" leaves these artifacts out of the
  11373. SDK.
  11374. <note>
  11375. If you set the variable to "minimal", you need to
  11376. ensure
  11377. <link linkend='var-SSTATE_MIRRORS'><filename>SSTATE_MIRRORS</filename></link>
  11378. is set in the SDK's configuration to enable the
  11379. artifacts to be fetched as needed.
  11380. </note>
  11381. </para>
  11382. </glossdef>
  11383. </glossentry>
  11384. <glossentry id='var-SDK_HOST_MANIFEST'><glossterm>SDK_HOST_MANIFEST</glossterm>
  11385. <info>
  11386. 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."
  11387. </info>
  11388. <glossdef>
  11389. <para role="glossdeffirst">
  11390. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11391. The manifest file for the host part of the SDK.
  11392. This file lists all the installed packages that make up
  11393. the host part of the SDK.
  11394. The file contains package information on a line-per-package
  11395. basis as follows:
  11396. <literallayout class='monospaced'>
  11397. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  11398. </literallayout>
  11399. </para>
  11400. <para>
  11401. The
  11402. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11403. class defines the manifest file as follows:
  11404. <literallayout class='monospaced'>
  11405. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  11406. </literallayout>
  11407. The location is derived using the
  11408. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>
  11409. and
  11410. <link linkend='var-TOOLCHAIN_OUTPUTNAME'><filename>TOOLCHAIN_OUTPUTNAME</filename></link>
  11411. variables.
  11412. </para>
  11413. </glossdef>
  11414. </glossentry>
  11415. <glossentry id='var-SDK_INCLUDE_PKGDATA'><glossterm>SDK_INCLUDE_PKGDATA</glossterm>
  11416. <info>
  11417. SDK_INCLUDE_PKGDATA[doc] = "When set to "1", specifies to include the packagedata for all recipes in the "world" target in the extensible SDK."
  11418. </info>
  11419. <glossdef>
  11420. <para role="glossdeffirst">
  11421. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11422. When set to "1", specifies to include the packagedata for
  11423. all recipes in the "world" target in the extensible SDK.
  11424. Including this data allows the
  11425. <filename>devtool search</filename> command to find these
  11426. recipes in search results, as well as allows the
  11427. <filename>devtool add</filename> command to map
  11428. dependencies more effectively.
  11429. <note>
  11430. Enabling the <filename>SDK_INCLUDE_PKGDATA</filename>
  11431. variable significantly increases build time because
  11432. all of world needs to be built.
  11433. Enabling the variable also slightly increases the size
  11434. of the extensible SDK.
  11435. </note>
  11436. </para>
  11437. </glossdef>
  11438. </glossentry>
  11439. <glossentry id='var-SDK_INCLUDE_TOOLCHAIN'><glossterm>SDK_INCLUDE_TOOLCHAIN</glossterm>
  11440. <info>
  11441. SDK_INCLUDE_TOOLCHAIN[doc] = "When set to "1", specifies to include the toolchain in the extensible SDK."
  11442. </info>
  11443. <glossdef>
  11444. <para role="glossdeffirst">
  11445. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11446. When set to "1", specifies to include the toolchain in the
  11447. extensible SDK.
  11448. Including the toolchain is useful particularly when
  11449. <link linkend='var-SDK_EXT_TYPE'><filename>SDK_EXT_TYPE</filename></link>
  11450. is set to "minimal" to keep the SDK reasonably small
  11451. but you still want to provide a usable toolchain.
  11452. For example, suppose you want to use the toolchain from an
  11453. IDE (e.g. Eclipse) or from other tools and you do not
  11454. want to perform additional steps to install the toolchain.
  11455. </para>
  11456. <para>
  11457. The <filename>SDK_INCLUDE_TOOLCHAIN</filename> variable
  11458. defaults to "0" if <filename>SDK_EXT_TYPE</filename>
  11459. is set to "minimal", and defaults to "1" if
  11460. <filename>SDK_EXT_TYPE</filename> is set to "full".
  11461. </para>
  11462. </glossdef>
  11463. </glossentry>
  11464. <glossentry id='var-SDK_INHERIT_BLACKLIST'><glossterm>SDK_INHERIT_BLACKLIST</glossterm>
  11465. <info>
  11466. SDK_INHERIT_BLACKLIST[doc] = "A list of classes to remove from the INHERIT value globally within the extensible SDK configuration."
  11467. </info>
  11468. <glossdef>
  11469. <para role="glossdeffirst">
  11470. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11471. A list of classes to remove from the
  11472. <link linkend='var-INHERIT'><filename>INHERIT</filename></link>
  11473. value globally within the extensible SDK configuration.
  11474. The
  11475. <link linkend='ref-classes-populate-sdk-*'><filename>populate-sdk-ext</filename></link>
  11476. class sets the default value:
  11477. <literallayout class='monospaced'>
  11478. SDK_INHERIT_BLACKLIST ?= "buildhistory icecc"
  11479. </literallayout>
  11480. </para>
  11481. <para>
  11482. Some classes are not generally applicable within
  11483. the extensible SDK context.
  11484. You can use this variable to disable those classes.
  11485. </para>
  11486. <para>
  11487. For additional information on how to customize the
  11488. extensible SDK's configuration, see the
  11489. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-configuring-the-extensible-sdk'>Configuring the Extensible SDK</ulink>"
  11490. section in the Yocto Project Application Development and
  11491. the Extensible Software Development Kit (eSDK) manual.
  11492. </para>
  11493. </glossdef>
  11494. </glossentry>
  11495. <glossentry id='var-SDK_LOCAL_CONF_BLACKLIST'><glossterm>SDK_LOCAL_CONF_BLACKLIST</glossterm>
  11496. <info>
  11497. SDK_LOCAL_CONF_BLACKLIST[doc] = "A list of variables not allowed through from the build system configuration into the extensible SDK configuration."
  11498. </info>
  11499. <glossdef>
  11500. <para role="glossdeffirst">
  11501. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11502. A list of variables not allowed through from the
  11503. OpenEmbedded build system configuration into the extensible
  11504. SDK configuration.
  11505. Usually, these are variables that are specific to the
  11506. machine on which the build system is running and thus
  11507. would be potentially problematic within the extensible SDK.
  11508. </para>
  11509. <para>By default,
  11510. <filename>SDK_LOCAL_CONF_BLACKLIST</filename> is set in the
  11511. <link linkend='ref-classes-populate-sdk-*'><filename>populate-sdk-ext</filename></link>
  11512. class and excludes the following variables:
  11513. <literallayout class='monospaced'>
  11514. <link linkend='var-CONF_VERSION'>CONF_VERSION</link>
  11515. <link linkend='var-BB_NUMBER_THREADS'>BB_NUMBER_THREADS</link>
  11516. <ulink url='&YOCTO_DOCS_BB_URL;#var-BB_NUMBER_PARSE_THREADS'>BB_NUMBER_PARSE_THREADS</ulink>
  11517. <link linkend='var-PARALLEL_MAKE'>PARALLEL_MAKE</link>
  11518. <link linkend='var-PRSERV_HOST'>PRSERV_HOST</link>
  11519. <link linkend='var-SSTATE_MIRRORS'>SSTATE_MIRRORS</link>
  11520. <link linkend='var-DL_DIR'>DL_DIR</link>
  11521. <link linkend='var-SSTATE_DIR'>SSTATE_DIR</link>
  11522. <link linkend='var-TMPDIR'>TMPDIR</link>
  11523. <link linkend='var-BB_SERVER_TIMEOUT'>BB_SERVER_TIMEOUT</link>
  11524. </literallayout>
  11525. </para>
  11526. <para>
  11527. For additional information on how to customize the
  11528. extensible SDK's configuration, see the
  11529. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-configuring-the-extensible-sdk'>Configuring the Extensible SDK</ulink>"
  11530. section in the Yocto Project Application Development and
  11531. the Extensible Software Development Kit (eSDK) manual.
  11532. </para>
  11533. </glossdef>
  11534. </glossentry>
  11535. <glossentry id='var-SDK_LOCAL_CONF_WHITELIST'><glossterm>SDK_LOCAL_CONF_WHITELIST</glossterm>
  11536. <info>
  11537. SDK_LOCAL_CONF_WHITELIST[doc] = "A list of variables allowed through from the build system configuration into the extensible SDK configuration."
  11538. </info>
  11539. <glossdef>
  11540. <para role="glossdeffirst">
  11541. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11542. A list of variables allowed through from the OpenEmbedded
  11543. build system configuration into the extensible SDK
  11544. configuration.
  11545. By default, the list of variables is empty and is set in
  11546. the
  11547. <link linkend='ref-classes-populate-sdk-*'><filename>populate-sdk-ext</filename></link>
  11548. class.
  11549. </para>
  11550. <para>
  11551. This list overrides the variables specified using the
  11552. <link linkend='var-SDK_LOCAL_CONF_BLACKLIST'><filename>SDK_LOCAL_CONF_BLACKLIST</filename></link>
  11553. variable as well as any variables identified by automatic
  11554. blacklisting due to the "/" character being found at the
  11555. start of the value, which is usually indicative of being a
  11556. path and thus might not be valid on the system where the
  11557. SDK is installed.
  11558. </para>
  11559. <para>
  11560. For additional information on how to customize the
  11561. extensible SDK's configuration, see the
  11562. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-configuring-the-extensible-sdk'>Configuring the Extensible SDK</ulink>"
  11563. section in the Yocto Project Application Development and
  11564. the Extensible Software Development Kit (eSDK) manual.
  11565. </para>
  11566. </glossdef>
  11567. </glossentry>
  11568. <glossentry id='var-SDK_NAME'><glossterm>SDK_NAME</glossterm>
  11569. <info>
  11570. SDK_NAME[doc] = "The base name for SDK output files."
  11571. </info>
  11572. <glossdef>
  11573. <para role="glossdeffirst">
  11574. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11575. The base name for SDK output files.
  11576. The name is derived from the
  11577. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>,
  11578. <link linkend='var-TCLIBC'><filename>TCLIBC</filename></link>,
  11579. <link linkend='var-SDK_ARCH'><filename>SDK_ARCH</filename></link>,
  11580. <link linkend='var-IMAGE_BASENAME'><filename>IMAGE_BASENAME</filename></link>,
  11581. and
  11582. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>
  11583. variables:
  11584. <literallayout class='monospaced'>
  11585. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"
  11586. </literallayout>
  11587. </para>
  11588. </glossdef>
  11589. </glossentry>
  11590. <glossentry id='var-SDK_OS'><glossterm>SDK_OS</glossterm>
  11591. <info>
  11592. SDK_OS[doc] = "The operating system for which the SDK will be built."
  11593. </info>
  11594. <glossdef>
  11595. <para role="glossdeffirst">
  11596. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11597. Specifies the operating system for which the SDK
  11598. will be built.
  11599. The default value is the value of
  11600. <link linkend='var-BUILD_OS'><filename>BUILD_OS</filename></link>.
  11601. </para>
  11602. </glossdef>
  11603. </glossentry>
  11604. <glossentry id='var-SDK_OUTPUT'><glossterm>SDK_OUTPUT</glossterm>
  11605. <info>
  11606. SDK_OUTPUT[doc] = "The location used by the OpenEmbedded build system when creating SDK output."
  11607. </info>
  11608. <glossdef>
  11609. <para role="glossdeffirst">
  11610. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11611. The location used by the OpenEmbedded build system when
  11612. creating SDK output.
  11613. The
  11614. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11615. class defines the variable as follows:
  11616. <literallayout class='monospaced'>
  11617. SDK_DIR = "${WORKDIR}/sdk"
  11618. SDK_OUTPUT = "${SDK_DIR}/image"
  11619. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  11620. </literallayout>
  11621. <note>
  11622. The <filename>SDK_OUTPUT</filename> directory is a
  11623. temporary directory as it is part of
  11624. <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  11625. by way of
  11626. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>.
  11627. The final output directory is
  11628. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>.
  11629. </note>
  11630. </para>
  11631. </glossdef>
  11632. </glossentry>
  11633. <glossentry id='var-SDK_PACKAGE_ARCHS'><glossterm>SDK_PACKAGE_ARCHS</glossterm>
  11634. <info>
  11635. 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."
  11636. </info>
  11637. <glossdef>
  11638. <para role="glossdeffirst">
  11639. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11640. Specifies a list of architectures compatible with
  11641. the SDK machine.
  11642. This variable is set automatically and should not
  11643. normally be hand-edited.
  11644. Entries are separated using spaces and listed in order
  11645. of priority.
  11646. The default value for
  11647. <filename>SDK_PACKAGE_ARCHS</filename> is "all any noarch
  11648. ${SDK_ARCH}-${SDKPKGSUFFIX}".
  11649. </para>
  11650. </glossdef>
  11651. </glossentry>
  11652. <glossentry id='var-SDK_POSTPROCESS_COMMAND'><glossterm>SDK_POSTPROCESS_COMMAND</glossterm>
  11653. <info>
  11654. SDK_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system creates the SDK."
  11655. </info>
  11656. <glossdef>
  11657. <para role="glossdeffirst">
  11658. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11659. Specifies a list of functions to call once the
  11660. OpenEmbedded build system creates the SDK.
  11661. You can specify functions separated by semicolons:
  11662. <literallayout class='monospaced'>
  11663. SDK_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  11664. </literallayout>
  11665. </para>
  11666. <para>
  11667. If you need to pass an SDK path to a command within a
  11668. function, you can use
  11669. <filename>${SDK_DIR}</filename>, which points to
  11670. the parent directory used by the OpenEmbedded build system
  11671. when creating SDK output.
  11672. See the
  11673. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  11674. variable for more information.
  11675. </para>
  11676. </glossdef>
  11677. </glossentry>
  11678. <glossentry id='var-SDK_PREFIX'><glossterm>SDK_PREFIX</glossterm>
  11679. <info>
  11680. SDK_PREFIX[doc] = "The toolchain binary prefix used for nativesdk recipes."
  11681. </info>
  11682. <glossdef>
  11683. <para role="glossdeffirst">
  11684. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11685. The toolchain binary prefix used for
  11686. <filename>nativesdk</filename> recipes.
  11687. The OpenEmbedded build system uses the
  11688. <filename>SDK_PREFIX</filename> value to set the
  11689. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  11690. when building <filename>nativesdk</filename> recipes.
  11691. The default value is "${SDK_SYS}-".
  11692. </para>
  11693. </glossdef>
  11694. </glossentry>
  11695. <glossentry id='var-SDK_RECRDEP_TASKS'><glossterm>SDK_RECRDEP_TASKS</glossterm>
  11696. <info>
  11697. SDK_RECRDEP_TASKS[doc] = "A list of shared state tasks added to the extensible SDK."
  11698. </info>
  11699. <glossdef>
  11700. <para role="glossdeffirst">
  11701. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11702. A list of shared state tasks added to the extensible SDK.
  11703. By default, the following tasks are added:
  11704. <literallayout class='monospaced'>
  11705. do_populate_lic
  11706. do_package_qa
  11707. do_populate_sysroot
  11708. do_deploy
  11709. </literallayout>
  11710. Despite the default value of "" for the
  11711. <filename>SDK_RECRDEP_TASKS</filename> variable, the
  11712. above four tasks are always added to the SDK.
  11713. To specify tasks beyond these four, you need to use
  11714. the <filename>SDK_RECRDEP_TASKS</filename> variable (e.g.
  11715. you are defining additional tasks that are needed in
  11716. order to build
  11717. <link linkend='var-SDK_TARGETS'><filename>SDK_TARGETS</filename></link>).
  11718. </para>
  11719. </glossdef>
  11720. </glossentry>
  11721. <glossentry id='var-SDK_SYS'><glossterm>SDK_SYS</glossterm>
  11722. <info>
  11723. SDK_SYS[doc] = "Specifies the system, including the architecture and the operating system, for which the SDK will be built."
  11724. </info>
  11725. <glossdef>
  11726. <para role="glossdeffirst">
  11727. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11728. Specifies the system, including the architecture and the
  11729. operating system, for which the SDK will be built.
  11730. </para>
  11731. <para>
  11732. The OpenEmbedded build system automatically sets this
  11733. variable based on
  11734. <link linkend='var-SDK_ARCH'><filename>SDK_ARCH</filename></link>,
  11735. <link linkend='var-SDK_VENDOR'><filename>SDK_VENDOR</filename></link>,
  11736. and
  11737. <link linkend='var-SDK_OS'><filename>SDK_OS</filename></link>.
  11738. You do not need to set the <filename>SDK_SYS</filename>
  11739. variable yourself.
  11740. </para>
  11741. </glossdef>
  11742. </glossentry>
  11743. <glossentry id='var-SDK_TARGET_MANIFEST'><glossterm>SDK_TARGET_MANIFEST</glossterm>
  11744. <info>
  11745. 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."
  11746. </info>
  11747. <glossdef>
  11748. <para role="glossdeffirst">
  11749. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11750. The manifest file for the target part of the SDK.
  11751. This file lists all the installed packages that make up
  11752. the target part of the SDK.
  11753. The file contains package information on a line-per-package
  11754. basis as follows:
  11755. <literallayout class='monospaced'>
  11756. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  11757. </literallayout>
  11758. </para>
  11759. <para>
  11760. The
  11761. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11762. class defines the manifest file as follows:
  11763. <literallayout class='monospaced'>
  11764. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  11765. </literallayout>
  11766. The location is derived using the
  11767. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>
  11768. and
  11769. <link linkend='var-TOOLCHAIN_OUTPUTNAME'><filename>TOOLCHAIN_OUTPUTNAME</filename></link>
  11770. variables.
  11771. </para>
  11772. </glossdef>
  11773. </glossentry>
  11774. <glossentry id='var-SDK_TARGETS'><glossterm>SDK_TARGETS</glossterm>
  11775. <info>
  11776. SDK_TARGETS[doc] = "A list of targets to install from shared state as part of the standard or extensible SDK installation."
  11777. </info>
  11778. <glossdef>
  11779. <para role="glossdeffirst">
  11780. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11781. A list of targets to install from shared state as part of
  11782. the standard or extensible SDK installation.
  11783. The default value is "${PN}" (i.e. the image from which
  11784. the SDK is built).
  11785. </para>
  11786. <para>
  11787. The <filename>SDK_TARGETS</filename> variable is an
  11788. internal variable and typically would not be changed.
  11789. </para>
  11790. </glossdef>
  11791. </glossentry>
  11792. <glossentry id='var-SDK_TITLE'><glossterm>SDK_TITLE</glossterm>
  11793. <info>
  11794. SDK_TITLE[doc] = "The title to be printed when running the SDK installer."
  11795. </info>
  11796. <glossdef>
  11797. <para role="glossdeffirst">
  11798. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11799. The title to be printed when running the SDK installer.
  11800. By default, this title is based on the
  11801. <link linkend='var-DISTRO_NAME'><filename>DISTRO_NAME</filename></link>
  11802. or
  11803. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>
  11804. variable and is set in the
  11805. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11806. class as follows:
  11807. <literallayout class='monospaced'>
  11808. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  11809. </literallayout>
  11810. For the default distribution "poky",
  11811. <filename>SDK_TITLE</filename> is set to
  11812. "Poky (Yocto Project Reference Distro)".
  11813. </para>
  11814. <para>
  11815. For information on how to change this default title,
  11816. see the
  11817. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-changing-the-sdk-installer-title'>Changing the Extensible SDK Installer Title</ulink>"
  11818. section in the Yocto Project Application Development and
  11819. the Extensible Software Development Kit (eSDK) manual.
  11820. </para>
  11821. </glossdef>
  11822. </glossentry>
  11823. <glossentry id='var-SDK_UPDATE_URL'><glossterm>SDK_UPDATE_URL</glossterm>
  11824. <info>
  11825. SDK_UPDATE_URL[doc] = "An optional URL for an update server for the extensible SDK."
  11826. </info>
  11827. <glossdef>
  11828. <para role="glossdeffirst">
  11829. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11830. An optional URL for an update server for the extensible
  11831. SDK.
  11832. If set, the value is used as the default update server when
  11833. running <filename>devtool sdk-update</filename> within the
  11834. extensible SDK.
  11835. </para>
  11836. </glossdef>
  11837. </glossentry>
  11838. <glossentry id='var-SDK_VENDOR'><glossterm>SDK_VENDOR</glossterm>
  11839. <info>
  11840. SDK_VENDOR[doc] = "Specifies the name of the SDK vendor."
  11841. </info>
  11842. <glossdef>
  11843. <para role="glossdeffirst">
  11844. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11845. Specifies the name of the SDK vendor.
  11846. </para>
  11847. </glossdef>
  11848. </glossentry>
  11849. <glossentry id='var-SDK_VERSION'><glossterm>SDK_VERSION</glossterm>
  11850. <info>
  11851. SDK_VERSION[doc] = "Specifies the version for the SDK."
  11852. </info>
  11853. <glossdef>
  11854. <para role="glossdeffirst">
  11855. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11856. Specifies the version of the SDK.
  11857. The distribution configuration file (e.g.
  11858. <filename>/meta-poky/conf/distro/poky.conf</filename>)
  11859. defines the <filename>SDK_VERSION</filename> as follows:
  11860. <literallayout class='monospaced'>
  11861. SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"
  11862. </literallayout>
  11863. </para>
  11864. <para>
  11865. For additional information, see the
  11866. <link linkend='var-DISTRO_VERSION'><filename>DISTRO_VERSION</filename></link>
  11867. and
  11868. <link linkend='var-DATE'><filename>DATE</filename></link>
  11869. variables.
  11870. </para>
  11871. </glossdef>
  11872. </glossentry>
  11873. <glossentry id='var-SDKEXTPATH'><glossterm>SDKEXTPATH</glossterm>
  11874. <info>
  11875. SDKEXTPATH[doc] = "The default installation directory for the extensible SDK."
  11876. </info>
  11877. <glossdef>
  11878. <para role="glossdeffirst">
  11879. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11880. The default installation directory for the Extensible SDK.
  11881. By default, this directory is based on the
  11882. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>
  11883. variable and is set in the
  11884. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11885. class as follows:
  11886. <literallayout class='monospaced'>
  11887. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  11888. </literallayout>
  11889. For the default distribution "poky", the
  11890. <filename>SDKEXTPATH</filename> is set to "poky_sdk".
  11891. </para>
  11892. <para>
  11893. For information on how to change this default directory,
  11894. see the
  11895. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-changing-the-default-sdk-installation-directory'>Changing the Default SDK Installation Directory</ulink>"
  11896. section in the Yocto Project Application Development and
  11897. the Extensible Software Development Kit (eSDK) manual.
  11898. </para>
  11899. </glossdef>
  11900. </glossentry>
  11901. <glossentry id='var-SDKIMAGE_FEATURES'><glossterm>SDKIMAGE_FEATURES</glossterm>
  11902. <info>
  11903. 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'."
  11904. </info>
  11905. <glossdef>
  11906. <para role="glossdeffirst">
  11907. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11908. Equivalent to
  11909. <filename><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></filename>.
  11910. However, this variable applies to the SDK generated from an
  11911. image using the following command:
  11912. <literallayout class='monospaced'>
  11913. $ bitbake -c populate_sdk <replaceable>imagename</replaceable>
  11914. </literallayout>
  11915. </para>
  11916. </glossdef>
  11917. </glossentry>
  11918. <glossentry id='var-SDKMACHINE'><glossterm>SDKMACHINE</glossterm>
  11919. <info>
  11920. SDKMACHINE[doc] = "Specifies the architecture (i.e. i686 or x86_64) for which to build SDK items."
  11921. </info>
  11922. <glossdef>
  11923. <para role="glossdeffirst">
  11924. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11925. The machine for which the SDK is built.
  11926. In other words, the SDK is built such that it
  11927. runs on the target you specify with the
  11928. <filename>SDKMACHINE</filename> value.
  11929. The value points to a corresponding
  11930. <filename>.conf</filename> file under
  11931. <filename>conf/machine-sdk/</filename>.
  11932. </para>
  11933. <para>
  11934. You can use "i686" and "x86_64" as possible values
  11935. for this variable. The variable defaults to "i686"
  11936. and is set in the local.conf file in the Build Directory.
  11937. <literallayout class='monospaced'>
  11938. SDKMACHINE ?= "i686"
  11939. </literallayout>
  11940. <note>
  11941. You cannot set the <filename>SDKMACHINE</filename>
  11942. variable in your distribution configuration file.
  11943. If you do, the configuration will not take affect.
  11944. </note>
  11945. </para>
  11946. </glossdef>
  11947. </glossentry>
  11948. <glossentry id='var-SDKPATH'><glossterm>SDKPATH</glossterm>
  11949. <info>
  11950. SDKPATH[doc] = "Defines the path offered to the user for installation of the SDK that is generated by the OpenEmbedded build system."
  11951. </info>
  11952. <glossdef>
  11953. <para role="glossdeffirst">
  11954. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11955. Defines the path offered to the user for installation
  11956. of the SDK that is generated by the OpenEmbedded build
  11957. system.
  11958. The path appears as the default location for installing
  11959. the SDK when you run the SDK's installation script.
  11960. You can override the offered path when you run the
  11961. script.
  11962. </para>
  11963. </glossdef>
  11964. </glossentry>
  11965. <glossentry id='var-SDKTARGETSYSROOT'><glossterm>SDKTARGETSYSROOT</glossterm>
  11966. <info>
  11967. SDKTARGETSYSROOT[doc] = "Full path to the sysroot used for cross-compilation within an SDK as it will be when installed into the default SDKPATH."
  11968. </info>
  11969. <glossdef>
  11970. <para role="glossdeffirst">
  11971. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11972. The full path to the sysroot used for cross-compilation
  11973. within an SDK as it will be when installed into the
  11974. default
  11975. <link linkend='var-SDKPATH'><filename>SDKPATH</filename></link>.
  11976. </para>
  11977. </glossdef>
  11978. </glossentry>
  11979. <glossentry id='var-SECTION'><glossterm>SECTION</glossterm>
  11980. <info>
  11981. SECTION[doc] = "The section in which packages should be categorized. Package management utilities can make use of this variable."
  11982. </info>
  11983. <glossdef>
  11984. <para role="glossdeffirst">
  11985. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11986. The section in which packages should be categorized.
  11987. Package management utilities can make use of this variable.
  11988. </para>
  11989. </glossdef>
  11990. </glossentry>
  11991. <glossentry id='var-SELECTED_OPTIMIZATION'><glossterm>SELECTED_OPTIMIZATION</glossterm>
  11992. <info>
  11993. 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."
  11994. </info>
  11995. <glossdef>
  11996. <para role="glossdeffirst">
  11997. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11998. Specifies the optimization flags passed to the C compiler
  11999. when building for the target.
  12000. The flags are passed through the default value of the
  12001. <link linkend='var-TARGET_CFLAGS'><filename>TARGET_CFLAGS</filename></link>
  12002. variable.
  12003. </para>
  12004. <para>
  12005. The <filename>SELECTED_OPTIMIZATION</filename> variable
  12006. takes the value of
  12007. <filename><link linkend='var-FULL_OPTIMIZATION'>FULL_OPTIMIZATION</link></filename>
  12008. unless <filename><link linkend='var-DEBUG_BUILD'>DEBUG_BUILD</link></filename> = "1".
  12009. If that is the case, the value of
  12010. <filename><link linkend='var-DEBUG_OPTIMIZATION'>DEBUG_OPTIMIZATION</link></filename> is used.
  12011. </para>
  12012. </glossdef>
  12013. </glossentry>
  12014. <glossentry id='var-SERIAL_CONSOLE'><glossterm>SERIAL_CONSOLE</glossterm>
  12015. <info>
  12016. SERIAL_CONSOLE[doc] = "Defines the serial consoles (TTYs) to enable using getty."
  12017. </info>
  12018. <glossdef>
  12019. <para role="glossdeffirst">
  12020. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12021. Defines a serial console (TTY) to enable using
  12022. <ulink url='https://en.wikipedia.org/wiki/Getty_(Unix)'>getty</ulink>.
  12023. Provide a value that specifies the baud rate followed by
  12024. the TTY device name separated by a space.
  12025. You cannot specify more than one TTY device:
  12026. <literallayout class='monospaced'>
  12027. SERIAL_CONSOLE = "115200 ttyS0"
  12028. </literallayout>
  12029. <note>
  12030. The <filename>SERIAL_CONSOLE</filename> variable
  12031. is deprecated.
  12032. Please use the
  12033. <link linkend='var-SERIAL_CONSOLES'><filename>SERIAL_CONSOLES</filename></link>
  12034. variable.
  12035. </note>
  12036. </para>
  12037. </glossdef>
  12038. </glossentry>
  12039. <glossentry id='var-SERIAL_CONSOLES'><glossterm>SERIAL_CONSOLES</glossterm>
  12040. <info>
  12041. SERIAL_CONSOLES[doc] = "Defines the serial consoles (TTYs) to enable using getty."
  12042. </info>
  12043. <glossdef>
  12044. <para role="glossdeffirst">
  12045. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12046. Defines a serial console (TTY) to enable using
  12047. <ulink url='https://en.wikipedia.org/wiki/Getty_(Unix)'>getty</ulink>.
  12048. Provide a value that specifies the baud rate followed by
  12049. the TTY device name separated by a semicolon.
  12050. Use spaces to separate multiple devices:
  12051. <literallayout class='monospaced'>
  12052. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  12053. </literallayout>
  12054. </para>
  12055. </glossdef>
  12056. </glossentry>
  12057. <glossentry id='var-SERIAL_CONSOLES_CHECK'><glossterm>SERIAL_CONSOLES_CHECK</glossterm>
  12058. <info>
  12059. SERIAL_CONSOLES_CHECK[doc] = "Selected SERIAL_CONSOLES to check against /proc/console before enabling using getty. Supported only by SysVinit."
  12060. </info>
  12061. <glossdef>
  12062. <para role="glossdeffirst">
  12063. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12064. Specifies serial consoles, which must be listed in
  12065. <link linkend='var-SERIAL_CONSOLES'><filename>SERIAL_CONSOLES</filename></link>,
  12066. to check against <filename>/proc/console</filename>
  12067. before enabling them using getty.
  12068. This variable allows aliasing in the format:
  12069. &lt;device&gt;:&lt;alias&gt;.
  12070. If a device was listed as "sclp_line0"
  12071. in <filename>/dev/</filename> and "ttyS0" was listed
  12072. in <filename>/proc/console</filename>, you would do the
  12073. following:
  12074. <literallayout class='monospaced'>
  12075. SERIAL_CONSOLES_CHECK = "slcp_line0:ttyS0"
  12076. </literallayout>
  12077. This variable is currently only supported with SysVinit
  12078. (i.e. not with systemd).
  12079. </para>
  12080. </glossdef>
  12081. </glossentry>
  12082. <glossentry id='var-SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS'><glossterm>SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS</glossterm>
  12083. <info>
  12084. 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."
  12085. </info>
  12086. <glossdef>
  12087. <para role="glossdeffirst">
  12088. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12089. A list of recipe dependencies that should not be used to
  12090. determine signatures of tasks from one recipe when they
  12091. depend on tasks from another recipe.
  12092. For example:
  12093. <literallayout class='monospaced'>
  12094. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  12095. </literallayout>
  12096. </para>
  12097. <para>
  12098. In the previous example, <filename>intone</filename>
  12099. depends on <filename>mplayer2</filename>.
  12100. </para>
  12101. <para>
  12102. You can use the special token <filename>"*"</filename> on
  12103. the left-hand side of the dependency to match all
  12104. recipes except the one on the right-hand side.
  12105. Here is an example:
  12106. <literallayout class='monospaced'>
  12107. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  12108. </literallayout>
  12109. </para>
  12110. <para>
  12111. In the previous example, all recipes except
  12112. <filename>quilt-native</filename> ignore task
  12113. signatures from the <filename>quilt-native</filename>
  12114. recipe when determining their task signatures.
  12115. </para>
  12116. <para>
  12117. Use of this variable is one mechanism to remove dependencies
  12118. that affect task signatures and thus force rebuilds when a
  12119. recipe changes.
  12120. <note><title>Caution</title>
  12121. If you add an inappropriate dependency for a recipe
  12122. relationship, the software might break during
  12123. runtime if the interface of the second recipe was
  12124. changed after the first recipe had been built.
  12125. </note>
  12126. </para>
  12127. </glossdef>
  12128. </glossentry>
  12129. <glossentry id='var-SIGGEN_EXCLUDERECIPES_ABISAFE'><glossterm>SIGGEN_EXCLUDERECIPES_ABISAFE</glossterm>
  12130. <info>
  12131. SIGGEN_EXCLUDERECIPES_ABISAFE[doc] = "A list of recipes that are completely stable and will never change."
  12132. </info>
  12133. <glossdef>
  12134. <para role="glossdeffirst">
  12135. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12136. A list of recipes that are completely stable and will
  12137. never change.
  12138. The ABI for the recipes in the list are presented by
  12139. output from the tasks run to build the recipe.
  12140. Use of this variable is one way to remove dependencies from
  12141. one recipe on another that affect task signatures and
  12142. thus force rebuilds when the recipe changes.
  12143. <note><title>Caution</title>
  12144. If you add an inappropriate variable to this list,
  12145. the software might break at runtime if the
  12146. interface of the recipe was changed after the other
  12147. had been built.
  12148. </note>
  12149. </para>
  12150. </glossdef>
  12151. </glossentry>
  12152. <glossentry id='var-SITEINFO_BITS'><glossterm>SITEINFO_BITS</glossterm>
  12153. <info>
  12154. SITEINFO_BITS[doc] = "Specifies the number of bits for the target system CPU."
  12155. </info>
  12156. <glossdef>
  12157. <para role="glossdeffirst">
  12158. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12159. Specifies the number of bits for the target system CPU.
  12160. The value should be either "32" or "64".
  12161. </para>
  12162. </glossdef>
  12163. </glossentry>
  12164. <glossentry id='var-SITEINFO_ENDIANNESS'><glossterm>SITEINFO_ENDIANNESS</glossterm>
  12165. <info>
  12166. 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'."
  12167. </info>
  12168. <glossdef>
  12169. <para role="glossdeffirst">
  12170. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12171. Specifies the endian byte order of the target system.
  12172. The value should be either "le" for little-endian or "be" for big-endian.
  12173. </para>
  12174. </glossdef>
  12175. </glossentry>
  12176. <glossentry id='var-SKIP_FILEDEPS'><glossterm>SKIP_FILEDEPS</glossterm>
  12177. <info>
  12178. SKIP_FILEDEPS[doc] = "Enables you to remove all files from
  12179. the "Provides" section of an RPM package."
  12180. </info>
  12181. <glossdef>
  12182. <para role="glossdeffirst">
  12183. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12184. Enables removal of all files from the "Provides" section of
  12185. an RPM package.
  12186. Removal of these files is required for packages containing
  12187. prebuilt binaries and libraries such as
  12188. <filename>libstdc++</filename> and
  12189. <filename>glibc</filename>.
  12190. </para>
  12191. <para>
  12192. To enable file removal, set the variable to "1" in your
  12193. <filename>conf/local.conf</filename> configuration file
  12194. in your:
  12195. <link linkend='build-directory'>Build Directory</link>.
  12196. <literallayout class='monospaced'>
  12197. SKIP_FILEDEPS = "1"
  12198. </literallayout>
  12199. </para>
  12200. </glossdef>
  12201. </glossentry>
  12202. <glossentry id='var-SOC_FAMILY'><glossterm>SOC_FAMILY</glossterm>
  12203. <info>
  12204. 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."
  12205. </info>
  12206. <glossdef>
  12207. <para role="glossdeffirst">
  12208. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12209. Groups together machines based upon the same family
  12210. of SOC (System On Chip).
  12211. You typically set this variable in a common
  12212. <filename>.inc</filename> file that you include in the
  12213. configuration files of all the machines.
  12214. <note>
  12215. You must include
  12216. <filename>conf/machine/include/soc-family.inc</filename>
  12217. for this variable to appear in
  12218. <link linkend='var-MACHINEOVERRIDES'><filename>MACHINEOVERRIDES</filename></link>.
  12219. </note>
  12220. </para>
  12221. </glossdef>
  12222. </glossentry>
  12223. <glossentry id='var-SOLIBS'><glossterm>SOLIBS</glossterm>
  12224. <info>
  12225. SOLIBS[doc] = "Defines the suffix for shared libraries used on the target platform."
  12226. </info>
  12227. <glossdef>
  12228. <para role="glossdeffirst">
  12229. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12230. Defines the suffix for shared libraries used on the
  12231. target platform.
  12232. By default, this suffix is ".so.*" for all Linux-based
  12233. systems and is defined in the
  12234. <filename>meta/conf/bitbake.conf</filename> configuration
  12235. file.
  12236. </para>
  12237. <para>
  12238. You will see this variable referenced in the default values
  12239. of <filename>FILES_${PN}</filename>.
  12240. </para>
  12241. </glossdef>
  12242. </glossentry>
  12243. <glossentry id='var-SOLIBSDEV'><glossterm>SOLIBSDEV</glossterm>
  12244. <info>
  12245. SOLIBSDEV[doc] = "Defines the suffix for the development symbolic link (symlink) for shared libraries on the target platform."
  12246. </info>
  12247. <glossdef>
  12248. <para role="glossdeffirst">
  12249. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12250. Defines the suffix for the development symbolic link
  12251. (symlink) for shared libraries on the target platform.
  12252. By default, this suffix is ".so" for Linux-based
  12253. systems and is defined in the
  12254. <filename>meta/conf/bitbake.conf</filename> configuration
  12255. file.
  12256. </para>
  12257. <para>
  12258. You will see this variable referenced in the default values
  12259. of <filename>FILES_${PN}-dev</filename>.
  12260. </para>
  12261. </glossdef>
  12262. </glossentry>
  12263. <glossentry id='var-SOURCE_MIRROR_FETCH'><glossterm>SOURCE_MIRROR_FETCH</glossterm>
  12264. <info>
  12265. SOURCE_MIRROR_FETCH[doc] = "Set as part of a source mirror generation script to skip COMPATIBLE_MACHINE and COMPATIBLE_HOST checks."
  12266. </info>
  12267. <glossdef>
  12268. <para role="glossdeffirst">
  12269. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12270. When you are fetching files to create a mirror of sources
  12271. (i.e. creating a source mirror), setting
  12272. <filename>SOURCE_MIRROR_FETCH</filename> to "1" in your
  12273. <filename>local.conf</filename> configuration file ensures
  12274. the source for all recipes are fetched regardless of
  12275. whether or not a recipe is compatible with the
  12276. configuration.
  12277. A recipe is considered incompatible with the currently
  12278. configured machine when either or both the
  12279. <link linkend='var-COMPATIBLE_MACHINE'><filename>COMPATIBLE_MACHINE</filename></link>
  12280. variable and
  12281. <link linkend='var-COMPATIBLE_HOST'><filename>COMPATIBLE_HOST</filename></link>
  12282. variables specify compatibility with a machine other
  12283. than that of the current machine or host.
  12284. <note><title>Warning</title>
  12285. Do not set the
  12286. <filename>SOURCE_MIRROR_FETCH</filename> variable
  12287. unless you are creating a source mirror.
  12288. In other words, do not set the variable during a
  12289. normal build.
  12290. </note>
  12291. </para>
  12292. </glossdef>
  12293. </glossentry>
  12294. <glossentry id='var-SOURCE_MIRROR_URL'><glossterm>SOURCE_MIRROR_URL</glossterm>
  12295. <info>
  12296. SOURCE_MIRROR_URL[doc] = "URL to source mirror that will be used before fetching from original SRC_URI."
  12297. </info>
  12298. <glossdef>
  12299. <para role="glossdeffirst">
  12300. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12301. Defines your own
  12302. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  12303. from which to first fetch source before attempting to fetch
  12304. from the upstream specified in
  12305. <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>.
  12306. </para>
  12307. <para>
  12308. To use this variable, you must globally inherit the
  12309. <link linkend='ref-classes-own-mirrors'><filename>own-mirrors</filename></link>
  12310. class and then provide the URL to your mirrors.
  12311. Here is the general syntax:
  12312. <literallayout class='monospaced'>
  12313. INHERIT += "own-mirrors"
  12314. SOURCE_MIRROR_URL = "http://<replaceable>example</replaceable>.com/<replaceable>my_source_mirror</replaceable>"
  12315. </literallayout>
  12316. <note>
  12317. You can specify only a single URL in
  12318. <filename>SOURCE_MIRROR_URL</filename>.
  12319. </note>
  12320. </para>
  12321. </glossdef>
  12322. </glossentry>
  12323. <glossentry id='var-SPDXLICENSEMAP'><glossterm>SPDXLICENSEMAP</glossterm>
  12324. <info>
  12325. SPDXLICENSEMAP[doc] = "Maps commonly used license names to their SPDX counterparts found in meta/files/common-licenses/."
  12326. </info>
  12327. <glossdef>
  12328. <para role="glossdeffirst">
  12329. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12330. Maps commonly used license names to their SPDX counterparts
  12331. found in <filename>meta/files/common-licenses/</filename>.
  12332. For the default <filename>SPDXLICENSEMAP</filename>
  12333. mappings, see the
  12334. <filename>meta/conf/licenses.conf</filename> file.
  12335. </para>
  12336. <para>
  12337. For additional information, see the
  12338. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  12339. variable.
  12340. </para>
  12341. </glossdef>
  12342. </glossentry>
  12343. <glossentry id='var-SPECIAL_PKGSUFFIX'><glossterm>SPECIAL_PKGSUFFIX</glossterm>
  12344. <info>
  12345. 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."
  12346. </info>
  12347. <glossdef>
  12348. <para role="glossdeffirst">
  12349. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12350. A list of prefixes for <link linkend='var-PN'><filename>PN</filename></link> used by the
  12351. OpenEmbedded build system to create variants of recipes or packages.
  12352. The list specifies the prefixes to strip off during certain circumstances
  12353. such as the generation of the <link linkend='var-BPN'><filename>BPN</filename></link> variable.
  12354. </para>
  12355. </glossdef>
  12356. </glossentry>
  12357. <glossentry id='var-SPL_BINARY'><glossterm>SPL_BINARY</glossterm>
  12358. <info>
  12359. SPL_BINARY[doc] = "The file type of the Secondary Program Loader (SPL)."
  12360. </info>
  12361. <glossdef>
  12362. <para role="glossdeffirst">
  12363. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12364. The file type for the Secondary Program Loader (SPL).
  12365. Some devices use an SPL from which to boot (e.g. the
  12366. BeagleBone development board).
  12367. For such cases, you can declare the file type of the
  12368. SPL binary in the <filename>u-boot.inc</filename> include
  12369. file, which is used in the U-Boot recipe.
  12370. </para>
  12371. <para>
  12372. The SPL file type is set to "null" by default in the
  12373. <filename>u-boot.inc</filename> file as follows:
  12374. <literallayout class='monospaced'>
  12375. # Some versions of u-boot build an SPL (Second Program Loader) image that
  12376. # should be packaged along with the u-boot binary as well as placed in the
  12377. # deploy directory. For those versions they can set the following variables
  12378. # to allow packaging the SPL.
  12379. SPL_BINARY ?= ""
  12380. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  12381. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  12382. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  12383. </literallayout>
  12384. The <filename>SPL_BINARY</filename> variable helps form
  12385. various <filename>SPL_*</filename> variables used by
  12386. the OpenEmbedded build system.
  12387. </para>
  12388. <para>
  12389. See the BeagleBone machine configuration example in the
  12390. "<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>"
  12391. section in the Yocto Project Board Support Package
  12392. Developer's Guide for additional information.
  12393. </para>
  12394. </glossdef>
  12395. </glossentry>
  12396. <glossentry id='var-SRC_URI'><glossterm>SRC_URI</glossterm>
  12397. <info>
  12398. 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."
  12399. </info>
  12400. <glossdef>
  12401. <para role="glossdeffirst">
  12402. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12403. The list of source files - local or remote.
  12404. This variable tells the OpenEmbedded build system which bits
  12405. to pull in for the build and how to pull them in.
  12406. For example, if the recipe or append file only needs to
  12407. fetch a tarball from the Internet, the recipe or
  12408. append file uses a single <filename>SRC_URI</filename>
  12409. entry.
  12410. On the other hand, if the recipe or append file needs to
  12411. fetch a tarball, apply two patches, and include a custom
  12412. file, the recipe or append file would include four
  12413. instances of the variable.
  12414. </para>
  12415. <para>
  12416. The following list explains the available URI protocols.
  12417. URI protocols are highly dependent on particular BitBake
  12418. Fetcher submodules.
  12419. Depending on the fetcher BitBake uses, various URL
  12420. parameters are employed.
  12421. For specifics on the supported Fetchers, see the
  12422. "<ulink url='&YOCTO_DOCS_BB_URL;#bb-fetchers'>Fetchers</ulink>"
  12423. section in the BitBake User Manual.
  12424. <itemizedlist>
  12425. <listitem><para><emphasis><filename>file://</filename> -</emphasis>
  12426. Fetches files, which are usually files shipped with
  12427. the
  12428. <link linkend='metadata'>Metadata</link>,
  12429. from the local machine (e.g.
  12430. <ulink url='&YOCTO_DOCS_OM_URL;#patching-dev-environment'>patch</ulink>
  12431. files).
  12432. The path is relative to the
  12433. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>
  12434. variable.
  12435. Thus, the build system searches, in order, from the
  12436. following directories, which are assumed to be a
  12437. subdirectories of the directory in which the
  12438. recipe file (<filename>.bb</filename>) or
  12439. append file (<filename>.bbappend</filename>)
  12440. resides:
  12441. <itemizedlist>
  12442. <listitem><para><emphasis><filename>${BPN}</filename> -</emphasis>
  12443. The base recipe name without any special
  12444. suffix or version numbers.
  12445. </para></listitem>
  12446. <listitem><para><emphasis><filename>${BP}</filename> -</emphasis>
  12447. <filename>${<link linkend='var-BPN'>BPN</link>}-${PV}</filename>.
  12448. The base recipe name and version but without
  12449. any special package name suffix.
  12450. </para></listitem>
  12451. <listitem><para><emphasis>files -</emphasis>
  12452. Files within a directory, which is named
  12453. <filename>files</filename> and is also
  12454. alongside the recipe or append file.
  12455. </para></listitem>
  12456. </itemizedlist>
  12457. <note>
  12458. If you want the build system to pick up files
  12459. specified through a
  12460. <filename>SRC_URI</filename>
  12461. statement from your append file, you need to be
  12462. sure to extend the
  12463. <filename>FILESPATH</filename>
  12464. variable by also using the
  12465. <link linkend='var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></link>
  12466. variable from within your append file.
  12467. </note>
  12468. </para></listitem>
  12469. <listitem><para><emphasis><filename>bzr://</filename> -</emphasis> Fetches files from a
  12470. Bazaar revision control repository.</para></listitem>
  12471. <listitem><para><emphasis><filename>git://</filename> -</emphasis> Fetches files from a
  12472. Git revision control repository.</para></listitem>
  12473. <listitem><para><emphasis><filename>osc://</filename> -</emphasis> Fetches files from
  12474. an OSC (OpenSUSE Build service) revision control repository.</para></listitem>
  12475. <listitem><para><emphasis><filename>repo://</filename> -</emphasis> Fetches files from
  12476. a repo (Git) repository.</para></listitem>
  12477. <listitem><para><emphasis><filename>ccrc://</filename> -</emphasis>
  12478. Fetches files from a ClearCase repository.
  12479. </para></listitem>
  12480. <listitem><para><emphasis><filename>http://</filename> -</emphasis> Fetches files from
  12481. the Internet using <filename>http</filename>.</para></listitem>
  12482. <listitem><para><emphasis><filename>https://</filename> -</emphasis> Fetches files
  12483. from the Internet using <filename>https</filename>.</para></listitem>
  12484. <listitem><para><emphasis><filename>ftp://</filename> -</emphasis> Fetches files
  12485. from the Internet using <filename>ftp</filename>.</para></listitem>
  12486. <listitem><para><emphasis><filename>cvs://</filename> -</emphasis> Fetches files from
  12487. a CVS revision control repository.</para></listitem>
  12488. <listitem><para><emphasis><filename>hg://</filename> -</emphasis> Fetches files from
  12489. a Mercurial (<filename>hg</filename>) revision control repository.</para></listitem>
  12490. <listitem><para><emphasis><filename>p4://</filename> -</emphasis> Fetches files from
  12491. a Perforce (<filename>p4</filename>) revision control repository.</para></listitem>
  12492. <listitem><para><emphasis><filename>ssh://</filename> -</emphasis> Fetches files from
  12493. a secure shell.</para></listitem>
  12494. <listitem><para><emphasis><filename>svn://</filename> -</emphasis> Fetches files from
  12495. a Subversion (<filename>svn</filename>) revision control repository.</para></listitem>
  12496. </itemizedlist>
  12497. </para>
  12498. <para>
  12499. Standard and recipe-specific options for <filename>SRC_URI</filename> exist.
  12500. Here are standard options:
  12501. <itemizedlist>
  12502. <listitem><para><emphasis><filename>apply</filename> -</emphasis> Whether to apply
  12503. the patch or not.
  12504. The default action is to apply the patch.</para></listitem>
  12505. <listitem><para><emphasis><filename>striplevel</filename> -</emphasis> Which
  12506. striplevel to use when applying the patch.
  12507. The default level is 1.</para></listitem>
  12508. <listitem><para><emphasis><filename>patchdir</filename> -</emphasis> Specifies
  12509. the directory in which the patch should be applied.
  12510. The default is <filename>${</filename><link linkend='var-S'><filename>S</filename></link><filename>}</filename>.
  12511. </para></listitem>
  12512. </itemizedlist>
  12513. </para>
  12514. <para>
  12515. Here are options specific to recipes building code from a revision control system:
  12516. <itemizedlist>
  12517. <listitem><para><emphasis><filename>mindate</filename> -</emphasis>
  12518. Apply the patch only if
  12519. <link linkend='var-SRCDATE'><filename>SRCDATE</filename></link>
  12520. is equal to or greater than <filename>mindate</filename>.
  12521. </para></listitem>
  12522. <listitem><para><emphasis><filename>maxdate</filename> -</emphasis>
  12523. Apply the patch only if <filename>SRCDATE</filename>
  12524. is not later than <filename>mindate</filename>.
  12525. </para></listitem>
  12526. <listitem><para><emphasis><filename>minrev</filename> -</emphasis>
  12527. Apply the patch only if <filename>SRCREV</filename>
  12528. is equal to or greater than <filename>minrev</filename>.
  12529. </para></listitem>
  12530. <listitem><para><emphasis><filename>maxrev</filename> -</emphasis>
  12531. Apply the patch only if <filename>SRCREV</filename>
  12532. is not later than <filename>maxrev</filename>.
  12533. </para></listitem>
  12534. <listitem><para><emphasis><filename>rev</filename> -</emphasis>
  12535. Apply the patch only if <filename>SRCREV</filename>
  12536. is equal to <filename>rev</filename>.
  12537. </para></listitem>
  12538. <listitem><para><emphasis><filename>notrev</filename> -</emphasis>
  12539. Apply the patch only if <filename>SRCREV</filename>
  12540. is not equal to <filename>rev</filename>.
  12541. </para></listitem>
  12542. </itemizedlist>
  12543. </para>
  12544. <para>
  12545. Here are some additional options worth mentioning:
  12546. <itemizedlist>
  12547. <listitem><para><emphasis><filename>unpack</filename> -</emphasis> Controls
  12548. whether or not to unpack the file if it is an archive.
  12549. The default action is to unpack the file.</para></listitem>
  12550. <listitem><para><emphasis><filename>destsuffix</filename> -</emphasis> Places the file
  12551. (or extracts its contents) into the specified
  12552. subdirectory of <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  12553. when the Git fetcher is used.
  12554. </para></listitem>
  12555. <listitem><para><emphasis><filename>subdir</filename> -</emphasis> Places the file
  12556. (or extracts its contents) into the specified
  12557. subdirectory of <filename>WORKDIR</filename>
  12558. when the local (<filename>file://</filename>)
  12559. fetcher is used.
  12560. </para></listitem>
  12561. <listitem><para><emphasis><filename>localdir</filename> -</emphasis> Places the file
  12562. (or extracts its contents) into the specified
  12563. subdirectory of <filename>WORKDIR</filename> when
  12564. the CVS fetcher is used.
  12565. </para></listitem>
  12566. <listitem><para><emphasis><filename>subpath</filename> -</emphasis>
  12567. Limits the checkout to a specific subpath of the
  12568. tree when using the Git fetcher is used.
  12569. </para></listitem>
  12570. <listitem><para><emphasis><filename>name</filename> -</emphasis> Specifies a
  12571. name to be used for association with <filename>SRC_URI</filename> checksums
  12572. when you have more than one file specified in <filename>SRC_URI</filename>.
  12573. </para></listitem>
  12574. <listitem><para><emphasis><filename>downloadfilename</filename> -</emphasis> Specifies
  12575. the filename used when storing the downloaded file.</para></listitem>
  12576. </itemizedlist>
  12577. </para>
  12578. </glossdef>
  12579. </glossentry>
  12580. <glossentry id='var-SRC_URI_OVERRIDES_PACKAGE_ARCH'><glossterm>SRC_URI_OVERRIDES_PACKAGE_ARCH</glossterm>
  12581. <info>
  12582. 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."
  12583. </info>
  12584. <glossdef>
  12585. <para role="glossdeffirst">
  12586. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12587. By default, the OpenEmbedded build system automatically detects whether
  12588. <filename><link linkend='var-SRC_URI'>SRC_URI</link></filename>
  12589. contains files that are machine-specific.
  12590. If so, the build system automatically changes
  12591. <filename><link linkend='var-PACKAGE_ARCH'>PACKAGE_ARCH</link></filename>.
  12592. Setting this variable to "0" disables this behavior.
  12593. </para>
  12594. </glossdef>
  12595. </glossentry>
  12596. <glossentry id='var-SRCDATE'><glossterm>SRCDATE</glossterm>
  12597. <info>
  12598. 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)."
  12599. </info>
  12600. <glossdef>
  12601. <para role="glossdeffirst">
  12602. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12603. The date of the source code used to build the package.
  12604. This variable applies only if the source was fetched from a Source Code Manager (SCM).
  12605. </para>
  12606. </glossdef>
  12607. </glossentry>
  12608. <glossentry id='var-SRCPV'><glossterm>SRCPV</glossterm>
  12609. <info>
  12610. SRCPV[doc] = "Returns the version string of the current package. This string is used to help define the value of PV."
  12611. </info>
  12612. <glossdef>
  12613. <para role="glossdeffirst">
  12614. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12615. Returns the version string of the current package.
  12616. This string is used to help define the value of
  12617. <link linkend='var-PV'><filename>PV</filename></link>.
  12618. </para>
  12619. <para>
  12620. The <filename>SRCPV</filename> variable is defined in the
  12621. <filename>meta/conf/bitbake.conf</filename> configuration
  12622. file in the
  12623. <link linkend='source-directory'>Source Directory</link>
  12624. as follows:
  12625. <literallayout class='monospaced'>
  12626. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  12627. </literallayout>
  12628. </para>
  12629. <para>
  12630. Recipes that need to define <filename>PV</filename> do so
  12631. with the help of the <filename>SRCPV</filename>.
  12632. For example, the <filename>ofono</filename> recipe
  12633. (<filename>ofono_git.bb</filename>) located in
  12634. <filename>meta/recipes-connectivity</filename> in the
  12635. Source Directory defines <filename>PV</filename> as
  12636. follows:
  12637. <literallayout class='monospaced'>
  12638. PV = "0.12-git${SRCPV}"
  12639. </literallayout>
  12640. </para>
  12641. </glossdef>
  12642. </glossentry>
  12643. <glossentry id='var-SRCREV'><glossterm>SRCREV</glossterm>
  12644. <info>
  12645. SRCREV[doc] = "The revision of the source code used to build the package. This variable applies to Subversion, Git, Mercurial, and Bazaar only."
  12646. </info>
  12647. <glossdef>
  12648. <para role="glossdeffirst">
  12649. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12650. The revision of the source code used to build the package.
  12651. This variable applies to Subversion, Git, Mercurial, and
  12652. Bazaar only.
  12653. Note that if you want to build a fixed revision and you
  12654. want to avoid performing a query on the remote repository
  12655. every time BitBake parses your recipe, you should specify
  12656. a <filename>SRCREV</filename> that is a
  12657. full revision identifier and not just a tag.
  12658. <note>
  12659. For information on limitations when inheriting the
  12660. latest revision of software using
  12661. <filename>SRCREV</filename>, see the
  12662. <link linkend='var-AUTOREV'><filename>AUTOREV</filename></link>
  12663. variable description and the
  12664. "<ulink url='&YOCTO_DOCS_DEV_URL;#automatically-incrementing-a-binary-package-revision-number'>Automatically Incrementing a Binary Package Revision Number</ulink>"
  12665. section, which is in the Yocto Project Development
  12666. Tasks Manual.
  12667. </note>
  12668. </para>
  12669. </glossdef>
  12670. </glossentry>
  12671. <glossentry id='var-SSTATE_DIR'><glossterm>SSTATE_DIR</glossterm>
  12672. <info>
  12673. SSTATE_DIR[doc] = "The directory for the shared state cache."
  12674. </info>
  12675. <glossdef>
  12676. <para role="glossdeffirst">
  12677. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12678. The directory for the shared state cache.
  12679. </para>
  12680. </glossdef>
  12681. </glossentry>
  12682. <glossentry id='var-SSTATE_MIRROR_ALLOW_NETWORK'><glossterm>SSTATE_MIRROR_ALLOW_NETWORK</glossterm>
  12683. <info>
  12684. 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"."
  12685. </info>
  12686. <glossdef>
  12687. <para role="glossdeffirst">
  12688. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12689. If set to "1", allows fetches from
  12690. mirrors that are specified in
  12691. <link linkend='var-SSTATE_MIRRORS'><filename>SSTATE_MIRRORS</filename></link>
  12692. to work even when fetching from the network is
  12693. disabled by setting <filename>BB_NO_NETWORK</filename>
  12694. to "1".
  12695. Using the
  12696. <filename>SSTATE_MIRROR_ALLOW_NETWORK</filename>
  12697. variable is useful if you have set
  12698. <filename>SSTATE_MIRRORS</filename> to point to an
  12699. internal server for your shared state cache, but
  12700. you want to disable any other fetching from the network.
  12701. </para>
  12702. </glossdef>
  12703. </glossentry>
  12704. <glossentry id='var-SSTATE_MIRRORS'><glossterm>SSTATE_MIRRORS</glossterm>
  12705. <info>
  12706. 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."
  12707. </info>
  12708. <glossdef>
  12709. <para role="glossdeffirst">
  12710. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12711. Configures the OpenEmbedded build system to search other
  12712. mirror locations for prebuilt cache data objects before
  12713. building out the data.
  12714. This variable works like fetcher
  12715. <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link>
  12716. and <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  12717. and points to the cache locations to check for the shared
  12718. state (sstate) objects.
  12719. </para>
  12720. <para>
  12721. You can specify a filesystem directory or a remote URL such
  12722. as HTTP or FTP.
  12723. The locations you specify need to contain the shared state
  12724. cache (sstate-cache) results from previous builds.
  12725. The sstate-cache you point to can also be from builds on
  12726. other machines.
  12727. </para>
  12728. <para>
  12729. When pointing to sstate build artifacts on another machine
  12730. that uses a different GCC version for native builds,
  12731. you must configure <filename>SSTATE_MIRROR</filename>
  12732. with a regular expression that maps local search paths
  12733. to server paths.
  12734. The paths need to take into account
  12735. <link linkend='var-NATIVELSBSTRING'><filename>NATIVELSBSTRING</filename></link>
  12736. set by the
  12737. <link linkend='ref-classes-uninative'><filename>uninative</filename></link>
  12738. class.
  12739. For example, the following maps the local search path
  12740. <filename>universal-4.9</filename> to the server-provided
  12741. path <replaceable>server_url_sstate_path</replaceable>:
  12742. <literallayout class='monospaced'>
  12743. SSTATE_MIRRORS ?= file://universal-4.9/(.*) http://<replaceable>server_url_sstate_path</replaceable>/universal-4.8/\1 \n
  12744. </literallayout>
  12745. </para>
  12746. <para>
  12747. If a mirror uses the same structure as
  12748. <link linkend='var-SSTATE_DIR'><filename>SSTATE_DIR</filename></link>,
  12749. you need to add
  12750. "PATH" at the end as shown in the examples below.
  12751. The build system substitutes the correct path within the
  12752. directory structure.
  12753. <literallayout class='monospaced'>
  12754. SSTATE_MIRRORS ?= "\
  12755. file://.* http://<replaceable>someserver</replaceable>.tld/share/sstate/PATH;downloadfilename=PATH \n \
  12756. file://.* file:///<replaceable>some-local-dir</replaceable>/sstate/PATH"
  12757. </literallayout>
  12758. </para>
  12759. </glossdef>
  12760. </glossentry>
  12761. <glossentry id='var-SSTATE_SCAN_FILES'><glossterm>SSTATE_SCAN_FILES</glossterm>
  12762. <info>
  12763. SSTATE_SCAN_FILES[doc] = "Controls the list of files the OpenEmbedded build system scans for hardcoded installation paths."
  12764. </info>
  12765. <glossdef>
  12766. <para role="glossdeffirst">
  12767. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12768. Controls the list of files the OpenEmbedded build system
  12769. scans for hardcoded installation paths. The variable uses a
  12770. space-separated list of filenames (not paths) with standard
  12771. wildcard characters allowed.
  12772. </para>
  12773. <para>
  12774. During a build, the OpenEmbedded build system creates a
  12775. shared state (sstate) object during the first stage of
  12776. preparing the sysroots. That object is scanned for
  12777. hardcoded paths for original installation locations.
  12778. The list of files that are scanned for paths is controlled
  12779. by the <filename>SSTATE_SCAN_FILES</filename> variable.
  12780. Typically, recipes add files they want to be scanned to the
  12781. value of <filename>SSTATE_SCAN_FILES</filename> rather than
  12782. the variable being comprehensively set. The
  12783. <link linkend='ref-classes-sstate'><filename>sstate</filename></link>
  12784. class specifies the default list of files.
  12785. </para>
  12786. <para>
  12787. For details on the process, see the
  12788. <link linkend='ref-classes-staging'><filename>staging</filename></link>
  12789. class.
  12790. </para>
  12791. </glossdef>
  12792. </glossentry>
  12793. <glossentry id='var-STAGING_BASE_LIBDIR_NATIVE'><glossterm>STAGING_BASE_LIBDIR_NATIVE</glossterm>
  12794. <info>
  12795. STAGING_BASE_LIBDIR_NATIVE[doc] = "Specifies the path to the /lib subdirectory of the sysroot directory for the build host."
  12796. </info>
  12797. <glossdef>
  12798. <para role="glossdeffirst">
  12799. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12800. Specifies the path to the <filename>/lib</filename>
  12801. subdirectory of the sysroot directory for the
  12802. build host.
  12803. </para>
  12804. </glossdef>
  12805. </glossentry>
  12806. <glossentry id='var-STAGING_BASELIBDIR'><glossterm>STAGING_BASELIBDIR</glossterm>
  12807. <info>
  12808. 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)."
  12809. </info>
  12810. <glossdef>
  12811. <para role="glossdeffirst">
  12812. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12813. Specifies the path to the <filename>/lib</filename>
  12814. subdirectory of the sysroot directory for the target
  12815. for which the current recipe is being built
  12816. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  12817. </para>
  12818. </glossdef>
  12819. </glossentry>
  12820. <glossentry id='var-STAGING_BINDIR'><glossterm>STAGING_BINDIR</glossterm>
  12821. <info>
  12822. 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)."
  12823. </info>
  12824. <glossdef>
  12825. <para role="glossdeffirst">
  12826. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12827. Specifies the path to the
  12828. <filename>/usr/bin</filename> subdirectory of the
  12829. sysroot directory for the target for which the current
  12830. recipe is being built
  12831. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  12832. </para>
  12833. </glossdef>
  12834. </glossentry>
  12835. <glossentry id='var-STAGING_BINDIR_CROSS'><glossterm>STAGING_BINDIR_CROSS</glossterm>
  12836. <info>
  12837. 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."
  12838. </info>
  12839. <glossdef>
  12840. <para role="glossdeffirst">
  12841. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12842. Specifies the path to the directory containing binary
  12843. configuration scripts.
  12844. These scripts provide configuration information for
  12845. other software that wants to make use of libraries or
  12846. include files provided by the software associated with
  12847. the script.
  12848. <note>
  12849. This style of build configuration has been largely
  12850. replaced by <filename>pkg-config</filename>.
  12851. Consequently, if <filename>pkg-config</filename>
  12852. is supported by the library to which you are linking,
  12853. it is recommended you use
  12854. <filename>pkg-config</filename> instead of a
  12855. provided configuration script.
  12856. </note>
  12857. </para>
  12858. </glossdef>
  12859. </glossentry>
  12860. <glossentry id='var-STAGING_BINDIR_NATIVE'><glossterm>STAGING_BINDIR_NATIVE</glossterm>
  12861. <info>
  12862. STAGING_BINDIR_NATIVE[doc] = "Specifies the path to the /usr/bin subdirectory of the sysroot directory for the build host."
  12863. </info>
  12864. <glossdef>
  12865. <para role="glossdeffirst">
  12866. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12867. Specifies the path to the
  12868. <filename>/usr/bin</filename> subdirectory of the
  12869. sysroot directory for the build host.
  12870. </para>
  12871. </glossdef>
  12872. </glossentry>
  12873. <glossentry id='var-STAGING_DATADIR'><glossterm>STAGING_DATADIR</glossterm>
  12874. <info>
  12875. 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)."
  12876. </info>
  12877. <glossdef>
  12878. <para role="glossdeffirst">
  12879. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12880. Specifies the path to the <filename>/usr/share</filename>
  12881. subdirectory of the sysroot directory for the target
  12882. for which the current recipe is being built
  12883. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  12884. </para>
  12885. </glossdef>
  12886. </glossentry>
  12887. <glossentry id='var-STAGING_DATADIR_NATIVE'><glossterm>STAGING_DATADIR_NATIVE</glossterm>
  12888. <info>
  12889. STAGING_DATADIR_NATIVE[doc] = "Specifies the path to the /usr/share subdirectory of the sysroot directory for the build host."
  12890. </info>
  12891. <glossdef>
  12892. <para role="glossdeffirst">
  12893. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12894. Specifies the path to the <filename>/usr/share</filename>
  12895. subdirectory of the sysroot directory for the build host.
  12896. </para>
  12897. </glossdef>
  12898. </glossentry>
  12899. <glossentry id='var-STAGING_DIR'><glossterm>STAGING_DIR</glossterm>
  12900. <info>
  12901. STAGING_DIR[doc] = "Helps construct the recipe-sysroots directory, which is used during packaging."
  12902. </info>
  12903. <glossdef>
  12904. <para role="glossdeffirst">
  12905. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12906. Helps construct the <filename>recipe-sysroots</filename>
  12907. directory, which is used during packaging.
  12908. </para>
  12909. <para>
  12910. For information on how staging for recipe-specific
  12911. sysroots occurs, see the
  12912. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  12913. task, the
  12914. "<ulink url='&YOCTO_DOCS_DEV_URL;#new-sharing-files-between-recipes'>Sharing Files Between Recipes</ulink>"
  12915. section in the Yocto Project Development Tasks Manual, the
  12916. "<ulink url='&YOCTO_DOCS_OM_URL;#configuration-compilation-and-staging-dev-environment'>Configuration, Compilation, and Staging</ulink>"
  12917. section in the Yocto Project Overview and Concepts Manual,
  12918. and the
  12919. <link linkend='var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></link>
  12920. variable.
  12921. <note>
  12922. Recipes should never write files directly under
  12923. the <filename>STAGING_DIR</filename> directory because
  12924. the OpenEmbedded build system
  12925. manages the directory automatically.
  12926. Instead, files should be installed to
  12927. <filename>${</filename><link linkend='var-D'><filename>D</filename></link><filename>}</filename>
  12928. within your recipe's
  12929. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  12930. task and then the OpenEmbedded build system will
  12931. stage a subset of those files into the sysroot.
  12932. </note>
  12933. </para>
  12934. </glossdef>
  12935. </glossentry>
  12936. <glossentry id='var-STAGING_DIR_HOST'><glossterm>STAGING_DIR_HOST</glossterm>
  12937. <info>
  12938. STAGING_DIR_HOST[doc] = "Specifies the path to the sysroot directory for the system that the component is built to run on."
  12939. </info>
  12940. <glossdef>
  12941. <para role="glossdeffirst">
  12942. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12943. Specifies the path to the sysroot directory for the system
  12944. on which the component is built to run (the system that
  12945. hosts the component).
  12946. For most recipes, this sysroot is the one in which that
  12947. recipe's
  12948. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  12949. task copies files.
  12950. Exceptions include <filename>-native</filename> recipes,
  12951. where the <filename>do_populate_sysroot</filename> task
  12952. instead uses
  12953. <link linkend='var-STAGING_DIR_NATIVE'><filename>STAGING_DIR_NATIVE</filename></link>.
  12954. Depending on the type of recipe and the build target,
  12955. <filename>STAGING_DIR_HOST</filename> can have the
  12956. following values:
  12957. <itemizedlist>
  12958. <listitem><para>
  12959. For recipes building for the target machine, the
  12960. value is
  12961. "${<link linkend='var-STAGING_DIR'>STAGING_DIR</link>}/${<link linkend='var-MACHINE'>MACHINE</link>}".
  12962. </para></listitem>
  12963. <listitem><para>
  12964. For native recipes building for the build host, the
  12965. value is empty given the assumption that when
  12966. building for the build host, the build host's own
  12967. directories should be used.
  12968. <note>
  12969. <para><filename>-native</filename> recipes are
  12970. not installed into host paths like such as
  12971. <filename>/usr</filename>.
  12972. Rather, these recipes are installed into
  12973. <filename>STAGING_DIR_NATIVE</filename>.
  12974. When compiling <filename>-native</filename>
  12975. recipes, standard build environment variables
  12976. such as
  12977. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  12978. and
  12979. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  12980. are set up so that both host paths and
  12981. <filename>STAGING_DIR_NATIVE</filename> are
  12982. searched for libraries and headers using, for
  12983. example, GCC's <filename>-isystem</filename>
  12984. option.</para>
  12985. <para>Thus, the emphasis is that the
  12986. <filename>STAGING_DIR*</filename> variables
  12987. should be viewed as input variables by tasks
  12988. such as
  12989. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>,
  12990. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>,
  12991. and
  12992. <link linkend='ref-tasks-install'><filename>do_install</filename></link>.
  12993. Having the real system root correspond to
  12994. <filename>STAGING_DIR_HOST</filename> makes
  12995. conceptual sense for
  12996. <filename>-native</filename> recipes, as
  12997. they make use of host headers and libraries.
  12998. </para>
  12999. </note>
  13000. </para></listitem>
  13001. </itemizedlist>
  13002. </para>
  13003. </glossdef>
  13004. </glossentry>
  13005. <glossentry id='var-STAGING_DIR_NATIVE'><glossterm>STAGING_DIR_NATIVE</glossterm>
  13006. <info>
  13007. STAGING_DIR_NATIVE[doc] = "Specifies the path to the sysroot directory used when building components that run on the build host itself."
  13008. </info>
  13009. <glossdef>
  13010. <para role="glossdeffirst">
  13011. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13012. Specifies the path to the sysroot directory used when
  13013. building components that run on the build host itself.
  13014. </para>
  13015. </glossdef>
  13016. </glossentry>
  13017. <glossentry id='var-STAGING_DIR_TARGET'><glossterm>STAGING_DIR_TARGET</glossterm>
  13018. <info>
  13019. STAGING_DIR_TARGET[doc] = "Specifies the path to the sysroot used for the system for which the component generates code."
  13020. </info>
  13021. <glossdef>
  13022. <para role="glossdeffirst">
  13023. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13024. Specifies the path to the sysroot used for the system for
  13025. which the component generates code.
  13026. For components that do not generate code, which is the
  13027. majority, <filename>STAGING_DIR_TARGET</filename> is set
  13028. to match
  13029. <link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>.
  13030. </para>
  13031. <para>
  13032. Some recipes build binaries that can run on the target
  13033. system but those binaries in turn generate code for
  13034. another different system (e.g. cross-canadian recipes).
  13035. Using terminology from GNU, the primary system is referred
  13036. to as the "HOST" and the secondary, or different, system is
  13037. referred to as the "TARGET".
  13038. Thus, the binaries run on the "HOST" system
  13039. and generate binaries for the "TARGET" system.
  13040. The <filename>STAGING_DIR_HOST</filename> variable points
  13041. to the sysroot used for the "HOST" system, while
  13042. <filename>STAGING_DIR_TARGET</filename>
  13043. points to the sysroot used for the "TARGET" system.
  13044. </para>
  13045. </glossdef>
  13046. </glossentry>
  13047. <glossentry id='var-STAGING_ETCDIR_NATIVE'><glossterm>STAGING_ETCDIR_NATIVE</glossterm>
  13048. <info>
  13049. STAGING_ETCDIR_NATIVE[doc] = "Specifies the path to the /etc subdirectory of the sysroot directory for the build host."
  13050. </info>
  13051. <glossdef>
  13052. <para role="glossdeffirst">
  13053. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13054. Specifies the path to the <filename>/etc</filename>
  13055. subdirectory of the sysroot directory for the
  13056. build host.
  13057. </para>
  13058. </glossdef>
  13059. </glossentry>
  13060. <glossentry id='var-STAGING_EXECPREFIXDIR'><glossterm>STAGING_EXECPREFIXDIR</glossterm>
  13061. <info>
  13062. 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)."
  13063. </info>
  13064. <glossdef>
  13065. <para role="glossdeffirst">
  13066. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13067. Specifies the path to the <filename>/usr</filename>
  13068. subdirectory of the sysroot directory for the target
  13069. for which the current recipe is being built
  13070. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  13071. </para>
  13072. </glossdef>
  13073. </glossentry>
  13074. <glossentry id='var-STAGING_INCDIR'><glossterm>STAGING_INCDIR</glossterm>
  13075. <info>
  13076. 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)."
  13077. </info>
  13078. <glossdef>
  13079. <para role="glossdeffirst">
  13080. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13081. Specifies the path to the
  13082. <filename>/usr/include</filename> subdirectory of the
  13083. sysroot directory for the target for which the current
  13084. recipe being built
  13085. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  13086. </para>
  13087. </glossdef>
  13088. </glossentry>
  13089. <glossentry id='var-STAGING_INCDIR_NATIVE'><glossterm>STAGING_INCDIR_NATIVE</glossterm>
  13090. <info>
  13091. STAGING_INCDIR_NATIVE[doc] = "Specifies the path to the /usr/include subdirectory of the sysroot directory for the build host."
  13092. </info>
  13093. <glossdef>
  13094. <para role="glossdeffirst">
  13095. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13096. Specifies the path to the <filename>/usr/include</filename>
  13097. subdirectory of the sysroot directory for the build host.
  13098. </para>
  13099. </glossdef>
  13100. </glossentry>
  13101. <glossentry id='var-STAGING_KERNEL_BUILDDIR'><glossterm>STAGING_KERNEL_BUILDDIR</glossterm>
  13102. <info>
  13103. STAGING_KERNEL_BUILDDIR[doc] = "Points to the directory containing the kernel build artifacts."
  13104. </info>
  13105. <glossdef>
  13106. <para role="glossdeffirst">
  13107. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13108. Points to the directory containing the kernel build
  13109. artifacts.
  13110. Recipes building software that needs to access kernel
  13111. build artifacts
  13112. (e.g. <filename>systemtap-uprobes</filename>) can look in
  13113. the directory specified with the
  13114. <filename>STAGING_KERNEL_BUILDDIR</filename> variable to
  13115. find these artifacts after the kernel has been built.
  13116. </para>
  13117. </glossdef>
  13118. </glossentry>
  13119. <glossentry id='var-STAGING_KERNEL_DIR'><glossterm>STAGING_KERNEL_DIR</glossterm>
  13120. <info>
  13121. STAGING_KERNEL_DIR[doc] = "The directory with kernel headers that are required to build out-of-tree modules."
  13122. </info>
  13123. <glossdef>
  13124. <para role="glossdeffirst">
  13125. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13126. The directory with kernel headers that are required to build out-of-tree
  13127. modules.
  13128. </para>
  13129. </glossdef>
  13130. </glossentry>
  13131. <glossentry id='var-STAGING_LIBDIR'><glossterm>STAGING_LIBDIR</glossterm>
  13132. <info>
  13133. 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)."
  13134. </info>
  13135. <glossdef>
  13136. <para role="glossdeffirst">
  13137. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13138. Specifies the path to the <filename>/usr/lib</filename>
  13139. subdirectory of the sysroot directory for the target for
  13140. which the current recipe is being built
  13141. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  13142. </para>
  13143. </glossdef>
  13144. </glossentry>
  13145. <glossentry id='var-STAGING_LIBDIR_NATIVE'><glossterm>STAGING_LIBDIR_NATIVE</glossterm>
  13146. <info>
  13147. STAGING_LIBDIR_NATIVE[doc] = "Specifies the path to the /usr/lib subdirectory of the sysroot directory for the build host."
  13148. </info>
  13149. <glossdef>
  13150. <para role="glossdeffirst">
  13151. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13152. Specifies the path to the <filename>/usr/lib</filename>
  13153. subdirectory of the sysroot directory for the build host.
  13154. </para>
  13155. </glossdef>
  13156. </glossentry>
  13157. <glossentry id='var-STAMP'><glossterm>STAMP</glossterm>
  13158. <info>
  13159. 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."
  13160. </info>
  13161. <glossdef>
  13162. <para role="glossdeffirst">
  13163. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13164. Specifies the base path used to create recipe stamp files.
  13165. The path to an actual stamp file is constructed by evaluating this
  13166. string and then appending additional information.
  13167. Currently, the default assignment for <filename>STAMP</filename>
  13168. as set in the <filename>meta/conf/bitbake.conf</filename> file
  13169. is:
  13170. <literallayout class='monospaced'>
  13171. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  13172. </literallayout>
  13173. </para>
  13174. <para>
  13175. For information on how BitBake uses stamp files to determine
  13176. if a task should be rerun, see the
  13177. "<ulink url='&YOCTO_DOCS_OM_URL;#stamp-files-and-the-rerunning-of-tasks'>Stamp Files and the Rerunning of Tasks</ulink>"
  13178. section in the Yocto Project Overview and Concepts Manual.
  13179. </para>
  13180. <para>
  13181. See <link linkend='var-STAMPS_DIR'><filename>STAMPS_DIR</filename></link>,
  13182. <link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>,
  13183. <link linkend='var-PN'><filename>PN</filename></link>,
  13184. <link linkend='var-EXTENDPE'><filename>EXTENDPE</filename></link>,
  13185. <link linkend='var-PV'><filename>PV</filename></link>, and
  13186. <link linkend='var-PR'><filename>PR</filename></link> for related variable
  13187. information.
  13188. </para>
  13189. </glossdef>
  13190. </glossentry>
  13191. <glossentry id='var-STAMPS_DIR'><glossterm>STAMPS_DIR</glossterm>
  13192. <info>
  13193. STAMPS_DIR[doc] = "Specifies the base directory in which the OpenEmbedded build system places stamps."
  13194. </info>
  13195. <glossdef>
  13196. <para role="glossdeffirst">
  13197. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13198. Specifies the base directory in which the OpenEmbedded
  13199. build system places stamps.
  13200. The default directory is
  13201. <filename>${TMPDIR}/stamps</filename>.
  13202. </para>
  13203. </glossdef>
  13204. </glossentry>
  13205. <glossentry id='var-STRIP'><glossterm>STRIP</glossterm>
  13206. <info>
  13207. STRIP[doc] = "Minimal command and arguments to run 'strip' (strip symbols)."
  13208. </info>
  13209. <glossdef>
  13210. <para role="glossdeffirst">
  13211. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13212. The minimal command and arguments to run
  13213. <filename>strip</filename>, which is used to strip
  13214. symbols.
  13215. </para>
  13216. </glossdef>
  13217. </glossentry>
  13218. <glossentry id='var-SUMMARY'><glossterm>SUMMARY</glossterm>
  13219. <info>
  13220. 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."
  13221. </info>
  13222. <glossdef>
  13223. <para role="glossdeffirst">
  13224. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13225. The short (72 characters or less) summary of the binary package for packaging
  13226. systems such as <filename>opkg</filename>, <filename>rpm</filename>, or
  13227. <filename>dpkg</filename>.
  13228. By default, <filename>SUMMARY</filename> is used to define
  13229. the <link linkend='var-DESCRIPTION'><filename>DESCRIPTION</filename></link>
  13230. variable if <filename>DESCRIPTION</filename> is not set
  13231. in the recipe.
  13232. </para>
  13233. </glossdef>
  13234. </glossentry>
  13235. <glossentry id='var-SVNDIR'><glossterm>SVNDIR</glossterm>
  13236. <info>
  13237. SVNDIR[doc] = "The directory where Subversion checkouts are stored."
  13238. </info>
  13239. <glossdef>
  13240. <para role="glossdeffirst">
  13241. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13242. The directory in which files checked out of a Subversion
  13243. system are stored.
  13244. </para>
  13245. </glossdef>
  13246. </glossentry>
  13247. <glossentry id='var-SYSLINUX_DEFAULT_CONSOLE'><glossterm>SYSLINUX_DEFAULT_CONSOLE</glossterm>
  13248. <info>
  13249. SYSLINUX_DEFAULT_CONSOLE[doc] = "Specifies the kernel boot default console."
  13250. </info>
  13251. <glossdef>
  13252. <para role="glossdeffirst">
  13253. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13254. Specifies the kernel boot default console.
  13255. If you want to use a console other than the default,
  13256. set this variable in your recipe as follows where "X" is
  13257. the console number you want to use:
  13258. <literallayout class='monospaced'>
  13259. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  13260. </literallayout>
  13261. </para>
  13262. <para>
  13263. The
  13264. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13265. class initially sets this variable to null but then checks
  13266. for a value later.
  13267. </para>
  13268. </glossdef>
  13269. </glossentry>
  13270. <glossentry id='var-SYSLINUX_OPTS'><glossterm>SYSLINUX_OPTS</glossterm>
  13271. <info>
  13272. SYSLINUX_OPTS[doc] = "Lists additional options to add to the syslinux file."
  13273. </info>
  13274. <glossdef>
  13275. <para role="glossdeffirst">
  13276. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13277. Lists additional options to add to the syslinux file.
  13278. You need to set this variable in your recipe.
  13279. If you want to list multiple options, separate the options
  13280. with a semicolon character (<filename>;</filename>).
  13281. </para>
  13282. <para>
  13283. The
  13284. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13285. class uses this variable to create a set of options.
  13286. </para>
  13287. </glossdef>
  13288. </glossentry>
  13289. <glossentry id='var-SYSLINUX_SERIAL'><glossterm>SYSLINUX_SERIAL</glossterm>
  13290. <info>
  13291. SYSLINUX_SERIAL[doc] = "Specifies the alternate serial port or turns it off."
  13292. </info>
  13293. <glossdef>
  13294. <para role="glossdeffirst">
  13295. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13296. Specifies the alternate serial port or turns it off.
  13297. To turn off serial, set this variable to an empty string
  13298. in your recipe.
  13299. The variable's default value is set in the
  13300. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13301. class as follows:
  13302. <literallayout class='monospaced'>
  13303. SYSLINUX_SERIAL ?= "0 115200"
  13304. </literallayout>
  13305. </para>
  13306. <para>
  13307. The class checks for and uses the variable as needed.
  13308. </para>
  13309. </glossdef>
  13310. </glossentry>
  13311. <glossentry id='var-SYSLINUX_SPLASH'><glossterm>SYSLINUX_SPLASH</glossterm>
  13312. <info>
  13313. SYSLINUX_SPLASH[doc] = "An .LSS file used as the background for the VGA boot menu when you use the boot menu."
  13314. </info>
  13315. <glossdef>
  13316. <para role="glossdeffirst">
  13317. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13318. An <filename>.LSS</filename> file used as the background
  13319. for the VGA boot menu when you use the boot menu.
  13320. You need to set this variable in your recipe.
  13321. </para>
  13322. <para>
  13323. The
  13324. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13325. class checks for this variable and if found, the
  13326. OpenEmbedded build system installs the splash screen.
  13327. </para>
  13328. </glossdef>
  13329. </glossentry>
  13330. <glossentry id='var-SYSLINUX_SERIAL_TTY'><glossterm>SYSLINUX_SERIAL_TTY</glossterm>
  13331. <info>
  13332. SYSLINUX_SERIAL_TTY[doc] = "Specifies the alternate console=tty... kernel boot argument."
  13333. </info>
  13334. <glossdef>
  13335. <para role="glossdeffirst">
  13336. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13337. Specifies the alternate console=tty... kernel boot argument.
  13338. The variable's default value is set in the
  13339. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13340. class as follows:
  13341. <literallayout class='monospaced'>
  13342. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  13343. </literallayout>
  13344. </para>
  13345. <para>
  13346. The class checks for and uses the variable as needed.
  13347. </para>
  13348. </glossdef>
  13349. </glossentry>
  13350. <glossentry id='var-SYSROOT_DESTDIR'><glossterm>SYSROOT_DESTDIR</glossterm>
  13351. <info>
  13352. 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."
  13353. </info>
  13354. <glossdef>
  13355. <para role="glossdeffirst">
  13356. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13357. Points to the temporary directory under the work directory
  13358. (default
  13359. "<filename>${</filename><link linkend='var-WORKDIR'><filename>WORKDIR</filename></link><filename>}/sysroot-destdir</filename>")
  13360. where the files populated into the sysroot are assembled
  13361. during the
  13362. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  13363. task.
  13364. </para>
  13365. </glossdef>
  13366. </glossentry>
  13367. <glossentry id='var-SYSROOT_DIRS'><glossterm>SYSROOT_DIRS</glossterm>
  13368. <info>
  13369. SYSROOT_DIRS[doc] = "Directories that are staged into the sysroot by the do_populate_sysroot task."
  13370. </info>
  13371. <glossdef>
  13372. <para role="glossdeffirst">
  13373. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13374. Directories that are staged into the sysroot by the
  13375. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  13376. task.
  13377. By default, the following directories are staged:
  13378. <literallayout class='monospaced'>
  13379. SYSROOT_DIRS = " \
  13380. ${includedir} \
  13381. ${libdir} \
  13382. ${base_libdir} \
  13383. ${nonarch_base_libdir} \
  13384. ${datadir} \
  13385. "
  13386. </literallayout>
  13387. </para>
  13388. </glossdef>
  13389. </glossentry>
  13390. <glossentry id='var-SYSROOT_DIRS_BLACKLIST'><glossterm>SYSROOT_DIRS_BLACKLIST</glossterm>
  13391. <info>
  13392. SYSROOT_DIRS_BLACKLIST[doc] = "Directories that are not staged into the sysroot by the do_populate_sysroot task."
  13393. </info>
  13394. <glossdef>
  13395. <para role="glossdeffirst">
  13396. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13397. Directories that are not staged into the sysroot by the
  13398. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  13399. task.
  13400. You can use this variable to exclude certain subdirectories
  13401. of directories listed in
  13402. <link linkend='var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></link>
  13403. from staging.
  13404. By default, the following directories are not staged:
  13405. <literallayout class='monospaced'>
  13406. SYSROOT_DIRS_BLACKLIST = " \
  13407. ${mandir} \
  13408. ${docdir} \
  13409. ${infodir} \
  13410. ${datadir}/locale \
  13411. ${datadir}/applications \
  13412. ${datadir}/fonts \
  13413. ${datadir}/pixmaps \
  13414. "
  13415. </literallayout>
  13416. </para>
  13417. </glossdef>
  13418. </glossentry>
  13419. <glossentry id='var-SYSROOT_DIRS_NATIVE'><glossterm>SYSROOT_DIRS_NATIVE</glossterm>
  13420. <info>
  13421. 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."
  13422. </info>
  13423. <glossdef>
  13424. <para role="glossdeffirst">
  13425. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13426. Extra directories staged into the sysroot by the
  13427. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  13428. task for <filename>-native</filename> recipes, in addition
  13429. to those specified in
  13430. <link linkend='var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></link>.
  13431. By default, the following extra directories are staged:
  13432. <literallayout class='monospaced'>
  13433. SYSROOT_DIRS_NATIVE = " \
  13434. ${bindir} \
  13435. ${sbindir} \
  13436. ${base_bindir} \
  13437. ${base_sbindir} \
  13438. ${libexecdir} \
  13439. ${sysconfdir} \
  13440. ${localstatedir} \
  13441. "
  13442. </literallayout>
  13443. <note>
  13444. Programs built by <filename>-native</filename> recipes
  13445. run directly from the sysroot
  13446. (<link linkend='var-STAGING_DIR_NATIVE'><filename>STAGING_DIR_NATIVE</filename></link>),
  13447. which is why additional directories containing program
  13448. executables and supporting files need to be staged.
  13449. </note>
  13450. </para>
  13451. </glossdef>
  13452. </glossentry>
  13453. <glossentry id='var-SYSROOT_PREPROCESS_FUNCS'><glossterm>SYSROOT_PREPROCESS_FUNCS</glossterm>
  13454. <info>
  13455. 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."
  13456. </info>
  13457. <glossdef>
  13458. <para role="glossdeffirst">
  13459. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13460. A list of functions to execute after files are staged into
  13461. the sysroot.
  13462. These functions are usually used to apply additional
  13463. processing on the staged files, or to stage additional
  13464. files.
  13465. </para>
  13466. </glossdef>
  13467. </glossentry>
  13468. <glossentry id='var-SYSTEMD_AUTO_ENABLE'><glossterm>SYSTEMD_AUTO_ENABLE</glossterm>
  13469. <info>
  13470. 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."
  13471. </info>
  13472. <glossdef>
  13473. <para role="glossdeffirst">
  13474. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13475. When inheriting the
  13476. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  13477. class, this variable specifies whether the specified service
  13478. in
  13479. <link linkend='var-SYSTEMD_SERVICE'><filename>SYSTEMD_SERVICE</filename></link>
  13480. should start automatically or not.
  13481. By default, the service is enabled to automatically start
  13482. at boot time.
  13483. The default setting is in the
  13484. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  13485. class as follows:
  13486. <literallayout class='monospaced'>
  13487. SYSTEMD_AUTO_ENABLE ??= "enable"
  13488. </literallayout>
  13489. </para>
  13490. <para>
  13491. You can disable the service by setting the variable to
  13492. "disable".
  13493. </para>
  13494. </glossdef>
  13495. </glossentry>
  13496. <glossentry id='var-SYSTEMD_BOOT_CFG'><glossterm>SYSTEMD_BOOT_CFG</glossterm>
  13497. <info>
  13498. 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."
  13499. </info>
  13500. <glossdef>
  13501. <para role="glossdeffirst">
  13502. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13503. When
  13504. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  13505. is set to "systemd-boot", the
  13506. <filename>SYSTEMD_BOOT_CFG</filename> variable specifies the
  13507. configuration file that should be used.
  13508. By default, the
  13509. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  13510. class sets the <filename>SYSTEMD_BOOT_CFG</filename> as
  13511. follows:
  13512. <literallayout class='monospaced'>
  13513. SYSTEMD_BOOT_CFG ?= "${<link linkend='var-S'>S</link>}/loader.conf"
  13514. </literallayout>
  13515. </para>
  13516. <para>
  13517. For information on Systemd-boot, see the
  13518. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  13519. </para>
  13520. </glossdef>
  13521. </glossentry>
  13522. <glossentry id='var-SYSTEMD_BOOT_ENTRIES'><glossterm>SYSTEMD_BOOT_ENTRIES</glossterm>
  13523. <info>
  13524. 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."
  13525. </info>
  13526. <glossdef>
  13527. <para role="glossdeffirst">
  13528. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13529. When
  13530. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  13531. is set to "systemd-boot", the
  13532. <filename>SYSTEMD_BOOT_ENTRIES</filename> variable specifies
  13533. a list of entry files
  13534. (<filename>*.conf</filename>) to install that contain
  13535. one boot entry per file.
  13536. By default, the
  13537. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  13538. class sets the <filename>SYSTEMD_BOOT_ENTRIES</filename> as
  13539. follows:
  13540. <literallayout class='monospaced'>
  13541. SYSTEMD_BOOT_ENTRIES ?= ""
  13542. </literallayout>
  13543. </para>
  13544. <para>
  13545. For information on Systemd-boot, see the
  13546. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  13547. </para>
  13548. </glossdef>
  13549. </glossentry>
  13550. <glossentry id='var-SYSTEMD_BOOT_TIMEOUT'><glossterm>SYSTEMD_BOOT_TIMEOUT</glossterm>
  13551. <info>
  13552. SYSTEMD_BOOT_TIMEOUT[doc] = "When EFI_PROVIDER is set to "systemd-boot", the SYSTEMD_BOOT_TIMEOUT variable specifies the boot menu timeout in seconds."
  13553. </info>
  13554. <glossdef>
  13555. <para role="glossdeffirst">
  13556. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13557. When
  13558. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  13559. is set to "systemd-boot", the
  13560. <filename>SYSTEMD_BOOT_TIMEOUT</filename> variable specifies
  13561. the boot menu timeout in seconds.
  13562. By default, the
  13563. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  13564. class sets the <filename>SYSTEMD_BOOT_TIMEOUT</filename> as
  13565. follows:
  13566. <literallayout class='monospaced'>
  13567. SYSTEMD_BOOT_TIMEOUT ?= "10"
  13568. </literallayout>
  13569. </para>
  13570. <para>
  13571. For information on Systemd-boot, see the
  13572. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  13573. </para>
  13574. </glossdef>
  13575. </glossentry>
  13576. <glossentry id='var-SYSTEMD_PACKAGES'><glossterm>SYSTEMD_PACKAGES</glossterm>
  13577. <info>
  13578. 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."
  13579. </info>
  13580. <glossdef>
  13581. <para role="glossdeffirst">
  13582. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13583. When inheriting the
  13584. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  13585. class, this variable locates the systemd unit files when
  13586. they are not found in the main recipe's package.
  13587. By default, the
  13588. <filename>SYSTEMD_PACKAGES</filename> variable is set
  13589. such that the systemd unit files are assumed to reside in
  13590. the recipes main package:
  13591. <literallayout class='monospaced'>
  13592. SYSTEMD_PACKAGES ?= "${PN}"
  13593. </literallayout>
  13594. </para>
  13595. <para>
  13596. If these unit files are not in this recipe's main
  13597. package, you need to use
  13598. <filename>SYSTEMD_PACKAGES</filename> to list the package
  13599. or packages in which the build system can find the systemd
  13600. unit files.
  13601. </para>
  13602. </glossdef>
  13603. </glossentry>
  13604. <glossentry id='var-SYSTEMD_SERVICE'><glossterm>SYSTEMD_SERVICE</glossterm>
  13605. <info>
  13606. SYSTEMD_SERVICE[doc] = "For recipes that inherit the systemd class, this variable specifies the systemd service name for a package."
  13607. </info>
  13608. <glossdef>
  13609. <para role="glossdeffirst">
  13610. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13611. When inheriting the
  13612. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  13613. class, this variable specifies the systemd service name for
  13614. a package.
  13615. </para>
  13616. <para>
  13617. When you specify this file in your recipe, use a package
  13618. name override to indicate the package to which the value
  13619. applies.
  13620. Here is an example from the connman recipe:
  13621. <literallayout class='monospaced'>
  13622. SYSTEMD_SERVICE_${PN} = "connman.service"
  13623. </literallayout>
  13624. </para>
  13625. </glossdef>
  13626. </glossentry>
  13627. <glossentry id='var-SYSVINIT_ENABLED_GETTYS'><glossterm>SYSVINIT_ENABLED_GETTYS</glossterm>
  13628. <info>
  13629. SYSVINIT_ENABLED_GETTYS[doc] = "Specifies which virtual terminals should run a getty, the default is '1'."
  13630. </info>
  13631. <glossdef>
  13632. <para role="glossdeffirst">
  13633. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13634. When using
  13635. <ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-enabling-system-services'>SysVinit</ulink>,
  13636. specifies a space-separated list of the virtual terminals
  13637. that should run a
  13638. <ulink url='http://en.wikipedia.org/wiki/Getty_%28Unix%29'>getty</ulink>
  13639. (allowing login), assuming
  13640. <link linkend='var-USE_VT'><filename>USE_VT</filename></link>
  13641. is not set to "0".
  13642. </para>
  13643. <para>
  13644. The default value for
  13645. <filename>SYSVINIT_ENABLED_GETTYS</filename> is "1"
  13646. (i.e. only run a getty on the first virtual terminal).
  13647. </para>
  13648. </glossdef>
  13649. </glossentry>
  13650. </glossdiv>
  13651. <glossdiv id='var-glossary-t'><title>T</title>
  13652. <glossentry id='var-T'><glossterm>T</glossterm>
  13653. <info>
  13654. 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."
  13655. </info>
  13656. <glossdef>
  13657. <para role="glossdeffirst">
  13658. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13659. This variable points to a directory were BitBake places
  13660. temporary files, which consist mostly of task logs and
  13661. scripts, when building a particular recipe.
  13662. The variable is typically set as follows:
  13663. <literallayout class='monospaced'>
  13664. T = "${WORKDIR}/temp"
  13665. </literallayout>
  13666. </para>
  13667. <para>
  13668. The <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  13669. is the directory into which BitBake unpacks and builds the
  13670. recipe.
  13671. The default <filename>bitbake.conf</filename> file sets this variable.</para>
  13672. <para>The <filename>T</filename> variable is not to be confused with
  13673. the <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link> variable,
  13674. which points to the root of the directory tree where BitBake
  13675. places the output of an entire build.
  13676. </para>
  13677. </glossdef>
  13678. </glossentry>
  13679. <glossentry id='var-TARGET_ARCH'><glossterm>TARGET_ARCH</glossterm>
  13680. <info>
  13681. TARGET_ARCH[doc] = "The architecture of the device being built. The OpenEmbedded build system supports the following architectures: arm, mips, ppc, x86, x86-64."
  13682. </info>
  13683. <glossdef>
  13684. <para role="glossdeffirst">
  13685. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13686. The target machine's architecture.
  13687. The OpenEmbedded build system supports many
  13688. architectures.
  13689. Here is an example list of architectures supported.
  13690. This list is by no means complete as the architecture
  13691. is configurable:
  13692. <literallayout class='monospaced'>
  13693. arm
  13694. i586
  13695. x86_64
  13696. powerpc
  13697. powerpc64
  13698. mips
  13699. mipsel
  13700. </literallayout>
  13701. </para>
  13702. <para>
  13703. For additional information on machine architectures, see
  13704. the
  13705. <link linkend='var-TUNE_ARCH'><filename>TUNE_ARCH</filename></link>
  13706. variable.
  13707. </para>
  13708. </glossdef>
  13709. </glossentry>
  13710. <glossentry id='var-TARGET_AS_ARCH'><glossterm>TARGET_AS_ARCH</glossterm>
  13711. <info>
  13712. TARGET_AS_ARCH[doc] = "Specifies architecture-specific assembler flags for the target system."
  13713. </info>
  13714. <glossdef>
  13715. <para role="glossdeffirst">
  13716. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13717. Specifies architecture-specific assembler flags for the
  13718. target system.
  13719. <filename>TARGET_AS_ARCH</filename> is initialized from
  13720. <link linkend='var-TUNE_ASARGS'><filename>TUNE_ASARGS</filename></link>
  13721. by default in the BitBake configuration file
  13722. (<filename>meta/conf/bitbake.conf</filename>):
  13723. <literallayout class='monospaced'>
  13724. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  13725. </literallayout>
  13726. </para>
  13727. </glossdef>
  13728. </glossentry>
  13729. <glossentry id='var-TARGET_CC_ARCH'><glossterm>TARGET_CC_ARCH</glossterm>
  13730. <info>
  13731. TARGET_CC_ARCH[doc] = "Specifies architecture-specific C compiler flags for the target system."
  13732. </info>
  13733. <glossdef>
  13734. <para role="glossdeffirst">
  13735. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13736. Specifies architecture-specific C compiler flags for the
  13737. target system.
  13738. <filename>TARGET_CC_ARCH</filename> is initialized from
  13739. <link linkend='var-TUNE_CCARGS'><filename>TUNE_CCARGS</filename></link>
  13740. by default.
  13741. <note>
  13742. It is a common workaround to append
  13743. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  13744. to <filename>TARGET_CC_ARCH</filename>
  13745. in recipes that build software for the target that
  13746. would not otherwise respect the exported
  13747. <filename>LDFLAGS</filename> variable.
  13748. </note>
  13749. </para>
  13750. </glossdef>
  13751. </glossentry>
  13752. <glossentry id='var-TARGET_CC_KERNEL_ARCH'><glossterm>TARGET_CC_KERNEL_ARCH</glossterm>
  13753. <info>
  13754. TARGET_CC_KERNEL_ARCH[doc] = "This is a specific kernel compiler flag for a CPU or Application Binary Interface (ABI) tune."
  13755. </info>
  13756. <glossdef>
  13757. <para role="glossdeffirst">
  13758. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13759. This is a specific kernel compiler flag for a CPU or
  13760. Application Binary Interface (ABI) tune.
  13761. The flag is used rarely and only for cases where a
  13762. userspace
  13763. <link linkend='var-TUNE_CCARGS'><filename>TUNE_CCARGS</filename></link>
  13764. is not compatible with the kernel compilation.
  13765. The <filename>TARGET_CC_KERNEL_ARCH</filename> variable
  13766. allows the kernel (and associated modules) to use a
  13767. different configuration.
  13768. See the
  13769. <filename>meta/conf/machine/include/arm/feature-arm-thumb.inc</filename>
  13770. file in the
  13771. <link linkend='source-directory'>Source Directory</link>
  13772. for an example.
  13773. </para>
  13774. </glossdef>
  13775. </glossentry>
  13776. <glossentry id='var-TARGET_CFLAGS'><glossterm>TARGET_CFLAGS</glossterm>
  13777. <info>
  13778. TARGET_CFLAGS[doc] = "Flags passed to the C compiler for the target system. This variable evaluates to the same as CFLAGS."
  13779. </info>
  13780. <glossdef>
  13781. <para role="glossdeffirst">
  13782. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13783. Specifies the flags to pass to the C compiler when building
  13784. for the target.
  13785. When building in the target context,
  13786. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  13787. is set to the value of this variable by default.
  13788. </para>
  13789. <para>
  13790. Additionally, the SDK's environment setup script sets
  13791. the <filename>CFLAGS</filename> variable in the environment
  13792. to the <filename>TARGET_CFLAGS</filename> value so that
  13793. executables built using the SDK also have the flags
  13794. applied.
  13795. </para>
  13796. </glossdef>
  13797. </glossentry>
  13798. <glossentry id='var-TARGET_CPPFLAGS'><glossterm>TARGET_CPPFLAGS</glossterm>
  13799. <info>
  13800. 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."
  13801. </info>
  13802. <glossdef>
  13803. <para role="glossdeffirst">
  13804. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13805. Specifies the flags to pass to the C pre-processor
  13806. (i.e. to both the C and the C++ compilers) when building
  13807. for the target.
  13808. When building in the target context,
  13809. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  13810. is set to the value of this variable by default.
  13811. </para>
  13812. <para>
  13813. Additionally, the SDK's environment setup script sets
  13814. the <filename>CPPFLAGS</filename> variable in the
  13815. environment to the <filename>TARGET_CPPFLAGS</filename>
  13816. value so that executables built using the SDK also have
  13817. the flags applied.
  13818. </para>
  13819. </glossdef>
  13820. </glossentry>
  13821. <glossentry id='var-TARGET_CXXFLAGS'><glossterm>TARGET_CXXFLAGS</glossterm>
  13822. <info>
  13823. TARGET_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the target."
  13824. </info>
  13825. <glossdef>
  13826. <para role="glossdeffirst">
  13827. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13828. Specifies the flags to pass to the C++ compiler when
  13829. building for the target.
  13830. When building in the target context,
  13831. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  13832. is set to the value of this variable by default.
  13833. </para>
  13834. <para>
  13835. Additionally, the SDK's environment setup script sets
  13836. the <filename>CXXFLAGS</filename> variable in the
  13837. environment to the <filename>TARGET_CXXFLAGS</filename>
  13838. value so that executables built using the SDK also have
  13839. the flags applied.
  13840. </para>
  13841. </glossdef>
  13842. </glossentry>
  13843. <glossentry id='var-TARGET_FPU'><glossterm>TARGET_FPU</glossterm>
  13844. <info>
  13845. 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."
  13846. </info>
  13847. <glossdef>
  13848. <para role="glossdeffirst">
  13849. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13850. Specifies the method for handling FPU code.
  13851. For FPU-less targets, which include most ARM CPUs, the variable must be
  13852. set to "soft".
  13853. If not, the kernel emulation gets used, which results in a performance penalty.
  13854. </para>
  13855. </glossdef>
  13856. </glossentry>
  13857. <glossentry id='var-TARGET_LD_ARCH'><glossterm>TARGET_LD_ARCH</glossterm>
  13858. <info>
  13859. TARGET_LD_ARCH[doc] = "Specifies architecture-specific linker flags for the target system."
  13860. </info>
  13861. <glossdef>
  13862. <para role="glossdeffirst">
  13863. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13864. Specifies architecture-specific linker flags for the
  13865. target system.
  13866. <filename>TARGET_LD_ARCH</filename> is initialized from
  13867. <link linkend='var-TUNE_LDARGS'><filename>TUNE_LDARGS</filename></link>
  13868. by default in the BitBake configuration file
  13869. (<filename>meta/conf/bitbake.conf</filename>):
  13870. <literallayout class='monospaced'>
  13871. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  13872. </literallayout>
  13873. </para>
  13874. </glossdef>
  13875. </glossentry>
  13876. <glossentry id='var-TARGET_LDFLAGS'><glossterm>TARGET_LDFLAGS</glossterm>
  13877. <info>
  13878. TARGET_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the target."
  13879. </info>
  13880. <glossdef>
  13881. <para role="glossdeffirst">
  13882. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13883. Specifies the flags to pass to the linker when building
  13884. for the target.
  13885. When building in the target context,
  13886. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  13887. is set to the value of this variable by default.
  13888. </para>
  13889. <para>
  13890. Additionally, the SDK's environment setup script sets
  13891. the
  13892. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  13893. variable in the environment to the
  13894. <filename>TARGET_LDFLAGS</filename> value so that
  13895. executables built using the SDK also have the flags
  13896. applied.
  13897. </para>
  13898. </glossdef>
  13899. </glossentry>
  13900. <glossentry id='var-TARGET_OS'><glossterm>TARGET_OS</glossterm>
  13901. <info>
  13902. TARGET_OS[doc] = "Specifies the target's operating system."
  13903. </info>
  13904. <glossdef>
  13905. <para role="glossdeffirst">
  13906. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13907. Specifies the target's operating system.
  13908. The variable can be set to "linux" for glibc-based systems
  13909. (GNU C Library) and to "linux-musl" for musl libc.
  13910. For ARM/EABI targets, "linux-gnueabi" and "linux-musleabi"
  13911. possible values exist.
  13912. </para>
  13913. </glossdef>
  13914. </glossentry>
  13915. <glossentry id='var-TARGET_PREFIX'><glossterm>TARGET_PREFIX</glossterm>
  13916. <info>
  13917. TARGET_PREFIX[doc] = "The prefix used for the toolchain binary target tools."
  13918. </info>
  13919. <glossdef>
  13920. <para role="glossdeffirst">
  13921. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13922. Specifies the prefix used for the toolchain binary target
  13923. tools.
  13924. </para>
  13925. <para>
  13926. Depending on the type of recipe and the build target,
  13927. <filename>TARGET_PREFIX</filename> is set as follows:
  13928. <itemizedlist>
  13929. <listitem><para>
  13930. For recipes building for the target machine,
  13931. the value is
  13932. "${<link linkend='var-TARGET_SYS'>TARGET_SYS</link>}-".
  13933. </para></listitem>
  13934. <listitem><para>
  13935. For native recipes, the build system sets the
  13936. variable to the value of
  13937. <filename>BUILD_PREFIX</filename>.
  13938. </para></listitem>
  13939. <listitem><para>
  13940. For native SDK recipes
  13941. (<filename>nativesdk</filename>), the
  13942. build system sets the variable to the value of
  13943. <filename>SDK_PREFIX</filename>.
  13944. </para></listitem>
  13945. </itemizedlist>
  13946. </para>
  13947. </glossdef>
  13948. </glossentry>
  13949. <glossentry id='var-TARGET_SYS'><glossterm>TARGET_SYS</glossterm>
  13950. <info>
  13951. TARGET_SYS[doc] = "The target system is comprised of TARGET_ARCH,TARGET_VENDOR and TARGET_OS."
  13952. </info>
  13953. <glossdef>
  13954. <para role="glossdeffirst">
  13955. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13956. Specifies the system, including the architecture and the
  13957. operating system, for which the build is occurring in
  13958. the context of the current recipe.
  13959. </para>
  13960. <para>
  13961. The OpenEmbedded build system automatically sets this
  13962. variable based on
  13963. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>,
  13964. <link linkend='var-TARGET_VENDOR'><filename>TARGET_VENDOR</filename></link>,
  13965. and
  13966. <link linkend='var-TARGET_OS'><filename>TARGET_OS</filename></link>
  13967. variables.
  13968. <note>
  13969. You do not need to set the
  13970. <filename>TARGET_SYS</filename> variable yourself.
  13971. </note>
  13972. </para>
  13973. <para>
  13974. Consider these two examples:
  13975. <itemizedlist>
  13976. <listitem><para>
  13977. Given a native recipe on a 32-bit, x86 machine
  13978. running Linux, the value is "i686-linux".
  13979. </para></listitem>
  13980. <listitem><para>
  13981. Given a recipe being built for a little-endian,
  13982. MIPS target running Linux, the value might be
  13983. "mipsel-linux".
  13984. </para></listitem>
  13985. </itemizedlist>
  13986. </para>
  13987. </glossdef>
  13988. </glossentry>
  13989. <glossentry id='var-TARGET_VENDOR'><glossterm>TARGET_VENDOR</glossterm>
  13990. <info>
  13991. TARGET_VENDOR[doc] = "The name of the target vendor."
  13992. </info>
  13993. <glossdef>
  13994. <para role="glossdeffirst">
  13995. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13996. Specifies the name of the target vendor.
  13997. </para>
  13998. </glossdef>
  13999. </glossentry>
  14000. <glossentry id='var-TCLIBC'><glossterm>TCLIBC</glossterm>
  14001. <info>
  14002. TCLIBC[doc] = "Specifies GNU standard C library (libc) variant to use during the build process. You can select 'glibc', 'musl' or "newlib."
  14003. </info>
  14004. <glossdef>
  14005. <para role="glossdeffirst">
  14006. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14007. Specifies the GNU standard C library
  14008. (<filename>libc</filename>) variant to use during the
  14009. build process.
  14010. This variable replaces <filename>POKYLIBC</filename>,
  14011. which is no longer supported.
  14012. </para>
  14013. <para>
  14014. You can select "glibc", "musl", "newlib", or "baremetal"
  14015. </para>
  14016. </glossdef>
  14017. </glossentry>
  14018. <glossentry id='var-TCLIBCAPPEND'><glossterm>TCLIBCAPPEND</glossterm>
  14019. <info>
  14020. TCLIBCAPPEND[doc] = "Specifies a suffix appended to TMPDIR that identifies the libc variant for the build."
  14021. </info>
  14022. <glossdef>
  14023. <para role="glossdeffirst">
  14024. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14025. Specifies a suffix to be appended onto the
  14026. <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link>
  14027. value.
  14028. The suffix identifies the <filename>libc</filename> variant
  14029. for building.
  14030. When you are building for multiple variants with the same
  14031. <link linkend='build-directory'>Build Directory</link>,
  14032. this mechanism ensures that output for different
  14033. <filename>libc</filename> variants is kept separate to
  14034. avoid potential conflicts.
  14035. </para>
  14036. <para>
  14037. In the <filename>defaultsetup.conf</filename> file, the
  14038. default value of <filename>TCLIBCAPPEND</filename> is
  14039. "-${TCLIBC}".
  14040. However, distros such as poky, which normally only support
  14041. one <filename>libc</filename> variant, set
  14042. <filename>TCLIBCAPPEND</filename> to "" in their distro
  14043. configuration file resulting in no suffix being applied.
  14044. </para>
  14045. </glossdef>
  14046. </glossentry>
  14047. <glossentry id='var-TCMODE'><glossterm>TCMODE</glossterm>
  14048. <info>
  14049. TCMODE[doc] = "Enables an external toolchain (where provided by an additional layer) if set to a value other than 'default'."
  14050. </info>
  14051. <glossdef>
  14052. <para role="glossdeffirst">
  14053. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14054. Specifies the toolchain selector.
  14055. <filename>TCMODE</filename> controls the characteristics
  14056. of the generated packages and images by telling the
  14057. OpenEmbedded build system which toolchain profile to use.
  14058. By default, the OpenEmbedded build system builds its own
  14059. internal toolchain.
  14060. The variable's default value is "default", which uses
  14061. that internal toolchain.
  14062. <note>
  14063. If <filename>TCMODE</filename> is set to a value
  14064. other than "default", then it is your responsibility
  14065. to ensure that the toolchain is compatible with the
  14066. default toolchain.
  14067. Using older or newer versions of these components
  14068. might cause build problems.
  14069. See the Release Notes for the Yocto Project release
  14070. for the specific components with which the toolchain
  14071. must be compatible.
  14072. To access the Release Notes, go to the
  14073. <ulink url='&YOCTO_HOME_URL;/software-overview/downloads/'>Downloads</ulink>
  14074. page on the Yocto Project website and click on the
  14075. "RELEASE INFORMATION" link for the appropriate
  14076. release.
  14077. </note>
  14078. </para>
  14079. <para>
  14080. The <filename>TCMODE</filename> variable is similar to
  14081. <link linkend='var-TCLIBC'><filename>TCLIBC</filename></link>,
  14082. which controls the variant of the GNU standard C library
  14083. (<filename>libc</filename>) used during the build process:
  14084. <filename>glibc</filename> or <filename>musl</filename>.
  14085. </para>
  14086. <para>
  14087. With additional layers, it is possible to use a pre-compiled
  14088. external toolchain.
  14089. One example is the Sourcery G++ Toolchain.
  14090. The support for this toolchain resides in the separate
  14091. <trademark class='registered'>Mentor Graphics</trademark>
  14092. <filename>meta-sourcery</filename> layer at
  14093. <ulink url='http://github.com/MentorEmbedded/meta-sourcery/'></ulink>.
  14094. </para>
  14095. <para>
  14096. The layer's <filename>README</filename> file contains
  14097. information on how to use the Sourcery G++ Toolchain as
  14098. an external toolchain.
  14099. In summary, you must be sure to add the layer to your
  14100. <filename>bblayers.conf</filename> file in front of the
  14101. <filename>meta</filename> layer and then set the
  14102. <filename>EXTERNAL_TOOLCHAIN</filename>
  14103. variable in your <filename>local.conf</filename> file
  14104. to the location in which you installed the toolchain.
  14105. </para>
  14106. <para>
  14107. The fundamentals used for this example apply to any
  14108. external toolchain.
  14109. You can use <filename>meta-sourcery</filename> as a
  14110. template for adding support for other external toolchains.
  14111. </para>
  14112. </glossdef>
  14113. </glossentry>
  14114. <glossentry id='var-TEST_EXPORT_DIR'><glossterm>TEST_EXPORT_DIR</glossterm>
  14115. <info>
  14116. TEST_EXPORT_DIR[doc] = "The location the OpenEmbedded build system uses to export tests when the TEST_EXPORT_ONLY variable is set to "1"."
  14117. </info>
  14118. <glossdef>
  14119. <para role="glossdeffirst">
  14120. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14121. The location the OpenEmbedded build system uses to export
  14122. tests when the
  14123. <link linkend='var-TEST_EXPORT_ONLY'><filename>TEST_EXPORT_ONLY</filename></link>
  14124. variable is set to "1".
  14125. </para>
  14126. <para>
  14127. The <filename>TEST_EXPORT_DIR</filename> variable defaults
  14128. to <filename>"${TMPDIR}/testimage/${PN}"</filename>.
  14129. </para>
  14130. </glossdef>
  14131. </glossentry>
  14132. <glossentry id='var-TEST_EXPORT_ONLY'><glossterm>TEST_EXPORT_ONLY</glossterm>
  14133. <info>
  14134. 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."
  14135. </info>
  14136. <glossdef>
  14137. <para role="glossdeffirst">
  14138. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14139. Specifies to export the tests only.
  14140. Set this variable to "1" if you do not want to run the
  14141. tests but you want them to be exported in a manner that
  14142. you to run them outside of the build system.
  14143. </para>
  14144. </glossdef>
  14145. </glossentry>
  14146. <glossentry id='var-TEST_IMAGE'><glossterm>TEST_IMAGE</glossterm>
  14147. <info>
  14148. TEST_IMAGE[doc] = "Enables test booting of virtual machine images under the QEMU emulator after any root filesystems are created and runs tests against those images."
  14149. </info>
  14150. <glossdef>
  14151. <para role="glossdeffirst">
  14152. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14153. Automatically runs the series of automated tests for
  14154. images when an image is successfully built.
  14155. </para>
  14156. <para>
  14157. These tests are written in Python making use of the
  14158. <filename>unittest</filename> module, and the majority of
  14159. them run commands on the target system over
  14160. <filename>ssh</filename>.
  14161. You can set this variable to "1" in your
  14162. <filename>local.conf</filename> file in the
  14163. <link linkend='build-directory'>Build Directory</link>
  14164. to have the OpenEmbedded build system automatically run
  14165. these tests after an image successfully builds:
  14166. <literallayout class='monospaced'>
  14167. TEST_IMAGE = "1"
  14168. </literallayout>
  14169. For more information on enabling, running, and writing
  14170. these tests, see the
  14171. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  14172. section in the Yocto Project Development Tasks Manual and
  14173. the
  14174. "<link linkend='ref-classes-testimage*'><filename>testimage*.bbclass</filename></link>"
  14175. section.
  14176. </para>
  14177. </glossdef>
  14178. </glossentry>
  14179. <glossentry id='var-TEST_LOG_DIR'><glossterm>TEST_LOG_DIR</glossterm>
  14180. <info>
  14181. TEST_LOG_DIR[doc] = "Holds the SSH log and the boot log for QEMU machines. The TEST_LOG_DIR variable defaults to "${WORKDIR}/testimage"."
  14182. </info>
  14183. <glossdef>
  14184. <para role="glossdeffirst">
  14185. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14186. Holds the SSH log and the boot log for QEMU machines.
  14187. The <filename>TEST_LOG_DIR</filename> variable defaults
  14188. to <filename>"${WORKDIR}/testimage"</filename>.
  14189. <note>
  14190. Actual test results reside in the task log
  14191. (<filename>log.do_testimage</filename>), which is in
  14192. the <filename>${WORKDIR}/temp/</filename> directory.
  14193. </note>
  14194. </para>
  14195. </glossdef>
  14196. </glossentry>
  14197. <glossentry id='var-TEST_POWERCONTROL_CMD'><glossterm>TEST_POWERCONTROL_CMD</glossterm>
  14198. <info>
  14199. TEST_POWERCONTROL_CMD[doc] = "For automated hardware testing, specifies the command to use to control the power of the target machine under test"
  14200. </info>
  14201. <glossdef>
  14202. <para role="glossdeffirst">
  14203. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14204. For automated hardware testing, specifies the command to
  14205. use to control the power of the target machine under test.
  14206. Typically, this command would point to a script that
  14207. performs the appropriate action (e.g. interacting
  14208. with a web-enabled power strip).
  14209. The specified command should expect to receive as the last
  14210. argument "off", "on" or "cycle" specifying to power off,
  14211. on, or cycle (power off and then power on) the device,
  14212. respectively.
  14213. </para>
  14214. </glossdef>
  14215. </glossentry>
  14216. <glossentry id='var-TEST_POWERCONTROL_EXTRA_ARGS'><glossterm>TEST_POWERCONTROL_EXTRA_ARGS</glossterm>
  14217. <info>
  14218. TEST_POWERCONTROL_EXTRA_ARGS[doc] = "For automated hardware testing, specifies additional arguments to pass through to the command specified in TEST_POWERCONTROL_CMD"
  14219. </info>
  14220. <glossdef>
  14221. <para role="glossdeffirst">
  14222. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14223. For automated hardware testing, specifies additional
  14224. arguments to pass through to the command specified in
  14225. <link linkend='var-TEST_POWERCONTROL_CMD'><filename>TEST_POWERCONTROL_CMD</filename></link>.
  14226. Setting <filename>TEST_POWERCONTROL_EXTRA_ARGS</filename>
  14227. is optional.
  14228. You can use it if you wish, for example, to separate the
  14229. machine-specific and non-machine-specific parts of the
  14230. arguments.
  14231. </para>
  14232. </glossdef>
  14233. </glossentry>
  14234. <glossentry id='var-TEST_QEMUBOOT_TIMEOUT'><glossterm>TEST_QEMUBOOT_TIMEOUT</glossterm>
  14235. <info>
  14236. TEST_QEMUBOOT_TIMEOUT[doc] = "The time in seconds allowed for an image to boot before automated runtime tests begin to run against an image."
  14237. </info>
  14238. <glossdef>
  14239. <para role="glossdeffirst">
  14240. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14241. The time in seconds allowed for an image to boot before
  14242. automated runtime tests begin to run against an
  14243. image.
  14244. The default timeout period to allow the boot process to
  14245. reach the login prompt is 500 seconds.
  14246. You can specify a different value in the
  14247. <filename>local.conf</filename> file.
  14248. </para>
  14249. <para>
  14250. For more information on testing images, see the
  14251. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  14252. section in the Yocto Project Development Tasks Manual.
  14253. </para>
  14254. </glossdef>
  14255. </glossentry>
  14256. <glossentry id='var-TEST_SERIALCONTROL_CMD'><glossterm>TEST_SERIALCONTROL_CMD</glossterm>
  14257. <info>
  14258. 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."
  14259. </info>
  14260. <glossdef>
  14261. <para role="glossdeffirst">
  14262. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14263. For automated hardware testing, specifies the command
  14264. to use to connect to the serial console of the target
  14265. machine under test.
  14266. This command simply needs to connect to the serial console
  14267. and forward that connection to standard input and output
  14268. as any normal terminal program does.
  14269. </para>
  14270. <para>
  14271. For example, to use the Picocom terminal program on
  14272. serial device <filename>/dev/ttyUSB0</filename> at
  14273. 115200bps, you would set the variable as follows:
  14274. <literallayout class='monospaced'>
  14275. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  14276. </literallayout>
  14277. </para>
  14278. </glossdef>
  14279. </glossentry>
  14280. <glossentry id='var-TEST_SERIALCONTROL_EXTRA_ARGS'><glossterm>TEST_SERIALCONTROL_EXTRA_ARGS</glossterm>
  14281. <info>
  14282. TEST_SERIALCONTROL_EXTRA_ARGS[doc] = "For automated hardware testing, specifies additional arguments to pass through to the command specified in TEST_SERIALCONTROL_CMD."
  14283. </info>
  14284. <glossdef>
  14285. <para role="glossdeffirst">
  14286. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14287. For automated hardware testing, specifies additional
  14288. arguments to pass through to the command specified in
  14289. <link linkend='var-TEST_SERIALCONTROL_CMD'><filename>TEST_SERIALCONTROL_CMD</filename></link>.
  14290. Setting <filename>TEST_SERIALCONTROL_EXTRA_ARGS</filename>
  14291. is optional.
  14292. You can use it if you wish, for example, to separate the
  14293. machine-specific and non-machine-specific parts of the
  14294. command.
  14295. </para>
  14296. </glossdef>
  14297. </glossentry>
  14298. <glossentry id='var-TEST_SERVER_IP'><glossterm>TEST_SERVER_IP</glossterm>
  14299. <info>
  14300. TEST_SERVER_IP[doc] = "The IP address of the build machine (host machine). This IP address is usually automatically detected."
  14301. </info>
  14302. <glossdef>
  14303. <para role="glossdeffirst">
  14304. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14305. The IP address of the build machine (host machine).
  14306. This IP address is usually automatically detected.
  14307. However, if detection fails, this variable needs to be set
  14308. to the IP address of the build machine (i.e. where
  14309. the build is taking place).
  14310. <note>
  14311. The <filename>TEST_SERVER_IP</filename> variable
  14312. is only used for a small number of tests such as
  14313. the "dnf" test suite, which needs to download
  14314. packages from
  14315. <filename>WORKDIR/oe-rootfs-repo</filename>.
  14316. </note>
  14317. </para>
  14318. </glossdef>
  14319. </glossentry>
  14320. <glossentry id='var-TEST_TARGET'><glossterm>TEST_TARGET</glossterm>
  14321. <info>
  14322. TEST_TARGET[doc] = "For automated runtime testing, specifies the method of deploying the image and running tests on the target machine."
  14323. </info>
  14324. <glossdef>
  14325. <para role="glossdeffirst">
  14326. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14327. Specifies the target controller to use when running tests
  14328. against a test image.
  14329. The default controller to use is "QemuTarget":
  14330. <literallayout class='monospaced'>
  14331. TEST_TARGET = "QemuTarget"
  14332. </literallayout>
  14333. </para>
  14334. <para>
  14335. A target controller is a class that defines how an
  14336. image gets deployed on a target and how a target is started.
  14337. A layer can extend the controllers by adding a module
  14338. in the layer's <filename>/lib/oeqa/controllers</filename>
  14339. directory and by inheriting the
  14340. <filename>BaseTarget</filename> class, which is an abstract
  14341. class that cannot be used as a value of
  14342. <filename>TEST_TARGET</filename>.
  14343. </para>
  14344. <para>
  14345. You can provide the following arguments with
  14346. <filename>TEST_TARGET</filename>:
  14347. <itemizedlist>
  14348. <listitem><para><emphasis>"QemuTarget":</emphasis>
  14349. Boots a QEMU image and runs the tests.
  14350. See the
  14351. "<ulink url='&YOCTO_DOCS_DEV_URL;#qemu-image-enabling-tests'>Enabling Runtime Tests on QEMU</ulink>"
  14352. section in the Yocto Project Development Tasks
  14353. Manual for more information.
  14354. </para></listitem>
  14355. <listitem><para><emphasis>"SimpleRemoteTarget":</emphasis>
  14356. Runs the tests on target hardware that is already
  14357. up and running.
  14358. The hardware can be on the network or it can be
  14359. a device running an image on QEMU.
  14360. You must also set
  14361. <link linkend='var-TEST_TARGET_IP'><filename>TEST_TARGET_IP</filename></link>
  14362. when you use "SimpleRemoteTarget".
  14363. <note>
  14364. This argument is defined in
  14365. <filename>meta/lib/oeqa/controllers/simpleremote.py</filename>.
  14366. </note>
  14367. </para></listitem>
  14368. </itemizedlist>
  14369. </para>
  14370. <para>
  14371. For information on running tests on hardware, see the
  14372. "<ulink url='&YOCTO_DOCS_DEV_URL;#hardware-image-enabling-tests'>Enabling Runtime Tests on Hardware</ulink>"
  14373. section in the Yocto Project Development Tasks Manual.
  14374. </para>
  14375. </glossdef>
  14376. </glossentry>
  14377. <glossentry id='var-TEST_TARGET_IP'><glossterm>TEST_TARGET_IP</glossterm>
  14378. <info>
  14379. TEST_TARGET_IP[doc] = "The IP address of your hardware under test."
  14380. </info>
  14381. <glossdef>
  14382. <para role="glossdeffirst">
  14383. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14384. The IP address of your hardware under test.
  14385. The <filename>TEST_TARGET_IP</filename> variable has no
  14386. effect when
  14387. <link linkend='var-TEST_TARGET'><filename>TEST_TARGET</filename></link>
  14388. is set to "qemu".
  14389. </para>
  14390. <para>
  14391. When you specify the IP address, you can also include a
  14392. port.
  14393. Here is an example:
  14394. <literallayout class='monospaced'>
  14395. TEST_TARGET_IP = "192.168.1.4:2201"
  14396. </literallayout>
  14397. Specifying a port is useful when SSH is started on a
  14398. non-standard port or in cases when your hardware under test
  14399. is behind a firewall or network that is not directly
  14400. accessible from your host and you need to do port address
  14401. translation.
  14402. </para>
  14403. </glossdef>
  14404. </glossentry>
  14405. <glossentry id='var-TEST_SUITES'><glossterm>TEST_SUITES</glossterm>
  14406. <info>
  14407. TEST_SUITES[doc] = "An ordered list of tests (modules) to run against an image when performing automated runtime testing."
  14408. </info>
  14409. <glossdef>
  14410. <para role="glossdeffirst">
  14411. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14412. An ordered list of tests (modules) to run against
  14413. an image when performing automated runtime testing.
  14414. </para>
  14415. <para>
  14416. The OpenEmbedded build system provides a core set of tests
  14417. that can be used against images.
  14418. <note>
  14419. Currently, there is only support for running these tests
  14420. under QEMU.
  14421. </note>
  14422. Tests include <filename>ping</filename>,
  14423. <filename>ssh</filename>, <filename>df</filename> among
  14424. others.
  14425. You can add your own tests to the list of tests by
  14426. appending <filename>TEST_SUITES</filename> as follows:
  14427. <literallayout class='monospaced'>
  14428. TEST_SUITES_append = " <replaceable>mytest</replaceable>"
  14429. </literallayout>
  14430. Alternatively, you can provide the "auto" option to
  14431. have all applicable tests run against the image.
  14432. <literallayout class='monospaced'>
  14433. TEST_SUITES_append = " auto"
  14434. </literallayout>
  14435. Using this option causes the build system to automatically
  14436. run tests that are applicable to the image.
  14437. Tests that are not applicable are skipped.
  14438. </para>
  14439. <para>
  14440. The order in which tests are run is important.
  14441. Tests that depend on another test must appear later in the
  14442. list than the test on which they depend.
  14443. For example, if you append the list of tests with two
  14444. tests (<filename>test_A</filename> and
  14445. <filename>test_B</filename>) where
  14446. <filename>test_B</filename> is dependent on
  14447. <filename>test_A</filename>, then you must order the tests
  14448. as follows:
  14449. <literallayout class='monospaced'>
  14450. TEST_SUITES = " test_A test_B"
  14451. </literallayout>
  14452. </para>
  14453. <para>
  14454. For more information on testing images, see the
  14455. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  14456. section in the Yocto Project Development Tasks Manual.
  14457. </para>
  14458. </glossdef>
  14459. </glossentry>
  14460. <glossentry id='var-THISDIR'><glossterm>THISDIR</glossterm>
  14461. <info>
  14462. THISDIR[doc] = "The directory in which the file BitBake is currently parsing is located."
  14463. </info>
  14464. <glossdef>
  14465. <para role="glossdeffirst">
  14466. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14467. The directory in which the file BitBake is currently
  14468. parsing is located.
  14469. Do not manually set this variable.
  14470. </para>
  14471. </glossdef>
  14472. </glossentry>
  14473. <glossentry id='var-TIME'><glossterm>TIME</glossterm>
  14474. <info>
  14475. TIME[doc] = "The time the build was started using HMS format."
  14476. </info>
  14477. <glossdef>
  14478. <para role="glossdeffirst">
  14479. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14480. The time the build was started.
  14481. Times appear using the hour, minute, and second (HMS)
  14482. format (e.g. "140159" for one minute and fifty-nine
  14483. seconds past 1400 hours).
  14484. </para>
  14485. </glossdef>
  14486. </glossentry>
  14487. <glossentry id='var-TMPDIR'><glossterm>TMPDIR</glossterm>
  14488. <info>
  14489. 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."
  14490. </info>
  14491. <glossdef>
  14492. <para role="glossdeffirst">
  14493. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14494. This variable is the base directory the OpenEmbedded
  14495. build system uses for all build output and intermediate
  14496. files (other than the shared state cache).
  14497. By default, the <filename>TMPDIR</filename> variable points
  14498. to <filename>tmp</filename> within the
  14499. <link linkend='build-directory'>Build Directory</link>.
  14500. </para>
  14501. <para>
  14502. If you want to establish this directory in a location other
  14503. than the default, you can uncomment and edit the following
  14504. statement in the
  14505. <filename>conf/local.conf</filename> file in the
  14506. <link linkend='source-directory'>Source Directory</link>:
  14507. <literallayout class='monospaced'>
  14508. #TMPDIR = "${TOPDIR}/tmp"
  14509. </literallayout>
  14510. An example use for this scenario is to set
  14511. <filename>TMPDIR</filename> to a local disk, which does
  14512. not use NFS, while having the Build Directory use NFS.
  14513. </para>
  14514. <para>
  14515. The filesystem used by <filename>TMPDIR</filename> must
  14516. have standard filesystem semantics (i.e. mixed-case files
  14517. are unique, POSIX file locking, and persistent inodes).
  14518. Due to various issues with NFS and bugs in some
  14519. implementations, NFS does not meet this minimum
  14520. requirement.
  14521. Consequently, <filename>TMPDIR</filename> cannot be on
  14522. NFS.
  14523. </para>
  14524. </glossdef>
  14525. </glossentry>
  14526. <glossentry id='var-TOOLCHAIN_HOST_TASK'><glossterm>TOOLCHAIN_HOST_TASK</glossterm>
  14527. <info>
  14528. TOOLCHAIN_HOST_TASK[doc] = "This variable lists packages the OpenEmbedded build system uses when building an SDK, which contains a cross-development environment."
  14529. </info>
  14530. <glossdef>
  14531. <para role="glossdeffirst">
  14532. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14533. This variable lists packages the OpenEmbedded build system
  14534. uses when building an SDK, which contains a
  14535. cross-development environment.
  14536. The packages specified by this variable are part of the
  14537. toolchain set that runs on the
  14538. <link linkend='var-SDKMACHINE'><filename>SDKMACHINE</filename></link>,
  14539. and each package should usually have the prefix
  14540. <filename>nativesdk-</filename>.
  14541. For example, consider the following command when
  14542. building an SDK:
  14543. <literallayout class='monospaced'>
  14544. $ bitbake -c populate_sdk <replaceable>imagename</replaceable>
  14545. </literallayout>
  14546. In this case, a default list of packages is set in this
  14547. variable, but you can add additional packages to the list.
  14548. See the
  14549. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-adding-individual-packages'>Adding Individual Packages to the Standard SDK</ulink>"
  14550. section in the Yocto Project Application Development and
  14551. the Extensible Software Development Kit (eSDK) manual
  14552. for more information.
  14553. </para>
  14554. <para>
  14555. For background information on cross-development toolchains
  14556. in the Yocto Project development environment, see the
  14557. "<ulink url='&YOCTO_DOCS_OM_URL;#cross-development-toolchain-generation'>Cross-Development Toolchain Generation</ulink>"
  14558. section in the Yocto Project Overview and Concepts Manual.
  14559. For information on setting up a cross-development
  14560. environment, see the
  14561. <ulink url='&YOCTO_DOCS_SDK_URL;'>Yocto Project Application Development and the Extensible Software Development Kit (eSDK)</ulink>
  14562. manual.
  14563. </para>
  14564. </glossdef>
  14565. </glossentry>
  14566. <glossentry id='var-TOOLCHAIN_OUTPUTNAME'><glossterm>TOOLCHAIN_OUTPUTNAME</glossterm>
  14567. <info>
  14568. TOOLCHAIN_OUTPUTNAME[doc] = "Defines the name used for the toolchain output."
  14569. </info>
  14570. <glossdef>
  14571. <para role="glossdeffirst">
  14572. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14573. This variable defines the name used for the toolchain
  14574. output.
  14575. The
  14576. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  14577. class sets the
  14578. <filename>TOOLCHAIN_OUTPUTNAME</filename> variable as
  14579. follows:
  14580. <literallayout class='monospaced'>
  14581. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  14582. </literallayout>
  14583. See the
  14584. <link linkend='var-SDK_NAME'><filename>SDK_NAME</filename></link>
  14585. and
  14586. <link linkend='var-SDK_VERSION'><filename>SDK_VERSION</filename></link>
  14587. variables for additional information.
  14588. </para>
  14589. </glossdef>
  14590. </glossentry>
  14591. <glossentry id='var-TOOLCHAIN_TARGET_TASK'><glossterm>TOOLCHAIN_TARGET_TASK</glossterm>
  14592. <info>
  14593. 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."
  14594. </info>
  14595. <glossdef>
  14596. <para role="glossdeffirst">
  14597. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14598. This variable lists packages the OpenEmbedded build system
  14599. uses when it creates the target part of an SDK
  14600. (i.e. the part built for the target hardware), which
  14601. includes libraries and headers.
  14602. Use this variable to add individual packages to the
  14603. part of the SDK that runs on the target.
  14604. See the
  14605. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-adding-individual-packages'>Adding Individual Packages to the Standard SDK</ulink>"
  14606. section in the Yocto Project Application Development and
  14607. the Extensible Software Development Kit (eSDK) manual for
  14608. more information.
  14609. </para>
  14610. <para>
  14611. For background information on cross-development toolchains
  14612. in the Yocto Project development environment, see the
  14613. "<ulink url='&YOCTO_DOCS_OM_URL;#cross-development-toolchain-generation'>Cross-Development Toolchain Generation</ulink>"
  14614. section in the Yocto Project Overview and Concepts Manual.
  14615. For information on setting up a cross-development
  14616. environment, see the
  14617. <ulink url='&YOCTO_DOCS_SDK_URL;'>Yocto Project Application Development and the Extensible Software Development Kit (eSDK)</ulink>
  14618. manual.
  14619. </para>
  14620. </glossdef>
  14621. </glossentry>
  14622. <glossentry id='var-TOPDIR'><glossterm>TOPDIR</glossterm>
  14623. <info>
  14624. TOPDIR[doc] = "The Build Directory. BitBake automatically sets this variable. The OpenEmbedded build system uses the Build Directory when building images."
  14625. </info>
  14626. <glossdef>
  14627. <para role="glossdeffirst">
  14628. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14629. The top-level
  14630. <link linkend='build-directory'>Build Directory</link>.
  14631. BitBake automatically sets this variable when you
  14632. initialize your build environment using
  14633. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>.
  14634. </para>
  14635. </glossdef>
  14636. </glossentry>
  14637. <glossentry id='var-TRANSLATED_TARGET_ARCH'><glossterm>TRANSLATED_TARGET_ARCH</glossterm>
  14638. <info>
  14639. 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."
  14640. </info>
  14641. <glossdef>
  14642. <para role="glossdeffirst">
  14643. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14644. A sanitized version of
  14645. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>.
  14646. This variable is used where the architecture is needed in
  14647. a value where underscores are not allowed, for example
  14648. within package filenames.
  14649. In this case, dash characters replace any underscore
  14650. characters used in <filename>TARGET_ARCH</filename>.
  14651. </para>
  14652. <para>
  14653. Do not edit this variable.
  14654. </para>
  14655. </glossdef>
  14656. </glossentry>
  14657. <glossentry id='var-TUNE_ARCH'><glossterm>TUNE_ARCH</glossterm>
  14658. <info>
  14659. TUNE_ARCH[doc] = "The GNU canonical architecture for a specific architecture (i.e. arm, armeb, mips, mips64, and so forth)."
  14660. </info>
  14661. <glossdef>
  14662. <para role="glossdeffirst">
  14663. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14664. The GNU canonical architecture for a specific architecture
  14665. (i.e. <filename>arm</filename>,
  14666. <filename>armeb</filename>,
  14667. <filename>mips</filename>,
  14668. <filename>mips64</filename>, and so forth).
  14669. BitBake uses this value to setup configuration.
  14670. </para>
  14671. <para>
  14672. <filename>TUNE_ARCH</filename> definitions are specific to
  14673. a given architecture.
  14674. The definitions can be a single static definition, or
  14675. can be dynamically adjusted.
  14676. You can see details for a given CPU family by looking at
  14677. the architecture's <filename>README</filename> file.
  14678. For example, the
  14679. <filename>meta/conf/machine/include/mips/README</filename>
  14680. file in the
  14681. <link linkend='source-directory'>Source Directory</link>
  14682. provides information for <filename>TUNE_ARCH</filename>
  14683. specific to the <filename>mips</filename> architecture.
  14684. </para>
  14685. <para>
  14686. <filename>TUNE_ARCH</filename> is tied closely to
  14687. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>,
  14688. which defines the target machine's architecture.
  14689. The BitBake configuration file
  14690. (<filename>meta/conf/bitbake.conf</filename>) sets
  14691. <filename>TARGET_ARCH</filename> as follows:
  14692. <literallayout class='monospaced'>
  14693. TARGET_ARCH = "${TUNE_ARCH}"
  14694. </literallayout>
  14695. </para>
  14696. <para>
  14697. The following list, which is by no means complete since
  14698. architectures are configurable, shows supported machine
  14699. architectures:
  14700. <literallayout class='monospaced'>
  14701. arm
  14702. i586
  14703. x86_64
  14704. powerpc
  14705. powerpc64
  14706. mips
  14707. mipsel
  14708. </literallayout>
  14709. </para>
  14710. </glossdef>
  14711. </glossentry>
  14712. <glossentry id='var-TUNE_ASARGS'><glossterm>TUNE_ASARGS</glossterm>
  14713. <info>
  14714. TUNE_ASARGS[doc] = "Specifies architecture-specific assembler flags for the target system."
  14715. </info>
  14716. <glossdef>
  14717. <para role="glossdeffirst">
  14718. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14719. Specifies architecture-specific assembler flags for
  14720. the target system.
  14721. The set of flags is based on the selected tune features.
  14722. <filename>TUNE_ASARGS</filename> is set using
  14723. the tune include files, which are typically under
  14724. <filename>meta/conf/machine/include/</filename> and are
  14725. influenced through
  14726. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  14727. For example, the
  14728. <filename>meta/conf/machine/include/x86/arch-x86.inc</filename>
  14729. file defines the flags for the x86 architecture as follows:
  14730. <literallayout class='monospaced'>
  14731. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  14732. </literallayout>
  14733. <note>
  14734. Board Support Packages (BSPs) select the tune.
  14735. The selected tune, in turn, affects the tune variables
  14736. themselves (i.e. the tune can supply its own
  14737. set of flags).
  14738. </note>
  14739. </para>
  14740. </glossdef>
  14741. </glossentry>
  14742. <glossentry id='var-TUNE_CCARGS'><glossterm>TUNE_CCARGS</glossterm>
  14743. <info>
  14744. TUNE_CCARGS[doc] = "Specifies architecture-specific C compiler flags for the target system."
  14745. </info>
  14746. <glossdef>
  14747. <para role="glossdeffirst">
  14748. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14749. Specifies architecture-specific C compiler flags for
  14750. the target system.
  14751. The set of flags is based on the selected tune features.
  14752. <filename>TUNE_CCARGS</filename> is set using
  14753. the tune include files, which are typically under
  14754. <filename>meta/conf/machine/include/</filename> and are
  14755. influenced through
  14756. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  14757. <note>
  14758. Board Support Packages (BSPs) select the tune.
  14759. The selected tune, in turn, affects the tune variables
  14760. themselves (i.e. the tune can supply its own
  14761. set of flags).
  14762. </note>
  14763. </para>
  14764. </glossdef>
  14765. </glossentry>
  14766. <glossentry id='var-TUNE_LDARGS'><glossterm>TUNE_LDARGS</glossterm>
  14767. <info>
  14768. TUNE_LDARGS[doc] = "Specifies architecture-specific linker flags for the target system."
  14769. </info>
  14770. <glossdef>
  14771. <para role="glossdeffirst">
  14772. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14773. Specifies architecture-specific linker flags for
  14774. the target system.
  14775. The set of flags is based on the selected tune features.
  14776. <filename>TUNE_LDARGS</filename> is set using
  14777. the tune include files, which are typically under
  14778. <filename>meta/conf/machine/include/</filename> and are
  14779. influenced through
  14780. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  14781. For example, the
  14782. <filename>meta/conf/machine/include/x86/arch-x86.inc</filename>
  14783. file defines the flags for the x86 architecture as follows:
  14784. <literallayout class='monospaced'>
  14785. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  14786. </literallayout>
  14787. <note>
  14788. Board Support Packages (BSPs) select the tune.
  14789. The selected tune, in turn, affects the tune variables
  14790. themselves (i.e. the tune can supply its own
  14791. set of flags).
  14792. </note>
  14793. </para>
  14794. </glossdef>
  14795. </glossentry>
  14796. <glossentry id='var-TUNE_FEATURES'><glossterm>TUNE_FEATURES</glossterm>
  14797. <info>
  14798. TUNE_FEATURES[doc] = "Features used to "tune" a compiler for optimal use given a specific processor."
  14799. </info>
  14800. <glossdef>
  14801. <para role="glossdeffirst">
  14802. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14803. Features used to "tune" a compiler for optimal use
  14804. given a specific processor.
  14805. The features are defined within the tune files and allow
  14806. arguments (i.e. <filename>TUNE_*ARGS</filename>) to be
  14807. dynamically generated based on the features.
  14808. </para>
  14809. <para>
  14810. The OpenEmbedded build system verifies the features
  14811. to be sure they are not conflicting and that they are
  14812. supported.
  14813. </para>
  14814. <para>
  14815. The BitBake configuration file
  14816. (<filename>meta/conf/bitbake.conf</filename>) defines
  14817. <filename>TUNE_FEATURES</filename> as follows:
  14818. <literallayout class='monospaced'>
  14819. TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}"
  14820. </literallayout>
  14821. See the
  14822. <link linkend='var-DEFAULTTUNE'><filename>DEFAULTTUNE</filename></link>
  14823. variable for more information.
  14824. </para>
  14825. </glossdef>
  14826. </glossentry>
  14827. <glossentry id='var-TUNE_PKGARCH'><glossterm>TUNE_PKGARCH</glossterm>
  14828. <info>
  14829. TUNE_PKGARCH[doc] = "The package architecture understood by the packaging system to define the architecture, ABI, and tuning of output packages."
  14830. </info>
  14831. <glossdef>
  14832. <para role="glossdeffirst">
  14833. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14834. The package architecture understood by the packaging
  14835. system to define the architecture, ABI, and tuning of
  14836. output packages.
  14837. The specific tune is defined using the "_tune" override
  14838. as follows:
  14839. <literallayout class='monospaced'>
  14840. TUNE_PKGARCH_tune-<replaceable>tune</replaceable> = "<replaceable>tune</replaceable>"
  14841. </literallayout>
  14842. </para>
  14843. <para>
  14844. These tune-specific package architectures are defined in
  14845. the machine include files.
  14846. Here is an example of the "core2-32" tuning as used
  14847. in the
  14848. <filename>meta/conf/machine/include/tune-core2.inc</filename>
  14849. file:
  14850. <literallayout class='monospaced'>
  14851. TUNE_PKGARCH_tune-core2-32 = "core2-32"
  14852. </literallayout>
  14853. </para>
  14854. </glossdef>
  14855. </glossentry>
  14856. <glossentry id='var-TUNEABI'><glossterm>TUNEABI</glossterm>
  14857. <info>
  14858. 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."
  14859. </info>
  14860. <glossdef>
  14861. <para role="glossdeffirst">
  14862. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14863. An underlying Application Binary Interface (ABI) used by
  14864. a particular tuning in a given toolchain layer.
  14865. Providers that use prebuilt libraries can use the
  14866. <filename>TUNEABI</filename>,
  14867. <link linkend='var-TUNEABI_OVERRIDE'><filename>TUNEABI_OVERRIDE</filename></link>,
  14868. and
  14869. <link linkend='var-TUNEABI_WHITELIST'><filename>TUNEABI_WHITELIST</filename></link>
  14870. variables to check compatibility of tunings against their
  14871. selection of libraries.
  14872. </para>
  14873. <para>
  14874. If <filename>TUNEABI</filename> is undefined, then every
  14875. tuning is allowed.
  14876. See the
  14877. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  14878. class to see how the variable is used.
  14879. </para>
  14880. </glossdef>
  14881. </glossentry>
  14882. <glossentry id='var-TUNEABI_OVERRIDE'><glossterm>TUNEABI_OVERRIDE</glossterm>
  14883. <info>
  14884. TUNEABI_OVERRIDE[doc] = "If set, ignores TUNEABI_WHITELIST."
  14885. </info>
  14886. <glossdef>
  14887. <para role="glossdeffirst">
  14888. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14889. If set, the OpenEmbedded system ignores the
  14890. <link linkend='var-TUNEABI_WHITELIST'><filename>TUNEABI_WHITELIST</filename></link>
  14891. variable.
  14892. Providers that use prebuilt libraries can use the
  14893. <filename>TUNEABI_OVERRIDE</filename>,
  14894. <filename>TUNEABI_WHITELIST</filename>,
  14895. and
  14896. <link linkend='var-TUNEABI'><filename>TUNEABI</filename></link>
  14897. variables to check compatibility of a tuning against their
  14898. selection of libraries.
  14899. </para>
  14900. <para>
  14901. See the
  14902. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  14903. class to see how the variable is used.
  14904. </para>
  14905. </glossdef>
  14906. </glossentry>
  14907. <glossentry id='var-TUNEABI_WHITELIST'><glossterm>TUNEABI_WHITELIST</glossterm>
  14908. <info>
  14909. TUNEABI_WHITELIST[doc] = "A whitelist of permissible TUNEABI values. If the variable is not set, all values are allowed."
  14910. </info>
  14911. <glossdef>
  14912. <para role="glossdeffirst">
  14913. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14914. A whitelist of permissible
  14915. <link linkend='var-TUNEABI'><filename>TUNEABI</filename></link>
  14916. values.
  14917. If <filename>TUNEABI_WHITELIST</filename> is not set,
  14918. all tunes are allowed.
  14919. Providers that use prebuilt libraries can use the
  14920. <filename>TUNEABI_WHITELIST</filename>,
  14921. <link linkend='var-TUNEABI_OVERRIDE'><filename>TUNEABI_OVERRIDE</filename></link>,
  14922. and <filename>TUNEABI</filename> variables to check
  14923. compatibility of a tuning against their selection of
  14924. libraries.
  14925. </para>
  14926. <para>
  14927. See the
  14928. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  14929. class to see how the variable is used.
  14930. </para>
  14931. </glossdef>
  14932. </glossentry>
  14933. <glossentry id='var-TUNECONFLICTS'><glossterm>TUNECONFLICTS[<replaceable>feature</replaceable>]</glossterm>
  14934. <info>
  14935. TUNECONFLICTS[doc] = "Specifies CPU or Application Binary Interface (ABI) tuning features that conflict with specified feature."
  14936. </info>
  14937. <glossdef>
  14938. <para role="glossdeffirst">
  14939. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14940. Specifies CPU or Application Binary Interface (ABI)
  14941. tuning features that conflict with <replaceable>feature</replaceable>.
  14942. </para>
  14943. <para>
  14944. Known tuning conflicts are specified in the machine include
  14945. files in the
  14946. <link linkend='source-directory'>Source Directory</link>.
  14947. Here is an example from the
  14948. <filename>meta/conf/machine/include/mips/arch-mips.inc</filename>
  14949. include file that lists the "o32" and "n64" features as
  14950. conflicting with the "n32" feature:
  14951. <literallayout class='monospaced'>
  14952. TUNECONFLICTS[n32] = "o32 n64"
  14953. </literallayout>
  14954. </para>
  14955. </glossdef>
  14956. </glossentry>
  14957. <glossentry id='var-TUNEVALID'><glossterm>TUNEVALID[<replaceable>feature</replaceable>]</glossterm>
  14958. <info>
  14959. TUNEVALID[doc] = "Descriptions, stored as flags, of valid tuning features."
  14960. </info>
  14961. <glossdef>
  14962. <para role="glossdeffirst">
  14963. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14964. Specifies a valid CPU or Application Binary Interface (ABI)
  14965. tuning feature.
  14966. The specified feature is stored as a flag.
  14967. Valid features are specified in the machine include files
  14968. (e.g. <filename>meta/conf/machine/include/arm/arch-arm.inc</filename>).
  14969. Here is an example from that file:
  14970. <literallayout class='monospaced'>
  14971. TUNEVALID[bigendian] = "Enable big-endian mode."
  14972. </literallayout>
  14973. </para>
  14974. <para>
  14975. See the machine include files in the
  14976. <link linkend='source-directory'>Source Directory</link>
  14977. for these features.
  14978. </para>
  14979. </glossdef>
  14980. </glossentry>
  14981. </glossdiv>
  14982. <glossdiv id='var-glossary-u'><title>U</title>
  14983. <glossentry id='var-UBOOT_CONFIG'><glossterm>UBOOT_CONFIG</glossterm>
  14984. <info>
  14985. UBOOT_CONFIG[doc] = "Configures the UBOOT_MACHINE and can also define IMAGE_FSTYPES for individual cases."
  14986. </info>
  14987. <glossdef>
  14988. <para role="glossdeffirst">
  14989. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14990. Configures the
  14991. <link linkend='var-UBOOT_MACHINE'><filename>UBOOT_MACHINE</filename></link>
  14992. and can also define
  14993. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  14994. for individual cases.
  14995. </para>
  14996. <para>
  14997. Following is an example from the
  14998. <filename>meta-fsl-arm</filename> layer.
  14999. <literallayout class='monospaced'>
  15000. UBOOT_CONFIG ??= "sd"
  15001. UBOOT_CONFIG[sd] = "mx6qsabreauto_config,sdcard"
  15002. UBOOT_CONFIG[eimnor] = "mx6qsabreauto_eimnor_config"
  15003. UBOOT_CONFIG[nand] = "mx6qsabreauto_nand_config,ubifs"
  15004. UBOOT_CONFIG[spinor] = "mx6qsabreauto_spinor_config"
  15005. </literallayout>
  15006. In this example, "sd" is selected as the configuration
  15007. of the possible four for the
  15008. <filename>UBOOT_MACHINE</filename>.
  15009. The "sd" configuration defines "mx6qsabreauto_config"
  15010. as the value for <filename>UBOOT_MACHINE</filename>, while
  15011. the "sdcard" specifies the
  15012. <filename>IMAGE_FSTYPES</filename> to use for the U-boot
  15013. image.
  15014. </para>
  15015. <para>
  15016. For more information on how the
  15017. <filename>UBOOT_CONFIG</filename> is handled, see the
  15018. <ulink url='http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/uboot-config.bbclass'><filename>uboot-config</filename></ulink>
  15019. class.
  15020. </para>
  15021. </glossdef>
  15022. </glossentry>
  15023. <glossentry id='var-UBOOT_ENTRYPOINT'><glossterm>UBOOT_ENTRYPOINT</glossterm>
  15024. <info>
  15025. UBOOT_ENTRYPOINT[doc] = "Specifies the entry point for the U-Boot image."
  15026. </info>
  15027. <glossdef>
  15028. <para role="glossdeffirst">
  15029. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15030. Specifies the entry point for the U-Boot image.
  15031. During U-Boot image creation, the
  15032. <filename>UBOOT_ENTRYPOINT</filename> variable is passed
  15033. as a command-line parameter to the
  15034. <filename>uboot-mkimage</filename> utility.
  15035. </para>
  15036. </glossdef>
  15037. </glossentry>
  15038. <glossentry id='var-UBOOT_LOADADDRESS'><glossterm>UBOOT_LOADADDRESS</glossterm>
  15039. <info>
  15040. UBOOT_LOADADDRESS[doc] = "Specifies the load address for the U-Boot image."
  15041. </info>
  15042. <glossdef>
  15043. <para role="glossdeffirst">
  15044. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15045. Specifies the load address for the U-Boot image.
  15046. During U-Boot image creation, the
  15047. <filename>UBOOT_LOADADDRESS</filename> variable is passed
  15048. as a command-line parameter to the
  15049. <filename>uboot-mkimage</filename> utility.
  15050. </para>
  15051. </glossdef>
  15052. </glossentry>
  15053. <glossentry id='var-UBOOT_LOCALVERSION'><glossterm>UBOOT_LOCALVERSION</glossterm>
  15054. <info>
  15055. UBOOT_LOCALVERSION[doc] = "Appends a string to the name of the local version of the U-Boot image."
  15056. </info>
  15057. <glossdef>
  15058. <para role="glossdeffirst">
  15059. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15060. Appends a string to the name of the local version of the
  15061. U-Boot image.
  15062. For example, assuming the version of the U-Boot image
  15063. built was "2013.10, the full version string reported by
  15064. U-Boot would be "2013.10-yocto" given the following
  15065. statement:
  15066. <literallayout class='monospaced'>
  15067. UBOOT_LOCALVERSION = "-yocto"
  15068. </literallayout>
  15069. </para>
  15070. </glossdef>
  15071. </glossentry>
  15072. <glossentry id='var-UBOOT_MACHINE'><glossterm>UBOOT_MACHINE</glossterm>
  15073. <info>
  15074. UBOOT_MACHINE[doc] = "Specifies the value passed on the make command line when building a U-Boot image."
  15075. </info>
  15076. <glossdef>
  15077. <para role="glossdeffirst">
  15078. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15079. Specifies the value passed on the
  15080. <filename>make</filename> command line when building
  15081. a U-Boot image.
  15082. The value indicates the target platform configuration.
  15083. You typically set this variable from the machine
  15084. configuration file (i.e.
  15085. <filename>conf/machine/<replaceable>machine_name</replaceable>.conf</filename>).
  15086. </para>
  15087. <para>
  15088. Please see the "Selection of Processor Architecture and
  15089. Board Type" section in the U-Boot README for valid values
  15090. for this variable.
  15091. </para>
  15092. </glossdef>
  15093. </glossentry>
  15094. <glossentry id='var-UBOOT_MAKE_TARGET'><glossterm>UBOOT_MAKE_TARGET</glossterm>
  15095. <info>
  15096. UBOOT_MAKE_TARGET[doc] = "Specifies the target called in the Makefile."
  15097. </info>
  15098. <glossdef>
  15099. <para role="glossdeffirst">
  15100. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15101. Specifies the target called in the
  15102. <filename>Makefile</filename>.
  15103. The default target is "all".
  15104. </para>
  15105. </glossdef>
  15106. </glossentry>
  15107. <glossentry id='var-UBOOT_SUFFIX'><glossterm>UBOOT_SUFFIX</glossterm>
  15108. <info>
  15109. UBOOT_SUFFIX[doc] = "Points to the generated U-Boot extension."
  15110. </info>
  15111. <glossdef>
  15112. <para role="glossdeffirst">
  15113. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15114. Points to the generated U-Boot extension.
  15115. For example, <filename>u-boot.sb</filename> has a
  15116. <filename>.sb</filename> extension.
  15117. </para>
  15118. <para>
  15119. The default U-Boot extension is
  15120. <filename>.bin</filename>
  15121. </para>
  15122. </glossdef>
  15123. </glossentry>
  15124. <glossentry id='var-UBOOT_TARGET'><glossterm>UBOOT_TARGET</glossterm>
  15125. <info>
  15126. UBOOT_TARGET[doc] = "Specifies the target used for building U-Boot."
  15127. </info>
  15128. <glossdef>
  15129. <para role="glossdeffirst">
  15130. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15131. Specifies the target used for building U-Boot.
  15132. The target is passed directly as part of the "make" command
  15133. (e.g. SPL and AIS).
  15134. If you do not specifically set this variable, the
  15135. OpenEmbedded build process passes and uses "all" for the
  15136. target during the U-Boot building process.
  15137. </para>
  15138. </glossdef>
  15139. </glossentry>
  15140. <glossentry id='var-UNKNOWN_CONFIGURE_WHITELIST'><glossterm>UNKNOWN_CONFIGURE_WHITELIST</glossterm>
  15141. <info>
  15142. 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."
  15143. </info>
  15144. <glossdef>
  15145. <para role="glossdeffirst">
  15146. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15147. Specifies a list of options that, if reported by the
  15148. configure script as being invalid, should not generate a
  15149. warning during the
  15150. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  15151. task.
  15152. Normally, invalid configure options are simply not passed
  15153. to the configure script (e.g. should be removed from
  15154. <link linkend='var-EXTRA_OECONF'><filename>EXTRA_OECONF</filename></link>
  15155. or
  15156. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>).
  15157. However, common options, for example, exist that are passed
  15158. to all configure scripts at a class level that might not
  15159. be valid for some configure scripts.
  15160. It follows that no benefit exists in seeing a warning about
  15161. these options.
  15162. For these cases, the options are added to
  15163. <filename>UNKNOWN_CONFIGURE_WHITELIST</filename>.
  15164. </para>
  15165. <para>
  15166. The configure arguments check that uses
  15167. <filename>UNKNOWN_CONFIGURE_WHITELIST</filename> is part
  15168. of the
  15169. <link linkend='ref-classes-insane'><filename>insane</filename></link>
  15170. class and is only enabled if the recipe inherits the
  15171. <link linkend='ref-classes-autotools'><filename>autotools</filename></link>
  15172. class.
  15173. </para>
  15174. </glossdef>
  15175. </glossentry>
  15176. <glossentry id='var-UPDATERCPN'><glossterm>UPDATERCPN</glossterm>
  15177. <info>
  15178. UPDATERCPN[doc] = "Specifies the package that contains the initscript that is enabled."
  15179. </info>
  15180. <glossdef>
  15181. <para role="glossdeffirst">
  15182. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15183. For recipes inheriting the
  15184. <link linkend='ref-classes-update-rc.d'><filename>update-rc.d</filename></link>
  15185. class, <filename>UPDATERCPN</filename> specifies
  15186. the package that contains the initscript that is
  15187. enabled.
  15188. </para>
  15189. <para>
  15190. The default value is "${PN}".
  15191. Given that almost all recipes that install initscripts
  15192. package them in the main package for the recipe, you
  15193. rarely need to set this variable in individual recipes.
  15194. </para>
  15195. </glossdef>
  15196. </glossentry>
  15197. <glossentry id='var-UPSTREAM_CHECK_GITTAGREGEX'><glossterm>UPSTREAM_CHECK_GITTAGREGEX</glossterm>
  15198. <info>
  15199. UPSTREAM_CHECK_GITTAGREGEX[doc] = "Filters relevant Git tags when fetching source from an upstream Git repository."
  15200. </info>
  15201. <glossdef>
  15202. <para role="glossdeffirst">
  15203. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15204. When the
  15205. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  15206. class is enabled globally, you can perform a per-recipe
  15207. check for what the latest upstream source code version is
  15208. by calling
  15209. <filename>bitbake -c checkpkg</filename> <replaceable>recipe</replaceable>.
  15210. If the recipe source code is provided from Git
  15211. repositories, the OpenEmbedded build system determines the
  15212. latest upstream version by picking the latest tag from the
  15213. list of all repository tags.
  15214. You can use the
  15215. <filename>UPSTREAM_CHECK_GITTAGREGEX</filename>
  15216. variable to provide a regular expression to filter only the
  15217. relevant tags should the default filter not work
  15218. correctly.
  15219. <literallayout class='monospaced'>
  15220. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  15221. </literallayout>
  15222. </para>
  15223. </glossdef>
  15224. </glossentry>
  15225. <glossentry id='var-UPSTREAM_CHECK_REGEX'><glossterm>UPSTREAM_CHECK_REGEX</glossterm>
  15226. <info>
  15227. UPSTREAM_CHECK_REGEX[doc] = "The regular expression the package checking system uses to parse the page pointed to by UPSTREAM_CHECK_URI."
  15228. </info>
  15229. <glossdef>
  15230. <para role="glossdeffirst">
  15231. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15232. When the
  15233. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  15234. class is enabled globally, use the
  15235. <filename>UPSTREAM_CHECK_REGEX</filename> variable to
  15236. specify a different regular expression instead of the
  15237. default one when the package checking system is parsing
  15238. the page found using
  15239. <link linkend='var-UPSTREAM_CHECK_URI'><filename>UPSTREAM_CHECK_URI</filename></link>.
  15240. <literallayout class='monospaced'>
  15241. UPSTREAM_CHECK_REGEX = "package_regex"
  15242. </literallayout>
  15243. </para>
  15244. </glossdef>
  15245. </glossentry>
  15246. <glossentry id='var-UPSTREAM_CHECK_URI'><glossterm>UPSTREAM_CHECK_URI</glossterm>
  15247. <info>
  15248. 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."
  15249. </info>
  15250. <glossdef>
  15251. <para role="glossdeffirst">
  15252. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15253. When the
  15254. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  15255. class is enabled globally, you can perform a per-recipe
  15256. check for what the latest upstream source code version is
  15257. by calling <filename>bitbake -c checkpkg</filename>
  15258. <replaceable>recipe</replaceable>.
  15259. If the source code is provided from tarballs, the latest
  15260. version is determined by fetching the directory listing
  15261. where the tarball is and attempting to find a later tarball.
  15262. When this approach does not work, you can use
  15263. <filename>UPSTREAM_CHECK_URI</filename> to
  15264. provide a different URI that contains the link to the
  15265. latest tarball.
  15266. <literallayout class='monospaced'>
  15267. UPSTREAM_CHECK_URI = "recipe_url"
  15268. </literallayout>
  15269. </para>
  15270. </glossdef>
  15271. </glossentry>
  15272. <glossentry id='var-USE_DEVFS'><glossterm>USE_DEVFS</glossterm>
  15273. <info>
  15274. USE_DEVFS[doc] = "Determines if devtmpfs is used for /dev population."
  15275. </info>
  15276. <glossdef>
  15277. <para role="glossdeffirst">
  15278. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15279. Determines if <filename>devtmpfs</filename> is used for
  15280. <filename>/dev</filename> population.
  15281. The default value used for <filename>USE_DEVFS</filename>
  15282. is "1" when no value is specifically set.
  15283. Typically, you would set <filename>USE_DEVFS</filename>
  15284. to "0" for a statically populated <filename>/dev</filename>
  15285. directory.
  15286. </para>
  15287. <para>
  15288. See the
  15289. "<ulink url='&YOCTO_DOCS_DEV_URL;#selecting-dev-manager'>Selecting a Device Manager</ulink>"
  15290. section in the Yocto Project Development Tasks Manual for
  15291. information on how to use this variable.
  15292. </para>
  15293. </glossdef>
  15294. </glossentry>
  15295. <glossentry id='var-USE_VT'><glossterm>USE_VT</glossterm>
  15296. <info>
  15297. 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."
  15298. </info>
  15299. <glossdef>
  15300. <para role="glossdeffirst">
  15301. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15302. When using
  15303. <ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-enabling-system-services'>SysVinit</ulink>,
  15304. determines whether or not to run a
  15305. <ulink url='http://en.wikipedia.org/wiki/Getty_%28Unix%29'>getty</ulink>
  15306. on any virtual terminals in order to enable logging in
  15307. through those terminals.
  15308. </para>
  15309. <para>
  15310. The default value used for <filename>USE_VT</filename>
  15311. is "1" when no default value is specifically set.
  15312. Typically, you would set <filename>USE_VT</filename>
  15313. to "0" in the machine configuration file for machines
  15314. that do not have a graphical display attached and
  15315. therefore do not need virtual terminal functionality.
  15316. </para>
  15317. </glossdef>
  15318. </glossentry>
  15319. <glossentry id='var-USER_CLASSES'><glossterm>USER_CLASSES</glossterm>
  15320. <info>
  15321. USER_CLASSES[doc] = "List of additional classes to use when building images that enable extra features."
  15322. </info>
  15323. <glossdef>
  15324. <para role="glossdeffirst">
  15325. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15326. A list of classes to globally inherit.
  15327. These classes are used by the OpenEmbedded build system
  15328. to enable extra features (e.g.
  15329. <filename>buildstats</filename>,
  15330. <filename>image-mklibs</filename>, and so forth).
  15331. </para>
  15332. <para>
  15333. The default list is set in your
  15334. <filename>local.conf</filename> file:
  15335. <literallayout class='monospaced'>
  15336. USER_CLASSES ?= "buildstats image-mklibs image-prelink"
  15337. </literallayout>
  15338. For more information, see
  15339. <filename>meta-poky/conf/local.conf.sample</filename> in
  15340. the
  15341. <link linkend='source-directory'>Source Directory</link>.
  15342. </para>
  15343. </glossdef>
  15344. </glossentry>
  15345. <glossentry id='var-USERADD_ERROR_DYNAMIC'><glossterm>USERADD_ERROR_DYNAMIC</glossterm>
  15346. <info>
  15347. 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."
  15348. </info>
  15349. <glossdef>
  15350. <para role="glossdeffirst">
  15351. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15352. If set to "error", forces the OpenEmbedded build system to
  15353. produce an error if the user identification
  15354. (<filename>uid</filename>) and group identification
  15355. (<filename>gid</filename>) values are not defined
  15356. in <filename>files/passwd</filename>
  15357. and <filename>files/group</filename> files.
  15358. If set to "warn", a warning will be issued instead.
  15359. </para>
  15360. <para>
  15361. The default behavior for the build system is to dynamically
  15362. apply <filename>uid</filename> and
  15363. <filename>gid</filename> values.
  15364. Consequently, the <filename>USERADD_ERROR_DYNAMIC</filename>
  15365. variable is by default not set.
  15366. If you plan on using statically assigned
  15367. <filename>gid</filename> and <filename>uid</filename>
  15368. values, you should set
  15369. the <filename>USERADD_ERROR_DYNAMIC</filename> variable in
  15370. your <filename>local.conf</filename> file as
  15371. follows:
  15372. <literallayout class='monospaced'>
  15373. USERADD_ERROR_DYNAMIC = "error"
  15374. </literallayout>
  15375. Overriding the default behavior implies you are going to
  15376. also take steps to set static <filename>uid</filename> and
  15377. <filename>gid</filename> values through use of the
  15378. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>,
  15379. <link linkend='var-USERADD_UID_TABLES'><filename>USERADD_UID_TABLES</filename></link>,
  15380. and
  15381. <link linkend='var-USERADD_GID_TABLES'><filename>USERADD_GID_TABLES</filename></link>
  15382. variables.
  15383. </para>
  15384. </glossdef>
  15385. </glossentry>
  15386. <glossentry id='var-USERADD_GID_TABLES'><glossterm>USERADD_GID_TABLES</glossterm>
  15387. <info>
  15388. 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."
  15389. </info>
  15390. <glossdef>
  15391. <para role="glossdeffirst">
  15392. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15393. Specifies a password file to use for obtaining static
  15394. group identification (<filename>gid</filename>) values
  15395. when the OpenEmbedded build system adds a group to the
  15396. system during package installation.
  15397. </para>
  15398. <para>
  15399. When applying static group identification
  15400. (<filename>gid</filename>) values, the OpenEmbedded build
  15401. system looks in
  15402. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>
  15403. for a <filename>files/group</filename> file and then applies
  15404. those <filename>uid</filename> values.
  15405. Set the variable as follows in your
  15406. <filename>local.conf</filename> file:
  15407. <literallayout class='monospaced'>
  15408. USERADD_GID_TABLES = "files/group"
  15409. </literallayout>
  15410. </para>
  15411. <note>
  15412. Setting the
  15413. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>
  15414. variable to "useradd-staticids" causes the build system
  15415. to use static <filename>gid</filename> values.
  15416. </note>
  15417. </glossdef>
  15418. </glossentry>
  15419. <glossentry id='var-USERADD_PACKAGES'><glossterm>USERADD_PACKAGES</glossterm>
  15420. <info>
  15421. 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."
  15422. </info>
  15423. <glossdef>
  15424. <para role="glossdeffirst">
  15425. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15426. When inheriting the
  15427. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  15428. class, this variable
  15429. specifies the individual packages within the recipe that
  15430. require users and/or groups to be added.
  15431. </para>
  15432. <para>
  15433. You must set this variable if the recipe inherits the
  15434. class.
  15435. For example, the following enables adding a user for the
  15436. main package in a recipe:
  15437. <literallayout class='monospaced'>
  15438. USERADD_PACKAGES = "${PN}"
  15439. </literallayout>
  15440. <note>
  15441. If follows that if you are going to use the
  15442. <filename>USERADD_PACKAGES</filename> variable,
  15443. you need to set one or more of the
  15444. <link linkend='var-USERADD_PARAM'><filename>USERADD_PARAM</filename></link>,
  15445. <link linkend='var-GROUPADD_PARAM'><filename>GROUPADD_PARAM</filename></link>,
  15446. or
  15447. <link linkend='var-GROUPMEMS_PARAM'><filename>GROUPMEMS_PARAM</filename></link>
  15448. variables.
  15449. </note>
  15450. </para>
  15451. </glossdef>
  15452. </glossentry>
  15453. <glossentry id='var-USERADD_PARAM'><glossterm>USERADD_PARAM</glossterm>
  15454. <info>
  15455. 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."
  15456. </info>
  15457. <glossdef>
  15458. <para role="glossdeffirst">
  15459. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15460. When inheriting the
  15461. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  15462. class, this variable
  15463. specifies for a package what parameters should pass
  15464. to the <filename>useradd</filename> command
  15465. if you add a user to the system when the package
  15466. is installed.
  15467. </para>
  15468. <para>
  15469. Here is an example from the <filename>dbus</filename>
  15470. recipe:
  15471. <literallayout class='monospaced'>
  15472. USERADD_PARAM_${PN} = "--system --home ${localstatedir}/lib/dbus \
  15473. --no-create-home --shell /bin/false \
  15474. --user-group messagebus"
  15475. </literallayout>
  15476. For information on the standard Linux shell command
  15477. <filename>useradd</filename>, see
  15478. <ulink url='http://linux.die.net/man/8/useradd'></ulink>.
  15479. </para>
  15480. </glossdef>
  15481. </glossentry>
  15482. <glossentry id='var-USERADD_UID_TABLES'><glossterm>USERADD_UID_TABLES</glossterm>
  15483. <info>
  15484. 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."
  15485. </info>
  15486. <glossdef>
  15487. <para role="glossdeffirst">
  15488. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15489. Specifies a password file to use for obtaining static
  15490. user identification (<filename>uid</filename>) values
  15491. when the OpenEmbedded build system adds a user to the
  15492. system during package installation.
  15493. </para>
  15494. <para>
  15495. When applying static user identification
  15496. (<filename>uid</filename>) values, the OpenEmbedded build
  15497. system looks in
  15498. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>
  15499. for a <filename>files/passwd</filename> file and then applies
  15500. those <filename>uid</filename> values.
  15501. Set the variable as follows in your
  15502. <filename>local.conf</filename> file:
  15503. <literallayout class='monospaced'>
  15504. USERADD_UID_TABLES = "files/passwd"
  15505. </literallayout>
  15506. </para>
  15507. <note>
  15508. Setting the
  15509. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>
  15510. variable to "useradd-staticids" causes the build system
  15511. to use static <filename>uid</filename> values.
  15512. </note>
  15513. </glossdef>
  15514. </glossentry>
  15515. <glossentry id='var-USERADDEXTENSION'><glossterm>USERADDEXTENSION</glossterm>
  15516. <info>
  15517. 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."
  15518. </info>
  15519. <glossdef>
  15520. <para role="glossdeffirst">
  15521. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15522. When set to "useradd-staticids", causes the
  15523. OpenEmbedded build system to base all user and group
  15524. additions on a static
  15525. <filename>passwd</filename> and
  15526. <filename>group</filename> files found in
  15527. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>.
  15528. </para>
  15529. <para>
  15530. To use static user identification (<filename>uid</filename>)
  15531. and group identification (<filename>gid</filename>)
  15532. values, set the variable
  15533. as follows in your <filename>local.conf</filename> file:
  15534. <literallayout class='monospaced'>
  15535. USERADDEXTENSION = "useradd-staticids"
  15536. </literallayout>
  15537. <note>
  15538. Setting this variable to use static
  15539. <filename>uid</filename> and <filename>gid</filename>
  15540. values causes the OpenEmbedded build system to employ
  15541. the
  15542. <link linkend='ref-classes-useradd'><filename>useradd-staticids</filename></link>
  15543. class.
  15544. </note>
  15545. </para>
  15546. <para>
  15547. If you use static <filename>uid</filename> and
  15548. <filename>gid</filename> information, you must also
  15549. specify the <filename>files/passwd</filename> and
  15550. <filename>files/group</filename> files by setting the
  15551. <link linkend='var-USERADD_UID_TABLES'><filename>USERADD_UID_TABLES</filename></link>
  15552. and
  15553. <link linkend='var-USERADD_GID_TABLES'><filename>USERADD_GID_TABLES</filename></link>
  15554. variables.
  15555. Additionally, you should also set the
  15556. <link linkend='var-USERADD_ERROR_DYNAMIC'><filename>USERADD_ERROR_DYNAMIC</filename></link>
  15557. variable.
  15558. </para>
  15559. </glossdef>
  15560. </glossentry>
  15561. </glossdiv>
  15562. <glossdiv id='var-glossary-v'><title>V</title>
  15563. <glossentry id='var-VOLATILE_LOG_DIR'><glossterm>VOLATILE_LOG_DIR</glossterm>
  15564. <info>
  15565. VOLATILE_LOG_DIR[doc] = "Specifies the persistence of the target's /var/log directory, which is used to house postinstall target log files."
  15566. </info>
  15567. <glossdef>
  15568. <para role="glossdeffirst">
  15569. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15570. Specifies the persistence of the target's
  15571. <filename>/var/log</filename> directory, which is used to
  15572. house postinstall target log files.
  15573. </para>
  15574. <para>
  15575. By default, <filename>VOLATILE_LOG_DIR</filename> is set
  15576. to "yes", which means the file is not persistent.
  15577. You can override this setting by setting the
  15578. variable to "no" to make the log directory persistent.
  15579. </para>
  15580. </glossdef>
  15581. </glossentry>
  15582. </glossdiv>
  15583. <glossdiv id='var-glossary-w'><title>W</title>
  15584. <glossentry id='var-WARN_QA'><glossterm>WARN_QA</glossterm>
  15585. <info>
  15586. WARN_QA[doc] = "Specifies the quality assurance checks whose failures are reported as warnings by the OpenEmbedded build system."
  15587. </info>
  15588. <glossdef>
  15589. <para role="glossdeffirst">
  15590. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15591. Specifies the quality assurance checks whose failures are
  15592. reported as warnings by the OpenEmbedded build system.
  15593. You set this variable in your distribution configuration
  15594. file.
  15595. For a list of the checks you can control with this variable,
  15596. see the
  15597. "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  15598. section.
  15599. </para>
  15600. </glossdef>
  15601. </glossentry>
  15602. <glossentry id='var-WKS_FILE_DEPENDS'><glossterm>WKS_FILE_DEPENDS</glossterm>
  15603. <info>
  15604. WKS_FILE_DEPENDS[doc] = "Lists a recipe's build-time dependencies specific to Wic."
  15605. </info>
  15606. <glossdef>
  15607. <para role="glossdeffirst">
  15608. When placed in the recipe that builds your image, this
  15609. variable lists build-time dependencies.
  15610. The <filename>WKS_FILE_DEPENDS</filename> variable is only
  15611. applicable when Wic images are active (i.e. when
  15612. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  15613. contains entries related to Wic).
  15614. If your recipe does not create Wic images, the variable
  15615. has no effect.
  15616. </para>
  15617. <para>
  15618. The <filename>WKS_FILE_DEPENDS</filename> variable is
  15619. similar to the
  15620. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  15621. variable.
  15622. When you use the variable in your recipe that builds the
  15623. Wic image, dependencies you list in the
  15624. <filename>WIC_FILE_DEPENDS</filename> variable are added to
  15625. the <filename>DEPENDS</filename> variable.
  15626. </para>
  15627. <para>
  15628. With the <filename>WKS_FILE_DEPENDS</filename> variable,
  15629. you have the possibility to specify a list of additional
  15630. dependencies (e.g. native tools, bootloaders, and so forth),
  15631. that are required to build Wic images.
  15632. Following is an example:
  15633. <literallayout class='monospaced'>
  15634. WKS_FILE_DEPENDS = "<replaceable>some-native-tool</replaceable>"
  15635. </literallayout>
  15636. In the previous example,
  15637. <replaceable>some-native-tool</replaceable> would be
  15638. replaced with an actual native tool on which the build
  15639. would depend.
  15640. </para>
  15641. </glossdef>
  15642. </glossentry>
  15643. <glossentry id='var-WKS_FILE'><glossterm>WKS_FILE</glossterm>
  15644. <info>
  15645. WKS_FILE[doc] = "Specifies the name of the wic kickstart file."
  15646. </info>
  15647. <glossdef>
  15648. <para role="glossdeffirst">
  15649. Specifies the location of the Wic
  15650. kickstart file that is used by the OpenEmbedded build
  15651. system to create a partitioned image
  15652. (<replaceable>image</replaceable><filename>.wic</filename>).
  15653. For information on how to create a partitioned image, see
  15654. the
  15655. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-partitioned-images-using-wic'>Creating Partitioned Images Using Wic</ulink>"
  15656. section in the Yocto Project Development Tasks Manual.
  15657. For details on the kickstart file format, see the
  15658. "<link linkend='ref-kickstart'>OpenEmbedded Kickstart (<filename>.wks</filename>) Reference</link>
  15659. Chapter.
  15660. </para>
  15661. </glossdef>
  15662. </glossentry>
  15663. <glossentry id='var-WORKDIR'><glossterm>WORKDIR</glossterm>
  15664. <info>
  15665. 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."
  15666. </info>
  15667. <glossdef>
  15668. <para role="glossdeffirst">
  15669. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15670. The pathname of the work directory in which the OpenEmbedded
  15671. build system builds a recipe.
  15672. This directory is located within the
  15673. <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link>
  15674. directory structure and is specific to the recipe being
  15675. built and the system for which it is being built.
  15676. </para>
  15677. <para>
  15678. The <filename>WORKDIR</filename> directory is defined as
  15679. follows:
  15680. <literallayout class='monospaced'>
  15681. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  15682. </literallayout>
  15683. The actual directory depends on several things:
  15684. <itemizedlist>
  15685. <listitem><filename>TMPDIR</filename>:
  15686. The top-level build output directory</listitem>
  15687. <listitem><link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>:
  15688. The target system identifier</listitem>
  15689. <listitem><link linkend='var-PN'><filename>PN</filename></link>:
  15690. The recipe name</listitem>
  15691. <listitem><link linkend='var-EXTENDPE'><filename>EXTENDPE</filename></link>:
  15692. The epoch - (if
  15693. <link linkend='var-PE'><filename>PE</filename></link>
  15694. is not specified, which is usually the case for most
  15695. recipes, then <filename>EXTENDPE</filename> is blank)</listitem>
  15696. <listitem><link linkend='var-PV'><filename>PV</filename></link>:
  15697. The recipe version</listitem>
  15698. <listitem><link linkend='var-PR'><filename>PR</filename></link>:
  15699. The recipe revision</listitem>
  15700. </itemizedlist>
  15701. </para>
  15702. <para>
  15703. As an example, assume a Source Directory top-level folder
  15704. name <filename>poky</filename>, a default Build Directory at
  15705. <filename>poky/build</filename>, and a
  15706. <filename>qemux86-poky-linux</filename> machine target
  15707. system.
  15708. Furthermore, suppose your recipe is named
  15709. <filename>foo_1.3.0-r0.bb</filename>.
  15710. In this case, the work directory the build system uses to
  15711. build the package would be as follows:
  15712. <literallayout class='monospaced'>
  15713. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  15714. </literallayout>
  15715. </para>
  15716. </glossdef>
  15717. </glossentry>
  15718. </glossdiv>
  15719. <glossdiv id='var-glossary-x'><title>X</title>
  15720. <glossentry id='var-XSERVER'><glossterm>XSERVER</glossterm>
  15721. <info>
  15722. XSERVER[doc] = "Specifies the packages that should be installed
  15723. to provide an X server and drivers for the current machine."
  15724. </info>
  15725. <glossdef>
  15726. <para role="glossdeffirst">
  15727. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15728. Specifies the packages that should be installed to
  15729. provide an X server and drivers for the current machine,
  15730. assuming your image directly includes
  15731. <filename>packagegroup-core-x11-xserver</filename> or,
  15732. perhaps indirectly, includes "x11-base" in
  15733. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  15734. </para>
  15735. <para>
  15736. The default value of <filename>XSERVER</filename>, if not
  15737. specified in the machine configuration, is
  15738. "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  15739. </para>
  15740. </glossdef>
  15741. </glossentry>
  15742. </glossdiv>
  15743. <!-- <glossdiv id='var-glossary-y'><title>Y</title>-->
  15744. <!-- </glossdiv>-->
  15745. <!-- <glossdiv id='var-glossary-z'><title>Z</title>-->
  15746. <!-- </glossdiv>-->
  15747. </glossary>
  15748. </chapter>
  15749. <!--
  15750. vim: expandtab tw=80 ts=4
  15751. -->