ref-variables.xml 859 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819
  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. </para></listitem>
  621. <listitem><para>
  622. Mirrors not in the host list are skipped and
  623. logged in debug.
  624. </para></listitem>
  625. <listitem><para>
  626. Attempts to access networks not in the host list
  627. cause a failure.
  628. </para></listitem>
  629. </itemizedlist>
  630. Using <filename>BB_ALLOWED_NETWORKS</filename> in
  631. conjunction with
  632. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  633. is very useful.
  634. Adding the host you want to use to
  635. <filename>PREMIRRORS</filename> results in the source code
  636. being fetched from an allowed location and avoids raising
  637. an error when a host that is not allowed is in a
  638. <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
  639. statement.
  640. This is because the fetcher does not attempt to use the
  641. host listed in <filename>SRC_URI</filename> after a
  642. successful fetch from the
  643. <filename>PREMIRRORS</filename> occurs.
  644. </para>
  645. </glossdef>
  646. </glossentry>
  647. <glossentry id='var-BB_DANGLINGAPPENDS_WARNONLY'><glossterm>BB_DANGLINGAPPENDS_WARNONLY</glossterm>
  648. <info>
  649. BB_DANGLINGAPPENDS_WARNONLY[doc] = "Defines how BitBake handles situations where an append file (.bbappend) has no corresponding recipe file (.bb)."
  650. </info>
  651. <glossdef>
  652. <para role="glossdeffirst">
  653. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  654. Defines how BitBake handles situations where an append
  655. file (<filename>.bbappend</filename>) has no
  656. corresponding recipe file (<filename>.bb</filename>).
  657. This condition often occurs when layers get out of sync
  658. (e.g. <filename>oe-core</filename> bumps a
  659. recipe version and the old recipe no longer exists and the
  660. other layer has not been updated to the new version
  661. of the recipe yet).
  662. </para>
  663. <para>
  664. The default fatal behavior is safest because it is
  665. the sane reaction given something is out of sync.
  666. It is important to realize when your changes are no longer
  667. being applied.
  668. </para>
  669. <para>
  670. You can change the default behavior by setting this
  671. variable to "1", "yes", or "true"
  672. in your <filename>local.conf</filename> file, which is
  673. located in the
  674. <link linkend='build-directory'>Build Directory</link>:
  675. Here is an example:
  676. <literallayout class='monospaced'>
  677. BB_DANGLINGAPPENDS_WARNONLY = "1"
  678. </literallayout>
  679. </para>
  680. </glossdef>
  681. </glossentry>
  682. <glossentry id='var-BB_DISKMON_DIRS'><glossterm>BB_DISKMON_DIRS</glossterm>
  683. <info>
  684. BB_DISKMON_DIRS[doc] = "Monitors disk space and available inodes during the build and allows you to control the build based on these parameters."
  685. </info>
  686. <glossdef>
  687. <para role="glossdeffirst">
  688. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  689. Monitors disk space and available inodes during the build
  690. and allows you to control the build based on these
  691. parameters.
  692. </para>
  693. <para>
  694. Disk space monitoring is disabled by default.
  695. To enable monitoring, add the <filename>BB_DISKMON_DIRS</filename>
  696. variable to your <filename>conf/local.conf</filename> file found in the
  697. <link linkend='build-directory'>Build Directory</link>.
  698. Use the following form:
  699. <literallayout class='monospaced'>
  700. BB_DISKMON_DIRS = "<replaceable>action</replaceable>,<replaceable>dir</replaceable>,<replaceable>threshold</replaceable> [...]"
  701. where:
  702. <replaceable>action</replaceable> is:
  703. ABORT: Immediately abort the build when
  704. a threshold is broken.
  705. STOPTASKS: Stop the build after the currently
  706. executing tasks have finished when
  707. a threshold is broken.
  708. WARN: Issue a warning but continue the
  709. build when a threshold is broken.
  710. Subsequent warnings are issued as
  711. defined by the BB_DISKMON_WARNINTERVAL
  712. variable, which must be defined in
  713. the conf/local.conf file.
  714. <replaceable>dir</replaceable> is:
  715. Any directory you choose. You can specify one or
  716. more directories to monitor by separating the
  717. groupings with a space. If two directories are
  718. on the same device, only the first directory
  719. is monitored.
  720. <replaceable>threshold</replaceable> is:
  721. Either the minimum available disk space,
  722. the minimum number of free inodes, or
  723. both. You must specify at least one. To
  724. omit one or the other, simply omit the value.
  725. Specify the threshold using G, M, K for Gbytes,
  726. Mbytes, and Kbytes, respectively. If you do
  727. not specify G, M, or K, Kbytes is assumed by
  728. default. Do not use GB, MB, or KB.
  729. </literallayout>
  730. </para>
  731. <para>
  732. Here are some examples:
  733. <literallayout class='monospaced'>
  734. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  735. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  736. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  737. </literallayout>
  738. The first example works only if you also provide
  739. the <link linkend='var-BB_DISKMON_WARNINTERVAL'><filename>BB_DISKMON_WARNINTERVAL</filename></link> variable
  740. in the <filename>conf/local.conf</filename>.
  741. This example causes the build system to immediately
  742. abort when either the disk space in <filename>${TMPDIR}</filename> drops
  743. below 1 Gbyte or the available free inodes drops below
  744. 100 Kbytes.
  745. Because two directories are provided with the variable, the
  746. build system also issue a
  747. warning when the disk space in the
  748. <filename>${SSTATE_DIR}</filename> directory drops
  749. below 1 Gbyte or the number of free inodes drops
  750. below 100 Kbytes.
  751. Subsequent warnings are issued during intervals as
  752. defined by the <filename>BB_DISKMON_WARNINTERVAL</filename>
  753. variable.
  754. </para>
  755. <para>
  756. The second example stops the build after all currently
  757. executing tasks complete when the minimum disk space
  758. in the <filename>${<link linkend='var-TMPDIR'>TMPDIR</link>}</filename>
  759. directory drops below 1 Gbyte.
  760. No disk monitoring occurs for the free inodes in this case.
  761. </para>
  762. <para>
  763. The final example immediately aborts the build when the
  764. number of free inodes in the <filename>${TMPDIR}</filename> directory
  765. drops below 100 Kbytes.
  766. No disk space monitoring for the directory itself occurs
  767. in this case.
  768. </para>
  769. </glossdef>
  770. </glossentry>
  771. <glossentry id='var-BB_DISKMON_WARNINTERVAL'><glossterm>BB_DISKMON_WARNINTERVAL</glossterm>
  772. <info>
  773. 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."
  774. </info>
  775. <glossdef>
  776. <para role="glossdeffirst">
  777. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  778. Defines the disk space and free inode warning intervals.
  779. To set these intervals, define the variable in your
  780. <filename>conf/local.conf</filename> file in the
  781. <link linkend='build-directory'>Build Directory</link>.
  782. </para>
  783. <para>
  784. If you are going to use the
  785. <filename>BB_DISKMON_WARNINTERVAL</filename> variable, you must
  786. also use the
  787. <link linkend='var-BB_DISKMON_DIRS'><filename>BB_DISKMON_DIRS</filename></link> variable
  788. and define its action as "WARN".
  789. During the build, subsequent warnings are issued each time
  790. disk space or number of free inodes further reduces by
  791. the respective interval.
  792. </para>
  793. <para>
  794. If you do not provide a <filename>BB_DISKMON_WARNINTERVAL</filename>
  795. variable and you do use <filename>BB_DISKMON_DIRS</filename> with
  796. the "WARN" action, the disk monitoring interval defaults to
  797. the following:
  798. <literallayout class='monospaced'>
  799. BB_DISKMON_WARNINTERVAL = "50M,5K"
  800. </literallayout>
  801. </para>
  802. <para>
  803. When specifying the variable in your configuration file,
  804. use the following form:
  805. <literallayout class='monospaced'>
  806. BB_DISKMON_WARNINTERVAL = "<replaceable>disk_space_interval</replaceable>,<replaceable>disk_inode_interval</replaceable>"
  807. where:
  808. <replaceable>disk_space_interval</replaceable> is:
  809. An interval of memory expressed in either
  810. G, M, or K for Gbytes, Mbytes, or Kbytes,
  811. respectively. You cannot use GB, MB, or KB.
  812. <replaceable>disk_inode_interval</replaceable> is:
  813. An interval of free inodes expressed in either
  814. G, M, or K for Gbytes, Mbytes, or Kbytes,
  815. respectively. You cannot use GB, MB, or KB.
  816. </literallayout>
  817. </para>
  818. <para>
  819. Here is an example:
  820. <literallayout class='monospaced'>
  821. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  822. BB_DISKMON_WARNINTERVAL = "50M,5K"
  823. </literallayout>
  824. These variables cause the OpenEmbedded build system to
  825. issue subsequent warnings each time the available
  826. disk space further reduces by 50 Mbytes or the number
  827. of free inodes further reduces by 5 Kbytes in the
  828. <filename>${SSTATE_DIR}</filename> directory.
  829. Subsequent warnings based on the interval occur each time
  830. a respective interval is reached beyond the initial warning
  831. (i.e. 1 Gbytes and 100 Kbytes).
  832. </para>
  833. </glossdef>
  834. </glossentry>
  835. <glossentry id='var-BB_GENERATE_MIRROR_TARBALLS'><glossterm>BB_GENERATE_MIRROR_TARBALLS</glossterm>
  836. <info>
  837. BB_GENERATE_MIRROR_TARBALLS[doc] = "Causes tarballs of the Git repositories to be placed in the DL_DIR directory."
  838. </info>
  839. <glossdef>
  840. <para role="glossdeffirst">
  841. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  842. Causes tarballs of the Git repositories, including the
  843. Git metadata, to be placed in the
  844. <link linkend='var-DL_DIR'><filename>DL_DIR</filename></link>
  845. directory.
  846. </para>
  847. <para>
  848. For performance reasons, creating and placing tarballs of
  849. the Git repositories is not the default action by the
  850. OpenEmbedded build system.
  851. <literallayout class='monospaced'>
  852. BB_GENERATE_MIRROR_TARBALLS = "1"
  853. </literallayout>
  854. Set this variable in your <filename>local.conf</filename>
  855. file in the
  856. <link linkend='build-directory'>Build Directory</link>.
  857. </para>
  858. </glossdef>
  859. </glossentry>
  860. <glossentry id='var-BB_NUMBER_THREADS'><glossterm>BB_NUMBER_THREADS</glossterm>
  861. <info>
  862. 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."
  863. </info>
  864. <glossdef>
  865. <para role="glossdeffirst">
  866. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  867. The maximum number of tasks BitBake should run in parallel
  868. at any one time.
  869. The OpenEmbedded build system automatically configures
  870. this variable to be equal to the number of cores on the
  871. build system.
  872. For example, a system with a dual core processor that
  873. also uses hyper-threading causes the
  874. <filename>BB_NUMBER_THREADS</filename> variable to default
  875. to "4".
  876. </para>
  877. <para>
  878. For single socket systems (i.e. one CPU), you should not
  879. have to override this variable to gain optimal parallelism
  880. during builds.
  881. However, if you have very large systems that employ
  882. multiple physical CPUs, you might want to make sure the
  883. <filename>BB_NUMBER_THREADS</filename> variable is not
  884. set higher than "20".
  885. </para>
  886. <para>
  887. For more information on speeding up builds, see the
  888. "<ulink url='&YOCTO_DOCS_DEV_URL;#speeding-up-a-build'>Speeding Up a Build</ulink>"
  889. section in the Yocto Project Development Tasks Manual.
  890. </para>
  891. </glossdef>
  892. </glossentry>
  893. <glossentry id='var-BB_SERVER_TIMEOUT'><glossterm>BB_SERVER_TIMEOUT</glossterm>
  894. <info>
  895. BB_SERVER_TIMEOUT [doc] = "Specifies the time (in seconds) after which to unload the BitBake server due to inactivity."
  896. </info>
  897. <glossdef>
  898. <para role="glossdeffirst">
  899. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  900. Specifies the time (in seconds) after which to unload the
  901. BitBake server due to inactivity.
  902. Set <filename>BB_SERVER_TIMEOUT</filename> to determine how
  903. long the BitBake server stays resident between invocations.
  904. </para>
  905. <para>
  906. For example, the following statement in your
  907. <filename>local.conf</filename> file instructs the server
  908. to be unloaded after 20 seconds of inactivity:
  909. <literallayout class='monospaced'>
  910. BB_SERVER_TIMEOUT = "20"
  911. </literallayout>
  912. If you want the server to never be unloaded, set
  913. <filename>BB_SERVER_TIMEOUT</filename> to "-1".
  914. </para>
  915. </glossdef>
  916. </glossentry>
  917. <glossentry id='var-BBCLASSEXTEND'><glossterm>BBCLASSEXTEND</glossterm>
  918. <info>
  919. 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."
  920. </info>
  921. <glossdef>
  922. <para role="glossdeffirst">
  923. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  924. Allows you to extend a recipe so that it builds variants of the software.
  925. Common variants for recipes exist such as "natives" like <filename>quilt-native</filename>,
  926. which is a copy of Quilt built to run on the build system;
  927. "crosses" such as <filename>gcc-cross</filename>,
  928. which is a compiler built to run on the build machine but produces binaries
  929. that run on the target <link linkend='var-MACHINE'><filename>MACHINE</filename></link>;
  930. "nativesdk", which targets the SDK machine instead of <filename>MACHINE</filename>;
  931. and "mulitlibs" in the form "<filename>multilib:</filename><replaceable>multilib_name</replaceable>".
  932. </para>
  933. <para>
  934. To build a different variant of the recipe with a minimal amount of code, it usually
  935. is as simple as adding the following to your recipe:
  936. <literallayout class='monospaced'>
  937. BBCLASSEXTEND =+ "native nativesdk"
  938. BBCLASSEXTEND =+ "multilib:<replaceable>multilib_name</replaceable>"
  939. </literallayout>
  940. <note>
  941. <para>
  942. Internally, the <filename>BBCLASSEXTEND</filename>
  943. mechanism generates recipe variants by rewriting
  944. variable values and applying overrides such as
  945. <filename>_class-native</filename>.
  946. For example, to generate a native version of a recipe,
  947. a
  948. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  949. on "foo" is rewritten to a <filename>DEPENDS</filename>
  950. on "foo-native".
  951. </para>
  952. <para>
  953. Even when using <filename>BBCLASSEXTEND</filename>, the
  954. recipe is only parsed once.
  955. Parsing once adds some limitations.
  956. For example, it is not possible to
  957. include a different file depending on the variant,
  958. since <filename>include</filename> statements are
  959. processed when the recipe is parsed.
  960. </para>
  961. </note>
  962. </para>
  963. </glossdef>
  964. </glossentry>
  965. <glossentry id='var-BBFILE_COLLECTIONS'><glossterm>BBFILE_COLLECTIONS</glossterm>
  966. <info>
  967. BBFILE_COLLECTIONS[doc] = "Lists the names of configured layers. These names are used to find the other BBFILE_* variables."
  968. </info>
  969. <glossdef>
  970. <para role="glossdeffirst">
  971. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  972. Lists the names of configured layers.
  973. These names are used to find the other <filename>BBFILE_*</filename>
  974. variables.
  975. Typically, each layer will append its name to this variable in its
  976. <filename>conf/layer.conf</filename> file.
  977. </para>
  978. </glossdef>
  979. </glossentry>
  980. <glossentry id='var-BBFILE_PATTERN'><glossterm>BBFILE_PATTERN</glossterm>
  981. <info>
  982. 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."
  983. </info>
  984. <glossdef>
  985. <para role="glossdeffirst">
  986. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  987. Variable that expands to match files from
  988. <link linkend='var-BBFILES'><filename>BBFILES</filename></link>
  989. in a particular layer.
  990. This variable is used in the <filename>conf/layer.conf</filename> file and must
  991. be suffixed with the name of the specific layer (e.g.
  992. <filename>BBFILE_PATTERN_emenlow</filename>).
  993. </para>
  994. </glossdef>
  995. </glossentry>
  996. <glossentry id='var-BBFILE_PRIORITY'><glossterm>BBFILE_PRIORITY</glossterm>
  997. <info>
  998. 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."
  999. </info>
  1000. <glossdef>
  1001. <para role="glossdeffirst">
  1002. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1003. Assigns the priority for recipe files in each layer.
  1004. </para>
  1005. <para>
  1006. This variable is useful in situations where the same recipe appears in
  1007. more than one layer.
  1008. Setting this variable allows you to prioritize a
  1009. layer against other layers that contain the same recipe - effectively
  1010. letting you control the precedence for the multiple layers.
  1011. The precedence established through this variable stands regardless of a
  1012. recipe's version
  1013. (<link linkend='var-PV'><filename>PV</filename></link> variable).
  1014. For example, a layer that has a recipe with a higher <filename>PV</filename> value but for
  1015. which the <filename>BBFILE_PRIORITY</filename> is set to have a lower precedence still has a
  1016. lower precedence.
  1017. </para>
  1018. <para>
  1019. A larger value for the <filename>BBFILE_PRIORITY</filename> variable results in a higher
  1020. precedence.
  1021. For example, the value 6 has a higher precedence than the value 5.
  1022. If not specified, the <filename>BBFILE_PRIORITY</filename> variable is set based on layer
  1023. dependencies (see the
  1024. <filename><link linkend='var-LAYERDEPENDS'>LAYERDEPENDS</link></filename> variable for
  1025. more information.
  1026. The default priority, if unspecified
  1027. for a layer with no dependencies, is the lowest defined priority + 1
  1028. (or 1 if no priorities are defined).
  1029. </para>
  1030. <tip>
  1031. You can use the command <filename>bitbake-layers show-layers</filename> to list
  1032. all configured layers along with their priorities.
  1033. </tip>
  1034. </glossdef>
  1035. </glossentry>
  1036. <glossentry id='var-BBFILES'><glossterm>BBFILES</glossterm>
  1037. <info>
  1038. BBFILES[doc] = "List of recipe files used by BitBake to build software."
  1039. </info>
  1040. <glossdef>
  1041. <para role="glossdeffirst">
  1042. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1043. List of recipe files used by BitBake to build software.
  1044. </para>
  1045. </glossdef>
  1046. </glossentry>
  1047. <glossentry id='var-BBFILES_DYNAMIC'><glossterm>BBFILES_DYNAMIC</glossterm>
  1048. <info>
  1049. BBFILES_DYNAMIC[doc] = "Activates content when identified layers are present."
  1050. </info>
  1051. <glossdef>
  1052. <para role="glossdeffirst">
  1053. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1054. Activates content when identified layers are present.
  1055. You identify the layers by the collections that the layers
  1056. define.
  1057. </para>
  1058. <para>
  1059. Use the <filename>BBFILES_DYNAMIC</filename> variable to
  1060. avoid <filename>.bbappend</filename> files whose
  1061. corresponding <filename>.bb</filename> file is in a layer
  1062. that attempts to modify other layers through
  1063. <filename>.bbappend</filename> but does not want to
  1064. introduce a hard dependency on those other layers.
  1065. </para>
  1066. <para>
  1067. Use the following form for
  1068. <filename>BBFILES_DYNAMIC</filename>:
  1069. <literallayout class='monospaced'>
  1070. <replaceable>collection_name</replaceable>:<replaceable>filename_pattern</replaceable>
  1071. </literallayout>
  1072. The following example identifies two collection names and
  1073. two filename patterns:
  1074. <literallayout class='monospaced'>
  1075. BBFILES_DYNAMIC += " \
  1076. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  1077. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  1078. "
  1079. </literallayout>
  1080. This next example shows an error message that occurs
  1081. because invalid entries are found, which cause parsing to
  1082. abort:
  1083. <literallayout class='monospaced'>
  1084. ERROR: BBFILES_DYNAMIC entries must be of the form &lt;collection name&gt;:&lt;filename pattern&gt;, not:
  1085. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  1086. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  1087. </literallayout>
  1088. </para>
  1089. </glossdef>
  1090. </glossentry>
  1091. <glossentry id='var-BBINCLUDELOGS'><glossterm>BBINCLUDELOGS</glossterm>
  1092. <info>
  1093. BBINCLUDELOGS[doc] = "Variable that controls how BitBake displays logs on build failure."
  1094. </info>
  1095. <glossdef>
  1096. <para role="glossdeffirst">
  1097. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1098. Variable that controls how BitBake displays logs on build failure.
  1099. </para>
  1100. </glossdef>
  1101. </glossentry>
  1102. <glossentry id='var-BBINCLUDELOGS_LINES'><glossterm>BBINCLUDELOGS_LINES</glossterm>
  1103. <info>
  1104. BBINCLUDELOGS_LINES[doc] = "Amount of log lines printed on failure."
  1105. </info>
  1106. <glossdef>
  1107. <para role="glossdeffirst">
  1108. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1109. If
  1110. <link linkend='var-BBINCLUDELOGS'><filename>BBINCLUDELOGS</filename></link>
  1111. is set, specifies the maximum number of lines from the
  1112. task log file to print when reporting a failed task.
  1113. If you do not set <filename>BBINCLUDELOGS_LINES</filename>,
  1114. the entire log is printed.
  1115. </para>
  1116. </glossdef>
  1117. </glossentry>
  1118. <glossentry id='var-BBLAYERS'><glossterm>BBLAYERS</glossterm>
  1119. <info>
  1120. BBLAYERS[doc] = "Lists the layers to enable during the build. This variable is defined in the bblayers.conf configuration file."
  1121. </info>
  1122. <glossdef>
  1123. <para role="glossdeffirst">
  1124. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1125. Lists the layers to enable during the build.
  1126. This variable is defined in the <filename>bblayers.conf</filename> configuration
  1127. file in the
  1128. <link linkend='build-directory'>Build Directory</link>.
  1129. Here is an example:
  1130. <literallayout class='monospaced'>
  1131. BBLAYERS = " \
  1132. /home/scottrif/poky/meta \
  1133. /home/scottrif/poky/meta-poky \
  1134. /home/scottrif/poky/meta-yocto-bsp \
  1135. /home/scottrif/poky/meta-mykernel \
  1136. "
  1137. </literallayout>
  1138. </para>
  1139. <para>
  1140. This example enables four layers, one of which is a custom, user-defined layer
  1141. named <filename>meta-mykernel</filename>.
  1142. </para>
  1143. </glossdef>
  1144. </glossentry>
  1145. <glossentry id='var-BBMASK'><glossterm>BBMASK</glossterm>
  1146. <info>
  1147. BBMASK[doc] = "Prevents BitBake from processing specific recipes or recipe append files."
  1148. </info>
  1149. <glossdef>
  1150. <para role="glossdeffirst">
  1151. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1152. Prevents BitBake from processing recipes and recipe
  1153. append files.
  1154. </para>
  1155. <para>
  1156. You can use the <filename>BBMASK</filename> variable
  1157. to "hide" these <filename>.bb</filename> and
  1158. <filename>.bbappend</filename> files.
  1159. BitBake ignores any recipe or recipe append files that
  1160. match any of the expressions.
  1161. It is as if BitBake does not see them at all.
  1162. Consequently, matching files are not parsed or otherwise
  1163. used by BitBake.</para>
  1164. <para>
  1165. The values you provide are passed to Python's regular
  1166. expression compiler.
  1167. The expressions are compared against the full paths to
  1168. the files.
  1169. For complete syntax information, see Python's
  1170. documentation for the appropriate release at
  1171. <ulink url='http://docs.python.org/release/'></ulink>.
  1172. </para>
  1173. <para>
  1174. The following example uses a complete regular expression
  1175. to tell BitBake to ignore all recipe and recipe append
  1176. files in the <filename>meta-ti/recipes-misc/</filename>
  1177. directory:
  1178. <literallayout class='monospaced'>
  1179. BBMASK = "meta-ti/recipes-misc/"
  1180. </literallayout>
  1181. If you want to mask out multiple directories or recipes,
  1182. you can specify multiple regular expression fragments.
  1183. This next example masks out multiple directories and
  1184. individual recipes:
  1185. <literallayout class='monospaced'>
  1186. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  1187. BBMASK += "/meta-oe/recipes-support/"
  1188. BBMASK += "/meta-foo/.*/openldap"
  1189. BBMASK += "opencv.*\.bbappend"
  1190. BBMASK += "lzma"
  1191. </literallayout>
  1192. <note>
  1193. When specifying a directory name, use the trailing
  1194. slash character to ensure you match just that directory
  1195. name.
  1196. </note>
  1197. </para>
  1198. </glossdef>
  1199. </glossentry>
  1200. <glossentry id='var-BBMULTICONFIG'><glossterm>BBMULTICONFIG</glossterm>
  1201. <info>
  1202. BBMULTICONFIG[doc] = "Specifies each separate configuration when you are building targets with multiple configurations."
  1203. </info>
  1204. <glossdef>
  1205. <para role="glossdeffirst">
  1206. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1207. Specifies each separate configuration when you are
  1208. building targets with multiple configurations.
  1209. Use this variable in your
  1210. <filename>conf/local.conf</filename> configuration file.
  1211. Specify a <replaceable>multiconfigname</replaceable> for
  1212. each configuration file you are using.
  1213. For example, the following line specifies three
  1214. configuration files:
  1215. <literallayout class='monospaced'>
  1216. BBMULTIFONFIG = "configA configB configC"
  1217. </literallayout>
  1218. Each configuration file you use must reside in the
  1219. <link linkend='build-directory'>Build Directory</link>
  1220. <filename>conf/multiconfig</filename> directory
  1221. (e.g.
  1222. <replaceable>build_directory</replaceable><filename>/conf/multiconfig/configA.conf</filename>).
  1223. </para>
  1224. <para>
  1225. For information on how to use
  1226. <filename>BBMULTICONFIG</filename> in an environment that
  1227. supports building targets with multiple configurations,
  1228. see the
  1229. "<ulink url='&YOCTO_DOCS_DEV_URL;#dev-building-images-for-multiple-targets-using-multiple-configurations'>Building Images for Multiple Targets Using Multiple Configurations</ulink>"
  1230. section in the Yocto Project Development Tasks Manual.
  1231. </para>
  1232. </glossdef>
  1233. </glossentry>
  1234. <glossentry id='var-BBPATH'><glossterm>BBPATH</glossterm>
  1235. <info>
  1236. BBPATH[doc] = "Used by BitBake to locate .bbclass and configuration files. This variable is analogous to the PATH variable."
  1237. </info>
  1238. <glossdef>
  1239. <para role="glossdeffirst">
  1240. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1241. Used by BitBake to locate
  1242. <filename>.bbclass</filename> and configuration files.
  1243. This variable is analogous to the
  1244. <filename>PATH</filename> variable.
  1245. <note>
  1246. If you run BitBake from a directory outside of the
  1247. <link linkend='build-directory'>Build Directory</link>,
  1248. you must be sure to set
  1249. <filename>BBPATH</filename> to point to the
  1250. Build Directory.
  1251. Set the variable as you would any environment variable
  1252. and then run BitBake:
  1253. <literallayout class='monospaced'>
  1254. $ BBPATH = "<replaceable>build_directory</replaceable>"
  1255. $ export BBPATH
  1256. $ bitbake <replaceable>target</replaceable>
  1257. </literallayout>
  1258. </note>
  1259. </para>
  1260. </glossdef>
  1261. </glossentry>
  1262. <glossentry id='var-BBSERVER'><glossterm>BBSERVER</glossterm>
  1263. <info>
  1264. BBSERVER[doc] = "Points to the BitBake remote server."
  1265. </info>
  1266. <glossdef>
  1267. <para role="glossdeffirst">
  1268. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1269. If defined in the BitBake environment,
  1270. <filename>BBSERVER</filename> points to the BitBake
  1271. remote server.
  1272. </para>
  1273. <para>
  1274. Use the following format to export the variable to the
  1275. BitBake environment:
  1276. <literallayout class='monospaced'>
  1277. export BBSERVER=localhost:$port"
  1278. </literallayout>
  1279. </para>
  1280. <para>
  1281. By default, <filename>BBSERVER</filename> also appears in
  1282. <ulink url='&YOCTO_DOCS_BB_URL;#var-BB_HASHBASE_WHITELIST'><filename>BB_HASHBASE_WHITELIST</filename></ulink>.
  1283. Consequently, <filename>BBSERVER</filename> is excluded
  1284. from checksum and dependency data.
  1285. </para>
  1286. </glossdef>
  1287. </glossentry>
  1288. <glossentry id='var-BINCONFIG'><glossterm>BINCONFIG</glossterm>
  1289. <info>
  1290. 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."
  1291. </info>
  1292. <glossdef>
  1293. <para role="glossdeffirst">
  1294. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1295. When inheriting the
  1296. <link linkend='ref-classes-binconfig-disabled'><filename>binconfig-disabled</filename></link>
  1297. class, this variable specifies binary configuration
  1298. scripts to disable in favor of using
  1299. <filename>pkg-config</filename> to query the information.
  1300. The <filename>binconfig-disabled</filename> class will
  1301. modify the specified scripts to return an error so that
  1302. calls to them can be easily found and replaced.
  1303. </para>
  1304. <para>
  1305. To add multiple scripts, separate them by spaces.
  1306. Here is an example from the <filename>libpng</filename>
  1307. recipe:
  1308. <literallayout class='monospaced'>
  1309. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  1310. </literallayout>
  1311. </para>
  1312. </glossdef>
  1313. </glossentry>
  1314. <glossentry id='var-BINCONFIG_GLOB'><glossterm>BINCONFIG_GLOB</glossterm>
  1315. <info>
  1316. BINCONFIG_GLOB[doc] = "When inheriting binconfig.bbclass from a recipe, this variable specifies a wildcard for configuration scripts that need editing."
  1317. </info>
  1318. <glossdef>
  1319. <para role="glossdeffirst">
  1320. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1321. When inheriting the
  1322. <link linkend='ref-classes-binconfig'><filename>binconfig</filename></link>
  1323. class, this variable specifies a wildcard for
  1324. configuration scripts that need editing.
  1325. The scripts are edited to correct any paths that have been
  1326. set up during compilation so that they are correct for
  1327. use when installed into the sysroot and called by the
  1328. build processes of other recipes.
  1329. </para>
  1330. <para>
  1331. For more information on how this variable works, see
  1332. <filename>meta/classes/binconfig.bbclass</filename> in the
  1333. <link linkend='source-directory'>Source Directory</link>.
  1334. You can also find general information on the class in the
  1335. "<link linkend='ref-classes-binconfig'><filename>binconfig.bbclass</filename></link>"
  1336. section.
  1337. </para>
  1338. </glossdef>
  1339. </glossentry>
  1340. <glossentry id='var-BP'><glossterm>BP</glossterm>
  1341. <info>
  1342. 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}"
  1343. </info>
  1344. <glossdef>
  1345. <para role="glossdeffirst">
  1346. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1347. The base recipe name and version but without any special
  1348. recipe name suffix (i.e. <filename>-native</filename>, <filename>lib64-</filename>,
  1349. and so forth).
  1350. <filename>BP</filename> is comprised of the following:
  1351. <literallayout class="monospaced">
  1352. ${BPN}-${PV}
  1353. </literallayout>
  1354. </para>
  1355. </glossdef>
  1356. </glossentry>
  1357. <glossentry id='var-BPN'><glossterm>BPN</glossterm>
  1358. <info>
  1359. BPN[doc] = "This variable is a version of the PN variable but removes common suffixes and prefixes."
  1360. </info>
  1361. <glossdef>
  1362. <para role="glossdeffirst">
  1363. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1364. This variable is a version of the
  1365. <link linkend='var-PN'><filename>PN</filename></link>
  1366. variable with common prefixes and suffixes
  1367. removed, such as <filename>nativesdk-</filename>,
  1368. <filename>-cross</filename>,
  1369. <filename>-native</filename>, and multilib's
  1370. <filename>lib64-</filename> and
  1371. <filename>lib32-</filename>.
  1372. The exact lists of prefixes and suffixes removed are
  1373. specified by the
  1374. <link linkend='var-MLPREFIX'><filename>MLPREFIX</filename></link>
  1375. and
  1376. <link linkend='var-SPECIAL_PKGSUFFIX'><filename>SPECIAL_PKGSUFFIX</filename></link>
  1377. variables, respectively.
  1378. </para>
  1379. </glossdef>
  1380. </glossentry>
  1381. <glossentry id='var-BUGTRACKER'><glossterm>BUGTRACKER</glossterm>
  1382. <info>
  1383. BUGTRACKER[doc] = "Specifies a URL for an upstream bug tracking website for a recipe."
  1384. </info>
  1385. <glossdef>
  1386. <para role="glossdeffirst">
  1387. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1388. Specifies a URL for an upstream bug tracking website for
  1389. a recipe.
  1390. The OpenEmbedded build system does not use this variable.
  1391. Rather, the variable is a useful pointer in case a bug
  1392. in the software being built needs to be manually reported.
  1393. </para>
  1394. </glossdef>
  1395. </glossentry>
  1396. <glossentry id='var-BUILD_ARCH'><glossterm>BUILD_ARCH</glossterm>
  1397. <info>
  1398. BUILD_ARCH[doc] = "The name of the building architecture (e.g. i686)."
  1399. </info>
  1400. <glossdef>
  1401. <para role="glossdeffirst">
  1402. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1403. Specifies the architecture of the build host
  1404. (e.g. <filename>i686</filename>).
  1405. The OpenEmbedded build system sets the value of
  1406. <filename>BUILD_ARCH</filename> from the machine name
  1407. reported by the <filename>uname</filename> command.
  1408. </para>
  1409. </glossdef>
  1410. </glossentry>
  1411. <glossentry id='var-BUILD_AS_ARCH'><glossterm>BUILD_AS_ARCH</glossterm>
  1412. <info>
  1413. BUILD_AS_ARCH[doc] = "Specifies the architecture-specific assembler flags for the build host."
  1414. </info>
  1415. <glossdef>
  1416. <para role="glossdeffirst">
  1417. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1418. Specifies the architecture-specific assembler flags for
  1419. the build host. By default, the value of
  1420. <filename>BUILD_AS_ARCH</filename> is empty.
  1421. </para>
  1422. </glossdef>
  1423. </glossentry>
  1424. <glossentry id='var-BUILD_CC_ARCH'><glossterm>BUILD_CC_ARCH</glossterm>
  1425. <info>
  1426. BUILD_CC_ARCH[doc] = "Specifies the architecture-specific C compiler flags for the build host."
  1427. </info>
  1428. <glossdef>
  1429. <para role="glossdeffirst">
  1430. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1431. Specifies the architecture-specific C compiler flags for
  1432. the build host. By default, the value of
  1433. <filename>BUILD_CC_ARCH</filename> is empty.
  1434. </para>
  1435. </glossdef>
  1436. </glossentry>
  1437. <glossentry id='var-BUILD_CCLD'><glossterm>BUILD_CCLD</glossterm>
  1438. <info>
  1439. BUILD_CCLD[doc] = "Specifies the linker command to be used for the build host when the C compiler is being used as the linker."
  1440. </info>
  1441. <glossdef>
  1442. <para role="glossdeffirst">
  1443. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1444. Specifies the linker command to be used for the build host
  1445. when the C compiler is being used as the linker. By default,
  1446. <filename>BUILD_CCLD</filename> points to GCC and passes as
  1447. arguments the value of
  1448. <link linkend='var-BUILD_CC_ARCH'><filename>BUILD_CC_ARCH</filename></link>,
  1449. assuming <filename>BUILD_CC_ARCH</filename> is set.
  1450. </para>
  1451. </glossdef>
  1452. </glossentry>
  1453. <glossentry id='var-BUILD_CFLAGS'><glossterm>BUILD_CFLAGS</glossterm>
  1454. <info>
  1455. BUILD_CFLAGS[doc] = "Specifies the flags to pass to the C compiler when building for the build host."
  1456. </info>
  1457. <glossdef>
  1458. <para role="glossdeffirst">
  1459. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1460. Specifies the flags to pass to the C compiler when building
  1461. for the build host.
  1462. When building in the <filename>-native</filename> context,
  1463. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  1464. is set to the value of this variable by default.
  1465. </para>
  1466. </glossdef>
  1467. </glossentry>
  1468. <glossentry id='var-BUILD_CPPFLAGS'><glossterm>BUILD_CPPFLAGS</glossterm>
  1469. <info>
  1470. 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."
  1471. </info>
  1472. <glossdef>
  1473. <para role="glossdeffirst">
  1474. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1475. Specifies the flags to pass to the C preprocessor
  1476. (i.e. to both the C and the C++ compilers) when building
  1477. for the build host.
  1478. When building in the <filename>-native</filename> context,
  1479. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  1480. is set to the value of this variable by default.
  1481. </para>
  1482. </glossdef>
  1483. </glossentry>
  1484. <glossentry id='var-BUILD_CXXFLAGS'><glossterm>BUILD_CXXFLAGS</glossterm>
  1485. <info>
  1486. BUILD_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the build host."
  1487. </info>
  1488. <glossdef>
  1489. <para role="glossdeffirst">
  1490. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1491. Specifies the flags to pass to the C++ compiler when
  1492. building for the build host.
  1493. When building in the <filename>-native</filename> context,
  1494. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  1495. is set to the value of this variable by default.
  1496. </para>
  1497. </glossdef>
  1498. </glossentry>
  1499. <glossentry id='var-BUILD_FC'><glossterm>BUILD_FC</glossterm>
  1500. <info>
  1501. BUILD_FC[doc] = "Specifies the Fortran compiler command for the build host."
  1502. </info>
  1503. <glossdef>
  1504. <para role="glossdeffirst">
  1505. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1506. Specifies the Fortran compiler command for the build host.
  1507. By default, <filename>BUILD_FC</filename> points to
  1508. Gfortran and passes as arguments the value of
  1509. <link linkend='var-BUILD_CC_ARCH'><filename>BUILD_CC_ARCH</filename></link>,
  1510. assuming <filename>BUILD_CC_ARCH</filename> is set.
  1511. </para>
  1512. </glossdef>
  1513. </glossentry>
  1514. <glossentry id='var-BUILD_LD'><glossterm>BUILD_LD</glossterm>
  1515. <info>
  1516. BUILD_LD[doc] = "Specifies the linker command 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 linker command for the build host. By default,
  1522. <filename>BUILD_LD</filename> points to the GNU linker (ld)
  1523. and passes as arguments the value of
  1524. <link linkend='var-BUILD_LD_ARCH'><filename>BUILD_LD_ARCH</filename></link>,
  1525. assuming <filename>BUILD_LD_ARCH</filename> is set.
  1526. </para>
  1527. </glossdef>
  1528. </glossentry>
  1529. <glossentry id='var-BUILD_LD_ARCH'><glossterm>BUILD_LD_ARCH</glossterm>
  1530. <info>
  1531. BUILD_LD_ARCH[doc] = "Specifies architecture-specific linker flags for the build."
  1532. </info>
  1533. <glossdef>
  1534. <para role="glossdeffirst">
  1535. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1536. Specifies architecture-specific linker flags for the build
  1537. host. By default, the value of
  1538. <filename>BUILD_LD_ARCH</filename> is empty.
  1539. </para>
  1540. </glossdef>
  1541. </glossentry>
  1542. <glossentry id='var-BUILD_LDFLAGS'><glossterm>BUILD_LDFLAGS</glossterm>
  1543. <info>
  1544. BUILD_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the build host."
  1545. </info>
  1546. <glossdef>
  1547. <para role="glossdeffirst">
  1548. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1549. Specifies the flags to pass to the linker when building
  1550. for the build host.
  1551. When building in the <filename>-native</filename> context,
  1552. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  1553. is set to the value of this variable by default.
  1554. </para>
  1555. </glossdef>
  1556. </glossentry>
  1557. <glossentry id='var-BUILD_OPTIMIZATION'><glossterm>BUILD_OPTIMIZATION</glossterm>
  1558. <info>
  1559. BUILD_OPTIMIZATION[doc] = "Specifies the optimization flags passed to the C compiler when building for the build host or the SDK."
  1560. </info>
  1561. <glossdef>
  1562. <para role="glossdeffirst">
  1563. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1564. Specifies the optimization flags passed to the C compiler
  1565. when building for the build host or the SDK.
  1566. The flags are passed through the
  1567. <link linkend='var-BUILD_CFLAGS'><filename>BUILD_CFLAGS</filename></link>
  1568. and
  1569. <link linkend='var-BUILDSDK_CFLAGS'><filename>BUILDSDK_CFLAGS</filename></link>
  1570. default values.
  1571. </para>
  1572. <para>
  1573. The default value of the
  1574. <filename>BUILD_OPTIMIZATION</filename> variable is
  1575. "-O2 -pipe".
  1576. </para>
  1577. </glossdef>
  1578. </glossentry>
  1579. <glossentry id='var-BUILD_OS'><glossterm>BUILD_OS</glossterm>
  1580. <info>
  1581. BUILD_OS[doc] = "The operating system (in lower case) of the building architecture (e.g. Linux)."
  1582. </info>
  1583. <glossdef>
  1584. <para role="glossdeffirst">
  1585. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1586. Specifies the operating system in use on the build
  1587. host (e.g. "linux").
  1588. The OpenEmbedded build system sets the value of
  1589. <filename>BUILD_OS</filename> from the OS reported by
  1590. the <filename>uname</filename> command - the first word,
  1591. converted to lower-case characters.
  1592. </para>
  1593. </glossdef>
  1594. </glossentry>
  1595. <glossentry id='var-BUILD_PREFIX'><glossterm>BUILD_PREFIX</glossterm>
  1596. <info>
  1597. BUILD_PREFIX[doc] = "The toolchain binary prefix used for native recipes."
  1598. </info>
  1599. <glossdef>
  1600. <para role="glossdeffirst">
  1601. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1602. The toolchain binary prefix used for native recipes.
  1603. The OpenEmbedded build system uses the
  1604. <filename>BUILD_PREFIX</filename> value to set the
  1605. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  1606. when building for <filename>native</filename> recipes.
  1607. </para>
  1608. </glossdef>
  1609. </glossentry>
  1610. <glossentry id='var-BUILD_STRIP'><glossterm>BUILD_STRIP</glossterm>
  1611. <info>
  1612. BUILD_STRIP[doc] = "Specifies the command to be used to strip debugging symbols from binaries produced for the build host."
  1613. </info>
  1614. <glossdef>
  1615. <para role="glossdeffirst">
  1616. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1617. Specifies the command to be used to strip debugging symbols
  1618. from binaries produced for the build host. By default,
  1619. <filename>BUILD_STRIP</filename> points to
  1620. <filename>${</filename><link linkend='var-BUILD_PREFIX'><filename>BUILD_PREFIX</filename></link><filename>}strip</filename>.
  1621. </para>
  1622. </glossdef>
  1623. </glossentry>
  1624. <glossentry id='var-BUILD_SYS'><glossterm>BUILD_SYS</glossterm>
  1625. <info>
  1626. BUILD_SYS[doc] = "The toolchain binary prefix used for native recipes."
  1627. </info>
  1628. <glossdef>
  1629. <para role="glossdeffirst">
  1630. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1631. Specifies the system, including the architecture and
  1632. the operating system, to use when building for the build
  1633. host (i.e. when building <filename>native</filename>
  1634. recipes).
  1635. </para>
  1636. <para>
  1637. The OpenEmbedded build system automatically sets this
  1638. variable based on
  1639. <link linkend='var-BUILD_ARCH'><filename>BUILD_ARCH</filename></link>,
  1640. <link linkend='var-BUILD_VENDOR'><filename>BUILD_VENDOR</filename></link>,
  1641. and
  1642. <link linkend='var-BUILD_OS'><filename>BUILD_OS</filename></link>.
  1643. You do not need to set the <filename>BUILD_SYS</filename>
  1644. variable yourself.
  1645. </para>
  1646. </glossdef>
  1647. </glossentry>
  1648. <glossentry id='var-BUILD_VENDOR'><glossterm>BUILD_VENDOR</glossterm>
  1649. <info>
  1650. BUILD_VENDOR[doc] = "The vendor name to use when building for the build host."
  1651. </info>
  1652. <glossdef>
  1653. <para role="glossdeffirst">
  1654. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1655. Specifies the vendor name to use when building for the
  1656. build host.
  1657. The default value is an empty string ("").
  1658. </para>
  1659. </glossdef>
  1660. </glossentry>
  1661. <glossentry id='var-BUILDDIR'><glossterm>BUILDDIR</glossterm>
  1662. <info>
  1663. BUILDDIR[doc] = "Points to the location of the Build Directory."
  1664. </info>
  1665. <glossdef>
  1666. <para role="glossdeffirst">
  1667. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1668. Points to the location of the
  1669. <link linkend='build-directory'>Build Directory</link>.
  1670. You can define this directory indirectly through the
  1671. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>
  1672. script by passing in a Build Directory path when you run
  1673. the script.
  1674. If you run the script and do not provide a Build Directory
  1675. path, the <filename>BUILDDIR</filename> defaults to
  1676. <filename>build</filename> in the current directory.
  1677. </para>
  1678. </glossdef>
  1679. </glossentry>
  1680. <glossentry id='var-BUILDHISTORY_COMMIT'><glossterm>BUILDHISTORY_COMMIT</glossterm>
  1681. <info>
  1682. 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."
  1683. </info>
  1684. <glossdef>
  1685. <para role="glossdeffirst">
  1686. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1687. When inheriting the
  1688. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1689. class, this variable specifies whether or not to commit the
  1690. build history output in a local Git repository.
  1691. If set to "1", this local repository will be maintained
  1692. automatically by the
  1693. <filename>buildhistory</filename>
  1694. class and a commit will be created on every
  1695. build for changes to each top-level subdirectory of the
  1696. build history output (images, packages, and sdk).
  1697. If you want to track changes to build history over
  1698. time, you should set this value to "1".
  1699. </para>
  1700. <para>
  1701. By default, the <filename>buildhistory</filename> class
  1702. does not commit the build history output in a local
  1703. Git repository:
  1704. <literallayout class='monospaced'>
  1705. BUILDHISTORY_COMMIT ?= "0"
  1706. </literallayout>
  1707. </para>
  1708. </glossdef>
  1709. </glossentry>
  1710. <glossentry id='var-BUILDHISTORY_COMMIT_AUTHOR'><glossterm>BUILDHISTORY_COMMIT_AUTHOR</glossterm>
  1711. <info>
  1712. BUILDHISTORY_COMMIT_AUTHOR[doc] = "When inheriting the buildhistory class, this variable specifies the author to use for each Git commit."
  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 the author to use for each
  1720. Git commit.
  1721. In order for the <filename>BUILDHISTORY_COMMIT_AUTHOR</filename>
  1722. variable to work, the
  1723. <link linkend='var-BUILDHISTORY_COMMIT'><filename>BUILDHISTORY_COMMIT</filename></link>
  1724. variable must be set to "1".
  1725. </para>
  1726. <para>
  1727. Git requires that the value you provide for the
  1728. <filename>BUILDHISTORY_COMMIT_AUTHOR</filename> variable
  1729. takes the form of "name <replaceable>email@host</replaceable>".
  1730. Providing an email address or host that is not valid does
  1731. not produce an error.
  1732. </para>
  1733. <para>
  1734. By default, the <filename>buildhistory</filename> class
  1735. sets the variable as follows:
  1736. <literallayout class='monospaced'>
  1737. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory &lt;buildhistory@${DISTRO}&gt;"
  1738. </literallayout>
  1739. </para>
  1740. </glossdef>
  1741. </glossentry>
  1742. <glossentry id='var-BUILDHISTORY_DIR'><glossterm>BUILDHISTORY_DIR</glossterm>
  1743. <info>
  1744. BUILDHISTORY_DIR[doc] = "When inheriting the buildhistory class, this variable specifies the directory in which build history information is kept."
  1745. </info>
  1746. <glossdef>
  1747. <para role="glossdeffirst">
  1748. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1749. When inheriting the
  1750. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1751. class, this variable specifies the directory in which
  1752. build history information is kept.
  1753. For more information on how the variable works, see the
  1754. <filename>buildhistory.class</filename>.
  1755. </para>
  1756. <para>
  1757. By default, the <filename>buildhistory</filename> class
  1758. sets the directory as follows:
  1759. <literallayout class='monospaced'>
  1760. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  1761. </literallayout>
  1762. </para>
  1763. </glossdef>
  1764. </glossentry>
  1765. <glossentry id='var-BUILDHISTORY_FEATURES'><glossterm>BUILDHISTORY_FEATURES</glossterm>
  1766. <info>
  1767. BUILDHISTORY_FEATURES[doc] = "When inheriting the buildhistory class, this variable specifies the build history features to be enabled."
  1768. </info>
  1769. <glossdef>
  1770. <para role="glossdeffirst">
  1771. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1772. When inheriting the
  1773. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1774. class, this variable specifies the build history features
  1775. to be enabled.
  1776. For more information on how build history works, see the
  1777. "<ulink url='&YOCTO_DOCS_DEV_URL;#maintaining-build-output-quality'>Maintaining Build Output Quality</ulink>"
  1778. section in the Yocto Project Development Tasks Manual.
  1779. </para>
  1780. <para>
  1781. You can specify these features in the form of a
  1782. space-separated list:
  1783. <itemizedlist>
  1784. <listitem><para><emphasis>image:</emphasis>
  1785. Analysis of the contents of images, which
  1786. includes the list of installed packages among other
  1787. things.
  1788. </para></listitem>
  1789. <listitem><para><emphasis>package:</emphasis>
  1790. Analysis of the contents of individual packages.
  1791. </para></listitem>
  1792. <listitem><para><emphasis>sdk:</emphasis>
  1793. Analysis of the contents of the software
  1794. development kit (SDK).
  1795. </para></listitem>
  1796. <listitem><para><emphasis>task:</emphasis>
  1797. Save output file signatures for
  1798. <ulink url='&YOCTO_DOCS_OM_URL;#shared-state-cache'>shared state</ulink>
  1799. (sstate) tasks.
  1800. This saves one file per task and lists the SHA-256
  1801. checksums for each file staged (i.e. the output of
  1802. the task).
  1803. </para></listitem>
  1804. </itemizedlist>
  1805. </para>
  1806. <para>
  1807. By default, the <filename>buildhistory</filename> class
  1808. enables the following features:
  1809. <literallayout class='monospaced'>
  1810. BUILDHISTORY_FEATURES ?= "image package sdk"
  1811. </literallayout>
  1812. </para>
  1813. </glossdef>
  1814. </glossentry>
  1815. <glossentry id='var-BUILDHISTORY_IMAGE_FILES'><glossterm>BUILDHISTORY_IMAGE_FILES</glossterm>
  1816. <info>
  1817. 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."
  1818. </info>
  1819. <glossdef>
  1820. <para role="glossdeffirst">
  1821. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1822. When inheriting the
  1823. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1824. class, this variable specifies a list of paths to files
  1825. copied from the
  1826. image contents into the build history directory under
  1827. an "image-files" directory in the directory for
  1828. the image, so that you can track the contents of each file.
  1829. The default is to copy <filename>/etc/passwd</filename>
  1830. and <filename>/etc/group</filename>, which allows you to
  1831. monitor for changes in user and group entries.
  1832. You can modify the list to include any file.
  1833. Specifying an invalid path does not produce an error.
  1834. Consequently, you can include files that might
  1835. not always be present.
  1836. </para>
  1837. <para>
  1838. By default, the <filename>buildhistory</filename> class
  1839. provides paths to the following files:
  1840. <literallayout class='monospaced'>
  1841. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  1842. </literallayout>
  1843. </para>
  1844. </glossdef>
  1845. </glossentry>
  1846. <glossentry id='var-BUILDHISTORY_PUSH_REPO'><glossterm>BUILDHISTORY_PUSH_REPO</glossterm>
  1847. <info>
  1848. BUILDHISTORY_PUSH_REPO[doc] = "When inheriting the buildhistory class, this variable optionally specifies a remote repository to which build history pushes Git changes."
  1849. </info>
  1850. <glossdef>
  1851. <para role="glossdeffirst">
  1852. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1853. When inheriting the
  1854. <link linkend='ref-classes-buildhistory'><filename>buildhistory</filename></link>
  1855. class, this variable optionally specifies a remote
  1856. repository to which build history pushes Git changes.
  1857. In order for <filename>BUILDHISTORY_PUSH_REPO</filename>
  1858. to work,
  1859. <link linkend='var-BUILDHISTORY_COMMIT'><filename>BUILDHISTORY_COMMIT</filename></link>
  1860. must be set to "1".
  1861. </para>
  1862. <para>
  1863. The repository should correspond to a remote
  1864. address that specifies a repository as understood by
  1865. Git, or alternatively to a remote name that you have
  1866. set up manually using <filename>git remote</filename>
  1867. within the local repository.
  1868. </para>
  1869. <para>
  1870. By default, the <filename>buildhistory</filename> class
  1871. sets the variable as follows:
  1872. <literallayout class='monospaced'>
  1873. BUILDHISTORY_PUSH_REPO ?= ""
  1874. </literallayout>
  1875. </para>
  1876. </glossdef>
  1877. </glossentry>
  1878. <glossentry id='var-BUILDSDK_CFLAGS'><glossterm>BUILDSDK_CFLAGS</glossterm>
  1879. <info>
  1880. BUILDSDK_CFLAGS[doc] = "Specifies the flags to pass to the C compiler when building for the SDK."
  1881. </info>
  1882. <glossdef>
  1883. <para role="glossdeffirst">
  1884. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1885. Specifies the flags to pass to the C compiler when building
  1886. for the SDK.
  1887. When building in the <filename>nativesdk-</filename>
  1888. context,
  1889. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  1890. is set to the value of this variable by default.
  1891. </para>
  1892. </glossdef>
  1893. </glossentry>
  1894. <glossentry id='var-BUILDSDK_CPPFLAGS'><glossterm>BUILDSDK_CPPFLAGS</glossterm>
  1895. <info>
  1896. 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."
  1897. </info>
  1898. <glossdef>
  1899. <para role="glossdeffirst">
  1900. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1901. Specifies the flags to pass to the C pre-processor
  1902. (i.e. to both the C and the C++ compilers) when building
  1903. for the SDK.
  1904. When building in the <filename>nativesdk-</filename>
  1905. context,
  1906. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  1907. is set to the value of this variable by default.
  1908. </para>
  1909. </glossdef>
  1910. </glossentry>
  1911. <glossentry id='var-BUILDSDK_CXXFLAGS'><glossterm>BUILDSDK_CXXFLAGS</glossterm>
  1912. <info>
  1913. BUILDSDK_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the SDK."
  1914. </info>
  1915. <glossdef>
  1916. <para role="glossdeffirst">
  1917. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1918. Specifies the flags to pass to the C++ compiler when
  1919. building for the SDK.
  1920. When building in the <filename>nativesdk-</filename>
  1921. context,
  1922. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  1923. is set to the value of this variable by default.
  1924. </para>
  1925. </glossdef>
  1926. </glossentry>
  1927. <glossentry id='var-BUILDSDK_LDFLAGS'><glossterm>BUILDSDK_LDFLAGS</glossterm>
  1928. <info>
  1929. BUILDSDK_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the SDK."
  1930. </info>
  1931. <glossdef>
  1932. <para role="glossdeffirst">
  1933. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1934. Specifies the flags to pass to the linker when building
  1935. for the SDK.
  1936. When building in the <filename>nativesdk-</filename>
  1937. context,
  1938. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  1939. is set to the value of this variable by default.
  1940. </para>
  1941. </glossdef>
  1942. </glossentry>
  1943. <glossentry id='var-BUILDSTATS_BASE'><glossterm>BUILDSTATS_BASE</glossterm>
  1944. <info>
  1945. BUILDSTATS_BASE[doc] = "Points to the location of the directory that holds build statistics when you use and enable the buildstats class."
  1946. </info>
  1947. <glossdef>
  1948. <para role="glossdeffirst">
  1949. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1950. Points to the location of the directory that holds build
  1951. statistics when you use and enable the
  1952. <link linkend='ref-classes-buildstats'><filename>buildstats</filename></link>
  1953. class.
  1954. The <filename>BUILDSTATS_BASE</filename> directory defaults
  1955. to
  1956. <filename>${</filename><link linkend='var-TMPDIR'><filename>TMPDIR</filename></link><filename>}/buildstats/</filename>.
  1957. </para>
  1958. </glossdef>
  1959. </glossentry>
  1960. <glossentry id='var-BUSYBOX_SPLIT_SUID'><glossterm>BUSYBOX_SPLIT_SUID</glossterm>
  1961. <info>
  1962. 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."
  1963. </info>
  1964. <glossdef>
  1965. <para role="glossdeffirst">
  1966. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1967. For the BusyBox recipe, specifies whether to split the
  1968. output executable file into two parts: one for features
  1969. that require <filename>setuid root</filename>, and one for
  1970. the remaining features (i.e. those that do not require
  1971. <filename>setuid root</filename>).
  1972. </para>
  1973. <para>
  1974. The <filename>BUSYBOX_SPLIT_SUID</filename> variable
  1975. defaults to "1", which results in a single output
  1976. executable file.
  1977. Set the variable to "0" to split the output file.
  1978. </para>
  1979. </glossdef>
  1980. </glossentry>
  1981. </glossdiv>
  1982. <glossdiv id='var-glossary-c'><title>C</title>
  1983. <glossentry id='var-CACHE'><glossterm>CACHE</glossterm>
  1984. <info>
  1985. CACHE[doc] = "The directory BitBake uses to store a cache of the metadata."
  1986. </info>
  1987. <glossdef>
  1988. <para role="glossdeffirst">
  1989. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  1990. Specifies the directory BitBake uses to store a cache
  1991. of the
  1992. <link linkend='metadata'>Metadata</link>
  1993. so it does not need to be parsed every time BitBake is
  1994. started.
  1995. </para>
  1996. </glossdef>
  1997. </glossentry>
  1998. <glossentry id='var-CC'><glossterm>CC</glossterm>
  1999. <info>
  2000. CC[doc] = "Minimum command and arguments to run the C compiler."
  2001. </info>
  2002. <glossdef>
  2003. <para role="glossdeffirst">
  2004. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2005. The minimal command and arguments used to run the C
  2006. compiler.
  2007. </para>
  2008. </glossdef>
  2009. </glossentry>
  2010. <glossentry id='var-CFLAGS'><glossterm>CFLAGS</glossterm>
  2011. <info>
  2012. CFLAGS[doc] = "Flags passed to the C compiler for the target system. This variable evaluates to the same as TARGET_CFLAGS."
  2013. </info>
  2014. <glossdef>
  2015. <para role="glossdeffirst">
  2016. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2017. Specifies the flags to pass to the C compiler.
  2018. This variable is exported to an environment
  2019. variable and thus made visible to the software being
  2020. built during the compilation step.
  2021. </para>
  2022. <para>
  2023. Default initialization for <filename>CFLAGS</filename>
  2024. varies depending on what is being built:
  2025. <itemizedlist>
  2026. <listitem><para>
  2027. <link linkend='var-TARGET_CFLAGS'><filename>TARGET_CFLAGS</filename></link>
  2028. when building for the target
  2029. </para></listitem>
  2030. <listitem><para>
  2031. <link linkend='var-BUILD_CFLAGS'><filename>BUILD_CFLAGS</filename></link>
  2032. when building for the build host (i.e.
  2033. <filename>-native</filename>)
  2034. </para></listitem>
  2035. <listitem><para>
  2036. <link linkend='var-BUILDSDK_CFLAGS'><filename>BUILDSDK_CFLAGS</filename></link>
  2037. when building for an SDK (i.e.
  2038. <filename>nativesdk-</filename>)
  2039. </para></listitem>
  2040. </itemizedlist>
  2041. </para>
  2042. </glossdef>
  2043. </glossentry>
  2044. <glossentry id='var-CLASSOVERRIDE'><glossterm>CLASSOVERRIDE</glossterm>
  2045. <info>
  2046. CLASSOVERRIDE[doc] = "An internal variable specifying the special class override that should currently apply (e.g. "class-target", "class-native", and so forth)."
  2047. </info>
  2048. <glossdef>
  2049. <para role="glossdeffirst">
  2050. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2051. An internal variable specifying the special class override
  2052. that should currently apply (e.g. "class-target",
  2053. "class-native", and so forth).
  2054. The classes that use this variable (e.g.
  2055. <link linkend='ref-classes-native'><filename>native</filename></link>,
  2056. <link linkend='ref-classes-nativesdk'><filename>nativesdk</filename></link>,
  2057. and so forth) set the variable to appropriate values.
  2058. <note>
  2059. <filename>CLASSOVERRIDE</filename> gets its default
  2060. "class-target" value from the
  2061. <filename>bitbake.conf</filename> file.
  2062. </note>
  2063. </para>
  2064. <para>
  2065. As an example, the following override allows you to install
  2066. extra files, but only when building for the target:
  2067. <literallayout class='monospaced'>
  2068. do_install_append_class-target() {
  2069. install my-extra-file ${D}${sysconfdir}
  2070. }
  2071. </literallayout>
  2072. Here is an example where <filename>FOO</filename>
  2073. is set to "native" when building for the build host, and
  2074. to "other" when not building for the build host:
  2075. <literallayout class='monospaced'>
  2076. FOO_class-native = "native"
  2077. FOO = "other"
  2078. </literallayout>
  2079. The underlying mechanism behind
  2080. <filename>CLASSOVERRIDE</filename> is simply that it is
  2081. included in the default value of
  2082. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  2083. </para>
  2084. </glossdef>
  2085. </glossentry>
  2086. <glossentry id='var-CLEANBROKEN'><glossterm>CLEANBROKEN</glossterm>
  2087. <info>
  2088. CLEANBROKEN[doc] = "Prevents the build system from running 'make clean' during the do_configure task."
  2089. </info>
  2090. <glossdef>
  2091. <para role="glossdeffirst">
  2092. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2093. If set to "1" within a recipe,
  2094. <filename>CLEANBROKEN</filename> specifies that
  2095. the <filename>make clean</filename> command does
  2096. not work for the software being built.
  2097. Consequently, the OpenEmbedded build system will not try
  2098. to run <filename>make clean</filename> during the
  2099. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  2100. task, which is the default behavior.
  2101. </para>
  2102. </glossdef>
  2103. </glossentry>
  2104. <glossentry id='var-COMBINED_FEATURES'><glossterm>COMBINED_FEATURES</glossterm>
  2105. <info>
  2106. COMBINED_FEATURES[doc] = "A set of features common between MACHINE_FEATURES and DISTRO_FEATURES."
  2107. </info>
  2108. <glossdef>
  2109. <para role="glossdeffirst">
  2110. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2111. Provides a list of hardware features that are enabled in
  2112. both
  2113. <link linkend='var-MACHINE_FEATURES'><filename>MACHINE_FEATURES</filename></link>
  2114. and
  2115. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>.
  2116. This select list of features contains features that make
  2117. sense to be controlled both at the machine and distribution
  2118. configuration level.
  2119. For example, the "bluetooth" feature requires hardware
  2120. support but should also be optional at the distribution
  2121. level, in case the hardware supports Bluetooth but you
  2122. do not ever intend to use it.
  2123. </para>
  2124. </glossdef>
  2125. </glossentry>
  2126. <glossentry id='var-COMMON_LICENSE_DIR'><glossterm>COMMON_LICENSE_DIR</glossterm>
  2127. <info>
  2128. COMMON_LICENSE_DIR[doc] = "Points to meta/files/common-licenses in the Source Directory, which is where generic license files reside."
  2129. </info>
  2130. <glossdef>
  2131. <para role="glossdeffirst">
  2132. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2133. Points to <filename>meta/files/common-licenses</filename>
  2134. in the
  2135. <link linkend='source-directory'>Source Directory</link>,
  2136. which is where generic license files reside.
  2137. </para>
  2138. </glossdef>
  2139. </glossentry>
  2140. <glossentry id='var-COMPATIBLE_HOST'><glossterm>COMPATIBLE_HOST</glossterm>
  2141. <info>
  2142. 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."
  2143. </info>
  2144. <glossdef>
  2145. <para role="glossdeffirst">
  2146. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2147. A regular expression that resolves to one or more hosts
  2148. (when the recipe is native) or one or more targets (when
  2149. the recipe is non-native) with which a recipe is compatible.
  2150. The regular expression is matched against
  2151. <link linkend="var-HOST_SYS"><filename>HOST_SYS</filename></link>.
  2152. You can use the variable to stop recipes from being built
  2153. for classes of systems with which the recipes are not
  2154. compatible.
  2155. Stopping these builds is particularly useful with kernels.
  2156. The variable also helps to increase parsing speed
  2157. since the build system skips parsing recipes not
  2158. compatible with the current system.
  2159. </para>
  2160. </glossdef>
  2161. </glossentry>
  2162. <glossentry id='var-COMPATIBLE_MACHINE'><glossterm>COMPATIBLE_MACHINE</glossterm>
  2163. <info>
  2164. COMPATIBLE_MACHINE[doc] = "A regular expression that resolves to one or more target machines with which a recipe is compatible."
  2165. </info>
  2166. <glossdef>
  2167. <para role="glossdeffirst">
  2168. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2169. A regular expression that resolves to one or more
  2170. target machines with which a recipe is compatible.
  2171. The regular expression is matched against
  2172. <link linkend="var-MACHINEOVERRIDES"><filename>MACHINEOVERRIDES</filename></link>.
  2173. You can use the variable to stop recipes from being built
  2174. for machines with which the recipes are not compatible.
  2175. Stopping these builds is particularly useful with kernels.
  2176. The variable also helps to increase parsing speed
  2177. since the build system skips parsing recipes not
  2178. compatible with the current machine.
  2179. </para>
  2180. </glossdef>
  2181. </glossentry>
  2182. <glossentry id='var-COMPLEMENTARY_GLOB'><glossterm>COMPLEMENTARY_GLOB</glossterm>
  2183. <info>
  2184. COMPLEMENTARY_GLOB[doc] = "Defines wildcards to match when installing a list of complementary packages for all the packages installed in an image."
  2185. </info>
  2186. <glossdef>
  2187. <para role="glossdeffirst">
  2188. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2189. Defines wildcards to match when installing a list of
  2190. complementary packages for all the packages explicitly
  2191. (or implicitly) installed in an image.
  2192. The resulting list of complementary packages is associated
  2193. with an item that can be added to
  2194. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  2195. An example usage of this is the "dev-pkgs" item that when
  2196. added to <filename>IMAGE_FEATURES</filename> will
  2197. install -dev packages (containing headers and other
  2198. development files) for every package in the image.
  2199. </para>
  2200. <para>
  2201. To add a new feature item pointing to a wildcard, use a
  2202. variable flag to specify the feature item name and
  2203. use the value to specify the wildcard.
  2204. Here is an example:
  2205. <literallayout class='monospaced'>
  2206. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  2207. </literallayout>
  2208. </para>
  2209. </glossdef>
  2210. </glossentry>
  2211. <glossentry id='var-COMPONENTS_DIR'><glossterm>COMPONENTS_DIR</glossterm>
  2212. <info>
  2213. COMPONENTS_DIR[doc] = "Stores sysroot components for each recipe."
  2214. </info>
  2215. <glossdef>
  2216. <para role="glossdeffirst">
  2217. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2218. Stores sysroot components for each recipe.
  2219. The OpenEmbedded build system uses
  2220. <filename>COMPONENTS_DIR</filename> when constructing
  2221. recipe-specific sysroots for other recipes.
  2222. </para>
  2223. <para>
  2224. The default is
  2225. "<filename>${</filename><link linkend='var-STAGING_DIR'><filename>STAGING_DIR</filename></link><filename>}-components</filename>."
  2226. (i.e. "<filename>${</filename><link linkend='var-TMPDIR'><filename>TMPDIR</filename></link><filename>}/sysroots-components</filename>").
  2227. </para>
  2228. </glossdef>
  2229. </glossentry>
  2230. <glossentry id='var-CONF_VERSION'><glossterm>CONF_VERSION</glossterm>
  2231. <info>
  2232. CONF_VERSION[doc] = "Tracks the version of local.conf. Increased each time build/conf/ changes incompatibly."
  2233. </info>
  2234. <glossdef>
  2235. <para role="glossdeffirst">
  2236. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2237. Tracks the version of the local configuration file
  2238. (i.e. <filename>local.conf</filename>).
  2239. The value for <filename>CONF_VERSION</filename>
  2240. increments each time <filename>build/conf/</filename>
  2241. compatibility changes.
  2242. </para>
  2243. </glossdef>
  2244. </glossentry>
  2245. <glossentry id='var-CONFFILES'><glossterm>CONFFILES</glossterm>
  2246. <info>
  2247. CONFFILES[doc] = "Identifies editable or configurable files that are part of a package."
  2248. </info>
  2249. <glossdef>
  2250. <para role="glossdeffirst">
  2251. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2252. Identifies editable or configurable files that are part of a package.
  2253. If the Package Management System (PMS) is being used to update
  2254. packages on the target system, it is possible that
  2255. configuration files you have changed after the original installation
  2256. and that you now want to remain unchanged are overwritten.
  2257. In other words, editable files might exist in the package that you do not
  2258. want reset as part of the package update process.
  2259. You can use the <filename>CONFFILES</filename> variable to list the files in the
  2260. package that you wish to prevent the PMS from overwriting during this update process.
  2261. </para>
  2262. <para>
  2263. To use the <filename>CONFFILES</filename> variable, provide a package name
  2264. override that identifies the resulting package.
  2265. Then, provide a space-separated list of files.
  2266. Here is an example:
  2267. <literallayout class='monospaced'>
  2268. CONFFILES_${PN} += "${sysconfdir}/file1 \
  2269. ${sysconfdir}/file2 ${sysconfdir}/file3"
  2270. </literallayout>
  2271. </para>
  2272. <para>
  2273. A relationship exists between the <filename>CONFFILES</filename> and
  2274. <filename><link linkend='var-FILES'>FILES</link></filename> variables.
  2275. The files listed within <filename>CONFFILES</filename> must be a subset of
  2276. the files listed within <filename>FILES</filename>.
  2277. Because the configuration files you provide with <filename>CONFFILES</filename>
  2278. are simply being identified so that the PMS will not overwrite them,
  2279. it makes sense that
  2280. the files must already be included as part of the package through the
  2281. <filename>FILES</filename> variable.
  2282. </para>
  2283. <note>
  2284. When specifying paths as part of the <filename>CONFFILES</filename> variable,
  2285. it is good practice to use appropriate path variables.
  2286. For example, <filename>${sysconfdir}</filename> rather than
  2287. <filename>/etc</filename> or <filename>${bindir}</filename> rather
  2288. than <filename>/usr/bin</filename>.
  2289. You can find a list of these variables at the top of the
  2290. <filename>meta/conf/bitbake.conf</filename> file in the
  2291. <link linkend='source-directory'>Source Directory</link>.
  2292. </note>
  2293. </glossdef>
  2294. </glossentry>
  2295. <glossentry id='var-CONFIG_INITRAMFS_SOURCE'><glossterm>CONFIG_INITRAMFS_SOURCE</glossterm>
  2296. <info>
  2297. 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."
  2298. </info>
  2299. <glossdef>
  2300. <para role="glossdeffirst">
  2301. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2302. Identifies the initial RAM filesystem (initramfs) source
  2303. files.
  2304. The OpenEmbedded build system receives and uses
  2305. this kernel Kconfig variable as an environment variable.
  2306. By default, the variable is set to null ("").
  2307. </para>
  2308. <para>
  2309. The <filename>CONFIG_INITRAMFS_SOURCE</filename> can be
  2310. either a single cpio archive with a
  2311. <filename>.cpio</filename> suffix or a
  2312. space-separated list of directories and files for building
  2313. the initramfs image.
  2314. A cpio archive should contain a filesystem archive
  2315. to be used as an initramfs image.
  2316. Directories should contain a filesystem layout to be
  2317. included in the initramfs image.
  2318. Files should contain entries according to the format
  2319. described by the
  2320. <filename>usr/gen_init_cpio</filename> program in the
  2321. kernel tree.
  2322. </para>
  2323. <para>
  2324. If you specify multiple directories and files, the
  2325. initramfs image will be the aggregate of all of them.
  2326. </para>
  2327. <para>
  2328. For information on creating an initramfs, see the
  2329. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  2330. section in the Yocto Project Development Tasks Manual.
  2331. </para>
  2332. </glossdef>
  2333. </glossentry>
  2334. <glossentry id='var-CONFIG_SITE'><glossterm>CONFIG_SITE</glossterm>
  2335. <info>
  2336. 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."
  2337. </info>
  2338. <glossdef>
  2339. <para role="glossdeffirst">
  2340. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2341. A list of files that contains <filename>autoconf</filename> test results relevant
  2342. to the current build.
  2343. This variable is used by the Autotools utilities when running
  2344. <filename>configure</filename>.
  2345. </para>
  2346. </glossdef>
  2347. </glossentry>
  2348. <glossentry id='var-CONFIGURE_FLAGS'><glossterm>CONFIGURE_FLAGS</glossterm>
  2349. <info>
  2350. CONFIGURE_FLAGS[doc] = "The minimal arguments for GNU configure."
  2351. </info>
  2352. <glossdef>
  2353. <para role="glossdeffirst">
  2354. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2355. The minimal arguments for GNU configure.
  2356. </para>
  2357. </glossdef>
  2358. </glossentry>
  2359. <glossentry id='var-CONFLICT_DISTRO_FEATURES'><glossterm>CONFLICT_DISTRO_FEATURES</glossterm>
  2360. <info>
  2361. 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."
  2362. </info>
  2363. <glossdef>
  2364. <para role="glossdeffirst">
  2365. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2366. When inheriting the
  2367. <link linkend='ref-classes-distro_features_check'><filename>distro_features_check</filename></link>
  2368. class, this
  2369. variable identifies distribution features that would
  2370. be in conflict should the recipe
  2371. be built.
  2372. In other words, if the
  2373. <filename>CONFLICT_DISTRO_FEATURES</filename> variable
  2374. lists a feature that also appears in
  2375. <filename>DISTRO_FEATURES</filename> within the
  2376. current configuration, an error occurs and the
  2377. build stops.
  2378. </para>
  2379. </glossdef>
  2380. </glossentry>
  2381. <glossentry id='var-COPYLEFT_LICENSE_EXCLUDE'><glossterm>COPYLEFT_LICENSE_EXCLUDE</glossterm>
  2382. <info>
  2383. COPYLEFT_LICENSE_EXCLUDE[doc] = "Licenses to exclude in the source archived by the archiver class."
  2384. </info>
  2385. <glossdef>
  2386. <para role="glossdeffirst">
  2387. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2388. A space-separated list of licenses to exclude from the
  2389. source archived by the
  2390. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2391. class.
  2392. In other words, if a license in a recipe's
  2393. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  2394. value is in the value of
  2395. <filename>COPYLEFT_LICENSE_EXCLUDE</filename>, then its
  2396. source is not archived by the class.
  2397. <note>
  2398. The <filename>COPYLEFT_LICENSE_EXCLUDE</filename>
  2399. variable takes precedence over the
  2400. <link linkend='var-COPYLEFT_LICENSE_INCLUDE'><filename>COPYLEFT_LICENSE_INCLUDE</filename></link>
  2401. variable.
  2402. </note>
  2403. The default value, which is "CLOSED Proprietary", for
  2404. <filename>COPYLEFT_LICENSE_EXCLUDE</filename> is set
  2405. by the
  2406. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2407. class, which is inherited by the
  2408. <filename>archiver</filename> class.
  2409. </para>
  2410. </glossdef>
  2411. </glossentry>
  2412. <glossentry id='var-COPYLEFT_LICENSE_INCLUDE'><glossterm>COPYLEFT_LICENSE_INCLUDE</glossterm>
  2413. <info>
  2414. COPYLEFT_LICENSE_INCLUDE[doc] = "Licenses to include in the source archived by the archiver class."
  2415. </info>
  2416. <glossdef>
  2417. <para role="glossdeffirst">
  2418. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2419. A space-separated list of licenses to include in the
  2420. source archived by the
  2421. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2422. class.
  2423. In other words, if a license in a recipe's
  2424. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  2425. value is in the value of
  2426. <filename>COPYLEFT_LICENSE_INCLUDE</filename>, then its
  2427. source is archived by the class.
  2428. </para>
  2429. <para>
  2430. The default value is set by the
  2431. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2432. class, which is inherited by the
  2433. <filename>archiver</filename> class.
  2434. The default value includes "GPL*", "LGPL*", and "AGPL*".
  2435. </para>
  2436. </glossdef>
  2437. </glossentry>
  2438. <glossentry id='var-COPYLEFT_PN_EXCLUDE'><glossterm>COPYLEFT_PN_EXCLUDE</glossterm>
  2439. <info>
  2440. COPYLEFT_PN_EXCLUDE[doc] = "Recipes to exclude in the source archived by the archiver class."
  2441. </info>
  2442. <glossdef>
  2443. <para role="glossdeffirst">
  2444. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2445. A list of recipes to exclude in the source archived
  2446. by the
  2447. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2448. class.
  2449. The <filename>COPYLEFT_PN_EXCLUDE</filename> variable
  2450. overrides the license inclusion and exclusion caused
  2451. through the
  2452. <link linkend='var-COPYLEFT_LICENSE_INCLUDE'><filename>COPYLEFT_LICENSE_INCLUDE</filename></link>
  2453. and
  2454. <link linkend='var-COPYLEFT_LICENSE_EXCLUDE'><filename>COPYLEFT_LICENSE_EXCLUDE</filename></link>
  2455. variables, respectively.
  2456. </para>
  2457. <para>
  2458. The default value, which is "" indicating to not explicitly
  2459. exclude any recipes by name, for
  2460. <filename>COPYLEFT_PN_EXCLUDE</filename> is set
  2461. by the
  2462. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2463. class, which is inherited by the
  2464. <filename>archiver</filename> class.
  2465. </para>
  2466. </glossdef>
  2467. </glossentry>
  2468. <glossentry id='var-COPYLEFT_PN_INCLUDE'><glossterm>COPYLEFT_PN_INCLUDE</glossterm>
  2469. <info>
  2470. COPYLEFT_PN_INCLUDE[doc] = "Recipes to include in the source archived by the archiver class."
  2471. </info>
  2472. <glossdef>
  2473. <para role="glossdeffirst">
  2474. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2475. A list of recipes to include in the source archived
  2476. by the
  2477. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2478. class.
  2479. The <filename>COPYLEFT_PN_INCLUDE</filename> variable
  2480. overrides the license inclusion and exclusion caused
  2481. through the
  2482. <link linkend='var-COPYLEFT_LICENSE_INCLUDE'><filename>COPYLEFT_LICENSE_INCLUDE</filename></link>
  2483. and
  2484. <link linkend='var-COPYLEFT_LICENSE_EXCLUDE'><filename>COPYLEFT_LICENSE_EXCLUDE</filename></link>
  2485. variables, respectively.
  2486. </para>
  2487. <para>
  2488. The default value, which is "" indicating to not explicitly
  2489. include any recipes by name, for
  2490. <filename>COPYLEFT_PN_INCLUDE</filename> is set
  2491. by the
  2492. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2493. class, which is inherited by the
  2494. <filename>archiver</filename> class.
  2495. </para>
  2496. </glossdef>
  2497. </glossentry>
  2498. <glossentry id='var-COPYLEFT_RECIPE_TYPES'><glossterm>COPYLEFT_RECIPE_TYPES</glossterm>
  2499. <info>
  2500. COPYLEFT_RECIPE_TYPES[doc] = "Recipe types to include in the source archived by the archiver class."
  2501. </info>
  2502. <glossdef>
  2503. <para role="glossdeffirst">
  2504. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2505. A space-separated list of recipe types to include
  2506. in the source archived by the
  2507. <link linkend='ref-classes-archiver'><filename>archiver</filename></link>
  2508. class.
  2509. Recipe types are <filename>target</filename>,
  2510. <filename>native</filename>,
  2511. <filename>nativesdk</filename>,
  2512. <filename>cross</filename>,
  2513. <filename>crosssdk</filename>, and
  2514. <filename>cross-canadian</filename>.
  2515. </para>
  2516. <para>
  2517. The default value, which is "target*", for
  2518. <filename>COPYLEFT_RECIPE_TYPES</filename> is set
  2519. by the
  2520. <link linkend='ref-classes-copyleft_filter'><filename>copyleft_filter</filename></link>
  2521. class, which is inherited by the
  2522. <filename>archiver</filename> class.
  2523. </para>
  2524. </glossdef>
  2525. </glossentry>
  2526. <glossentry id='var-COPY_LIC_DIRS'><glossterm>COPY_LIC_DIRS</glossterm>
  2527. <info>
  2528. 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."
  2529. </info>
  2530. <glossdef>
  2531. <para role="glossdeffirst">
  2532. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2533. If set to "1" along with the
  2534. <link linkend='var-COPY_LIC_MANIFEST'><filename>COPY_LIC_MANIFEST</filename></link>
  2535. variable, the OpenEmbedded build system copies
  2536. into the image the license files, which are located in
  2537. <filename>/usr/share/common-licenses</filename>,
  2538. for each package.
  2539. The license files are placed
  2540. in directories within the image itself during build time.
  2541. <note>
  2542. The <filename>COPY_LIC_DIRS</filename> does not
  2543. offer a path for adding licenses for newly installed
  2544. packages to an image, which might be most suitable
  2545. for read-only filesystems that cannot be upgraded.
  2546. See the
  2547. <link linkend='var-LICENSE_CREATE_PACKAGE'><filename>LICENSE_CREATE_PACKAGE</filename></link>
  2548. variable for additional information.
  2549. You can also reference the
  2550. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  2551. section in the Yocto Project Development Tasks Manual
  2552. for information on providing license text.
  2553. </note>
  2554. </para>
  2555. </glossdef>
  2556. </glossentry>
  2557. <glossentry id='var-COPY_LIC_MANIFEST'><glossterm>COPY_LIC_MANIFEST</glossterm>
  2558. <info>
  2559. 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."
  2560. </info>
  2561. <glossdef>
  2562. <para role="glossdeffirst">
  2563. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2564. If set to "1", the OpenEmbedded build system copies
  2565. the license manifest for the image to
  2566. <filename>/usr/share/common-licenses/license.manifest</filename>
  2567. within the image itself during build time.
  2568. <note>
  2569. The <filename>COPY_LIC_MANIFEST</filename> does not
  2570. offer a path for adding licenses for newly installed
  2571. packages to an image, which might be most suitable
  2572. for read-only filesystems that cannot be upgraded.
  2573. See the
  2574. <link linkend='var-LICENSE_CREATE_PACKAGE'><filename>LICENSE_CREATE_PACKAGE</filename></link>
  2575. variable for additional information.
  2576. You can also reference the
  2577. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  2578. section in the Yocto Project Development Tasks Manual
  2579. for information on providing license text.
  2580. </note>
  2581. </para>
  2582. </glossdef>
  2583. </glossentry>
  2584. <glossentry id='var-CORE_IMAGE_EXTRA_INSTALL'><glossterm>CORE_IMAGE_EXTRA_INSTALL</glossterm>
  2585. <info>
  2586. 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."
  2587. </info>
  2588. <glossdef>
  2589. <para role="glossdeffirst">
  2590. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2591. Specifies the list of packages to be added to the image.
  2592. You should only set this variable in the
  2593. <filename>local.conf</filename> configuration file found
  2594. in the
  2595. <link linkend='build-directory'>Build Directory</link>.
  2596. </para>
  2597. <para>
  2598. This variable replaces <filename>POKY_EXTRA_INSTALL</filename>, which is no longer supported.
  2599. </para>
  2600. </glossdef>
  2601. </glossentry>
  2602. <glossentry id='var-COREBASE'><glossterm>COREBASE</glossterm>
  2603. <info>
  2604. COREBASE[doc] = "Specifies the parent directory of the OpenEmbedded-Core Metadata layer (i.e. meta)."
  2605. </info>
  2606. <glossdef>
  2607. <para role="glossdeffirst">
  2608. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2609. Specifies the parent directory of the OpenEmbedded-Core
  2610. Metadata layer (i.e. <filename>meta</filename>).
  2611. </para>
  2612. <para>
  2613. It is an important distinction that
  2614. <filename>COREBASE</filename> points to the parent of this
  2615. layer and not the layer itself.
  2616. Consider an example where you have cloned the Poky Git
  2617. repository and retained the <filename>poky</filename>
  2618. name for your local copy of the repository.
  2619. In this case, <filename>COREBASE</filename> points to
  2620. the <filename>poky</filename> folder because it is the
  2621. parent directory of the <filename>poky/meta</filename>
  2622. layer.
  2623. </para>
  2624. </glossdef>
  2625. </glossentry>
  2626. <glossentry id='var-COREBASE_FILES'><glossterm>COREBASE_FILES</glossterm>
  2627. <info>
  2628. COREBASE_FILES[doc] = "Lists files from the COREBASE directory that should be copied other than the layers listed in the bblayers.conf file."
  2629. </info>
  2630. <glossdef>
  2631. <para role="glossdeffirst">
  2632. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2633. Lists files from the
  2634. <link linkend='var-COREBASE'><filename>COREBASE</filename></link>
  2635. directory that should be copied other than the layers
  2636. listed in the <filename>bblayers.conf</filename> file.
  2637. The <filename>COREBASE_FILES</filename> variable exists
  2638. for the purpose of copying metadata from the
  2639. OpenEmbedded build system into the extensible
  2640. SDK.
  2641. </para>
  2642. <para>
  2643. Explicitly listing files in <filename>COREBASE</filename>
  2644. is needed because it typically contains build
  2645. directories and other files that should not normally
  2646. be copied into the extensible SDK.
  2647. Consequently, the value of
  2648. <filename>COREBASE_FILES</filename> is used in order to
  2649. only copy the files that are actually needed.
  2650. </para>
  2651. </glossdef>
  2652. </glossentry>
  2653. <glossentry id='var-CPP'><glossterm>CPP</glossterm>
  2654. <info>
  2655. CPP[doc] = "Minimum command and arguments to run the C preprocessor."
  2656. </info>
  2657. <glossdef>
  2658. <para role="glossdeffirst">
  2659. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2660. The minimal command and arguments used to run the C
  2661. preprocessor.
  2662. </para>
  2663. </glossdef>
  2664. </glossentry>
  2665. <glossentry id='var-CPPFLAGS'><glossterm>CPPFLAGS</glossterm>
  2666. <info>
  2667. CPPFLAGS[doc] = "Specifies the flags to pass to the C pre-processor (i.e. to both the C and the C++ compilers)."
  2668. </info>
  2669. <glossdef>
  2670. <para role="glossdeffirst">
  2671. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2672. Specifies the flags to pass to the C pre-processor
  2673. (i.e. to both the C and the C++ compilers).
  2674. This variable is exported to an environment
  2675. variable and thus made visible to the software being
  2676. built during the compilation step.
  2677. </para>
  2678. <para>
  2679. Default initialization for <filename>CPPFLAGS</filename>
  2680. varies depending on what is being built:
  2681. <itemizedlist>
  2682. <listitem><para>
  2683. <link linkend='var-TARGET_CPPFLAGS'><filename>TARGET_CPPFLAGS</filename></link>
  2684. when building for the target
  2685. </para></listitem>
  2686. <listitem><para>
  2687. <link linkend='var-BUILD_CPPFLAGS'><filename>BUILD_CPPFLAGS</filename></link>
  2688. when building for the build host (i.e.
  2689. <filename>-native</filename>)
  2690. </para></listitem>
  2691. <listitem><para>
  2692. <link linkend='var-BUILDSDK_CPPFLAGS'><filename>BUILDSDK_CPPFLAGS</filename></link>
  2693. when building for an SDK (i.e.
  2694. <filename>nativesdk-</filename>)
  2695. </para></listitem>
  2696. </itemizedlist>
  2697. </para>
  2698. </glossdef>
  2699. </glossentry>
  2700. <glossentry id='var-CROSS_COMPILE'><glossterm>CROSS_COMPILE</glossterm>
  2701. <info>
  2702. CROSS_COMPILE[doc] = "The toolchain binary prefix for the target tools."
  2703. </info>
  2704. <glossdef>
  2705. <para role="glossdeffirst">
  2706. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2707. The toolchain binary prefix for the target tools.
  2708. The <filename>CROSS_COMPILE</filename> variable is the
  2709. same as the
  2710. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  2711. variable.
  2712. <note>
  2713. The OpenEmbedded build system sets the
  2714. <filename>CROSS_COMPILE</filename> variable only in
  2715. certain contexts (e.g. when building for kernel
  2716. and kernel module recipes).
  2717. </note>
  2718. </para>
  2719. </glossdef>
  2720. </glossentry>
  2721. <glossentry id='var-CVSDIR'><glossterm>CVSDIR</glossterm>
  2722. <info>
  2723. CVSDIR[doc] = "The directory where cvs checkouts will be stored in."
  2724. </info>
  2725. <glossdef>
  2726. <para role="glossdeffirst">
  2727. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2728. The directory in which files checked out under the
  2729. CVS system are stored.
  2730. </para>
  2731. </glossdef>
  2732. </glossentry>
  2733. <glossentry id='var-CXX'><glossterm>CXX</glossterm>
  2734. <info>
  2735. CXX[doc] = "Minimum command and arguments to run the C++ compiler."
  2736. </info>
  2737. <glossdef>
  2738. <para role="glossdeffirst">
  2739. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2740. The minimal command and arguments used to run the C++
  2741. compiler.
  2742. </para>
  2743. </glossdef>
  2744. </glossentry>
  2745. <glossentry id='var-CXXFLAGS'><glossterm>CXXFLAGS</glossterm>
  2746. <info>
  2747. CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler."
  2748. </info>
  2749. <glossdef>
  2750. <para role="glossdeffirst">
  2751. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2752. Specifies the flags to pass to the C++ compiler.
  2753. This variable is exported to an environment
  2754. variable and thus made visible to the software being
  2755. built during the compilation step.
  2756. </para>
  2757. <para>
  2758. Default initialization for <filename>CXXFLAGS</filename>
  2759. varies depending on what is being built:
  2760. <itemizedlist>
  2761. <listitem><para>
  2762. <link linkend='var-TARGET_CXXFLAGS'><filename>TARGET_CXXFLAGS</filename></link>
  2763. when building for the target
  2764. </para></listitem>
  2765. <listitem><para>
  2766. <link linkend='var-BUILD_CXXFLAGS'><filename>BUILD_CXXFLAGS</filename></link>
  2767. when building for the build host (i.e.
  2768. <filename>-native</filename>)
  2769. </para></listitem>
  2770. <listitem><para>
  2771. <link linkend='var-BUILDSDK_CXXFLAGS'><filename>BUILDSDK_CXXFLAGS</filename></link>
  2772. when building for an SDK (i.e.
  2773. <filename>nativesdk-</filename>)
  2774. </para></listitem>
  2775. </itemizedlist>
  2776. </para>
  2777. </glossdef>
  2778. </glossentry>
  2779. </glossdiv>
  2780. <glossdiv id='var-glossary-d'><title>D</title>
  2781. <glossentry id='var-D'><glossterm>D</glossterm>
  2782. <info>
  2783. D[doc] = "The destination directory."
  2784. </info>
  2785. <glossdef>
  2786. <para role="glossdeffirst">
  2787. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2788. The destination directory.
  2789. The location in the
  2790. <link linkend='build-directory'>Build Directory</link>
  2791. where components are installed by the
  2792. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  2793. task.
  2794. This location defaults to:
  2795. <literallayout class='monospaced'>
  2796. ${WORKDIR}/image
  2797. </literallayout>
  2798. <note><title>Caution</title>
  2799. Tasks that read from or write to this directory should
  2800. run under
  2801. <ulink url='&YOCTO_DOCS_OM_URL;#fakeroot-and-pseudo'>fakeroot</ulink>.
  2802. </note>
  2803. </para>
  2804. </glossdef>
  2805. </glossentry>
  2806. <glossentry id='var-DATE'><glossterm>DATE</glossterm>
  2807. <info>
  2808. DATE[doc] = "The date the build was started using YMD format."
  2809. </info>
  2810. <glossdef>
  2811. <para role="glossdeffirst">
  2812. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2813. The date the build was started.
  2814. Dates appear using the year, month, and day (YMD) format
  2815. (e.g. "20150209" for February 9th, 2015).
  2816. </para>
  2817. </glossdef>
  2818. </glossentry>
  2819. <glossentry id='var-DATETIME'><glossterm>DATETIME</glossterm>
  2820. <info>
  2821. DATETIME[doc] = "The date and time the build was started."
  2822. </info>
  2823. <glossdef>
  2824. <para role="glossdeffirst">
  2825. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2826. The date and time on which the current build started.
  2827. The format is suitable for timestamps.
  2828. </para>
  2829. </glossdef>
  2830. </glossentry>
  2831. <glossentry id='var-DEBIAN_NOAUTONAME'><glossterm>DEBIAN_NOAUTONAME</glossterm>
  2832. <info>
  2833. DEBIAN_NOAUTONAME[doc] = "Prevents a particular package from being renamed according to Debian package naming."
  2834. </info>
  2835. <glossdef>
  2836. <para role="glossdeffirst">
  2837. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2838. When the
  2839. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  2840. class is inherited, which is the default behavior,
  2841. <filename>DEBIAN_NOAUTONAME</filename> specifies a
  2842. particular package should not be renamed according to
  2843. Debian library package naming.
  2844. You must use the package name as an override when you
  2845. set this variable.
  2846. Here is an example from the <filename>fontconfig</filename>
  2847. recipe:
  2848. <literallayout class='monospaced'>
  2849. DEBIAN_NOAUTONAME_fontconfig-utils = "1"
  2850. </literallayout>
  2851. </para>
  2852. </glossdef>
  2853. </glossentry>
  2854. <glossentry id='var-DEBIANNAME'><glossterm>DEBIANNAME</glossterm>
  2855. <info>
  2856. DEBIANNAME[doc] = "Allows you to override the library name for an individual package for Debian library package renaming."
  2857. </info>
  2858. <glossdef>
  2859. <para role="glossdeffirst">
  2860. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2861. When the
  2862. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  2863. class is inherited, which is the default behavior,
  2864. <filename>DEBIANNAME</filename> allows you to override the
  2865. library name for an individual package.
  2866. Overriding the library name in these cases is rare.
  2867. You must use the package name as an override when you
  2868. set this variable.
  2869. Here is an example from the <filename>dbus</filename>
  2870. recipe:
  2871. <literallayout class='monospaced'>
  2872. DEBIANNAME_${PN} = "dbus-1"
  2873. </literallayout>
  2874. </para>
  2875. </glossdef>
  2876. </glossentry>
  2877. <glossentry id='var-DEBUG_BUILD'><glossterm>DEBUG_BUILD</glossterm>
  2878. <info>
  2879. DEBUG_BUILD[doc] = "Specifies to build packages with debugging information. This influences the value of the SELECTED_OPTIMIZATION variable."
  2880. </info>
  2881. <glossdef>
  2882. <para role="glossdeffirst">
  2883. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2884. Specifies to build packages with debugging information.
  2885. This influences the value of the
  2886. <filename><link linkend='var-SELECTED_OPTIMIZATION'>SELECTED_OPTIMIZATION</link></filename>
  2887. variable.
  2888. </para>
  2889. </glossdef>
  2890. </glossentry>
  2891. <glossentry id='var-DEBUG_OPTIMIZATION'><glossterm>DEBUG_OPTIMIZATION</glossterm>
  2892. <info>
  2893. 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'."
  2894. </info>
  2895. <glossdef>
  2896. <para role="glossdeffirst">
  2897. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2898. The options to pass in
  2899. <filename><link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link></filename>
  2900. and <filename><link linkend='var-CFLAGS'>CFLAGS</link></filename> when compiling
  2901. a system for debugging.
  2902. This variable defaults to "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  2903. </para>
  2904. </glossdef>
  2905. </glossentry>
  2906. <glossentry id='var-DEFAULT_PREFERENCE'><glossterm>DEFAULT_PREFERENCE</glossterm>
  2907. <info>
  2908. DEFAULT_PREFERENCE[doc] = "Specifies a weak bias for recipe selection priority."
  2909. </info>
  2910. <glossdef>
  2911. <para role="glossdeffirst">
  2912. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2913. Specifies a weak bias for recipe selection priority.
  2914. </para>
  2915. <para>
  2916. The most common usage of this is variable is to set
  2917. it to "-1" within a recipe for a development version of a
  2918. piece of software.
  2919. Using the variable in this way causes the stable version
  2920. of the recipe to build by default in the absence of
  2921. <filename><link linkend='var-PREFERRED_VERSION'>PREFERRED_VERSION</link></filename>
  2922. being used to build the development version.
  2923. </para>
  2924. <note>
  2925. The bias provided by <filename>DEFAULT_PREFERENCE</filename>
  2926. is weak and is overridden by
  2927. <filename><link linkend='var-BBFILE_PRIORITY'>BBFILE_PRIORITY</link></filename>
  2928. if that variable is different between two layers
  2929. that contain different versions of the same recipe.
  2930. </note>
  2931. </glossdef>
  2932. </glossentry>
  2933. <glossentry id='var-DEFAULTTUNE'><glossterm>DEFAULTTUNE</glossterm>
  2934. <info>
  2935. DEFAULTTUNE[doc] = "The default CPU and Application Binary Interface (ABI) tunings (i.e. the "tune") used by the OpenEmbedded build system."
  2936. </info>
  2937. <glossdef>
  2938. <para role="glossdeffirst">
  2939. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2940. The default CPU and Application Binary Interface (ABI)
  2941. tunings (i.e. the "tune") used by the OpenEmbedded build
  2942. system.
  2943. The <filename>DEFAULTTUNE</filename> helps define
  2944. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  2945. </para>
  2946. <para>
  2947. The default tune is either implicitly or explicitly set
  2948. by the machine
  2949. (<link linkend='var-MACHINE'><filename>MACHINE</filename></link>).
  2950. However, you can override the setting using available tunes
  2951. as defined with
  2952. <link linkend='var-AVAILTUNES'><filename>AVAILTUNES</filename></link>.
  2953. </para>
  2954. </glossdef>
  2955. </glossentry>
  2956. <glossentry id='var-DEPENDS'><glossterm>DEPENDS</glossterm>
  2957. <info>
  2958. DEPENDS[doc] = "Lists a recipe's build-time dependencies (i.e. other recipe files)."
  2959. </info>
  2960. <glossdef>
  2961. <para role="glossdeffirst">
  2962. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  2963. Lists a recipe's build-time dependencies.
  2964. These are dependencies on other recipes whose
  2965. contents (e.g. headers and shared libraries) are needed
  2966. by the recipe at build time.
  2967. </para>
  2968. <para>
  2969. As an example, consider a recipe <filename>foo</filename>
  2970. that contains the following assignment:
  2971. <literallayout class='monospaced'>
  2972. DEPENDS = "bar"
  2973. </literallayout>
  2974. The practical effect of the previous assignment is that
  2975. all files installed by bar will be available in the
  2976. appropriate staging sysroot, given by the
  2977. <link linkend='var-STAGING_DIR'><filename>STAGING_DIR*</filename></link>
  2978. variables, by the time the
  2979. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  2980. task for <filename>foo</filename> runs.
  2981. This mechanism is implemented by having
  2982. <filename>do_configure</filename> depend on the
  2983. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  2984. task of each recipe listed in <filename>DEPENDS</filename>,
  2985. through a
  2986. <filename>[</filename><ulink url='&YOCTO_DOCS_BB_URL;#variable-flags'><filename>deptask</filename></ulink><filename>]</filename>
  2987. declaration in the
  2988. <link linkend='ref-classes-base'><filename>base</filename></link>
  2989. class.
  2990. <note>
  2991. It seldom is necessary to reference, for example,
  2992. <filename>STAGING_DIR_HOST</filename> explicitly.
  2993. The standard classes and build-related variables are
  2994. configured to automatically use the appropriate staging
  2995. sysroots.
  2996. </note>
  2997. As another example, <filename>DEPENDS</filename> can also
  2998. be used to add utilities that run on the build machine
  2999. during the build.
  3000. For example, a recipe that makes use of a code generator
  3001. built by the recipe <filename>codegen</filename> might have
  3002. the following:
  3003. <literallayout class='monospaced'>
  3004. DEPENDS = "codegen-native"
  3005. </literallayout>
  3006. For more information, see the
  3007. <link linkend='ref-classes-native'><filename>native</filename></link>
  3008. class and the
  3009. <link linkend='var-EXTRANATIVEPATH'><filename>EXTRANATIVEPATH</filename></link>
  3010. variable.
  3011. <note>
  3012. <title>Notes</title>
  3013. <itemizedlist>
  3014. <listitem><para>
  3015. <filename>DEPENDS</filename> is a list of
  3016. recipe names.
  3017. Or, to be more precise, it is a list of
  3018. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  3019. names, which usually match recipe names.
  3020. Putting a package name such as "foo-dev" in
  3021. <filename>DEPENDS</filename> does not make
  3022. sense.
  3023. Use "foo" instead, as this will put files
  3024. from all the packages that make up
  3025. <filename>foo</filename>, which includes
  3026. those from <filename>foo-dev</filename>, into
  3027. the sysroot.
  3028. </para></listitem>
  3029. <listitem><para>
  3030. One recipe having another recipe in
  3031. <filename>DEPENDS</filename> does not by itself
  3032. add any runtime dependencies between the
  3033. packages produced by the two recipes.
  3034. However, as explained in the
  3035. "<ulink url='&YOCTO_DOCS_OM_URL;#automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</ulink>"
  3036. section in the Yocto Project Overview and
  3037. Concepts Manual, runtime dependencies will
  3038. often be added automatically, meaning
  3039. <filename>DEPENDS</filename> alone is
  3040. sufficient for most recipes.
  3041. </para></listitem>
  3042. <listitem><para>
  3043. Counterintuitively,
  3044. <filename>DEPENDS</filename> is often necessary
  3045. even for recipes that install precompiled
  3046. components.
  3047. For example, if <filename>libfoo</filename>
  3048. is a precompiled library that links against
  3049. <filename>libbar</filename>, then
  3050. linking against <filename>libfoo</filename>
  3051. requires both <filename>libfoo</filename>
  3052. and <filename>libbar</filename> to be available
  3053. in the sysroot.
  3054. Without a <filename>DEPENDS</filename> from the
  3055. recipe that installs <filename>libfoo</filename>
  3056. to the recipe that installs
  3057. <filename>libbar</filename>, other recipes might
  3058. fail to link against
  3059. <filename>libfoo</filename>.
  3060. </para></listitem>
  3061. </itemizedlist>
  3062. </note>
  3063. </para>
  3064. <para>
  3065. For information on runtime dependencies, see the
  3066. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  3067. variable.
  3068. You can also see the
  3069. "<ulink url='&YOCTO_DOCS_BB_URL;#tasks'>Tasks</ulink>" and
  3070. "<ulink url='&YOCTO_DOCS_BB_URL;#dependencies'>Dependencies</ulink>"
  3071. sections in the BitBake User Manual for additional
  3072. information on tasks and dependencies.
  3073. </para>
  3074. </glossdef>
  3075. </glossentry>
  3076. <glossentry id='var-DEPLOY_DIR'><glossterm>DEPLOY_DIR</glossterm>
  3077. <info>
  3078. 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."
  3079. </info>
  3080. <glossdef>
  3081. <para role="glossdeffirst">
  3082. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3083. Points to the general area that the OpenEmbedded build
  3084. system uses to place images, packages, SDKs, and other output
  3085. files that are ready to be used outside of the build system.
  3086. By default, this directory resides within the
  3087. <link linkend='build-directory'>Build Directory</link>
  3088. as <filename>${TMPDIR}/deploy</filename>.
  3089. </para>
  3090. <para>
  3091. For more information on the structure of the Build
  3092. Directory, see
  3093. "<link linkend='structure-build'>The Build Directory - <filename>build/</filename></link>"
  3094. section.
  3095. For more detail on the contents of the
  3096. <filename>deploy</filename> directory, see the
  3097. "<ulink url='&YOCTO_DOCS_OM_URL;#images-dev-environment'>Images</ulink>",
  3098. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>",
  3099. and
  3100. "<ulink url='&YOCTO_DOCS_OM_URL;#sdk-dev-environment'>Application Development SDK</ulink>"
  3101. sections all in the Yocto Project Overview and Concepts
  3102. Manual.
  3103. </para>
  3104. </glossdef>
  3105. </glossentry>
  3106. <glossentry id='var-DEPLOY_DIR_DEB'><glossterm>DEPLOY_DIR_DEB</glossterm>
  3107. <info>
  3108. 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."
  3109. </info>
  3110. <glossdef>
  3111. <para role="glossdeffirst">
  3112. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3113. Points to the area that the OpenEmbedded build system uses
  3114. to place Debian packages that are ready to be used outside
  3115. of the build system.
  3116. This variable applies only when
  3117. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  3118. contains "package_deb".
  3119. </para>
  3120. <para>
  3121. The BitBake configuration file initially defines the
  3122. <filename>DEPLOY_DIR_DEB</filename> variable as a
  3123. sub-folder of
  3124. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3125. <literallayout class='monospaced'>
  3126. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  3127. </literallayout>
  3128. </para>
  3129. <para>
  3130. The
  3131. <link linkend='ref-classes-package_deb'><filename>package_deb</filename></link>
  3132. class uses the
  3133. <filename>DEPLOY_DIR_DEB</filename> variable to make sure
  3134. the
  3135. <link linkend='ref-tasks-package_write_deb'><filename>do_package_write_deb</filename></link>
  3136. task writes Debian packages into the appropriate folder.
  3137. For more information on how packaging works, see the
  3138. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>"
  3139. section in the Yocto Project Overview and Concepts Manual.
  3140. </para>
  3141. </glossdef>
  3142. </glossentry>
  3143. <glossentry id='var-DEPLOY_DIR_IMAGE'><glossterm>DEPLOY_DIR_IMAGE</glossterm>
  3144. <info>
  3145. 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."
  3146. </info>
  3147. <glossdef>
  3148. <para role="glossdeffirst">
  3149. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3150. Points to the area that the OpenEmbedded build system uses
  3151. to place images and other associated output files that are
  3152. ready to be deployed onto the target machine.
  3153. The directory is machine-specific as it contains the
  3154. <filename>${MACHINE}</filename> name.
  3155. By default, this directory resides within the
  3156. <link linkend='build-directory'>Build Directory</link>
  3157. as <filename>${DEPLOY_DIR}/images/${MACHINE}/</filename>.
  3158. </para>
  3159. <para>
  3160. For more information on the structure of the Build
  3161. Directory, see
  3162. "<link linkend='structure-build'>The Build Directory - <filename>build/</filename></link>"
  3163. section.
  3164. For more detail on the contents of the
  3165. <filename>deploy</filename> directory, see the
  3166. "<ulink url='&YOCTO_DOCS_OM_URL;#images-dev-environment'>Images</ulink>"
  3167. and
  3168. "<ulink url='&YOCTO_DOCS_OM_URL;#sdk-dev-environment'>Application Development SDK</ulink>"
  3169. sections both in the Yocto Project Overview and Concepts
  3170. Manual.
  3171. </para>
  3172. </glossdef>
  3173. </glossentry>
  3174. <glossentry id='var-DEPLOY_DIR_IPK'><glossterm>DEPLOY_DIR_IPK</glossterm>
  3175. <info>
  3176. 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."
  3177. </info>
  3178. <glossdef>
  3179. <para role="glossdeffirst">
  3180. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3181. Points to the area that the OpenEmbedded build system uses
  3182. to place IPK packages that are ready to be used outside of
  3183. the build system.
  3184. This variable applies only when
  3185. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  3186. contains "package_ipk".
  3187. </para>
  3188. <para>
  3189. The BitBake configuration file initially defines this
  3190. variable as a sub-folder of
  3191. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3192. <literallayout class='monospaced'>
  3193. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  3194. </literallayout>
  3195. </para>
  3196. <para>
  3197. The
  3198. <link linkend='ref-classes-package_ipk'><filename>package_ipk</filename></link>
  3199. class uses the
  3200. <filename>DEPLOY_DIR_IPK</filename> variable to make sure
  3201. the
  3202. <link linkend='ref-tasks-package_write_ipk'><filename>do_package_write_ipk</filename></link>
  3203. task writes IPK packages into the appropriate folder.
  3204. For more information on how packaging works, see the
  3205. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>"
  3206. section in the Yocto Project Overview and Concepts Manual.
  3207. </para>
  3208. </glossdef>
  3209. </glossentry>
  3210. <glossentry id='var-DEPLOY_DIR_RPM'><glossterm>DEPLOY_DIR_RPM</glossterm>
  3211. <info>
  3212. 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."
  3213. </info>
  3214. <glossdef>
  3215. <para role="glossdeffirst">
  3216. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3217. Points to the area that the OpenEmbedded build system uses
  3218. to place RPM packages that are ready to be used outside
  3219. of the build system.
  3220. This variable applies only when
  3221. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  3222. contains "package_rpm".
  3223. </para>
  3224. <para>
  3225. The BitBake configuration file initially defines this
  3226. variable as a sub-folder of
  3227. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3228. <literallayout class='monospaced'>
  3229. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  3230. </literallayout>
  3231. </para>
  3232. <para>
  3233. The
  3234. <link linkend='ref-classes-package_rpm'><filename>package_rpm</filename></link>
  3235. class uses the
  3236. <filename>DEPLOY_DIR_RPM</filename> variable to make sure
  3237. the
  3238. <link linkend='ref-tasks-package_write_rpm'><filename>do_package_write_rpm</filename></link>
  3239. task writes RPM packages into the appropriate folder.
  3240. For more information on how packaging works, see the
  3241. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>"
  3242. section in the Yocto Project Overview and Concepts Manual.
  3243. </para>
  3244. </glossdef>
  3245. </glossentry>
  3246. <glossentry id='var-DEPLOY_DIR_TAR'><glossterm>DEPLOY_DIR_TAR</glossterm>
  3247. <info>
  3248. 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."
  3249. </info>
  3250. <glossdef>
  3251. <para role="glossdeffirst">
  3252. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3253. Points to the area that the OpenEmbedded build system uses
  3254. to place tarballs that are ready to be used outside of
  3255. the build system.
  3256. This variable applies only when
  3257. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  3258. contains "package_tar".
  3259. </para>
  3260. <para>
  3261. The BitBake configuration file initially defines this
  3262. variable as a sub-folder of
  3263. <link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link>:
  3264. <literallayout class='monospaced'>
  3265. DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
  3266. </literallayout>
  3267. </para>
  3268. <para>
  3269. The
  3270. <link linkend='ref-classes-package_tar'><filename>package_tar</filename></link>
  3271. class uses the
  3272. <filename>DEPLOY_DIR_TAR</filename> variable to make sure
  3273. the
  3274. <link linkend='ref-tasks-package_write_tar'><filename>do_package_write_tar</filename></link>
  3275. task writes TAR packages into the appropriate folder.
  3276. For more information on how packaging works, see the
  3277. "<ulink url='&YOCTO_DOCS_OM_URL;#package-feeds-dev-environment'>Package Feeds</ulink>"
  3278. section in the Yocto Project Overview and Concepts Manual.
  3279. </para>
  3280. </glossdef>
  3281. </glossentry>
  3282. <glossentry id='var-DEPLOYDIR'><glossterm>DEPLOYDIR</glossterm>
  3283. <info>
  3284. DEPLOYDIR[doc] = "For recipes that inherit the deploy class, the DEPLOYDIR points to a temporary work area for deployed files."
  3285. </info>
  3286. <glossdef>
  3287. <para role="glossdeffirst">
  3288. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3289. When inheriting the
  3290. <link linkend='ref-classes-deploy'><filename>deploy</filename></link>
  3291. class, the <filename>DEPLOYDIR</filename> points to a
  3292. temporary work area for deployed files that is set in the
  3293. <filename>deploy</filename> class as follows:
  3294. <literallayout class='monospaced'>
  3295. DEPLOYDIR = "${WORKDIR}/deploy-${<link linkend='var-PN'><filename>PN</filename></link>}"
  3296. </literallayout>
  3297. </para>
  3298. <para>
  3299. Recipes inheriting the <filename>deploy</filename> class
  3300. should copy files to be deployed into
  3301. <filename>DEPLOYDIR</filename>, and the class will take
  3302. care of copying them into
  3303. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>
  3304. afterwards.
  3305. </para>
  3306. </glossdef>
  3307. </glossentry>
  3308. <glossentry id='var-DESCRIPTION'><glossterm>DESCRIPTION</glossterm>
  3309. <info>
  3310. DESCRIPTION[doc] = "The package description used by package managers. If not set, DESCRIPTION takes the value of the SUMMARY variable."
  3311. </info>
  3312. <glossdef>
  3313. <para role="glossdeffirst">
  3314. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3315. The package description used by package managers.
  3316. If not set, <filename>DESCRIPTION</filename> takes
  3317. the value of the
  3318. <link linkend='var-SUMMARY'><filename>SUMMARY</filename></link>
  3319. variable.
  3320. </para>
  3321. </glossdef>
  3322. </glossentry>
  3323. <glossentry id='var-DISK_SIGNATURE'><glossterm>DISK_SIGNATURE</glossterm>
  3324. <info>
  3325. DISK_SIGNATURE[doc] = "A 32-bit MBR disk signature used by directdisk images."
  3326. </info>
  3327. <glossdef>
  3328. <para role="glossdeffirst">
  3329. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3330. A 32-bit MBR disk signature used by
  3331. <filename>directdisk</filename> images.
  3332. </para>
  3333. <para>
  3334. By default, the signature is set to an automatically
  3335. generated random value that allows the OpenEmbedded
  3336. build system to create a boot loader.
  3337. You can override the signature in the image recipe
  3338. by setting <filename>DISK_SIGNATURE</filename> to an
  3339. 8-digit hex string.
  3340. You might want to override
  3341. <filename>DISK_SIGNATURE</filename> if you want the disk
  3342. signature to remain constant between image builds.
  3343. </para>
  3344. <para>
  3345. When using Linux 3.8 or later, you can use
  3346. <filename>DISK_SIGNATURE</filename> to specify the root
  3347. by UUID to allow the kernel to locate the root device
  3348. even if the device name changes due to differences in
  3349. hardware configuration.
  3350. By default, <filename>ROOT_VM</filename> is set
  3351. as follows:
  3352. <literallayout class='monospaced'>
  3353. ROOT_VM ?= "root=/dev/sda2"
  3354. </literallayout>
  3355. However, you can change this to locate the root device
  3356. using the disk signature instead:
  3357. <literallayout class='monospaced'>
  3358. ROOT_VM = "root=PARTUUID=${DISK_SIGNATURE}-02"
  3359. </literallayout>
  3360. </para>
  3361. <para>
  3362. As previously mentioned, it is possible to set the
  3363. <filename>DISK_SIGNATURE</filename> variable in your
  3364. <filename>local.conf</filename> file to a fixed
  3365. value if you do not want <filename>syslinux.cfg</filename>
  3366. changing for each build.
  3367. You might find this useful when you want to upgrade the
  3368. root filesystem on a device without having to recreate or
  3369. modify the master boot record.
  3370. </para>
  3371. </glossdef>
  3372. </glossentry>
  3373. <glossentry id='var-DISTRO'><glossterm>DISTRO</glossterm>
  3374. <info>
  3375. DISTRO[doc] = "The short name of the distribution. If the variable is blank, meta/conf/distro/defaultsetup.conf will be used."
  3376. </info>
  3377. <glossdef>
  3378. <para role="glossdeffirst">
  3379. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3380. The short name of the distribution.
  3381. For information on the long name of the distribution, see
  3382. the
  3383. <link linkend='var-DISTRO_NAME'><filename>DISTRO_NAME</filename></link>
  3384. variable.
  3385. </para>
  3386. <para>
  3387. The <filename>DISTRO</filename> variable corresponds to a
  3388. distribution configuration file whose root name is the
  3389. same as the variable's argument and whose filename
  3390. extension is <filename>.conf</filename>.
  3391. For example, the distribution configuration file for the
  3392. Poky distribution is named <filename>poky.conf</filename>
  3393. and resides in the
  3394. <filename>meta-poky/conf/distro</filename> directory of
  3395. the
  3396. <link linkend='source-directory'>Source Directory</link>.
  3397. </para>
  3398. <para>
  3399. Within that <filename>poky.conf</filename> file, the
  3400. <filename>DISTRO</filename> variable is set as follows:
  3401. <literallayout class='monospaced'>
  3402. DISTRO = "poky"
  3403. </literallayout>
  3404. </para>
  3405. <para>
  3406. Distribution configuration files are located in a
  3407. <filename>conf/distro</filename> directory within the
  3408. <link linkend='metadata'>Metadata</link>
  3409. that contains the distribution configuration.
  3410. The value for <filename>DISTRO</filename> must not contain
  3411. spaces, and is typically all lower-case.
  3412. <note>
  3413. If the <filename>DISTRO</filename> variable is blank,
  3414. a set of default configurations are used, which are
  3415. specified within
  3416. <filename>meta/conf/distro/defaultsetup.conf</filename>
  3417. also in the Source Directory.
  3418. </note>
  3419. </para>
  3420. </glossdef>
  3421. </glossentry>
  3422. <glossentry id='var-DISTRO_CODENAME'><glossterm>DISTRO_CODENAME</glossterm>
  3423. <info>
  3424. DISTRO_CODENAME[doc] = "Specifies a codename for the distribution being built."
  3425. </info>
  3426. <glossdef>
  3427. <para role="glossdeffirst">
  3428. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3429. Specifies a codename for the distribution being built.
  3430. </para>
  3431. </glossdef>
  3432. </glossentry>
  3433. <glossentry id='var-DISTRO_EXTRA_RDEPENDS'><glossterm>DISTRO_EXTRA_RDEPENDS</glossterm>
  3434. <info>
  3435. 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."
  3436. </info>
  3437. <glossdef>
  3438. <para role="glossdeffirst">
  3439. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3440. Specifies a list of distro-specific packages to add to all images.
  3441. This variable takes affect through
  3442. <filename>packagegroup-base</filename> so the
  3443. variable only really applies to the more full-featured
  3444. images that include <filename>packagegroup-base</filename>.
  3445. You can use this variable to keep distro policy out of
  3446. generic images.
  3447. As with all other distro variables, you set this variable
  3448. in the distro <filename>.conf</filename> file.
  3449. </para>
  3450. </glossdef>
  3451. </glossentry>
  3452. <glossentry id='var-DISTRO_EXTRA_RRECOMMENDS'><glossterm>DISTRO_EXTRA_RRECOMMENDS</glossterm>
  3453. <info>
  3454. 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."
  3455. </info>
  3456. <glossdef>
  3457. <para role="glossdeffirst">
  3458. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3459. Specifies a list of distro-specific packages to add to all images
  3460. if the packages exist.
  3461. The packages might not exist or be empty (e.g. kernel modules).
  3462. The list of packages are automatically installed but you can
  3463. remove them.
  3464. </para>
  3465. </glossdef>
  3466. </glossentry>
  3467. <glossentry id='var-DISTRO_FEATURES'><glossterm>DISTRO_FEATURES</glossterm>
  3468. <info>
  3469. DISTRO_FEATURES[doc] = "The features enabled for the distribution."
  3470. </info>
  3471. <glossdef>
  3472. <para role="glossdeffirst">
  3473. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3474. The software support you want in your distribution for
  3475. various features.
  3476. You define your distribution features in the distribution
  3477. configuration file.
  3478. </para>
  3479. <para>
  3480. In most cases, the presence or absence of a feature in
  3481. <filename>DISTRO_FEATURES</filename> is translated to the
  3482. appropriate option supplied to the configure script
  3483. during the
  3484. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  3485. task for recipes that optionally support the feature.
  3486. For example, specifying "x11" in
  3487. <filename>DISTRO_FEATURES</filename>, causes
  3488. every piece of software built for the target that can
  3489. optionally support X11 to have its X11 support enabled.
  3490. </para>
  3491. <para>
  3492. Two more examples are Bluetooth and NFS support.
  3493. For a more complete list of features that ships with the
  3494. Yocto Project and that you can provide with this variable,
  3495. see the
  3496. "<link linkend='ref-features-distro'>Distro Features</link>"
  3497. section.
  3498. </para>
  3499. </glossdef>
  3500. </glossentry>
  3501. <glossentry id='var-DISTRO_FEATURES_BACKFILL'><glossterm>DISTRO_FEATURES_BACKFILL</glossterm>
  3502. <info>
  3503. 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."
  3504. </info>
  3505. <glossdef>
  3506. <para role="glossdeffirst">
  3507. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3508. Features to be added to
  3509. <filename><link linkend='var-DISTRO_FEATURES'>DISTRO_FEATURES</link></filename>
  3510. if not also present in
  3511. <filename><link linkend='var-DISTRO_FEATURES_BACKFILL_CONSIDERED'>DISTRO_FEATURES_BACKFILL_CONSIDERED</link></filename>.
  3512. </para>
  3513. <para>
  3514. This variable is set in the <filename>meta/conf/bitbake.conf</filename> file.
  3515. It is not intended to be user-configurable.
  3516. It is best to just reference the variable to see which distro features are
  3517. being backfilled for all distro configurations.
  3518. See the <link linkend='ref-features-backfill'>Feature Backfilling</link> section for
  3519. more information.
  3520. </para>
  3521. </glossdef>
  3522. </glossentry>
  3523. <glossentry id='var-DISTRO_FEATURES_BACKFILL_CONSIDERED'><glossterm>DISTRO_FEATURES_BACKFILL_CONSIDERED</glossterm>
  3524. <info>
  3525. DISTRO_FEATURES_BACKFILL_CONSIDERED[doc] = "Features from DISTRO_FEATURES_BACKFILL that should not be backfilled (i.e. added to DISTRO_FEATURES) during the build."
  3526. </info>
  3527. <glossdef>
  3528. <para role="glossdeffirst">
  3529. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3530. Features from
  3531. <filename><link linkend='var-DISTRO_FEATURES_BACKFILL'>DISTRO_FEATURES_BACKFILL</link></filename>
  3532. that should not be backfilled (i.e. added to
  3533. <filename><link linkend='var-DISTRO_FEATURES'>DISTRO_FEATURES</link></filename>)
  3534. during the build.
  3535. See the "<link linkend='ref-features-backfill'>Feature Backfilling</link>" section for
  3536. more information.
  3537. </para>
  3538. </glossdef>
  3539. </glossentry>
  3540. <glossentry id='var-DISTRO_FEATURES_DEFAULT'><glossterm>DISTRO_FEATURES_DEFAULT</glossterm>
  3541. <info>
  3542. DISTRO_FEATURES_DEFAULT[doc] = "Provides the default list of distro features with the exception of any libc-specific features."
  3543. </info>
  3544. <glossdef>
  3545. <para role="glossdeffirst">
  3546. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3547. A convenience variable that gives you the default
  3548. list of distro features with the exception of any
  3549. features specific to the C library
  3550. (<filename>libc</filename>).
  3551. </para>
  3552. <para>
  3553. When creating a custom distribution, you might find it
  3554. useful to be able to reuse the default
  3555. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3556. options without the need to write out the full set.
  3557. Here is an example that uses
  3558. <filename>DISTRO_FEATURES_DEFAULT</filename> from a
  3559. custom distro configuration file:
  3560. <literallayout class='monospaced'>
  3561. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} myfeature"
  3562. </literallayout>
  3563. </para>
  3564. </glossdef>
  3565. </glossentry>
  3566. <glossentry id='var-DISTRO_FEATURES_FILTER_NATIVE'><glossterm>DISTRO_FEATURES_FILTER_NATIVE</glossterm>
  3567. <info>
  3568. 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."
  3569. </info>
  3570. <glossdef>
  3571. <para role="glossdeffirst">
  3572. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3573. Specifies a list of features that if present in
  3574. the target
  3575. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3576. value should be included in
  3577. <filename>DISTRO_FEATURES</filename> when building native
  3578. recipes.
  3579. This variable is used in addition to the features
  3580. filtered using the
  3581. <link linkend='var-DISTRO_FEATURES_NATIVE'><filename>DISTRO_FEATURES_NATIVE</filename></link>
  3582. variable.
  3583. </para>
  3584. </glossdef>
  3585. </glossentry>
  3586. <glossentry id='var-DISTRO_FEATURES_FILTER_NATIVESDK'><glossterm>DISTRO_FEATURES_FILTER_NATIVESDK</glossterm>
  3587. <info>
  3588. 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."
  3589. </info>
  3590. <glossdef>
  3591. <para role="glossdeffirst">
  3592. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3593. Specifies a list of features that if present in the target
  3594. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3595. value should be included in
  3596. <filename>DISTRO_FEATURES</filename> when building
  3597. nativesdk recipes.
  3598. This variable is used in addition to the features
  3599. filtered using the
  3600. <link linkend='var-DISTRO_FEATURES_NATIVESDK'><filename>DISTRO_FEATURES_NATIVESDK</filename></link>
  3601. variable.
  3602. </para>
  3603. </glossdef>
  3604. </glossentry>
  3605. <glossentry id='var-DISTRO_FEATURES_LIBC'><glossterm>DISTRO_FEATURES_LIBC</glossterm>
  3606. <info>
  3607. DISTRO_FEATURES_LIBC[doc] = "Specifies the list of distro features that are specific to the C library (libc)."
  3608. </info>
  3609. <glossdef>
  3610. <para role="glossdeffirst">
  3611. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3612. A convenience variable that specifies the list of distro
  3613. features that are specific to the C library
  3614. (<filename>libc</filename>).
  3615. Typically, these features are prefixed with "libc-" and
  3616. control which features are enabled at during the build
  3617. within the C library itself.
  3618. </para>
  3619. </glossdef>
  3620. </glossentry>
  3621. <glossentry id='var-DISTRO_FEATURES_NATIVE'><glossterm>DISTRO_FEATURES_NATIVE</glossterm>
  3622. <info>
  3623. DISTRO_FEATURES_NATIVE[doc] = "Specifies a list of features that should be included in DISTRO_FEATURES when building native recipes."
  3624. </info>
  3625. <glossdef>
  3626. <para role="glossdeffirst">
  3627. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3628. Specifies a list of features that should be included in
  3629. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3630. when building native recipes.
  3631. This variable is used in addition to the features
  3632. filtered using the
  3633. <link linkend='var-DISTRO_FEATURES_FILTER_NATIVE'><filename>DISTRO_FEATURES_FILTER_NATIVE</filename></link>
  3634. variable.
  3635. </para>
  3636. </glossdef>
  3637. </glossentry>
  3638. <glossentry id='var-DISTRO_FEATURES_NATIVESDK'><glossterm>DISTRO_FEATURES_NATIVESDK</glossterm>
  3639. <info>
  3640. DISTRO_FEATURES_NATIVESDK[doc] = "Specifies a list of features that should be included in DISTRO_FEATURES when building nativesdk recipes."
  3641. </info>
  3642. <glossdef>
  3643. <para role="glossdeffirst">
  3644. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3645. Specifies a list of features that should be included in
  3646. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>
  3647. when building nativesdk recipes.
  3648. This variable is used in addition to the features
  3649. filtered using the
  3650. <link linkend='var-DISTRO_FEATURES_FILTER_NATIVESDK'><filename>DISTRO_FEATURES_FILTER_NATIVESDK</filename></link>
  3651. variable.
  3652. </para>
  3653. </glossdef>
  3654. </glossentry>
  3655. <glossentry id='var-DISTRO_NAME'><glossterm>DISTRO_NAME</glossterm>
  3656. <info>
  3657. DISTRO_NAME[doc] = "The long name of the distribution."
  3658. </info>
  3659. <glossdef>
  3660. <para role="glossdeffirst">
  3661. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3662. The long name of the distribution.
  3663. For information on the short name of the distribution, see
  3664. the
  3665. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>
  3666. variable.
  3667. </para>
  3668. <para>
  3669. The <filename>DISTRO_NAME</filename> variable corresponds
  3670. to a distribution configuration file whose root name is the
  3671. same as the variable's argument and whose filename
  3672. extension is <filename>.conf</filename>.
  3673. For example, the distribution configuration file for the
  3674. Poky distribution is named <filename>poky.conf</filename>
  3675. and resides in the
  3676. <filename>meta-poky/conf/distro</filename> directory of
  3677. the
  3678. <link linkend='source-directory'>Source Directory</link>.
  3679. </para>
  3680. <para>
  3681. Within that <filename>poky.conf</filename> file, the
  3682. <filename>DISTRO_NAME</filename> variable is set as
  3683. follows:
  3684. <literallayout class='monospaced'>
  3685. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  3686. </literallayout>
  3687. </para>
  3688. <para>
  3689. Distribution configuration files are located in a
  3690. <filename>conf/distro</filename> directory within the
  3691. <link linkend='metadata'>Metadata</link>
  3692. that contains the distribution configuration.
  3693. <note>
  3694. If the <filename>DISTRO_NAME</filename> variable is
  3695. blank, a set of default configurations are used, which
  3696. are specified within
  3697. <filename>meta/conf/distro/defaultsetup.conf</filename>
  3698. also in the Source Directory.
  3699. </note>
  3700. </para>
  3701. </glossdef>
  3702. </glossentry>
  3703. <glossentry id='var-DISTRO_VERSION'><glossterm>DISTRO_VERSION</glossterm>
  3704. <info>
  3705. DISTRO_VERSION[doc] = "The version of the distribution."
  3706. </info>
  3707. <glossdef>
  3708. <para role="glossdeffirst">
  3709. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3710. The version of the distribution.
  3711. </para>
  3712. </glossdef>
  3713. </glossentry>
  3714. <glossentry id='var-DISTROOVERRIDES'><glossterm>DISTROOVERRIDES</glossterm>
  3715. <info>
  3716. DISTROOVERRIDES[doc] = "A colon-separated list of overrides specific to the current distribution."
  3717. </info>
  3718. <glossdef>
  3719. <para role="glossdeffirst">
  3720. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3721. A colon-separated list of overrides specific to the
  3722. current distribution.
  3723. By default, this list includes the value of
  3724. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>.
  3725. </para>
  3726. <para>
  3727. You can extend <filename>DISTROOVERRIDES</filename>
  3728. to add extra overrides that should apply to
  3729. the distribution.
  3730. </para>
  3731. <para>
  3732. The underlying mechanism behind
  3733. <filename>DISTROOVERRIDES</filename> is simply that it
  3734. is included in the default value of
  3735. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  3736. </para>
  3737. </glossdef>
  3738. </glossentry>
  3739. <glossentry id='var-DL_DIR'><glossterm>DL_DIR</glossterm>
  3740. <info>
  3741. 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."
  3742. </info>
  3743. <glossdef>
  3744. <para role="glossdeffirst">
  3745. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3746. The central download directory used by the build process to
  3747. store downloads.
  3748. By default, <filename>DL_DIR</filename> gets files
  3749. suitable for mirroring for everything except Git
  3750. repositories.
  3751. If you want tarballs of Git repositories, use the
  3752. <link linkend='var-BB_GENERATE_MIRROR_TARBALLS'><filename>BB_GENERATE_MIRROR_TARBALLS</filename></link>
  3753. variable.
  3754. </para>
  3755. <para>
  3756. You can set this directory by defining the
  3757. <filename>DL_DIR</filename> variable in the
  3758. <filename>conf/local.conf</filename> file.
  3759. This directory is self-maintaining and you should not have
  3760. to touch it.
  3761. By default, the directory is <filename>downloads</filename>
  3762. in the
  3763. <link linkend='build-directory'>Build Directory</link>.
  3764. <literallayout class='monospaced'>
  3765. #DL_DIR ?= "${TOPDIR}/downloads"
  3766. </literallayout>
  3767. To specify a different download directory, simply remove
  3768. the comment from the line and provide your directory.
  3769. </para>
  3770. <para>
  3771. During a first build, the system downloads many different
  3772. source code tarballs from various upstream projects.
  3773. Downloading can take a while, particularly if your network
  3774. connection is slow.
  3775. Tarballs are all stored in the directory defined by
  3776. <filename>DL_DIR</filename> and the build system looks there
  3777. first to find source tarballs.
  3778. <note>
  3779. When wiping and rebuilding, you can preserve this
  3780. directory to speed up this part of subsequent
  3781. builds.
  3782. </note>
  3783. </para>
  3784. <para>
  3785. You can safely share this directory between multiple builds
  3786. on the same development machine.
  3787. For additional information on how the build process gets
  3788. source files when working behind a firewall or proxy server,
  3789. see this specific question in the
  3790. "<link linkend='how-does-the-yocto-project-obtain-source-code-and-will-it-work-behind-my-firewall-or-proxy-server'>FAQ</link>"
  3791. chapter.
  3792. You can also refer to the
  3793. "<ulink url='&YOCTO_WIKI_URL;/wiki/Working_Behind_a_Network_Proxy'>Working Behind a Network Proxy</ulink>"
  3794. Wiki page.
  3795. </para>
  3796. </glossdef>
  3797. </glossentry>
  3798. <glossentry id='var-DOC_COMPRESS'><glossterm>DOC_COMPRESS</glossterm>
  3799. <info>
  3800. 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."
  3801. </info>
  3802. <glossdef>
  3803. <para role="glossdeffirst">
  3804. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3805. When inheriting the
  3806. <link linkend='ref-classes-compress_doc'><filename>compress_doc</filename></link>
  3807. class, this variable sets the compression policy used when
  3808. the OpenEmbedded build system compresses man pages and info
  3809. pages.
  3810. By default, the compression method used is gz (gzip).
  3811. Other policies available are xz and bz2.
  3812. </para>
  3813. <para>
  3814. For information on policies and on how to use this
  3815. variable, see the comments in the
  3816. <filename>meta/classes/compress_doc.bbclass</filename> file.
  3817. </para>
  3818. </glossdef>
  3819. </glossentry>
  3820. </glossdiv>
  3821. <glossdiv id='var-glossary-e'><title>E</title>
  3822. <glossentry id='var-EFI_PROVIDER'><glossterm>EFI_PROVIDER</glossterm>
  3823. <info>
  3824. 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."
  3825. </info>
  3826. <glossdef>
  3827. <para role="glossdeffirst">
  3828. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3829. When building bootable images (i.e. where
  3830. <filename>hddimg</filename>, <filename>iso</filename>,
  3831. or <filename>wic.vmdk</filename> is in
  3832. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>),
  3833. the <filename>EFI_PROVIDER</filename> variable specifies
  3834. the EFI bootloader to use.
  3835. The default is "grub-efi", but "systemd-boot" can be used
  3836. instead.
  3837. </para>
  3838. <para>
  3839. See the
  3840. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  3841. and
  3842. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  3843. classes for more information.
  3844. </para>
  3845. </glossdef>
  3846. </glossentry>
  3847. <glossentry id='var-ENABLE_BINARY_LOCALE_GENERATION'><glossterm>ENABLE_BINARY_LOCALE_GENERATION</glossterm>
  3848. <info>
  3849. 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."
  3850. </info>
  3851. <glossdef>
  3852. <para role="glossdeffirst">
  3853. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3854. Variable that controls which locales for
  3855. <filename>glibc</filename> are generated during the
  3856. build (useful if the target device has 64Mbytes
  3857. of RAM or less).
  3858. </para>
  3859. </glossdef>
  3860. </glossentry>
  3861. <glossentry id='var-ERR_REPORT_DIR'><glossterm>ERR_REPORT_DIR</glossterm>
  3862. <info>
  3863. 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."
  3864. </info>
  3865. <glossdef>
  3866. <para role="glossdeffirst">
  3867. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3868. When used with the
  3869. <link linkend='ref-classes-report-error'><filename>report-error</filename></link>
  3870. class, specifies the path used for storing the debug files
  3871. created by the
  3872. <ulink url='&YOCTO_DOCS_DEV_URL;#using-the-error-reporting-tool'>error reporting tool</ulink>,
  3873. which allows you to submit build errors you encounter to a
  3874. central database.
  3875. By default, the value of this variable is
  3876. <filename>${</filename><link linkend='var-LOG_DIR'><filename>LOG_DIR</filename></link><filename>}/error-report</filename>.
  3877. </para>
  3878. <para>
  3879. You can set <filename>ERR_REPORT_DIR</filename> to the path
  3880. you want the error reporting tool to store the debug files
  3881. as follows in your <filename>local.conf</filename> file:
  3882. <literallayout class='monospaced'>
  3883. ERR_REPORT_DIR = "<replaceable>path</replaceable>"
  3884. </literallayout>
  3885. </para>
  3886. </glossdef>
  3887. </glossentry>
  3888. <glossentry id='var-ERROR_QA'><glossterm>ERROR_QA</glossterm>
  3889. <info>
  3890. ERROR_QA[doc] = "Specifies the quality assurance checks whose failures are reported as errors by the OpenEmbedded build system."
  3891. </info>
  3892. <glossdef>
  3893. <para role="glossdeffirst">
  3894. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3895. Specifies the quality assurance checks whose failures are
  3896. reported as errors by the OpenEmbedded build system.
  3897. You set this variable in your distribution configuration
  3898. file.
  3899. For a list of the checks you can control with this variable,
  3900. see the
  3901. "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  3902. section.
  3903. </para>
  3904. </glossdef>
  3905. </glossentry>
  3906. <glossentry id='var-EXCLUDE_FROM_SHLIBS'><glossterm>EXCLUDE_FROM_SHLIBS</glossterm>
  3907. <info>
  3908. EXCLUDE_FROM_SHLIBS[doc] = "Causes the OpenEmbedded build system's shared libraries resolver to exclude an entire package when scanning for shared libraries."
  3909. </info>
  3910. <glossdef>
  3911. <para role="glossdeffirst">
  3912. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3913. Triggers the OpenEmbedded build system's shared libraries
  3914. resolver to exclude an entire package when scanning for
  3915. shared libraries.
  3916. <note>
  3917. The shared libraries resolver's functionality results
  3918. in part from the internal function
  3919. <filename>package_do_shlibs</filename>, which is part of
  3920. the
  3921. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  3922. task.
  3923. You should be aware that the shared libraries resolver
  3924. might implicitly define some dependencies between
  3925. packages.
  3926. </note>
  3927. The <filename>EXCLUDE_FROM_SHLIBS</filename> variable is
  3928. similar to the
  3929. <link linkend='var-PRIVATE_LIBS'><filename>PRIVATE_LIBS</filename></link>
  3930. variable, which excludes a package's particular libraries
  3931. only and not the whole package.
  3932. </para>
  3933. <para>
  3934. Use the
  3935. <filename>EXCLUDE_FROM_SHLIBS</filename> variable by
  3936. setting it to "1" for a particular package:
  3937. <literallayout class='monospaced'>
  3938. EXCLUDE_FROM_SHLIBS = "1"
  3939. </literallayout>
  3940. </para>
  3941. </glossdef>
  3942. </glossentry>
  3943. <glossentry id='var-EXCLUDE_FROM_WORLD'><glossterm>EXCLUDE_FROM_WORLD</glossterm>
  3944. <info>
  3945. EXCLUDE_FROM_WORLD[doc] = "Directs BitBake to exclude a recipe from world builds (i.e. bitbake world)."
  3946. </info>
  3947. <glossdef>
  3948. <para role="glossdeffirst">
  3949. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3950. Directs BitBake to exclude a recipe from world builds (i.e.
  3951. <filename>bitbake world</filename>).
  3952. During world builds, BitBake locates, parses and builds all
  3953. recipes found in every layer exposed in the
  3954. <filename>bblayers.conf</filename> configuration file.
  3955. </para>
  3956. <para>
  3957. To exclude a recipe from a world build using this variable,
  3958. set the variable to "1" in the recipe.
  3959. </para>
  3960. <note>
  3961. Recipes added to <filename>EXCLUDE_FROM_WORLD</filename>
  3962. may still be built during a world build in order to satisfy
  3963. dependencies of other recipes.
  3964. Adding a recipe to <filename>EXCLUDE_FROM_WORLD</filename>
  3965. only ensures that the recipe is not explicitly added
  3966. to the list of build targets in a world build.
  3967. </note>
  3968. </glossdef>
  3969. </glossentry>
  3970. <glossentry id='var-EXTENDPE'><glossterm>EXTENDPE</glossterm>
  3971. <info>
  3972. 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."
  3973. </info>
  3974. <glossdef>
  3975. <para role="glossdeffirst">
  3976. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3977. Used with file and pathnames to create a prefix for a recipe's
  3978. version based on the recipe's
  3979. <link linkend='var-PE'><filename>PE</filename></link> value.
  3980. If <filename>PE</filename> is set and greater than zero for a recipe,
  3981. <filename>EXTENDPE</filename> becomes that value (e.g if
  3982. <filename>PE</filename> is equal to "1" then <filename>EXTENDPE</filename>
  3983. becomes "1_").
  3984. If a recipe's <filename>PE</filename> is not set (the default) or is equal to
  3985. zero, <filename>EXTENDPE</filename> becomes "".</para>
  3986. <para>See the <link linkend='var-STAMP'><filename>STAMP</filename></link>
  3987. variable for an example.
  3988. </para>
  3989. </glossdef>
  3990. </glossentry>
  3991. <glossentry id='var-EXTENDPKGV'><glossterm>EXTENDPKGV</glossterm>
  3992. <info>
  3993. EXTENDPKGV[doc] = "The full package version specification as it appears on the final packages produced by a recipe."
  3994. </info>
  3995. <glossdef>
  3996. <para role="glossdeffirst">
  3997. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  3998. The full package version specification as it appears on the
  3999. final packages produced by a recipe.
  4000. The variable's value is normally used to fix a runtime
  4001. dependency to the exact same version of another package
  4002. in the same recipe:
  4003. <literallayout class='monospaced'>
  4004. RDEPENDS_${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  4005. </literallayout>
  4006. </para>
  4007. <para>
  4008. The dependency relationships are intended to force the
  4009. package manager to upgrade these types of packages in
  4010. lock-step.
  4011. </para>
  4012. </glossdef>
  4013. </glossentry>
  4014. <glossentry id='var-EXTERNAL_KERNEL_TOOLS'><glossterm>EXTERNAL_KERNEL_TOOLS</glossterm>
  4015. <info>
  4016. EXTERNAL_KERNEL_TOOLS[doc] = "Indicates kernel tools are external to the source tree."
  4017. </info>
  4018. <glossdef>
  4019. <para role="glossdeffirst">
  4020. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4021. When set, the <filename>EXTERNAL_KERNEL_TOOLS</filename>
  4022. variable indicates that these tools are not in the
  4023. source tree.
  4024. </para>
  4025. <para>
  4026. When kernel tools are available in the tree, they are
  4027. preferred over any externally installed tools.
  4028. Setting the <filename>EXTERNAL_KERNEL_TOOLS</filename>
  4029. variable tells the OpenEmbedded build system to prefer
  4030. the installed external tools.
  4031. See the
  4032. <link linkend='ref-classes-kernel-yocto'><filename>kernel-yocto</filename></link>
  4033. class in <filename>meta/classes</filename> to see how
  4034. the variable is used.
  4035. </para>
  4036. </glossdef>
  4037. </glossentry>
  4038. <glossentry id='var-EXTERNALSRC'><glossterm>EXTERNALSRC</glossterm>
  4039. <info>
  4040. EXTERNALSRC[doc] = "If externalsrc.bbclass is inherited, this variable points to the source tree, which is outside of the OpenEmbedded build system."
  4041. </info>
  4042. <glossdef>
  4043. <para role="glossdeffirst">
  4044. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4045. When inheriting the
  4046. <link linkend='ref-classes-externalsrc'><filename>externalsrc</filename></link>
  4047. class, this variable points to the source tree, which is
  4048. outside of the OpenEmbedded build system.
  4049. When set, this variable sets the
  4050. <link linkend='var-S'><filename>S</filename></link>
  4051. variable, which is what the OpenEmbedded build system uses
  4052. to locate unpacked recipe source code.
  4053. </para>
  4054. <para>
  4055. For more information on
  4056. <filename>externalsrc.bbclass</filename>, see the
  4057. "<link linkend='ref-classes-externalsrc'><filename>externalsrc.bbclass</filename></link>"
  4058. section.
  4059. You can also find information on how to use this variable
  4060. in the
  4061. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-software-from-an-external-source'>Building Software from an External Source</ulink>"
  4062. section in the Yocto Project Development Tasks Manual.
  4063. </para>
  4064. </glossdef>
  4065. </glossentry>
  4066. <glossentry id='var-EXTERNALSRC_BUILD'><glossterm>EXTERNALSRC_BUILD</glossterm>
  4067. <info>
  4068. 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."
  4069. </info>
  4070. <glossdef>
  4071. <para role="glossdeffirst">
  4072. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4073. When inheriting the
  4074. <link linkend='ref-classes-externalsrc'><filename>externalsrc</filename></link>
  4075. class, this variable points to the directory in which the
  4076. recipe's source code is built, which is outside of the
  4077. OpenEmbedded build system.
  4078. When set, this variable sets the
  4079. <link linkend='var-B'><filename>B</filename></link>
  4080. variable, which is what the OpenEmbedded build system uses
  4081. to locate the Build Directory.
  4082. </para>
  4083. <para>
  4084. For more information on
  4085. <filename>externalsrc.bbclass</filename>, see the
  4086. "<link linkend='ref-classes-externalsrc'><filename>externalsrc.bbclass</filename></link>"
  4087. section.
  4088. You can also find information on how to use this variable
  4089. in the
  4090. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-software-from-an-external-source'>Building Software from an External Source</ulink>"
  4091. section in the Yocto Project Development Tasks Manual.
  4092. </para>
  4093. </glossdef>
  4094. </glossentry>
  4095. <glossentry id='var-EXTRA_AUTORECONF'><glossterm>EXTRA_AUTORECONF</glossterm>
  4096. <info>
  4097. EXTRA_AUTORECONF[doc] = "Extra options passed to the autoreconf command, which is executed during do_configure."
  4098. </info>
  4099. <glossdef>
  4100. <para role="glossdeffirst">
  4101. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4102. For recipes inheriting the
  4103. <link linkend='ref-classes-autotools'><filename>autotools</filename></link>
  4104. class, you can use <filename>EXTRA_AUTORECONF</filename> to
  4105. specify extra options to pass to the
  4106. <filename>autoreconf</filename> command that is
  4107. executed during the
  4108. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  4109. task.
  4110. </para>
  4111. <para>
  4112. The default value is "--exclude=autopoint".
  4113. </para>
  4114. </glossdef>
  4115. </glossentry>
  4116. <glossentry id='var-EXTRA_IMAGE_FEATURES'><glossterm>EXTRA_IMAGE_FEATURES</glossterm>
  4117. <info>
  4118. 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."
  4119. </info>
  4120. <glossdef>
  4121. <para role="glossdeffirst">
  4122. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4123. A list of additional features to include in an image.
  4124. When listing more than one feature, separate them with
  4125. a space.
  4126. </para>
  4127. <para>
  4128. Typically, you configure this variable in your
  4129. <filename>local.conf</filename> file, which is found in the
  4130. <link linkend='build-directory'>Build Directory</link>.
  4131. Although you can use this variable from within a recipe,
  4132. best practices dictate that you do not.
  4133. <note>
  4134. To enable primary features from within the image
  4135. recipe, use the
  4136. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  4137. variable.
  4138. </note>
  4139. </para>
  4140. <para>
  4141. Here are some examples of features you can add:
  4142. <literallayout class='monospaced'>
  4143. "dbg-pkgs" - Adds -dbg packages for all installed packages
  4144. including symbol information for debugging and
  4145. profiling.
  4146. "debug-tweaks" - Makes an image suitable for debugging.
  4147. For example, allows root logins without
  4148. passwords and enables post-installation
  4149. logging. See the 'allow-empty-password'
  4150. and 'post-install-logging' features in
  4151. the "<link linkend='ref-features-image'>Image Features</link>" section for
  4152. more information.
  4153. "dev-pkgs" - Adds -dev packages for all installed packages.
  4154. This is useful if you want to develop against
  4155. the libraries in the image.
  4156. "read-only-rootfs" - Creates an image whose root
  4157. filesystem is read-only. See the
  4158. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-a-read-only-root-filesystem'>Creating a Read-Only Root Filesystem</ulink>"
  4159. section in the Yocto Project
  4160. Development Tasks Manual for
  4161. more information
  4162. "tools-debug" - Adds debugging tools such as gdb and
  4163. strace.
  4164. "tools-sdk" - Adds development tools such as gcc, make,
  4165. pkgconfig and so forth.
  4166. "tools-testapps" - Adds useful testing tools such as
  4167. ts_print, aplay, arecord and so
  4168. forth.
  4169. </literallayout>
  4170. </para>
  4171. <para>
  4172. For a complete list of image features that ships with the
  4173. Yocto Project, see the
  4174. "<link linkend="ref-features-image">Image Features</link>"
  4175. section.
  4176. </para>
  4177. <para>
  4178. For an example that shows how to customize your image by
  4179. using this variable, see the
  4180. "<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>"
  4181. section in the Yocto Project Development Tasks Manual.
  4182. </para>
  4183. </glossdef>
  4184. </glossentry>
  4185. <glossentry id='var-EXTRA_IMAGECMD'><glossterm>EXTRA_IMAGECMD</glossterm>
  4186. <info>
  4187. 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."
  4188. </info>
  4189. <glossdef>
  4190. <para role="glossdeffirst">
  4191. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4192. Specifies additional options for the image
  4193. creation command that has been specified in
  4194. <link linkend='var-IMAGE_CMD'><filename>IMAGE_CMD</filename></link>.
  4195. When setting this variable, use an override for the
  4196. associated image type.
  4197. Here is an example:
  4198. <literallayout class='monospaced'>
  4199. EXTRA_IMAGECMD_ext3 ?= "-i 4096"
  4200. </literallayout>
  4201. </para>
  4202. </glossdef>
  4203. </glossentry>
  4204. <glossentry id='var-EXTRA_IMAGEDEPENDS'><glossterm>EXTRA_IMAGEDEPENDS</glossterm>
  4205. <info>
  4206. 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."
  4207. </info>
  4208. <glossdef>
  4209. <para role="glossdeffirst">
  4210. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4211. A list of recipes to build that do not provide packages
  4212. for installing into the root filesystem.
  4213. </para>
  4214. <para>
  4215. Sometimes a recipe is required to build the final image but is not
  4216. needed in the root filesystem.
  4217. You can use the <filename>EXTRA_IMAGEDEPENDS</filename> variable to
  4218. list these recipes and thus specify the dependencies.
  4219. A typical example is a required bootloader in a machine configuration.
  4220. </para>
  4221. <note>
  4222. To add packages to the root filesystem, see the various
  4223. <filename>*<link linkend='var-RDEPENDS'>RDEPENDS</link></filename>
  4224. and <filename>*<link linkend='var-RRECOMMENDS'>RRECOMMENDS</link></filename>
  4225. variables.
  4226. </note>
  4227. </glossdef>
  4228. </glossentry>
  4229. <glossentry id='var-EXTRANATIVEPATH'><glossterm>EXTRANATIVEPATH</glossterm>
  4230. <info>
  4231. EXTRANATIVEPATH[doc] = "A list of subdirectories of ${STAGING_BINDIR_NATIVE} added to the beginning of the environment variable PATH."
  4232. </info>
  4233. <glossdef>
  4234. <para role="glossdeffirst">
  4235. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4236. A list of subdirectories of
  4237. <filename>${</filename><link linkend='var-STAGING_BINDIR_NATIVE'><filename>STAGING_BINDIR_NATIVE</filename></link><filename>}</filename>
  4238. added to the beginning of the environment variable
  4239. <filename>PATH</filename>.
  4240. As an example, the following prepends
  4241. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:"
  4242. to <filename>PATH</filename>:
  4243. <literallayout class='monospaced'>
  4244. EXTRANATIVEPATH = "foo bar"
  4245. </literallayout>
  4246. </para>
  4247. </glossdef>
  4248. </glossentry>
  4249. <glossentry id='var-EXTRA_OECMAKE'><glossterm>EXTRA_OECMAKE</glossterm>
  4250. <info>
  4251. EXTRA_OECMAKE[doc] = "Additional cmake options."
  4252. </info>
  4253. <glossdef>
  4254. <para role="glossdeffirst">
  4255. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4256. Additional <filename>cmake</filename> options.
  4257. </para>
  4258. </glossdef>
  4259. </glossentry>
  4260. <glossentry id='var-EXTRA_OECONF'><glossterm>EXTRA_OECONF</glossterm>
  4261. <info>
  4262. EXTRA_OECONF[doc] = "Additional configure script options."
  4263. </info>
  4264. <glossdef>
  4265. <para role="glossdeffirst">
  4266. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4267. Additional <filename>configure</filename> script options.
  4268. See
  4269. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>
  4270. for additional information on passing configure script
  4271. options.
  4272. </para>
  4273. </glossdef>
  4274. </glossentry>
  4275. <glossentry id='var-EXTRA_OEMAKE'><glossterm>EXTRA_OEMAKE</glossterm>
  4276. <info>
  4277. EXTRA_OEMAKE[doc] = "Additional GNU make options."
  4278. </info>
  4279. <glossdef>
  4280. <para role="glossdeffirst">
  4281. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4282. Additional GNU <filename>make</filename> options.
  4283. </para>
  4284. <para>
  4285. Because the <filename>EXTRA_OEMAKE</filename> defaults to
  4286. "", you need to set the variable to specify any required
  4287. GNU options.
  4288. </para>
  4289. <para>
  4290. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  4291. and
  4292. <link linkend='var-PARALLEL_MAKEINST'><filename>PARALLEL_MAKEINST</filename></link>
  4293. also make use of
  4294. <filename>EXTRA_OEMAKE</filename> to pass the required
  4295. flags.
  4296. </para>
  4297. </glossdef>
  4298. </glossentry>
  4299. <glossentry id='var-EXTRA_OESCONS'><glossterm>EXTRA_OESCONS</glossterm>
  4300. <info>
  4301. 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."
  4302. </info>
  4303. <glossdef>
  4304. <para role="glossdeffirst">
  4305. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4306. When inheriting the
  4307. <link linkend='ref-classes-scons'><filename>scons</filename></link>
  4308. class, this variable specifies additional configuration
  4309. options you want to pass to the
  4310. <filename>scons</filename> command line.
  4311. </para>
  4312. </glossdef>
  4313. </glossentry>
  4314. <glossentry id='var-EXTRA_USERS_PARAMS'><glossterm>EXTRA_USERS_PARAMS</glossterm>
  4315. <info>
  4316. EXTRA_USERS_PARAMS[doc] = "When a recipe inherits the extrausers class, this variable provides image level user and group operations."
  4317. </info>
  4318. <glossdef>
  4319. <para role="glossdeffirst">
  4320. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4321. When inheriting the
  4322. <link linkend='ref-classes-extrausers'><filename>extrausers</filename></link>
  4323. class, this variable provides image level user and group
  4324. operations.
  4325. This is a more global method of providing user and group
  4326. configuration as compared to using the
  4327. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  4328. class, which ties user and group configurations to a
  4329. specific recipe.
  4330. </para>
  4331. <para>
  4332. The set list of commands you can configure using the
  4333. <filename>EXTRA_USERS_PARAMS</filename> is shown in the
  4334. <filename>extrausers</filename> class.
  4335. These commands map to the normal Unix commands of the same
  4336. names:
  4337. <literallayout class='monospaced'>
  4338. # EXTRA_USERS_PARAMS = "\
  4339. # useradd -p '' tester; \
  4340. # groupadd developers; \
  4341. # userdel nobody; \
  4342. # groupdel -g video; \
  4343. # groupmod -g 1020 developers; \
  4344. # usermod -s /bin/sh tester; \
  4345. # "
  4346. </literallayout>
  4347. </para>
  4348. </glossdef>
  4349. </glossentry>
  4350. </glossdiv>
  4351. <glossdiv id='var-glossary-f'><title>F</title>
  4352. <glossentry id='var-FEATURE_PACKAGES'><glossterm>FEATURE_PACKAGES</glossterm>
  4353. <info>
  4354. 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."
  4355. </info>
  4356. <glossdef>
  4357. <para role="glossdeffirst">
  4358. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4359. Defines one or more packages to include in an image when
  4360. a specific item is included in
  4361. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  4362. When setting the value, <filename>FEATURE_PACKAGES</filename>
  4363. should have the name of the feature item as an override.
  4364. Here is an example:
  4365. <literallayout class='monospaced'>
  4366. FEATURE_PACKAGES_widget = "<replaceable>package1</replaceable> <replaceable>package2</replaceable>"
  4367. </literallayout>
  4368. </para>
  4369. <para>
  4370. In this example, if "widget" were added to
  4371. <filename>IMAGE_FEATURES</filename>, <replaceable>package1</replaceable> and
  4372. <replaceable>package2</replaceable> would be included in the image.
  4373. <note>
  4374. Packages installed by features defined through
  4375. <filename>FEATURE_PACKAGES</filename> are often package
  4376. groups.
  4377. While similarly named, you should not confuse the
  4378. <filename>FEATURE_PACKAGES</filename> variable with
  4379. package groups, which are discussed elsewhere in the
  4380. documentation.
  4381. </note>
  4382. </para>
  4383. </glossdef>
  4384. </glossentry>
  4385. <glossentry id='var-FEED_DEPLOYDIR_BASE_URI'><glossterm>FEED_DEPLOYDIR_BASE_URI</glossterm>
  4386. <info>
  4387. 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."
  4388. </info>
  4389. <glossdef>
  4390. <para role="glossdeffirst">
  4391. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4392. Points to the base URL of the server and location within
  4393. the document-root that provides the metadata and
  4394. packages required by OPKG to support runtime package
  4395. management of IPK packages.
  4396. You set this variable in your
  4397. <filename>local.conf</filename> file.
  4398. </para>
  4399. <para>
  4400. Consider the following example:
  4401. <literallayout class='monospaced'>
  4402. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  4403. </literallayout>
  4404. This example assumes you are serving your packages over
  4405. HTTP and your databases are located in a directory
  4406. named <filename>BOARD-dir</filename>, which is underneath
  4407. your HTTP server's document-root.
  4408. In this case, the OpenEmbedded build system generates a set
  4409. of configuration files for you in your target that work
  4410. with the feed.
  4411. </para>
  4412. </glossdef>
  4413. </glossentry>
  4414. <glossentry id='var-FILES'><glossterm>FILES</glossterm>
  4415. <info>
  4416. FILES[doc] = "The list of directories or files that are placed in a package."
  4417. </info>
  4418. <glossdef>
  4419. <para role="glossdeffirst">
  4420. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4421. The list of files and directories that are placed in a
  4422. package.
  4423. The
  4424. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  4425. variable lists the packages generated by a recipe.
  4426. </para>
  4427. <para>
  4428. To use the <filename>FILES</filename> variable, provide a
  4429. package name override that identifies the resulting package.
  4430. Then, provide a space-separated list of files or paths
  4431. that identify the files you want included as part of the
  4432. resulting package.
  4433. Here is an example:
  4434. <literallayout class='monospaced'>
  4435. FILES_${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  4436. </literallayout>
  4437. </para>
  4438. <note>
  4439. When specifying paths as part of the
  4440. <filename>FILES</filename> variable, it is good practice
  4441. to use appropriate path variables.
  4442. For example, use <filename>${sysconfdir}</filename> rather
  4443. than <filename>/etc</filename>, or
  4444. <filename>${bindir}</filename> rather than
  4445. <filename>/usr/bin</filename>.
  4446. You can find a list of these variables at the top of the
  4447. <filename>meta/conf/bitbake.conf</filename> file in the
  4448. <link linkend='source-directory'>Source Directory</link>.
  4449. You will also find the default values of the various
  4450. <filename>FILES_*</filename> variables in this file.
  4451. </note>
  4452. <para>
  4453. If some of the files you provide with the
  4454. <filename>FILES</filename> variable are editable and you
  4455. know they should not be overwritten during the package
  4456. update process by the Package Management System (PMS), you
  4457. can identify these files so that the PMS will not
  4458. overwrite them.
  4459. See the
  4460. <link linkend='var-CONFFILES'><filename>CONFFILES</filename></link>
  4461. variable for information on how to identify these files to
  4462. the PMS.
  4463. </para>
  4464. </glossdef>
  4465. </glossentry>
  4466. <glossentry id='var-FILES_SOLIBSDEV'><glossterm>FILES_SOLIBSDEV</glossterm>
  4467. <info>
  4468. FILES_SOLIBSDEV[doc] = "Defines the full path name of the development symbolic link (symlink) for shared libraries on the target platform."
  4469. </info>
  4470. <glossdef>
  4471. <para role="glossdeffirst">
  4472. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4473. Defines the file specification to match
  4474. <link linkend='var-SOLIBSDEV'><filename>SOLIBSDEV</filename></link>.
  4475. In other words, <filename>FILES_SOLIBSDEV</filename>
  4476. defines the full path name of the development symbolic link
  4477. (symlink) for shared libraries on the target platform.
  4478. </para>
  4479. <para>
  4480. The following statement from the
  4481. <filename>bitbake.conf</filename> shows how it is set:
  4482. <literallayout class='monospaced'>
  4483. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  4484. </literallayout>
  4485. </para>
  4486. </glossdef>
  4487. </glossentry>
  4488. <glossentry id='var-FILESEXTRAPATHS'><glossterm>FILESEXTRAPATHS</glossterm>
  4489. <info>
  4490. FILESEXTRAPATHS[doc] = "Extends the search path the OpenEmbedded build system uses when looking for files and patches as it processes recipes and append files."
  4491. </info>
  4492. <glossdef>
  4493. <para role="glossdeffirst">
  4494. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4495. Extends the search path the OpenEmbedded build system uses
  4496. when looking for files and patches as it processes recipes
  4497. and append files.
  4498. The default directories BitBake uses when it processes
  4499. recipes are initially defined by the
  4500. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>
  4501. variable.
  4502. You can extend <filename>FILESPATH</filename> variable
  4503. by using <filename>FILESEXTRAPATHS</filename>.
  4504. </para>
  4505. <para>
  4506. Best practices dictate that you accomplish this by using
  4507. <filename>FILESEXTRAPATHS</filename> from within a
  4508. <filename>.bbappend</filename> file and that you prepend
  4509. paths as follows:
  4510. <literallayout class='monospaced'>
  4511. FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
  4512. </literallayout>
  4513. In the above example, the build system first looks for files
  4514. in a directory that has the same name as the corresponding
  4515. append file.
  4516. <note>
  4517. <para>When extending
  4518. <filename>FILESEXTRAPATHS</filename>,
  4519. be sure to use the immediate expansion
  4520. (<filename>:=</filename>) operator.
  4521. Immediate expansion makes sure that BitBake evaluates
  4522. <link linkend='var-THISDIR'><filename>THISDIR</filename></link>
  4523. at the time the directive is encountered rather than at
  4524. some later time when expansion might result in a
  4525. directory that does not contain the files you need.
  4526. </para>
  4527. <para>Also, include the trailing separating colon
  4528. character if you are prepending.
  4529. The trailing colon character is necessary because you
  4530. are directing BitBake to extend the path by prepending
  4531. directories to the search path.</para>
  4532. </note>
  4533. Here is another common use:
  4534. <literallayout class='monospaced'>
  4535. FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
  4536. </literallayout>
  4537. In this example, the build system extends the
  4538. <filename>FILESPATH</filename> variable to include a
  4539. directory named <filename>files</filename> that is in the
  4540. same directory as the corresponding append file.
  4541. </para>
  4542. <para>
  4543. This next example specifically adds three paths:
  4544. <literallayout class='monospaced'>
  4545. FILESEXTRAPATHS_prepend := "path_1:path_2:path_3:"
  4546. </literallayout>
  4547. </para>
  4548. <para>
  4549. A final example shows how you can extend the search path
  4550. and include a
  4551. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>-specific
  4552. override, which is useful in a BSP layer:
  4553. <literallayout class='monospaced'>
  4554. FILESEXTRAPATHS_prepend_intel-x86-common := "${THISDIR}/${PN}:"
  4555. </literallayout>
  4556. The previous statement appears in the
  4557. <filename>linux-yocto-dev.bbappend</filename> file, which
  4558. is found in the Yocto Project
  4559. <ulink url='&YOCTO_DOCS_OM_URL;#source-repositories'>Source Repositories</ulink>
  4560. in
  4561. <filename>meta-intel/common/recipes-kernel/linux</filename>.
  4562. Here, the machine override is a special
  4563. <link linkend='var-PACKAGE_ARCH'><filename>PACKAGE_ARCH</filename></link>
  4564. definition for multiple <filename>meta-intel</filename>
  4565. machines.
  4566. <note>
  4567. For a layer that supports a single BSP, the override
  4568. could just be the value of <filename>MACHINE</filename>.
  4569. </note>
  4570. </para>
  4571. <para>
  4572. By prepending paths in <filename>.bbappend</filename>
  4573. files, you allow multiple append files that reside in
  4574. different layers but are used for the same recipe to
  4575. correctly extend the path.
  4576. </para>
  4577. </glossdef>
  4578. </glossentry>
  4579. <glossentry id='var-FILESOVERRIDES'><glossterm>FILESOVERRIDES</glossterm>
  4580. <info>
  4581. FILESOVERRIDES[doc] = "A subset of OVERRIDES used by the OpenEmbedded build system for creating FILESPATH."
  4582. </info>
  4583. <glossdef>
  4584. <para role="glossdeffirst">
  4585. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4586. A subset of <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>
  4587. used by the OpenEmbedded build system for creating
  4588. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>.
  4589. You can find more information on how overrides are handled
  4590. in the
  4591. <ulink url='&YOCTO_DOCS_BB_URL;'>BitBake User Manual</ulink>.
  4592. </para>
  4593. <para>
  4594. By default, the <filename>FILESOVERRIDES</filename>
  4595. variable is defined as:
  4596. <literallayout class='monospaced'>
  4597. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  4598. </literallayout>
  4599. <note>
  4600. Do not hand-edit the <filename>FILESOVERRIDES</filename>
  4601. variable.
  4602. The values match up with expected overrides and are
  4603. used in an expected manner by the build system.
  4604. </note>
  4605. </para>
  4606. </glossdef>
  4607. </glossentry>
  4608. <glossentry id='var-FILESPATH'><glossterm>FILESPATH</glossterm>
  4609. <info>
  4610. 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."
  4611. </info>
  4612. <glossdef>
  4613. <para role="glossdeffirst">
  4614. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4615. The default set of directories the OpenEmbedded build system
  4616. uses when searching for patches and files.
  4617. During the build process, BitBake searches each directory in
  4618. <filename>FILESPATH</filename> in the specified order when
  4619. looking for files and patches specified by each
  4620. <filename>file://</filename> URI in a recipe's
  4621. <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
  4622. statements.
  4623. </para>
  4624. <para>
  4625. The default value for the <filename>FILESPATH</filename>
  4626. variable is defined in the <filename>base.bbclass</filename>
  4627. class found in <filename>meta/classes</filename> in the
  4628. <link linkend='source-directory'>Source Directory</link>:
  4629. <literallayout class='monospaced'>
  4630. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  4631. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  4632. </literallayout>
  4633. <note>
  4634. Do not hand-edit the <filename>FILESPATH</filename>
  4635. variable.
  4636. If you want the build system to look in directories
  4637. other than the defaults, extend the
  4638. <filename>FILESPATH</filename> variable by using the
  4639. <link linkend='var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></link>
  4640. variable.
  4641. </note>
  4642. Be aware that the default <filename>FILESPATH</filename>
  4643. directories do not map to directories in custom layers
  4644. where append files (<filename>.bbappend</filename>)
  4645. are used.
  4646. If you want the build system to find patches or files
  4647. that reside with your append files, you need to extend
  4648. the <filename>FILESPATH</filename> variable by using
  4649. the <filename>FILESEXTRAPATHS</filename> variable.
  4650. </para>
  4651. <para>
  4652. You can find out more about the patching process in the
  4653. "<ulink url='&YOCTO_DOCS_OM_URL;#patching-dev-environment'>Patching</ulink>"
  4654. section in the Yocto Project Overview and Concepts Manual
  4655. and the
  4656. "<ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-patching-code'>Patching Code</ulink>"
  4657. section in the Yocto Project Development Tasks Manual.
  4658. See the
  4659. <link linkend='ref-tasks-patch'><filename>do_patch</filename></link>
  4660. task as well.
  4661. </para>
  4662. </glossdef>
  4663. </glossentry>
  4664. <glossentry id='var-FILESYSTEM_PERMS_TABLES'><glossterm>FILESYSTEM_PERMS_TABLES</glossterm>
  4665. <info>
  4666. FILESYSTEM_PERMS_TABLES[doc] = "Allows you to define your own file permissions settings table as part of your configuration for the packaging process."
  4667. </info>
  4668. <glossdef>
  4669. <para role="glossdeffirst">
  4670. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4671. Allows you to define your own file permissions settings table as part of
  4672. your configuration for the packaging process.
  4673. For example, suppose you need a consistent set of custom permissions for
  4674. a set of groups and users across an entire work project.
  4675. It is best to do this in the packages themselves but this is not always
  4676. possible.
  4677. </para>
  4678. <para>
  4679. By default, the OpenEmbedded build system uses the <filename>fs-perms.txt</filename>, which
  4680. is located in the <filename>meta/files</filename> folder in the
  4681. <link linkend='source-directory'>Source Directory</link>.
  4682. If you create your own file permissions setting table, you should place it in your
  4683. layer or the distro's layer.
  4684. </para>
  4685. <para>
  4686. You define the <filename>FILESYSTEM_PERMS_TABLES</filename> variable in the
  4687. <filename>conf/local.conf</filename> file, which is found in the
  4688. <link linkend='build-directory'>Build Directory</link>, to
  4689. point to your custom <filename>fs-perms.txt</filename>.
  4690. You can specify more than a single file permissions setting table.
  4691. The paths you specify to these files must be defined within the
  4692. <link linkend='var-BBPATH'><filename>BBPATH</filename></link> variable.
  4693. </para>
  4694. <para>
  4695. For guidance on how to create your own file permissions settings table file,
  4696. examine the existing <filename>fs-perms.txt</filename>.
  4697. </para>
  4698. </glossdef>
  4699. </glossentry>
  4700. <glossentry id='var-FONT_EXTRA_RDEPENDS'><glossterm>FONT_EXTRA_RDEPENDS</glossterm>
  4701. <info>
  4702. 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'."
  4703. </info>
  4704. <glossdef>
  4705. <para role="glossdeffirst">
  4706. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4707. When inheriting the
  4708. <link linkend='ref-classes-fontcache'><filename>fontcache</filename></link>
  4709. class, this variable specifies the runtime dependencies
  4710. for font packages.
  4711. By default, the <filename>FONT_EXTRA_RDEPENDS</filename>
  4712. is set to "fontconfig-utils".
  4713. </para>
  4714. </glossdef>
  4715. </glossentry>
  4716. <glossentry id='var-FONT_PACKAGES'><glossterm>FONT_PACKAGES</glossterm>
  4717. <info>
  4718. FONT_PACKAGES[doc] = "When a recipe inherits the fontcache class, this variable identifies packages containing font files that need to be cached by Fontconfig."
  4719. </info>
  4720. <glossdef>
  4721. <para role="glossdeffirst">
  4722. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4723. When inheriting the
  4724. <link linkend='ref-classes-fontcache'><filename>fontcache</filename></link>
  4725. class, this variable identifies packages containing font
  4726. files that need to be cached by Fontconfig.
  4727. By default, the <filename>fontcache</filename> class assumes
  4728. that fonts are in the recipe's main package
  4729. (i.e. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  4730. Use this variable if fonts you need are in a package
  4731. other than that main package.
  4732. </para>
  4733. </glossdef>
  4734. </glossentry>
  4735. <glossentry id='var-FORCE_RO_REMOVE'><glossterm>FORCE_RO_REMOVE</glossterm>
  4736. <info>
  4737. FORCE_RO_REMOVE[doc] = "Forces the removal of the packages listed in ROOTFS_RO_UNNEEDED during the generation of the root filesystem."
  4738. </info>
  4739. <glossdef>
  4740. <para role="glossdeffirst">
  4741. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4742. Forces the removal of the packages listed in
  4743. <filename>ROOTFS_RO_UNNEEDED</filename> during the
  4744. generation of the root filesystem.
  4745. </para>
  4746. <para>
  4747. Set the variable to "1" to force the removal of these
  4748. packages.
  4749. </para>
  4750. </glossdef>
  4751. </glossentry>
  4752. <glossentry id='var-FULL_OPTIMIZATION'><glossterm>FULL_OPTIMIZATION</glossterm>
  4753. <info>
  4754. 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'."
  4755. </info>
  4756. <glossdef>
  4757. <para role="glossdeffirst">
  4758. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4759. The options to pass in
  4760. <filename><link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link></filename>
  4761. and <filename><link linkend='var-CFLAGS'>CFLAGS</link></filename>
  4762. when compiling an optimized system.
  4763. This variable defaults to
  4764. "-O2 -pipe ${DEBUG_FLAGS}".
  4765. </para>
  4766. </glossdef>
  4767. </glossentry>
  4768. </glossdiv>
  4769. <glossdiv id='var-glossary-g'><title>G</title>
  4770. <glossentry id='var-GCCPIE'><glossterm>GCCPIE</glossterm>
  4771. <info>
  4772. GCCPIE[doc] = "Enables Position Independent Executables (PIE) within the GNU C Compiler (GCC)."
  4773. </info>
  4774. <glossdef>
  4775. <para role="glossdeffirst">
  4776. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4777. Enables Position Independent Executables (PIE) within the
  4778. GNU C Compiler (GCC).
  4779. Enabling PIE in the GCC makes Return Oriented Programming
  4780. (ROP) attacks much more difficult to
  4781. execute.
  4782. </para>
  4783. <para>
  4784. By default the <filename>security_flags.inc</filename>
  4785. file enables PIE by setting the variable as follows:
  4786. <literallayout class='monospaced'>
  4787. GCCPIE ?= "--enable-default-pie"
  4788. </literallayout>
  4789. </para>
  4790. </glossdef>
  4791. </glossentry>
  4792. <glossentry id='var-GDB'><glossterm>GDB</glossterm>
  4793. <info>
  4794. GDB[doc] = "The minimal command and arguments to run the GNU Debugger."
  4795. </info>
  4796. <glossdef>
  4797. <para role="glossdeffirst">
  4798. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4799. The minimal command and arguments to run the GNU Debugger.
  4800. </para>
  4801. </glossdef>
  4802. </glossentry>
  4803. <glossentry id='var-GITDIR'><glossterm>GITDIR</glossterm>
  4804. <info>
  4805. GITDIR[doc] = "The directory where Git clones will be stored."
  4806. </info>
  4807. <glossdef>
  4808. <para role="glossdeffirst">
  4809. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4810. The directory in which a local copy of a Git repository
  4811. is stored when it is cloned.
  4812. </para>
  4813. </glossdef>
  4814. </glossentry>
  4815. <glossentry id='var-GLIBC_GENERATE_LOCALES'><glossterm>GLIBC_GENERATE_LOCALES</glossterm>
  4816. <info>
  4817. 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."
  4818. </info>
  4819. <glossdef>
  4820. <para role="glossdeffirst">
  4821. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4822. Specifies the list of GLIBC locales to generate should you
  4823. not wish to generate all LIBC locals, which can be time
  4824. consuming.
  4825. <note>
  4826. If you specifically remove the locale
  4827. <filename>en_US.UTF-8</filename>, you must set
  4828. <link linkend='var-IMAGE_LINGUAS'><filename>IMAGE_LINGUAS</filename></link>
  4829. appropriately.
  4830. </note>
  4831. </para>
  4832. <para>
  4833. You can set <filename>GLIBC_GENERATE_LOCALES</filename>
  4834. in your <filename>local.conf</filename> file.
  4835. By default, all locales are generated.
  4836. <literallayout class='monospaced'>
  4837. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  4838. </literallayout>
  4839. </para>
  4840. </glossdef>
  4841. </glossentry>
  4842. <glossentry id='var-GROUPADD_PARAM'><glossterm>GROUPADD_PARAM</glossterm>
  4843. <info>
  4844. 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."
  4845. </info>
  4846. <glossdef>
  4847. <para role="glossdeffirst">
  4848. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4849. When inheriting the
  4850. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  4851. class, this variable
  4852. specifies for a package what parameters should be passed
  4853. to the <filename>groupadd</filename> command
  4854. if you wish to add a group to the system when the package
  4855. is installed.
  4856. </para>
  4857. <para>
  4858. Here is an example from the <filename>dbus</filename>
  4859. recipe:
  4860. <literallayout class='monospaced'>
  4861. GROUPADD_PARAM_${PN} = "-r netdev"
  4862. </literallayout>
  4863. For information on the standard Linux shell command
  4864. <filename>groupadd</filename>, see
  4865. <ulink url='http://linux.die.net/man/8/groupadd'></ulink>.
  4866. </para>
  4867. </glossdef>
  4868. </glossentry>
  4869. <glossentry id='var-GROUPMEMS_PARAM'><glossterm>GROUPMEMS_PARAM</glossterm>
  4870. <info>
  4871. 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."
  4872. </info>
  4873. <glossdef>
  4874. <para role="glossdeffirst">
  4875. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4876. When inheriting the
  4877. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  4878. class, this variable
  4879. specifies for a package what parameters should be passed
  4880. to the <filename>groupmems</filename> command
  4881. if you wish to modify the members of a group when the
  4882. package is installed.
  4883. </para>
  4884. <para>
  4885. For information on the standard Linux shell command
  4886. <filename>groupmems</filename>, see
  4887. <ulink url='http://linux.die.net/man/8/groupmems'></ulink>.
  4888. </para>
  4889. </glossdef>
  4890. </glossentry>
  4891. <glossentry id='var-GRUB_GFXSERIAL'><glossterm>GRUB_GFXSERIAL</glossterm>
  4892. <info>
  4893. GRUB_GFXSERIAL[doc] = "Configures the GNU GRand Unified Bootloader (GRUB) to have graphics and serial in the boot menu."
  4894. </info>
  4895. <glossdef>
  4896. <para role="glossdeffirst">
  4897. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4898. Configures the GNU GRand Unified Bootloader (GRUB) to have
  4899. graphics and serial in the boot menu.
  4900. Set this variable to "1" in your
  4901. <filename>local.conf</filename> or distribution
  4902. configuration file to enable graphics and serial
  4903. in the menu.
  4904. </para>
  4905. <para>
  4906. See the
  4907. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  4908. class for more information on how this variable is used.
  4909. </para>
  4910. </glossdef>
  4911. </glossentry>
  4912. <glossentry id='var-GRUB_OPTS'><glossterm>GRUB_OPTS</glossterm>
  4913. <info>
  4914. GRUB_OPTS[doc] = "Additional options to add to the GNU GRand Unified Bootloader (GRUB) configuration."
  4915. </info>
  4916. <glossdef>
  4917. <para role="glossdeffirst">
  4918. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4919. Additional options to add to the GNU GRand Unified
  4920. Bootloader (GRUB) configuration.
  4921. Use a semi-colon character (<filename>;</filename>) to
  4922. separate multiple options.
  4923. </para>
  4924. <para>
  4925. The <filename>GRUB_OPTS</filename> variable is optional.
  4926. See the
  4927. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  4928. class for more information on how this variable is used.
  4929. </para>
  4930. </glossdef>
  4931. </glossentry>
  4932. <glossentry id='var-GRUB_TIMEOUT'><glossterm>GRUB_TIMEOUT</glossterm>
  4933. <info>
  4934. GRUB_TIMEOUT[doc] = "Specifies the timeout before executing the default LABEL in the GNU GRand Unified Bootloader (GRUB)."
  4935. </info>
  4936. <glossdef>
  4937. <para role="glossdeffirst">
  4938. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4939. Specifies the timeout before executing the default
  4940. <filename>LABEL</filename> in the GNU GRand Unified
  4941. Bootloader (GRUB).
  4942. </para>
  4943. <para>
  4944. The <filename>GRUB_TIMEOUT</filename> variable is optional.
  4945. See the
  4946. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  4947. class for more information on how this variable is used.
  4948. </para>
  4949. </glossdef>
  4950. </glossentry>
  4951. <glossentry id='var-GTKIMMODULES_PACKAGES'><glossterm>GTKIMMODULES_PACKAGES</glossterm>
  4952. <info>
  4953. 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."
  4954. </info>
  4955. <glossdef>
  4956. <para role="glossdeffirst">
  4957. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4958. When inheriting the
  4959. <link linkend='ref-classes-gtk-immodules-cache'><filename>gtk-immodules-cache</filename></link>
  4960. class, this variable specifies the packages that contain the
  4961. GTK+ input method modules being installed when the modules
  4962. are in packages other than the main package.
  4963. </para>
  4964. </glossdef>
  4965. </glossentry>
  4966. </glossdiv>
  4967. <glossdiv id='var-glossary-h'><title>H</title>
  4968. <glossentry id='var-HOMEPAGE'><glossterm>HOMEPAGE</glossterm>
  4969. <info>
  4970. HOMEPAGE[doc] = "Website where more information about the software the recipe is building can be found."
  4971. </info>
  4972. <glossdef>
  4973. <para role="glossdeffirst">
  4974. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4975. Website where more information about the software the recipe is building
  4976. can be found.
  4977. </para>
  4978. </glossdef>
  4979. </glossentry>
  4980. <glossentry id='var-HOST_ARCH'><glossterm>HOST_ARCH</glossterm>
  4981. <info>
  4982. HOST_ARCH[doc] = "The name of the target architecture. Normally same as the TARGET_ARCH."
  4983. </info>
  4984. <glossdef>
  4985. <para role="glossdeffirst">
  4986. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  4987. The name of the target architecture, which is normally
  4988. the same as
  4989. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>.
  4990. The OpenEmbedded build system supports many
  4991. architectures.
  4992. Here is an example list of architectures supported.
  4993. This list is by no means complete as the architecture
  4994. is configurable:
  4995. <literallayout class='monospaced'>
  4996. arm
  4997. i586
  4998. x86_64
  4999. powerpc
  5000. powerpc64
  5001. mips
  5002. mipsel
  5003. </literallayout>
  5004. </para>
  5005. </glossdef>
  5006. </glossentry>
  5007. <glossentry id='var-HOST_CC_ARCH'><glossterm>HOST_CC_ARCH</glossterm>
  5008. <info>
  5009. HOST_CC_ARCH[doc] = "The name of the host architecture. Normally same as the TARGET_CC_ARCH."
  5010. </info>
  5011. <glossdef>
  5012. <para role="glossdeffirst">
  5013. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5014. Specifies architecture-specific compiler flags that are
  5015. passed to the C compiler.
  5016. </para>
  5017. <para>
  5018. Default initialization for <filename>HOST_CC_ARCH</filename>
  5019. varies depending on what is being built:
  5020. <itemizedlist>
  5021. <listitem><para>
  5022. <link linkend='var-TARGET_CC_ARCH'><filename>TARGET_CC_ARCH</filename></link>
  5023. when building for the target
  5024. </para></listitem>
  5025. <listitem><para>
  5026. <filename>BUILD_CC_ARCH</filename>
  5027. when building for the build host (i.e.
  5028. <filename>-native</filename>)
  5029. </para></listitem>
  5030. <listitem><para>
  5031. <filename>BUILDSDK_CC_ARCH</filename>
  5032. when building for an SDK (i.e.
  5033. <filename>nativesdk-</filename>)
  5034. </para></listitem>
  5035. </itemizedlist>
  5036. </para>
  5037. </glossdef>
  5038. </glossentry>
  5039. <glossentry id='var-HOST_OS'><glossterm>HOST_OS</glossterm>
  5040. <info>
  5041. HOST_OS[doc] = "The name of the target operating system. Normally the same as the TARGET_OS."
  5042. </info>
  5043. <glossdef>
  5044. <para role="glossdeffirst">
  5045. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5046. Specifies the name of the target operating system, which
  5047. is normally the same as the
  5048. <link linkend='var-TARGET_OS'><filename>TARGET_OS</filename></link>.
  5049. The variable can be set to "linux" for <filename>glibc</filename>-based systems and
  5050. to "linux-musl" for <filename>musl</filename>.
  5051. For ARM/EABI targets, there are also "linux-gnueabi" and
  5052. "linux-musleabi" values possible.
  5053. </para>
  5054. </glossdef>
  5055. </glossentry>
  5056. <glossentry id='var-HOST_PREFIX'><glossterm>HOST_PREFIX</glossterm>
  5057. <info>
  5058. HOST_PREFIX[doc] = "The prefix for the cross compile toolchain. Normally same as the TARGET_PREFIX."
  5059. </info>
  5060. <glossdef>
  5061. <para role="glossdeffirst">
  5062. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5063. Specifies the prefix for the cross-compile toolchain.
  5064. <filename>HOST_PREFIX</filename> is normally the same as
  5065. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>.
  5066. </para>
  5067. </glossdef>
  5068. </glossentry>
  5069. <glossentry id='var-HOST_SYS'><glossterm>HOST_SYS</glossterm>
  5070. <info>
  5071. 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."
  5072. </info>
  5073. <glossdef>
  5074. <para role="glossdeffirst">
  5075. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5076. Specifies the system, including the architecture and the
  5077. operating system, for which the build is occurring
  5078. in the context of the current recipe.
  5079. </para>
  5080. <para>
  5081. The OpenEmbedded build system automatically sets this
  5082. variable based on
  5083. <link linkend='var-HOST_ARCH'><filename>HOST_ARCH</filename></link>,
  5084. <link linkend='var-HOST_VENDOR'><filename>HOST_VENDOR</filename></link>,
  5085. and
  5086. <link linkend='var-HOST_OS'><filename>HOST_OS</filename></link>
  5087. variables.
  5088. <note>
  5089. You do not need to set the variable yourself.
  5090. </note>
  5091. </para>
  5092. <para>
  5093. Consider these two examples:
  5094. <itemizedlist>
  5095. <listitem><para>Given a native recipe on a 32-bit
  5096. x86 machine running Linux, the value is
  5097. "i686-linux".
  5098. </para></listitem>
  5099. <listitem><para>Given a recipe being built for a
  5100. little-endian MIPS target running Linux,
  5101. the value might be "mipsel-linux".
  5102. </para></listitem>
  5103. </itemizedlist>
  5104. </para>
  5105. </glossdef>
  5106. </glossentry>
  5107. <glossentry id='var-HOSTTOOLS'><glossterm>HOSTTOOLS</glossterm>
  5108. <info>
  5109. HOSTTOOLS[doc] = "A space-separated list (filter) of tools on the build host that should be allowed to be called from within build tasks."
  5110. </info>
  5111. <glossdef>
  5112. <para role="glossdeffirst">
  5113. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5114. A space-separated list (filter) of tools on the build host
  5115. that should be allowed to be called from within build tasks.
  5116. Using this filter helps reduce the possibility of host
  5117. contamination.
  5118. If a tool specified in the value of
  5119. <filename>HOSTTOOLS</filename> is not found on the
  5120. build host, the OpenEmbedded build system produces
  5121. an error and the build is not started.
  5122. </para>
  5123. <para>
  5124. For additional information, see
  5125. <link linkend='var-HOSTTOOLS_NONFATAL'><filename>HOSTTOOLS_NONFATAL</filename></link>.
  5126. </para>
  5127. </glossdef>
  5128. </glossentry>
  5129. <glossentry id='var-HOSTTOOLS_NONFATAL'><glossterm>HOSTTOOLS_NONFATAL</glossterm>
  5130. <info>
  5131. 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."
  5132. </info>
  5133. <glossdef>
  5134. <para role="glossdeffirst">
  5135. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5136. A space-separated list (filter) of tools on the build host
  5137. that should be allowed to be called from within build tasks.
  5138. Using this filter helps reduce the possibility of host
  5139. contamination.
  5140. Unlike
  5141. <link linkend='var-HOSTTOOLS'><filename>HOSTTOOLS</filename></link>,
  5142. the OpenEmbedded build system does not produce an error
  5143. if a tool specified in the value of
  5144. <filename>HOSTTOOLS_NONFATAL</filename> is not found on the
  5145. build host.
  5146. Thus, you can use <filename>HOSTTOOLS_NONFATAL</filename>
  5147. to filter optional host tools.
  5148. </para>
  5149. </glossdef>
  5150. </glossentry>
  5151. <glossentry id='var-HOST_VENDOR'><glossterm>HOST_VENDOR</glossterm>
  5152. <info>
  5153. HOST_VENDOR[doc] = "The name of the vendor. Normally same as the TARGET_VENDOR."
  5154. </info>
  5155. <glossdef>
  5156. <para role="glossdeffirst">
  5157. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5158. Specifies the name of the vendor.
  5159. <filename>HOST_VENDOR</filename> is normally the same as
  5160. <link linkend='var-TARGET_VENDOR'><filename>TARGET_VENDOR</filename></link>.
  5161. </para>
  5162. </glossdef>
  5163. </glossentry>
  5164. </glossdiv>
  5165. <glossdiv id='var-glossary-i'><title>I</title>
  5166. <glossentry id='var-ICECC_DISABLED'><glossterm>ICECC_DISABLED</glossterm>
  5167. <info>
  5168. ICECC_DISABLED[doc] = "Disables or enables the icecc (Icecream) function."
  5169. </info>
  5170. <glossdef>
  5171. <para role="glossdeffirst">
  5172. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5173. Disables or enables the <filename>icecc</filename>
  5174. (Icecream) function.
  5175. For more information on this function and best practices
  5176. for using this variable, see the
  5177. "<link linkend='ref-classes-icecc'><filename>icecc.bbclass</filename></link>"
  5178. section.
  5179. </para>
  5180. <para>
  5181. Setting this variable to "1" in your
  5182. <filename>local.conf</filename> disables the function:
  5183. <literallayout class='monospaced'>
  5184. ICECC_DISABLED ??= "1"
  5185. </literallayout>
  5186. To enable the function, set the variable as follows:
  5187. <literallayout class='monospaced'>
  5188. ICECC_DISABLED = ""
  5189. </literallayout>
  5190. </para>
  5191. </glossdef>
  5192. </glossentry>
  5193. <glossentry id='var-ICECC_ENV_EXEC'><glossterm>ICECC_ENV_EXEC</glossterm>
  5194. <info>
  5195. ICECC_ENV_EXEC[doc] = "Points to the icecc-create-env script that you provide."
  5196. </info>
  5197. <glossdef>
  5198. <para role="glossdeffirst">
  5199. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5200. Points to the <filename>icecc-create-env</filename> script
  5201. that you provide.
  5202. This variable is used by the
  5203. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5204. class.
  5205. You set this variable in your
  5206. <filename>local.conf</filename> file.
  5207. </para>
  5208. <para>
  5209. If you do not point to a script that you provide, the
  5210. OpenEmbedded build system uses the default script provided
  5211. by the <filename>icecc-create-env.bb</filename> recipe,
  5212. which is a modified version and not the one that comes with
  5213. <filename>icecc</filename>.
  5214. </para>
  5215. </glossdef>
  5216. </glossentry>
  5217. <glossentry id='var-ICECC_PARALLEL_MAKE'><glossterm>ICECC_PARALLEL_MAKE</glossterm>
  5218. <info>
  5219. ICECC_PARALLEL_MAKE[doc] = "Extra options passed to the make command during the do_compile task that specify parallel compilation."
  5220. </info>
  5221. <glossdef>
  5222. <para role="glossdeffirst">
  5223. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5224. Extra options passed to the <filename>make</filename>
  5225. command during the
  5226. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>
  5227. task that specify parallel compilation.
  5228. This variable usually takes the form of
  5229. "-j <replaceable>x</replaceable>", where
  5230. <replaceable>x</replaceable> represents the maximum
  5231. number of parallel threads <filename>make</filename> can
  5232. run.
  5233. <note>
  5234. The options passed affect builds on all enabled
  5235. machines on the network, which are machines running the
  5236. <filename>iceccd</filename> daemon.
  5237. </note>
  5238. </para>
  5239. <para>
  5240. If your enabled machines support multiple cores,
  5241. coming up with the maximum number of parallel threads
  5242. that gives you the best performance could take some
  5243. experimentation since machine speed, network lag,
  5244. available memory, and existing machine loads can all
  5245. affect build time.
  5246. Consequently, unlike the
  5247. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  5248. variable, there is no rule-of-thumb for setting
  5249. <filename>ICECC_PARALLEL_MAKE</filename> to achieve
  5250. optimal performance.
  5251. </para>
  5252. <para>
  5253. If you do not set <filename>ICECC_PARALLEL_MAKE</filename>,
  5254. the build system does not use it (i.e. the system does
  5255. not detect and assign the number of cores as is done with
  5256. <filename>PARALLEL_MAKE</filename>).
  5257. </para>
  5258. </glossdef>
  5259. </glossentry>
  5260. <glossentry id='var-ICECC_PATH'><glossterm>ICECC_PATH</glossterm>
  5261. <info>
  5262. ICECC_PATH[doc] = "The location of the icecc binary."
  5263. </info>
  5264. <glossdef>
  5265. <para role="glossdeffirst">
  5266. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5267. The location of the <filename>icecc</filename> binary.
  5268. You can set this variable in your
  5269. <filename>local.conf</filename> file.
  5270. If your <filename>local.conf</filename> file does not define
  5271. this variable, the
  5272. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5273. class attempts to define it by locating
  5274. <filename>icecc</filename> using <filename>which</filename>.
  5275. </para>
  5276. </glossdef>
  5277. </glossentry>
  5278. <glossentry id='var-ICECC_USER_CLASS_BL'><glossterm>ICECC_USER_CLASS_BL</glossterm>
  5279. <info>
  5280. ICECC_USER_CLASS_BL[doc] = "Identifies user classes that you do not want the Icecream distributed compile support to consider."
  5281. </info>
  5282. <glossdef>
  5283. <para role="glossdeffirst">
  5284. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5285. Identifies user classes that you do not want the
  5286. Icecream distributed compile support to consider.
  5287. This variable is used by the
  5288. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5289. class.
  5290. You set this variable in your
  5291. <filename>local.conf</filename> file.
  5292. </para>
  5293. <para>
  5294. When you list classes using this variable, you are
  5295. "blacklisting" them from distributed compilation across
  5296. remote hosts.
  5297. Any classes you list will be distributed and compiled
  5298. locally.
  5299. </para>
  5300. </glossdef>
  5301. </glossentry>
  5302. <glossentry id='var-ICECC_USER_PACKAGE_BL'><glossterm>ICECC_USER_PACKAGE_BL</glossterm>
  5303. <info>
  5304. ICECC_USER_PACKAGE_BL[doc] = "Identifies user recipes that you do not want the Icecream distributed compile support to consider."
  5305. </info>
  5306. <glossdef>
  5307. <para role="glossdeffirst">
  5308. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5309. Identifies user recipes that you do not want the
  5310. Icecream distributed compile support to consider.
  5311. This variable is used by the
  5312. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5313. class.
  5314. You set this variable in your
  5315. <filename>local.conf</filename> file.
  5316. </para>
  5317. <para>
  5318. When you list packages using this variable, you are
  5319. "blacklisting" them from distributed compilation across
  5320. remote hosts.
  5321. Any packages you list will be distributed and compiled
  5322. locally.
  5323. </para>
  5324. </glossdef>
  5325. </glossentry>
  5326. <glossentry id='var-ICECC_USER_PACKAGE_WL'><glossterm>ICECC_USER_PACKAGE_WL</glossterm>
  5327. <info>
  5328. 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."
  5329. </info>
  5330. <glossdef>
  5331. <para role="glossdeffirst">
  5332. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5333. Identifies user recipes that use an empty
  5334. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>
  5335. variable that you want to force remote distributed
  5336. compilation on using the Icecream distributed compile
  5337. support.
  5338. This variable is used by the
  5339. <link linkend='ref-classes-icecc'><filename>icecc</filename></link>
  5340. class.
  5341. You set this variable in your
  5342. <filename>local.conf</filename> file.
  5343. </para>
  5344. </glossdef>
  5345. </glossentry>
  5346. <glossentry id='var-IMAGE_BASENAME'><glossterm>IMAGE_BASENAME</glossterm>
  5347. <info>
  5348. IMAGE_BASENAME[doc] = "The base name of image output files."
  5349. </info>
  5350. <glossdef>
  5351. <para role="glossdeffirst">
  5352. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5353. The base name of image output files.
  5354. This variable defaults to the recipe name
  5355. (<filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  5356. </para>
  5357. </glossdef>
  5358. </glossentry>
  5359. <glossentry id='var-IMAGE_BOOT_FILES'><glossterm>IMAGE_BOOT_FILES</glossterm>
  5360. <info>
  5361. IMAGE_BOOT_FILES[doc] = "A space-separated list of files from ${DEPLOY_DIR_IMAGE} to place in boot partition."
  5362. </info>
  5363. <glossdef>
  5364. <para role="glossdeffirst">
  5365. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5366. A space-separated list of files installed into the
  5367. boot partition when preparing an image using the Wic tool
  5368. with the <filename>bootimg-partition</filename> source
  5369. plugin.
  5370. By default, the files are installed under the same name as
  5371. the source files.
  5372. To change the installed name, separate it from the
  5373. original name with a semi-colon (;).
  5374. Source files need to be located in
  5375. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>.
  5376. Here are two examples:
  5377. <literallayout class="monospaced">
  5378. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  5379. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  5380. </literallayout>
  5381. </para>
  5382. <para>
  5383. Alternatively, source files can be picked up using
  5384. a glob pattern.
  5385. In this case, the destination file must have the same name
  5386. as the base name of the source file path.
  5387. To install files into a directory within the
  5388. target location, pass its name after a semi-colon
  5389. (;).
  5390. Here are two examples:
  5391. <literallayout class="monospaced">
  5392. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  5393. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  5394. </literallayout>
  5395. The first example installs all files from
  5396. <filename>${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles</filename>
  5397. into the root of the target partition.
  5398. The second example installs the same files into a
  5399. <filename>boot</filename> directory within the
  5400. target partition.
  5401. </para>
  5402. <para>
  5403. You can find information on how to use the Wic tool in the
  5404. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-partitioned-images-using-wic'>Creating Partitioned Images Using Wic</ulink>"
  5405. section of the Yocto Project Development Tasks Manual.
  5406. Reference material for Wic is located in the
  5407. "<ulink url='&YOCTO_DOCS_REF_URL;#ref-kickstart'>OpenEmbedded Kickstart (.wks) Reference</ulink>"
  5408. chapter.
  5409. </para>
  5410. </glossdef>
  5411. </glossentry>
  5412. <glossentry id='var-IMAGE_CLASSES'><glossterm>IMAGE_CLASSES</glossterm>
  5413. <info>
  5414. IMAGE_CLASSES[doc] = "A list of classes that all images should inherit."
  5415. </info>
  5416. <glossdef>
  5417. <para role="glossdeffirst">
  5418. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5419. A list of classes that all images should inherit.
  5420. You typically use this variable to specify the list of
  5421. classes that register the different types of images
  5422. the OpenEmbedded build system creates.
  5423. </para>
  5424. <para>
  5425. The default value for <filename>IMAGE_CLASSES</filename> is
  5426. <filename>image_types</filename>.
  5427. You can set this variable in your
  5428. <filename>local.conf</filename> or in a distribution
  5429. configuration file.
  5430. </para>
  5431. <para>
  5432. For more information, see
  5433. <filename>meta/classes/image_types.bbclass</filename> in the
  5434. <link linkend='source-directory'>Source Directory</link>.
  5435. </para>
  5436. </glossdef>
  5437. </glossentry>
  5438. <glossentry id='var-IMAGE_CMD'><glossterm>IMAGE_CMD</glossterm>
  5439. <info>
  5440. 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)."
  5441. </info>
  5442. <glossdef>
  5443. <para role="glossdeffirst">
  5444. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5445. Specifies the command to create the image file for a
  5446. specific image type, which corresponds to the value set
  5447. set in
  5448. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>,
  5449. (e.g. <filename>ext3</filename>,
  5450. <filename>btrfs</filename>, and so forth).
  5451. When setting this variable, you should use
  5452. an override for the associated type.
  5453. Here is an example:
  5454. <literallayout class='monospaced'>
  5455. IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} \
  5456. --faketime --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
  5457. ${EXTRA_IMAGECMD}"
  5458. </literallayout>
  5459. </para>
  5460. <para>
  5461. You typically do not need to set this variable unless
  5462. you are adding support for a new image type.
  5463. For more examples on how to set this variable, see the
  5464. <link linkend='ref-classes-image_types'><filename>image_types</filename></link>
  5465. class file, which is
  5466. <filename>meta/classes/image_types.bbclass</filename>.
  5467. </para>
  5468. </glossdef>
  5469. </glossentry>
  5470. <glossentry id='var-IMAGE_DEVICE_TABLES'><glossterm>IMAGE_DEVICE_TABLES</glossterm>
  5471. <info>
  5472. 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."
  5473. </info>
  5474. <glossdef>
  5475. <para role="glossdeffirst">
  5476. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5477. Specifies one or more files that contain custom device
  5478. tables that are passed to the
  5479. <filename>makedevs</filename> command as part of creating
  5480. an image.
  5481. These files list basic device nodes that should be
  5482. created under <filename>/dev</filename> within the image.
  5483. If <filename>IMAGE_DEVICE_TABLES</filename> is not set,
  5484. <filename>files/device_table-minimal.txt</filename> is
  5485. used, which is located by
  5486. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>.
  5487. For details on how you should write device table files,
  5488. see <filename>meta/files/device_table-minimal.txt</filename>
  5489. as an example.
  5490. </para>
  5491. </glossdef>
  5492. </glossentry>
  5493. <glossentry id='var-IMAGE_FEATURES'><glossterm>IMAGE_FEATURES</glossterm>
  5494. <info>
  5495. IMAGE_FEATURES[doc] = "The primary list of features to include in an image. Configure this variable in an image recipe."
  5496. </info>
  5497. <glossdef>
  5498. <para role="glossdeffirst">
  5499. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5500. The primary list of features to include in an image.
  5501. Typically, you configure this variable in an image recipe.
  5502. Although you can use this variable from your
  5503. <filename>local.conf</filename> file, which is found in the
  5504. <link linkend='build-directory'>Build Directory</link>,
  5505. best practices dictate that you do not.
  5506. <note>
  5507. To enable extra features from outside the image recipe,
  5508. use the
  5509. <filename><link linkend='var-EXTRA_IMAGE_FEATURES'>EXTRA_IMAGE_FEATURES</link></filename> variable.
  5510. </note>
  5511. </para>
  5512. <para>
  5513. For a list of image features that ships with the Yocto
  5514. Project, see the
  5515. "<link linkend="ref-features-image">Image Features</link>"
  5516. section.
  5517. </para>
  5518. <para>
  5519. For an example that shows how to customize your image by
  5520. using this variable, see the
  5521. "<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>"
  5522. section in the Yocto Project Development Tasks Manual.
  5523. </para>
  5524. </glossdef>
  5525. </glossentry>
  5526. <glossentry id='var-IMAGE_FSTYPES'><glossterm>IMAGE_FSTYPES</glossterm>
  5527. <info>
  5528. IMAGE_FSTYPES[doc] = "Formats of root filesystem images that you want to have created."
  5529. </info>
  5530. <glossdef>
  5531. <para role="glossdeffirst">
  5532. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5533. Specifies the formats the OpenEmbedded build system uses
  5534. during the build when creating the root filesystem.
  5535. For example, setting <filename>IMAGE_FSTYPES</filename>
  5536. as follows causes the build system to create root
  5537. filesystems using two formats: <filename>.ext3</filename>
  5538. and <filename>.tar.bz2</filename>:
  5539. <literallayout class='monospaced'>
  5540. IMAGE_FSTYPES = "ext3 tar.bz2"
  5541. </literallayout>
  5542. </para>
  5543. <para>
  5544. For the complete list of supported image formats from which
  5545. you can choose, see
  5546. <link linkend='var-IMAGE_TYPES'><filename>IMAGE_TYPES</filename></link>.
  5547. </para>
  5548. <note><title>Notes</title>
  5549. <itemizedlist>
  5550. <listitem><para>
  5551. If you add "live" to
  5552. <filename>IMAGE_FSTYPES</filename> inside an image
  5553. recipe, be sure that you do so prior to the
  5554. "inherit image" line of the recipe or the live
  5555. image will not build.
  5556. </para></listitem>
  5557. <listitem><para>
  5558. Due to the way the OpenEmbedded build system
  5559. processes this variable, you cannot update its
  5560. contents by using <filename>_append</filename> or
  5561. <filename>_prepend</filename>.
  5562. You must use the <filename>+=</filename>
  5563. operator to add one or more options to the
  5564. <filename>IMAGE_FSTYPES</filename> variable.
  5565. </para></listitem>
  5566. </itemizedlist>
  5567. </note>
  5568. </glossdef>
  5569. </glossentry>
  5570. <glossentry id='var-IMAGE_INSTALL'><glossterm>IMAGE_INSTALL</glossterm>
  5571. <info>
  5572. IMAGE_INSTALL[doc] = "Used by recipes to specify the packages to install into an image through image.bbclass."
  5573. </info>
  5574. <glossdef>
  5575. <para role="glossdeffirst">
  5576. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5577. Used by recipes to specify the packages to install into an
  5578. image through the
  5579. <link linkend='ref-classes-image'><filename>image</filename></link>
  5580. class.
  5581. Use the <filename>IMAGE_INSTALL</filename> variable with
  5582. care to avoid ordering issues.
  5583. </para>
  5584. <para>
  5585. Image recipes set <filename>IMAGE_INSTALL</filename>
  5586. to specify the packages to install into an image through
  5587. <filename>image.bbclass</filename>.
  5588. Additionally, "helper" classes such as the
  5589. <link linkend='ref-classes-core-image'><filename>core-image</filename></link>
  5590. class exist that can take lists used with
  5591. <filename><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></filename>
  5592. and turn them into auto-generated entries in
  5593. <filename>IMAGE_INSTALL</filename> in addition to its
  5594. default contents.
  5595. </para>
  5596. <para>
  5597. When you use this variable, it is best to use it as follows:
  5598. <literallayout class='monospaced'>
  5599. IMAGE_INSTALL_append = " <replaceable>package-name</replaceable>"
  5600. </literallayout>
  5601. Be sure to include the space between the quotation character
  5602. and the start of the package name or names.
  5603. <note><title>Caution</title>
  5604. <itemizedlist>
  5605. <listitem><para>
  5606. When working with a
  5607. <link linkend='images-core-image-minimal-initramfs'><filename>core-image-minimal-initramfs</filename></link>
  5608. image, do not use the
  5609. <filename>IMAGE_INSTALL</filename> variable to
  5610. specify packages for installation.
  5611. Instead, use the
  5612. <link linkend='var-PACKAGE_INSTALL'><filename>PACKAGE_INSTALL</filename></link>
  5613. variable, which allows the initial RAM
  5614. filesystem (initramfs) recipe to use a fixed
  5615. set of packages and not be affected by
  5616. <filename>IMAGE_INSTALL</filename>.
  5617. For information on creating an initramfs, see
  5618. the
  5619. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  5620. section in the Yocto Project Development Tasks
  5621. Manual.
  5622. </para></listitem>
  5623. <listitem><para>
  5624. Using <filename>IMAGE_INSTALL</filename> with
  5625. the
  5626. <ulink url='&YOCTO_DOCS_BB_URL;#appending-and-prepending'><filename>+=</filename></ulink>
  5627. BitBake operator within the
  5628. <filename>/conf/local.conf</filename> file or
  5629. from within an image recipe is not recommended.
  5630. Use of this operator in these ways can cause
  5631. ordering issues.
  5632. Since <filename>core-image.bbclass</filename>
  5633. sets <filename>IMAGE_INSTALL</filename> to a
  5634. default value using the
  5635. <ulink url='&YOCTO_DOCS_BB_URL;#setting-a-default-value'><filename>?=</filename></ulink>
  5636. operator, using a <filename>+=</filename>
  5637. operation against
  5638. <filename>IMAGE_INSTALL</filename> results in
  5639. unexpected behavior when used within
  5640. <filename>conf/local.conf</filename>.
  5641. Furthermore, the same operation from within
  5642. an image recipe may or may not succeed
  5643. depending on the specific situation.
  5644. In both these cases, the behavior is contrary
  5645. to how most users expect the
  5646. <filename>+=</filename> operator to work.
  5647. </para></listitem>
  5648. </itemizedlist>
  5649. </note>
  5650. </para>
  5651. </glossdef>
  5652. </glossentry>
  5653. <glossentry id='var-IMAGE_LINGUAS'><glossterm>IMAGE_LINGUAS</glossterm>
  5654. <info>
  5655. IMAGE_LINGUAS[doc] = "Specifies the list of locales to install into the image during the root filesystem construction process."
  5656. </info>
  5657. <glossdef>
  5658. <para role="glossdeffirst">
  5659. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5660. Specifies the list of locales to install into the image
  5661. during the root filesystem construction process.
  5662. The OpenEmbedded build system automatically splits locale
  5663. files, which are used for localization, into separate
  5664. packages.
  5665. Setting the <filename>IMAGE_LINGUAS</filename> variable
  5666. ensures that any locale packages that correspond to packages
  5667. already selected for installation into the image are also
  5668. installed.
  5669. Here is an example:
  5670. <literallayout class='monospaced'>
  5671. IMAGE_LINGUAS = "pt-br de-de"
  5672. </literallayout>
  5673. </para>
  5674. <para>
  5675. In this example, the build system ensures any Brazilian
  5676. Portuguese and German locale files that correspond to
  5677. packages in the image are installed (i.e.
  5678. <filename>*-locale-pt-br</filename>
  5679. and <filename>*-locale-de-de</filename> as well as
  5680. <filename>*-locale-pt</filename>
  5681. and <filename>*-locale-de</filename>, since some software
  5682. packages only provide locale files by language and not by
  5683. country-specific language).
  5684. </para>
  5685. <para>
  5686. See the
  5687. <link linkend='var-GLIBC_GENERATE_LOCALES'><filename>GLIBC_GENERATE_LOCALES</filename></link>
  5688. variable for information on generating GLIBC locales.
  5689. </para>
  5690. </glossdef>
  5691. </glossentry>
  5692. <glossentry id='var-IMAGE_MANIFEST'><glossterm>IMAGE_MANIFEST</glossterm>
  5693. <info>
  5694. IMAGE_MANIFEST[doc] = "The manifest file for the image. This file lists all the installed packages that make up the image."
  5695. </info>
  5696. <glossdef>
  5697. <para role="glossdeffirst">
  5698. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5699. The manifest file for the image.
  5700. This file lists all the installed packages that make up
  5701. the image.
  5702. The file contains package information on a line-per-package
  5703. basis as follows:
  5704. <literallayout class='monospaced'>
  5705. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  5706. </literallayout>
  5707. </para>
  5708. <para>
  5709. The
  5710. <link linkend='ref-classes-image'><filename>image</filename></link>
  5711. class defines the manifest file as follows:
  5712. <literallayout class='monospaced'>
  5713. IMAGE_MANIFEST = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest"
  5714. </literallayout>
  5715. The location is derived using the
  5716. <link linkend='var-DEPLOY_DIR_IMAGE'><filename>DEPLOY_DIR_IMAGE</filename></link>
  5717. and
  5718. <link linkend='var-IMAGE_NAME'><filename>IMAGE_NAME</filename></link>
  5719. variables.
  5720. You can find information on how the image
  5721. is created in the
  5722. "<ulink url='&YOCTO_DOCS_OM_URL;#image-generation-dev-environment'>Image Generation</ulink>"
  5723. section in the Yocto Project Overview and Concepts Manual.
  5724. </para>
  5725. </glossdef>
  5726. </glossentry>
  5727. <glossentry id='var-IMAGE_NAME'><glossterm>IMAGE_NAME</glossterm>
  5728. <info>
  5729. IMAGE_NAME[doc] = "The name of the output image files minus the extension."
  5730. </info>
  5731. <glossdef>
  5732. <para role="glossdeffirst">
  5733. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5734. The name of the output image files minus the extension.
  5735. This variable is derived using the
  5736. <link linkend='var-IMAGE_BASENAME'><filename>IMAGE_BASENAME</filename></link>,
  5737. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>,
  5738. and
  5739. <link linkend='var-DATETIME'><filename>DATETIME</filename></link>
  5740. variables:
  5741. <literallayout class='monospaced'>
  5742. IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}"
  5743. </literallayout>
  5744. </para>
  5745. </glossdef>
  5746. </glossentry>
  5747. <glossentry id='var-IMAGE_OVERHEAD_FACTOR'><glossterm>IMAGE_OVERHEAD_FACTOR</glossterm>
  5748. <info>
  5749. 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."
  5750. </info>
  5751. <glossdef>
  5752. <para role="glossdeffirst">
  5753. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5754. Defines a multiplier that the build system applies to the initial image
  5755. size for cases when the multiplier times the returned disk usage value
  5756. for the image is greater than the sum of
  5757. <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>
  5758. and
  5759. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>.
  5760. The result of the multiplier applied to the initial image size creates
  5761. free disk space in the image as overhead.
  5762. By default, the build process uses a multiplier of 1.3 for this variable.
  5763. This default value results in 30% free disk space added to the image when this
  5764. method is used to determine the final generated image size.
  5765. You should be aware that post install scripts and the package management
  5766. system uses disk space inside this overhead area.
  5767. Consequently, the multiplier does not produce an image with
  5768. all the theoretical free disk space.
  5769. See <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>
  5770. for information on how the build system determines the overall image size.
  5771. </para>
  5772. <para>
  5773. The default 30% free disk space typically gives the image enough room to boot
  5774. and allows for basic post installs while still leaving a small amount of
  5775. free disk space.
  5776. If 30% free space is inadequate, you can increase the default value.
  5777. For example, the following setting gives you 50% free space added to the image:
  5778. <literallayout class='monospaced'>
  5779. IMAGE_OVERHEAD_FACTOR = "1.5"
  5780. </literallayout>
  5781. </para>
  5782. <para>
  5783. Alternatively, you can ensure a specific amount of free disk space is added
  5784. to the image by using the
  5785. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>
  5786. variable.
  5787. </para>
  5788. </glossdef>
  5789. </glossentry>
  5790. <glossentry id='var-IMAGE_PKGTYPE'><glossterm>IMAGE_PKGTYPE</glossterm>
  5791. <info>
  5792. IMAGE_PKGTYPE[doc] = "Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the OpenEmbedded build system."
  5793. </info>
  5794. <glossdef>
  5795. <para role="glossdeffirst">
  5796. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5797. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used
  5798. by the OpenEmbedded build system.
  5799. The variable is defined appropriately by the
  5800. <link linkend='ref-classes-package_deb'><filename>package_deb</filename></link>,
  5801. <link linkend='ref-classes-package_rpm'><filename>package_rpm</filename></link>,
  5802. <link linkend='ref-classes-package_ipk'><filename>package_ipk</filename></link>,
  5803. or
  5804. <link linkend='ref-classes-package_tar'><filename>package_tar</filename></link>
  5805. class.
  5806. <note><title>Warning</title>
  5807. The <filename>package_tar</filename> class is broken
  5808. and is not supported.
  5809. It is recommended that you do not use it.
  5810. </note>
  5811. </para>
  5812. <para>
  5813. The
  5814. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_*</filename></link>
  5815. and
  5816. <link linkend='ref-classes-image'><filename>image</filename></link>
  5817. classes use the <filename>IMAGE_PKGTYPE</filename> for
  5818. packaging up images and SDKs.
  5819. </para>
  5820. <para>
  5821. You should not set the <filename>IMAGE_PKGTYPE</filename>
  5822. manually.
  5823. Rather, the variable is set indirectly through the
  5824. appropriate
  5825. <link linkend='ref-classes-package'><filename>package_*</filename></link>
  5826. class using the
  5827. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
  5828. variable.
  5829. The OpenEmbedded build system uses the first package type
  5830. (e.g. DEB, RPM, or IPK) that appears with the variable
  5831. <note>
  5832. Files using the <filename>.tar</filename> format are
  5833. never used as a substitute packaging format for DEB,
  5834. RPM, and IPK formatted files for your image or SDK.
  5835. </note>
  5836. </para>
  5837. </glossdef>
  5838. </glossentry>
  5839. <glossentry id='var-IMAGE_POSTPROCESS_COMMAND'><glossterm>IMAGE_POSTPROCESS_COMMAND</glossterm>
  5840. <info>
  5841. IMAGE_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system creates the final image output files."
  5842. </info>
  5843. <glossdef>
  5844. <para role="glossdeffirst">
  5845. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5846. Specifies a list of functions to call once the
  5847. OpenEmbedded build system creates the final image
  5848. output files.
  5849. You can specify functions separated by semicolons:
  5850. <literallayout class='monospaced'>
  5851. IMAGE_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  5852. </literallayout>
  5853. </para>
  5854. <para>
  5855. If you need to pass the root filesystem path to a command
  5856. within the function, you can use
  5857. <filename>${IMAGE_ROOTFS}</filename>, which points to
  5858. the directory that becomes the root filesystem image.
  5859. See the
  5860. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  5861. variable for more information.
  5862. </para>
  5863. </glossdef>
  5864. </glossentry>
  5865. <glossentry id='var-IMAGE_PREPROCESS_COMMAND'><glossterm>IMAGE_PREPROCESS_COMMAND</glossterm>
  5866. <info>
  5867. IMAGE_PREPROCESS_COMMAND[doc] = "Specifies a list of functions to call before the OpenEmbedded build system creates the final image output files."
  5868. </info>
  5869. <glossdef>
  5870. <para role="glossdeffirst">
  5871. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5872. Specifies a list of functions to call before the
  5873. OpenEmbedded build system creates the final image
  5874. output files.
  5875. You can specify functions separated by semicolons:
  5876. <literallayout class='monospaced'>
  5877. IMAGE_PREPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  5878. </literallayout>
  5879. </para>
  5880. <para>
  5881. If you need to pass the root filesystem path to a command
  5882. within the function, you can use
  5883. <filename>${IMAGE_ROOTFS}</filename>, which points to
  5884. the directory that becomes the root filesystem image.
  5885. See the
  5886. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  5887. variable for more information.
  5888. </para>
  5889. </glossdef>
  5890. </glossentry>
  5891. <glossentry id='var-IMAGE_ROOTFS'><glossterm>IMAGE_ROOTFS</glossterm>
  5892. <info>
  5893. IMAGE_ROOTFS[doc] = "The location of the root filesystem while it is under construction (i.e. during do_rootfs)."
  5894. </info>
  5895. <glossdef>
  5896. <para role="glossdeffirst">
  5897. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5898. The location of the root filesystem while it is under
  5899. construction (i.e. during the
  5900. <link linkend='ref-tasks-rootfs'><filename>do_rootfs</filename></link>
  5901. task).
  5902. This variable is not configurable.
  5903. Do not change it.
  5904. </para>
  5905. </glossdef>
  5906. </glossentry>
  5907. <glossentry id='var-IMAGE_ROOTFS_ALIGNMENT'><glossterm>IMAGE_ROOTFS_ALIGNMENT</glossterm>
  5908. <info>
  5909. IMAGE_ROOTFS_ALIGNMENT[doc] = "Specifies the alignment for the output image file in Kbytes."
  5910. </info>
  5911. <glossdef>
  5912. <para role="glossdeffirst">
  5913. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5914. Specifies the alignment for the output image file in
  5915. Kbytes.
  5916. If the size of the image is not a multiple of
  5917. this value, then the size is rounded up to the nearest
  5918. multiple of the value.
  5919. The default value is "1".
  5920. See
  5921. <link linkend='var-IMAGE_ROOTFS_SIZE'><filename>IMAGE_ROOTFS_SIZE</filename></link>
  5922. for additional information.
  5923. </para>
  5924. </glossdef>
  5925. </glossentry>
  5926. <glossentry id='var-IMAGE_ROOTFS_EXTRA_SPACE'><glossterm>IMAGE_ROOTFS_EXTRA_SPACE</glossterm>
  5927. <info>
  5928. IMAGE_ROOTFS_EXTRA_SPACE[doc] = "Defines additional free disk space created in the image in Kbytes. By default, this variable is set to '0'."
  5929. </info>
  5930. <glossdef>
  5931. <para role="glossdeffirst">
  5932. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5933. Defines additional free disk space created in the image in Kbytes.
  5934. By default, this variable is set to "0".
  5935. This free disk space is added to the image after the build system determines
  5936. the image size as described in
  5937. <filename><link linkend='var-IMAGE_ROOTFS_SIZE'>IMAGE_ROOTFS_SIZE</link></filename>.
  5938. </para>
  5939. <para>
  5940. This variable is particularly useful when you want to ensure that a
  5941. specific amount of free disk space is available on a device after an image
  5942. is installed and running.
  5943. For example, to be sure 5 Gbytes of free disk space is available, set the
  5944. variable as follows:
  5945. <literallayout class='monospaced'>
  5946. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  5947. </literallayout>
  5948. </para>
  5949. <para>
  5950. For example, the Yocto Project Build Appliance specifically requests 40 Gbytes
  5951. of extra space with the line:
  5952. <literallayout class='monospaced'>
  5953. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  5954. </literallayout>
  5955. </para>
  5956. </glossdef>
  5957. </glossentry>
  5958. <glossentry id='var-IMAGE_ROOTFS_SIZE'><glossterm>IMAGE_ROOTFS_SIZE</glossterm>
  5959. <info>
  5960. IMAGE_ROOTFS_SIZE[doc] = "Defines the size in Kbytes for the generated image."
  5961. </info>
  5962. <glossdef>
  5963. <para role="glossdeffirst">
  5964. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  5965. Defines the size in Kbytes for the generated image.
  5966. The OpenEmbedded build system determines the final size for the generated
  5967. image using an algorithm that takes into account the initial disk space used
  5968. for the generated image, a requested size for the image, and requested
  5969. additional free disk space to be added to the image.
  5970. Programatically, the build system determines the final size of the
  5971. generated image as follows:
  5972. <literallayout class='monospaced'>
  5973. if (image-du * overhead) &lt; rootfs-size:
  5974. internal-rootfs-size = rootfs-size + xspace
  5975. else:
  5976. internal-rootfs-size = (image-du * overhead) + xspace
  5977. where:
  5978. image-du = Returned value of the du command on
  5979. the image.
  5980. overhead = IMAGE_OVERHEAD_FACTOR
  5981. rootfs-size = IMAGE_ROOTFS_SIZE
  5982. internal-rootfs-size = Initial root filesystem
  5983. size before any modifications.
  5984. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  5985. </literallayout>
  5986. </para>
  5987. <para>
  5988. See the <link linkend='var-IMAGE_OVERHEAD_FACTOR'><filename>IMAGE_OVERHEAD_FACTOR</filename></link>
  5989. and <link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'><filename>IMAGE_ROOTFS_EXTRA_SPACE</filename></link>
  5990. variables for related information.
  5991. <!-- In the above example, <filename>overhead</filename> is defined by the
  5992. <filename><link linkend='var-IMAGE_OVERHEAD_FACTOR'>IMAGE_OVERHEAD_FACTOR</link></filename>
  5993. variable, <filename>xspace</filename> is defined by the
  5994. <filename><link linkend='var-IMAGE_ROOTFS_EXTRA_SPACE'>IMAGE_ROOTFS_EXTRA_SPACE</link></filename>
  5995. variable, and <filename>du</filename> is the results of the disk usage command
  5996. on the initially generated image. -->
  5997. </para>
  5998. </glossdef>
  5999. </glossentry>
  6000. <glossentry id='var-IMAGE_TYPEDEP'><glossterm>IMAGE_TYPEDEP</glossterm>
  6001. <info>
  6002. IMAGE_TYPEDEP[doc] = "Specifies a dependency from one image type on another."
  6003. </info>
  6004. <glossdef>
  6005. <para role="glossdeffirst">
  6006. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6007. Specifies a dependency from one image type on another.
  6008. Here is an example from the
  6009. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  6010. class:
  6011. <literallayout class='monospaced'>
  6012. IMAGE_TYPEDEP_live = "ext3"
  6013. </literallayout>
  6014. </para>
  6015. <para>
  6016. In the previous example, the variable ensures that when
  6017. "live" is listed with the
  6018. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  6019. variable, the OpenEmbedded build system produces an
  6020. <filename>ext3</filename> image first since one of the
  6021. components of the live
  6022. image is an <filename>ext3</filename>
  6023. formatted partition containing the root
  6024. filesystem.
  6025. </para>
  6026. </glossdef>
  6027. </glossentry>
  6028. <glossentry id='var-IMAGE_TYPES'><glossterm>IMAGE_TYPES</glossterm>
  6029. <info>
  6030. IMAGE_TYPES[doc] = "Specifies the complete list of supported image types by default."
  6031. </info>
  6032. <glossdef>
  6033. <para role="glossdeffirst">
  6034. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6035. Specifies the complete list of supported image types
  6036. by default:
  6037. <literallayout class='monospaced'>
  6038. btrfs
  6039. cpio
  6040. cpio.gz
  6041. cpio.lz4
  6042. cpio.lzma
  6043. cpio.xz
  6044. cramfs
  6045. elf
  6046. ext2
  6047. ext2.bz2
  6048. ext2.gz
  6049. ext2.lzma
  6050. ext3
  6051. ext3.gz
  6052. ext4
  6053. ext4.gz
  6054. hdddirect
  6055. hddimg
  6056. iso
  6057. jffs2
  6058. jffs2.sum
  6059. multiubi
  6060. squashfs
  6061. squashfs-lzo
  6062. squashfs-xz
  6063. tar
  6064. tar.bz2
  6065. tar.gz
  6066. tar.lz4
  6067. tar.xz
  6068. ubi
  6069. ubifs
  6070. wic
  6071. wic.bz2
  6072. wic.gz
  6073. wic.lzma
  6074. </literallayout>
  6075. </para>
  6076. <para>
  6077. For more information about these types of images, see
  6078. <filename>meta/classes/image_types*.bbclass</filename>
  6079. in the
  6080. <link linkend='source-directory'>Source Directory</link>.
  6081. </para>
  6082. </glossdef>
  6083. </glossentry>
  6084. <glossentry id='var-INC_PR'><glossterm>INC_PR</glossterm>
  6085. <info>
  6086. INC_PR[doc] = "Helps define the recipe revision for recipes that share a common include file."
  6087. </info>
  6088. <glossdef>
  6089. <para role="glossdeffirst">
  6090. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6091. Helps define the recipe revision for recipes that share
  6092. a common <filename>include</filename> file.
  6093. You can think of this variable as part of the recipe revision
  6094. as set from within an include file.
  6095. </para>
  6096. <para>
  6097. Suppose, for example, you have a set of recipes that
  6098. are used across several projects.
  6099. And, within each of those recipes the revision
  6100. (its <link linkend='var-PR'><filename>PR</filename></link>
  6101. value) is set accordingly.
  6102. In this case, when the revision of those recipes changes,
  6103. the burden is on you to find all those recipes and
  6104. be sure that they get changed to reflect the updated
  6105. version of the recipe.
  6106. In this scenario, it can get complicated when recipes
  6107. that are used in many places and provide common functionality
  6108. are upgraded to a new revision.
  6109. </para>
  6110. <para>
  6111. A more efficient way of dealing with this situation is
  6112. to set the <filename>INC_PR</filename> variable inside
  6113. the <filename>include</filename> files that the recipes
  6114. share and then expand the <filename>INC_PR</filename>
  6115. variable within the recipes to help
  6116. define the recipe revision.
  6117. </para>
  6118. <para>
  6119. The following provides an example that shows how to use
  6120. the <filename>INC_PR</filename> variable
  6121. given a common <filename>include</filename> file that
  6122. defines the variable.
  6123. Once the variable is defined in the
  6124. <filename>include</filename> file, you can use the
  6125. variable to set the <filename>PR</filename> values in
  6126. each recipe.
  6127. You will notice that when you set a recipe's
  6128. <filename>PR</filename> you can provide more granular
  6129. revisioning by appending values to the
  6130. <filename>INC_PR</filename> variable:
  6131. <literallayout class='monospaced'>
  6132. recipes-graphics/xorg-font/xorg-font-common.inc:INC_PR = "r2"
  6133. recipes-graphics/xorg-font/encodings_1.0.4.bb:PR = "${INC_PR}.1"
  6134. recipes-graphics/xorg-font/font-util_1.3.0.bb:PR = "${INC_PR}.0"
  6135. recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
  6136. </literallayout>
  6137. The first line of the example establishes the baseline
  6138. revision to be used for all recipes that use the
  6139. <filename>include</filename> file.
  6140. The remaining lines in the example are from individual
  6141. recipes and show how the <filename>PR</filename> value
  6142. is set.
  6143. </para>
  6144. </glossdef>
  6145. </glossentry>
  6146. <glossentry id='var-INCOMPATIBLE_LICENSE'><glossterm>INCOMPATIBLE_LICENSE</glossterm>
  6147. <info>
  6148. INCOMPATIBLE_LICENSE[doc] = "Specifies a space-separated list of license names (as they would appear in LICENSE) that should be excluded from the build."
  6149. </info>
  6150. <glossdef>
  6151. <para role="glossdeffirst">
  6152. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6153. Specifies a space-separated list of license names
  6154. (as they would appear in
  6155. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>)
  6156. that should be excluded from the build.
  6157. Recipes that provide no alternatives to listed incompatible
  6158. licenses are not built.
  6159. Packages that are individually licensed with the specified
  6160. incompatible licenses will be deleted.
  6161. </para>
  6162. <note>
  6163. This functionality is only regularly tested using
  6164. the following setting:
  6165. <literallayout class='monospaced'>
  6166. INCOMPATIBLE_LICENSE = "GPL-3.0 LGPL-3.0 AGPL-3.0"
  6167. </literallayout>
  6168. Although you can use other settings, you might be required
  6169. to remove dependencies on or provide alternatives to
  6170. components that are required to produce a functional system
  6171. image.
  6172. </note>
  6173. </glossdef>
  6174. </glossentry>
  6175. <glossentry id='var-INHERIT'><glossterm>INHERIT</glossterm>
  6176. <info>
  6177. INHERIT[doc] = "Causes the named class or classes to be inherited globally."
  6178. </info>
  6179. <glossdef>
  6180. <para role="glossdeffirst">
  6181. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6182. Causes the named class or classes to be inherited globally.
  6183. Anonymous functions in the class or classes
  6184. are not executed for the
  6185. base configuration and in each individual recipe.
  6186. The OpenEmbedded build system ignores changes to
  6187. <filename>INHERIT</filename> in individual recipes.
  6188. </para>
  6189. <para>
  6190. For more information on <filename>INHERIT</filename>, see
  6191. the
  6192. "<ulink url="&YOCTO_DOCS_BB_URL;#inherit-configuration-directive"><filename>INHERIT</filename> Configuration Directive</ulink>"
  6193. section in the Bitbake User Manual.
  6194. </para>
  6195. </glossdef>
  6196. </glossentry>
  6197. <glossentry id='var-INHERIT_DISTRO'><glossterm>INHERIT_DISTRO</glossterm>
  6198. <info>
  6199. INHERIT_DISTRO[doc] = "Lists classes that will be inherited at the distribution level. It is unlikely that you want to edit this variable."
  6200. </info>
  6201. <glossdef>
  6202. <para role="glossdeffirst">
  6203. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6204. Lists classes that will be inherited at the
  6205. distribution level.
  6206. It is unlikely that you want to edit this variable.
  6207. </para>
  6208. <para>
  6209. The default value of the variable is set as follows in the
  6210. <filename>meta/conf/distro/defaultsetup.conf</filename>
  6211. file:
  6212. <literallayout class='monospaced'>
  6213. INHERIT_DISTRO ?= "debian devshell sstate license"
  6214. </literallayout>
  6215. </para>
  6216. </glossdef>
  6217. </glossentry>
  6218. <glossentry id='var-INHIBIT_DEFAULT_DEPS'><glossterm>INHIBIT_DEFAULT_DEPS</glossterm>
  6219. <info>
  6220. INHIBIT_DEFAULT_DEPS[doc] = "Prevents the default dependencies, namely the C compiler and standard C library (libc), from being added to DEPENDS."
  6221. </info>
  6222. <glossdef>
  6223. <para role="glossdeffirst">
  6224. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6225. Prevents the default dependencies, namely the C compiler
  6226. and standard C library (libc), from being added to
  6227. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>.
  6228. This variable is usually used within recipes that do not
  6229. require any compilation using the C compiler.
  6230. </para>
  6231. <para>
  6232. Set the variable to "1" to prevent the default dependencies
  6233. from being added.
  6234. </para>
  6235. </glossdef>
  6236. </glossentry>
  6237. <glossentry id='var-INHIBIT_PACKAGE_DEBUG_SPLIT'><glossterm>INHIBIT_PACKAGE_DEBUG_SPLIT</glossterm>
  6238. <info>
  6239. INHIBIT_PACKAGE_DEBUG_SPLIT[doc] = "If set to "1", prevents the OpenEmbedded build system from splitting out debug information during packaging"
  6240. </info>
  6241. <glossdef>
  6242. <para role="glossdeffirst">
  6243. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6244. Prevents the OpenEmbedded build system from splitting
  6245. out debug information during packaging.
  6246. By default, the build system splits out debugging
  6247. information during the
  6248. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  6249. task.
  6250. For more information on how debug information is split out,
  6251. see the
  6252. <link linkend='var-PACKAGE_DEBUG_SPLIT_STYLE'><filename>PACKAGE_DEBUG_SPLIT_STYLE</filename></link>
  6253. variable.
  6254. </para>
  6255. <para>
  6256. To prevent the build system from splitting out
  6257. debug information during packaging, set the
  6258. <filename>INHIBIT_PACKAGE_DEBUG_SPLIT</filename> variable
  6259. as follows:
  6260. <literallayout class='monospaced'>
  6261. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  6262. </literallayout>
  6263. </para>
  6264. </glossdef>
  6265. </glossentry>
  6266. <glossentry id='var-INHIBIT_PACKAGE_STRIP'><glossterm>INHIBIT_PACKAGE_STRIP</glossterm>
  6267. <info>
  6268. INHIBIT_PACKAGE_STRIP[doc] = "If set to "1", causes the build to not strip binaries in resulting packages."
  6269. </info>
  6270. <glossdef>
  6271. <para role="glossdeffirst">
  6272. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6273. If set to "1", causes the build to not strip binaries in
  6274. resulting packages and prevents the
  6275. <filename>-dbg</filename> package from containing the
  6276. source files.
  6277. </para>
  6278. <para>
  6279. By default, the OpenEmbedded build system strips
  6280. binaries and puts the debugging symbols into
  6281. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}-dbg</filename>.
  6282. Consequently, you should not set
  6283. <filename>INHIBIT_PACKAGE_STRIP</filename> when you plan
  6284. to debug in general.
  6285. </para>
  6286. </glossdef>
  6287. </glossentry>
  6288. <glossentry id='var-INITRAMFS_FSTYPES'><glossterm>INITRAMFS_FSTYPES</glossterm>
  6289. <info>
  6290. INITRAMFS_FSTYPES[doc] = "Defines the format for the output image of an initial RAM filesystem (initramfs), which is used during boot."
  6291. </info>
  6292. <glossdef>
  6293. <para role="glossdeffirst">
  6294. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6295. Defines the format for the output image of an initial
  6296. RAM filesystem (initramfs), which is used during boot.
  6297. Supported formats are the same as those supported by the
  6298. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  6299. variable.
  6300. </para>
  6301. <para>
  6302. The default value of this variable, which is set in the
  6303. <filename>meta/conf/bitbake.conf</filename> configuration
  6304. file in the
  6305. <link linkend='source-directory'>Source Directory</link>,
  6306. is "cpio.gz".
  6307. The Linux kernel's initramfs mechanism, as opposed to the
  6308. initial RAM filesystem
  6309. <ulink url='https://en.wikipedia.org/wiki/Initrd'>initrd</ulink>
  6310. mechanism, expects an optionally compressed cpio
  6311. archive.
  6312. </para>
  6313. </glossdef>
  6314. </glossentry>
  6315. <glossentry id='var-INITRAMFS_IMAGE'><glossterm>INITRAMFS_IMAGE</glossterm>
  6316. <info>
  6317. INITRAMFS_IMAGE[doc] = "Specifies the PROVIDES name of an image recipe that is used to build an initial RAM filesystem (initramfs) image."
  6318. </info>
  6319. <glossdef>
  6320. <para role="glossdeffirst">
  6321. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6322. Specifies the
  6323. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  6324. name of an image recipe that is used to build an initial
  6325. RAM filesystem (initramfs) image.
  6326. In other words, the <filename>INITRAMFS_IMAGE</filename>
  6327. variable causes an additional recipe to be built as
  6328. a dependency to whatever root filesystem recipe you
  6329. might be using (e.g. <filename>core-image-sato</filename>).
  6330. The initramfs image recipe you provide should set
  6331. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  6332. to
  6333. <link linkend='var-INITRAMFS_FSTYPES'><filename>INITRAMFS_FSTYPES</filename></link>.
  6334. </para>
  6335. <para>
  6336. An initramfs image provides a temporary root filesystem
  6337. used for early system initialization (e.g. loading of
  6338. modules needed to locate and mount the "real" root
  6339. filesystem).
  6340. <note>
  6341. See the <filename>meta/recipes-core/images/core-image-minimal-initramfs.bb</filename>
  6342. recipe in the
  6343. <link linkend='source-directory'>Source Directory</link>
  6344. for an example initramfs recipe.
  6345. To select this sample recipe as the one built
  6346. to provide the initramfs image,
  6347. set <filename>INITRAMFS_IMAGE</filename> to
  6348. "core-image-minimal-initramfs".
  6349. </note>
  6350. </para>
  6351. <para>
  6352. You can also find more information by referencing the
  6353. <filename>meta-poky/conf/local.conf.sample.extended</filename>
  6354. configuration file in the Source Directory,
  6355. the
  6356. <link linkend='ref-classes-image'><filename>image</filename></link>
  6357. class, and the
  6358. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  6359. class to see how to use the
  6360. <filename>INITRAMFS_IMAGE</filename> variable.
  6361. </para>
  6362. <para>
  6363. If <filename>INITRAMFS_IMAGE</filename> is empty, which is
  6364. the default, then no initramfs image is built.
  6365. </para>
  6366. <para>
  6367. For more information, you can also see the
  6368. <link linkend='var-INITRAMFS_IMAGE_BUNDLE'><filename>INITRAMFS_IMAGE_BUNDLE</filename></link>
  6369. variable, which allows the generated image to be bundled
  6370. inside the kernel image.
  6371. Additionally, for information on creating an initramfs
  6372. image, see the
  6373. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  6374. section in the Yocto Project Development Tasks Manual.
  6375. </para>
  6376. </glossdef>
  6377. </glossentry>
  6378. <glossentry id='var-INITRAMFS_IMAGE_BUNDLE'><glossterm>INITRAMFS_IMAGE_BUNDLE</glossterm>
  6379. <info>
  6380. 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)."
  6381. </info>
  6382. <glossdef>
  6383. <para role="glossdeffirst">
  6384. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6385. Controls whether or not the image recipe specified by
  6386. <link linkend='var-INITRAMFS_IMAGE'><filename>INITRAMFS_IMAGE</filename></link>
  6387. is run through an extra pass
  6388. (<link linkend='ref-tasks-bundle_initramfs'><filename>do_bundle_initramfs</filename></link>)
  6389. during kernel compilation in order to build a single binary
  6390. that contains both the kernel image and the initial RAM
  6391. filesystem (initramfs) image.
  6392. This makes use of the
  6393. <link linkend='var-CONFIG_INITRAMFS_SOURCE'><filename>CONFIG_INITRAMFS_SOURCE</filename></link>
  6394. kernel feature.
  6395. <note>
  6396. Using an extra compilation pass to bundle the initramfs
  6397. avoids a circular dependency between the kernel recipe and
  6398. the initramfs recipe should the initramfs include kernel
  6399. modules.
  6400. Should that be the case, the initramfs recipe depends on
  6401. the kernel for the kernel modules, and the kernel depends
  6402. on the initramfs recipe since the initramfs is bundled
  6403. inside the kernel image.
  6404. </note>
  6405. </para>
  6406. <para>
  6407. The combined binary is deposited into the
  6408. <filename>tmp/deploy</filename> directory, which is part
  6409. of the
  6410. <link linkend='build-directory'>Build Directory</link>.
  6411. </para>
  6412. <para>
  6413. Setting the variable to "1" in a configuration file causes the
  6414. OpenEmbedded build system to generate a kernel image with the
  6415. initramfs specified in <filename>INITRAMFS_IMAGE</filename>
  6416. bundled within:
  6417. <literallayout class='monospaced'>
  6418. INITRAMFS_IMAGE_BUNDLE = "1"
  6419. </literallayout>
  6420. By default, the
  6421. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  6422. class sets this variable to a null string as follows:
  6423. <literallayout class='monospaced'>
  6424. INITRAMFS_IMAGE_BUNDLE ?= ""
  6425. </literallayout>
  6426. <note>
  6427. You must set the
  6428. <filename>INITRAMFS_IMAGE_BUNDLE</filename> variable in
  6429. a configuration file.
  6430. You cannot set the variable in a recipe file.
  6431. </note>
  6432. See the
  6433. <ulink url='&YOCTO_GIT_URL;/cgit/cgit.cgi/poky/tree/meta-poky/conf/local.conf.sample.extended'><filename>local.conf.sample.extended</filename></ulink>
  6434. file for additional information.
  6435. Also, for information on creating an initramfs, see the
  6436. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  6437. section in the Yocto Project Development Tasks Manual.
  6438. </para>
  6439. </glossdef>
  6440. </glossentry>
  6441. <glossentry id='var-INITRD'><glossterm>INITRD</glossterm>
  6442. <info>
  6443. INITRD[doc] = "Indicates a list of filesystem images to concatenate and use as an initial RAM disk (initrd)."
  6444. </info>
  6445. <glossdef>
  6446. <para role="glossdeffirst">
  6447. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6448. Indicates list of filesystem images to concatenate and use
  6449. as an initial RAM disk (<filename>initrd</filename>).
  6450. </para>
  6451. <para>
  6452. The <filename>INITRD</filename> variable is an optional
  6453. variable used with the
  6454. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  6455. class.
  6456. </para>
  6457. </glossdef>
  6458. </glossentry>
  6459. <glossentry id='var-INITRD_IMAGE'><glossterm>INITRD_IMAGE</glossterm>
  6460. <info>
  6461. 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."
  6462. </info>
  6463. <glossdef>
  6464. <para role="glossdeffirst">
  6465. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6466. When building a "live" bootable image (i.e. when
  6467. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  6468. contains "live"), <filename>INITRD_IMAGE</filename>
  6469. specifies the image recipe that should be built
  6470. to provide the initial RAM disk image.
  6471. The default value is "core-image-minimal-initramfs".
  6472. </para>
  6473. <para>
  6474. See the
  6475. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  6476. class for more information.
  6477. </para>
  6478. </glossdef>
  6479. </glossentry>
  6480. <glossentry id='var-INITSCRIPT_NAME'><glossterm>INITSCRIPT_NAME</glossterm>
  6481. <info>
  6482. INITSCRIPT_NAME[doc] = "The filename of the initialization script as installed to ${sysconfdir}/init.d."
  6483. </info>
  6484. <glossdef>
  6485. <para role="glossdeffirst">
  6486. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6487. The filename of the initialization script as installed to
  6488. <filename>${sysconfdir}/init.d</filename>.
  6489. </para>
  6490. <para>
  6491. This variable is used in recipes when using <filename>update-rc.d.bbclass</filename>.
  6492. The variable is mandatory.
  6493. </para>
  6494. </glossdef>
  6495. </glossentry>
  6496. <glossentry id='var-INITSCRIPT_PACKAGES'><glossterm>INITSCRIPT_PACKAGES</glossterm>
  6497. <info>
  6498. 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."
  6499. </info>
  6500. <glossdef>
  6501. <para role="glossdeffirst">
  6502. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6503. A list of the packages that contain initscripts.
  6504. If multiple packages are specified, you need to append the package name
  6505. to the other <filename>INITSCRIPT_*</filename> as an override.
  6506. </para>
  6507. <para>
  6508. This variable is used in recipes when using <filename>update-rc.d.bbclass</filename>.
  6509. The variable is optional and defaults to the
  6510. <link linkend='var-PN'><filename>PN</filename></link> variable.
  6511. </para>
  6512. </glossdef>
  6513. </glossentry>
  6514. <glossentry id='var-INITSCRIPT_PARAMS'><glossterm>INITSCRIPT_PARAMS</glossterm>
  6515. <info>
  6516. 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."
  6517. </info>
  6518. <glossdef>
  6519. <para role="glossdeffirst">
  6520. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6521. Specifies the options to pass to <filename>update-rc.d</filename>.
  6522. Here is an example:
  6523. <literallayout class='monospaced'>
  6524. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  6525. </literallayout>
  6526. </para>
  6527. <para>
  6528. In this example, the script has a runlevel of 99,
  6529. starts the script in initlevels 2 and 5, and
  6530. stops the script in levels 0, 1 and 6.
  6531. </para>
  6532. <para>
  6533. The variable's default value is "defaults", which is
  6534. set in the
  6535. <link linkend='ref-classes-update-rc.d'><filename>update-rc.d</filename></link>
  6536. class.
  6537. </para>
  6538. <para>
  6539. The value in
  6540. <filename>INITSCRIPT_PARAMS</filename> is passed through
  6541. to the <filename>update-rc.d</filename> command.
  6542. For more information on valid parameters, please see the
  6543. <filename>update-rc.d</filename> manual page at
  6544. <ulink url='http://www.tin.org/bin/man.cgi?section=8&amp;topic=update-rc.d'></ulink>.
  6545. </para>
  6546. </glossdef>
  6547. </glossentry>
  6548. <glossentry id='var-INSANE_SKIP'><glossterm>INSANE_SKIP</glossterm>
  6549. <info>
  6550. INSANE_SKIP[doc] = "Specifies the QA checks to skip for a specific package within a recipe."
  6551. </info>
  6552. <glossdef>
  6553. <para role="glossdeffirst">
  6554. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6555. Specifies the QA checks to skip for a specific package
  6556. within a recipe.
  6557. For example, to skip the check for symbolic link
  6558. <filename>.so</filename> files in the main package of a
  6559. recipe, add the following to the recipe.
  6560. The package name override must be used, which in this
  6561. example is <filename>${PN}</filename>:
  6562. <literallayout class='monospaced'>
  6563. INSANE_SKIP_${PN} += "dev-so"
  6564. </literallayout>
  6565. </para>
  6566. <para>
  6567. See the "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  6568. section for a list of the valid QA checks you can
  6569. specify using this variable.
  6570. </para>
  6571. </glossdef>
  6572. </glossentry>
  6573. <glossentry id='var-INSTALL_TIMEZONE_FILE'><glossterm>INSTALL_TIMEZONE_FILE</glossterm>
  6574. <info>
  6575. INSTALL_TIMEZONE_FILE[doc] = "Enables installation of the /etc/timezone file."
  6576. </info>
  6577. <glossdef>
  6578. <para role="glossdeffirst">
  6579. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6580. By default, the <filename>tzdata</filename> recipe packages
  6581. an <filename>/etc/timezone</filename> file.
  6582. Set the <filename>INSTALL_TIMEZONE_FILE</filename>
  6583. variable to "0" at the configuration level to disable this
  6584. behavior.
  6585. </para>
  6586. </glossdef>
  6587. </glossentry>
  6588. <glossentry id='var-IPK_FEED_URIS'><glossterm>IPK_FEED_URIS</glossterm>
  6589. <info>
  6590. IPK_FEED_URIS[doc] = "List of ipkg feed records to put into generated image."
  6591. </info>
  6592. <glossdef>
  6593. <para role="glossdeffirst">
  6594. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6595. When the IPK backend is in use and package management
  6596. is enabled on the target, you can use this variable to
  6597. set up <filename>opkg</filename> in the target image
  6598. to point to package feeds on a nominated server.
  6599. Once the feed is established, you can perform
  6600. installations or upgrades using the package manager
  6601. at runtime.
  6602. </para>
  6603. </glossdef>
  6604. </glossentry>
  6605. <!--
  6606. <glossentry id='var-INTERCEPT_DIR'><glossterm>INTERCEPT_DIR</glossterm>
  6607. <glossdef>
  6608. <para>
  6609. An environment variable that defines the directory where
  6610. post installation hooks are installed for the
  6611. post install environment.
  6612. This variable is fixed as follows:
  6613. <literallayout class='monospaced'>
  6614. ${WORKDIR}/intercept_scripts
  6615. </literallayout>
  6616. </para>
  6617. <para>
  6618. After installation of a target's root filesystem,
  6619. post installation scripts, which are essentially bash scripts,
  6620. are all executed just a single time.
  6621. Limiting execution of these scripts minimizes installation
  6622. time that would be lengthened due to certain packages
  6623. triggering redundant operations.
  6624. For example, consider the installation of font packages
  6625. as a common example.
  6626. Without limiting the execution of post installation scripts,
  6627. all font directories would be rescanned to create the
  6628. cache after each individual font package was installed.
  6629. </para>
  6630. <para>
  6631. Do not edit the <filename>INTERCEPT_DIR</filename>
  6632. variable.
  6633. </para>
  6634. </glossdef>
  6635. </glossentry>
  6636. -->
  6637. </glossdiv>
  6638. <!-- <glossdiv id='var-glossary-j'><title>J</title>-->
  6639. <!-- </glossdiv>-->
  6640. <glossdiv id='var-glossary-k'><title>K</title>
  6641. <glossentry id='var-KARCH'><glossterm>KARCH</glossterm>
  6642. <info>
  6643. KARCH[doc] = "Defines the kernel architecture used when assembling the configuration. You define the KARCH variable in the BSP Descriptions."
  6644. </info>
  6645. <glossdef>
  6646. <para role="glossdeffirst">
  6647. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6648. Defines the kernel architecture used when assembling
  6649. the configuration.
  6650. Architectures supported for this release are:
  6651. <literallayout class='monospaced'>
  6652. powerpc
  6653. i386
  6654. x86_64
  6655. arm
  6656. qemu
  6657. mips
  6658. </literallayout>
  6659. </para>
  6660. <para>
  6661. You define the <filename>KARCH</filename> variable in the
  6662. <ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#bsp-descriptions'>BSP Descriptions</ulink>.
  6663. </para>
  6664. </glossdef>
  6665. </glossentry>
  6666. <glossentry id='var-KBRANCH'><glossterm>KBRANCH</glossterm>
  6667. <info>
  6668. 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."
  6669. </info>
  6670. <glossdef>
  6671. <para role="glossdeffirst">
  6672. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6673. A regular expression used by the build process to explicitly
  6674. identify the kernel branch that is validated, patched,
  6675. and configured during a build.
  6676. You must set this variable to ensure the exact kernel
  6677. branch you want is being used by the build process.
  6678. </para>
  6679. <para>
  6680. Values for this variable are set in the kernel's recipe
  6681. file and the kernel's append file.
  6682. For example, if you are using the
  6683. <filename>linux-yocto_4.12</filename> kernel, the kernel
  6684. recipe file is the
  6685. <filename>meta/recipes-kernel/linux/linux-yocto_4.12.bb</filename>
  6686. file.
  6687. <filename>KBRANCH</filename> is set as follows in that
  6688. kernel recipe file:
  6689. <literallayout class='monospaced'>
  6690. KBRANCH ?= "standard/base"
  6691. </literallayout>
  6692. </para>
  6693. <para>
  6694. This variable is also used from the kernel's append file
  6695. to identify the kernel branch specific to a particular
  6696. machine or target hardware.
  6697. Continuing with the previous kernel example, the kernel's
  6698. append file (i.e.
  6699. <filename>linux-yocto_4.12.bbappend</filename>) is located
  6700. in the BSP layer for a given machine.
  6701. For example, the append file for the Beaglebone,
  6702. EdgeRouter, and generic versions of both 32 and 64-bit IA
  6703. machines (<filename>meta-yocto-bsp</filename>) is named
  6704. <filename>meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.12.bbappend</filename>.
  6705. Here are the related statements from that append file:
  6706. <literallayout class='monospaced'>
  6707. KBRANCH_genericx86 = "standard/base"
  6708. KBRANCH_genericx86-64 = "standard/base"
  6709. KBRANCH_edgerouter = "standard/edgerouter"
  6710. KBRANCH_beaglebone = "standard/beaglebone"
  6711. KBRANCH_mpc8315e-rdb = "standard/fsl-mpc8315e-rdb"
  6712. </literallayout>
  6713. The <filename>KBRANCH</filename> statements identify
  6714. the kernel branch to use when building for each
  6715. supported BSP.
  6716. </para>
  6717. </glossdef>
  6718. </glossentry>
  6719. <glossentry id='var-KBUILD_DEFCONFIG'><glossterm>KBUILD_DEFCONFIG</glossterm>
  6720. <info>
  6721. KBUILD_DEFCONFIG[doc] = "Specifies an "in-tree" kernel configuration file for use during a kernel build."
  6722. </info>
  6723. <glossdef>
  6724. <para role="glossdeffirst">
  6725. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6726. When used with the
  6727. <link linkend='ref-classes-kernel-yocto'><filename>kernel-yocto</filename></link>
  6728. class, specifies an "in-tree" kernel configuration file
  6729. for use during a kernel build.
  6730. </para>
  6731. <para>
  6732. Typically, when using a <filename>defconfig</filename> to
  6733. configure a kernel during a build, you place the
  6734. file in your layer in the same manner as you would
  6735. place patch files and configuration fragment files (i.e.
  6736. "out-of-tree").
  6737. However, if you want to use a <filename>defconfig</filename>
  6738. file that is part of the kernel tree (i.e. "in-tree"),
  6739. you can use the
  6740. <filename>KBUILD_DEFCONFIG</filename> variable and append
  6741. the
  6742. <link linkend='var-KMACHINE'><filename>KMACHINE</filename></link>
  6743. variable to point to the <filename>defconfig</filename>
  6744. file.
  6745. </para>
  6746. <para>
  6747. To use the variable, set it in the append file for your
  6748. kernel recipe using the following form:
  6749. <literallayout class='monospaced'>
  6750. KBUILD_DEFCONFIG_<replaceable>KMACHINE</replaceable> ?= <replaceable>defconfig_file</replaceable>
  6751. </literallayout>
  6752. Here is an example from a "raspberrypi2"
  6753. <filename>KMACHINE</filename> build that uses a
  6754. <filename>defconfig</filename> file named
  6755. "bcm2709_defconfig":
  6756. <literallayout class='monospaced'>
  6757. KBUILD_DEFCONFIG_raspberrypi2 = "bcm2709_defconfig"
  6758. </literallayout>
  6759. As an alternative, you can use the following within your
  6760. append file:
  6761. <literallayout class='monospaced'>
  6762. KBUILD_DEFCONFIG_pn-linux-yocto ?= <replaceable>defconfig_file</replaceable>
  6763. </literallayout>
  6764. For more information on how to use the
  6765. <filename>KBUILD_DEFCONFIG</filename> variable, see the
  6766. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#using-an-in-tree-defconfig-file'>Using an "In-Tree" <filename>defconfig</filename> File</ulink>"
  6767. section in the Yocto Project Linux Kernel Development
  6768. Manual.
  6769. </para>
  6770. </glossdef>
  6771. </glossentry>
  6772. <glossentry id='var-KERNEL_ALT_IMAGETYPE'><glossterm>KERNEL_ALT_IMAGETYPE</glossterm>
  6773. <info>
  6774. KERNEL_ALT_IMAGETYPE[doc] = "Specifies an alternate kernel image type for creation."
  6775. </info>
  6776. <glossdef>
  6777. <para role="glossdeffirst">
  6778. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6779. Specifies an alternate kernel image type for creation in
  6780. addition to the kernel image type specified using the
  6781. <link linkend='var-KERNEL_IMAGETYPE'><filename>KERNEL_IMAGETYPE</filename></link>
  6782. variable.
  6783. </para>
  6784. </glossdef>
  6785. </glossentry>
  6786. <glossentry id='var-KERNEL_CLASSES'><glossterm>KERNEL_CLASSES</glossterm>
  6787. <info>
  6788. KERNEL_CLASSES[doc] = "A list of classes defining kernel image types that kernel class should inherit."
  6789. </info>
  6790. <glossdef>
  6791. <para role="glossdeffirst">
  6792. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6793. A list of classes defining kernel image types that the
  6794. <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
  6795. class should inherit.
  6796. You typically append this variable to enable extended image
  6797. types.
  6798. An example is the "kernel-fitimage", which enables
  6799. fitImage support and resides in
  6800. <filename>meta/classes/kernel-fitimage.bbclass</filename>.
  6801. You can register custom kernel image types with the
  6802. <filename>kernel</filename> class using this variable.
  6803. </para>
  6804. </glossdef>
  6805. </glossentry>
  6806. <glossentry id='var-KERNEL_DEVICETREE'><glossterm>KERNEL_DEVICETREE</glossterm>
  6807. <info>
  6808. KERNEL_DEVICETREE[doc] = "Specifies the name of the generated Linux kernel device tree (i.e. the .dtb) file."
  6809. </info>
  6810. <glossdef>
  6811. <para role="glossdeffirst">
  6812. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6813. Specifies the name of the generated Linux kernel device tree
  6814. (i.e. the <filename>.dtb</filename>) file.
  6815. <note>
  6816. Legacy support exists for specifying the full path
  6817. to the device tree.
  6818. However, providing just the <filename>.dtb</filename>
  6819. file is preferred.
  6820. </note>
  6821. In order to use this variable, you must have the include
  6822. files in your kernel recipe:
  6823. <literallayout class='monospaced'>
  6824. require recipes-kernel/linux/linux-dtb.inc
  6825. </literallayout>
  6826. or
  6827. <literallayout class='monospaced'>
  6828. require recipes-kernel/linux/linux-yocto.inc
  6829. </literallayout>
  6830. </para>
  6831. </glossdef>
  6832. </glossentry>
  6833. <glossentry id='var-KERNEL_EXTRA_ARGS'><glossterm>KERNEL_EXTRA_ARGS</glossterm>
  6834. <info>
  6835. KERNEL_EXTRA_ARGS[doc] = "Specifies additional make command-line arguments the OpenEmbedded build system passes on when compiling the kernel."
  6836. </info>
  6837. <glossdef>
  6838. <para role="glossdeffirst">
  6839. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6840. Specifies additional <filename>make</filename>
  6841. command-line arguments the OpenEmbedded build system
  6842. passes on when compiling the kernel.
  6843. </para>
  6844. </glossdef>
  6845. </glossentry>
  6846. <glossentry id='var-KERNEL_FEATURES'><glossterm>KERNEL_FEATURES</glossterm>
  6847. <info>
  6848. KERNEL_FEATURES[doc] = "Includes additional kernel metadata. The metadata you add through this variable includes config fragments and features descriptions."
  6849. </info>
  6850. <glossdef>
  6851. <para role="glossdeffirst">
  6852. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6853. Includes additional kernel metadata.
  6854. In the OpenEmbedded build system, the default Board Support
  6855. Packages (BSPs)
  6856. <link linkend='metadata'>Metadata</link>
  6857. is provided through
  6858. the <link linkend='var-KMACHINE'><filename>KMACHINE</filename></link>
  6859. and
  6860. <link linkend='var-KBRANCH'><filename>KBRANCH</filename></link>
  6861. variables.
  6862. You can use the <filename>KERNEL_FEATURES</filename>
  6863. variable from within the kernel recipe or kernel append
  6864. file to further add metadata for all BSPs or specific
  6865. BSPs.
  6866. </para>
  6867. <para>
  6868. The metadata you add through this variable includes config
  6869. fragments and features descriptions,
  6870. which usually includes patches as well as config fragments.
  6871. You typically override the
  6872. <filename>KERNEL_FEATURES</filename> variable for a
  6873. specific machine.
  6874. In this way, you can provide validated, but optional,
  6875. sets of kernel configurations and features.
  6876. </para>
  6877. <para>
  6878. For example, the following example from the
  6879. <filename>linux-yocto-rt_4.12</filename> kernel recipe
  6880. adds "netfilter" and "taskstats" features to all BSPs
  6881. as well as "virtio" configurations to all QEMU machines.
  6882. The last two statements add specific configurations to
  6883. targeted machine types:
  6884. <literallayout class='monospaced'>
  6885. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  6886. KERNEL_FEATURES_append = " ${KERNEL_EXTRA_FEATURES}"
  6887. KERNEL_FEATURES_append_qemuall=" cfg/virtio.scc"
  6888. KERNEL_FEATURES_append_qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc"
  6889. KERNEL_FEATURES_append_qemux86-64=" cfg/sound.scc"
  6890. </literallayout></para>
  6891. </glossdef>
  6892. </glossentry>
  6893. <glossentry id='var-KERNEL_IMAGE_BASE_NAME'><glossterm>KERNEL_IMAGE_BASE_NAME</glossterm>
  6894. <info>
  6895. KERNEL_IMAGE_BASE_NAME[doc] = "The base name of the kernel image."
  6896. </info>
  6897. <glossdef>
  6898. <para role="glossdeffirst">
  6899. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6900. The base name of the kernel image.
  6901. This variable is set in the
  6902. <link linkend='ref-classes-kernel'>kernel</link> class
  6903. as follows:
  6904. <literallayout class='monospaced'>
  6905. KERNEL_IMAGE_BASE_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
  6906. </literallayout>
  6907. </para>
  6908. <para>
  6909. See the
  6910. <link linkend='var-PKGE'><filename>PKGE</filename></link>,
  6911. <link linkend='var-PKGV'><filename>PKGV</filename></link>,
  6912. <link linkend='var-PKGR'><filename>PKGR</filename></link>,
  6913. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>,
  6914. and
  6915. <link linkend='var-DATETIME'><filename>DATETIME</filename></link>
  6916. variables for additional information.
  6917. </para>
  6918. </glossdef>
  6919. </glossentry>
  6920. <glossentry id='var-KERNEL_IMAGE_MAXSIZE'><glossterm>KERNEL_IMAGE_MAXSIZE</glossterm>
  6921. <info>
  6922. KERNEL_IMAGE_MAXSIZE[doc] = "The maximum allowable size in kilobytes of the kernel image file."
  6923. </info>
  6924. <glossdef>
  6925. <para role="glossdeffirst">
  6926. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6927. Specifies the maximum size of the kernel image file in
  6928. kilobytes.
  6929. If <filename>KERNEL_IMAGE_MAXSIZE</filename> is set,
  6930. the size of the kernel image file is checked against
  6931. the set value during the
  6932. <link linkend='ref-tasks-sizecheck'><filename>do_sizecheck</filename></link>
  6933. task.
  6934. The task fails if the kernel image file is larger than
  6935. the setting.
  6936. </para>
  6937. <para>
  6938. <filename>KERNEL_IMAGE_MAXSIZE</filename> is useful for
  6939. target devices that have a limited amount of space in
  6940. which the kernel image must be stored.
  6941. </para>
  6942. <para>
  6943. By default, this variable is not set, which means the
  6944. size of the kernel image is not checked.
  6945. </para>
  6946. </glossdef>
  6947. </glossentry>
  6948. <glossentry id='var-KERNEL_IMAGETYPE'><glossterm>KERNEL_IMAGETYPE</glossterm>
  6949. <info>
  6950. KERNEL_IMAGETYPE[doc] = "The type of kernel to build for a device, usually set by the machine configuration files and defaults to 'zImage'."
  6951. </info>
  6952. <glossdef>
  6953. <para role="glossdeffirst">
  6954. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6955. The type of kernel to build for a device, usually set by the
  6956. machine configuration files and defaults to "zImage".
  6957. This variable is used
  6958. when building the kernel and is passed to <filename>make</filename> as the target to
  6959. build.
  6960. </para>
  6961. <para>
  6962. If you want to build an alternate kernel image type, use the
  6963. <link linkend='var-KERNEL_ALT_IMAGETYPE'><filename>KERNEL_ALT_IMAGETYPE</filename></link>
  6964. variable.
  6965. </para>
  6966. </glossdef>
  6967. </glossentry>
  6968. <glossentry id='var-KERNEL_MODULE_AUTOLOAD'><glossterm>KERNEL_MODULE_AUTOLOAD</glossterm>
  6969. <info>
  6970. KERNEL_MODULE_AUTOLOAD[doc] = "Lists kernel modules that need to be auto-loaded during boot"
  6971. </info>
  6972. <glossdef>
  6973. <para role="glossdeffirst">
  6974. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  6975. Lists kernel modules that need to be auto-loaded during
  6976. boot.
  6977. <note>
  6978. This variable replaces the deprecated
  6979. <link linkend='var-module_autoload'><filename>module_autoload</filename></link>
  6980. variable.
  6981. </note>
  6982. </para>
  6983. <para>
  6984. You can use the <filename>KERNEL_MODULE_AUTOLOAD</filename>
  6985. variable anywhere that it can be
  6986. recognized by the kernel recipe or by an out-of-tree kernel
  6987. module recipe (e.g. a machine configuration file, a
  6988. distribution configuration file, an append file for the
  6989. recipe, or the recipe itself).
  6990. </para>
  6991. <para>
  6992. Specify it as follows:
  6993. <literallayout class='monospaced'>
  6994. KERNEL_MODULE_AUTOLOAD += "<replaceable>module_name1</replaceable> <replaceable>module_name2</replaceable> <replaceable>module_name3</replaceable>"
  6995. </literallayout>
  6996. </para>
  6997. <para>
  6998. Including <filename>KERNEL_MODULE_AUTOLOAD</filename> causes
  6999. the OpenEmbedded build system to populate the
  7000. <filename>/etc/modules-load.d/modname.conf</filename>
  7001. file with the list of modules to be auto-loaded on boot.
  7002. The modules appear one-per-line in the file.
  7003. Here is an example of the most common use case:
  7004. <literallayout class='monospaced'>
  7005. KERNEL_MODULE_AUTOLOAD += "<replaceable>module_name</replaceable>"
  7006. </literallayout>
  7007. </para>
  7008. <para>
  7009. For information on how to populate the
  7010. <filename>modname.conf</filename> file with
  7011. <filename>modprobe.d</filename> syntax lines, see the
  7012. <link linkend='var-KERNEL_MODULE_PROBECONF'><filename>KERNEL_MODULE_PROBECONF</filename></link>
  7013. variable.
  7014. </para>
  7015. </glossdef>
  7016. </glossentry>
  7017. <glossentry id='var-KERNEL_MODULE_PROBECONF'><glossterm>KERNEL_MODULE_PROBECONF</glossterm>
  7018. <info>
  7019. 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."
  7020. </info>
  7021. <glossdef>
  7022. <para role="glossdeffirst">
  7023. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7024. Provides a list of modules for which the OpenEmbedded
  7025. build system expects to find
  7026. <filename>module_conf_</filename><replaceable>modname</replaceable>
  7027. values that specify configuration for each of the modules.
  7028. For information on how to provide those module
  7029. configurations, see the
  7030. <link linkend='var-module_conf'><filename>module_conf_*</filename></link>
  7031. variable.
  7032. </para>
  7033. </glossdef>
  7034. </glossentry>
  7035. <glossentry id='var-KERNEL_PATH'><glossterm>KERNEL_PATH</glossterm>
  7036. <info>
  7037. 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)."
  7038. </info>
  7039. <glossdef>
  7040. <para role="glossdeffirst">
  7041. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7042. The location of the kernel sources.
  7043. This variable is set to the value of the
  7044. <link linkend='var-STAGING_KERNEL_DIR'><filename>STAGING_KERNEL_DIR</filename></link>
  7045. within the
  7046. <link linkend='ref-classes-module'><filename>module</filename></link>
  7047. class.
  7048. For information on how this variable is used, see the
  7049. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#incorporating-out-of-tree-modules'>Incorporating Out-of-Tree Modules</ulink>"
  7050. section in the Yocto Project Linux Kernel Development
  7051. Manual.
  7052. </para>
  7053. <para>
  7054. To help maximize compatibility with out-of-tree drivers
  7055. used to build modules, the OpenEmbedded build system also
  7056. recognizes and uses the
  7057. <link linkend='var-KERNEL_SRC'><filename>KERNEL_SRC</filename></link>
  7058. variable, which is identical to the
  7059. <filename>KERNEL_PATH</filename> variable.
  7060. Both variables are common variables used by external
  7061. Makefiles to point to the kernel source directory.
  7062. </para>
  7063. </glossdef>
  7064. </glossentry>
  7065. <glossentry id='var-KERNEL_SRC'><glossterm>KERNEL_SRC</glossterm>
  7066. <info>
  7067. 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)."
  7068. </info>
  7069. <glossdef>
  7070. <para role="glossdeffirst">
  7071. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7072. The location of the kernel sources.
  7073. This variable is set to the value of the
  7074. <link linkend='var-STAGING_KERNEL_DIR'><filename>STAGING_KERNEL_DIR</filename></link>
  7075. within the
  7076. <link linkend='ref-classes-module'><filename>module</filename></link>
  7077. class.
  7078. For information on how this variable is used, see the
  7079. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#incorporating-out-of-tree-modules'>Incorporating Out-of-Tree Modules</ulink>"
  7080. section in the Yocto Project Linux Kernel Development
  7081. Manual.
  7082. </para>
  7083. <para>
  7084. To help maximize compatibility with out-of-tree drivers
  7085. used to build modules, the OpenEmbedded build system also
  7086. recognizes and uses the
  7087. <link linkend='var-KERNEL_PATH'><filename>KERNEL_PATH</filename></link>
  7088. variable, which is identical to the
  7089. <filename>KERNEL_SRC</filename> variable.
  7090. Both variables are common variables used by external
  7091. Makefiles to point to the kernel source directory.
  7092. </para>
  7093. </glossdef>
  7094. </glossentry>
  7095. <glossentry id='var-KERNEL_VERSION'><glossterm>KERNEL_VERSION</glossterm>
  7096. <info>
  7097. KERNEL_VERSION[doc] = "Specifies the version of the kernel as extracted from version.h or utsrelease.h within the kernel sources."
  7098. </info>
  7099. <glossdef>
  7100. <para role="glossdeffirst">
  7101. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7102. Specifies the version of the kernel as extracted from
  7103. <filename>version.h</filename> or
  7104. <filename>utsrelease.h</filename> within the kernel sources.
  7105. Effects of setting this variable do not take affect until
  7106. the kernel has been configured.
  7107. Consequently, attempting to refer to this variable in
  7108. contexts prior to configuration will not work.
  7109. </para>
  7110. </glossdef>
  7111. </glossentry>
  7112. <glossentry id='var-KERNELDEPMODDEPEND'><glossterm>KERNELDEPMODDEPEND</glossterm>
  7113. <info>
  7114. KERNELDEPMODDEPEND[doc] = "Specifies whether or not to use the data referenced through the PKGDATA_DIR directory."
  7115. </info>
  7116. <glossdef>
  7117. <para role="glossdeffirst">
  7118. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7119. Specifies whether the data referenced through
  7120. <link linkend='var-PKGDATA_DIR'><filename>PKGDATA_DIR</filename></link>
  7121. is needed or not.
  7122. The <filename>KERNELDEPMODDEPEND</filename> does not
  7123. control whether or not that data exists,
  7124. but simply whether or not it is used.
  7125. If you do not need to use the data, set the
  7126. <filename>KERNELDEPMODDEPEND</filename> variable in your
  7127. <filename>initramfs</filename> recipe.
  7128. Setting the variable there when the data is not needed
  7129. avoids a potential dependency loop.
  7130. </para>
  7131. </glossdef>
  7132. </glossentry>
  7133. <glossentry id='var-KFEATURE_DESCRIPTION'><glossterm>KFEATURE_DESCRIPTION</glossterm>
  7134. <info>
  7135. 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."
  7136. </info>
  7137. <glossdef>
  7138. <para role="glossdeffirst">
  7139. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7140. Provides a short description of a configuration fragment.
  7141. You use this variable in the <filename>.scc</filename>
  7142. file that describes a configuration fragment file.
  7143. Here is the variable used in a file named
  7144. <filename>smp.scc</filename> to describe SMP being
  7145. enabled:
  7146. <literallayout class='monospaced'>
  7147. define KFEATURE_DESCRIPTION "Enable SMP"
  7148. </literallayout>
  7149. </para>
  7150. </glossdef>
  7151. </glossentry>
  7152. <glossentry id='var-KMACHINE'><glossterm>KMACHINE</glossterm>
  7153. <info>
  7154. KMACHINE[doc] = "The machine as known by the kernel."
  7155. </info>
  7156. <glossdef>
  7157. <para role="glossdeffirst">
  7158. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7159. The machine as known by the kernel.
  7160. Sometimes the machine name used by the kernel does not
  7161. match the machine name used by the OpenEmbedded build
  7162. system.
  7163. For example, the machine name that the OpenEmbedded build
  7164. system understands as
  7165. <filename>core2-32-intel-common</filename> goes by a
  7166. different name in the Linux Yocto kernel.
  7167. The kernel understands that machine as
  7168. <filename>intel-core2-32</filename>.
  7169. For cases like these, the <filename>KMACHINE</filename>
  7170. variable maps the kernel machine name to the OpenEmbedded
  7171. build system machine name.
  7172. </para>
  7173. <para>
  7174. These mappings between different names occur in the
  7175. Yocto Linux Kernel's <filename>meta</filename> branch.
  7176. As an example take a look in the
  7177. <filename>common/recipes-kernel/linux/linux-yocto_3.19.bbappend</filename>
  7178. file:
  7179. <literallayout class='monospaced'>
  7180. LINUX_VERSION_core2-32-intel-common = "3.19.0"
  7181. COMPATIBLE_MACHINE_core2-32-intel-common = "${MACHINE}"
  7182. SRCREV_meta_core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  7183. SRCREV_machine_core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  7184. KMACHINE_core2-32-intel-common = "intel-core2-32"
  7185. KBRANCH_core2-32-intel-common = "standard/base"
  7186. KERNEL_FEATURES_append_core2-32-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}"
  7187. </literallayout>
  7188. The <filename>KMACHINE</filename> statement says that
  7189. the kernel understands the machine name as
  7190. "intel-core2-32".
  7191. However, the OpenEmbedded build system understands the
  7192. machine as "core2-32-intel-common".
  7193. </para>
  7194. </glossdef>
  7195. </glossentry>
  7196. <glossentry id='var-KTYPE'><glossterm>KTYPE</glossterm>
  7197. <info>
  7198. KTYPE[doc] = "Defines the kernel type to be used in assembling the configuration."
  7199. </info>
  7200. <glossdef>
  7201. <para role="glossdeffirst">
  7202. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7203. Defines the kernel type to be used in assembling the
  7204. configuration.
  7205. The linux-yocto recipes define "standard", "tiny",
  7206. and "preempt-rt" kernel types.
  7207. See the
  7208. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#kernel-types'>Kernel Types</ulink>"
  7209. section in the Yocto Project Linux Kernel Development
  7210. Manual for more information on kernel types.
  7211. </para>
  7212. <para>
  7213. You define the <filename>KTYPE</filename> variable in the
  7214. <ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#bsp-descriptions'>BSP Descriptions</ulink>.
  7215. The value you use must match the value used for the
  7216. <link linkend='var-LINUX_KERNEL_TYPE'><filename>LINUX_KERNEL_TYPE</filename></link>
  7217. value used by the kernel recipe.
  7218. </para>
  7219. </glossdef>
  7220. </glossentry>
  7221. </glossdiv>
  7222. <glossdiv id='var-glossary-l'><title>L</title>
  7223. <glossentry id='var-LABELS'><glossterm>LABELS</glossterm>
  7224. <info>
  7225. LABELS[doc] = "Provides a list of targets for automatic configuration."
  7226. </info>
  7227. <glossdef>
  7228. <para role="glossdeffirst">
  7229. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7230. Provides a list of targets for automatic configuration.
  7231. </para>
  7232. <para>
  7233. See the
  7234. <link linkend='ref-classes-grub-efi'><filename>grub-efi</filename></link>
  7235. class for more information on how this variable is used.
  7236. </para>
  7237. </glossdef>
  7238. </glossentry>
  7239. <glossentry id='var-LAYERDEPENDS'><glossterm>LAYERDEPENDS</glossterm>
  7240. <info>
  7241. 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."
  7242. </info>
  7243. <glossdef>
  7244. <para role="glossdeffirst">
  7245. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7246. Lists the layers, separated by spaces, on which this
  7247. recipe depends.
  7248. Optionally, you can specify a specific layer version for a
  7249. dependency by adding it to the end of the layer name.
  7250. Here is an example:
  7251. <literallayout class='monospaced'>
  7252. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  7253. </literallayout>
  7254. In this previous example, version 3 of "anotherlayer"
  7255. is compared against
  7256. <link linkend='var-LAYERVERSION'><filename>LAYERVERSION</filename></link><filename>_anotherlayer</filename>.
  7257. </para>
  7258. <para>
  7259. An error is produced if any dependency is missing or
  7260. the version numbers (if specified) do not match exactly.
  7261. This variable is used in the
  7262. <filename>conf/layer.conf</filename> file and must be
  7263. suffixed with the name of the specific layer (e.g.
  7264. <filename>LAYERDEPENDS_mylayer</filename>).
  7265. </para>
  7266. </glossdef>
  7267. </glossentry>
  7268. <glossentry id='var-LAYERDIR'><glossterm>LAYERDIR</glossterm>
  7269. <info>
  7270. LAYERDIR[doc] = "When used inside the layer.conf configuration file, this variable provides the path of the current layer."
  7271. </info>
  7272. <glossdef>
  7273. <para role="glossdeffirst">
  7274. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7275. When used inside the <filename>layer.conf</filename> configuration
  7276. file, this variable provides the path of the current layer.
  7277. This variable is not available outside of <filename>layer.conf</filename>
  7278. and references are expanded immediately when parsing of the file completes.
  7279. </para>
  7280. </glossdef>
  7281. </glossentry>
  7282. <glossentry id='var-LAYERRECOMMENDS'><glossterm>LAYERRECOMMENDS</glossterm>
  7283. <info>
  7284. LAYERRECOMMENDS[doc] = "Lists the layers, separated by spaces, recommended for use with this layer."
  7285. </info>
  7286. <glossdef>
  7287. <para role="glossdeffirst">
  7288. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7289. Lists the layers, separated by spaces, recommended for
  7290. use with this layer.
  7291. </para>
  7292. <para>
  7293. Optionally, you can specify a specific layer version for a
  7294. recommendation by adding the version to the end of the
  7295. layer name.
  7296. Here is an example:
  7297. <literallayout class='monospaced'>
  7298. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  7299. </literallayout>
  7300. In this previous example, version 3 of "anotherlayer" is
  7301. compared against
  7302. <filename>LAYERVERSION_anotherlayer</filename>.
  7303. </para>
  7304. <para>
  7305. This variable is used in the
  7306. <filename>conf/layer.conf</filename> file and must be
  7307. suffixed with the name of the specific layer (e.g.
  7308. <filename>LAYERRECOMMENDS_mylayer</filename>).
  7309. </para>
  7310. </glossdef>
  7311. </glossentry>
  7312. <glossentry id='var-LAYERSERIES_COMPAT'><glossterm>LAYERSERIES_COMPAT</glossterm>
  7313. <info>
  7314. LAYERSERIES_COMPAT[doc] = "Lists the OpenEmbedded-Core versions for which a layer is compatible."
  7315. </info>
  7316. <glossdef>
  7317. <para role="glossdeffirst">
  7318. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7319. Lists the versions of the
  7320. <link linkend='oe-core'>OpenEmbedded-Core</link> for which
  7321. a layer is compatible.
  7322. Using the <filename>LAYERSERIES_COMPAT</filename> variable
  7323. allows the layer maintainer to indicate which combinations
  7324. of the layer and OE-Core can be expected to work.
  7325. The variable gives the system a way to detect when a layer
  7326. has not been tested with new releases of OE-Core (e.g.
  7327. the layer is not maintained).
  7328. </para>
  7329. <para>
  7330. To specify the OE-Core versions for which a layer is
  7331. compatible, use this variable in your layer's
  7332. <filename>conf/layer.conf</filename> configuration file.
  7333. For the list, use the Yocto Project
  7334. <ulink url='https://wiki.yoctoproject.org/wiki/Releases'>Release Name</ulink>
  7335. (e.g. &DISTRO_NAME_NO_CAP;).
  7336. To specify multiple OE-Core versions for the layer,
  7337. use a space-separated list:
  7338. <literallayout class='monospaced'>
  7339. LAYERSERIES_COMPAT_<replaceable>layer_root_name</replaceable> = "&DISTRO_NAME_NO_CAP; &DISTRO_NAME_NO_CAP_MINUS_ONE;"
  7340. </literallayout>
  7341. <note>
  7342. Setting <filename>LAYERSERIES_COMPAT</filename> is
  7343. required by the Yocto Project Compatible version 2
  7344. standard.
  7345. The OpenEmbedded build system produces a warning if
  7346. the variable is not set for any given layer.
  7347. </note>
  7348. </para>
  7349. <para>
  7350. See the
  7351. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-your-own-layer'>Creating Your Own Layer</ulink>"
  7352. section in the Yocto Project Development Tasks Manual.
  7353. </para>
  7354. </glossdef>
  7355. </glossentry>
  7356. <glossentry id='var-LAYERVERSION'><glossterm>LAYERVERSION</glossterm>
  7357. <info>
  7358. 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."
  7359. </info>
  7360. <glossdef>
  7361. <para role="glossdeffirst">
  7362. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7363. Optionally specifies the version of a layer as a single number.
  7364. You can use this within
  7365. <link linkend='var-LAYERDEPENDS'><filename>LAYERDEPENDS</filename></link>
  7366. for another layer in order to depend on a specific version
  7367. of the layer.
  7368. This variable is used in the <filename>conf/layer.conf</filename> file
  7369. and must be suffixed with the name of the specific layer (e.g.
  7370. <filename>LAYERVERSION_mylayer</filename>).
  7371. </para>
  7372. </glossdef>
  7373. </glossentry>
  7374. <glossentry id='var-LD'><glossterm>LD</glossterm>
  7375. <info>
  7376. LD[doc] = "Minimal command and arguments to run the linker."
  7377. </info>
  7378. <glossdef>
  7379. <para role="glossdeffirst">
  7380. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7381. The minimal command and arguments used to run the
  7382. linker.
  7383. </para>
  7384. </glossdef>
  7385. </glossentry>
  7386. <glossentry id='var-LDFLAGS'><glossterm>LDFLAGS</glossterm>
  7387. <info>
  7388. LDFLAGS[doc] = "Specifies the flags to pass to the linker."
  7389. </info>
  7390. <glossdef>
  7391. <para role="glossdeffirst">
  7392. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7393. Specifies the flags to pass to the linker.
  7394. This variable is exported to an environment
  7395. variable and thus made visible to the software being
  7396. built during the compilation step.
  7397. </para>
  7398. <para>
  7399. Default initialization for <filename>LDFLAGS</filename>
  7400. varies depending on what is being built:
  7401. <itemizedlist>
  7402. <listitem><para>
  7403. <link linkend='var-TARGET_LDFLAGS'><filename>TARGET_LDFLAGS</filename></link>
  7404. when building for the target
  7405. </para></listitem>
  7406. <listitem><para>
  7407. <link linkend='var-BUILD_LDFLAGS'><filename>BUILD_LDFLAGS</filename></link>
  7408. when building for the build host (i.e.
  7409. <filename>-native</filename>)
  7410. </para></listitem>
  7411. <listitem><para>
  7412. <link linkend='var-BUILDSDK_LDFLAGS'><filename>BUILDSDK_LDFLAGS</filename></link>
  7413. when building for an SDK (i.e.
  7414. <filename>nativesdk-</filename>)
  7415. </para></listitem>
  7416. </itemizedlist>
  7417. </para>
  7418. </glossdef>
  7419. </glossentry>
  7420. <glossentry id='var-LEAD_SONAME'><glossterm>LEAD_SONAME</glossterm>
  7421. <info>
  7422. 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."
  7423. </info>
  7424. <glossdef>
  7425. <para role="glossdeffirst">
  7426. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7427. Specifies the lead (or primary) compiled library file
  7428. (i.e. <filename>.so</filename>) that the
  7429. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  7430. class applies its naming policy to given a recipe that
  7431. packages multiple libraries.
  7432. </para>
  7433. <para>
  7434. This variable works in conjunction with the
  7435. <filename>debian</filename> class.
  7436. </para>
  7437. </glossdef>
  7438. </glossentry>
  7439. <glossentry id='var-LIC_FILES_CHKSUM'><glossterm>LIC_FILES_CHKSUM</glossterm>
  7440. <info>
  7441. LIC_FILES_CHKSUM[doc] = "Checksums of the license text in the recipe source code."
  7442. </info>
  7443. <glossdef>
  7444. <para role="glossdeffirst">
  7445. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7446. Checksums of the license text in the recipe source code.
  7447. </para>
  7448. <para>
  7449. This variable tracks changes in license text of the source
  7450. code files.
  7451. If the license text is changed, it will trigger a build
  7452. failure, which gives the developer an opportunity to review any
  7453. license change.
  7454. </para>
  7455. <para>
  7456. This variable must be defined for all recipes (unless
  7457. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  7458. is set to "CLOSED").</para>
  7459. <para>For more information, see the
  7460. "<ulink url='&YOCTO_DOCS_DEV_URL;#usingpoky-configuring-LIC_FILES_CHKSUM'>Tracking License Changes</ulink>"
  7461. section in the Yocto Project Development Tasks Manual.
  7462. </para>
  7463. </glossdef>
  7464. </glossentry>
  7465. <glossentry id='var-LICENSE'><glossterm>LICENSE</glossterm>
  7466. <info>
  7467. LICENSE[doc] = "The list of source licenses for the recipe. The logical operators &amp;, '|', and parentheses can be used."
  7468. </info>
  7469. <glossdef>
  7470. <para role="glossdeffirst">
  7471. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7472. The list of source licenses for the recipe.
  7473. Follow these rules:
  7474. <itemizedlist>
  7475. <listitem><para>Do not use spaces within individual
  7476. license names.</para></listitem>
  7477. <listitem><para>Separate license names using
  7478. | (pipe) when there is a choice between licenses.
  7479. </para></listitem>
  7480. <listitem><para>Separate license names using
  7481. &amp; (ampersand) when multiple licenses exist
  7482. that cover different parts of the source.
  7483. </para></listitem>
  7484. <listitem><para>You can use spaces between license
  7485. names.</para></listitem>
  7486. <listitem><para>For standard licenses, use the names
  7487. of the files in
  7488. <filename>meta/files/common-licenses/</filename>
  7489. or the
  7490. <link linkend='var-SPDXLICENSEMAP'><filename>SPDXLICENSEMAP</filename></link>
  7491. flag names defined in
  7492. <filename>meta/conf/licenses.conf</filename>.
  7493. </para></listitem>
  7494. </itemizedlist>
  7495. </para>
  7496. <para>
  7497. Here are some examples:
  7498. <literallayout class='monospaced'>
  7499. LICENSE = "LGPLv2.1 | GPLv3"
  7500. LICENSE = "MPL-1 &amp; LGPLv2.1"
  7501. LICENSE = "GPLv2+"
  7502. </literallayout>
  7503. The first example is from the recipes for Qt, which the user
  7504. may choose to distribute under either the LGPL version
  7505. 2.1 or GPL version 3.
  7506. The second example is from Cairo where two licenses cover
  7507. different parts of the source code.
  7508. The final example is from <filename>sysstat</filename>,
  7509. which presents a single license.
  7510. </para>
  7511. <para>
  7512. You can also specify licenses on a per-package basis to
  7513. handle situations where components of the output have
  7514. different licenses.
  7515. For example, a piece of software whose code is
  7516. licensed under GPLv2 but has accompanying documentation
  7517. licensed under the GNU Free Documentation License 1.2 could
  7518. be specified as follows:
  7519. <literallayout class='monospaced'>
  7520. LICENSE = "GFDL-1.2 &amp; GPLv2"
  7521. LICENSE_${PN} = "GPLv2"
  7522. LICENSE_${PN}-doc = "GFDL-1.2"
  7523. </literallayout>
  7524. </para>
  7525. </glossdef>
  7526. </glossentry>
  7527. <glossentry id='var-LICENSE_CREATE_PACKAGE'><glossterm>LICENSE_CREATE_PACKAGE</glossterm>
  7528. <info>
  7529. LICENSE_CREATE_PACKAGE[doc] = "Creates an extra package (i.e. ${PN}-lic) for each recipe and adds that package to the RRECOMMENDS+${PN}."
  7530. </info>
  7531. <glossdef>
  7532. <para role="glossdeffirst">
  7533. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7534. Setting <filename>LICENSE_CREATE_PACKAGE</filename>
  7535. to "1" causes the OpenEmbedded build system to create
  7536. an extra package (i.e.
  7537. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}-lic</filename>)
  7538. for each recipe and to add those packages to the
  7539. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link><filename>_${PN}</filename>.
  7540. </para>
  7541. <para>
  7542. The <filename>${PN}-lic</filename> package installs a
  7543. directory in <filename>/usr/share/licenses</filename>
  7544. named <filename>${PN}</filename>, which is the recipe's
  7545. base name, and installs files in that directory that
  7546. contain license and copyright information (i.e. copies of
  7547. the appropriate license files from
  7548. <filename>meta/common-licenses</filename> that match the
  7549. licenses specified in the
  7550. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  7551. variable of the recipe metadata and copies of files marked
  7552. in
  7553. <link linkend='var-LIC_FILES_CHKSUM'><filename>LIC_FILES_CHKSUM</filename></link>
  7554. as containing license text).
  7555. </para>
  7556. <para>
  7557. For related information on providing license text, see the
  7558. <link linkend='var-COPY_LIC_DIRS'><filename>COPY_LIC_DIRS</filename></link>
  7559. variable, the
  7560. <link linkend='var-COPY_LIC_MANIFEST'><filename>COPY_LIC_MANIFEST</filename></link>
  7561. variable, and the
  7562. "<ulink url='&YOCTO_DOCS_DEV_URL;#providing-license-text'>Providing License Text</ulink>"
  7563. section in the Yocto Project Development Tasks Manual.
  7564. </para>
  7565. </glossdef>
  7566. </glossentry>
  7567. <glossentry id='var-LICENSE_FLAGS'><glossterm>LICENSE_FLAGS</glossterm>
  7568. <info>
  7569. 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."
  7570. </info>
  7571. <glossdef>
  7572. <para role="glossdeffirst">
  7573. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7574. Specifies additional flags for a recipe you must
  7575. whitelist through
  7576. <link linkend='var-LICENSE_FLAGS_WHITELIST'><filename>LICENSE_FLAGS_WHITELIST</filename></link>
  7577. in order to allow the recipe to be built.
  7578. When providing multiple flags, separate them with
  7579. spaces.
  7580. </para>
  7581. <para>
  7582. This value is independent of
  7583. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  7584. and is typically used to mark recipes that might
  7585. require additional licenses in order to be used in a
  7586. commercial product.
  7587. For more information, see the
  7588. "<ulink url='&YOCTO_DOCS_DEV_URL;#enabling-commercially-licensed-recipes'>Enabling Commercially Licensed Recipes</ulink>"
  7589. section in the Yocto Project Development Tasks Manual.
  7590. </para>
  7591. </glossdef>
  7592. </glossentry>
  7593. <glossentry id='var-LICENSE_FLAGS_WHITELIST'><glossterm>LICENSE_FLAGS_WHITELIST</glossterm>
  7594. <info>
  7595. LICENSE_FLAGS_WHITELIST[doc] = "Lists license flags that when specified in LICENSE_FLAGS within a recipe should not prevent that recipe from being built."
  7596. </info>
  7597. <glossdef>
  7598. <para role="glossdeffirst">
  7599. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7600. Lists license flags that when specified in
  7601. <link linkend='var-LICENSE_FLAGS'><filename>LICENSE_FLAGS</filename></link>
  7602. within a recipe should not prevent that recipe from being
  7603. built.
  7604. This practice is otherwise known as "whitelisting"
  7605. license flags.
  7606. For more information, see the
  7607. "<ulink url='&YOCTO_DOCS_DEV_URL;#enabling-commercially-licensed-recipes'>Enabling Commercially Licensed Recipes</ulink>"
  7608. section in the Yocto Project Development Tasks Manual.
  7609. </para>
  7610. </glossdef>
  7611. </glossentry>
  7612. <glossentry id='var-LICENSE_PATH'><glossterm>LICENSE_PATH</glossterm>
  7613. <info>
  7614. LICENSE_PATH[doc] = "Path to additional licenses used during the build."
  7615. </info>
  7616. <glossdef>
  7617. <para role="glossdeffirst">
  7618. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7619. Path to additional licenses used during the build.
  7620. By default, the OpenEmbedded build system uses <filename>COMMON_LICENSE_DIR</filename>
  7621. to define the directory that holds common license text used during the build.
  7622. The <filename>LICENSE_PATH</filename> variable allows you to extend that
  7623. location to other areas that have additional licenses:
  7624. <literallayout class='monospaced'>
  7625. LICENSE_PATH += "<replaceable>path-to-additional-common-licenses</replaceable>"
  7626. </literallayout>
  7627. </para>
  7628. </glossdef>
  7629. </glossentry>
  7630. <glossentry id='var-LINUX_KERNEL_TYPE'><glossterm>LINUX_KERNEL_TYPE</glossterm>
  7631. <info>
  7632. LINUX_KERNEL_TYPE[doc] = "Defines the kernel type to be used in assembling the configuration."
  7633. </info>
  7634. <glossdef>
  7635. <para role="glossdeffirst">
  7636. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7637. Defines the kernel type to be used in assembling the
  7638. configuration.
  7639. The linux-yocto recipes define "standard", "tiny", and
  7640. "preempt-rt" kernel types.
  7641. See the
  7642. "<ulink url='&YOCTO_DOCS_KERNEL_DEV_URL;#kernel-types'>Kernel Types</ulink>"
  7643. section in the Yocto Project Linux Kernel Development
  7644. Manual for more information on kernel types.
  7645. </para>
  7646. <para>
  7647. If you do not specify a
  7648. <filename>LINUX_KERNEL_TYPE</filename>, it defaults to
  7649. "standard".
  7650. Together with
  7651. <link linkend='var-KMACHINE'><filename>KMACHINE</filename></link>,
  7652. the <filename>LINUX_KERNEL_TYPE</filename> variable
  7653. defines the search
  7654. arguments used by the kernel tools to find the appropriate
  7655. description within the kernel
  7656. <link linkend='metadata'>Metadata</link>
  7657. with which to build out the sources and configuration.
  7658. </para>
  7659. </glossdef>
  7660. </glossentry>
  7661. <glossentry id='var-LINUX_VERSION'><glossterm>LINUX_VERSION</glossterm>
  7662. <info>
  7663. 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."
  7664. </info>
  7665. <glossdef>
  7666. <para role="glossdeffirst">
  7667. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7668. The Linux version from <filename>kernel.org</filename>
  7669. on which the Linux kernel image being built using the
  7670. OpenEmbedded build system is based.
  7671. You define this variable in the kernel recipe.
  7672. For example, the <filename>linux-yocto-3.4.bb</filename>
  7673. kernel recipe found in
  7674. <filename>meta/recipes-kernel/linux</filename>
  7675. defines the variables as follows:
  7676. <literallayout class='monospaced'>
  7677. LINUX_VERSION ?= "3.4.24"
  7678. </literallayout>
  7679. </para>
  7680. <para>
  7681. The <filename>LINUX_VERSION</filename> variable is used to
  7682. define <link linkend='var-PV'><filename>PV</filename></link>
  7683. for the recipe:
  7684. <literallayout class='monospaced'>
  7685. PV = "${LINUX_VERSION}+git${SRCPV}"
  7686. </literallayout>
  7687. </para>
  7688. </glossdef>
  7689. </glossentry>
  7690. <glossentry id='var-LINUX_VERSION_EXTENSION'><glossterm>LINUX_VERSION_EXTENSION</glossterm>
  7691. <info>
  7692. 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."
  7693. </info>
  7694. <glossdef>
  7695. <para role="glossdeffirst">
  7696. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7697. A string extension compiled into the version
  7698. string of the Linux kernel built with the OpenEmbedded
  7699. build system.
  7700. You define this variable in the kernel recipe.
  7701. For example, the linux-yocto kernel recipes all define
  7702. the variable as follows:
  7703. <literallayout class='monospaced'>
  7704. LINUX_VERSION_EXTENSION ?= "-yocto-${<link linkend='var-LINUX_KERNEL_TYPE'>LINUX_KERNEL_TYPE</link>}"
  7705. </literallayout>
  7706. </para>
  7707. <para>
  7708. Defining this variable essentially sets the
  7709. Linux kernel configuration item
  7710. <filename>CONFIG_LOCALVERSION</filename>, which is visible
  7711. through the <filename>uname</filename> command.
  7712. Here is an example that shows the extension assuming it
  7713. was set as previously shown:
  7714. <literallayout class='monospaced'>
  7715. $ uname -r
  7716. 3.7.0-rc8-custom
  7717. </literallayout>
  7718. </para>
  7719. </glossdef>
  7720. </glossentry>
  7721. <glossentry id='var-LOG_DIR'><glossterm>LOG_DIR</glossterm>
  7722. <info>
  7723. LOG_DIR[doc] = "Specifies the directory to which the OpenEmbedded build system writes overall log files. The default directory is ${TMPDIR}/log"
  7724. </info>
  7725. <glossdef>
  7726. <para role="glossdeffirst">
  7727. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7728. Specifies the directory to which the OpenEmbedded build
  7729. system writes overall log files.
  7730. The default directory is <filename>${TMPDIR}/log</filename>.
  7731. </para>
  7732. <para>
  7733. For the directory containing logs specific to each task,
  7734. see the <link linkend='var-T'><filename>T</filename></link>
  7735. variable.
  7736. </para>
  7737. </glossdef>
  7738. </glossentry>
  7739. </glossdiv>
  7740. <glossdiv id='var-glossary-m'><title>M</title>
  7741. <glossentry id='var-MACHINE'><glossterm>MACHINE</glossterm>
  7742. <info>
  7743. 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."
  7744. </info>
  7745. <glossdef>
  7746. <para role="glossdeffirst">
  7747. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7748. Specifies the target device for which the image is built.
  7749. You define <filename>MACHINE</filename> in the
  7750. <filename>local.conf</filename> file found in the
  7751. <link linkend='build-directory'>Build Directory</link>.
  7752. By default, <filename>MACHINE</filename> is set to
  7753. "qemux86", which is an x86-based architecture machine to
  7754. be emulated using QEMU:
  7755. <literallayout class='monospaced'>
  7756. MACHINE ?= "qemux86"
  7757. </literallayout>
  7758. </para>
  7759. <para>
  7760. The variable corresponds to a machine configuration file of the
  7761. same name, through which machine-specific configurations are set.
  7762. Thus, when <filename>MACHINE</filename> is set to "qemux86" there
  7763. exists the corresponding <filename>qemux86.conf</filename> machine
  7764. configuration file, which can be found in the
  7765. <link linkend='source-directory'>Source Directory</link>
  7766. in <filename>meta/conf/machine</filename>.
  7767. </para>
  7768. <para>
  7769. The list of machines supported by the Yocto Project as
  7770. shipped include the following:
  7771. <literallayout class='monospaced'>
  7772. MACHINE ?= "qemuarm"
  7773. MACHINE ?= "qemuarm64"
  7774. MACHINE ?= "qemumips"
  7775. MACHINE ?= "qemumips64"
  7776. MACHINE ?= "qemuppc"
  7777. MACHINE ?= "qemux86"
  7778. MACHINE ?= "qemux86-64"
  7779. MACHINE ?= "genericx86"
  7780. MACHINE ?= "genericx86-64"
  7781. MACHINE ?= "beaglebone"
  7782. MACHINE ?= "mpc8315e-rdb"
  7783. MACHINE ?= "edgerouter"
  7784. </literallayout>
  7785. The last five are Yocto Project reference hardware boards, which
  7786. are provided in the <filename>meta-yocto-bsp</filename> layer.
  7787. <note>Adding additional Board Support Package (BSP) layers
  7788. to your configuration adds new possible settings for
  7789. <filename>MACHINE</filename>.
  7790. </note>
  7791. </para>
  7792. </glossdef>
  7793. </glossentry>
  7794. <glossentry id='var-MACHINE_ARCH'><glossterm>MACHINE_ARCH</glossterm>
  7795. <info>
  7796. MACHINE_ARCH[doc] = "Specifies the name of the machine-specific architecture. This variable is set automatically from MACHINE or TUNE_PKGARCH."
  7797. </info>
  7798. <glossdef>
  7799. <para role="glossdeffirst">
  7800. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7801. Specifies the name of the machine-specific architecture.
  7802. This variable is set automatically from
  7803. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>
  7804. or
  7805. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>.
  7806. You should not hand-edit the
  7807. <filename>MACHINE_ARCH</filename> variable.
  7808. </para>
  7809. </glossdef>
  7810. </glossentry>
  7811. <glossentry id='var-MACHINE_ESSENTIAL_EXTRA_RDEPENDS'><glossterm>MACHINE_ESSENTIAL_EXTRA_RDEPENDS</glossterm>
  7812. <info>
  7813. 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."
  7814. </info>
  7815. <glossdef>
  7816. <para role="glossdeffirst">
  7817. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7818. A list of required machine-specific packages to install as part of
  7819. the image being built.
  7820. The build process depends on these packages being present.
  7821. Furthermore, because this is a "machine-essential" variable, the list of
  7822. packages are essential for the machine to boot.
  7823. The impact of this variable affects images based on
  7824. <filename>packagegroup-core-boot</filename>,
  7825. including the <filename>core-image-minimal</filename> image.
  7826. </para>
  7827. <para>
  7828. This variable is similar to the
  7829. <filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'>MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</link></filename>
  7830. variable with the exception that the image being built has a build
  7831. dependency on the variable's list of packages.
  7832. In other words, the image will not build if a file in this list is not found.
  7833. </para>
  7834. <para>
  7835. As an example, suppose the machine for which you are building requires
  7836. <filename>example-init</filename> to be run during boot to initialize the hardware.
  7837. In this case, you would use the following in the machine's
  7838. <filename>.conf</filename> configuration file:
  7839. <literallayout class='monospaced'>
  7840. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  7841. </literallayout>
  7842. </para>
  7843. </glossdef>
  7844. </glossentry>
  7845. <glossentry id='var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'><glossterm>MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</glossterm>
  7846. <info>
  7847. 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."
  7848. </info>
  7849. <glossdef>
  7850. <para role="glossdeffirst">
  7851. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7852. A list of recommended machine-specific packages to install as part of
  7853. the image being built.
  7854. The build process does not depend on these packages being present.
  7855. However, because this is a "machine-essential" variable, the list of
  7856. packages are essential for the machine to boot.
  7857. The impact of this variable affects images based on
  7858. <filename>packagegroup-core-boot</filename>,
  7859. including the <filename>core-image-minimal</filename> image.
  7860. </para>
  7861. <para>
  7862. This variable is similar to the
  7863. <filename><link linkend='var-MACHINE_ESSENTIAL_EXTRA_RDEPENDS'>MACHINE_ESSENTIAL_EXTRA_RDEPENDS</link></filename>
  7864. variable with the exception that the image being built does not have a build
  7865. dependency on the variable's list of packages.
  7866. In other words, the image will still build if a package in this list is not found.
  7867. Typically, this variable is used to handle essential kernel modules, whose
  7868. functionality may be selected to be built into the kernel rather than as a module,
  7869. in which case a package will not be produced.
  7870. </para>
  7871. <para>
  7872. Consider an example where you have a custom kernel where a specific touchscreen
  7873. driver is required for the machine to be usable.
  7874. However, the driver can be built as a module or
  7875. into the kernel depending on the kernel configuration.
  7876. If the driver is built as a module, you want it to be installed.
  7877. But, when the driver is built into the kernel, you still want the
  7878. build to succeed.
  7879. This variable sets up a "recommends" relationship so that in the latter case,
  7880. the build will not fail due to the missing package.
  7881. To accomplish this, assuming the package for the module was called
  7882. <filename>kernel-module-ab123</filename>, you would use the
  7883. following in the machine's <filename>.conf</filename> configuration
  7884. file:
  7885. <literallayout class='monospaced'>
  7886. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  7887. </literallayout>
  7888. <note>
  7889. In this example, the
  7890. <filename>kernel-module-ab123</filename> recipe
  7891. needs to explicitly set its
  7892. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  7893. variable to ensure that BitBake does not use the
  7894. kernel recipe's
  7895. <link linkend='var-PACKAGES_DYNAMIC'><filename>PACKAGES_DYNAMIC</filename></link>
  7896. variable to satisfy the dependency.
  7897. </note>
  7898. </para>
  7899. <para>
  7900. Some examples of these machine essentials are flash, screen, keyboard, mouse,
  7901. or touchscreen drivers (depending on the machine).
  7902. </para>
  7903. </glossdef>
  7904. </glossentry>
  7905. <glossentry id='var-MACHINE_EXTRA_RDEPENDS'><glossterm>MACHINE_EXTRA_RDEPENDS</glossterm>
  7906. <info>
  7907. 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."
  7908. </info>
  7909. <glossdef>
  7910. <para role="glossdeffirst">
  7911. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7912. A list of machine-specific packages to install as part of the
  7913. image being built that are not essential for the machine to boot.
  7914. However, the build process for more fully-featured images
  7915. depends on the packages being present.
  7916. </para>
  7917. <para>
  7918. This variable affects all images based on
  7919. <filename>packagegroup-base</filename>, which does not include the
  7920. <filename>core-image-minimal</filename> or <filename>core-image-full-cmdline</filename>
  7921. images.
  7922. </para>
  7923. <para>
  7924. The variable is similar to the
  7925. <filename><link linkend='var-MACHINE_EXTRA_RRECOMMENDS'>MACHINE_EXTRA_RRECOMMENDS</link></filename>
  7926. variable with the exception that the image being built has a build
  7927. dependency on the variable's list of packages.
  7928. In other words, the image will not build if a file in this list is not found.
  7929. </para>
  7930. <para>
  7931. An example is a machine that has WiFi capability but is not
  7932. essential for the machine to boot the image.
  7933. However, if you are building a more fully-featured image, you want to enable
  7934. the WiFi.
  7935. The package containing the firmware for the WiFi hardware is always
  7936. expected to exist, so it is acceptable for the build process to depend upon
  7937. finding the package.
  7938. In this case, assuming the package for the firmware was called
  7939. <filename>wifidriver-firmware</filename>, you would use the following in the
  7940. <filename>.conf</filename> file for the machine:
  7941. <literallayout class='monospaced'>
  7942. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  7943. </literallayout>
  7944. </para>
  7945. </glossdef>
  7946. </glossentry>
  7947. <glossentry id='var-MACHINE_EXTRA_RRECOMMENDS'><glossterm>MACHINE_EXTRA_RRECOMMENDS</glossterm>
  7948. <info>
  7949. 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."
  7950. </info>
  7951. <glossdef>
  7952. <para role="glossdeffirst">
  7953. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7954. A list of machine-specific packages to install as part of the
  7955. image being built that are not essential for booting the machine.
  7956. The image being built has no build dependency on this list of packages.
  7957. </para>
  7958. <para>
  7959. This variable affects only images based on
  7960. <filename>packagegroup-base</filename>, which does not include the
  7961. <filename>core-image-minimal</filename> or <filename>core-image-full-cmdline</filename>
  7962. images.
  7963. </para>
  7964. <para>
  7965. This variable is similar to the
  7966. <filename><link linkend='var-MACHINE_EXTRA_RDEPENDS'>MACHINE_EXTRA_RDEPENDS</link></filename>
  7967. variable with the exception that the image being built does not have a build
  7968. dependency on the variable's list of packages.
  7969. In other words, the image will build if a file in this list is not found.
  7970. </para>
  7971. <para>
  7972. An example is a machine that has WiFi capability but is not essential
  7973. For the machine to boot the image.
  7974. However, if you are building a more fully-featured image, you want to enable
  7975. WiFi.
  7976. In this case, the package containing the WiFi kernel module will not be produced
  7977. if the WiFi driver is built into the kernel, in which case you still want the
  7978. build to succeed instead of failing as a result of the package not being found.
  7979. To accomplish this, assuming the package for the module was called
  7980. <filename>kernel-module-examplewifi</filename>, you would use the
  7981. following in the <filename>.conf</filename> file for the machine:
  7982. <literallayout class='monospaced'>
  7983. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  7984. </literallayout>
  7985. </para>
  7986. </glossdef>
  7987. </glossentry>
  7988. <glossentry id='var-MACHINE_FEATURES'><glossterm>MACHINE_FEATURES</glossterm>
  7989. <info>
  7990. MACHINE_FEATURES[doc] = "Specifies the list of hardware features the MACHINE supports."
  7991. </info>
  7992. <glossdef>
  7993. <para role="glossdeffirst">
  7994. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  7995. Specifies the list of hardware features the
  7996. <link linkend='var-MACHINE'><filename>MACHINE</filename></link> is capable
  7997. of supporting.
  7998. For related information on enabling features, see the
  7999. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>,
  8000. <link linkend='var-COMBINED_FEATURES'><filename>COMBINED_FEATURES</filename></link>,
  8001. and
  8002. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  8003. variables.
  8004. </para>
  8005. <para>
  8006. For a list of hardware features supported by the Yocto
  8007. Project as shipped, see the
  8008. "<link linkend='ref-features-machine'>Machine Features</link>"
  8009. section.
  8010. </para>
  8011. </glossdef>
  8012. </glossentry>
  8013. <glossentry id='var-MACHINE_FEATURES_BACKFILL'><glossterm>MACHINE_FEATURES_BACKFILL</glossterm>
  8014. <info>
  8015. 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."
  8016. </info>
  8017. <glossdef>
  8018. <para role="glossdeffirst">
  8019. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8020. Features to be added to
  8021. <filename><link linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link></filename>
  8022. if not also present in
  8023. <filename><link linkend='var-MACHINE_FEATURES_BACKFILL_CONSIDERED'>MACHINE_FEATURES_BACKFILL_CONSIDERED</link></filename>.
  8024. </para>
  8025. <para>
  8026. This variable is set in the <filename>meta/conf/bitbake.conf</filename> file.
  8027. It is not intended to be user-configurable.
  8028. It is best to just reference the variable to see which machine features are
  8029. being backfilled for all machine configurations.
  8030. See the "<link linkend='ref-features-backfill'>Feature Backfilling</link>" section for
  8031. more information.
  8032. </para>
  8033. </glossdef>
  8034. </glossentry>
  8035. <glossentry id='var-MACHINE_FEATURES_BACKFILL_CONSIDERED'><glossterm>MACHINE_FEATURES_BACKFILL_CONSIDERED</glossterm>
  8036. <info>
  8037. MACHINE_FEATURES_BACKFILL_CONSIDERED[doc] = "Features from MACHINE_FEATURES_BACKFILL that should not be backfilled (i.e. added to MACHINE_FEATURES) during the build."
  8038. </info>
  8039. <glossdef>
  8040. <para role="glossdeffirst">
  8041. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8042. Features from
  8043. <filename><link linkend='var-MACHINE_FEATURES_BACKFILL'>MACHINE_FEATURES_BACKFILL</link></filename>
  8044. that should not be backfilled (i.e. added to
  8045. <filename><link linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link></filename>)
  8046. during the build.
  8047. See the "<link linkend='ref-features-backfill'>Feature Backfilling</link>" section for
  8048. more information.
  8049. </para>
  8050. </glossdef>
  8051. </glossentry>
  8052. <glossentry id='var-MACHINEOVERRIDES'><glossterm>MACHINEOVERRIDES</glossterm>
  8053. <info>
  8054. MACHINEOVERRIDES[doc] = "A colon-separated list of overrides that apply to the current machine."
  8055. </info>
  8056. <glossdef>
  8057. <para role="glossdeffirst">
  8058. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8059. A colon-separated list of overrides that apply to the
  8060. current machine.
  8061. By default, this list includes the value of
  8062. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>.
  8063. </para>
  8064. <para>
  8065. You can extend <filename>MACHINEOVERRIDES</filename>
  8066. to add extra overrides that should apply to a machine.
  8067. For example, all machines emulated in QEMU (e.g.
  8068. <filename>qemuarm</filename>, <filename>qemux86</filename>,
  8069. and so forth) include a file named
  8070. <filename>meta/conf/machine/include/qemu.inc</filename>
  8071. that prepends the following override to
  8072. <filename>MACHINEOVERRIDES</filename>:
  8073. <literallayout class='monospaced'>
  8074. MACHINEOVERRIDES =. "qemuall:"
  8075. </literallayout>
  8076. This override allows variables to be overriden for all
  8077. machines emulated in QEMU, like in the following example
  8078. from the <filename>connman-conf</filename> recipe:
  8079. <literallayout class='monospaced'>
  8080. SRC_URI_append_qemuall = "file://wired.config \
  8081. file://wired-setup \
  8082. "
  8083. </literallayout>
  8084. The underlying mechanism behind
  8085. <filename>MACHINEOVERRIDES</filename> is simply that it is
  8086. included in the default value of
  8087. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
  8088. </para>
  8089. </glossdef>
  8090. </glossentry>
  8091. <glossentry id='var-MAINTAINER'><glossterm>MAINTAINER</glossterm>
  8092. <info>
  8093. MAINTAINER[doc] = "The email address of the distribution maintainer."
  8094. </info>
  8095. <glossdef>
  8096. <para role="glossdeffirst">
  8097. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8098. The email address of the distribution maintainer.
  8099. </para>
  8100. </glossdef>
  8101. </glossentry>
  8102. <glossentry id='var-MIRRORS'><glossterm>MIRRORS</glossterm>
  8103. <info>
  8104. MIRRORS[doc] = "Specifies additional paths from which the OpenEmbedded build system gets source code."
  8105. </info>
  8106. <glossdef>
  8107. <para role="glossdeffirst">
  8108. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8109. Specifies additional paths from which the OpenEmbedded
  8110. build system gets source code.
  8111. When the build system searches for source code, it first
  8112. tries the local download directory.
  8113. If that location fails, the build system tries locations
  8114. defined by
  8115. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>,
  8116. the upstream source, and then locations specified by
  8117. <filename>MIRRORS</filename> in that order.
  8118. </para>
  8119. <para>
  8120. Assuming your distribution
  8121. (<link linkend='var-DISTRO'><filename>DISTRO</filename></link>)
  8122. is "poky", the default value for
  8123. <filename>MIRRORS</filename> is defined in the
  8124. <filename>conf/distro/poky.conf</filename> file in the
  8125. <filename>meta-poky</filename> Git repository.
  8126. </para>
  8127. </glossdef>
  8128. </glossentry>
  8129. <glossentry id='var-MLPREFIX'><glossterm>MLPREFIX</glossterm>
  8130. <info>
  8131. 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)."
  8132. </info>
  8133. <glossdef>
  8134. <para role="glossdeffirst">
  8135. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8136. Specifies a prefix has been added to
  8137. <link linkend='var-PN'><filename>PN</filename></link> to create a special version
  8138. of a recipe or package (i.e. a Multilib version).
  8139. The variable is used in places where the prefix needs to be
  8140. added to or removed from a the name (e.g. the
  8141. <link linkend='var-BPN'><filename>BPN</filename></link> variable).
  8142. <filename>MLPREFIX</filename> gets set when a prefix has been
  8143. added to <filename>PN</filename>.
  8144. <note>
  8145. The "ML" in <filename>MLPREFIX</filename> stands for
  8146. "MultiLib".
  8147. This representation is historical and comes from
  8148. a time when <filename>nativesdk</filename> was a suffix
  8149. rather than a prefix on the recipe name.
  8150. When <filename>nativesdk</filename> was turned into a
  8151. prefix, it made sense to set
  8152. <filename>MLPREFIX</filename> for it as well.
  8153. </note>
  8154. </para>
  8155. <para>
  8156. To help understand when <filename>MLPREFIX</filename>
  8157. might be needed, consider when
  8158. <link linkend='var-BBCLASSEXTEND'><filename>BBCLASSEXTEND</filename></link>
  8159. is used to provide a <filename>nativesdk</filename> version
  8160. of a recipe in addition to the target version.
  8161. If that recipe declares build-time dependencies on tasks in
  8162. other recipes by using
  8163. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>,
  8164. then a dependency on "foo" will automatically get rewritten
  8165. to a dependency on "nativesdk-foo".
  8166. However, dependencies like the following will not get
  8167. rewritten automatically:
  8168. <literallayout class='monospaced'>
  8169. do_foo[depends] += "<replaceable>recipe</replaceable>:do_foo"
  8170. </literallayout>
  8171. If you want such a dependency to also get transformed,
  8172. you can do the following:
  8173. <literallayout class='monospaced'>
  8174. do_foo[depends] += "${MLPREFIX}<replaceable>recipe</replaceable>:do_foo"
  8175. </literallayout>
  8176. </para>
  8177. </glossdef>
  8178. </glossentry>
  8179. <glossentry id='var-module_autoload'><glossterm>module_autoload</glossterm>
  8180. <info>
  8181. 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."
  8182. </info>
  8183. <glossdef>
  8184. <para role="glossdeffirst">
  8185. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8186. This variable has been replaced by the
  8187. <filename>KERNEL_MODULE_AUTOLOAD</filename> variable.
  8188. You should replace all occurrences of
  8189. <filename>module_autoload</filename> with additions to
  8190. <filename>KERNEL_MODULE_AUTOLOAD</filename>, for example:
  8191. <literallayout class='monospaced'>
  8192. module_autoload_rfcomm = "rfcomm"
  8193. </literallayout>
  8194. </para>
  8195. <para>
  8196. should now be replaced with:
  8197. <literallayout class='monospaced'>
  8198. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  8199. </literallayout>
  8200. See the
  8201. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  8202. variable for more information.
  8203. </para>
  8204. </glossdef>
  8205. </glossentry>
  8206. <glossentry id='var-module_conf'><glossterm>module_conf</glossterm>
  8207. <info>
  8208. module_conf[doc] = "Specifies modprobe.d syntax lines for inclusion in the /etc/modprobe.d/modname.conf file."
  8209. </info>
  8210. <glossdef>
  8211. <para role="glossdeffirst">
  8212. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8213. Specifies
  8214. <ulink url='http://linux.die.net/man/5/modprobe.d'><filename>modprobe.d</filename></ulink>
  8215. syntax lines for inclusion in the
  8216. <filename>/etc/modprobe.d/modname.conf</filename> file.
  8217. </para>
  8218. <para>
  8219. You can use this variable anywhere that it can be
  8220. recognized by the kernel recipe or out-of-tree kernel
  8221. module recipe (e.g. a machine configuration file, a
  8222. distribution configuration file, an append file for the
  8223. recipe, or the recipe itself).
  8224. If you use this variable, you must also be sure to list
  8225. the module name in the
  8226. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  8227. variable.
  8228. </para>
  8229. <para>
  8230. Here is the general syntax:
  8231. <literallayout class='monospaced'>
  8232. module_conf_<replaceable>module_name</replaceable> = "<replaceable>modprobe.d-syntax</replaceable>"
  8233. </literallayout>
  8234. You must use the kernel module name override.
  8235. </para>
  8236. <para>
  8237. Run <filename>man modprobe.d</filename> in the shell to
  8238. find out more information on the exact syntax
  8239. you want to provide with <filename>module_conf</filename>.
  8240. </para>
  8241. <para>
  8242. Including <filename>module_conf</filename> causes the
  8243. OpenEmbedded build system to populate the
  8244. <filename>/etc/modprobe.d/modname.conf</filename>
  8245. file with <filename>modprobe.d</filename> syntax lines.
  8246. Here is an example that adds the options
  8247. <filename>arg1</filename> and <filename>arg2</filename>
  8248. to a module named <filename>mymodule</filename>:
  8249. <literallayout class='monospaced'>
  8250. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  8251. </literallayout>
  8252. </para>
  8253. <para>
  8254. For information on how to specify kernel modules to
  8255. auto-load on boot, see the
  8256. <link linkend='var-KERNEL_MODULE_AUTOLOAD'><filename>KERNEL_MODULE_AUTOLOAD</filename></link>
  8257. variable.
  8258. </para>
  8259. </glossdef>
  8260. </glossentry>
  8261. <glossentry id='var-MODULE_IMAGE_BASE_NAME'><glossterm>MODULE_IMAGE_BASE_NAME</glossterm>
  8262. <info>
  8263. MODULE_IMAGE_BASE_NAME[doc] = "The base name of the kernel modules tarball."
  8264. </info>
  8265. <glossdef>
  8266. <para role="glossdeffirst">
  8267. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8268. The base name of the kernel modules tarball.
  8269. This variable is set in the
  8270. <link linkend='ref-classes-kernel'>kernel</link> class
  8271. as follows:
  8272. <literallayout class='monospaced'>
  8273. MODULE_IMAGE_BASE_NAME ?= "modules-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
  8274. </literallayout>
  8275. </para>
  8276. <para>
  8277. See the
  8278. <link linkend='var-PKGE'><filename>PKGE</filename></link>,
  8279. <link linkend='var-PKGV'><filename>PKGV</filename></link>,
  8280. <link linkend='var-PKGR'><filename>PKGR</filename></link>,
  8281. <link linkend='var-MACHINE'><filename>MACHINE</filename></link>,
  8282. and
  8283. <link linkend='var-DATETIME'><filename>DATETIME</filename></link>
  8284. variables for additional information.
  8285. </para>
  8286. </glossdef>
  8287. </glossentry>
  8288. <glossentry id='var-MODULE_TARBALL_DEPLOY'><glossterm>MODULE_TARBALL_DEPLOY</glossterm>
  8289. <info>
  8290. 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."
  8291. </info>
  8292. <glossdef>
  8293. <para role="glossdeffirst">
  8294. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8295. Controls creation of the <filename>modules-*.tgz</filename>
  8296. file.
  8297. Set this variable to "0" to disable creation of this
  8298. file, which contains all of the kernel modules resulting
  8299. from a kernel build.
  8300. </para>
  8301. </glossdef>
  8302. </glossentry>
  8303. <!--
  8304. <glossentry id='var-MULTIMACH_HOST_SYS'><glossterm>MULTIMACH_HOST_SYS</glossterm>
  8305. <info>
  8306. MULTIMACH_HOST_SYS[doc] = "Separates files for different machines such that you can build for multiple host machines using the same output directories."
  8307. </info>
  8308. <glossdef>
  8309. <para role="glossdeffirst">
  8310. -->
  8311. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8312. <!--
  8313. Serves the same purpose as
  8314. <link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>,
  8315. but for the "HOST" system, in situations that involve a
  8316. "HOST" and a "TARGET" system.
  8317. See the
  8318. <link linkend='var-STAGING_DIR_TARGET'><filename>STAGING_DIR_TARGET</filename></link>
  8319. variable for more information.
  8320. </para>
  8321. <para>
  8322. The default value of this variable is:
  8323. <literallayout class='monospaced'>
  8324. ${PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}
  8325. </literallayout>
  8326. </para>
  8327. </glossdef>
  8328. </glossentry>
  8329. -->
  8330. <glossentry id='var-MULTIMACH_TARGET_SYS'><glossterm>MULTIMACH_TARGET_SYS</glossterm>
  8331. <info>
  8332. MULTIMACH_TARGET_SYS[doc] = "Separates files for different machines such that you can build for multiple target machines using the same output directories."
  8333. </info>
  8334. <glossdef>
  8335. <para role="glossdeffirst">
  8336. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8337. Uniquely identifies the type of the target system for
  8338. which packages are being built.
  8339. This variable allows output for different types of target
  8340. systems to be put into different subdirectories of the same
  8341. output directory.
  8342. </para>
  8343. <para>
  8344. The default value of this variable is:
  8345. <literallayout class='monospaced'>
  8346. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  8347. </literallayout>
  8348. Some classes (e.g.
  8349. <link linkend='ref-classes-cross-canadian'><filename>cross-canadian</filename></link>)
  8350. modify the <filename>MULTIMACH_TARGET_SYS</filename> value.
  8351. </para>
  8352. <para>
  8353. See the
  8354. <link linkend='var-STAMP'><filename>STAMP</filename></link>
  8355. variable for an example.
  8356. See the
  8357. <link linkend='var-STAGING_DIR_TARGET'><filename>STAGING_DIR_TARGET</filename></link>
  8358. variable for more information.
  8359. </para>
  8360. </glossdef>
  8361. </glossentry>
  8362. </glossdiv>
  8363. <glossdiv id='var-glossary-n'><title>N</title>
  8364. <glossentry id='var-NATIVELSBSTRING'><glossterm>NATIVELSBSTRING</glossterm>
  8365. <info>
  8366. NATIVELSBSTRING[doc] = "A string identifying the host distribution."
  8367. </info>
  8368. <glossdef>
  8369. <para role="glossdeffirst">
  8370. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8371. A string identifying the host distribution.
  8372. Strings consist of the host distributor ID
  8373. followed by the release, as reported by the
  8374. <filename>lsb_release</filename> tool
  8375. or as read from <filename>/etc/lsb-release</filename>.
  8376. For example, when running a build on Ubuntu 12.10, the value
  8377. is "Ubuntu-12.10".
  8378. If this information is unable to be determined, the value
  8379. resolves to "Unknown".
  8380. </para>
  8381. <para>
  8382. This variable is used by default to isolate native shared
  8383. state packages for different distributions (e.g. to avoid
  8384. problems with <filename>glibc</filename> version
  8385. incompatibilities).
  8386. Additionally, the variable is checked against
  8387. <link linkend='var-SANITY_TESTED_DISTROS'><filename>SANITY_TESTED_DISTROS</filename></link>
  8388. if that variable is set.
  8389. </para>
  8390. </glossdef>
  8391. </glossentry>
  8392. <glossentry id='var-NM'><glossterm>NM</glossterm>
  8393. <info>
  8394. NM[doc] = "Minimal command and arguments to run 'nm'."
  8395. </info>
  8396. <glossdef>
  8397. <para role="glossdeffirst">
  8398. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8399. The minimal command and arguments to run
  8400. <filename>nm</filename>.
  8401. </para>
  8402. </glossdef>
  8403. </glossentry>
  8404. <glossentry id='var-NO_GENERIC_LICENSE'><glossterm>NO_GENERIC_LICENSE</glossterm>
  8405. <info>
  8406. NO_GENERIC_LICENSE[doc] = "Used to allow copying a license that does not exist in common licenses."
  8407. </info>
  8408. <glossdef>
  8409. <para role="glossdeffirst">
  8410. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8411. Avoids QA errors when you use a non-common, non-CLOSED
  8412. license in a recipe.
  8413. Packages exist, such as the linux-firmware package, with
  8414. many licenses that are not in any way common.
  8415. Also, new licenses are added occasionally to avoid
  8416. introducing a lot of common license files, which are only
  8417. applicable to a specific package.
  8418. <filename>NO_GENERIC_LICENSE</filename> is used to allow
  8419. copying a license that does not exist in common licenses.
  8420. </para>
  8421. <para>
  8422. The following example shows how to add
  8423. <filename>NO_GENERIC_LICENSE</filename> to a recipe:
  8424. <literallayout class='monospaced'>
  8425. NO_GENERIC_LICENSE[<replaceable>license_name</replaceable>] = "<replaceable>license_file_in_fetched_source</replaceable>"
  8426. </literallayout>
  8427. The following is an example that uses the
  8428. <filename>LICENSE.Abilis.txt</filename> file as the license
  8429. from the fetched source:
  8430. <literallayout class='monospaced'>
  8431. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  8432. </literallayout>
  8433. </para>
  8434. </glossdef>
  8435. </glossentry>
  8436. <glossentry id='var-NO_RECOMMENDATIONS'><glossterm>NO_RECOMMENDATIONS</glossterm>
  8437. <info>
  8438. 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."
  8439. </info>
  8440. <glossdef>
  8441. <para role="glossdeffirst">
  8442. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8443. Prevents installation of all "recommended-only" packages.
  8444. Recommended-only packages are packages installed only
  8445. through the
  8446. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link>
  8447. variable).
  8448. Setting the <filename>NO_RECOMMENDATIONS</filename> variable
  8449. to "1" turns this feature on:
  8450. <literallayout class='monospaced'>
  8451. NO_RECOMMENDATIONS = "1"
  8452. </literallayout>
  8453. </para>
  8454. <para>
  8455. You can set this variable globally in your
  8456. <filename>local.conf</filename> file or you can attach it to
  8457. a specific image recipe by using the recipe name override:
  8458. <literallayout class='monospaced'>
  8459. NO_RECOMMENDATIONS_pn-<replaceable>target_image</replaceable> = "1"
  8460. </literallayout>
  8461. </para>
  8462. <para>
  8463. It is important to realize that if you choose to not install
  8464. packages using this variable and some other packages are
  8465. dependent on them (i.e. listed in a recipe's
  8466. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  8467. variable), the OpenEmbedded build system ignores your
  8468. request and will install the packages to avoid dependency
  8469. errors.
  8470. <note>
  8471. Some recommended packages might be required for certain
  8472. system functionality, such as kernel modules.
  8473. It is up to you to add packages with the
  8474. <link linkend='var-IMAGE_INSTALL'><filename>IMAGE_INSTALL</filename></link>
  8475. variable.
  8476. </note>
  8477. </para>
  8478. <para>
  8479. Support for this variable exists only when using the
  8480. IPK and RPM packaging backend.
  8481. Support does not exist for DEB.
  8482. </para>
  8483. <para>
  8484. See the
  8485. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>
  8486. and the
  8487. <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link>
  8488. variables for related information.
  8489. </para>
  8490. </glossdef>
  8491. </glossentry>
  8492. <glossentry id='var-NOAUTOPACKAGEDEBUG'><glossterm>NOAUTOPACKAGEDEBUG</glossterm>
  8493. <info>
  8494. NOAUTOPACKAGEDEBUG[doc] = "Disables auto package from splitting .debug files."
  8495. </info>
  8496. <glossdef>
  8497. <para role="glossdeffirst">
  8498. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8499. Disables auto package from splitting
  8500. <filename>.debug</filename> files. If a recipe requires
  8501. <filename>FILES_${PN}-dbg</filename> to be set manually,
  8502. the <filename>NOAUTOPACKAGEDEBUG</filename> can be defined
  8503. allowing you to define the content of the debug package.
  8504. For example:
  8505. <literallayout class='monospaced'>
  8506. NOAUTOPACKAGEDEBUG = "1"
  8507. FILES_${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  8508. FILES_${PN}-dbg = "/usr/src/debug/"
  8509. FILES_${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  8510. </literallayout>
  8511. </para>
  8512. </glossdef>
  8513. </glossentry>
  8514. <glossentry id='var-NOHDD'><glossterm>NOHDD</glossterm>
  8515. <info>
  8516. NOHDD[doc] = "Causes the OpenEmbedded build system to skip building the .hddimg image."
  8517. </info>
  8518. <glossdef>
  8519. <para role="glossdeffirst">
  8520. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8521. Causes the OpenEmbedded build system to skip building the
  8522. <filename>.hddimg</filename> image.
  8523. The <filename>NOHDD</filename> variable is used with the
  8524. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  8525. class.
  8526. Set the variable to "1" to prevent the
  8527. <filename>.hddimg</filename> image from being built.
  8528. </para>
  8529. </glossdef>
  8530. </glossentry>
  8531. <glossentry id='var-NOISO'><glossterm>NOISO</glossterm>
  8532. <info>
  8533. NOISO[doc] = "Causes the OpenEmbedded build system to skip building the ISO image."
  8534. </info>
  8535. <glossdef>
  8536. <para role="glossdeffirst">
  8537. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8538. Causes the OpenEmbedded build system to skip building the
  8539. ISO image.
  8540. The <filename>NOISO</filename> variable is used with the
  8541. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  8542. class.
  8543. Set the variable to "1" to prevent the ISO image from
  8544. being built.
  8545. To enable building an ISO image, set the variable to "0".
  8546. </para>
  8547. </glossdef>
  8548. </glossentry>
  8549. </glossdiv>
  8550. <glossdiv id='var-glossary-o'><title>O</title>
  8551. <glossentry id='var-OBJCOPY'><glossterm>OBJCOPY</glossterm>
  8552. <info>
  8553. OBJCOPY[doc] = "Minimal command and arguments to run 'objcopy'."
  8554. </info>
  8555. <glossdef>
  8556. <para role="glossdeffirst">
  8557. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8558. The minimal command and arguments to run
  8559. <filename>objcopy</filename>.
  8560. </para>
  8561. </glossdef>
  8562. </glossentry>
  8563. <glossentry id='var-OBJDUMP'><glossterm>OBJDUMP</glossterm>
  8564. <info>
  8565. OBJDUMP[doc] = "Minimal command and arguments to run 'objdump'."
  8566. </info>
  8567. <glossdef>
  8568. <para role="glossdeffirst">
  8569. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8570. The minimal command and arguments to run
  8571. <filename>objdump</filename>.
  8572. </para>
  8573. </glossdef>
  8574. </glossentry>
  8575. <glossentry id='var-OE_BINCONFIG_EXTRA_MANGLE'><glossterm>OE_BINCONFIG_EXTRA_MANGLE</glossterm>
  8576. <info>
  8577. OE_BINCONFIG_EXTRA_MANGLE[doc] = "When a recipe inherits the binconfig.bbclass class, this variable specifies additional arguments passed to the "sed" command."
  8578. </info>
  8579. <glossdef>
  8580. <para role="glossdeffirst">
  8581. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8582. When inheriting the
  8583. <link linkend='ref-classes-binconfig'><filename>binconfig</filename></link>
  8584. class, this variable
  8585. specifies additional arguments passed to the "sed" command.
  8586. The sed command alters any paths in configuration scripts
  8587. that have been set up during compilation.
  8588. Inheriting this class results in all paths in these scripts
  8589. being changed to point into the
  8590. <filename>sysroots/</filename> directory so that all builds
  8591. that use the script will use the correct directories
  8592. for the cross compiling layout.
  8593. </para>
  8594. <para>
  8595. See the <filename>meta/classes/binconfig.bbclass</filename>
  8596. in the
  8597. <link linkend='source-directory'>Source Directory</link>
  8598. for details on how this class applies these additional
  8599. sed command arguments.
  8600. For general information on the
  8601. <filename>binconfig</filename> class, see the
  8602. "<link linkend='ref-classes-binconfig'><filename>binconfig.bbclass</filename></link>"
  8603. section.
  8604. </para>
  8605. </glossdef>
  8606. </glossentry>
  8607. <glossentry id='var-OE_IMPORTS'><glossterm>OE_IMPORTS</glossterm>
  8608. <info>
  8609. 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."
  8610. </info>
  8611. <glossdef>
  8612. <para role="glossdeffirst">
  8613. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8614. An internal variable used to tell the OpenEmbedded build
  8615. system what Python modules to import for every Python
  8616. function run by the system.
  8617. </para>
  8618. <note>
  8619. Do not set this variable.
  8620. It is for internal use only.
  8621. </note>
  8622. </glossdef>
  8623. </glossentry>
  8624. <glossentry id='var-OE_INIT_ENV_SCRIPT'><glossterm>OE_INIT_ENV_SCRIPT</glossterm>
  8625. <info>
  8626. 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."
  8627. </info>
  8628. <glossdef>
  8629. <para role="glossdeffirst">
  8630. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8631. The name of the build environment setup script for the
  8632. purposes of setting up the environment within the
  8633. extensible SDK.
  8634. The default value is "oe-init-build-env".
  8635. </para>
  8636. <para>
  8637. If you use a custom script to set up your build
  8638. environment, set the
  8639. <filename>OE_INIT_ENV_SCRIPT</filename> variable to its
  8640. name.
  8641. </para>
  8642. </glossdef>
  8643. </glossentry>
  8644. <glossentry id='var-OE_TERMINAL'><glossterm>OE_TERMINAL</glossterm>
  8645. <info>
  8646. OE_TERMINAL[doc] = "Controls how the OpenEmbedded build system spawns interactive terminals on the host development system."
  8647. </info>
  8648. <glossdef>
  8649. <para role="glossdeffirst">
  8650. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8651. Controls how the OpenEmbedded build system spawns
  8652. interactive terminals on the host development system
  8653. (e.g. using the BitBake command with the
  8654. <filename>-c devshell</filename> command-line option).
  8655. For more information, see the
  8656. "<ulink url='&YOCTO_DOCS_DEV_URL;#platdev-appdev-devshell'>Using a Development Shell</ulink>" section
  8657. in the Yocto Project Development Tasks Manual.
  8658. </para>
  8659. <para>
  8660. You can use the following values for the
  8661. <filename>OE_TERMINAL</filename> variable:
  8662. <literallayout class='monospaced'>
  8663. auto
  8664. gnome
  8665. xfce
  8666. rxvt
  8667. screen
  8668. konsole
  8669. none
  8670. </literallayout>
  8671. </para>
  8672. </glossdef>
  8673. </glossentry>
  8674. <glossentry id='var-OEROOT'><glossterm>OEROOT</glossterm>
  8675. <info>
  8676. OEROOT[doc] = "The directory from which the top-level build environment setup script is sourced."
  8677. </info>
  8678. <glossdef>
  8679. <para role="glossdeffirst">
  8680. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8681. The directory from which the top-level build environment
  8682. setup script is sourced.
  8683. The Yocto Project provides a top-level build environment
  8684. setup script:
  8685. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>.
  8686. When you run this script, the
  8687. <filename>OEROOT</filename> variable resolves to the
  8688. directory that contains the script.
  8689. </para>
  8690. <para>
  8691. For additional information on how this variable is used,
  8692. see the initialization script.
  8693. </para>
  8694. </glossdef>
  8695. </glossentry>
  8696. <glossentry id='var-OLDEST_KERNEL'><glossterm>OLDEST_KERNEL</glossterm>
  8697. <info>
  8698. OLDEST_KERNEL[doc] = "Declares the oldest version of the Linux kernel that the produced binaries must support."
  8699. </info>
  8700. <glossdef>
  8701. <para role="glossdeffirst">
  8702. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8703. Declares the oldest version of the Linux kernel that the
  8704. produced binaries must support.
  8705. This variable is passed into the build of the Embedded
  8706. GNU C Library (<filename>glibc</filename>).
  8707. </para>
  8708. <para>
  8709. The default for this variable comes from the
  8710. <filename>meta/conf/bitbake.conf</filename> configuration
  8711. file.
  8712. You can override this default by setting the variable
  8713. in a custom distribution configuration file.
  8714. </para>
  8715. </glossdef>
  8716. </glossentry>
  8717. <glossentry id='var-OVERRIDES'><glossterm>OVERRIDES</glossterm>
  8718. <info>
  8719. OVERRIDES[doc] = "A colon-separated list of overrides that currently apply."
  8720. </info>
  8721. <glossdef>
  8722. <para role="glossdeffirst">
  8723. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8724. A colon-separated list of overrides that currently apply.
  8725. Overrides are a BitBake mechanism that allows variables to
  8726. be selectively overridden at the end of parsing.
  8727. The set of overrides in <filename>OVERRIDES</filename>
  8728. represents the "state" during building, which includes
  8729. the current recipe being built, the machine for which
  8730. it is being built, and so forth.
  8731. </para>
  8732. <para>
  8733. As an example, if the string "an-override" appears as an
  8734. element in the colon-separated list in
  8735. <filename>OVERRIDES</filename>, then the following
  8736. assignment will override <filename>FOO</filename> with the
  8737. value "overridden" at the end of parsing:
  8738. <literallayout class='monospaced'>
  8739. FOO_an-override = "overridden"
  8740. </literallayout>
  8741. See the
  8742. "<ulink url='&YOCTO_DOCS_BB_URL;#conditional-syntax-overrides'>Conditional Syntax (Overrides)</ulink>"
  8743. section in the BitBake User Manual for more information on
  8744. the overrides mechanism.
  8745. </para>
  8746. <para>
  8747. The default value of <filename>OVERRIDES</filename>
  8748. includes the values of the
  8749. <link linkend='var-CLASSOVERRIDE'><filename>CLASSOVERRIDE</filename></link>,
  8750. <link linkend='var-MACHINEOVERRIDES'><filename>MACHINEOVERRIDES</filename></link>,
  8751. and
  8752. <link linkend='var-DISTROOVERRIDES'><filename>DISTROOVERRIDES</filename></link>
  8753. variables.
  8754. Another important override included by default is
  8755. <filename>pn-${PN}</filename>.
  8756. This override allows variables to be set for a single
  8757. recipe within configuration (<filename>.conf</filename>)
  8758. files.
  8759. Here is an example:
  8760. <literallayout class='monospaced'>
  8761. FOO_pn-myrecipe = "myrecipe-specific value"
  8762. </literallayout>
  8763. <note><title>Tip</title>
  8764. An easy way to see what overrides apply is to search for
  8765. <filename>OVERRIDES</filename> in the output of the
  8766. <filename>bitbake -e</filename> command.
  8767. See the
  8768. "<ulink url='&YOCTO_DOCS_DEV_URL;#dev-debugging-viewing-variable-values'>Viewing Variable Values</ulink>"
  8769. section in the Yocto Project Development Tasks
  8770. Manual for more information.
  8771. </note>
  8772. </para>
  8773. </glossdef>
  8774. </glossentry>
  8775. </glossdiv>
  8776. <glossdiv id='var-glossary-p'><title>P</title>
  8777. <glossentry id='var-P'><glossterm>P</glossterm>
  8778. <info>
  8779. P[doc] = "The recipe name and version. P is comprised of ${PN}-${PV}."
  8780. </info>
  8781. <glossdef>
  8782. <para role="glossdeffirst">
  8783. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8784. The recipe name and version.
  8785. <filename>P</filename> is comprised of the following:
  8786. <literallayout class='monospaced'>
  8787. ${PN}-${PV}
  8788. </literallayout>
  8789. </para>
  8790. </glossdef>
  8791. </glossentry>
  8792. <glossentry id='var-PACKAGE_ARCH'><glossterm>PACKAGE_ARCH</glossterm>
  8793. <info>
  8794. PACKAGE_ARCH[doc] = "The architecture of the resulting package or packages."
  8795. </info>
  8796. <glossdef>
  8797. <para role="glossdeffirst">
  8798. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8799. The architecture of the resulting package or packages.
  8800. </para>
  8801. <para>
  8802. By default, the value of this variable is set to
  8803. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>
  8804. when building for the target,
  8805. <link linkend='var-BUILD_ARCH'><filename>BUILD_ARCH</filename></link>
  8806. when building for the
  8807. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building
  8808. for the SDK.
  8809. <note>
  8810. See
  8811. <link linkend='var-SDK_ARCH'><filename>SDK_ARCH</filename></link>
  8812. for more information.
  8813. </note>
  8814. However, if your recipe's output packages are built
  8815. specific to the target machine rather than generally for
  8816. the architecture of the machine, you should set
  8817. <filename>PACKAGE_ARCH</filename> to the value of
  8818. <link linkend='var-MACHINE_ARCH'><filename>MACHINE_ARCH</filename></link>
  8819. in the recipe as follows:
  8820. <literallayout class='monospaced'>
  8821. PACKAGE_ARCH = "${MACHINE_ARCH}"
  8822. </literallayout>
  8823. </para>
  8824. </glossdef>
  8825. </glossentry>
  8826. <glossentry id='var-PACKAGE_ARCHS'><glossterm>PACKAGE_ARCHS</glossterm>
  8827. <info>
  8828. PACKAGE_ARCHS[doc] = "A list of architectures compatible with the given target in order of priority."
  8829. </info>
  8830. <glossdef>
  8831. <para role="glossdeffirst">
  8832. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8833. Specifies a list of architectures compatible with
  8834. the target machine.
  8835. This variable is set automatically and should not
  8836. normally be hand-edited.
  8837. Entries are separated using spaces and listed in order
  8838. of priority.
  8839. The default value for
  8840. <filename>PACKAGE_ARCHS</filename> is "all any noarch
  8841. ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  8842. </para>
  8843. </glossdef>
  8844. </glossentry>
  8845. <glossentry id='var-PACKAGE_BEFORE_PN'><glossterm>PACKAGE_BEFORE_PN</glossterm>
  8846. <info>
  8847. 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."
  8848. </info>
  8849. <glossdef>
  8850. <para role="glossdeffirst">
  8851. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8852. Enables easily adding packages to
  8853. <filename><link linkend='var-PACKAGES'>PACKAGES</link></filename>
  8854. before <filename>${<link linkend='var-PN'>PN</link>}</filename>
  8855. so that those added packages can pick up files that would normally be
  8856. included in the default package.
  8857. </para>
  8858. </glossdef>
  8859. </glossentry>
  8860. <glossentry id='var-PACKAGE_CLASSES'><glossterm>PACKAGE_CLASSES</glossterm>
  8861. <info>
  8862. 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."
  8863. </info>
  8864. <glossdef>
  8865. <para role="glossdeffirst">
  8866. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8867. This variable, which is set in the
  8868. <filename>local.conf</filename> configuration file found in
  8869. the <filename>conf</filename> folder of the
  8870. <link linkend='build-directory'>Build Directory</link>,
  8871. specifies the package manager the OpenEmbedded build system
  8872. uses when packaging data.
  8873. </para>
  8874. <para>
  8875. You can provide one or more of the following arguments for
  8876. the variable:
  8877. <literallayout class='monospaced'>
  8878. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk package_tar"
  8879. </literallayout>
  8880. <note><title>Warning</title>
  8881. While it is a legal option, the
  8882. <filename>package_tar</filename> class has limited
  8883. functionality due to no support for package
  8884. dependencies by that backend.
  8885. Therefore, it is recommended that you do not use it.
  8886. </note>
  8887. The build system uses only the first argument in the list
  8888. as the package manager when creating your image or SDK.
  8889. However, packages will be created using any additional
  8890. packaging classes you specify.
  8891. For example, if you use the following in your
  8892. <filename>local.conf</filename> file:
  8893. <literallayout class='monospaced'>
  8894. PACKAGE_CLASSES ?= "package_ipk"
  8895. </literallayout>
  8896. The OpenEmbedded build system uses the IPK package manager
  8897. to create your image or SDK.
  8898. </para>
  8899. <para>
  8900. For information on packaging and build performance effects
  8901. as a result of the package manager in use, see the
  8902. "<link linkend='ref-classes-package'><filename>package.bbclass</filename></link>"
  8903. section.
  8904. </para>
  8905. </glossdef>
  8906. </glossentry>
  8907. <glossentry id='var-PACKAGE_DEBUG_SPLIT_STYLE'><glossterm>PACKAGE_DEBUG_SPLIT_STYLE</glossterm>
  8908. <info>
  8909. 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)."
  8910. </info>
  8911. <glossdef>
  8912. <para role="glossdeffirst">
  8913. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8914. Determines how to split up the binary and debug information
  8915. when creating <filename>*-dbg</filename> packages to be
  8916. used with the GNU Project Debugger (GDB).
  8917. </para>
  8918. <para>
  8919. With the
  8920. <filename>PACKAGE_DEBUG_SPLIT_STYLE</filename> variable,
  8921. you can control where debug information, which can include
  8922. or exclude source files, is stored:
  8923. <itemizedlist>
  8924. <listitem><para>
  8925. ".debug": Debug symbol files are placed next
  8926. to the binary in a <filename>.debug</filename>
  8927. directory on the target.
  8928. For example, if a binary is installed into
  8929. <filename>/bin</filename>, the corresponding debug
  8930. symbol files are installed in
  8931. <filename>/bin/.debug</filename>.
  8932. Source files are placed in
  8933. <filename>/usr/src/debug</filename>.
  8934. This is the default behavior.
  8935. </para></listitem>
  8936. <listitem><para>
  8937. "debug-file-directory": Debug symbol files are
  8938. placed under <filename>/usr/lib/debug</filename>
  8939. on the target, and separated by the path from where
  8940. the binary is installed.
  8941. For example, if a binary is installed in
  8942. <filename>/bin</filename>, the corresponding debug
  8943. symbols are installed in
  8944. <filename>/usr/lib/debug/bin</filename>.
  8945. Source files are placed in
  8946. <filename>/usr/src/debug</filename>.
  8947. </para></listitem>
  8948. <listitem><para>
  8949. "debug-without-src": The same behavior as
  8950. ".debug" previously described with the exception
  8951. that no source files are installed.
  8952. </para></listitem>.
  8953. </itemizedlist>
  8954. </para>
  8955. <para>
  8956. You can find out more about debugging using GDB by reading
  8957. the
  8958. "<ulink url='&YOCTO_DOCS_DEV_URL;#platdev-gdb-remotedebug'>Debugging With the GNU Project Debugger (GDB) Remotely</ulink>"
  8959. section in the Yocto Project Development Tasks Manual.
  8960. </para>
  8961. </glossdef>
  8962. </glossentry>
  8963. <glossentry id='var-PACKAGE_EXCLUDE_COMPLEMENTARY'><glossterm>PACKAGE_EXCLUDE_COMPLEMENTARY</glossterm>
  8964. <info>
  8965. PACKAGE_EXCLUDE_COMPLEMENTARY[doc] = "Prevents specific packages from being installed when you are installing complementary packages."
  8966. </info>
  8967. <glossdef>
  8968. <para role="glossdeffirst">
  8969. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8970. Prevents specific packages from being installed when
  8971. you are installing complementary packages.
  8972. </para>
  8973. <para>
  8974. You might find that you want to prevent installing certain
  8975. packages when you are installing complementary packages.
  8976. For example, if you are using
  8977. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>
  8978. to install <filename>dev-pkgs</filename>, you might not want
  8979. to install all packages from a particular multilib.
  8980. If you find yourself in this situation, you can use the
  8981. <filename>PACKAGE_EXCLUDE_COMPLEMENTARY</filename> variable
  8982. to specify regular expressions to match the packages you
  8983. want to exclude.
  8984. </para>
  8985. </glossdef>
  8986. </glossentry>
  8987. <glossentry id='var-PACKAGE_EXCLUDE'><glossterm>PACKAGE_EXCLUDE</glossterm>
  8988. <info>
  8989. PACKAGE_EXCLUDE[doc] = "Packages to exclude from the installation. If a listed package is required, an error is generated."
  8990. </info>
  8991. <glossdef>
  8992. <para role="glossdeffirst">
  8993. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  8994. Lists packages that should not be installed into an image.
  8995. For example:
  8996. <literallayout class='monospaced'>
  8997. PACKAGE_EXCLUDE = "<replaceable>package_name</replaceable> <replaceable>package_name</replaceable> <replaceable>package_name</replaceable> ..."
  8998. </literallayout>
  8999. </para>
  9000. <para>
  9001. You can set this variable globally in your
  9002. <filename>local.conf</filename> file or you can attach it to
  9003. a specific image recipe by using the recipe name override:
  9004. <literallayout class='monospaced'>
  9005. PACKAGE_EXCLUDE_pn-<replaceable>target_image</replaceable> = "<replaceable>package_name</replaceable>"
  9006. </literallayout>
  9007. </para>
  9008. <para>
  9009. If you choose to not install
  9010. a package using this variable and some other package is
  9011. dependent on it (i.e. listed in a recipe's
  9012. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  9013. variable), the OpenEmbedded build system generates a fatal
  9014. installation error.
  9015. Because the build system halts the process with a fatal
  9016. error, you can use the variable with an iterative
  9017. development process to remove specific components from a
  9018. system.
  9019. </para>
  9020. <para>
  9021. Support for this variable exists only when using the
  9022. IPK and RPM packaging backend.
  9023. Support does not exist for DEB.
  9024. </para>
  9025. <para>
  9026. See the
  9027. <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link>
  9028. and the
  9029. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>
  9030. variables for related information.
  9031. </para>
  9032. </glossdef>
  9033. </glossentry>
  9034. <glossentry id='var-PACKAGE_EXTRA_ARCHS'><glossterm>PACKAGE_EXTRA_ARCHS</glossterm>
  9035. <info>
  9036. 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."
  9037. </info>
  9038. <glossdef>
  9039. <para role="glossdeffirst">
  9040. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9041. Specifies the list of architectures compatible with the device CPU.
  9042. This variable is useful when you build for several different devices that use
  9043. miscellaneous processors such as XScale and ARM926-EJS.
  9044. </para>
  9045. </glossdef>
  9046. </glossentry>
  9047. <glossentry id='var-PACKAGE_FEED_ARCHS'><glossterm>PACKAGE_FEED_ARCHS</glossterm>
  9048. <info>
  9049. PACKAGE_FEED_ARCHS[doc] = "Optionally specifies user-defined package architectures when constructing package feed URIs."
  9050. </info>
  9051. <glossdef>
  9052. <para role="glossdeffirst">
  9053. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9054. Optionally specifies the package architectures used as
  9055. part of the package feed URIs during the build.
  9056. When used, the <filename>PACKAGE_FEED_ARCHS</filename>
  9057. variable is appended to the final package feed URI, which
  9058. is constructed using the
  9059. <link linkend='var-PACKAGE_FEED_URIS'><filename>PACKAGE_FEED_URIS</filename></link>
  9060. and
  9061. <link linkend='var-PACKAGE_FEED_BASE_PATHS'><filename>PACKAGE_FEED_BASE_PATHS</filename></link>
  9062. variables.
  9063. <note><title>Tip</title>
  9064. You can use the <filename>PACKAGE_FEEDS_ARCHS</filename>
  9065. variable to whitelist specific package architectures.
  9066. If you do not need to whitelist specific architectures,
  9067. which is a common case, you can omit this variable.
  9068. Omitting the variable results in all available
  9069. architectures for the current machine being included
  9070. into remote package feeds.
  9071. </note>
  9072. </para>
  9073. <para>
  9074. Consider the following example where the
  9075. <filename>PACKAGE_FEED_URIS</filename>,
  9076. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  9077. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  9078. defined in your <filename>local.conf</filename> file:
  9079. <literallayout class='monospaced'>
  9080. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  9081. https://example.com/packagerepos/updates"
  9082. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  9083. PACKAGE_FEED_ARCHS = "all core2-64"
  9084. </literallayout>
  9085. Given these settings, the resulting package feeds are
  9086. as follows:
  9087. <literallayout class='monospaced'>
  9088. https://example.com/packagerepos/release/rpm/all
  9089. https://example.com/packagerepos/release/rpm/core2-64
  9090. https://example.com/packagerepos/release/rpm-dev/all
  9091. https://example.com/packagerepos/release/rpm-dev/core2-64
  9092. https://example.com/packagerepos/updates/rpm/all
  9093. https://example.com/packagerepos/updates/rpm/core2-64
  9094. https://example.com/packagerepos/updates/rpm-dev/all
  9095. https://example.com/packagerepos/updates/rpm-dev/core2-64
  9096. </literallayout>
  9097. </para>
  9098. </glossdef>
  9099. </glossentry>
  9100. <glossentry id='var-PACKAGE_FEED_BASE_PATHS'><glossterm>PACKAGE_FEED_BASE_PATHS</glossterm>
  9101. <info>
  9102. PACKAGE_FEED_BASE_PATHS[doc] = "Specifies base path used when constructing package feed URIs."
  9103. </info>
  9104. <glossdef>
  9105. <para role="glossdeffirst">
  9106. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9107. Specifies the base path used when constructing package feed
  9108. URIs.
  9109. The <filename>PACKAGE_FEED_BASE_PATHS</filename> variable
  9110. makes up the middle portion of a package feed URI used
  9111. by the OpenEmbedded build system.
  9112. The base path lies between the
  9113. <link linkend='var-PACKAGE_FEED_URIS'><filename>PACKAGE_FEED_URIS</filename></link>
  9114. and
  9115. <link linkend='var-PACKAGE_FEED_ARCHS'><filename>PACKAGE_FEED_ARCHS</filename></link>
  9116. variables.
  9117. </para>
  9118. <para>
  9119. Consider the following example where the
  9120. <filename>PACKAGE_FEED_URIS</filename>,
  9121. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  9122. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  9123. defined in your <filename>local.conf</filename> file:
  9124. <literallayout class='monospaced'>
  9125. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  9126. https://example.com/packagerepos/updates"
  9127. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  9128. PACKAGE_FEED_ARCHS = "all core2-64"
  9129. </literallayout>
  9130. Given these settings, the resulting package feeds are
  9131. as follows:
  9132. <literallayout class='monospaced'>
  9133. https://example.com/packagerepos/release/rpm/all
  9134. https://example.com/packagerepos/release/rpm/core2-64
  9135. https://example.com/packagerepos/release/rpm-dev/all
  9136. https://example.com/packagerepos/release/rpm-dev/core2-64
  9137. https://example.com/packagerepos/updates/rpm/all
  9138. https://example.com/packagerepos/updates/rpm/core2-64
  9139. https://example.com/packagerepos/updates/rpm-dev/all
  9140. https://example.com/packagerepos/updates/rpm-dev/core2-64
  9141. </literallayout>
  9142. </para>
  9143. </glossdef>
  9144. </glossentry>
  9145. <glossentry id='var-PACKAGE_FEED_URIS'><glossterm>PACKAGE_FEED_URIS</glossterm>
  9146. <info>
  9147. PACKAGE_FEED_URIS[doc] = "Specifies the front portion of the package feed URI used by the OpenEmbedded build system."
  9148. </info>
  9149. <glossdef>
  9150. <para role="glossdeffirst">
  9151. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9152. Specifies the front portion of the package feed URI
  9153. used by the OpenEmbedded build system.
  9154. Each final package feed URI is comprised of
  9155. <filename>PACKAGE_FEED_URIS</filename>,
  9156. <link linkend='var-PACKAGE_FEED_BASE_PATHS'><filename>PACKAGE_FEED_BASE_PATHS</filename></link>,
  9157. and
  9158. <link linkend='var-PACKAGE_FEED_ARCHS'><filename>PACKAGE_FEED_ARCHS</filename></link>
  9159. variables.
  9160. </para>
  9161. <para>
  9162. Consider the following example where the
  9163. <filename>PACKAGE_FEED_URIS</filename>,
  9164. <filename>PACKAGE_FEED_BASE_PATHS</filename>, and
  9165. <filename>PACKAGE_FEED_ARCHS</filename> variables are
  9166. defined in your <filename>local.conf</filename> file:
  9167. <literallayout class='monospaced'>
  9168. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  9169. https://example.com/packagerepos/updates"
  9170. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  9171. PACKAGE_FEED_ARCHS = "all core2-64"
  9172. </literallayout>
  9173. Given these settings, the resulting package feeds are
  9174. as follows:
  9175. <literallayout class='monospaced'>
  9176. https://example.com/packagerepos/release/rpm/all
  9177. https://example.com/packagerepos/release/rpm/core2-64
  9178. https://example.com/packagerepos/release/rpm-dev/all
  9179. https://example.com/packagerepos/release/rpm-dev/core2-64
  9180. https://example.com/packagerepos/updates/rpm/all
  9181. https://example.com/packagerepos/updates/rpm/core2-64
  9182. https://example.com/packagerepos/updates/rpm-dev/all
  9183. https://example.com/packagerepos/updates/rpm-dev/core2-64
  9184. </literallayout>
  9185. </para>
  9186. </glossdef>
  9187. </glossentry>
  9188. <glossentry id='var-PACKAGE_GROUP'><glossterm>PACKAGE_GROUP</glossterm>
  9189. <info>
  9190. PACKAGE_GROUP[doc] = "Defines one or more packages to include in an image when a specific item is included in IMAGE_FEATURES."
  9191. </info>
  9192. <glossdef>
  9193. <para role="glossdeffirst">
  9194. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9195. The <filename>PACKAGE_GROUP</filename> variable has been
  9196. renamed to
  9197. <link linkend='var-FEATURE_PACKAGES'><filename>FEATURE_PACKAGES</filename></link>.
  9198. See the variable description for
  9199. <filename>FEATURE_PACKAGES</filename> for information.
  9200. </para>
  9201. <para>
  9202. If if you use the <filename>PACKAGE_GROUP</filename>
  9203. variable, the OpenEmbedded build system issues a warning
  9204. message.
  9205. </para>
  9206. </glossdef>
  9207. </glossentry>
  9208. <glossentry id='var-PACKAGE_INSTALL'><glossterm>PACKAGE_INSTALL</glossterm>
  9209. <info>
  9210. 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."
  9211. </info>
  9212. <glossdef>
  9213. <para role="glossdeffirst">
  9214. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9215. The final list of packages passed to the package manager
  9216. for installation into the image.
  9217. </para>
  9218. <para>
  9219. Because the package manager controls actual installation
  9220. of all packages, the list of packages passed using
  9221. <filename>PACKAGE_INSTALL</filename> is not the final list
  9222. of packages that are actually installed.
  9223. This variable is internal to the image construction
  9224. code.
  9225. Consequently, in general, you should use the
  9226. <link linkend='var-IMAGE_INSTALL'><filename>IMAGE_INSTALL</filename></link>
  9227. variable to specify packages for installation.
  9228. The exception to this is when working with
  9229. the
  9230. <link linkend='images-core-image-minimal-initramfs'><filename>core-image-minimal-initramfs</filename></link>
  9231. image.
  9232. When working with an initial RAM filesystem (initramfs)
  9233. image, use the <filename>PACKAGE_INSTALL</filename>
  9234. variable.
  9235. For information on creating an initramfs, see the
  9236. "<ulink url='&YOCTO_DOCS_DEV_URL;#building-an-initramfs-image'>Building an Initial RAM Filesystem (initramfs) Image</ulink>"
  9237. section in the Yocto Project Development Tasks Manual.
  9238. </para>
  9239. </glossdef>
  9240. </glossentry>
  9241. <glossentry id='var-PACKAGE_INSTALL_ATTEMPTONLY'><glossterm>PACKAGE_INSTALL_ATTEMPTONLY</glossterm>
  9242. <info>
  9243. 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."
  9244. </info>
  9245. <glossdef>
  9246. <para role="glossdeffirst">
  9247. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9248. Specifies a list of packages the OpenEmbedded build
  9249. system attempts to install when creating an image.
  9250. If a listed package fails to install, the build system
  9251. does not generate an error.
  9252. This variable is generally not user-defined.
  9253. </para>
  9254. </glossdef>
  9255. </glossentry>
  9256. <glossentry id='var-PACKAGE_PREPROCESS_FUNCS'><glossterm>PACKAGE_PREPROCESS_FUNCS</glossterm>
  9257. <info>
  9258. 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."
  9259. </info>
  9260. <glossdef>
  9261. <para role="glossdeffirst">
  9262. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9263. Specifies a list of functions run to pre-process the
  9264. <link linkend='var-PKGD'><filename>PKGD</filename></link>
  9265. directory prior to splitting the files out to individual
  9266. packages.
  9267. </para>
  9268. </glossdef>
  9269. </glossentry>
  9270. <glossentry id='var-PACKAGE_WRITE_DEPS'><glossterm>PACKAGE_WRITE_DEPS</glossterm>
  9271. <info>
  9272. PACKAGE_WRITE_DEPS[doc] = "Specifies post-installation and pre-installation script dependencies on native/cross tools."
  9273. </info>
  9274. <glossdef>
  9275. <para role="glossdeffirst">
  9276. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9277. Specifies a list of dependencies for post-installation and
  9278. pre-installation scripts on native/cross tools.
  9279. If your post-installation or pre-installation script can
  9280. execute at rootfs creation time rather than on the
  9281. target but depends on a native tool in order to execute,
  9282. you need to list the tools in
  9283. <filename>PACKAGE_WRITE_DEPS</filename>.
  9284. </para>
  9285. <para>
  9286. For information on running post-installation scripts, see
  9287. the
  9288. "<ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-post-installation-scripts'>Post-Installation Scripts</ulink>"
  9289. section in the Yocto Project Development Tasks Manual.
  9290. </para>
  9291. </glossdef>
  9292. </glossentry>
  9293. <glossentry id='var-PACKAGECONFIG'><glossterm>PACKAGECONFIG</glossterm>
  9294. <info>
  9295. PACKAGECONFIG[doc] = "This variable provides a means of enabling or disabling features of a recipe on a per-recipe basis."
  9296. </info>
  9297. <glossdef>
  9298. <para role="glossdeffirst">
  9299. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9300. This variable provides a means of enabling or disabling
  9301. features of a recipe on a per-recipe basis.
  9302. <filename>PACKAGECONFIG</filename> blocks are defined
  9303. in recipes when you specify features and then arguments
  9304. that define feature behaviors.
  9305. Here is the basic block structure:
  9306. <literallayout class='monospaced'>
  9307. PACKAGECONFIG ??= "f1 f2 f3 ..."
  9308. PACKAGECONFIG[f1] = "--with-f1,--without-f1,build-deps-f1,rt-deps-f1"
  9309. PACKAGECONFIG[f2] = "--with-f2,--without-f2,build-deps-f2,rt-deps-f2"
  9310. PACKAGECONFIG[f3] = "--with-f3,--without-f3,build-deps-f3,rt-deps-f3"
  9311. </literallayout>
  9312. </para>
  9313. <para>
  9314. The <filename>PACKAGECONFIG</filename>
  9315. variable itself specifies a space-separated list of the
  9316. features to enable.
  9317. Following the features, you can determine the behavior of
  9318. each feature by providing up to four order-dependent
  9319. arguments, which are separated by commas.
  9320. You can omit any argument you like but must retain the
  9321. separating commas.
  9322. The order is important and specifies the following:
  9323. <orderedlist>
  9324. <listitem><para>Extra arguments
  9325. that should be added to the configure script
  9326. argument list
  9327. (<link linkend='var-EXTRA_OECONF'><filename>EXTRA_OECONF</filename></link>
  9328. or
  9329. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>)
  9330. if the feature is enabled.</para></listitem>
  9331. <listitem><para>Extra arguments
  9332. that should be added to <filename>EXTRA_OECONF</filename>
  9333. or <filename>PACKAGECONFIG_CONFARGS</filename>
  9334. if the feature is disabled.
  9335. </para></listitem>
  9336. <listitem><para>Additional build dependencies
  9337. (<link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>)
  9338. that should be added if the feature is enabled.
  9339. </para></listitem>
  9340. <listitem><para>Additional runtime dependencies
  9341. (<link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>)
  9342. that should be added if the feature is enabled.
  9343. </para></listitem>
  9344. </orderedlist>
  9345. </para>
  9346. <para>
  9347. Consider the following
  9348. <filename>PACKAGECONFIG</filename> block taken from the
  9349. <filename>librsvg</filename> recipe.
  9350. In this example the feature is <filename>croco</filename>,
  9351. which has three arguments that determine the feature's
  9352. behavior.
  9353. <literallayout class='monospaced'>
  9354. PACKAGECONFIG ??= "croco"
  9355. PACKAGECONFIG[croco] = "--with-croco,--without-croco,libcroco"
  9356. </literallayout>
  9357. The <filename>--with-croco</filename> and
  9358. <filename>libcroco</filename> arguments apply only if
  9359. the feature is enabled.
  9360. In this case, <filename>--with-croco</filename> is
  9361. added to the configure script argument list and
  9362. <filename>libcroco</filename> is added to
  9363. <filename>DEPENDS</filename>.
  9364. On the other hand, if the feature is disabled say through
  9365. a <filename>.bbappend</filename> file in another layer, then
  9366. the second argument <filename>--without-croco</filename> is
  9367. added to the configure script rather than
  9368. <filename>--with-croco</filename>.
  9369. </para>
  9370. <para>
  9371. The basic <filename>PACKAGECONFIG</filename> structure
  9372. previously described holds true regardless of whether you
  9373. are creating a block or changing a block.
  9374. When creating a block, use the structure inside your
  9375. recipe.
  9376. </para>
  9377. <para>
  9378. If you want to change an existing
  9379. <filename>PACKAGECONFIG</filename> block, you can do so
  9380. one of two ways:
  9381. <itemizedlist>
  9382. <listitem><para><emphasis>Append file:</emphasis>
  9383. Create an append file named
  9384. <replaceable>recipename</replaceable><filename>.bbappend</filename>
  9385. in your layer and override the value of
  9386. <filename>PACKAGECONFIG</filename>.
  9387. You can either completely override the variable:
  9388. <literallayout class='monospaced'>
  9389. PACKAGECONFIG="f4 f5"
  9390. </literallayout>
  9391. Or, you can just append the variable:
  9392. <literallayout class='monospaced'>
  9393. PACKAGECONFIG_append = " f4"
  9394. </literallayout></para></listitem>
  9395. <listitem><para><emphasis>Configuration file:</emphasis>
  9396. This method is identical to changing the block
  9397. through an append file except you edit your
  9398. <filename>local.conf</filename> or
  9399. <filename><replaceable>mydistro</replaceable>.conf</filename> file.
  9400. As with append files previously described,
  9401. you can either completely override the variable:
  9402. <literallayout class='monospaced'>
  9403. PACKAGECONFIG_pn-<replaceable>recipename</replaceable>="f4 f5"
  9404. </literallayout>
  9405. Or, you can just amend the variable:
  9406. <literallayout class='monospaced'>
  9407. PACKAGECONFIG_append_pn-<replaceable>recipename</replaceable> = " f4"
  9408. </literallayout></para></listitem>
  9409. </itemizedlist>
  9410. </para>
  9411. </glossdef>
  9412. </glossentry>
  9413. <glossentry id='var-PACKAGECONFIG_CONFARGS'><glossterm>PACKAGECONFIG_CONFARGS</glossterm>
  9414. <info>
  9415. PACKAGECONFIG_CONFARGS[doc] = "A space-separated list of configuration options generated from the PACKAGECONFIG setting."
  9416. </info>
  9417. <glossdef>
  9418. <para role="glossdeffirst">
  9419. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9420. A space-separated list of configuration options generated
  9421. from the
  9422. <link linkend='var-PACKAGECONFIG'><filename>PACKAGECONFIG</filename></link>
  9423. setting.
  9424. </para>
  9425. <para>
  9426. Classes such as
  9427. <link linkend='ref-classes-autotools'><filename>autotools</filename></link>
  9428. and
  9429. <link linkend='ref-classes-cmake'><filename>cmake</filename></link>
  9430. use <filename>PACKAGECONFIG_CONFARGS</filename> to pass
  9431. <filename>PACKAGECONFIG</filename> options to
  9432. <filename>configure</filename> and
  9433. <filename>cmake</filename>, respectively.
  9434. If you are using
  9435. <filename>PACKAGECONFIG</filename> but not a class that
  9436. handles the <filename>do_configure</filename> task, then
  9437. you need to use
  9438. <filename>PACKAGECONFIG_CONFARGS</filename> appropriately.
  9439. </para>
  9440. </glossdef>
  9441. </glossentry>
  9442. <glossentry id='var-PACKAGEGROUP_DISABLE_COMPLEMENTARY'><glossterm>PACKAGEGROUP_DISABLE_COMPLEMENTARY</glossterm>
  9443. <info>
  9444. PACKAGEGROUP_DISABLE_COMPLEMENTARY[doc] = "Prevents automatic creation of the normal complementary packages such as -dev and -dbg in a packagegroup recipe."
  9445. </info>
  9446. <glossdef>
  9447. <para role="glossdeffirst">
  9448. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9449. For recipes inheriting the
  9450. <link linkend='ref-classes-packagegroup'><filename>packagegroup</filename></link>
  9451. class, setting
  9452. <filename>PACKAGEGROUP_DISABLE_COMPLEMENTARY</filename> to
  9453. "1" specifies that the normal complementary packages
  9454. (i.e. <filename>-dev</filename>,
  9455. <filename>-dbg</filename>, and so forth) should not be
  9456. automatically created by the
  9457. <filename>packagegroup</filename> recipe, which is the
  9458. default behavior.
  9459. </para>
  9460. </glossdef>
  9461. </glossentry>
  9462. <glossentry id='var-PACKAGES'><glossterm>PACKAGES</glossterm>
  9463. <info>
  9464. PACKAGES[doc] = "The list of packages the recipe creates."
  9465. </info>
  9466. <glossdef>
  9467. <para role="glossdeffirst">
  9468. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9469. The list of packages the recipe creates.
  9470. The default value is the following:
  9471. <literallayout class='monospaced'>
  9472. ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  9473. </literallayout>
  9474. </para>
  9475. <para>
  9476. During packaging, the
  9477. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  9478. task goes through <filename>PACKAGES</filename> and uses
  9479. the
  9480. <link linkend='var-FILES'><filename>FILES</filename></link>
  9481. variable corresponding to each package to assign files to
  9482. the package.
  9483. If a file matches the <filename>FILES</filename> variable
  9484. for more than one package in <filename>PACKAGES</filename>,
  9485. it will be assigned to the earliest (leftmost) package.
  9486. </para>
  9487. <para>
  9488. Packages in the variable's list that are empty (i.e. where
  9489. none of the patterns in
  9490. <filename>FILES_</filename><replaceable>pkg</replaceable>
  9491. match any files installed by the
  9492. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  9493. task) are not generated, unless generation is forced through
  9494. the
  9495. <link linkend='var-ALLOW_EMPTY'><filename>ALLOW_EMPTY</filename></link>
  9496. variable.
  9497. </para>
  9498. </glossdef>
  9499. </glossentry>
  9500. <glossentry id='var-PACKAGES_DYNAMIC'><glossterm>PACKAGES_DYNAMIC</glossterm>
  9501. <info>
  9502. PACKAGES_DYNAMIC[doc] = "A promise that your recipe satisfies runtime dependencies for optional modules that are found in other recipes."
  9503. </info>
  9504. <glossdef>
  9505. <para role="glossdeffirst">
  9506. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9507. A promise that your recipe satisfies runtime dependencies
  9508. for optional modules that are found in other recipes.
  9509. <filename>PACKAGES_DYNAMIC</filename>
  9510. does not actually satisfy the dependencies, it only states that
  9511. they should be satisfied.
  9512. For example, if a hard, runtime dependency
  9513. (<link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>)
  9514. of another package is satisfied
  9515. at build time through the <filename>PACKAGES_DYNAMIC</filename>
  9516. variable, but a package with the module name is never actually
  9517. produced, then the other package will be broken.
  9518. Thus, if you attempt to include that package in an image,
  9519. you will get a dependency failure from the packaging system
  9520. during the
  9521. <link linkend='ref-tasks-rootfs'><filename>do_rootfs</filename></link>
  9522. task.
  9523. </para>
  9524. <para>
  9525. Typically, if there is a chance that such a situation can
  9526. occur and the package that is not created is valid
  9527. without the dependency being satisfied, then you should use
  9528. <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link>
  9529. (a soft runtime dependency) instead of
  9530. <filename>RDEPENDS</filename>.
  9531. </para>
  9532. <para>
  9533. For an example of how to use the <filename>PACKAGES_DYNAMIC</filename>
  9534. variable when you are splitting packages, see the
  9535. "<ulink url='&YOCTO_DOCS_DEV_URL;#handling-optional-module-packaging'>Handling Optional Module Packaging</ulink>" section
  9536. in the Yocto Project Development Tasks Manual.
  9537. </para>
  9538. </glossdef>
  9539. </glossentry>
  9540. <glossentry id='var-PACKAGESPLITFUNCS'><glossterm>PACKAGESPLITFUNCS</glossterm>
  9541. <info>
  9542. PACKAGESPLITFUNCS[doc] = "Specifies a list of functions run to perform additional splitting of files into individual packages."
  9543. </info>
  9544. <glossdef>
  9545. <para role="glossdeffirst">
  9546. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9547. Specifies a list of functions run to perform additional
  9548. splitting of files into individual packages.
  9549. Recipes can either prepend to this variable or prepend
  9550. to the <filename>populate_packages</filename> function
  9551. in order to perform additional package splitting.
  9552. In either case, the function should set
  9553. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>,
  9554. <link linkend='var-FILES'><filename>FILES</filename></link>,
  9555. <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>
  9556. and other packaging variables appropriately in order to
  9557. perform the desired splitting.
  9558. </para>
  9559. </glossdef>
  9560. </glossentry>
  9561. <glossentry id='var-PARALLEL_MAKE'><glossterm>PARALLEL_MAKE</glossterm>
  9562. <info>
  9563. 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."
  9564. </info>
  9565. <glossdef>
  9566. <para role="glossdeffirst">
  9567. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9568. Extra options passed to the <filename>make</filename>
  9569. command during the
  9570. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>
  9571. task in order to specify parallel compilation on the local
  9572. build host.
  9573. This variable is usually in the form "-j <replaceable>x</replaceable>",
  9574. where <replaceable>x</replaceable> represents the maximum
  9575. number of parallel threads <filename>make</filename> can
  9576. run.
  9577. <note><title>Caution</title>
  9578. In order for <filename>PARALLEL_MAKE</filename> to be
  9579. effective, <filename>make</filename> must be called
  9580. with
  9581. <filename>${</filename><link linkend='var-EXTRA_OEMAKE'><filename>EXTRA_OEMAKE</filename></link><filename>}</filename>.
  9582. An easy way to ensure this is to use the
  9583. <filename>oe_runmake</filename> function.
  9584. </note>
  9585. </para>
  9586. <para>
  9587. By default, the OpenEmbedded build system automatically
  9588. sets this variable to be equal to the number of cores the
  9589. build system uses.
  9590. <note>
  9591. If the software being built experiences dependency
  9592. issues during the <filename>do_compile</filename>
  9593. task that result in race conditions, you can clear
  9594. the <filename>PARALLEL_MAKE</filename> variable within
  9595. the recipe as a workaround.
  9596. For information on addressing race conditions, see the
  9597. "<ulink url='&YOCTO_DOCS_DEV_URL;#debugging-parallel-make-races'>Debugging Parallel Make Races</ulink>"
  9598. section in the Yocto Project Development Tasks Manual.
  9599. </note>
  9600. For single socket systems (i.e. one CPU), you should not
  9601. have to override this variable to gain optimal parallelism
  9602. during builds.
  9603. However, if you have very large systems that employ
  9604. multiple physical CPUs, you might want to make sure the
  9605. <filename>PARALLEL_MAKE</filename> variable is not
  9606. set higher than "-j 20".
  9607. </para>
  9608. <para>
  9609. For more information on speeding up builds, see the
  9610. "<ulink url='&YOCTO_DOCS_DEV_URL;#speeding-up-a-build'>Speeding Up a Build</ulink>"
  9611. section in the Yocto Project Development Tasks Manual.
  9612. </para>
  9613. </glossdef>
  9614. </glossentry>
  9615. <glossentry id='var-PARALLEL_MAKEINST'><glossterm>PARALLEL_MAKEINST</glossterm>
  9616. <info>
  9617. PARALLEL_MAKEINST[doc] = "Extra options passed to the make install command during the do_install task in order to specify parallel installation."
  9618. </info>
  9619. <glossdef>
  9620. <para role="glossdeffirst">
  9621. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9622. Extra options passed to the
  9623. <filename>make install</filename> command during the
  9624. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  9625. task in order to specify parallel installation.
  9626. This variable defaults to the value of
  9627. <link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>.
  9628. <note><title>Notes and Cautions</title>
  9629. <para>In order for <filename>PARALLEL_MAKEINST</filename>
  9630. to be
  9631. effective, <filename>make</filename> must be called
  9632. with
  9633. <filename>${</filename><link linkend='var-EXTRA_OEMAKE'><filename>EXTRA_OEMAKE</filename></link><filename>}</filename>.
  9634. An easy way to ensure this is to use the
  9635. <filename>oe_runmake</filename> function.</para>
  9636. <para>If the software being built experiences
  9637. dependency issues during the
  9638. <filename>do_install</filename> task that result in
  9639. race conditions, you can clear the
  9640. <filename>PARALLEL_MAKEINST</filename> variable within
  9641. the recipe as a workaround.
  9642. For information on addressing race conditions, see the
  9643. "<ulink url='&YOCTO_DOCS_DEV_URL;#debugging-parallel-make-races'>Debugging Parallel Make Races</ulink>"
  9644. section in the Yocto Project Development Tasks Manual.
  9645. </para>
  9646. </note>
  9647. </para>
  9648. </glossdef>
  9649. </glossentry>
  9650. <glossentry id='var-PATCHRESOLVE'><glossterm>PATCHRESOLVE</glossterm>
  9651. <info>
  9652. PATCHRESOLVE[doc] = "Enable or disable interactive patch resolution."
  9653. </info>
  9654. <glossdef>
  9655. <para role="glossdeffirst">
  9656. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9657. Determines the action to take when a patch fails.
  9658. You can set this variable to one of two values: "noop" and
  9659. "user".
  9660. </para>
  9661. <para>
  9662. The default value of "noop" causes the build to simply fail
  9663. when the OpenEmbedded build system cannot successfully
  9664. apply a patch.
  9665. Setting the value to "user" causes the build system to
  9666. launch a shell and places you in the right location so that
  9667. you can manually resolve the conflicts.
  9668. </para>
  9669. <para>
  9670. Set this variable in your
  9671. <filename>local.conf</filename> file.
  9672. </para>
  9673. </glossdef>
  9674. </glossentry>
  9675. <glossentry id='var-PATCHTOOL'><glossterm>PATCHTOOL</glossterm>
  9676. <info>
  9677. PATCHTOOL[doc] = "Specifies the utility used to apply patches for a recipe during do_patch."
  9678. </info>
  9679. <glossdef>
  9680. <para role="glossdeffirst">
  9681. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9682. Specifies the utility used to apply patches for a recipe
  9683. during the
  9684. <link linkend='ref-tasks-patch'><filename>do_patch</filename></link>
  9685. task.
  9686. You can specify one of three utilities: "patch", "quilt", or
  9687. "git".
  9688. The default utility used is "quilt" except for the
  9689. quilt-native recipe itself.
  9690. Because the quilt tool is not available at the
  9691. time quilt-native is being patched, it uses "patch".
  9692. </para>
  9693. <para>
  9694. If you wish to use an alternative patching tool, set the
  9695. variable in the recipe using one of the following:
  9696. <literallayout class='monospaced'>
  9697. PATCHTOOL = "patch"
  9698. PATCHTOOL = "quilt"
  9699. PATCHTOOL = "git"
  9700. </literallayout>
  9701. </para>
  9702. </glossdef>
  9703. </glossentry>
  9704. <glossentry id='var-PE'><glossterm>PE</glossterm>
  9705. <info>
  9706. 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."
  9707. </info>
  9708. <glossdef>
  9709. <para role="glossdeffirst">
  9710. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9711. The epoch of the recipe.
  9712. By default, this variable is unset.
  9713. The variable is used to make upgrades possible when the
  9714. versioning scheme changes in some backwards incompatible
  9715. way.
  9716. </para>
  9717. <para>
  9718. <filename>PE</filename> is the default value of the
  9719. <link linkend='var-PKGE'><filename>PKGE</filename></link>
  9720. variable.
  9721. </para>
  9722. </glossdef>
  9723. </glossentry>
  9724. <glossentry id='var-PF'><glossterm>PF</glossterm>
  9725. <info>
  9726. PF[doc] = "Specifies the recipe or package name and includes all version and revision numbers. This variable is comprised of ${PN}-${EXTENDPE}${PV}-${PR}."
  9727. </info>
  9728. <glossdef>
  9729. <para role="glossdeffirst">
  9730. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9731. Specifies the recipe or package name and includes all version and revision
  9732. numbers (i.e. <filename>glibc-2.13-r20+svnr15508/</filename> and
  9733. <filename>bash-4.2-r1/</filename>).
  9734. This variable is comprised of the following:
  9735. <literallayout class='monospaced'>
  9736. ${<link linkend='var-PN'>PN</link>}-${<link linkend='var-EXTENDPE'>EXTENDPE</link>}${<link linkend='var-PV'>PV</link>}-${<link linkend='var-PR'>PR</link>}
  9737. </literallayout>
  9738. </para>
  9739. </glossdef>
  9740. </glossentry>
  9741. <glossentry id='var-PIXBUF_PACKAGES'><glossterm>PIXBUF_PACKAGES</glossterm>
  9742. <info>
  9743. PIXBUF_PACKAGES[doc] = "When a recipe inherits the pixbufcache class, this variable identifies packages that contain the pixbuf loaders used with gdk-pixbuf."
  9744. </info>
  9745. <glossdef>
  9746. <para role="glossdeffirst">
  9747. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9748. When inheriting the
  9749. <link linkend='ref-classes-pixbufcache'><filename>pixbufcache</filename></link>
  9750. class, this variable identifies packages that contain
  9751. the pixbuf loaders used with
  9752. <filename>gdk-pixbuf</filename>.
  9753. By default, the <filename>pixbufcache</filename> class
  9754. assumes that the loaders are in the recipe's main package
  9755. (i.e. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
  9756. Use this variable if the loaders you need are in a package
  9757. other than that main package.
  9758. </para>
  9759. </glossdef>
  9760. </glossentry>
  9761. <glossentry id='var-PKG'><glossterm>PKG</glossterm>
  9762. <info>
  9763. 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."
  9764. </info>
  9765. <glossdef>
  9766. <para role="glossdeffirst">
  9767. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9768. The name of the resulting package created by the
  9769. OpenEmbedded build system.
  9770. <note>
  9771. When using the <filename>PKG</filename> variable, you
  9772. must use a package name override.
  9773. </note>
  9774. </para>
  9775. <para>
  9776. For example, when the
  9777. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  9778. class renames the output package, it does so by setting
  9779. <filename>PKG_<replaceable>packagename</replaceable></filename>.
  9780. </para>
  9781. </glossdef>
  9782. </glossentry>
  9783. <glossentry id='var-PKG_CONFIG_PATH'><glossterm>PKG_CONFIG_PATH</glossterm>
  9784. <info>
  9785. PKG_CONFIG_PATH[doc] = "Path to pkg-config files for the current build context."
  9786. </info>
  9787. <glossdef>
  9788. <para role="glossdeffirst">
  9789. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9790. The path to <filename>pkg-config</filename> files for the
  9791. current build context.
  9792. <filename>pkg-config</filename> reads this variable
  9793. from the environment.
  9794. </para>
  9795. </glossdef>
  9796. </glossentry>
  9797. <glossentry id='var-PKGD'><glossterm>PKGD</glossterm>
  9798. <info>
  9799. PKGD[doc] = "Points to the destination directory for files to be packaged before they are split into individual packages."
  9800. </info>
  9801. <glossdef>
  9802. <para role="glossdeffirst">
  9803. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9804. Points to the destination directory for files to be
  9805. packaged before they are split into individual packages.
  9806. This directory defaults to the following:
  9807. <literallayout class='monospaced'>
  9808. ${WORKDIR}/package
  9809. </literallayout>
  9810. </para>
  9811. <para>
  9812. Do not change this default.
  9813. </para>
  9814. </glossdef>
  9815. </glossentry>
  9816. <glossentry id='var-PKGDATA_DIR'><glossterm>PKGDATA_DIR</glossterm>
  9817. <info>
  9818. PKGDATA_DIR[doc] = "Points to a shared, global-state directory that holds data generated during the packaging process."
  9819. </info>
  9820. <glossdef>
  9821. <para role="glossdeffirst">
  9822. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9823. Points to a shared, global-state directory that holds data
  9824. generated during the packaging process.
  9825. During the packaging process, the
  9826. <link linkend='ref-tasks-packagedata'><filename>do_packagedata</filename></link>
  9827. task packages data for each recipe and installs it into
  9828. this temporary, shared area.
  9829. This directory defaults to the following, which you should
  9830. not change:
  9831. <literallayout class='monospaced'>
  9832. ${STAGING_DIR_HOST}/pkgdata
  9833. </literallayout>
  9834. For examples of how this data is used, see the
  9835. "<ulink url='&YOCTO_DOCS_OM_URL;#automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</ulink>"
  9836. section in the Yocto Project Overview and Concepts Manual
  9837. and the
  9838. "<ulink url='&YOCTO_DOCS_DEV_URL;#viewing-package-information-with-oe-pkgdata-util'>Viewing Package Information with <filename>oe-pkgdata-util</filename></ulink>"
  9839. section in the Yocto Project Development Tasks Manual.
  9840. For more information on the shared, global-state directory,
  9841. see
  9842. <link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>.
  9843. </para>
  9844. </glossdef>
  9845. </glossentry>
  9846. <glossentry id='var-PKGDEST'><glossterm>PKGDEST</glossterm>
  9847. <info>
  9848. PKGDEST[doc] = "Points to the parent directory for files to be packaged after they have been split into individual packages."
  9849. </info>
  9850. <glossdef>
  9851. <para role="glossdeffirst">
  9852. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9853. Points to the parent directory for files to be packaged
  9854. after they have been split into individual packages.
  9855. This directory defaults to the following:
  9856. <literallayout class='monospaced'>
  9857. ${WORKDIR}/packages-split
  9858. </literallayout>
  9859. </para>
  9860. <para>
  9861. Under this directory, the build system creates
  9862. directories for each package specified in
  9863. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>.
  9864. Do not change this default.
  9865. </para>
  9866. </glossdef>
  9867. </glossentry>
  9868. <glossentry id='var-PKGDESTWORK'><glossterm>PKGDESTWORK</glossterm>
  9869. <info>
  9870. PKGDESTWORK[doc] = "Points to a temporary work area where the do_package task saves package metadata."
  9871. </info>
  9872. <glossdef>
  9873. <para role="glossdeffirst">
  9874. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9875. Points to a temporary work area where the
  9876. <link linkend='ref-tasks-package'><filename>do_package</filename></link>
  9877. task saves package metadata.
  9878. The <filename>PKGDESTWORK</filename> location defaults to
  9879. the following:
  9880. <literallayout class='monospaced'>
  9881. ${WORKDIR}/pkgdata
  9882. </literallayout>
  9883. Do not change this default.
  9884. </para>
  9885. <para>
  9886. The
  9887. <link linkend='ref-tasks-packagedata'><filename>do_packagedata</filename></link>
  9888. task copies the package metadata from
  9889. <filename>PKGDESTWORK</filename> to
  9890. <link linkend='var-PKGDATA_DIR'><filename>PKGDATA_DIR</filename></link>
  9891. to make it available globally.
  9892. </para>
  9893. </glossdef>
  9894. </glossentry>
  9895. <glossentry id='var-PKGE'><glossterm>PKGE</glossterm>
  9896. <info>
  9897. PKGE[doc] = "The epoch of the package(s) built by the recipe."
  9898. </info>
  9899. <glossdef>
  9900. <para role="glossdeffirst">
  9901. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9902. The epoch of the package(s) built by the recipe.
  9903. By default, <filename>PKGE</filename> is set to
  9904. <link linkend='var-PE'><filename>PE</filename></link>.
  9905. </para>
  9906. </glossdef>
  9907. </glossentry>
  9908. <glossentry id='var-PKGR'><glossterm>PKGR</glossterm>
  9909. <info>
  9910. PKGR[doc] = "The revision of the package(s) built by the recipe."
  9911. </info>
  9912. <glossdef>
  9913. <para role="glossdeffirst">
  9914. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9915. The revision of the package(s) built by the recipe.
  9916. By default, <filename>PKGR</filename> is set to
  9917. <link linkend='var-PR'><filename>PR</filename></link>.
  9918. </para>
  9919. </glossdef>
  9920. </glossentry>
  9921. <glossentry id='var-PKGV'><glossterm>PKGV</glossterm>
  9922. <info>
  9923. PKGV[doc] = "The version of the package(s) built by the recipe."
  9924. </info>
  9925. <glossdef>
  9926. <para role="glossdeffirst">
  9927. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9928. The version of the package(s) built by the
  9929. recipe.
  9930. By default, <filename>PKGV</filename> is set to
  9931. <link linkend='var-PV'><filename>PV</filename></link>.
  9932. </para>
  9933. </glossdef>
  9934. </glossentry>
  9935. <glossentry id='var-PN'><glossterm>PN</glossterm>
  9936. <info>
  9937. 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.
  9938. </info>
  9939. <glossdef>
  9940. <para role="glossdeffirst">
  9941. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9942. This variable can have two separate functions depending on the context: a recipe
  9943. name or a resulting package name.
  9944. </para>
  9945. <para>
  9946. <filename>PN</filename> refers to a recipe name in the context of a file used
  9947. by the OpenEmbedded build system as input to create a package.
  9948. The name is normally extracted from the recipe file name.
  9949. For example, if the recipe is named
  9950. <filename>expat_2.0.1.bb</filename>, then the default value of <filename>PN</filename>
  9951. will be "expat".
  9952. </para>
  9953. <para>
  9954. The variable refers to a package name in the context of a file created or produced by the
  9955. OpenEmbedded build system.
  9956. </para>
  9957. <para>
  9958. If applicable, the <filename>PN</filename> variable also contains any special
  9959. suffix or prefix.
  9960. For example, using <filename>bash</filename> to build packages for the native
  9961. machine, <filename>PN</filename> is <filename>bash-native</filename>.
  9962. Using <filename>bash</filename> to build packages for the target and for Multilib,
  9963. <filename>PN</filename> would be <filename>bash</filename> and
  9964. <filename>lib64-bash</filename>, respectively.
  9965. </para>
  9966. </glossdef>
  9967. </glossentry>
  9968. <glossentry id='var-PNBLACKLIST'><glossterm>PNBLACKLIST</glossterm>
  9969. <info>
  9970. PNBLACKLIST[doc] = "Lists recipes you do not want the OpenEmbedded build system to build."
  9971. </info>
  9972. <glossdef>
  9973. <para role="glossdeffirst">
  9974. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  9975. Lists recipes you do not want the OpenEmbedded build system
  9976. to build.
  9977. This variable works in conjunction with the
  9978. <link linkend='ref-classes-blacklist'><filename>blacklist</filename></link>
  9979. class, which is inherited globally.
  9980. </para>
  9981. <para>
  9982. To prevent a recipe from being built, use the
  9983. <filename>PNBLACKLIST</filename> variable in your
  9984. <filename>local.conf</filename> file.
  9985. Here is an example that prevents
  9986. <filename>myrecipe</filename> from being built:
  9987. <literallayout class='monospaced'>
  9988. PNBLACKLIST[myrecipe] = "Not supported by our organization."
  9989. </literallayout>
  9990. </para>
  9991. </glossdef>
  9992. </glossentry>
  9993. <glossentry id='var-POPULATE_SDK_POST_HOST_COMMAND'><glossterm>POPULATE_SDK_POST_HOST_COMMAND</glossterm>
  9994. <info>
  9995. 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."
  9996. </info>
  9997. <glossdef>
  9998. <para role="glossdeffirst">
  9999. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10000. Specifies a list of functions to call once the
  10001. OpenEmbedded build system has created the host part of
  10002. the SDK.
  10003. You can specify functions separated by semicolons:
  10004. <literallayout class='monospaced'>
  10005. POPULATE_SDK_POST_HOST_COMMAND += "<replaceable>function</replaceable>; ... "
  10006. </literallayout>
  10007. </para>
  10008. <para>
  10009. If you need to pass the SDK path to a command
  10010. within a function, you can use
  10011. <filename>${SDK_DIR}</filename>, which points to
  10012. the parent directory used by the OpenEmbedded build
  10013. system when creating SDK output.
  10014. See the
  10015. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  10016. variable for more information.
  10017. </para>
  10018. </glossdef>
  10019. </glossentry>
  10020. <glossentry id='var-POPULATE_SDK_POST_TARGET_COMMAND'><glossterm>POPULATE_SDK_POST_TARGET_COMMAND</glossterm>
  10021. <info>
  10022. 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."
  10023. </info>
  10024. <glossdef>
  10025. <para role="glossdeffirst">
  10026. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10027. Specifies a list of functions to call once the
  10028. OpenEmbedded build system has created the target part of
  10029. the SDK.
  10030. You can specify functions separated by semicolons:
  10031. <literallayout class='monospaced'>
  10032. POPULATE_SDK_POST_TARGET_COMMAND += "<replaceable>function</replaceable>; ... "
  10033. </literallayout>
  10034. </para>
  10035. <para>
  10036. If you need to pass the SDK path to a command
  10037. within a function, you can use
  10038. <filename>${SDK_DIR}</filename>, which points to
  10039. the parent directory used by the OpenEmbedded build
  10040. system when creating SDK output.
  10041. See the
  10042. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  10043. variable for more information.
  10044. </para>
  10045. </glossdef>
  10046. </glossentry>
  10047. <glossentry id='var-PR'><glossterm>PR</glossterm>
  10048. <info>
  10049. PR[doc] = "The revision of the recipe. The default value for this variable is 'r0'."
  10050. </info>
  10051. <glossdef>
  10052. <para role="glossdeffirst">
  10053. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10054. The revision of the recipe. The default value for this
  10055. variable is "r0".
  10056. Subsequent revisions of the recipe conventionally have the
  10057. values "r1", "r2", and so forth.
  10058. When
  10059. <link linkend='var-PV'><filename>PV</filename></link>
  10060. increases, <filename>PR</filename> is conventionally reset
  10061. to "r0".
  10062. <note>
  10063. The OpenEmbedded build system does not need the aid of
  10064. <filename>PR</filename> to know when to rebuild a
  10065. recipe.
  10066. The build system uses the task
  10067. <ulink url='&YOCTO_DOCS_OM_URL;#overview-checksums'>input checksums</ulink>
  10068. along with the
  10069. <link linkend='structure-build-tmp-stamps'>stamp</link>
  10070. and
  10071. <ulink url='&YOCTO_DOCS_OM_URL;#shared-state-cache'>shared state cache</ulink>
  10072. mechanisms.
  10073. </note>
  10074. The <filename>PR</filename> variable primarily becomes
  10075. significant when a package manager dynamically installs
  10076. packages on an already built image.
  10077. In this case, <filename>PR</filename>, which is the default
  10078. value of
  10079. <link linkend='var-PKGR'><filename>PKGR</filename></link>,
  10080. helps the package manager distinguish which package is the
  10081. most recent one in cases where many packages have the same
  10082. <filename>PV</filename> (i.e. <filename>PKGV</filename>).
  10083. A component having many packages with the same
  10084. <filename>PV</filename> usually means that the packages all
  10085. install the same upstream version, but with later
  10086. (<filename>PR</filename>) version packages including
  10087. packaging fixes.
  10088. <note>
  10089. <filename>PR</filename> does not need to be increased
  10090. for changes that do not change the package contents or
  10091. metadata.
  10092. </note>
  10093. Because manually managing <filename>PR</filename> can be
  10094. cumbersome and error-prone, an automated solution exists.
  10095. See the
  10096. "<ulink url='&YOCTO_DOCS_DEV_URL;#working-with-a-pr-service'>Working With a PR Service</ulink>"
  10097. section in the Yocto Project Development Tasks Manual
  10098. for more information.
  10099. </para>
  10100. </glossdef>
  10101. </glossentry>
  10102. <glossentry id='var-PREFERRED_PROVIDER'><glossterm>PREFERRED_PROVIDER</glossterm>
  10103. <info>
  10104. PREFERRED_PROVIDER[doc] = "If multiple recipes provide an item, this variable determines which recipe should be given preference."
  10105. </info>
  10106. <glossdef>
  10107. <para role="glossdeffirst">
  10108. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10109. If multiple recipes provide the same item, this variable
  10110. determines which recipe is preferred and thus provides
  10111. the item (i.e. the preferred provider).
  10112. You should always suffix this variable with the name of the
  10113. provided item.
  10114. And, you should define the variable using the preferred
  10115. recipe's name
  10116. (<link linkend='var-PN'><filename>PN</filename></link>).
  10117. Here is a common example:
  10118. <literallayout class='monospaced'>
  10119. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  10120. </literallayout>
  10121. In the previous example, multiple recipes are providing
  10122. "virtual/kernel".
  10123. The <filename>PREFERRED_PROVIDER</filename> variable is
  10124. set with the name (<filename>PN</filename>) of the recipe
  10125. you prefer to provide "virtual/kernel".
  10126. </para>
  10127. <para>
  10128. Following are more examples:
  10129. <literallayout class='monospaced'>
  10130. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  10131. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  10132. </literallayout>
  10133. For more information, see the
  10134. "<ulink url='&YOCTO_DOCS_DEV_URL;#metadata-virtual-providers'>Using Virtual Providers</ulink>"
  10135. section in the Yocto Project Development Tasks Manual.
  10136. <note>
  10137. If you use a <filename>virtual/*</filename> item
  10138. with <filename>PREFERRED_PROVIDER</filename>, then any
  10139. recipe that
  10140. <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
  10141. that item but is not selected (defined) by
  10142. <filename>PREFERRED_PROVIDER</filename> is prevented
  10143. from building, which is usually desirable since this
  10144. mechanism is designed to select between mutually
  10145. exclusive alternative providers.
  10146. </note>
  10147. </para>
  10148. </glossdef>
  10149. </glossentry>
  10150. <glossentry id='var-PREFERRED_VERSION'><glossterm>PREFERRED_VERSION</glossterm>
  10151. <info>
  10152. PREFERRED_VERSION[doc] = "If there are multiple versions of recipes available, this variable determines which recipe should be given preference."
  10153. </info>
  10154. <glossdef>
  10155. <para role="glossdeffirst">
  10156. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10157. If there are multiple versions of recipes available, this
  10158. variable determines which recipe should be given preference.
  10159. You must always suffix the variable with the
  10160. <link linkend='var-PN'><filename>PN</filename></link>
  10161. you want to select, and you should set the
  10162. <link linkend='var-PV'><filename>PV</filename></link>
  10163. accordingly for precedence.
  10164. You can use the "<filename>%</filename>" character as a
  10165. wildcard to match any number of characters, which can be
  10166. useful when specifying versions that contain long revision
  10167. numbers that could potentially change.
  10168. Here are two examples:
  10169. <literallayout class='monospaced'>
  10170. PREFERRED_VERSION_python = "3.4.0"
  10171. PREFERRED_VERSION_linux-yocto = "4.12%"
  10172. </literallayout>
  10173. <note>
  10174. The specified version is matched against
  10175. <link linkend='var-PV'><filename>PV</filename></link>,
  10176. which does not necessarily match the version part of
  10177. the recipe's filename.
  10178. For example, consider two recipes
  10179. <filename>foo_1.2.bb</filename> and
  10180. <filename>foo_git.bb</filename> where
  10181. <filename>foo_git.bb</filename> contains the following
  10182. assignment:
  10183. <literallayout class='monospaced'>
  10184. PV = "1.1+git${SRCPV}"
  10185. </literallayout>
  10186. In this case, the correct way to select
  10187. <filename>foo_git.bb</filename> is by using an
  10188. assignment such as the following:
  10189. <literallayout class='monospaced'>
  10190. PREFERRED_VERSION_foo = "1.1+git%"
  10191. </literallayout>
  10192. Compare that previous example against the following
  10193. incorrect example, which does not work:
  10194. <literallayout class='monospaced'>
  10195. PREFERRED_VERSION_foo = "git"
  10196. </literallayout>
  10197. </note>
  10198. Sometimes the <filename>PREFERRED_VERSION</filename>
  10199. variable can be set by configuration files in a way that
  10200. is hard to change.
  10201. You can use
  10202. <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>
  10203. to set a machine-specific override.
  10204. Here is an example:
  10205. <literallayout class='monospaced'>
  10206. PREFERRED_VERSION_linux-yocto_qemux86 = "4.12%"
  10207. </literallayout>
  10208. Although not recommended, worst case, you can also use the
  10209. "forcevariable" override, which is the strongest override
  10210. possible.
  10211. Here is an example:
  10212. <literallayout class='monospaced'>
  10213. PREFERRED_VERSION_linux-yocto_forcevariable = "4.12%"
  10214. </literallayout>
  10215. <note>
  10216. The <filename>_forcevariable</filename> override is
  10217. not handled specially.
  10218. This override only works because the default value of
  10219. <filename>OVERRIDES</filename> includes
  10220. "forcevariable".
  10221. </note>
  10222. </para>
  10223. </glossdef>
  10224. </glossentry>
  10225. <glossentry id='var-PREMIRRORS'><glossterm>PREMIRRORS</glossterm>
  10226. <info>
  10227. PREMIRRORS[doc] = "Specifies additional paths from which the OpenEmbedded build system gets source code."
  10228. </info>
  10229. <glossdef>
  10230. <para role="glossdeffirst">
  10231. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10232. Specifies additional paths from which the OpenEmbedded
  10233. build system gets source code.
  10234. When the build system searches for source code, it first
  10235. tries the local download directory.
  10236. If that location fails, the build system tries locations
  10237. defined by <filename>PREMIRRORS</filename>, the upstream
  10238. source, and then locations specified by
  10239. <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link>
  10240. in that order.
  10241. </para>
  10242. <para>
  10243. Assuming your distribution
  10244. (<link linkend='var-DISTRO'><filename>DISTRO</filename></link>)
  10245. is "poky", the default value for
  10246. <filename>PREMIRRORS</filename> is defined in the
  10247. <filename>conf/distro/poky.conf</filename> file in the
  10248. <filename>meta-poky</filename> Git repository.
  10249. </para>
  10250. <para>
  10251. Typically, you could add a specific server for the
  10252. build system to attempt before any others by adding
  10253. something like the following to the
  10254. <filename>local.conf</filename> configuration file in the
  10255. <link linkend='build-directory'>Build Directory</link>:
  10256. <literallayout class='monospaced'>
  10257. PREMIRRORS_prepend = "\
  10258. git://.*/.* http://www.yoctoproject.org/sources/ \n \
  10259. ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
  10260. http://.*/.* http://www.yoctoproject.org/sources/ \n \
  10261. https://.*/.* http://www.yoctoproject.org/sources/ \n"
  10262. </literallayout>
  10263. These changes cause the build system to intercept
  10264. Git, FTP, HTTP, and HTTPS requests and direct them to
  10265. the <filename>http://</filename> sources mirror.
  10266. You can use <filename>file://</filename> URLs to point
  10267. to local directories or network shares as well.
  10268. </para>
  10269. </glossdef>
  10270. </glossentry>
  10271. <glossentry id='var-PRIORITY'><glossterm>PRIORITY</glossterm>
  10272. <info>
  10273. PRIORITY[doc] = "Indicates the importance of a package. The default value is 'optional'. Other standard values are 'required', 'standard', and 'extra'."
  10274. </info>
  10275. <glossdef>
  10276. <para role="glossdeffirst">
  10277. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10278. Indicates the importance of a package.
  10279. </para>
  10280. <para>
  10281. <filename>PRIORITY</filename> is considered to be part of
  10282. the distribution policy because the importance of any given
  10283. recipe depends on the purpose for which the distribution
  10284. is being produced.
  10285. Thus, <filename>PRIORITY</filename> is not normally set
  10286. within recipes.
  10287. </para>
  10288. <para>
  10289. You can set <filename>PRIORITY</filename> to "required",
  10290. "standard", "extra", and "optional", which is the default.
  10291. </para>
  10292. </glossdef>
  10293. </glossentry>
  10294. <glossentry id='var-PRIVATE_LIBS'><glossterm>PRIVATE_LIBS</glossterm>
  10295. <info>
  10296. PRIVATE_LIBS[doc] = "Specifies libraries installed within a recipe that should be ignored by the OpenEmbedded build system's shared library resolver."
  10297. </info>
  10298. <glossdef>
  10299. <para role="glossdeffirst">
  10300. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10301. Specifies libraries installed within a recipe that
  10302. should be ignored by the OpenEmbedded build system's
  10303. shared library resolver.
  10304. This variable is typically used when software being
  10305. built by a recipe has its own private versions of a
  10306. library normally provided by another recipe.
  10307. In this case, you would not want the package containing
  10308. the private libraries to be set as a dependency on other
  10309. unrelated packages that should instead depend on the
  10310. package providing the standard version of the library.
  10311. </para>
  10312. <para>
  10313. Libraries specified in this variable should be specified
  10314. by their file name.
  10315. For example, from the Firefox recipe in meta-browser:
  10316. <literallayout class='monospaced'>
  10317. PRIVATE_LIBS = "libmozjs.so \
  10318. libxpcom.so \
  10319. libnspr4.so \
  10320. libxul.so \
  10321. libmozalloc.so \
  10322. libplc4.so \
  10323. libplds4.so"
  10324. </literallayout>
  10325. </para>
  10326. <para>
  10327. For more information, see the
  10328. "<ulink url='&YOCTO_DOCS_OM_URL;#automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</ulink>"
  10329. section in the Yocto Project Overview and Concepts Manual.
  10330. </para>
  10331. </glossdef>
  10332. </glossentry>
  10333. <glossentry id='var-PROVIDES'><glossterm>PROVIDES</glossterm>
  10334. <info>
  10335. 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."
  10336. </info>
  10337. <glossdef>
  10338. <para role="glossdeffirst">
  10339. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10340. A list of aliases by which a particular recipe can be
  10341. known.
  10342. By default, a recipe's own
  10343. <filename><link linkend='var-PN'>PN</link></filename>
  10344. is implicitly already in its <filename>PROVIDES</filename>
  10345. list.
  10346. If a recipe uses <filename>PROVIDES</filename>, the
  10347. additional aliases are synonyms for the recipe and can
  10348. be useful satisfying dependencies of other recipes during
  10349. the build as specified by
  10350. <filename><link linkend='var-DEPENDS'>DEPENDS</link></filename>.
  10351. </para>
  10352. <para>
  10353. Consider the following example
  10354. <filename>PROVIDES</filename> statement from a recipe
  10355. file <filename>libav_0.8.11.bb</filename>:
  10356. <literallayout class='monospaced'>
  10357. PROVIDES += "libpostproc"
  10358. </literallayout>
  10359. The <filename>PROVIDES</filename> statement results in
  10360. the "libav" recipe also being known as "libpostproc".
  10361. </para>
  10362. <para>
  10363. In addition to providing recipes under alternate names,
  10364. the <filename>PROVIDES</filename> mechanism is also used
  10365. to implement virtual targets.
  10366. A virtual target is a name that corresponds to some
  10367. particular functionality (e.g. a Linux kernel).
  10368. Recipes that provide the functionality in question list the
  10369. virtual target in <filename>PROVIDES</filename>.
  10370. Recipes that depend on the functionality in question can
  10371. include the virtual target in <filename>DEPENDS</filename>
  10372. to leave the choice of provider open.
  10373. </para>
  10374. <para>
  10375. Conventionally, virtual targets have names on the form
  10376. "virtual/function" (e.g. "virtual/kernel").
  10377. The slash is simply part of the name and has no
  10378. syntactical significance.
  10379. </para>
  10380. <para>
  10381. The
  10382. <link linkend='var-PREFERRED_PROVIDER'><filename>PREFERRED_PROVIDER</filename></link>
  10383. variable is used to select which particular recipe
  10384. provides a virtual target.
  10385. <note>
  10386. <para>A corresponding mechanism for virtual runtime
  10387. dependencies (packages) exists.
  10388. However, the mechanism does not depend on any special
  10389. functionality beyond ordinary variable assignments.
  10390. For example,
  10391. <filename>VIRTUAL-RUNTIME_dev_manager</filename>
  10392. refers to the package of the component that manages
  10393. the <filename>/dev</filename> directory.</para>
  10394. <para>Setting the "preferred provider" for runtime
  10395. dependencies is as simple as using the following
  10396. assignment in a configuration file:</para>
  10397. <literallayout class='monospaced'>
  10398. VIRTUAL-RUNTIME_dev_manager = "udev"
  10399. </literallayout>
  10400. </note>
  10401. </para>
  10402. </glossdef>
  10403. </glossentry>
  10404. <glossentry id='var-PRSERV_HOST'><glossterm>PRSERV_HOST</glossterm>
  10405. <info>
  10406. PRSERV_HOST[doc] = "The network based PR service host and port."
  10407. </info>
  10408. <glossdef>
  10409. <para role="glossdeffirst">
  10410. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10411. The network based
  10412. <link linkend='var-PR'><filename>PR</filename></link>
  10413. service host and port.
  10414. </para>
  10415. <para>
  10416. The <filename>conf/local.conf.sample.extended</filename>
  10417. configuration file in the
  10418. <link linkend='source-directory'>Source Directory</link>
  10419. shows how the <filename>PRSERV_HOST</filename> variable is
  10420. set:
  10421. <literallayout class='monospaced'>
  10422. PRSERV_HOST = "localhost:0"
  10423. </literallayout>
  10424. You must set the variable if you want to automatically
  10425. start a local
  10426. <ulink url='&YOCTO_DOCS_DEV_URL;#working-with-a-pr-service'>PR service</ulink>.
  10427. You can set <filename>PRSERV_HOST</filename> to other
  10428. values to use a remote PR service.
  10429. </para>
  10430. </glossdef>
  10431. </glossentry>
  10432. <glossentry id='var-PTEST_ENABLED'><glossterm>PTEST_ENABLED</glossterm>
  10433. <info>
  10434. PRSERV_HOST[doc] = "Specifies whether or not Package Test (ptest) functionality is enabled when building a recipe."
  10435. </info>
  10436. <glossdef>
  10437. <para role="glossdeffirst">
  10438. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10439. Specifies whether or not
  10440. <ulink url='&YOCTO_DOCS_DEV_URL;#testing-packages-with-ptest'>Package Test</ulink>
  10441. (ptest) functionality is enabled when building a recipe.
  10442. You should not set this variable directly.
  10443. Enabling and disabling building Package Tests
  10444. at build time should be done by adding "ptest" to (or
  10445. removing it from)
  10446. <link linkend='var-DISTRO_FEATURES'><filename>DISTRO_FEATURES</filename></link>.
  10447. </para>
  10448. </glossdef>
  10449. </glossentry>
  10450. <glossentry id='var-PV'><glossterm>PV</glossterm>
  10451. <info>
  10452. PV[doc] = "The version of the recipe. The version is normally extracted from the recipe filename."
  10453. </info>
  10454. <glossdef>
  10455. <para role="glossdeffirst">
  10456. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10457. The version of the recipe.
  10458. The version is normally extracted from the recipe filename.
  10459. For example, if the recipe is named
  10460. <filename>expat_2.0.1.bb</filename>, then the default value
  10461. of <filename>PV</filename> will be "2.0.1".
  10462. <filename>PV</filename> is generally not overridden within
  10463. a recipe unless it is building an unstable (i.e.
  10464. development) version from a source code repository
  10465. (e.g. Git or Subversion).
  10466. </para>
  10467. <para>
  10468. <filename>PV</filename> is the default value of the
  10469. <link linkend='var-PKGV'><filename>PKGV</filename></link>
  10470. variable.
  10471. </para>
  10472. </glossdef>
  10473. </glossentry>
  10474. <glossentry id='var-PYTHON_ABI'><glossterm>PYTHON_ABI</glossterm>
  10475. <info>
  10476. 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."
  10477. </info>
  10478. <glossdef>
  10479. <para role="glossdeffirst">
  10480. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10481. When used by recipes that inherit the
  10482. <link linkend='ref-classes-distutils3'><filename>distutils3</filename></link>,
  10483. <link linkend='ref-classes-setuptools3'><filename>setuptools3</filename></link>,
  10484. <link linkend='ref-classes-distutils'><filename>distutils</filename></link>,
  10485. or
  10486. <link linkend='ref-classes-setuptools'><filename>setuptools</filename></link>
  10487. classes, denotes the Application Binary Interface (ABI)
  10488. currently in use for Python.
  10489. By default, the ABI is "m".
  10490. You do not have to set this variable as the OpenEmbedded
  10491. build system sets it for you.
  10492. </para>
  10493. <para>
  10494. The OpenEmbedded build system uses the ABI to construct
  10495. directory names used when installing the Python headers
  10496. and libraries in sysroot
  10497. (e.g. <filename>.../python3.3m/...</filename>).
  10498. </para>
  10499. <para>
  10500. Recipes that inherit the <filename>distutils</filename>
  10501. class during cross-builds also use this variable to
  10502. locate the headers and libraries of the appropriate Python
  10503. that the extension is targeting.
  10504. </para>
  10505. </glossdef>
  10506. </glossentry>
  10507. <glossentry id='var-PYTHON_PN'><glossterm>PYTHON_PN</glossterm>
  10508. <info>
  10509. PYTHON_PN[doc] = "When used by recipes that inherit the distutils3, setuptools3, distutils, or setuptools classes, specifies the major Python version being built."
  10510. </info>
  10511. <glossdef>
  10512. <para role="glossdeffirst">
  10513. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10514. When used by recipes that inherit the
  10515. <link linkend='ref-classes-distutils3'><filename>distutils3</filename></link>,
  10516. <link linkend='ref-classes-setuptools3'><filename>setuptools3</filename></link>,
  10517. <link linkend='ref-classes-distutils'><filename>distutils</filename></link>,
  10518. or
  10519. <link linkend='ref-classes-setuptools'><filename>setuptools</filename></link>
  10520. classes, specifies the major Python version being built.
  10521. For Python 2.x, <filename>PYTHON_PN</filename> would
  10522. be "python2". For Python 3.x, the variable would be
  10523. "python3".
  10524. You do not have to set this variable as the
  10525. OpenEmbedded build system automatically sets it for you.
  10526. </para>
  10527. <para>
  10528. The variable allows recipes to use common infrastructure
  10529. such as the following:
  10530. <literallayout class='monospaced'>
  10531. DEPENDS += "${PYTHON_PN}-native"
  10532. </literallayout>
  10533. In the previous example, the version of the dependency
  10534. is <filename>PYTHON_PN</filename>.
  10535. </para>
  10536. </glossdef>
  10537. </glossentry>
  10538. </glossdiv>
  10539. <glossdiv id='var-glossary-r'><title>R</title>
  10540. <glossentry id='var-RANLIB'><glossterm>RANLIB</glossterm>
  10541. <info>
  10542. RANLIB[doc] = "Minimal command and arguments to run 'ranlib'."
  10543. </info>
  10544. <glossdef>
  10545. <para role="glossdeffirst">
  10546. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10547. The minimal command and arguments to run
  10548. <filename>ranlib</filename>.
  10549. </para>
  10550. </glossdef>
  10551. </glossentry>
  10552. <glossentry id='var-RCONFLICTS'><glossterm>RCONFLICTS</glossterm>
  10553. <info>
  10554. 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."
  10555. </info>
  10556. <glossdef>
  10557. <para role="glossdeffirst">
  10558. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10559. The list of packages that conflict with packages.
  10560. Note that packages will not be installed if conflicting
  10561. packages are not first removed.
  10562. </para>
  10563. <para>
  10564. Like all package-controlling variables, you must always use
  10565. them in conjunction with a package name override.
  10566. Here is an example:
  10567. <literallayout class='monospaced'>
  10568. RCONFLICTS_${PN} = "<replaceable>another_conflicting_package_name</replaceable>"
  10569. </literallayout>
  10570. </para>
  10571. <para>
  10572. BitBake, which the OpenEmbedded build system uses, supports
  10573. specifying versioned dependencies.
  10574. Although the syntax varies depending on the packaging
  10575. format, BitBake hides these differences from you.
  10576. Here is the general syntax to specify versions with
  10577. the <filename>RCONFLICTS</filename> variable:
  10578. <literallayout class='monospaced'>
  10579. RCONFLICTS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  10580. </literallayout>
  10581. For <filename>operator</filename>, you can specify the
  10582. following:
  10583. <literallayout class='monospaced'>
  10584. =
  10585. &lt;
  10586. &gt;
  10587. &lt;=
  10588. &gt;=
  10589. </literallayout>
  10590. For example, the following sets up a dependency on version
  10591. 1.2 or greater of the package <filename>foo</filename>:
  10592. <literallayout class='monospaced'>
  10593. RCONFLICTS_${PN} = "foo (>= 1.2)"
  10594. </literallayout>
  10595. </para>
  10596. </glossdef>
  10597. </glossentry>
  10598. <glossentry id='var-RDEPENDS'><glossterm>RDEPENDS</glossterm>
  10599. <info>
  10600. RDEPENDS[doc] = "Lists runtime dependencies of a package."
  10601. </info>
  10602. <glossdef>
  10603. <para role="glossdeffirst">
  10604. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10605. Lists runtime dependencies of a package.
  10606. These dependencies are other packages that must be
  10607. installed in order for the package to function correctly.
  10608. As an example, the following assignment declares that the
  10609. package <filename>foo</filename> needs the packages
  10610. <filename>bar</filename> and <filename>baz</filename> to
  10611. be installed:
  10612. <literallayout class='monospaced'>
  10613. RDEPENDS_foo = "bar baz"
  10614. </literallayout>
  10615. The most common types of package runtime dependencies are
  10616. automatically detected and added.
  10617. Therefore, most recipes do not need to set
  10618. <filename>RDEPENDS</filename>.
  10619. For more information, see the
  10620. "<ulink url='&YOCTO_DOCS_OM_URL;#automatically-added-runtime-dependencies'>Automatically Added Runtime Dependencies</ulink>"
  10621. section in the Yocto Project Overview and Concepts Manual.
  10622. </para>
  10623. <para>
  10624. The practical effect of the above
  10625. <filename>RDEPENDS</filename> assignment is that
  10626. <filename>bar</filename> and <filename>baz</filename>
  10627. will be declared as dependencies inside the package
  10628. <filename>foo</filename> when it is written out by one of
  10629. the
  10630. <link linkend='ref-tasks-package_write_deb'><filename>do_package_write_*</filename></link>
  10631. tasks.
  10632. Exactly how this is done depends on which package format
  10633. is used, which is determined by
  10634. <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>.
  10635. When the corresponding package manager installs the
  10636. package, it will know to also install the packages on
  10637. which it depends.
  10638. </para>
  10639. <para>
  10640. To ensure that the packages <filename>bar</filename> and
  10641. <filename>baz</filename> get built, the previous
  10642. <filename>RDEPENDS</filename> assignment also causes a task
  10643. dependency to be added.
  10644. This dependency is from the recipe's
  10645. <link linkend='ref-tasks-build'><filename>do_build</filename></link>
  10646. (not to be confused with
  10647. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>)
  10648. task to the <filename>do_package_write_*</filename>
  10649. task of the recipes that build <filename>bar</filename> and
  10650. <filename>baz</filename>.
  10651. </para>
  10652. <para>
  10653. The names of the packages you list within
  10654. <filename>RDEPENDS</filename> must be the names of other
  10655. packages - they cannot be recipe names.
  10656. Although package names and recipe names usually match,
  10657. the important point here is that you are
  10658. providing package names within the
  10659. <filename>RDEPENDS</filename> variable.
  10660. For an example of the default list of packages created from
  10661. a recipe, see the
  10662. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  10663. variable.
  10664. </para>
  10665. <para>
  10666. Because the <filename>RDEPENDS</filename> variable applies
  10667. to packages being built, you should always use the variable
  10668. in a form with an attached package name (remember that a
  10669. single recipe can build multiple packages).
  10670. For example, suppose you are building a development package
  10671. that depends on the <filename>perl</filename> package.
  10672. In this case, you would use the following
  10673. <filename>RDEPENDS</filename> statement:
  10674. <literallayout class='monospaced'>
  10675. RDEPENDS_${PN}-dev += "perl"
  10676. </literallayout>
  10677. In the example, the development package depends on
  10678. the <filename>perl</filename> package.
  10679. Thus, the <filename>RDEPENDS</filename> variable has the
  10680. <filename>${PN}-dev</filename> package name as part of the
  10681. variable.
  10682. <note>
  10683. <title>Caution</title>
  10684. <filename>RDEPENDS_${PN}-dev</filename> includes
  10685. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>
  10686. by default.
  10687. This default is set in the BitBake configuration file
  10688. (<filename>meta/conf/bitbake.conf</filename>).
  10689. Be careful not to accidentally remove
  10690. <filename>${PN}</filename> when modifying
  10691. <filename>RDEPENDS_${PN}-dev</filename>.
  10692. Use the "+=" operator rather than the "=" operator.
  10693. </note>
  10694. </para>
  10695. <para>
  10696. The package names you use with
  10697. <filename>RDEPENDS</filename> must appear as they would in
  10698. the <filename>PACKAGES</filename> variable.
  10699. The
  10700. <link linkend='var-PKG'><filename>PKG</filename></link>
  10701. variable allows a different name to be used for
  10702. the final package (e.g. the
  10703. <link linkend='ref-classes-debian'><filename>debian</filename></link>
  10704. class uses this to rename packages), but this final package
  10705. name cannot be used with <filename>RDEPENDS</filename>,
  10706. which makes sense as <filename>RDEPENDS</filename> is meant
  10707. to be independent of the package format used.
  10708. </para>
  10709. <para>
  10710. BitBake, which the OpenEmbedded build system uses, supports
  10711. specifying versioned dependencies.
  10712. Although the syntax varies depending on the packaging
  10713. format, BitBake hides these differences from you.
  10714. Here is the general syntax to specify versions with
  10715. the <filename>RDEPENDS</filename> variable:
  10716. <literallayout class='monospaced'>
  10717. RDEPENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  10718. </literallayout>
  10719. For <replaceable>operator</replaceable>, you can specify the
  10720. following:
  10721. <literallayout class='monospaced'>
  10722. =
  10723. &lt;
  10724. &gt;
  10725. &lt;=
  10726. &gt;=
  10727. </literallayout>
  10728. For <replaceable>version</replaceable>, provide the version
  10729. number.
  10730. <note><title>Tip</title>
  10731. You can use
  10732. <link linkend='var-EXTENDPKGV'><filename>EXTENDPKGV</filename></link>
  10733. to provide a full package version specification.
  10734. </note>
  10735. For example, the following sets up a dependency on version
  10736. 1.2 or greater of the package <filename>foo</filename>:
  10737. <literallayout class='monospaced'>
  10738. RDEPENDS_${PN} = "foo (>= 1.2)"
  10739. </literallayout>
  10740. </para>
  10741. <para>
  10742. For information on build-time dependencies, see the
  10743. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  10744. variable.
  10745. You can also see the
  10746. "<ulink url='&YOCTO_DOCS_BB_URL;#tasks'>Tasks</ulink>" and
  10747. "<ulink url='&YOCTO_DOCS_BB_URL;#dependencies'>Dependencies</ulink>"
  10748. sections in the BitBake User Manual for additional
  10749. information on tasks and dependencies.
  10750. </para>
  10751. </glossdef>
  10752. </glossentry>
  10753. <glossentry id='var-REQUIRED_DISTRO_FEATURES'><glossterm>REQUIRED_DISTRO_FEATURES</glossterm>
  10754. <info>
  10755. 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."
  10756. </info>
  10757. <glossdef>
  10758. <para role="glossdeffirst">
  10759. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10760. When inheriting the
  10761. <link linkend='ref-classes-distro_features_check'><filename>distro_features_check</filename></link>
  10762. class, this
  10763. variable identifies distribution features that must
  10764. exist in the current configuration in order for the
  10765. OpenEmbedded build system to build the recipe.
  10766. In other words, if the
  10767. <filename>REQUIRED_DISTRO_FEATURES</filename> variable
  10768. lists a feature that does not appear in
  10769. <filename>DISTRO_FEATURES</filename> within the
  10770. current configuration, an error occurs and the
  10771. build stops.
  10772. </para>
  10773. </glossdef>
  10774. </glossentry>
  10775. <glossentry id='var-RM_WORK_EXCLUDE'><glossterm>RM_WORK_EXCLUDE</glossterm>
  10776. <info>
  10777. RM_WORK_EXCLUDE[doc] = "With rm_work enabled, this variable specifies a list of packages whose work directories should not be removed."
  10778. </info>
  10779. <glossdef>
  10780. <para role="glossdeffirst">
  10781. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10782. With <filename>rm_work</filename> enabled, this
  10783. variable specifies a list of recipes whose work directories
  10784. should not be removed.
  10785. See the "<link linkend='ref-classes-rm-work'><filename>rm_work.bbclass</filename></link>"
  10786. section for more details.
  10787. </para>
  10788. </glossdef>
  10789. </glossentry>
  10790. <glossentry id='var-ROOT_HOME'><glossterm>ROOT_HOME</glossterm>
  10791. <info>
  10792. ROOT_HOME[doc] = "Defines the root home directory."
  10793. </info>
  10794. <glossdef>
  10795. <para role="glossdeffirst">
  10796. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10797. Defines the root home directory.
  10798. By default, this directory is set as follows in the
  10799. BitBake configuration file:
  10800. <literallayout class='monospaced'>
  10801. ROOT_HOME ??= "/home/root"
  10802. </literallayout>
  10803. <note>
  10804. This default value is likely used because some
  10805. embedded solutions prefer to have a read-only root
  10806. filesystem and prefer to keep writeable data in one
  10807. place.
  10808. </note>
  10809. </para>
  10810. <para>
  10811. You can override the default by setting the variable
  10812. in any layer or in the <filename>local.conf</filename> file.
  10813. Because the default is set using a "weak" assignment
  10814. (i.e. "??="), you can use either of the following forms
  10815. to define your override:
  10816. <literallayout class='monospaced'>
  10817. ROOT_HOME = "/root"
  10818. ROOT_HOME ?= "/root"
  10819. </literallayout>
  10820. These override examples use <filename>/root</filename>,
  10821. which is probably the most commonly used override.
  10822. </para>
  10823. </glossdef>
  10824. </glossentry>
  10825. <glossentry id='var-ROOTFS'><glossterm>ROOTFS</glossterm>
  10826. <info>
  10827. ROOTFS[doc] = "Indicates a filesystem image to include as the root filesystem."
  10828. </info>
  10829. <glossdef>
  10830. <para role="glossdeffirst">
  10831. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10832. Indicates a filesystem image to include as the root
  10833. filesystem.
  10834. </para>
  10835. <para>
  10836. The <filename>ROOTFS</filename> variable is an optional
  10837. variable used with the
  10838. <link linkend='ref-classes-image-live'><filename>image-live</filename></link>
  10839. class.
  10840. </para>
  10841. </glossdef>
  10842. </glossentry>
  10843. <glossentry id='var-ROOTFS_POSTINSTALL_COMMAND'><glossterm>ROOTFS_POSTINSTALL_COMMAND</glossterm>
  10844. <info>
  10845. ROOTFS_POSTINSTALL_COMMAND[doc] = "Specifies a list of functions to call after installing packages."
  10846. </info>
  10847. <glossdef>
  10848. <para role="glossdeffirst">
  10849. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10850. Specifies a list of functions to call after the
  10851. OpenEmbedded build system has installed packages.
  10852. You can specify functions separated by semicolons:
  10853. <literallayout class='monospaced'>
  10854. ROOTFS_POSTINSTALL_COMMAND += "<replaceable>function</replaceable>; ... "
  10855. </literallayout>
  10856. </para>
  10857. <para>
  10858. If you need to pass the root filesystem path to a command
  10859. within a function, you can use
  10860. <filename>${IMAGE_ROOTFS}</filename>, which points to
  10861. the directory that becomes the root filesystem image.
  10862. See the
  10863. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  10864. variable for more information.
  10865. </para>
  10866. </glossdef>
  10867. </glossentry>
  10868. <glossentry id='var-ROOTFS_POSTPROCESS_COMMAND'><glossterm>ROOTFS_POSTPROCESS_COMMAND</glossterm>
  10869. <info>
  10870. ROOTFS_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system has created the root filesystem."
  10871. </info>
  10872. <glossdef>
  10873. <para role="glossdeffirst">
  10874. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10875. Specifies a list of functions to call once the
  10876. OpenEmbedded build system has created the root filesystem.
  10877. You can specify functions separated by semicolons:
  10878. <literallayout class='monospaced'>
  10879. ROOTFS_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  10880. </literallayout>
  10881. </para>
  10882. <para>
  10883. If you need to pass the root filesystem path to a command
  10884. within a function, you can use
  10885. <filename>${IMAGE_ROOTFS}</filename>, which points to
  10886. the directory that becomes the root filesystem image.
  10887. See the
  10888. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  10889. variable for more information.
  10890. </para>
  10891. </glossdef>
  10892. </glossentry>
  10893. <glossentry id='var-ROOTFS_POSTUNINSTALL_COMMAND'><glossterm>ROOTFS_POSTUNINSTALL_COMMAND</glossterm>
  10894. <info>
  10895. ROOTFS_POSTUNINSTALL_COMMAND[doc] = "Specifies a list of functions to call after removal of unneeded packages."
  10896. </info>
  10897. <glossdef>
  10898. <para role="glossdeffirst">
  10899. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10900. Specifies a list of functions to call after the
  10901. OpenEmbedded build system has removed unnecessary
  10902. packages.
  10903. When runtime package management is disabled in the
  10904. image, several packages are removed including
  10905. <filename>base-passwd</filename>,
  10906. <filename>shadow</filename>, and
  10907. <filename>update-alternatives</filename>.
  10908. You can specify functions separated by semicolons:
  10909. <literallayout class='monospaced'>
  10910. ROOTFS_POSTUNINSTALL_COMMAND += "<replaceable>function</replaceable>; ... "
  10911. </literallayout>
  10912. </para>
  10913. <para>
  10914. If you need to pass the root filesystem path to a command
  10915. within a function, you can use
  10916. <filename>${IMAGE_ROOTFS}</filename>, which points to
  10917. the directory that becomes the root filesystem image.
  10918. See the
  10919. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  10920. variable for more information.
  10921. </para>
  10922. </glossdef>
  10923. </glossentry>
  10924. <glossentry id='var-ROOTFS_PREPROCESS_COMMAND'><glossterm>ROOTFS_PREPROCESS_COMMAND</glossterm>
  10925. <info>
  10926. ROOTFS_PREPROCESS_COMMAND[doc] = "Specifies a list of functions to call before the OpenEmbedded build system has created the root filesystem."
  10927. </info>
  10928. <glossdef>
  10929. <para role="glossdeffirst">
  10930. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10931. Specifies a list of functions to call before the
  10932. OpenEmbedded build system has created the root filesystem.
  10933. You can specify functions separated by semicolons:
  10934. <literallayout class='monospaced'>
  10935. ROOTFS_PREPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  10936. </literallayout>
  10937. </para>
  10938. <para>
  10939. If you need to pass the root filesystem path to a command
  10940. within a function, you can use
  10941. <filename>${IMAGE_ROOTFS}</filename>, which points to
  10942. the directory that becomes the root filesystem image.
  10943. See the
  10944. <link linkend='var-IMAGE_ROOTFS'><filename>IMAGE_ROOTFS</filename></link>
  10945. variable for more information.
  10946. </para>
  10947. </glossdef>
  10948. </glossentry>
  10949. <glossentry id='var-RPROVIDES'><glossterm>RPROVIDES</glossterm>
  10950. <info>
  10951. 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."
  10952. </info>
  10953. <glossdef>
  10954. <para role="glossdeffirst">
  10955. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10956. A list of package name aliases that a package also provides.
  10957. These aliases are useful for satisfying runtime dependencies
  10958. of other packages both during the build and on the target
  10959. (as specified by
  10960. <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename>).
  10961. <note>
  10962. A package's own name is implicitly already in its
  10963. <filename>RPROVIDES</filename> list.
  10964. </note>
  10965. </para>
  10966. <para>
  10967. As with all package-controlling variables, you must always
  10968. use the variable in conjunction with a package name override.
  10969. Here is an example:
  10970. <literallayout class='monospaced'>
  10971. RPROVIDES_${PN} = "widget-abi-2"
  10972. </literallayout>
  10973. </para>
  10974. </glossdef>
  10975. </glossentry>
  10976. <glossentry id='var-RRECOMMENDS'><glossterm>RRECOMMENDS</glossterm>
  10977. <info>
  10978. 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."
  10979. </info>
  10980. <glossdef>
  10981. <para role="glossdeffirst">
  10982. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  10983. A list of packages that extends the usability of a package
  10984. being built.
  10985. The package being built does not depend on this list of
  10986. packages in order to successfully build, but rather
  10987. uses them for extended usability.
  10988. To specify runtime dependencies for packages, see the
  10989. <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename>
  10990. variable.
  10991. </para>
  10992. <para>
  10993. The package manager will automatically install the
  10994. <filename>RRECOMMENDS</filename> list of packages when
  10995. installing the built package.
  10996. However, you can prevent listed packages from being
  10997. installed by using the
  10998. <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>,
  10999. <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link>,
  11000. and
  11001. <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link>
  11002. variables.
  11003. </para>
  11004. <para>
  11005. Packages specified in
  11006. <filename>RRECOMMENDS</filename> need not actually be
  11007. produced.
  11008. However, a recipe must exist that provides each package,
  11009. either through the
  11010. <link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>
  11011. or
  11012. <link linkend='var-PACKAGES_DYNAMIC'><filename>PACKAGES_DYNAMIC</filename></link>
  11013. variables or the
  11014. <link linkend='var-RPROVIDES'><filename>RPROVIDES</filename></link>
  11015. variable, or an error will occur during the build.
  11016. If such a recipe does exist and the package is not produced,
  11017. the build continues without error.
  11018. </para>
  11019. <para>
  11020. Because the <filename>RRECOMMENDS</filename> variable
  11021. applies to packages being built, you should always attach
  11022. an override to the variable to specify the particular
  11023. package whose usability is being extended.
  11024. For example, suppose you are building a development package
  11025. that is extended to support wireless functionality.
  11026. In this case, you would use the following:
  11027. <literallayout class='monospaced'>
  11028. RRECOMMENDS_${PN}-dev += "<replaceable>wireless_package_name</replaceable>"
  11029. </literallayout>
  11030. In the example, the package name
  11031. (<filename>${<link linkend='var-PN'>PN</link>}-dev</filename>)
  11032. must appear as it would in the
  11033. <filename>PACKAGES</filename> namespace before any renaming
  11034. of the output package by classes such as
  11035. <filename>debian.bbclass</filename>.
  11036. </para>
  11037. <para>
  11038. BitBake, which the OpenEmbedded build system uses, supports
  11039. specifying versioned recommends.
  11040. Although the syntax varies depending on the packaging
  11041. format, BitBake hides these differences from you.
  11042. Here is the general syntax to specify versions with
  11043. the <filename>RRECOMMENDS</filename> variable:
  11044. <literallayout class='monospaced'>
  11045. RRECOMMENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  11046. </literallayout>
  11047. For <filename>operator</filename>, you can specify the
  11048. following:
  11049. <literallayout class='monospaced'>
  11050. =
  11051. &lt;
  11052. &gt;
  11053. &lt;=
  11054. &gt;=
  11055. </literallayout>
  11056. For example, the following sets up a recommend on version
  11057. 1.2 or greater of the package <filename>foo</filename>:
  11058. <literallayout class='monospaced'>
  11059. RRECOMMENDS_${PN} = "foo (>= 1.2)"
  11060. </literallayout>
  11061. </para>
  11062. </glossdef>
  11063. </glossentry>
  11064. <glossentry id='var-RREPLACES'><glossterm>RREPLACES</glossterm>
  11065. <info>
  11066. 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."
  11067. </info>
  11068. <glossdef>
  11069. <para role="glossdeffirst">
  11070. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11071. A list of packages replaced by a package.
  11072. The package manager uses this variable to determine which
  11073. package should be installed to replace other package(s)
  11074. during an upgrade.
  11075. In order to also have the other package(s) removed at the
  11076. same time, you must add the name of the other
  11077. package to the
  11078. <filename><link linkend='var-RCONFLICTS'>RCONFLICTS</link></filename> variable.
  11079. </para>
  11080. <para>
  11081. As with all package-controlling variables, you must use
  11082. this variable in conjunction with a package name
  11083. override.
  11084. Here is an example:
  11085. <literallayout class='monospaced'>
  11086. RREPLACES_${PN} = "<replaceable>other_package_being_replaced</replaceable>"
  11087. </literallayout>
  11088. </para>
  11089. <para>
  11090. BitBake, which the OpenEmbedded build system uses, supports
  11091. specifying versioned replacements.
  11092. Although the syntax varies depending on the packaging
  11093. format, BitBake hides these differences from you.
  11094. Here is the general syntax to specify versions with
  11095. the <filename>RREPLACES</filename> variable:
  11096. <literallayout class='monospaced'>
  11097. RREPLACES_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
  11098. </literallayout>
  11099. For <filename>operator</filename>, you can specify the
  11100. following:
  11101. <literallayout class='monospaced'>
  11102. =
  11103. &lt;
  11104. &gt;
  11105. &lt;=
  11106. &gt;=
  11107. </literallayout>
  11108. For example, the following sets up a replacement using
  11109. version 1.2 or greater of the package
  11110. <filename>foo</filename>:
  11111. <literallayout class='monospaced'>
  11112. RREPLACES_${PN} = "foo (>= 1.2)"
  11113. </literallayout>
  11114. </para>
  11115. </glossdef>
  11116. </glossentry>
  11117. <glossentry id='var-RSUGGESTS'><glossterm>RSUGGESTS</glossterm>
  11118. <info>
  11119. 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."
  11120. </info>
  11121. <glossdef>
  11122. <para role="glossdeffirst">
  11123. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11124. A list of additional packages that you can suggest for
  11125. installation by the package manager at the time a package
  11126. is installed.
  11127. Not all package managers support this functionality.
  11128. </para>
  11129. <para>
  11130. As with all package-controlling variables, you must always
  11131. use this variable in conjunction with a package name
  11132. override.
  11133. Here is an example:
  11134. <literallayout class='monospaced'>
  11135. RSUGGESTS_${PN} = "<replaceable>useful_package</replaceable> <replaceable>another_package</replaceable>"
  11136. </literallayout>
  11137. </para>
  11138. </glossdef>
  11139. </glossentry>
  11140. </glossdiv>
  11141. <glossdiv id='var-glossary-s'><title>S</title>
  11142. <glossentry id='var-S'><glossterm>S</glossterm>
  11143. <info>
  11144. S[doc] = "The location in the Build Directory where unpacked package source code resides."
  11145. </info>
  11146. <glossdef>
  11147. <para role="glossdeffirst">
  11148. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11149. The location in the
  11150. <link linkend='build-directory'>Build Directory</link>
  11151. where unpacked recipe source code resides.
  11152. By default, this directory is
  11153. <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>,
  11154. where <filename>${BPN}</filename> is the base recipe name
  11155. and <filename>${PV}</filename> is the recipe version.
  11156. If the source tarball extracts the code to a directory
  11157. named anything other than <filename>${BPN}-${PV}</filename>,
  11158. or if the source code is fetched from an SCM such as
  11159. Git or Subversion, then you must set <filename>S</filename>
  11160. in the recipe so that the OpenEmbedded build system
  11161. knows where to find the unpacked source.
  11162. </para>
  11163. <para>
  11164. As an example, assume a
  11165. <link linkend='source-directory'>Source Directory</link>
  11166. top-level folder named <filename>poky</filename> and a
  11167. default Build Directory at <filename>poky/build</filename>.
  11168. In this case, the work directory the build system uses
  11169. to keep the unpacked recipe for <filename>db</filename>
  11170. is the following:
  11171. <literallayout class='monospaced'>
  11172. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  11173. </literallayout>
  11174. The unpacked source code resides in the
  11175. <filename>db-5.1.19</filename> folder.
  11176. </para>
  11177. <para>
  11178. This next example assumes a Git repository.
  11179. By default, Git repositories are cloned to
  11180. <filename>${WORKDIR}/git</filename> during
  11181. <link linkend='ref-tasks-fetch'><filename>do_fetch</filename></link>.
  11182. Since this path is different from the default value of
  11183. <filename>S</filename>, you must set it specifically
  11184. so the source can be located:
  11185. <literallayout class='monospaced'>
  11186. SRC_URI = "git://path/to/repo.git"
  11187. S = "${WORKDIR}/git"
  11188. </literallayout>
  11189. </para>
  11190. </glossdef>
  11191. </glossentry>
  11192. <glossentry id='var-SANITY_REQUIRED_UTILITIES'><glossterm>SANITY_REQUIRED_UTILITIES</glossterm>
  11193. <info>
  11194. 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."
  11195. </info>
  11196. <glossdef>
  11197. <para role="glossdeffirst">
  11198. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11199. Specifies a list of command-line utilities that should be
  11200. checked for during the initial sanity checking process when
  11201. running BitBake.
  11202. If any of the utilities are not installed on the build host,
  11203. then BitBake immediately exits with an error.
  11204. </para>
  11205. </glossdef>
  11206. </glossentry>
  11207. <glossentry id='var-SANITY_TESTED_DISTROS'><glossterm>SANITY_TESTED_DISTROS</glossterm>
  11208. <info>
  11209. SANITY_TESTED_DISTROS[doc] = "A list of the host distribution identifiers that the build system has been tested against."
  11210. </info>
  11211. <glossdef>
  11212. <para role="glossdeffirst">
  11213. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11214. A list of the host distribution identifiers that the
  11215. build system has been tested against.
  11216. Identifiers consist of the host distributor ID
  11217. followed by the release,
  11218. as reported by the <filename>lsb_release</filename> tool
  11219. or as read from <filename>/etc/lsb-release</filename>.
  11220. Separate the list items with explicit newline
  11221. characters (<filename>\n</filename>).
  11222. If <filename>SANITY_TESTED_DISTROS</filename> is not empty
  11223. and the current value of
  11224. <link linkend='var-NATIVELSBSTRING'><filename>NATIVELSBSTRING</filename></link>
  11225. does not appear in the list, then the build system reports
  11226. a warning that indicates the current host distribution has
  11227. not been tested as a build host.
  11228. </para>
  11229. </glossdef>
  11230. </glossentry>
  11231. <glossentry id='var-SDK_ARCH'><glossterm>SDK_ARCH</glossterm>
  11232. <info>
  11233. SDK_ARCH[doc] = "The target architecture for the SDK."
  11234. </info>
  11235. <glossdef>
  11236. <para role="glossdeffirst">
  11237. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11238. The target architecture for the SDK.
  11239. Typically, you do not directly set this variable.
  11240. Instead, use
  11241. <link linkend='var-SDKMACHINE'><filename>SDKMACHINE</filename></link>.
  11242. </para>
  11243. </glossdef>
  11244. </glossentry>
  11245. <glossentry id='var-SDK_DEPLOY'><glossterm>SDK_DEPLOY</glossterm>
  11246. <info>
  11247. SDK_DEPLOY[doc] = "The directory set up and used by the populate_sdk_base to which the SDK is deployed."
  11248. </info>
  11249. <glossdef>
  11250. <para role="glossdeffirst">
  11251. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11252. The directory set up and used by the
  11253. <link linkend='ref-classes-populate-sdk'><filename>populate_sdk_base</filename></link>
  11254. class to which the SDK is deployed.
  11255. The <filename>populate_sdk_base</filename> class defines
  11256. <filename>SDK_DEPLOY</filename> as follows:
  11257. <literallayout class='monospaced'>
  11258. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  11259. </literallayout>
  11260. </para>
  11261. </glossdef>
  11262. </glossentry>
  11263. <glossentry id='var-SDK_DIR'><glossterm>SDK_DIR</glossterm>
  11264. <info>
  11265. SDK_DIR[doc] = "The parent directory used by the OpenEmbedded build system when creating SDK output."
  11266. </info>
  11267. <glossdef>
  11268. <para role="glossdeffirst">
  11269. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11270. The parent directory used by the OpenEmbedded build system
  11271. when creating SDK output.
  11272. The
  11273. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11274. class defines the variable as follows:
  11275. <literallayout class='monospaced'>
  11276. SDK_DIR = "${WORKDIR}/sdk"
  11277. </literallayout>
  11278. <note>
  11279. The <filename>SDK_DIR</filename> directory is a
  11280. temporary directory as it is part of
  11281. <filename>WORKDIR</filename>.
  11282. The final output directory is
  11283. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>.
  11284. </note>
  11285. </para>
  11286. </glossdef>
  11287. </glossentry>
  11288. <glossentry id='var-SDK_EXT_TYPE'><glossterm>SDK_EXT_TYPE</glossterm>
  11289. <info>
  11290. SDK_EXT_TYPE[doc] = "Controls whether or not shared state artifacts are copied into the extensible SDK."
  11291. </info>
  11292. <glossdef>
  11293. <para role="glossdeffirst">
  11294. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11295. Controls whether or not shared state artifacts are copied
  11296. into the extensible SDK.
  11297. The default value of "full" copies all of the required
  11298. shared state artifacts into the extensible SDK.
  11299. The value "minimal" leaves these artifacts out of the
  11300. SDK.
  11301. <note>
  11302. If you set the variable to "minimal", you need to
  11303. ensure
  11304. <link linkend='var-SSTATE_MIRRORS'><filename>SSTATE_MIRRORS</filename></link>
  11305. is set in the SDK's configuration to enable the
  11306. artifacts to be fetched as needed.
  11307. </note>
  11308. </para>
  11309. </glossdef>
  11310. </glossentry>
  11311. <glossentry id='var-SDK_HOST_MANIFEST'><glossterm>SDK_HOST_MANIFEST</glossterm>
  11312. <info>
  11313. 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."
  11314. </info>
  11315. <glossdef>
  11316. <para role="glossdeffirst">
  11317. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11318. The manifest file for the host part of the SDK.
  11319. This file lists all the installed packages that make up
  11320. the host part of the SDK.
  11321. The file contains package information on a line-per-package
  11322. basis as follows:
  11323. <literallayout class='monospaced'>
  11324. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  11325. </literallayout>
  11326. </para>
  11327. <para>
  11328. The
  11329. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11330. class defines the manifest file as follows:
  11331. <literallayout class='monospaced'>
  11332. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  11333. </literallayout>
  11334. The location is derived using the
  11335. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>
  11336. and
  11337. <link linkend='var-TOOLCHAIN_OUTPUTNAME'><filename>TOOLCHAIN_OUTPUTNAME</filename></link>
  11338. variables.
  11339. </para>
  11340. </glossdef>
  11341. </glossentry>
  11342. <glossentry id='var-SDK_INCLUDE_PKGDATA'><glossterm>SDK_INCLUDE_PKGDATA</glossterm>
  11343. <info>
  11344. SDK_INCLUDE_PKGDATA[doc] = "When set to "1", specifies to include the packagedata for all recipes in the "world" target in the extensible SDK."
  11345. </info>
  11346. <glossdef>
  11347. <para role="glossdeffirst">
  11348. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11349. When set to "1", specifies to include the packagedata for
  11350. all recipes in the "world" target in the extensible SDK.
  11351. Including this data allows the
  11352. <filename>devtool search</filename> command to find these
  11353. recipes in search results, as well as allows the
  11354. <filename>devtool add</filename> command to map
  11355. dependencies more effectively.
  11356. <note>
  11357. Enabling the <filename>SDK_INCLUDE_PKGDATA</filename>
  11358. variable significantly increases build time because
  11359. all of world needs to be built.
  11360. Enabling the variable also slightly increases the size
  11361. of the extensible SDK.
  11362. </note>
  11363. </para>
  11364. </glossdef>
  11365. </glossentry>
  11366. <glossentry id='var-SDK_INCLUDE_TOOLCHAIN'><glossterm>SDK_INCLUDE_TOOLCHAIN</glossterm>
  11367. <info>
  11368. SDK_INCLUDE_TOOLCHAIN[doc] = "When set to "1", specifies to include the toolchain in the extensible SDK."
  11369. </info>
  11370. <glossdef>
  11371. <para role="glossdeffirst">
  11372. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11373. When set to "1", specifies to include the toolchain in the
  11374. extensible SDK.
  11375. Including the toolchain is useful particularly when
  11376. <link linkend='var-SDK_EXT_TYPE'><filename>SDK_EXT_TYPE</filename></link>
  11377. is set to "minimal" to keep the SDK reasonably small
  11378. but you still want to provide a usable toolchain.
  11379. For example, suppose you want to use the toolchain from an
  11380. IDE (e.g. Eclipse) or from other tools and you do not
  11381. want to perform additional steps to install the toolchain.
  11382. </para>
  11383. <para>
  11384. The <filename>SDK_INCLUDE_TOOLCHAIN</filename> variable
  11385. defaults to "0" if <filename>SDK_EXT_TYPE</filename>
  11386. is set to "minimal", and defaults to "1" if
  11387. <filename>SDK_EXT_TYPE</filename> is set to "full".
  11388. </para>
  11389. </glossdef>
  11390. </glossentry>
  11391. <glossentry id='var-SDK_INHERIT_BLACKLIST'><glossterm>SDK_INHERIT_BLACKLIST</glossterm>
  11392. <info>
  11393. SDK_INHERIT_BLACKLIST[doc] = "A list of classes to remove from the INHERIT value globally within the extensible SDK configuration."
  11394. </info>
  11395. <glossdef>
  11396. <para role="glossdeffirst">
  11397. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11398. A list of classes to remove from the
  11399. <link linkend='var-INHERIT'><filename>INHERIT</filename></link>
  11400. value globally within the extensible SDK configuration.
  11401. The
  11402. <link linkend='ref-classes-populate-sdk-*'><filename>populate-sdk-ext</filename></link>
  11403. class sets the default value:
  11404. <literallayout class='monospaced'>
  11405. SDK_INHERIT_BLACKLIST ?= "buildhistory icecc"
  11406. </literallayout>
  11407. </para>
  11408. <para>
  11409. Some classes are not generally applicable within
  11410. the extensible SDK context.
  11411. You can use this variable to disable those classes.
  11412. </para>
  11413. <para>
  11414. For additional information on how to customize the
  11415. extensible SDK's configuration, see the
  11416. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-configuring-the-extensible-sdk'>Configuring the Extensible SDK</ulink>"
  11417. section in the Yocto Project Application Development and
  11418. the Extensible Software Development Kit (eSDK) manual.
  11419. </para>
  11420. </glossdef>
  11421. </glossentry>
  11422. <glossentry id='var-SDK_LOCAL_CONF_BLACKLIST'><glossterm>SDK_LOCAL_CONF_BLACKLIST</glossterm>
  11423. <info>
  11424. SDK_LOCAL_CONF_BLACKLIST[doc] = "A list of variables not allowed through from the build system configuration into the extensible SDK configuration."
  11425. </info>
  11426. <glossdef>
  11427. <para role="glossdeffirst">
  11428. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11429. A list of variables not allowed through from the
  11430. OpenEmbedded build system configuration into the extensible
  11431. SDK configuration.
  11432. Usually, these are variables that are specific to the
  11433. machine on which the build system is running and thus
  11434. would be potentially problematic within the extensible SDK.
  11435. </para>
  11436. <para>By default,
  11437. <filename>SDK_LOCAL_CONF_BLACKLIST</filename> is set in the
  11438. <link linkend='ref-classes-populate-sdk-*'><filename>populate-sdk-ext</filename></link>
  11439. class and excludes the following variables:
  11440. <literallayout class='monospaced'>
  11441. <link linkend='var-CONF_VERSION'>CONF_VERSION</link>
  11442. <link linkend='var-BB_NUMBER_THREADS'>BB_NUMBER_THREADS</link>
  11443. <ulink url='&YOCTO_DOCS_BB_URL;#var-BB_NUMBER_PARSE_THREADS'>BB_NUMBER_PARSE_THREADS</ulink>
  11444. <link linkend='var-PARALLEL_MAKE'>PARALLEL_MAKE</link>
  11445. <link linkend='var-PRSERV_HOST'>PRSERV_HOST</link>
  11446. <link linkend='var-SSTATE_MIRRORS'>SSTATE_MIRRORS</link>
  11447. <link linkend='var-DL_DIR'>DL_DIR</link>
  11448. <link linkend='var-SSTATE_DIR'>SSTATE_DIR</link>
  11449. <link linkend='var-TMPDIR'>TMPDIR</link>
  11450. <link linkend='var-BB_SERVER_TIMEOUT'>BB_SERVER_TIMEOUT</link>
  11451. </literallayout>
  11452. </para>
  11453. <para>
  11454. For additional information on how to customize the
  11455. extensible SDK's configuration, see the
  11456. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-configuring-the-extensible-sdk'>Configuring the Extensible SDK</ulink>"
  11457. section in the Yocto Project Application Development and
  11458. the Extensible Software Development Kit (eSDK) manual.
  11459. </para>
  11460. </glossdef>
  11461. </glossentry>
  11462. <glossentry id='var-SDK_LOCAL_CONF_WHITELIST'><glossterm>SDK_LOCAL_CONF_WHITELIST</glossterm>
  11463. <info>
  11464. SDK_LOCAL_CONF_WHITELIST[doc] = "A list of variables allowed through from the build system configuration into the extensible SDK configuration."
  11465. </info>
  11466. <glossdef>
  11467. <para role="glossdeffirst">
  11468. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11469. A list of variables allowed through from the OpenEmbedded
  11470. build system configuration into the extensible SDK
  11471. configuration.
  11472. By default, the list of variables is empty and is set in
  11473. the
  11474. <link linkend='ref-classes-populate-sdk-*'><filename>populate-sdk-ext</filename></link>
  11475. class.
  11476. </para>
  11477. <para>
  11478. This list overrides the variables specified using the
  11479. <link linkend='var-SDK_LOCAL_CONF_BLACKLIST'><filename>SDK_LOCAL_CONF_BLACKLIST</filename></link>
  11480. variable as well as any variables identified by automatic
  11481. blacklisting due to the "/" character being found at the
  11482. start of the value, which is usually indicative of being a
  11483. path and thus might not be valid on the system where the
  11484. SDK is installed.
  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_NAME'><glossterm>SDK_NAME</glossterm>
  11496. <info>
  11497. SDK_NAME[doc] = "The base name for SDK output files."
  11498. </info>
  11499. <glossdef>
  11500. <para role="glossdeffirst">
  11501. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11502. The base name for SDK output files.
  11503. The name is derived from the
  11504. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>,
  11505. <link linkend='var-TCLIBC'><filename>TCLIBC</filename></link>,
  11506. <link linkend='var-SDK_ARCH'><filename>SDK_ARCH</filename></link>,
  11507. <link linkend='var-IMAGE_BASENAME'><filename>IMAGE_BASENAME</filename></link>,
  11508. and
  11509. <link linkend='var-TUNE_PKGARCH'><filename>TUNE_PKGARCH</filename></link>
  11510. variables:
  11511. <literallayout class='monospaced'>
  11512. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"
  11513. </literallayout>
  11514. </para>
  11515. </glossdef>
  11516. </glossentry>
  11517. <glossentry id='var-SDK_OS'><glossterm>SDK_OS</glossterm>
  11518. <info>
  11519. SDK_OS[doc] = "The operating system for which the SDK will be built."
  11520. </info>
  11521. <glossdef>
  11522. <para role="glossdeffirst">
  11523. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11524. Specifies the operating system for which the SDK
  11525. will be built.
  11526. The default value is the value of
  11527. <link linkend='var-BUILD_OS'><filename>BUILD_OS</filename></link>.
  11528. </para>
  11529. </glossdef>
  11530. </glossentry>
  11531. <glossentry id='var-SDK_OUTPUT'><glossterm>SDK_OUTPUT</glossterm>
  11532. <info>
  11533. SDK_OUTPUT[doc] = "The location used by the OpenEmbedded build system when creating SDK output."
  11534. </info>
  11535. <glossdef>
  11536. <para role="glossdeffirst">
  11537. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11538. The location used by the OpenEmbedded build system when
  11539. creating SDK output.
  11540. The
  11541. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11542. class defines the variable as follows:
  11543. <literallayout class='monospaced'>
  11544. SDK_DIR = "${WORKDIR}/sdk"
  11545. SDK_OUTPUT = "${SDK_DIR}/image"
  11546. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  11547. </literallayout>
  11548. <note>
  11549. The <filename>SDK_OUTPUT</filename> directory is a
  11550. temporary directory as it is part of
  11551. <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  11552. by way of
  11553. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>.
  11554. The final output directory is
  11555. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>.
  11556. </note>
  11557. </para>
  11558. </glossdef>
  11559. </glossentry>
  11560. <glossentry id='var-SDK_PACKAGE_ARCHS'><glossterm>SDK_PACKAGE_ARCHS</glossterm>
  11561. <info>
  11562. 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."
  11563. </info>
  11564. <glossdef>
  11565. <para role="glossdeffirst">
  11566. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11567. Specifies a list of architectures compatible with
  11568. the SDK machine.
  11569. This variable is set automatically and should not
  11570. normally be hand-edited.
  11571. Entries are separated using spaces and listed in order
  11572. of priority.
  11573. The default value for
  11574. <filename>SDK_PACKAGE_ARCHS</filename> is "all any noarch
  11575. ${SDK_ARCH}-${SDKPKGSUFFIX}".
  11576. </para>
  11577. </glossdef>
  11578. </glossentry>
  11579. <glossentry id='var-SDK_POSTPROCESS_COMMAND'><glossterm>SDK_POSTPROCESS_COMMAND</glossterm>
  11580. <info>
  11581. SDK_POSTPROCESS_COMMAND[doc] = "Specifies a list of functions to call once the OpenEmbedded build system creates the SDK."
  11582. </info>
  11583. <glossdef>
  11584. <para role="glossdeffirst">
  11585. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11586. Specifies a list of functions to call once the
  11587. OpenEmbedded build system creates the SDK.
  11588. You can specify functions separated by semicolons:
  11589. <literallayout class='monospaced'>
  11590. SDK_POSTPROCESS_COMMAND += "<replaceable>function</replaceable>; ... "
  11591. </literallayout>
  11592. </para>
  11593. <para>
  11594. If you need to pass an SDK path to a command within a
  11595. function, you can use
  11596. <filename>${SDK_DIR}</filename>, which points to
  11597. the parent directory used by the OpenEmbedded build system
  11598. when creating SDK output.
  11599. See the
  11600. <link linkend='var-SDK_DIR'><filename>SDK_DIR</filename></link>
  11601. variable for more information.
  11602. </para>
  11603. </glossdef>
  11604. </glossentry>
  11605. <glossentry id='var-SDK_PREFIX'><glossterm>SDK_PREFIX</glossterm>
  11606. <info>
  11607. SDK_PREFIX[doc] = "The toolchain binary prefix used for nativesdk recipes."
  11608. </info>
  11609. <glossdef>
  11610. <para role="glossdeffirst">
  11611. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11612. The toolchain binary prefix used for
  11613. <filename>nativesdk</filename> recipes.
  11614. The OpenEmbedded build system uses the
  11615. <filename>SDK_PREFIX</filename> value to set the
  11616. <link linkend='var-TARGET_PREFIX'><filename>TARGET_PREFIX</filename></link>
  11617. when building <filename>nativesdk</filename> recipes.
  11618. The default value is "${SDK_SYS}-".
  11619. </para>
  11620. </glossdef>
  11621. </glossentry>
  11622. <glossentry id='var-SDK_RECRDEP_TASKS'><glossterm>SDK_RECRDEP_TASKS</glossterm>
  11623. <info>
  11624. SDK_RECRDEP_TASKS[doc] = "A list of shared state tasks added to the extensible SDK."
  11625. </info>
  11626. <glossdef>
  11627. <para role="glossdeffirst">
  11628. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11629. A list of shared state tasks added to the extensible SDK.
  11630. By default, the following tasks are added:
  11631. <literallayout class='monospaced'>
  11632. do_populate_lic
  11633. do_package_qa
  11634. do_populate_sysroot
  11635. do_deploy
  11636. </literallayout>
  11637. Despite the default value of "" for the
  11638. <filename>SDK_RECRDEP_TASKS</filename> variable, the
  11639. above four tasks are always added to the SDK.
  11640. To specify tasks beyond these four, you need to use
  11641. the <filename>SDK_RECRDEP_TASKS</filename> variable (e.g.
  11642. you are defining additional tasks that are needed in
  11643. order to build
  11644. <link linkend='var-SDK_TARGETS'><filename>SDK_TARGETS</filename></link>).
  11645. </para>
  11646. </glossdef>
  11647. </glossentry>
  11648. <glossentry id='var-SDK_SYS'><glossterm>SDK_SYS</glossterm>
  11649. <info>
  11650. SDK_SYS[doc] = "Specifies the system, including the architecture and the operating system, for which the SDK will be built."
  11651. </info>
  11652. <glossdef>
  11653. <para role="glossdeffirst">
  11654. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11655. Specifies the system, including the architecture and the
  11656. operating system, for which the SDK will be built.
  11657. </para>
  11658. <para>
  11659. The OpenEmbedded build system automatically sets this
  11660. variable based on
  11661. <link linkend='var-SDK_ARCH'><filename>SDK_ARCH</filename></link>,
  11662. <link linkend='var-SDK_VENDOR'><filename>SDK_VENDOR</filename></link>,
  11663. and
  11664. <link linkend='var-SDK_OS'><filename>SDK_OS</filename></link>.
  11665. You do not need to set the <filename>SDK_SYS</filename>
  11666. variable yourself.
  11667. </para>
  11668. </glossdef>
  11669. </glossentry>
  11670. <glossentry id='var-SDK_TARGET_MANIFEST'><glossterm>SDK_TARGET_MANIFEST</glossterm>
  11671. <info>
  11672. 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."
  11673. </info>
  11674. <glossdef>
  11675. <para role="glossdeffirst">
  11676. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11677. The manifest file for the target part of the SDK.
  11678. This file lists all the installed packages that make up
  11679. the target part of the SDK.
  11680. The file contains package information on a line-per-package
  11681. basis as follows:
  11682. <literallayout class='monospaced'>
  11683. <replaceable>packagename</replaceable> <replaceable>packagearch</replaceable> <replaceable>version</replaceable>
  11684. </literallayout>
  11685. </para>
  11686. <para>
  11687. The
  11688. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11689. class defines the manifest file as follows:
  11690. <literallayout class='monospaced'>
  11691. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  11692. </literallayout>
  11693. The location is derived using the
  11694. <link linkend='var-SDK_DEPLOY'><filename>SDK_DEPLOY</filename></link>
  11695. and
  11696. <link linkend='var-TOOLCHAIN_OUTPUTNAME'><filename>TOOLCHAIN_OUTPUTNAME</filename></link>
  11697. variables.
  11698. </para>
  11699. </glossdef>
  11700. </glossentry>
  11701. <glossentry id='var-SDK_TARGETS'><glossterm>SDK_TARGETS</glossterm>
  11702. <info>
  11703. SDK_TARGETS[doc] = "A list of targets to install from shared state as part of the standard or extensible SDK installation."
  11704. </info>
  11705. <glossdef>
  11706. <para role="glossdeffirst">
  11707. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11708. A list of targets to install from shared state as part of
  11709. the standard or extensible SDK installation.
  11710. The default value is "${PN}" (i.e. the image from which
  11711. the SDK is built).
  11712. </para>
  11713. <para>
  11714. The <filename>SDK_TARGETS</filename> variable is an
  11715. internal variable and typically would not be changed.
  11716. </para>
  11717. </glossdef>
  11718. </glossentry>
  11719. <glossentry id='var-SDK_TITLE'><glossterm>SDK_TITLE</glossterm>
  11720. <info>
  11721. SDK_TITLE[doc] = "The title to be printed when running the SDK installer."
  11722. </info>
  11723. <glossdef>
  11724. <para role="glossdeffirst">
  11725. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11726. The title to be printed when running the SDK installer.
  11727. By default, this title is based on the
  11728. <link linkend='var-DISTRO_NAME'><filename>DISTRO_NAME</filename></link>
  11729. or
  11730. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>
  11731. variable and is set in the
  11732. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11733. class as follows:
  11734. <literallayout class='monospaced'>
  11735. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  11736. </literallayout>
  11737. For the default distribution "poky",
  11738. <filename>SDK_TITLE</filename> is set to
  11739. "Poky (Yocto Project Reference Distro)".
  11740. </para>
  11741. <para>
  11742. For information on how to change this default title,
  11743. see the
  11744. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-changing-the-sdk-installer-title'>Changing the Extensible SDK Installer Title</ulink>"
  11745. section in the Yocto Project Application Development and
  11746. the Extensible Software Development Kit (eSDK) manual.
  11747. </para>
  11748. </glossdef>
  11749. </glossentry>
  11750. <glossentry id='var-SDK_UPDATE_URL'><glossterm>SDK_UPDATE_URL</glossterm>
  11751. <info>
  11752. SDK_UPDATE_URL[doc] = "An optional URL for an update server for the extensible SDK."
  11753. </info>
  11754. <glossdef>
  11755. <para role="glossdeffirst">
  11756. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11757. An optional URL for an update server for the extensible
  11758. SDK.
  11759. If set, the value is used as the default update server when
  11760. running <filename>devtool sdk-update</filename> within the
  11761. extensible SDK.
  11762. </para>
  11763. </glossdef>
  11764. </glossentry>
  11765. <glossentry id='var-SDK_VENDOR'><glossterm>SDK_VENDOR</glossterm>
  11766. <info>
  11767. SDK_VENDOR[doc] = "Specifies the name of the SDK vendor."
  11768. </info>
  11769. <glossdef>
  11770. <para role="glossdeffirst">
  11771. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11772. Specifies the name of the SDK vendor.
  11773. </para>
  11774. </glossdef>
  11775. </glossentry>
  11776. <glossentry id='var-SDK_VERSION'><glossterm>SDK_VERSION</glossterm>
  11777. <info>
  11778. SDK_VERSION[doc] = "Specifies the version for the SDK."
  11779. </info>
  11780. <glossdef>
  11781. <para role="glossdeffirst">
  11782. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11783. Specifies the version of the SDK.
  11784. The distribution configuration file (e.g.
  11785. <filename>/meta-poky/conf/distro/poky.conf</filename>)
  11786. defines the <filename>SDK_VERSION</filename> as follows:
  11787. <literallayout class='monospaced'>
  11788. SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"
  11789. </literallayout>
  11790. </para>
  11791. <para>
  11792. For additional information, see the
  11793. <link linkend='var-DISTRO_VERSION'><filename>DISTRO_VERSION</filename></link>
  11794. and
  11795. <link linkend='var-DATE'><filename>DATE</filename></link>
  11796. variables.
  11797. </para>
  11798. </glossdef>
  11799. </glossentry>
  11800. <glossentry id='var-SDKEXTPATH'><glossterm>SDKEXTPATH</glossterm>
  11801. <info>
  11802. SDKEXTPATH[doc] = "The default installation directory for the extensible SDK."
  11803. </info>
  11804. <glossdef>
  11805. <para role="glossdeffirst">
  11806. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11807. The default installation directory for the Extensible SDK.
  11808. By default, this directory is based on the
  11809. <link linkend='var-DISTRO'><filename>DISTRO</filename></link>
  11810. variable and is set in the
  11811. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  11812. class as follows:
  11813. <literallayout class='monospaced'>
  11814. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  11815. </literallayout>
  11816. For the default distribution "poky", the
  11817. <filename>SDKEXTPATH</filename> is set to "poky_sdk".
  11818. </para>
  11819. <para>
  11820. For information on how to change this default directory,
  11821. see the
  11822. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-changing-the-default-sdk-installation-directory'>Changing the Default SDK Installation Directory</ulink>"
  11823. section in the Yocto Project Application Development and
  11824. the Extensible Software Development Kit (eSDK) manual.
  11825. </para>
  11826. </glossdef>
  11827. </glossentry>
  11828. <glossentry id='var-SDKIMAGE_FEATURES'><glossterm>SDKIMAGE_FEATURES</glossterm>
  11829. <info>
  11830. 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'."
  11831. </info>
  11832. <glossdef>
  11833. <para role="glossdeffirst">
  11834. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11835. Equivalent to
  11836. <filename><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></filename>.
  11837. However, this variable applies to the SDK generated from an
  11838. image using the following command:
  11839. <literallayout class='monospaced'>
  11840. $ bitbake -c populate_sdk <replaceable>imagename</replaceable>
  11841. </literallayout>
  11842. </para>
  11843. </glossdef>
  11844. </glossentry>
  11845. <glossentry id='var-SDKMACHINE'><glossterm>SDKMACHINE</glossterm>
  11846. <info>
  11847. SDKMACHINE[doc] = "Specifies the architecture (i.e. i686 or x86_64) for which to build SDK items."
  11848. </info>
  11849. <glossdef>
  11850. <para role="glossdeffirst">
  11851. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11852. The machine for which the SDK is built.
  11853. In other words, the SDK is built such that it
  11854. runs on the target you specify with the
  11855. <filename>SDKMACHINE</filename> value.
  11856. The value points to a corresponding
  11857. <filename>.conf</filename> file under
  11858. <filename>conf/machine-sdk/</filename>.
  11859. </para>
  11860. <para>
  11861. You can use "i686" and "x86_64" as possible values
  11862. for this variable. The variable defaults to "i686"
  11863. and is set in the local.conf file in the Build Directory.
  11864. <literallayout class='monospaced'>
  11865. SDKMACHINE ?= "i686"
  11866. </literallayout>
  11867. <note>
  11868. You cannot set the <filename>SDKMACHINE</filename>
  11869. variable in your distribution configuration file.
  11870. If you do, the configuration will not take affect.
  11871. </note>
  11872. </para>
  11873. </glossdef>
  11874. </glossentry>
  11875. <glossentry id='var-SDKPATH'><glossterm>SDKPATH</glossterm>
  11876. <info>
  11877. SDKPATH[doc] = "Defines the path offered to the user for installation of the SDK that is generated by the OpenEmbedded build system."
  11878. </info>
  11879. <glossdef>
  11880. <para role="glossdeffirst">
  11881. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11882. Defines the path offered to the user for installation
  11883. of the SDK that is generated by the OpenEmbedded build
  11884. system.
  11885. The path appears as the default location for installing
  11886. the SDK when you run the SDK's installation script.
  11887. You can override the offered path when you run the
  11888. script.
  11889. </para>
  11890. </glossdef>
  11891. </glossentry>
  11892. <glossentry id='var-SDKTARGETSYSROOT'><glossterm>SDKTARGETSYSROOT</glossterm>
  11893. <info>
  11894. SDKTARGETSYSROOT[doc] = "Full path to the sysroot used for cross-compilation within an SDK as it will be when installed into the default SDKPATH."
  11895. </info>
  11896. <glossdef>
  11897. <para role="glossdeffirst">
  11898. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11899. The full path to the sysroot used for cross-compilation
  11900. within an SDK as it will be when installed into the
  11901. default
  11902. <link linkend='var-SDKPATH'><filename>SDKPATH</filename></link>.
  11903. </para>
  11904. </glossdef>
  11905. </glossentry>
  11906. <glossentry id='var-SECTION'><glossterm>SECTION</glossterm>
  11907. <info>
  11908. SECTION[doc] = "The section in which packages should be categorized. Package management utilities can make use of this variable."
  11909. </info>
  11910. <glossdef>
  11911. <para role="glossdeffirst">
  11912. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11913. The section in which packages should be categorized.
  11914. Package management utilities can make use of this variable.
  11915. </para>
  11916. </glossdef>
  11917. </glossentry>
  11918. <glossentry id='var-SELECTED_OPTIMIZATION'><glossterm>SELECTED_OPTIMIZATION</glossterm>
  11919. <info>
  11920. 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."
  11921. </info>
  11922. <glossdef>
  11923. <para role="glossdeffirst">
  11924. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11925. Specifies the optimization flags passed to the C compiler
  11926. when building for the target.
  11927. The flags are passed through the default value of the
  11928. <link linkend='var-TARGET_CFLAGS'><filename>TARGET_CFLAGS</filename></link>
  11929. variable.
  11930. </para>
  11931. <para>
  11932. The <filename>SELECTED_OPTIMIZATION</filename> variable
  11933. takes the value of
  11934. <filename><link linkend='var-FULL_OPTIMIZATION'>FULL_OPTIMIZATION</link></filename>
  11935. unless <filename><link linkend='var-DEBUG_BUILD'>DEBUG_BUILD</link></filename> = "1".
  11936. If that is the case, the value of
  11937. <filename><link linkend='var-DEBUG_OPTIMIZATION'>DEBUG_OPTIMIZATION</link></filename> is used.
  11938. </para>
  11939. </glossdef>
  11940. </glossentry>
  11941. <glossentry id='var-SERIAL_CONSOLE'><glossterm>SERIAL_CONSOLE</glossterm>
  11942. <info>
  11943. SERIAL_CONSOLE[doc] = "Defines the serial consoles (TTYs) to enable using getty."
  11944. </info>
  11945. <glossdef>
  11946. <para role="glossdeffirst">
  11947. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11948. Defines a serial console (TTY) to enable using
  11949. <ulink url='https://en.wikipedia.org/wiki/Getty_(Unix)'>getty</ulink>.
  11950. Provide a value that specifies the baud rate followed by
  11951. the TTY device name separated by a space.
  11952. You cannot specify more than one TTY device:
  11953. <literallayout class='monospaced'>
  11954. SERIAL_CONSOLE = "115200 ttyS0"
  11955. </literallayout>
  11956. <note>
  11957. The <filename>SERIAL_CONSOLE</filename> variable
  11958. is deprecated.
  11959. Please use the
  11960. <link linkend='var-SERIAL_CONSOLES'><filename>SERIAL_CONSOLES</filename></link>
  11961. variable.
  11962. </note>
  11963. </para>
  11964. </glossdef>
  11965. </glossentry>
  11966. <glossentry id='var-SERIAL_CONSOLES'><glossterm>SERIAL_CONSOLES</glossterm>
  11967. <info>
  11968. SERIAL_CONSOLES[doc] = "Defines the serial consoles (TTYs) to enable using getty."
  11969. </info>
  11970. <glossdef>
  11971. <para role="glossdeffirst">
  11972. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11973. Defines a serial console (TTY) to enable using
  11974. <ulink url='https://en.wikipedia.org/wiki/Getty_(Unix)'>getty</ulink>.
  11975. Provide a value that specifies the baud rate followed by
  11976. the TTY device name separated by a semicolon.
  11977. Use spaces to separate multiple devices:
  11978. <literallayout class='monospaced'>
  11979. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  11980. </literallayout>
  11981. </para>
  11982. </glossdef>
  11983. </glossentry>
  11984. <glossentry id='var-SERIAL_CONSOLES_CHECK'><glossterm>SERIAL_CONSOLES_CHECK</glossterm>
  11985. <info>
  11986. SERIAL_CONSOLES_CHECK[doc] = "Selected SERIAL_CONSOLES to check against /proc/console before enabling using getty. Supported only by SysVinit."
  11987. </info>
  11988. <glossdef>
  11989. <para role="glossdeffirst">
  11990. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  11991. Specifies serial consoles, which must be listed in
  11992. <link linkend='var-SERIAL_CONSOLES'><filename>SERIAL_CONSOLES</filename></link>,
  11993. to check against <filename>/proc/console</filename>
  11994. before enabling them using getty.
  11995. This variable allows aliasing in the format:
  11996. &lt;device&gt;:&lt;alias&gt;.
  11997. If a device was listed as "sclp_line0"
  11998. in <filename>/dev/</filename> and "ttyS0" was listed
  11999. in <filename>/proc/console</filename>, you would do the
  12000. following:
  12001. <literallayout class='monospaced'>
  12002. SERIAL_CONSOLES_CHECK = "slcp_line0:ttyS0"
  12003. </literallayout>
  12004. This variable is currently only supported with SysVinit
  12005. (i.e. not with systemd).
  12006. </para>
  12007. </glossdef>
  12008. </glossentry>
  12009. <glossentry id='var-SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS'><glossterm>SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS</glossterm>
  12010. <info>
  12011. 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."
  12012. </info>
  12013. <glossdef>
  12014. <para role="glossdeffirst">
  12015. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12016. A list of recipe dependencies that should not be used to
  12017. determine signatures of tasks from one recipe when they
  12018. depend on tasks from another recipe.
  12019. For example:
  12020. <literallayout class='monospaced'>
  12021. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  12022. </literallayout>
  12023. </para>
  12024. <para>
  12025. In the previous example, <filename>intone</filename>
  12026. depends on <filename>mplayer2</filename>.
  12027. </para>
  12028. <para>
  12029. You can use the special token <filename>"*"</filename> on
  12030. the left-hand side of the dependency to match all
  12031. recipes except the one on the right-hand side.
  12032. Here is an example:
  12033. <literallayout class='monospaced'>
  12034. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  12035. </literallayout>
  12036. </para>
  12037. <para>
  12038. In the previous example, all recipes except
  12039. <filename>quilt-native</filename> ignore task
  12040. signatures from the <filename>quilt-native</filename>
  12041. recipe when determining their task signatures.
  12042. </para>
  12043. <para>
  12044. Use of this variable is one mechanism to remove dependencies
  12045. that affect task signatures and thus force rebuilds when a
  12046. recipe changes.
  12047. <note><title>Caution</title>
  12048. If you add an inappropriate dependency for a recipe
  12049. relationship, the software might break during
  12050. runtime if the interface of the second recipe was
  12051. changed after the first recipe had been built.
  12052. </note>
  12053. </para>
  12054. </glossdef>
  12055. </glossentry>
  12056. <glossentry id='var-SIGGEN_EXCLUDERECIPES_ABISAFE'><glossterm>SIGGEN_EXCLUDERECIPES_ABISAFE</glossterm>
  12057. <info>
  12058. SIGGEN_EXCLUDERECIPES_ABISAFE[doc] = "A list of recipes that are completely stable and will never change."
  12059. </info>
  12060. <glossdef>
  12061. <para role="glossdeffirst">
  12062. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12063. A list of recipes that are completely stable and will
  12064. never change.
  12065. The ABI for the recipes in the list are presented by
  12066. output from the tasks run to build the recipe.
  12067. Use of this variable is one way to remove dependencies from
  12068. one recipe on another that affect task signatures and
  12069. thus force rebuilds when the recipe changes.
  12070. <note><title>Caution</title>
  12071. If you add an inappropriate variable to this list,
  12072. the software might break at runtime if the
  12073. interface of the recipe was changed after the other
  12074. had been built.
  12075. </note>
  12076. </para>
  12077. </glossdef>
  12078. </glossentry>
  12079. <glossentry id='var-SITEINFO_BITS'><glossterm>SITEINFO_BITS</glossterm>
  12080. <info>
  12081. SITEINFO_BITS[doc] = "Specifies the number of bits for the target system CPU."
  12082. </info>
  12083. <glossdef>
  12084. <para role="glossdeffirst">
  12085. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12086. Specifies the number of bits for the target system CPU.
  12087. The value should be either "32" or "64".
  12088. </para>
  12089. </glossdef>
  12090. </glossentry>
  12091. <glossentry id='var-SITEINFO_ENDIANNESS'><glossterm>SITEINFO_ENDIANNESS</glossterm>
  12092. <info>
  12093. 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'."
  12094. </info>
  12095. <glossdef>
  12096. <para role="glossdeffirst">
  12097. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12098. Specifies the endian byte order of the target system.
  12099. The value should be either "le" for little-endian or "be" for big-endian.
  12100. </para>
  12101. </glossdef>
  12102. </glossentry>
  12103. <glossentry id='var-SKIP_FILEDEPS'><glossterm>SKIP_FILEDEPS</glossterm>
  12104. <info>
  12105. SKIP_FILEDEPS[doc] = "Enables you to remove all files from
  12106. the "Provides" section of an RPM package."
  12107. </info>
  12108. <glossdef>
  12109. <para role="glossdeffirst">
  12110. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12111. Enables removal of all files from the "Provides" section of
  12112. an RPM package.
  12113. Removal of these files is required for packages containing
  12114. prebuilt binaries and libraries such as
  12115. <filename>libstdc++</filename> and
  12116. <filename>glibc</filename>.
  12117. </para>
  12118. <para>
  12119. To enable file removal, set the variable to "1" in your
  12120. <filename>conf/local.conf</filename> configuration file
  12121. in your:
  12122. <link linkend='build-directory'>Build Directory</link>.
  12123. <literallayout class='monospaced'>
  12124. SKIP_FILEDEPS = "1"
  12125. </literallayout>
  12126. </para>
  12127. </glossdef>
  12128. </glossentry>
  12129. <glossentry id='var-SOC_FAMILY'><glossterm>SOC_FAMILY</glossterm>
  12130. <info>
  12131. 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."
  12132. </info>
  12133. <glossdef>
  12134. <para role="glossdeffirst">
  12135. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12136. Groups together machines based upon the same family
  12137. of SOC (System On Chip).
  12138. You typically set this variable in a common
  12139. <filename>.inc</filename> file that you include in the
  12140. configuration files of all the machines.
  12141. <note>
  12142. You must include
  12143. <filename>conf/machine/include/soc-family.inc</filename>
  12144. for this variable to appear in
  12145. <link linkend='var-MACHINEOVERRIDES'><filename>MACHINEOVERRIDES</filename></link>.
  12146. </note>
  12147. </para>
  12148. </glossdef>
  12149. </glossentry>
  12150. <glossentry id='var-SOLIBS'><glossterm>SOLIBS</glossterm>
  12151. <info>
  12152. SOLIBS[doc] = "Defines the suffix for shared libraries used on the target platform."
  12153. </info>
  12154. <glossdef>
  12155. <para role="glossdeffirst">
  12156. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12157. Defines the suffix for shared libraries used on the
  12158. target platform.
  12159. By default, this suffix is ".so.*" for all Linux-based
  12160. systems and is defined in the
  12161. <filename>meta/conf/bitbake.conf</filename> configuration
  12162. file.
  12163. </para>
  12164. <para>
  12165. You will see this variable referenced in the default values
  12166. of <filename>FILES_${PN}</filename>.
  12167. </para>
  12168. </glossdef>
  12169. </glossentry>
  12170. <glossentry id='var-SOLIBSDEV'><glossterm>SOLIBSDEV</glossterm>
  12171. <info>
  12172. SOLIBSDEV[doc] = "Defines the suffix for the development symbolic link (symlink) for shared libraries on the target platform."
  12173. </info>
  12174. <glossdef>
  12175. <para role="glossdeffirst">
  12176. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12177. Defines the suffix for the development symbolic link
  12178. (symlink) for shared libraries on the target platform.
  12179. By default, this suffix is ".so" for Linux-based
  12180. systems and is defined in the
  12181. <filename>meta/conf/bitbake.conf</filename> configuration
  12182. file.
  12183. </para>
  12184. <para>
  12185. You will see this variable referenced in the default values
  12186. of <filename>FILES_${PN}-dev</filename>.
  12187. </para>
  12188. </glossdef>
  12189. </glossentry>
  12190. <glossentry id='var-SOURCE_MIRROR_FETCH'><glossterm>SOURCE_MIRROR_FETCH</glossterm>
  12191. <info>
  12192. SOURCE_MIRROR_FETCH[doc] = "Set as part of a source mirror generation script to skip COMPATIBLE_MACHINE and COMPATIBLE_HOST checks."
  12193. </info>
  12194. <glossdef>
  12195. <para role="glossdeffirst">
  12196. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12197. When you are fetching files to create a mirror of sources
  12198. (i.e. creating a source mirror), setting
  12199. <filename>SOURCE_MIRROR_FETCH</filename> to "1" in your
  12200. <filename>local.conf</filename> configuration file ensures
  12201. the source for all recipes are fetched regardless of
  12202. whether or not a recipe is compatible with the
  12203. configuration.
  12204. A recipe is considered incompatible with the currently
  12205. configured machine when either or both the
  12206. <link linkend='var-COMPATIBLE_MACHINE'><filename>COMPATIBLE_MACHINE</filename></link>
  12207. variable and
  12208. <link linkend='var-COMPATIBLE_HOST'><filename>COMPATIBLE_HOST</filename></link>
  12209. variables specify compatibility with a machine other
  12210. than that of the current machine or host.
  12211. <note><title>Warning</title>
  12212. Do not set the
  12213. <filename>SOURCE_MIRROR_FETCH</filename> variable
  12214. unless you are creating a source mirror.
  12215. In other words, do not set the variable during a
  12216. normal build.
  12217. </note>
  12218. </para>
  12219. </glossdef>
  12220. </glossentry>
  12221. <glossentry id='var-SOURCE_MIRROR_URL'><glossterm>SOURCE_MIRROR_URL</glossterm>
  12222. <info>
  12223. SOURCE_MIRROR_URL[doc] = "URL to source mirror that will be used before fetching from original SRC_URI."
  12224. </info>
  12225. <glossdef>
  12226. <para role="glossdeffirst">
  12227. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12228. Defines your own
  12229. <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  12230. from which to first fetch source before attempting to fetch
  12231. from the upstream specified in
  12232. <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>.
  12233. </para>
  12234. <para>
  12235. To use this variable, you must globally inherit the
  12236. <link linkend='ref-classes-own-mirrors'><filename>own-mirrors</filename></link>
  12237. class and then provide the URL to your mirrors.
  12238. Here is the general syntax:
  12239. <literallayout class='monospaced'>
  12240. INHERIT += "own-mirrors"
  12241. SOURCE_MIRROR_URL = "http://<replaceable>example</replaceable>.com/<replaceable>my_source_mirror</replaceable>"
  12242. </literallayout>
  12243. <note>
  12244. You can specify only a single URL in
  12245. <filename>SOURCE_MIRROR_URL</filename>.
  12246. </note>
  12247. </para>
  12248. </glossdef>
  12249. </glossentry>
  12250. <glossentry id='var-SPDXLICENSEMAP'><glossterm>SPDXLICENSEMAP</glossterm>
  12251. <info>
  12252. SPDXLICENSEMAP[doc] = "Maps commonly used license names to their SPDX counterparts found in meta/files/common-licenses/."
  12253. </info>
  12254. <glossdef>
  12255. <para role="glossdeffirst">
  12256. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12257. Maps commonly used license names to their SPDX counterparts
  12258. found in <filename>meta/files/common-licenses/</filename>.
  12259. For the default <filename>SPDXLICENSEMAP</filename>
  12260. mappings, see the
  12261. <filename>meta/conf/licenses.conf</filename> file.
  12262. </para>
  12263. <para>
  12264. For additional information, see the
  12265. <link linkend='var-LICENSE'><filename>LICENSE</filename></link>
  12266. variable.
  12267. </para>
  12268. </glossdef>
  12269. </glossentry>
  12270. <glossentry id='var-SPECIAL_PKGSUFFIX'><glossterm>SPECIAL_PKGSUFFIX</glossterm>
  12271. <info>
  12272. 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."
  12273. </info>
  12274. <glossdef>
  12275. <para role="glossdeffirst">
  12276. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12277. A list of prefixes for <link linkend='var-PN'><filename>PN</filename></link> used by the
  12278. OpenEmbedded build system to create variants of recipes or packages.
  12279. The list specifies the prefixes to strip off during certain circumstances
  12280. such as the generation of the <link linkend='var-BPN'><filename>BPN</filename></link> variable.
  12281. </para>
  12282. </glossdef>
  12283. </glossentry>
  12284. <glossentry id='var-SPL_BINARY'><glossterm>SPL_BINARY</glossterm>
  12285. <info>
  12286. SPL_BINARY[doc] = "The file type of the Secondary Program Loader (SPL)."
  12287. </info>
  12288. <glossdef>
  12289. <para role="glossdeffirst">
  12290. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12291. The file type for the Secondary Program Loader (SPL).
  12292. Some devices use an SPL from which to boot (e.g. the
  12293. BeagleBone development board).
  12294. For such cases, you can declare the file type of the
  12295. SPL binary in the <filename>u-boot.inc</filename> include
  12296. file, which is used in the U-Boot recipe.
  12297. </para>
  12298. <para>
  12299. The SPL file type is set to "null" by default in the
  12300. <filename>u-boot.inc</filename> file as follows:
  12301. <literallayout class='monospaced'>
  12302. # Some versions of u-boot build an SPL (Second Program Loader) image that
  12303. # should be packaged along with the u-boot binary as well as placed in the
  12304. # deploy directory. For those versions they can set the following variables
  12305. # to allow packaging the SPL.
  12306. SPL_BINARY ?= ""
  12307. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  12308. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  12309. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  12310. </literallayout>
  12311. The <filename>SPL_BINARY</filename> variable helps form
  12312. various <filename>SPL_*</filename> variables used by
  12313. the OpenEmbedded build system.
  12314. </para>
  12315. <para>
  12316. See the BeagleBone machine configuration example in the
  12317. "<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>"
  12318. section in the Yocto Project Board Support Package
  12319. Developer's Guide for additional information.
  12320. </para>
  12321. </glossdef>
  12322. </glossentry>
  12323. <glossentry id='var-SRC_URI'><glossterm>SRC_URI</glossterm>
  12324. <info>
  12325. 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."
  12326. </info>
  12327. <glossdef>
  12328. <para role="glossdeffirst">
  12329. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12330. The list of source files - local or remote.
  12331. This variable tells the OpenEmbedded build system which bits
  12332. to pull in for the build and how to pull them in.
  12333. For example, if the recipe or append file only needs to
  12334. fetch a tarball from the Internet, the recipe or
  12335. append file uses a single <filename>SRC_URI</filename>
  12336. entry.
  12337. On the other hand, if the recipe or append file needs to
  12338. fetch a tarball, apply two patches, and include a custom
  12339. file, the recipe or append file would include four
  12340. instances of the variable.
  12341. </para>
  12342. <para>
  12343. The following list explains the available URI protocols.
  12344. URI protocols are highly dependent on particular BitBake
  12345. Fetcher submodules.
  12346. Depending on the fetcher BitBake uses, various URL
  12347. parameters are employed.
  12348. For specifics on the supported Fetchers, see the
  12349. "<ulink url='&YOCTO_DOCS_BB_URL;#bb-fetchers'>Fetchers</ulink>"
  12350. section in the BitBake User Manual.
  12351. <itemizedlist>
  12352. <listitem><para><emphasis><filename>file://</filename> -</emphasis>
  12353. Fetches files, which are usually files shipped with
  12354. the
  12355. <link linkend='metadata'>Metadata</link>,
  12356. from the local machine (e.g.
  12357. <ulink url='&YOCTO_DOCS_OM_URL;#patching-dev-environment'>patch</ulink>
  12358. files).
  12359. The path is relative to the
  12360. <link linkend='var-FILESPATH'><filename>FILESPATH</filename></link>
  12361. variable.
  12362. Thus, the build system searches, in order, from the
  12363. following directories, which are assumed to be a
  12364. subdirectories of the directory in which the
  12365. recipe file (<filename>.bb</filename>) or
  12366. append file (<filename>.bbappend</filename>)
  12367. resides:
  12368. <itemizedlist>
  12369. <listitem><para><emphasis><filename>${BPN}</filename> -</emphasis>
  12370. The base recipe name without any special
  12371. suffix or version numbers.
  12372. </para></listitem>
  12373. <listitem><para><emphasis><filename>${BP}</filename> -</emphasis>
  12374. <filename>${<link linkend='var-BPN'>BPN</link>}-${PV}</filename>.
  12375. The base recipe name and version but without
  12376. any special package name suffix.
  12377. </para></listitem>
  12378. <listitem><para><emphasis>files -</emphasis>
  12379. Files within a directory, which is named
  12380. <filename>files</filename> and is also
  12381. alongside the recipe or append file.
  12382. </para></listitem>
  12383. </itemizedlist>
  12384. <note>
  12385. If you want the build system to pick up files
  12386. specified through a
  12387. <filename>SRC_URI</filename>
  12388. statement from your append file, you need to be
  12389. sure to extend the
  12390. <filename>FILESPATH</filename>
  12391. variable by also using the
  12392. <link linkend='var-FILESEXTRAPATHS'><filename>FILESEXTRAPATHS</filename></link>
  12393. variable from within your append file.
  12394. </note>
  12395. </para></listitem>
  12396. <listitem><para><emphasis><filename>bzr://</filename> -</emphasis> Fetches files from a
  12397. Bazaar revision control repository.</para></listitem>
  12398. <listitem><para><emphasis><filename>git://</filename> -</emphasis> Fetches files from a
  12399. Git revision control repository.</para></listitem>
  12400. <listitem><para><emphasis><filename>osc://</filename> -</emphasis> Fetches files from
  12401. an OSC (OpenSUSE Build service) revision control repository.</para></listitem>
  12402. <listitem><para><emphasis><filename>repo://</filename> -</emphasis> Fetches files from
  12403. a repo (Git) repository.</para></listitem>
  12404. <listitem><para><emphasis><filename>ccrc://</filename> -</emphasis>
  12405. Fetches files from a ClearCase repository.
  12406. </para></listitem>
  12407. <listitem><para><emphasis><filename>http://</filename> -</emphasis> Fetches files from
  12408. the Internet using <filename>http</filename>.</para></listitem>
  12409. <listitem><para><emphasis><filename>https://</filename> -</emphasis> Fetches files
  12410. from the Internet using <filename>https</filename>.</para></listitem>
  12411. <listitem><para><emphasis><filename>ftp://</filename> -</emphasis> Fetches files
  12412. from the Internet using <filename>ftp</filename>.</para></listitem>
  12413. <listitem><para><emphasis><filename>cvs://</filename> -</emphasis> Fetches files from
  12414. a CVS revision control repository.</para></listitem>
  12415. <listitem><para><emphasis><filename>hg://</filename> -</emphasis> Fetches files from
  12416. a Mercurial (<filename>hg</filename>) revision control repository.</para></listitem>
  12417. <listitem><para><emphasis><filename>p4://</filename> -</emphasis> Fetches files from
  12418. a Perforce (<filename>p4</filename>) revision control repository.</para></listitem>
  12419. <listitem><para><emphasis><filename>ssh://</filename> -</emphasis> Fetches files from
  12420. a secure shell.</para></listitem>
  12421. <listitem><para><emphasis><filename>svn://</filename> -</emphasis> Fetches files from
  12422. a Subversion (<filename>svn</filename>) revision control repository.</para></listitem>
  12423. </itemizedlist>
  12424. </para>
  12425. <para>
  12426. Standard and recipe-specific options for <filename>SRC_URI</filename> exist.
  12427. Here are standard options:
  12428. <itemizedlist>
  12429. <listitem><para><emphasis><filename>apply</filename> -</emphasis> Whether to apply
  12430. the patch or not.
  12431. The default action is to apply the patch.</para></listitem>
  12432. <listitem><para><emphasis><filename>striplevel</filename> -</emphasis> Which
  12433. striplevel to use when applying the patch.
  12434. The default level is 1.</para></listitem>
  12435. <listitem><para><emphasis><filename>patchdir</filename> -</emphasis> Specifies
  12436. the directory in which the patch should be applied.
  12437. The default is <filename>${</filename><link linkend='var-S'><filename>S</filename></link><filename>}</filename>.
  12438. </para></listitem>
  12439. </itemizedlist>
  12440. </para>
  12441. <para>
  12442. Here are options specific to recipes building code from a revision control system:
  12443. <itemizedlist>
  12444. <listitem><para><emphasis><filename>mindate</filename> -</emphasis>
  12445. Apply the patch only if
  12446. <link linkend='var-SRCDATE'><filename>SRCDATE</filename></link>
  12447. is equal to or greater than <filename>mindate</filename>.
  12448. </para></listitem>
  12449. <listitem><para><emphasis><filename>maxdate</filename> -</emphasis>
  12450. Apply the patch only if <filename>SRCDATE</filename>
  12451. is not later than <filename>mindate</filename>.
  12452. </para></listitem>
  12453. <listitem><para><emphasis><filename>minrev</filename> -</emphasis>
  12454. Apply the patch only if <filename>SRCREV</filename>
  12455. is equal to or greater than <filename>minrev</filename>.
  12456. </para></listitem>
  12457. <listitem><para><emphasis><filename>maxrev</filename> -</emphasis>
  12458. Apply the patch only if <filename>SRCREV</filename>
  12459. is not later than <filename>maxrev</filename>.
  12460. </para></listitem>
  12461. <listitem><para><emphasis><filename>rev</filename> -</emphasis>
  12462. Apply the patch only if <filename>SRCREV</filename>
  12463. is equal to <filename>rev</filename>.
  12464. </para></listitem>
  12465. <listitem><para><emphasis><filename>notrev</filename> -</emphasis>
  12466. Apply the patch only if <filename>SRCREV</filename>
  12467. is not equal to <filename>rev</filename>.
  12468. </para></listitem>
  12469. </itemizedlist>
  12470. </para>
  12471. <para>
  12472. Here are some additional options worth mentioning:
  12473. <itemizedlist>
  12474. <listitem><para><emphasis><filename>unpack</filename> -</emphasis> Controls
  12475. whether or not to unpack the file if it is an archive.
  12476. The default action is to unpack the file.</para></listitem>
  12477. <listitem><para><emphasis><filename>destsuffix</filename> -</emphasis> Places the file
  12478. (or extracts its contents) into the specified
  12479. subdirectory of <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  12480. when the Git fetcher is used.
  12481. </para></listitem>
  12482. <listitem><para><emphasis><filename>subdir</filename> -</emphasis> Places the file
  12483. (or extracts its contents) into the specified
  12484. subdirectory of <filename>WORKDIR</filename>
  12485. when the local (<filename>file://</filename>)
  12486. fetcher is used.
  12487. </para></listitem>
  12488. <listitem><para><emphasis><filename>localdir</filename> -</emphasis> Places the file
  12489. (or extracts its contents) into the specified
  12490. subdirectory of <filename>WORKDIR</filename> when
  12491. the CVS fetcher is used.
  12492. </para></listitem>
  12493. <listitem><para><emphasis><filename>subpath</filename> -</emphasis>
  12494. Limits the checkout to a specific subpath of the
  12495. tree when using the Git fetcher is used.
  12496. </para></listitem>
  12497. <listitem><para><emphasis><filename>name</filename> -</emphasis> Specifies a
  12498. name to be used for association with <filename>SRC_URI</filename> checksums
  12499. when you have more than one file specified in <filename>SRC_URI</filename>.
  12500. </para></listitem>
  12501. <listitem><para><emphasis><filename>downloadfilename</filename> -</emphasis> Specifies
  12502. the filename used when storing the downloaded file.</para></listitem>
  12503. </itemizedlist>
  12504. </para>
  12505. </glossdef>
  12506. </glossentry>
  12507. <glossentry id='var-SRC_URI_OVERRIDES_PACKAGE_ARCH'><glossterm>SRC_URI_OVERRIDES_PACKAGE_ARCH</glossterm>
  12508. <info>
  12509. 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."
  12510. </info>
  12511. <glossdef>
  12512. <para role="glossdeffirst">
  12513. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12514. By default, the OpenEmbedded build system automatically detects whether
  12515. <filename><link linkend='var-SRC_URI'>SRC_URI</link></filename>
  12516. contains files that are machine-specific.
  12517. If so, the build system automatically changes
  12518. <filename><link linkend='var-PACKAGE_ARCH'>PACKAGE_ARCH</link></filename>.
  12519. Setting this variable to "0" disables this behavior.
  12520. </para>
  12521. </glossdef>
  12522. </glossentry>
  12523. <glossentry id='var-SRCDATE'><glossterm>SRCDATE</glossterm>
  12524. <info>
  12525. 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)."
  12526. </info>
  12527. <glossdef>
  12528. <para role="glossdeffirst">
  12529. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12530. The date of the source code used to build the package.
  12531. This variable applies only if the source was fetched from a Source Code Manager (SCM).
  12532. </para>
  12533. </glossdef>
  12534. </glossentry>
  12535. <glossentry id='var-SRCPV'><glossterm>SRCPV</glossterm>
  12536. <info>
  12537. SRCPV[doc] = "Returns the version string of the current package. This string is used to help define the value of PV."
  12538. </info>
  12539. <glossdef>
  12540. <para role="glossdeffirst">
  12541. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12542. Returns the version string of the current package.
  12543. This string is used to help define the value of
  12544. <link linkend='var-PV'><filename>PV</filename></link>.
  12545. </para>
  12546. <para>
  12547. The <filename>SRCPV</filename> variable is defined in the
  12548. <filename>meta/conf/bitbake.conf</filename> configuration
  12549. file in the
  12550. <link linkend='source-directory'>Source Directory</link>
  12551. as follows:
  12552. <literallayout class='monospaced'>
  12553. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  12554. </literallayout>
  12555. </para>
  12556. <para>
  12557. Recipes that need to define <filename>PV</filename> do so
  12558. with the help of the <filename>SRCPV</filename>.
  12559. For example, the <filename>ofono</filename> recipe
  12560. (<filename>ofono_git.bb</filename>) located in
  12561. <filename>meta/recipes-connectivity</filename> in the
  12562. Source Directory defines <filename>PV</filename> as
  12563. follows:
  12564. <literallayout class='monospaced'>
  12565. PV = "0.12-git${SRCPV}"
  12566. </literallayout>
  12567. </para>
  12568. </glossdef>
  12569. </glossentry>
  12570. <glossentry id='var-SRCREV'><glossterm>SRCREV</glossterm>
  12571. <info>
  12572. SRCREV[doc] = "The revision of the source code used to build the package. This variable applies to Subversion, Git, Mercurial, and Bazaar only."
  12573. </info>
  12574. <glossdef>
  12575. <para role="glossdeffirst">
  12576. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12577. The revision of the source code used to build the package.
  12578. This variable applies to Subversion, Git, Mercurial, and
  12579. Bazaar only.
  12580. Note that if you want to build a fixed revision and you
  12581. want to avoid performing a query on the remote repository
  12582. every time BitBake parses your recipe, you should specify
  12583. a <filename>SRCREV</filename> that is a
  12584. full revision identifier and not just a tag.
  12585. <note>
  12586. For information on limitations when inheriting the
  12587. latest revision of software using
  12588. <filename>SRCREV</filename>, see the
  12589. <link linkend='var-AUTOREV'><filename>AUTOREV</filename></link>
  12590. variable description and the
  12591. "<ulink url='&YOCTO_DOCS_DEV_URL;#automatically-incrementing-a-binary-package-revision-number'>Automatically Incrementing a Binary Package Revision Number</ulink>"
  12592. section, which is in the Yocto Project Development
  12593. Tasks Manual.
  12594. </note>
  12595. </para>
  12596. </glossdef>
  12597. </glossentry>
  12598. <glossentry id='var-SSTATE_DIR'><glossterm>SSTATE_DIR</glossterm>
  12599. <info>
  12600. SSTATE_DIR[doc] = "The directory for the shared state cache."
  12601. </info>
  12602. <glossdef>
  12603. <para role="glossdeffirst">
  12604. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12605. The directory for the shared state cache.
  12606. </para>
  12607. </glossdef>
  12608. </glossentry>
  12609. <glossentry id='var-SSTATE_MIRROR_ALLOW_NETWORK'><glossterm>SSTATE_MIRROR_ALLOW_NETWORK</glossterm>
  12610. <info>
  12611. 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"."
  12612. </info>
  12613. <glossdef>
  12614. <para role="glossdeffirst">
  12615. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12616. If set to "1", allows fetches from
  12617. mirrors that are specified in
  12618. <link linkend='var-SSTATE_MIRRORS'><filename>SSTATE_MIRRORS</filename></link>
  12619. to work even when fetching from the network is
  12620. disabled by setting <filename>BB_NO_NETWORK</filename>
  12621. to "1".
  12622. Using the
  12623. <filename>SSTATE_MIRROR_ALLOW_NETWORK</filename>
  12624. variable is useful if you have set
  12625. <filename>SSTATE_MIRRORS</filename> to point to an
  12626. internal server for your shared state cache, but
  12627. you want to disable any other fetching from the network.
  12628. </para>
  12629. </glossdef>
  12630. </glossentry>
  12631. <glossentry id='var-SSTATE_MIRRORS'><glossterm>SSTATE_MIRRORS</glossterm>
  12632. <info>
  12633. 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."
  12634. </info>
  12635. <glossdef>
  12636. <para role="glossdeffirst">
  12637. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12638. Configures the OpenEmbedded build system to search other
  12639. mirror locations for prebuilt cache data objects before
  12640. building out the data.
  12641. This variable works like fetcher
  12642. <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link>
  12643. and <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
  12644. and points to the cache locations to check for the shared
  12645. objects.
  12646. </para>
  12647. <para>
  12648. You can specify a filesystem directory or a remote URL such
  12649. as HTTP or FTP.
  12650. The locations you specify need to contain the shared state
  12651. cache (sstate-cache) results from previous builds.
  12652. The sstate-cache you point to can also be from builds on
  12653. other machines.
  12654. </para>
  12655. <para>
  12656. If a mirror uses the same structure as
  12657. <link linkend='var-SSTATE_DIR'><filename>SSTATE_DIR</filename></link>,
  12658. you need to add
  12659. "PATH" at the end as shown in the examples below.
  12660. The build system substitutes the correct path within the
  12661. directory structure.
  12662. <literallayout class='monospaced'>
  12663. SSTATE_MIRRORS ?= "\
  12664. file://.* http://<replaceable>someserver</replaceable>.tld/share/sstate/PATH;downloadfilename=PATH \n \
  12665. file://.* file:///<replaceable>some-local-dir</replaceable>/sstate/PATH"
  12666. </literallayout>
  12667. </para>
  12668. </glossdef>
  12669. </glossentry>
  12670. <glossentry id='var-SSTATE_SCAN_FILES'><glossterm>SSTATE_SCAN_FILES</glossterm>
  12671. <info>
  12672. SSTATE_SCAN_FILES[doc] = "Controls the list of files the OpenEmbedded build system scans for hardcoded installation paths."
  12673. </info>
  12674. <glossdef>
  12675. <para role="glossdeffirst">
  12676. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12677. Controls the list of files the OpenEmbedded build system
  12678. scans for hardcoded installation paths. The variable uses a
  12679. space-separated list of filenames (not paths) with standard
  12680. wildcard characters allowed.
  12681. </para>
  12682. <para>
  12683. During a build, the OpenEmbedded build system creates a
  12684. shared state (sstate) object during the first stage of
  12685. preparing the sysroots. That object is scanned for
  12686. hardcoded paths for original installation locations.
  12687. The list of files that are scanned for paths is controlled
  12688. by the <filename>SSTATE_SCAN_FILES</filename> variable.
  12689. Typically, recipes add files they want to be scanned to the
  12690. value of <filename>SSTATE_SCAN_FILES</filename> rather than
  12691. the variable being comprehensively set. The
  12692. <link linkend='ref-classes-sstate'><filename>sstate</filename></link>
  12693. class specifies the default list of files.
  12694. </para>
  12695. <para>
  12696. For details on the process, see the
  12697. <link linkend='ref-classes-staging'><filename>staging</filename></link>
  12698. class.
  12699. </para>
  12700. </glossdef>
  12701. </glossentry>
  12702. <glossentry id='var-STAGING_BASE_LIBDIR_NATIVE'><glossterm>STAGING_BASE_LIBDIR_NATIVE</glossterm>
  12703. <info>
  12704. STAGING_BASE_LIBDIR_NATIVE[doc] = "Specifies the path to the /lib subdirectory of the sysroot directory for the build host."
  12705. </info>
  12706. <glossdef>
  12707. <para role="glossdeffirst">
  12708. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12709. Specifies the path to the <filename>/lib</filename>
  12710. subdirectory of the sysroot directory for the
  12711. build host.
  12712. </para>
  12713. </glossdef>
  12714. </glossentry>
  12715. <glossentry id='var-STAGING_BASELIBDIR'><glossterm>STAGING_BASELIBDIR</glossterm>
  12716. <info>
  12717. 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)."
  12718. </info>
  12719. <glossdef>
  12720. <para role="glossdeffirst">
  12721. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12722. Specifies the path to the <filename>/lib</filename>
  12723. subdirectory of the sysroot directory for the target
  12724. for which the current recipe is being built
  12725. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  12726. </para>
  12727. </glossdef>
  12728. </glossentry>
  12729. <glossentry id='var-STAGING_BINDIR'><glossterm>STAGING_BINDIR</glossterm>
  12730. <info>
  12731. 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)."
  12732. </info>
  12733. <glossdef>
  12734. <para role="glossdeffirst">
  12735. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12736. Specifies the path to the
  12737. <filename>/usr/bin</filename> subdirectory of the
  12738. sysroot directory for the target for which the current
  12739. recipe is being built
  12740. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  12741. </para>
  12742. </glossdef>
  12743. </glossentry>
  12744. <glossentry id='var-STAGING_BINDIR_CROSS'><glossterm>STAGING_BINDIR_CROSS</glossterm>
  12745. <info>
  12746. 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."
  12747. </info>
  12748. <glossdef>
  12749. <para role="glossdeffirst">
  12750. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12751. Specifies the path to the directory containing binary
  12752. configuration scripts.
  12753. These scripts provide configuration information for
  12754. other software that wants to make use of libraries or
  12755. include files provided by the software associated with
  12756. the script.
  12757. <note>
  12758. This style of build configuration has been largely
  12759. replaced by <filename>pkg-config</filename>.
  12760. Consequently, if <filename>pkg-config</filename>
  12761. is supported by the library to which you are linking,
  12762. it is recommended you use
  12763. <filename>pkg-config</filename> instead of a
  12764. provided configuration script.
  12765. </note>
  12766. </para>
  12767. </glossdef>
  12768. </glossentry>
  12769. <glossentry id='var-STAGING_BINDIR_NATIVE'><glossterm>STAGING_BINDIR_NATIVE</glossterm>
  12770. <info>
  12771. STAGING_BINDIR_NATIVE[doc] = "Specifies the path to the /usr/bin subdirectory of the sysroot directory for the build host."
  12772. </info>
  12773. <glossdef>
  12774. <para role="glossdeffirst">
  12775. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12776. Specifies the path to the
  12777. <filename>/usr/bin</filename> subdirectory of the
  12778. sysroot directory for the build host.
  12779. </para>
  12780. </glossdef>
  12781. </glossentry>
  12782. <glossentry id='var-STAGING_DATADIR'><glossterm>STAGING_DATADIR</glossterm>
  12783. <info>
  12784. 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)."
  12785. </info>
  12786. <glossdef>
  12787. <para role="glossdeffirst">
  12788. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12789. Specifies the path to the <filename>/usr/share</filename>
  12790. subdirectory of the sysroot directory for the target
  12791. for which the current recipe is being built
  12792. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  12793. </para>
  12794. </glossdef>
  12795. </glossentry>
  12796. <glossentry id='var-STAGING_DATADIR_NATIVE'><glossterm>STAGING_DATADIR_NATIVE</glossterm>
  12797. <info>
  12798. STAGING_DATADIR_NATIVE[doc] = "Specifies the path to the /usr/share subdirectory of the sysroot directory for the build host."
  12799. </info>
  12800. <glossdef>
  12801. <para role="glossdeffirst">
  12802. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12803. Specifies the path to the <filename>/usr/share</filename>
  12804. subdirectory of the sysroot directory for the build host.
  12805. </para>
  12806. </glossdef>
  12807. </glossentry>
  12808. <glossentry id='var-STAGING_DIR'><glossterm>STAGING_DIR</glossterm>
  12809. <info>
  12810. STAGING_DIR[doc] = "Helps construct the recipe-sysroots directory, which is used during packaging."
  12811. </info>
  12812. <glossdef>
  12813. <para role="glossdeffirst">
  12814. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12815. Helps construct the <filename>recipe-sysroots</filename>
  12816. directory, which is used during packaging.
  12817. </para>
  12818. <para>
  12819. For information on how staging for recipe-specific
  12820. sysroots occurs, see the
  12821. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  12822. task, the
  12823. "<ulink url='&YOCTO_DOCS_DEV_URL;#new-sharing-files-between-recipes'>Sharing Files Between Recipes</ulink>"
  12824. section in the Yocto Project Development Tasks Manual, the
  12825. "<ulink url='&YOCTO_DOCS_OM_URL;#configuration-compilation-and-staging-dev-environment'>Configuration, Compilation, and Staging</ulink>"
  12826. section in the Yocto Project Overview and Concepts Manual,
  12827. and the
  12828. <link linkend='var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></link>
  12829. variable.
  12830. <note>
  12831. Recipes should never write files directly under
  12832. the <filename>STAGING_DIR</filename> directory because
  12833. the OpenEmbedded build system
  12834. manages the directory automatically.
  12835. Instead, files should be installed to
  12836. <filename>${</filename><link linkend='var-D'><filename>D</filename></link><filename>}</filename>
  12837. within your recipe's
  12838. <link linkend='ref-tasks-install'><filename>do_install</filename></link>
  12839. task and then the OpenEmbedded build system will
  12840. stage a subset of those files into the sysroot.
  12841. </note>
  12842. </para>
  12843. </glossdef>
  12844. </glossentry>
  12845. <glossentry id='var-STAGING_DIR_HOST'><glossterm>STAGING_DIR_HOST</glossterm>
  12846. <info>
  12847. STAGING_DIR_HOST[doc] = "Specifies the path to the sysroot directory for the system that the component is built to run on."
  12848. </info>
  12849. <glossdef>
  12850. <para role="glossdeffirst">
  12851. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12852. Specifies the path to the sysroot directory for the system
  12853. on which the component is built to run (the system that
  12854. hosts the component).
  12855. For most recipes, this sysroot is the one in which that
  12856. recipe's
  12857. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  12858. task copies files.
  12859. Exceptions include <filename>-native</filename> recipes,
  12860. where the <filename>do_populate_sysroot</filename> task
  12861. instead uses
  12862. <link linkend='var-STAGING_DIR_NATIVE'><filename>STAGING_DIR_NATIVE</filename></link>.
  12863. Depending on the type of recipe and the build target,
  12864. <filename>STAGING_DIR_HOST</filename> can have the
  12865. following values:
  12866. <itemizedlist>
  12867. <listitem><para>
  12868. For recipes building for the target machine, the
  12869. value is
  12870. "${<link linkend='var-STAGING_DIR'>STAGING_DIR</link>}/${<link linkend='var-MACHINE'>MACHINE</link>}".
  12871. </para></listitem>
  12872. <listitem><para>
  12873. For native recipes building for the build host, the
  12874. value is empty given the assumption that when
  12875. building for the build host, the build host's own
  12876. directories should be used.
  12877. <note>
  12878. <para><filename>-native</filename> recipes are
  12879. not installed into host paths like such as
  12880. <filename>/usr</filename>.
  12881. Rather, these recipes are installed into
  12882. <filename>STAGING_DIR_NATIVE</filename>.
  12883. When compiling <filename>-native</filename>
  12884. recipes, standard build environment variables
  12885. such as
  12886. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  12887. and
  12888. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  12889. are set up so that both host paths and
  12890. <filename>STAGING_DIR_NATIVE</filename> are
  12891. searched for libraries and headers using, for
  12892. example, GCC's <filename>-isystem</filename>
  12893. option.</para>
  12894. <para>Thus, the emphasis is that the
  12895. <filename>STAGING_DIR*</filename> variables
  12896. should be viewed as input variables by tasks
  12897. such as
  12898. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>,
  12899. <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>,
  12900. and
  12901. <link linkend='ref-tasks-install'><filename>do_install</filename></link>.
  12902. Having the real system root correspond to
  12903. <filename>STAGING_DIR_HOST</filename> makes
  12904. conceptual sense for
  12905. <filename>-native</filename> recipes, as
  12906. they make use of host headers and libraries.
  12907. </para>
  12908. </note>
  12909. </para></listitem>
  12910. </itemizedlist>
  12911. </para>
  12912. </glossdef>
  12913. </glossentry>
  12914. <glossentry id='var-STAGING_DIR_NATIVE'><glossterm>STAGING_DIR_NATIVE</glossterm>
  12915. <info>
  12916. STAGING_DIR_NATIVE[doc] = "Specifies the path to the sysroot directory used when building components that run on the build host itself."
  12917. </info>
  12918. <glossdef>
  12919. <para role="glossdeffirst">
  12920. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12921. Specifies the path to the sysroot directory used when
  12922. building components that run on the build host itself.
  12923. </para>
  12924. </glossdef>
  12925. </glossentry>
  12926. <glossentry id='var-STAGING_DIR_TARGET'><glossterm>STAGING_DIR_TARGET</glossterm>
  12927. <info>
  12928. STAGING_DIR_TARGET[doc] = "Specifies the path to the sysroot used for the system for which the component generates code."
  12929. </info>
  12930. <glossdef>
  12931. <para role="glossdeffirst">
  12932. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12933. Specifies the path to the sysroot used for the system for
  12934. which the component generates code.
  12935. For components that do not generate code, which is the
  12936. majority, <filename>STAGING_DIR_TARGET</filename> is set
  12937. to match
  12938. <link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>.
  12939. </para>
  12940. <para>
  12941. Some recipes build binaries that can run on the target
  12942. system but those binaries in turn generate code for
  12943. another different system (e.g. cross-canadian recipes).
  12944. Using terminology from GNU, the primary system is referred
  12945. to as the "HOST" and the secondary, or different, system is
  12946. referred to as the "TARGET".
  12947. Thus, the binaries run on the "HOST" system
  12948. and generate binaries for the "TARGET" system.
  12949. The <filename>STAGING_DIR_HOST</filename> variable points
  12950. to the sysroot used for the "HOST" system, while
  12951. <filename>STAGING_DIR_TARGET</filename>
  12952. points to the sysroot used for the "TARGET" system.
  12953. </para>
  12954. </glossdef>
  12955. </glossentry>
  12956. <glossentry id='var-STAGING_ETCDIR_NATIVE'><glossterm>STAGING_ETCDIR_NATIVE</glossterm>
  12957. <info>
  12958. STAGING_ETCDIR_NATIVE[doc] = "Specifies the path to the /etc subdirectory of the sysroot directory for the build host."
  12959. </info>
  12960. <glossdef>
  12961. <para role="glossdeffirst">
  12962. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12963. Specifies the path to the <filename>/etc</filename>
  12964. subdirectory of the sysroot directory for the
  12965. build host.
  12966. </para>
  12967. </glossdef>
  12968. </glossentry>
  12969. <glossentry id='var-STAGING_EXECPREFIXDIR'><glossterm>STAGING_EXECPREFIXDIR</glossterm>
  12970. <info>
  12971. 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)."
  12972. </info>
  12973. <glossdef>
  12974. <para role="glossdeffirst">
  12975. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12976. Specifies the path to the <filename>/usr</filename>
  12977. subdirectory of the sysroot directory for the target
  12978. for which the current recipe is being built
  12979. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  12980. </para>
  12981. </glossdef>
  12982. </glossentry>
  12983. <glossentry id='var-STAGING_INCDIR'><glossterm>STAGING_INCDIR</glossterm>
  12984. <info>
  12985. 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)."
  12986. </info>
  12987. <glossdef>
  12988. <para role="glossdeffirst">
  12989. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  12990. Specifies the path to the
  12991. <filename>/usr/include</filename> subdirectory of the
  12992. sysroot directory for the target for which the current
  12993. recipe being built
  12994. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  12995. </para>
  12996. </glossdef>
  12997. </glossentry>
  12998. <glossentry id='var-STAGING_INCDIR_NATIVE'><glossterm>STAGING_INCDIR_NATIVE</glossterm>
  12999. <info>
  13000. STAGING_INCDIR_NATIVE[doc] = "Specifies the path to the /usr/include subdirectory of the sysroot directory for the build host."
  13001. </info>
  13002. <glossdef>
  13003. <para role="glossdeffirst">
  13004. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13005. Specifies the path to the <filename>/usr/include</filename>
  13006. subdirectory of the sysroot directory for the build host.
  13007. </para>
  13008. </glossdef>
  13009. </glossentry>
  13010. <glossentry id='var-STAGING_KERNEL_BUILDDIR'><glossterm>STAGING_KERNEL_BUILDDIR</glossterm>
  13011. <info>
  13012. STAGING_KERNEL_BUILDDIR[doc] = "Points to the directory containing the kernel build artifacts."
  13013. </info>
  13014. <glossdef>
  13015. <para role="glossdeffirst">
  13016. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13017. Points to the directory containing the kernel build
  13018. artifacts.
  13019. Recipes building software that needs to access kernel
  13020. build artifacts
  13021. (e.g. <filename>systemtap-uprobes</filename>) can look in
  13022. the directory specified with the
  13023. <filename>STAGING_KERNEL_BUILDDIR</filename> variable to
  13024. find these artifacts after the kernel has been built.
  13025. </para>
  13026. </glossdef>
  13027. </glossentry>
  13028. <glossentry id='var-STAGING_KERNEL_DIR'><glossterm>STAGING_KERNEL_DIR</glossterm>
  13029. <info>
  13030. STAGING_KERNEL_DIR[doc] = "The directory with kernel headers that are required to build out-of-tree modules."
  13031. </info>
  13032. <glossdef>
  13033. <para role="glossdeffirst">
  13034. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13035. The directory with kernel headers that are required to build out-of-tree
  13036. modules.
  13037. </para>
  13038. </glossdef>
  13039. </glossentry>
  13040. <glossentry id='var-STAGING_LIBDIR'><glossterm>STAGING_LIBDIR</glossterm>
  13041. <info>
  13042. 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)."
  13043. </info>
  13044. <glossdef>
  13045. <para role="glossdeffirst">
  13046. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13047. Specifies the path to the <filename>/usr/lib</filename>
  13048. subdirectory of the sysroot directory for the target for
  13049. which the current recipe is being built
  13050. (<link linkend='var-STAGING_DIR_HOST'><filename>STAGING_DIR_HOST</filename></link>).
  13051. </para>
  13052. </glossdef>
  13053. </glossentry>
  13054. <glossentry id='var-STAGING_LIBDIR_NATIVE'><glossterm>STAGING_LIBDIR_NATIVE</glossterm>
  13055. <info>
  13056. STAGING_LIBDIR_NATIVE[doc] = "Specifies the path to the /usr/lib subdirectory of the sysroot directory for the build host."
  13057. </info>
  13058. <glossdef>
  13059. <para role="glossdeffirst">
  13060. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13061. Specifies the path to the <filename>/usr/lib</filename>
  13062. subdirectory of the sysroot directory for the build host.
  13063. </para>
  13064. </glossdef>
  13065. </glossentry>
  13066. <glossentry id='var-STAMP'><glossterm>STAMP</glossterm>
  13067. <info>
  13068. 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."
  13069. </info>
  13070. <glossdef>
  13071. <para role="glossdeffirst">
  13072. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13073. Specifies the base path used to create recipe stamp files.
  13074. The path to an actual stamp file is constructed by evaluating this
  13075. string and then appending additional information.
  13076. Currently, the default assignment for <filename>STAMP</filename>
  13077. as set in the <filename>meta/conf/bitbake.conf</filename> file
  13078. is:
  13079. <literallayout class='monospaced'>
  13080. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  13081. </literallayout>
  13082. </para>
  13083. <para>
  13084. For information on how BitBake uses stamp files to determine
  13085. if a task should be rerun, see the
  13086. "<ulink url='&YOCTO_DOCS_OM_URL;#stamp-files-and-the-rerunning-of-tasks'>Stamp Files and the Rerunning of Tasks</ulink>"
  13087. section in the Yocto Project Overview and Concepts Manual.
  13088. </para>
  13089. <para>
  13090. See <link linkend='var-STAMPS_DIR'><filename>STAMPS_DIR</filename></link>,
  13091. <link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>,
  13092. <link linkend='var-PN'><filename>PN</filename></link>,
  13093. <link linkend='var-EXTENDPE'><filename>EXTENDPE</filename></link>,
  13094. <link linkend='var-PV'><filename>PV</filename></link>, and
  13095. <link linkend='var-PR'><filename>PR</filename></link> for related variable
  13096. information.
  13097. </para>
  13098. </glossdef>
  13099. </glossentry>
  13100. <glossentry id='var-STAMPS_DIR'><glossterm>STAMPS_DIR</glossterm>
  13101. <info>
  13102. STAMPS_DIR[doc] = "Specifies the base directory in which the OpenEmbedded build system places stamps."
  13103. </info>
  13104. <glossdef>
  13105. <para role="glossdeffirst">
  13106. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13107. Specifies the base directory in which the OpenEmbedded
  13108. build system places stamps.
  13109. The default directory is
  13110. <filename>${TMPDIR}/stamps</filename>.
  13111. </para>
  13112. </glossdef>
  13113. </glossentry>
  13114. <glossentry id='var-STRIP'><glossterm>STRIP</glossterm>
  13115. <info>
  13116. STRIP[doc] = "Minimal command and arguments to run 'strip' (strip symbols)."
  13117. </info>
  13118. <glossdef>
  13119. <para role="glossdeffirst">
  13120. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13121. The minimal command and arguments to run
  13122. <filename>strip</filename>, which is used to strip
  13123. symbols.
  13124. </para>
  13125. </glossdef>
  13126. </glossentry>
  13127. <glossentry id='var-SUMMARY'><glossterm>SUMMARY</glossterm>
  13128. <info>
  13129. 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."
  13130. </info>
  13131. <glossdef>
  13132. <para role="glossdeffirst">
  13133. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13134. The short (72 characters or less) summary of the binary package for packaging
  13135. systems such as <filename>opkg</filename>, <filename>rpm</filename>, or
  13136. <filename>dpkg</filename>.
  13137. By default, <filename>SUMMARY</filename> is used to define
  13138. the <link linkend='var-DESCRIPTION'><filename>DESCRIPTION</filename></link>
  13139. variable if <filename>DESCRIPTION</filename> is not set
  13140. in the recipe.
  13141. </para>
  13142. </glossdef>
  13143. </glossentry>
  13144. <glossentry id='var-SVNDIR'><glossterm>SVNDIR</glossterm>
  13145. <info>
  13146. SVNDIR[doc] = "The directory where Subversion checkouts are stored."
  13147. </info>
  13148. <glossdef>
  13149. <para role="glossdeffirst">
  13150. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13151. The directory in which files checked out of a Subversion
  13152. system are stored.
  13153. </para>
  13154. </glossdef>
  13155. </glossentry>
  13156. <glossentry id='var-SYSLINUX_DEFAULT_CONSOLE'><glossterm>SYSLINUX_DEFAULT_CONSOLE</glossterm>
  13157. <info>
  13158. SYSLINUX_DEFAULT_CONSOLE[doc] = "Specifies the kernel boot default console."
  13159. </info>
  13160. <glossdef>
  13161. <para role="glossdeffirst">
  13162. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13163. Specifies the kernel boot default console.
  13164. If you want to use a console other than the default,
  13165. set this variable in your recipe as follows where "X" is
  13166. the console number you want to use:
  13167. <literallayout class='monospaced'>
  13168. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  13169. </literallayout>
  13170. </para>
  13171. <para>
  13172. The
  13173. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13174. class initially sets this variable to null but then checks
  13175. for a value later.
  13176. </para>
  13177. </glossdef>
  13178. </glossentry>
  13179. <glossentry id='var-SYSLINUX_OPTS'><glossterm>SYSLINUX_OPTS</glossterm>
  13180. <info>
  13181. SYSLINUX_OPTS[doc] = "Lists additional options to add to the syslinux file."
  13182. </info>
  13183. <glossdef>
  13184. <para role="glossdeffirst">
  13185. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13186. Lists additional options to add to the syslinux file.
  13187. You need to set this variable in your recipe.
  13188. If you want to list multiple options, separate the options
  13189. with a semicolon character (<filename>;</filename>).
  13190. </para>
  13191. <para>
  13192. The
  13193. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13194. class uses this variable to create a set of options.
  13195. </para>
  13196. </glossdef>
  13197. </glossentry>
  13198. <glossentry id='var-SYSLINUX_SERIAL'><glossterm>SYSLINUX_SERIAL</glossterm>
  13199. <info>
  13200. SYSLINUX_SERIAL[doc] = "Specifies the alternate serial port or turns it off."
  13201. </info>
  13202. <glossdef>
  13203. <para role="glossdeffirst">
  13204. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13205. Specifies the alternate serial port or turns it off.
  13206. To turn off serial, set this variable to an empty string
  13207. in your recipe.
  13208. The variable's default value is set in the
  13209. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13210. class as follows:
  13211. <literallayout class='monospaced'>
  13212. SYSLINUX_SERIAL ?= "0 115200"
  13213. </literallayout>
  13214. </para>
  13215. <para>
  13216. The class checks for and uses the variable as needed.
  13217. </para>
  13218. </glossdef>
  13219. </glossentry>
  13220. <glossentry id='var-SYSLINUX_SPLASH'><glossterm>SYSLINUX_SPLASH</glossterm>
  13221. <info>
  13222. SYSLINUX_SPLASH[doc] = "An .LSS file used as the background for the VGA boot menu when you use the boot menu."
  13223. </info>
  13224. <glossdef>
  13225. <para role="glossdeffirst">
  13226. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13227. An <filename>.LSS</filename> file used as the background
  13228. for the VGA boot menu when you use the boot menu.
  13229. You need to set this variable in your recipe.
  13230. </para>
  13231. <para>
  13232. The
  13233. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13234. class checks for this variable and if found, the
  13235. OpenEmbedded build system installs the splash screen.
  13236. </para>
  13237. </glossdef>
  13238. </glossentry>
  13239. <glossentry id='var-SYSLINUX_SERIAL_TTY'><glossterm>SYSLINUX_SERIAL_TTY</glossterm>
  13240. <info>
  13241. SYSLINUX_SERIAL_TTY[doc] = "Specifies the alternate console=tty... kernel boot argument."
  13242. </info>
  13243. <glossdef>
  13244. <para role="glossdeffirst">
  13245. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13246. Specifies the alternate console=tty... kernel boot argument.
  13247. The variable's default value is set in the
  13248. <link linkend='ref-classes-syslinux'><filename>syslinux</filename></link>
  13249. class as follows:
  13250. <literallayout class='monospaced'>
  13251. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  13252. </literallayout>
  13253. </para>
  13254. <para>
  13255. The class checks for and uses the variable as needed.
  13256. </para>
  13257. </glossdef>
  13258. </glossentry>
  13259. <glossentry id='var-SYSROOT_DESTDIR'><glossterm>SYSROOT_DESTDIR</glossterm>
  13260. <info>
  13261. 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."
  13262. </info>
  13263. <glossdef>
  13264. <para role="glossdeffirst">
  13265. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13266. Points to the temporary directory under the work directory
  13267. (default
  13268. "<filename>${</filename><link linkend='var-WORKDIR'><filename>WORKDIR</filename></link><filename>}/sysroot-destdir</filename>")
  13269. where the files populated into the sysroot are assembled
  13270. during the
  13271. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  13272. task.
  13273. </para>
  13274. </glossdef>
  13275. </glossentry>
  13276. <glossentry id='var-SYSROOT_DIRS'><glossterm>SYSROOT_DIRS</glossterm>
  13277. <info>
  13278. SYSROOT_DIRS[doc] = "Directories that are staged into the sysroot by the do_populate_sysroot task."
  13279. </info>
  13280. <glossdef>
  13281. <para role="glossdeffirst">
  13282. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13283. Directories that are staged into the sysroot by the
  13284. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  13285. task.
  13286. By default, the following directories are staged:
  13287. <literallayout class='monospaced'>
  13288. SYSROOT_DIRS = " \
  13289. ${includedir} \
  13290. ${libdir} \
  13291. ${base_libdir} \
  13292. ${nonarch_base_libdir} \
  13293. ${datadir} \
  13294. "
  13295. </literallayout>
  13296. </para>
  13297. </glossdef>
  13298. </glossentry>
  13299. <glossentry id='var-SYSROOT_DIRS_BLACKLIST'><glossterm>SYSROOT_DIRS_BLACKLIST</glossterm>
  13300. <info>
  13301. SYSROOT_DIRS_BLACKLIST[doc] = "Directories that are not staged into the sysroot by the do_populate_sysroot task."
  13302. </info>
  13303. <glossdef>
  13304. <para role="glossdeffirst">
  13305. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13306. Directories that are not staged into the sysroot by the
  13307. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  13308. task.
  13309. You can use this variable to exclude certain subdirectories
  13310. of directories listed in
  13311. <link linkend='var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></link>
  13312. from staging.
  13313. By default, the following directories are not staged:
  13314. <literallayout class='monospaced'>
  13315. SYSROOT_DIRS_BLACKLIST = " \
  13316. ${mandir} \
  13317. ${docdir} \
  13318. ${infodir} \
  13319. ${datadir}/locale \
  13320. ${datadir}/applications \
  13321. ${datadir}/fonts \
  13322. ${datadir}/pixmaps \
  13323. "
  13324. </literallayout>
  13325. </para>
  13326. </glossdef>
  13327. </glossentry>
  13328. <glossentry id='var-SYSROOT_DIRS_NATIVE'><glossterm>SYSROOT_DIRS_NATIVE</glossterm>
  13329. <info>
  13330. 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."
  13331. </info>
  13332. <glossdef>
  13333. <para role="glossdeffirst">
  13334. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13335. Extra directories staged into the sysroot by the
  13336. <link linkend='ref-tasks-populate_sysroot'><filename>do_populate_sysroot</filename></link>
  13337. task for <filename>-native</filename> recipes, in addition
  13338. to those specified in
  13339. <link linkend='var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></link>.
  13340. By default, the following extra directories are staged:
  13341. <literallayout class='monospaced'>
  13342. SYSROOT_DIRS_NATIVE = " \
  13343. ${bindir} \
  13344. ${sbindir} \
  13345. ${base_bindir} \
  13346. ${base_sbindir} \
  13347. ${libexecdir} \
  13348. ${sysconfdir} \
  13349. ${localstatedir} \
  13350. "
  13351. </literallayout>
  13352. <note>
  13353. Programs built by <filename>-native</filename> recipes
  13354. run directly from the sysroot
  13355. (<link linkend='var-STAGING_DIR_NATIVE'><filename>STAGING_DIR_NATIVE</filename></link>),
  13356. which is why additional directories containing program
  13357. executables and supporting files need to be staged.
  13358. </note>
  13359. </para>
  13360. </glossdef>
  13361. </glossentry>
  13362. <glossentry id='var-SYSROOT_PREPROCESS_FUNCS'><glossterm>SYSROOT_PREPROCESS_FUNCS</glossterm>
  13363. <info>
  13364. 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."
  13365. </info>
  13366. <glossdef>
  13367. <para role="glossdeffirst">
  13368. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13369. A list of functions to execute after files are staged into
  13370. the sysroot.
  13371. These functions are usually used to apply additional
  13372. processing on the staged files, or to stage additional
  13373. files.
  13374. </para>
  13375. </glossdef>
  13376. </glossentry>
  13377. <glossentry id='var-SYSTEMD_AUTO_ENABLE'><glossterm>SYSTEMD_AUTO_ENABLE</glossterm>
  13378. <info>
  13379. 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."
  13380. </info>
  13381. <glossdef>
  13382. <para role="glossdeffirst">
  13383. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13384. When inheriting the
  13385. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  13386. class, this variable specifies whether the specified service
  13387. in
  13388. <link linkend='var-SYSTEMD_SERVICE'><filename>SYSTEMD_SERVICE</filename></link>
  13389. should start automatically or not.
  13390. By default, the service is enabled to automatically start
  13391. at boot time.
  13392. The default setting is in the
  13393. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  13394. class as follows:
  13395. <literallayout class='monospaced'>
  13396. SYSTEMD_AUTO_ENABLE ??= "enable"
  13397. </literallayout>
  13398. </para>
  13399. <para>
  13400. You can disable the service by setting the variable to
  13401. "disable".
  13402. </para>
  13403. </glossdef>
  13404. </glossentry>
  13405. <glossentry id='var-SYSTEMD_BOOT_CFG'><glossterm>SYSTEMD_BOOT_CFG</glossterm>
  13406. <info>
  13407. 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."
  13408. </info>
  13409. <glossdef>
  13410. <para role="glossdeffirst">
  13411. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13412. When
  13413. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  13414. is set to "systemd-boot", the
  13415. <filename>SYSTEMD_BOOT_CFG</filename> variable specifies the
  13416. configuration file that should be used.
  13417. By default, the
  13418. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  13419. class sets the <filename>SYSTEMD_BOOT_CFG</filename> as
  13420. follows:
  13421. <literallayout class='monospaced'>
  13422. SYSTEMD_BOOT_CFG ?= "${<link linkend='var-S'>S</link>}/loader.conf"
  13423. </literallayout>
  13424. </para>
  13425. <para>
  13426. For information on Systemd-boot, see the
  13427. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  13428. </para>
  13429. </glossdef>
  13430. </glossentry>
  13431. <glossentry id='var-SYSTEMD_BOOT_ENTRIES'><glossterm>SYSTEMD_BOOT_ENTRIES</glossterm>
  13432. <info>
  13433. 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."
  13434. </info>
  13435. <glossdef>
  13436. <para role="glossdeffirst">
  13437. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13438. When
  13439. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  13440. is set to "systemd-boot", the
  13441. <filename>SYSTEMD_BOOT_ENTRIES</filename> variable specifies
  13442. a list of entry files
  13443. (<filename>*.conf</filename>) to install that contain
  13444. one boot entry per file.
  13445. By default, the
  13446. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  13447. class sets the <filename>SYSTEMD_BOOT_ENTRIES</filename> as
  13448. follows:
  13449. <literallayout class='monospaced'>
  13450. SYSTEMD_BOOT_ENTRIES ?= ""
  13451. </literallayout>
  13452. </para>
  13453. <para>
  13454. For information on Systemd-boot, see the
  13455. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  13456. </para>
  13457. </glossdef>
  13458. </glossentry>
  13459. <glossentry id='var-SYSTEMD_BOOT_TIMEOUT'><glossterm>SYSTEMD_BOOT_TIMEOUT</glossterm>
  13460. <info>
  13461. SYSTEMD_BOOT_TIMEOUT[doc] = "When EFI_PROVIDER is set to "systemd-boot", the SYSTEMD_BOOT_TIMEOUT variable specifies the boot menu timeout in seconds."
  13462. </info>
  13463. <glossdef>
  13464. <para role="glossdeffirst">
  13465. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13466. When
  13467. <link linkend='var-EFI_PROVIDER'><filename>EFI_PROVIDER</filename></link>
  13468. is set to "systemd-boot", the
  13469. <filename>SYSTEMD_BOOT_TIMEOUT</filename> variable specifies
  13470. the boot menu timeout in seconds.
  13471. By default, the
  13472. <link linkend='ref-classes-systemd-boot'><filename>systemd-boot</filename></link>
  13473. class sets the <filename>SYSTEMD_BOOT_TIMEOUT</filename> as
  13474. follows:
  13475. <literallayout class='monospaced'>
  13476. SYSTEMD_BOOT_TIMEOUT ?= "10"
  13477. </literallayout>
  13478. </para>
  13479. <para>
  13480. For information on Systemd-boot, see the
  13481. <ulink url='http://www.freedesktop.org/wiki/Software/systemd/systemd-boot/'>Systemd-boot documentation</ulink>.
  13482. </para>
  13483. </glossdef>
  13484. </glossentry>
  13485. <glossentry id='var-SYSTEMD_PACKAGES'><glossterm>SYSTEMD_PACKAGES</glossterm>
  13486. <info>
  13487. 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."
  13488. </info>
  13489. <glossdef>
  13490. <para role="glossdeffirst">
  13491. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13492. When inheriting the
  13493. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  13494. class, this variable locates the systemd unit files when
  13495. they are not found in the main recipe's package.
  13496. By default, the
  13497. <filename>SYSTEMD_PACKAGES</filename> variable is set
  13498. such that the systemd unit files are assumed to reside in
  13499. the recipes main package:
  13500. <literallayout class='monospaced'>
  13501. SYSTEMD_PACKAGES ?= "${PN}"
  13502. </literallayout>
  13503. </para>
  13504. <para>
  13505. If these unit files are not in this recipe's main
  13506. package, you need to use
  13507. <filename>SYSTEMD_PACKAGES</filename> to list the package
  13508. or packages in which the build system can find the systemd
  13509. unit files.
  13510. </para>
  13511. </glossdef>
  13512. </glossentry>
  13513. <glossentry id='var-SYSTEMD_SERVICE'><glossterm>SYSTEMD_SERVICE</glossterm>
  13514. <info>
  13515. SYSTEMD_SERVICE[doc] = "For recipes that inherit the systemd class, this variable specifies the systemd service name for a package."
  13516. </info>
  13517. <glossdef>
  13518. <para role="glossdeffirst">
  13519. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13520. When inheriting the
  13521. <link linkend='ref-classes-systemd'><filename>systemd</filename></link>
  13522. class, this variable specifies the systemd service name for
  13523. a package.
  13524. </para>
  13525. <para>
  13526. When you specify this file in your recipe, use a package
  13527. name override to indicate the package to which the value
  13528. applies.
  13529. Here is an example from the connman recipe:
  13530. <literallayout class='monospaced'>
  13531. SYSTEMD_SERVICE_${PN} = "connman.service"
  13532. </literallayout>
  13533. </para>
  13534. </glossdef>
  13535. </glossentry>
  13536. <glossentry id='var-SYSVINIT_ENABLED_GETTYS'><glossterm>SYSVINIT_ENABLED_GETTYS</glossterm>
  13537. <info>
  13538. SYSVINIT_ENABLED_GETTYS[doc] = "Specifies which virtual terminals should run a getty, the default is '1'."
  13539. </info>
  13540. <glossdef>
  13541. <para role="glossdeffirst">
  13542. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13543. When using
  13544. <ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-enabling-system-services'>SysVinit</ulink>,
  13545. specifies a space-separated list of the virtual terminals
  13546. that should run a
  13547. <ulink url='http://en.wikipedia.org/wiki/Getty_%28Unix%29'>getty</ulink>
  13548. (allowing login), assuming
  13549. <link linkend='var-USE_VT'><filename>USE_VT</filename></link>
  13550. is not set to "0".
  13551. </para>
  13552. <para>
  13553. The default value for
  13554. <filename>SYSVINIT_ENABLED_GETTYS</filename> is "1"
  13555. (i.e. only run a getty on the first virtual terminal).
  13556. </para>
  13557. </glossdef>
  13558. </glossentry>
  13559. </glossdiv>
  13560. <glossdiv id='var-glossary-t'><title>T</title>
  13561. <glossentry id='var-T'><glossterm>T</glossterm>
  13562. <info>
  13563. 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."
  13564. </info>
  13565. <glossdef>
  13566. <para role="glossdeffirst">
  13567. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13568. This variable points to a directory were BitBake places
  13569. temporary files, which consist mostly of task logs and
  13570. scripts, when building a particular recipe.
  13571. The variable is typically set as follows:
  13572. <literallayout class='monospaced'>
  13573. T = "${WORKDIR}/temp"
  13574. </literallayout>
  13575. </para>
  13576. <para>
  13577. The <link linkend='var-WORKDIR'><filename>WORKDIR</filename></link>
  13578. is the directory into which BitBake unpacks and builds the
  13579. recipe.
  13580. The default <filename>bitbake.conf</filename> file sets this variable.</para>
  13581. <para>The <filename>T</filename> variable is not to be confused with
  13582. the <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link> variable,
  13583. which points to the root of the directory tree where BitBake
  13584. places the output of an entire build.
  13585. </para>
  13586. </glossdef>
  13587. </glossentry>
  13588. <glossentry id='var-TARGET_ARCH'><glossterm>TARGET_ARCH</glossterm>
  13589. <info>
  13590. TARGET_ARCH[doc] = "The architecture of the device being built. The OpenEmbedded build system supports the following architectures: arm, mips, ppc, x86, x86-64."
  13591. </info>
  13592. <glossdef>
  13593. <para role="glossdeffirst">
  13594. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13595. The target machine's architecture.
  13596. The OpenEmbedded build system supports many
  13597. architectures.
  13598. Here is an example list of architectures supported.
  13599. This list is by no means complete as the architecture
  13600. is configurable:
  13601. <literallayout class='monospaced'>
  13602. arm
  13603. i586
  13604. x86_64
  13605. powerpc
  13606. powerpc64
  13607. mips
  13608. mipsel
  13609. </literallayout>
  13610. </para>
  13611. <para>
  13612. For additional information on machine architectures, see
  13613. the
  13614. <link linkend='var-TUNE_ARCH'><filename>TUNE_ARCH</filename></link>
  13615. variable.
  13616. </para>
  13617. </glossdef>
  13618. </glossentry>
  13619. <glossentry id='var-TARGET_AS_ARCH'><glossterm>TARGET_AS_ARCH</glossterm>
  13620. <info>
  13621. TARGET_AS_ARCH[doc] = "Specifies architecture-specific assembler flags for the target system."
  13622. </info>
  13623. <glossdef>
  13624. <para role="glossdeffirst">
  13625. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13626. Specifies architecture-specific assembler flags for the
  13627. target system.
  13628. <filename>TARGET_AS_ARCH</filename> is initialized from
  13629. <link linkend='var-TUNE_ASARGS'><filename>TUNE_ASARGS</filename></link>
  13630. by default in the BitBake configuration file
  13631. (<filename>meta/conf/bitbake.conf</filename>):
  13632. <literallayout class='monospaced'>
  13633. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  13634. </literallayout>
  13635. </para>
  13636. </glossdef>
  13637. </glossentry>
  13638. <glossentry id='var-TARGET_CC_ARCH'><glossterm>TARGET_CC_ARCH</glossterm>
  13639. <info>
  13640. TARGET_CC_ARCH[doc] = "Specifies architecture-specific C compiler flags for the target system."
  13641. </info>
  13642. <glossdef>
  13643. <para role="glossdeffirst">
  13644. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13645. Specifies architecture-specific C compiler flags for the
  13646. target system.
  13647. <filename>TARGET_CC_ARCH</filename> is initialized from
  13648. <link linkend='var-TUNE_CCARGS'><filename>TUNE_CCARGS</filename></link>
  13649. by default.
  13650. <note>
  13651. It is a common workaround to append
  13652. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  13653. to <filename>TARGET_CC_ARCH</filename>
  13654. in recipes that build software for the target that
  13655. would not otherwise respect the exported
  13656. <filename>LDFLAGS</filename> variable.
  13657. </note>
  13658. </para>
  13659. </glossdef>
  13660. </glossentry>
  13661. <glossentry id='var-TARGET_CC_KERNEL_ARCH'><glossterm>TARGET_CC_KERNEL_ARCH</glossterm>
  13662. <info>
  13663. TARGET_CC_KERNEL_ARCH[doc] = "This is a specific kernel compiler flag for a CPU or Application Binary Interface (ABI) tune."
  13664. </info>
  13665. <glossdef>
  13666. <para role="glossdeffirst">
  13667. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13668. This is a specific kernel compiler flag for a CPU or
  13669. Application Binary Interface (ABI) tune.
  13670. The flag is used rarely and only for cases where a
  13671. userspace
  13672. <link linkend='var-TUNE_CCARGS'><filename>TUNE_CCARGS</filename></link>
  13673. is not compatible with the kernel compilation.
  13674. The <filename>TARGET_CC_KERNEL_ARCH</filename> variable
  13675. allows the kernel (and associated modules) to use a
  13676. different configuration.
  13677. See the
  13678. <filename>meta/conf/machine/include/arm/feature-arm-thumb.inc</filename>
  13679. file in the
  13680. <link linkend='source-directory'>Source Directory</link>
  13681. for an example.
  13682. </para>
  13683. </glossdef>
  13684. </glossentry>
  13685. <glossentry id='var-TARGET_CFLAGS'><glossterm>TARGET_CFLAGS</glossterm>
  13686. <info>
  13687. TARGET_CFLAGS[doc] = "Flags passed to the C compiler for the target system. This variable evaluates to the same as CFLAGS."
  13688. </info>
  13689. <glossdef>
  13690. <para role="glossdeffirst">
  13691. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13692. Specifies the flags to pass to the C compiler when building
  13693. for the target.
  13694. When building in the target context,
  13695. <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link>
  13696. is set to the value of this variable by default.
  13697. </para>
  13698. <para>
  13699. Additionally, the SDK's environment setup script sets
  13700. the <filename>CFLAGS</filename> variable in the environment
  13701. to the <filename>TARGET_CFLAGS</filename> value so that
  13702. executables built using the SDK also have the flags
  13703. applied.
  13704. </para>
  13705. </glossdef>
  13706. </glossentry>
  13707. <glossentry id='var-TARGET_CPPFLAGS'><glossterm>TARGET_CPPFLAGS</glossterm>
  13708. <info>
  13709. 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."
  13710. </info>
  13711. <glossdef>
  13712. <para role="glossdeffirst">
  13713. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13714. Specifies the flags to pass to the C pre-processor
  13715. (i.e. to both the C and the C++ compilers) when building
  13716. for the target.
  13717. When building in the target context,
  13718. <link linkend='var-CPPFLAGS'><filename>CPPFLAGS</filename></link>
  13719. is set to the value of this variable by default.
  13720. </para>
  13721. <para>
  13722. Additionally, the SDK's environment setup script sets
  13723. the <filename>CPPFLAGS</filename> variable in the
  13724. environment to the <filename>TARGET_CPPFLAGS</filename>
  13725. value so that executables built using the SDK also have
  13726. the flags applied.
  13727. </para>
  13728. </glossdef>
  13729. </glossentry>
  13730. <glossentry id='var-TARGET_CXXFLAGS'><glossterm>TARGET_CXXFLAGS</glossterm>
  13731. <info>
  13732. TARGET_CXXFLAGS[doc] = "Specifies the flags to pass to the C++ compiler when building for the target."
  13733. </info>
  13734. <glossdef>
  13735. <para role="glossdeffirst">
  13736. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13737. Specifies the flags to pass to the C++ compiler when
  13738. building for the target.
  13739. When building in the target context,
  13740. <link linkend='var-CXXFLAGS'><filename>CXXFLAGS</filename></link>
  13741. is set to the value of this variable by default.
  13742. </para>
  13743. <para>
  13744. Additionally, the SDK's environment setup script sets
  13745. the <filename>CXXFLAGS</filename> variable in the
  13746. environment to the <filename>TARGET_CXXFLAGS</filename>
  13747. value so that executables built using the SDK also have
  13748. the flags applied.
  13749. </para>
  13750. </glossdef>
  13751. </glossentry>
  13752. <glossentry id='var-TARGET_FPU'><glossterm>TARGET_FPU</glossterm>
  13753. <info>
  13754. 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."
  13755. </info>
  13756. <glossdef>
  13757. <para role="glossdeffirst">
  13758. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13759. Specifies the method for handling FPU code.
  13760. For FPU-less targets, which include most ARM CPUs, the variable must be
  13761. set to "soft".
  13762. If not, the kernel emulation gets used, which results in a performance penalty.
  13763. </para>
  13764. </glossdef>
  13765. </glossentry>
  13766. <glossentry id='var-TARGET_LD_ARCH'><glossterm>TARGET_LD_ARCH</glossterm>
  13767. <info>
  13768. TARGET_LD_ARCH[doc] = "Specifies architecture-specific linker flags for the target system."
  13769. </info>
  13770. <glossdef>
  13771. <para role="glossdeffirst">
  13772. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13773. Specifies architecture-specific linker flags for the
  13774. target system.
  13775. <filename>TARGET_LD_ARCH</filename> is initialized from
  13776. <link linkend='var-TUNE_LDARGS'><filename>TUNE_LDARGS</filename></link>
  13777. by default in the BitBake configuration file
  13778. (<filename>meta/conf/bitbake.conf</filename>):
  13779. <literallayout class='monospaced'>
  13780. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  13781. </literallayout>
  13782. </para>
  13783. </glossdef>
  13784. </glossentry>
  13785. <glossentry id='var-TARGET_LDFLAGS'><glossterm>TARGET_LDFLAGS</glossterm>
  13786. <info>
  13787. TARGET_LDFLAGS[doc] = "Specifies the flags to pass to the linker when building for the target."
  13788. </info>
  13789. <glossdef>
  13790. <para role="glossdeffirst">
  13791. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13792. Specifies the flags to pass to the linker when building
  13793. for the target.
  13794. When building in the target context,
  13795. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  13796. is set to the value of this variable by default.
  13797. </para>
  13798. <para>
  13799. Additionally, the SDK's environment setup script sets
  13800. the
  13801. <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
  13802. variable in the environment to the
  13803. <filename>TARGET_LDFLAGS</filename> value so that
  13804. executables built using the SDK also have the flags
  13805. applied.
  13806. </para>
  13807. </glossdef>
  13808. </glossentry>
  13809. <glossentry id='var-TARGET_OS'><glossterm>TARGET_OS</glossterm>
  13810. <info>
  13811. TARGET_OS[doc] = "Specifies the target's operating system."
  13812. </info>
  13813. <glossdef>
  13814. <para role="glossdeffirst">
  13815. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13816. Specifies the target's operating system.
  13817. The variable can be set to "linux" for glibc-based systems
  13818. (GNU C Library) and to "linux-musl" for musl libc.
  13819. For ARM/EABI targets, "linux-gnueabi" and "linux-musleabi"
  13820. possible values exist.
  13821. </para>
  13822. </glossdef>
  13823. </glossentry>
  13824. <glossentry id='var-TARGET_PREFIX'><glossterm>TARGET_PREFIX</glossterm>
  13825. <info>
  13826. TARGET_PREFIX[doc] = "The prefix used for the toolchain binary target tools."
  13827. </info>
  13828. <glossdef>
  13829. <para role="glossdeffirst">
  13830. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13831. Specifies the prefix used for the toolchain binary target
  13832. tools.
  13833. </para>
  13834. <para>
  13835. Depending on the type of recipe and the build target,
  13836. <filename>TARGET_PREFIX</filename> is set as follows:
  13837. <itemizedlist>
  13838. <listitem><para>
  13839. For recipes building for the target machine,
  13840. the value is
  13841. "${<link linkend='var-TARGET_SYS'>TARGET_SYS</link>}-".
  13842. </para></listitem>
  13843. <listitem><para>
  13844. For native recipes, the build system sets the
  13845. variable to the value of
  13846. <filename>BUILD_PREFIX</filename>.
  13847. </para></listitem>
  13848. <listitem><para>
  13849. For native SDK recipes
  13850. (<filename>nativesdk</filename>), the
  13851. build system sets the variable to the value of
  13852. <filename>SDK_PREFIX</filename>.
  13853. </para></listitem>
  13854. </itemizedlist>
  13855. </para>
  13856. </glossdef>
  13857. </glossentry>
  13858. <glossentry id='var-TARGET_SYS'><glossterm>TARGET_SYS</glossterm>
  13859. <info>
  13860. TARGET_SYS[doc] = "The target system is comprised of TARGET_ARCH,TARGET_VENDOR and TARGET_OS."
  13861. </info>
  13862. <glossdef>
  13863. <para role="glossdeffirst">
  13864. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13865. Specifies the system, including the architecture and the
  13866. operating system, for which the build is occurring in
  13867. the context of the current recipe.
  13868. </para>
  13869. <para>
  13870. The OpenEmbedded build system automatically sets this
  13871. variable based on
  13872. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>,
  13873. <link linkend='var-TARGET_VENDOR'><filename>TARGET_VENDOR</filename></link>,
  13874. and
  13875. <link linkend='var-TARGET_OS'><filename>TARGET_OS</filename></link>
  13876. variables.
  13877. <note>
  13878. You do not need to set the
  13879. <filename>TARGET_SYS</filename> variable yourself.
  13880. </note>
  13881. </para>
  13882. <para>
  13883. Consider these two examples:
  13884. <itemizedlist>
  13885. <listitem><para>
  13886. Given a native recipe on a 32-bit, x86 machine
  13887. running Linux, the value is "i686-linux".
  13888. </para></listitem>
  13889. <listitem><para>
  13890. Given a recipe being built for a little-endian,
  13891. MIPS target running Linux, the value might be
  13892. "mipsel-linux".
  13893. </para></listitem>
  13894. </itemizedlist>
  13895. </para>
  13896. </glossdef>
  13897. </glossentry>
  13898. <glossentry id='var-TARGET_VENDOR'><glossterm>TARGET_VENDOR</glossterm>
  13899. <info>
  13900. TARGET_VENDOR[doc] = "The name of the target vendor."
  13901. </info>
  13902. <glossdef>
  13903. <para role="glossdeffirst">
  13904. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13905. Specifies the name of the target vendor.
  13906. </para>
  13907. </glossdef>
  13908. </glossentry>
  13909. <glossentry id='var-TCLIBCAPPEND'><glossterm>TCLIBCAPPEND</glossterm>
  13910. <info>
  13911. TCLIBCAPPEND[doc] = "Specifies a suffix appended to TMPDIR that identifies the libc variant for the build."
  13912. </info>
  13913. <glossdef>
  13914. <para role="glossdeffirst">
  13915. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13916. Specifies a suffix to be appended onto the
  13917. <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link>
  13918. value.
  13919. The suffix identifies the <filename>libc</filename> variant
  13920. for building.
  13921. When you are building for multiple variants with the same
  13922. <link linkend='build-directory'>Build Directory</link>,
  13923. this mechanism ensures that output for different
  13924. <filename>libc</filename> variants is kept separate to
  13925. avoid potential conflicts.
  13926. </para>
  13927. <para>
  13928. In the <filename>defaultsetup.conf</filename> file, the
  13929. default value of <filename>TCLIBCAPPEND</filename> is
  13930. "-${TCLIBC}".
  13931. However, distros such as poky, which normally only support
  13932. one <filename>libc</filename> variant, set
  13933. <filename>TCLIBCAPPEND</filename> to "" in their distro
  13934. configuration file resulting in no suffix being applied.
  13935. </para>
  13936. </glossdef>
  13937. </glossentry>
  13938. <glossentry id='var-TCLIBC'><glossterm>TCLIBC</glossterm>
  13939. <info>
  13940. TCLIBC[doc] = "Specifies GNU standard C library (libc) variant to use during the build process. You can select 'glibc' or 'musl'."
  13941. </info>
  13942. <glossdef>
  13943. <para role="glossdeffirst">
  13944. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13945. Specifies the GNU standard C library (<filename>libc</filename>)
  13946. variant to use during the build process.
  13947. This variable replaces <filename>POKYLIBC</filename>, which is no longer
  13948. supported.
  13949. </para>
  13950. <para>
  13951. You can select "glibc" or "musl".
  13952. </para>
  13953. </glossdef>
  13954. </glossentry>
  13955. <glossentry id='var-TCMODE'><glossterm>TCMODE</glossterm>
  13956. <info>
  13957. TCMODE[doc] = "Enables an external toolchain (where provided by an additional layer) if set to a value other than 'default'."
  13958. </info>
  13959. <glossdef>
  13960. <para role="glossdeffirst">
  13961. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  13962. Specifies the toolchain selector.
  13963. <filename>TCMODE</filename> controls the characteristics
  13964. of the generated packages and images by telling the
  13965. OpenEmbedded build system which toolchain profile to use.
  13966. By default, the OpenEmbedded build system builds its own
  13967. internal toolchain.
  13968. The variable's default value is "default", which uses
  13969. that internal toolchain.
  13970. <note>
  13971. If <filename>TCMODE</filename> is set to a value
  13972. other than "default", then it is your responsibility
  13973. to ensure that the toolchain is compatible with the
  13974. default toolchain.
  13975. Using older or newer versions of these components
  13976. might cause build problems.
  13977. See the Release Notes for the Yocto Project release
  13978. for the specific components with which the toolchain
  13979. must be compatible.
  13980. To access the Release Notes, go to the
  13981. <ulink url='&YOCTO_HOME_URL;/software-overview/downloads/'>Downloads</ulink>
  13982. page on the Yocto Project website and click on the
  13983. "RELEASE INFORMATION" link for the appropriate
  13984. release.
  13985. </note>
  13986. </para>
  13987. <para>
  13988. The <filename>TCMODE</filename> variable is similar to
  13989. <link linkend='var-TCLIBC'><filename>TCLIBC</filename></link>,
  13990. which controls the variant of the GNU standard C library
  13991. (<filename>libc</filename>) used during the build process:
  13992. <filename>glibc</filename> or <filename>musl</filename>.
  13993. </para>
  13994. <para>
  13995. With additional layers, it is possible to use a pre-compiled
  13996. external toolchain.
  13997. One example is the Sourcery G++ Toolchain.
  13998. The support for this toolchain resides in the separate
  13999. <trademark class='registered'>Mentor Graphics</trademark>
  14000. <filename>meta-sourcery</filename> layer at
  14001. <ulink url='http://github.com/MentorEmbedded/meta-sourcery/'></ulink>.
  14002. </para>
  14003. <para>
  14004. The layer's <filename>README</filename> file contains
  14005. information on how to use the Sourcery G++ Toolchain as
  14006. an external toolchain.
  14007. In summary, you must be sure to add the layer to your
  14008. <filename>bblayers.conf</filename> file in front of the
  14009. <filename>meta</filename> layer and then set the
  14010. <filename>EXTERNAL_TOOLCHAIN</filename>
  14011. variable in your <filename>local.conf</filename> file
  14012. to the location in which you installed the toolchain.
  14013. </para>
  14014. <para>
  14015. The fundamentals used for this example apply to any
  14016. external toolchain.
  14017. You can use <filename>meta-sourcery</filename> as a
  14018. template for adding support for other external toolchains.
  14019. </para>
  14020. </glossdef>
  14021. </glossentry>
  14022. <glossentry id='var-TEST_EXPORT_DIR'><glossterm>TEST_EXPORT_DIR</glossterm>
  14023. <info>
  14024. TEST_EXPORT_DIR[doc] = "The location the OpenEmbedded build system uses to export tests when the TEST_EXPORT_ONLY variable is set to "1"."
  14025. </info>
  14026. <glossdef>
  14027. <para role="glossdeffirst">
  14028. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14029. The location the OpenEmbedded build system uses to export
  14030. tests when the
  14031. <link linkend='var-TEST_EXPORT_ONLY'><filename>TEST_EXPORT_ONLY</filename></link>
  14032. variable is set to "1".
  14033. </para>
  14034. <para>
  14035. The <filename>TEST_EXPORT_DIR</filename> variable defaults
  14036. to <filename>"${TMPDIR}/testimage/${PN}"</filename>.
  14037. </para>
  14038. </glossdef>
  14039. </glossentry>
  14040. <glossentry id='var-TEST_EXPORT_ONLY'><glossterm>TEST_EXPORT_ONLY</glossterm>
  14041. <info>
  14042. 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."
  14043. </info>
  14044. <glossdef>
  14045. <para role="glossdeffirst">
  14046. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14047. Specifies to export the tests only.
  14048. Set this variable to "1" if you do not want to run the
  14049. tests but you want them to be exported in a manner that
  14050. you to run them outside of the build system.
  14051. </para>
  14052. </glossdef>
  14053. </glossentry>
  14054. <glossentry id='var-TEST_IMAGE'><glossterm>TEST_IMAGE</glossterm>
  14055. <info>
  14056. 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."
  14057. </info>
  14058. <glossdef>
  14059. <para role="glossdeffirst">
  14060. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14061. Automatically runs the series of automated tests for
  14062. images when an image is successfully built.
  14063. </para>
  14064. <para>
  14065. These tests are written in Python making use of the
  14066. <filename>unittest</filename> module, and the majority of
  14067. them run commands on the target system over
  14068. <filename>ssh</filename>.
  14069. You can set this variable to "1" in your
  14070. <filename>local.conf</filename> file in the
  14071. <link linkend='build-directory'>Build Directory</link>
  14072. to have the OpenEmbedded build system automatically run
  14073. these tests after an image successfully builds:
  14074. <literallayout class='monospaced'>
  14075. TEST_IMAGE = "1"
  14076. </literallayout>
  14077. For more information on enabling, running, and writing
  14078. these tests, see the
  14079. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  14080. section in the Yocto Project Development Tasks Manual and
  14081. the
  14082. "<link linkend='ref-classes-testimage*'><filename>testimage*.bbclass</filename></link>"
  14083. section.
  14084. </para>
  14085. </glossdef>
  14086. </glossentry>
  14087. <glossentry id='var-TEST_LOG_DIR'><glossterm>TEST_LOG_DIR</glossterm>
  14088. <info>
  14089. TEST_LOG_DIR[doc] = "Holds the SSH log and the boot log for QEMU machines. The TEST_LOG_DIR variable defaults to "${WORKDIR}/testimage"."
  14090. </info>
  14091. <glossdef>
  14092. <para role="glossdeffirst">
  14093. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14094. Holds the SSH log and the boot log for QEMU machines.
  14095. The <filename>TEST_LOG_DIR</filename> variable defaults
  14096. to <filename>"${WORKDIR}/testimage"</filename>.
  14097. <note>
  14098. Actual test results reside in the task log
  14099. (<filename>log.do_testimage</filename>), which is in
  14100. the <filename>${WORKDIR}/temp/</filename> directory.
  14101. </note>
  14102. </para>
  14103. </glossdef>
  14104. </glossentry>
  14105. <glossentry id='var-TEST_POWERCONTROL_CMD'><glossterm>TEST_POWERCONTROL_CMD</glossterm>
  14106. <info>
  14107. TEST_POWERCONTROL_CMD[doc] = "For automated hardware testing, specifies the command to use to control the power of the target machine under test"
  14108. </info>
  14109. <glossdef>
  14110. <para role="glossdeffirst">
  14111. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14112. For automated hardware testing, specifies the command to
  14113. use to control the power of the target machine under test.
  14114. Typically, this command would point to a script that
  14115. performs the appropriate action (e.g. interacting
  14116. with a web-enabled power strip).
  14117. The specified command should expect to receive as the last
  14118. argument "off", "on" or "cycle" specifying to power off,
  14119. on, or cycle (power off and then power on) the device,
  14120. respectively.
  14121. </para>
  14122. </glossdef>
  14123. </glossentry>
  14124. <glossentry id='var-TEST_POWERCONTROL_EXTRA_ARGS'><glossterm>TEST_POWERCONTROL_EXTRA_ARGS</glossterm>
  14125. <info>
  14126. TEST_POWERCONTROL_EXTRA_ARGS[doc] = "For automated hardware testing, specifies additional arguments to pass through to the command specified in TEST_POWERCONTROL_CMD"
  14127. </info>
  14128. <glossdef>
  14129. <para role="glossdeffirst">
  14130. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14131. For automated hardware testing, specifies additional
  14132. arguments to pass through to the command specified in
  14133. <link linkend='var-TEST_POWERCONTROL_CMD'><filename>TEST_POWERCONTROL_CMD</filename></link>.
  14134. Setting <filename>TEST_POWERCONTROL_EXTRA_ARGS</filename>
  14135. is optional.
  14136. You can use it if you wish, for example, to separate the
  14137. machine-specific and non-machine-specific parts of the
  14138. arguments.
  14139. </para>
  14140. </glossdef>
  14141. </glossentry>
  14142. <glossentry id='var-TEST_QEMUBOOT_TIMEOUT'><glossterm>TEST_QEMUBOOT_TIMEOUT</glossterm>
  14143. <info>
  14144. TEST_QEMUBOOT_TIMEOUT[doc] = "The time in seconds allowed for an image to boot before automated runtime tests begin to run against an image."
  14145. </info>
  14146. <glossdef>
  14147. <para role="glossdeffirst">
  14148. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14149. The time in seconds allowed for an image to boot before
  14150. automated runtime tests begin to run against an
  14151. image.
  14152. The default timeout period to allow the boot process to
  14153. reach the login prompt is 500 seconds.
  14154. You can specify a different value in the
  14155. <filename>local.conf</filename> file.
  14156. </para>
  14157. <para>
  14158. For more information on testing images, see the
  14159. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  14160. section in the Yocto Project Development Tasks Manual.
  14161. </para>
  14162. </glossdef>
  14163. </glossentry>
  14164. <glossentry id='var-TEST_SERIALCONTROL_CMD'><glossterm>TEST_SERIALCONTROL_CMD</glossterm>
  14165. <info>
  14166. 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."
  14167. </info>
  14168. <glossdef>
  14169. <para role="glossdeffirst">
  14170. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14171. For automated hardware testing, specifies the command
  14172. to use to connect to the serial console of the target
  14173. machine under test.
  14174. This command simply needs to connect to the serial console
  14175. and forward that connection to standard input and output
  14176. as any normal terminal program does.
  14177. </para>
  14178. <para>
  14179. For example, to use the Picocom terminal program on
  14180. serial device <filename>/dev/ttyUSB0</filename> at
  14181. 115200bps, you would set the variable as follows:
  14182. <literallayout class='monospaced'>
  14183. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  14184. </literallayout>
  14185. </para>
  14186. </glossdef>
  14187. </glossentry>
  14188. <glossentry id='var-TEST_SERIALCONTROL_EXTRA_ARGS'><glossterm>TEST_SERIALCONTROL_EXTRA_ARGS</glossterm>
  14189. <info>
  14190. TEST_SERIALCONTROL_EXTRA_ARGS[doc] = "For automated hardware testing, specifies additional arguments to pass through to the command specified in TEST_SERIALCONTROL_CMD."
  14191. </info>
  14192. <glossdef>
  14193. <para role="glossdeffirst">
  14194. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14195. For automated hardware testing, specifies additional
  14196. arguments to pass through to the command specified in
  14197. <link linkend='var-TEST_SERIALCONTROL_CMD'><filename>TEST_SERIALCONTROL_CMD</filename></link>.
  14198. Setting <filename>TEST_SERIALCONTROL_EXTRA_ARGS</filename>
  14199. is optional.
  14200. You can use it if you wish, for example, to separate the
  14201. machine-specific and non-machine-specific parts of the
  14202. command.
  14203. </para>
  14204. </glossdef>
  14205. </glossentry>
  14206. <glossentry id='var-TEST_SERVER_IP'><glossterm>TEST_SERVER_IP</glossterm>
  14207. <info>
  14208. TEST_SERVER_IP[doc] = "The IP address of the build machine (host machine). This IP address is usually automatically detected."
  14209. </info>
  14210. <glossdef>
  14211. <para role="glossdeffirst">
  14212. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14213. The IP address of the build machine (host machine).
  14214. This IP address is usually automatically detected.
  14215. However, if detection fails, this variable needs to be set
  14216. to the IP address of the build machine (i.e. where
  14217. the build is taking place).
  14218. <note>
  14219. The <filename>TEST_SERVER_IP</filename> variable
  14220. is only used for a small number of tests such as
  14221. the "dnf" test suite, which needs to download
  14222. packages from
  14223. <filename>WORKDIR/oe-rootfs-repo</filename>.
  14224. </note>
  14225. </para>
  14226. </glossdef>
  14227. </glossentry>
  14228. <glossentry id='var-TEST_TARGET'><glossterm>TEST_TARGET</glossterm>
  14229. <info>
  14230. TEST_TARGET[doc] = "For automated runtime testing, specifies the method of deploying the image and running tests on the target machine."
  14231. </info>
  14232. <glossdef>
  14233. <para role="glossdeffirst">
  14234. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14235. Specifies the target controller to use when running tests
  14236. against a test image.
  14237. The default controller to use is "QemuTarget":
  14238. <literallayout class='monospaced'>
  14239. TEST_TARGET = "QemuTarget"
  14240. </literallayout>
  14241. </para>
  14242. <para>
  14243. A target controller is a class that defines how an
  14244. image gets deployed on a target and how a target is started.
  14245. A layer can extend the controllers by adding a module
  14246. in the layer's <filename>/lib/oeqa/controllers</filename>
  14247. directory and by inheriting the
  14248. <filename>BaseTarget</filename> class, which is an abstract
  14249. class that cannot be used as a value of
  14250. <filename>TEST_TARGET</filename>.
  14251. </para>
  14252. <para>
  14253. You can provide the following arguments with
  14254. <filename>TEST_TARGET</filename>:
  14255. <itemizedlist>
  14256. <listitem><para><emphasis>"QemuTarget":</emphasis>
  14257. Boots a QEMU image and runs the tests.
  14258. See the
  14259. "<ulink url='&YOCTO_DOCS_DEV_URL;#qemu-image-enabling-tests'>Enabling Runtime Tests on QEMU</ulink>"
  14260. section in the Yocto Project Development Tasks
  14261. Manual for more information.
  14262. </para></listitem>
  14263. <listitem><para><emphasis>"SimpleRemoteTarget":</emphasis>
  14264. Runs the tests on target hardware that is already
  14265. up and running.
  14266. The hardware can be on the network or it can be
  14267. a device running an image on QEMU.
  14268. You must also set
  14269. <link linkend='var-TEST_TARGET_IP'><filename>TEST_TARGET_IP</filename></link>
  14270. when you use "SimpleRemoteTarget".
  14271. <note>
  14272. This argument is defined in
  14273. <filename>meta/lib/oeqa/controllers/simpleremote.py</filename>.
  14274. </note>
  14275. </para></listitem>
  14276. </itemizedlist>
  14277. </para>
  14278. <para>
  14279. For information on running tests on hardware, see the
  14280. "<ulink url='&YOCTO_DOCS_DEV_URL;#hardware-image-enabling-tests'>Enabling Runtime Tests on Hardware</ulink>"
  14281. section in the Yocto Project Development Tasks Manual.
  14282. </para>
  14283. </glossdef>
  14284. </glossentry>
  14285. <glossentry id='var-TEST_TARGET_IP'><glossterm>TEST_TARGET_IP</glossterm>
  14286. <info>
  14287. TEST_TARGET_IP[doc] = "The IP address of your hardware under test."
  14288. </info>
  14289. <glossdef>
  14290. <para role="glossdeffirst">
  14291. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14292. The IP address of your hardware under test.
  14293. The <filename>TEST_TARGET_IP</filename> variable has no
  14294. effect when
  14295. <link linkend='var-TEST_TARGET'><filename>TEST_TARGET</filename></link>
  14296. is set to "qemu".
  14297. </para>
  14298. <para>
  14299. When you specify the IP address, you can also include a
  14300. port.
  14301. Here is an example:
  14302. <literallayout class='monospaced'>
  14303. TEST_TARGET_IP = "192.168.1.4:2201"
  14304. </literallayout>
  14305. Specifying a port is useful when SSH is started on a
  14306. non-standard port or in cases when your hardware under test
  14307. is behind a firewall or network that is not directly
  14308. accessible from your host and you need to do port address
  14309. translation.
  14310. </para>
  14311. </glossdef>
  14312. </glossentry>
  14313. <glossentry id='var-TEST_SUITES'><glossterm>TEST_SUITES</glossterm>
  14314. <info>
  14315. TEST_SUITES[doc] = "An ordered list of tests (modules) to run against an image when performing automated runtime testing."
  14316. </info>
  14317. <glossdef>
  14318. <para role="glossdeffirst">
  14319. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14320. An ordered list of tests (modules) to run against
  14321. an image when performing automated runtime testing.
  14322. </para>
  14323. <para>
  14324. The OpenEmbedded build system provides a core set of tests
  14325. that can be used against images.
  14326. <note>
  14327. Currently, there is only support for running these tests
  14328. under QEMU.
  14329. </note>
  14330. Tests include <filename>ping</filename>,
  14331. <filename>ssh</filename>, <filename>df</filename> among
  14332. others.
  14333. You can add your own tests to the list of tests by
  14334. appending <filename>TEST_SUITES</filename> as follows:
  14335. <literallayout class='monospaced'>
  14336. TEST_SUITES_append = " <replaceable>mytest</replaceable>"
  14337. </literallayout>
  14338. Alternatively, you can provide the "auto" option to
  14339. have all applicable tests run against the image.
  14340. <literallayout class='monospaced'>
  14341. TEST_SUITES_append = " auto"
  14342. </literallayout>
  14343. Using this option causes the build system to automatically
  14344. run tests that are applicable to the image.
  14345. Tests that are not applicable are skipped.
  14346. </para>
  14347. <para>
  14348. The order in which tests are run is important.
  14349. Tests that depend on another test must appear later in the
  14350. list than the test on which they depend.
  14351. For example, if you append the list of tests with two
  14352. tests (<filename>test_A</filename> and
  14353. <filename>test_B</filename>) where
  14354. <filename>test_B</filename> is dependent on
  14355. <filename>test_A</filename>, then you must order the tests
  14356. as follows:
  14357. <literallayout class='monospaced'>
  14358. TEST_SUITES = " test_A test_B"
  14359. </literallayout>
  14360. </para>
  14361. <para>
  14362. For more information on testing images, see the
  14363. "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
  14364. section in the Yocto Project Development Tasks Manual.
  14365. </para>
  14366. </glossdef>
  14367. </glossentry>
  14368. <glossentry id='var-THISDIR'><glossterm>THISDIR</glossterm>
  14369. <info>
  14370. THISDIR[doc] = "The directory in which the file BitBake is currently parsing is located."
  14371. </info>
  14372. <glossdef>
  14373. <para role="glossdeffirst">
  14374. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14375. The directory in which the file BitBake is currently
  14376. parsing is located.
  14377. Do not manually set this variable.
  14378. </para>
  14379. </glossdef>
  14380. </glossentry>
  14381. <glossentry id='var-TIME'><glossterm>TIME</glossterm>
  14382. <info>
  14383. TIME[doc] = "The time the build was started using HMS format."
  14384. </info>
  14385. <glossdef>
  14386. <para role="glossdeffirst">
  14387. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14388. The time the build was started.
  14389. Times appear using the hour, minute, and second (HMS)
  14390. format (e.g. "140159" for one minute and fifty-nine
  14391. seconds past 1400 hours).
  14392. </para>
  14393. </glossdef>
  14394. </glossentry>
  14395. <glossentry id='var-TMPDIR'><glossterm>TMPDIR</glossterm>
  14396. <info>
  14397. 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."
  14398. </info>
  14399. <glossdef>
  14400. <para role="glossdeffirst">
  14401. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14402. This variable is the base directory the OpenEmbedded
  14403. build system uses for all build output and intermediate
  14404. files (other than the shared state cache).
  14405. By default, the <filename>TMPDIR</filename> variable points
  14406. to <filename>tmp</filename> within the
  14407. <link linkend='build-directory'>Build Directory</link>.
  14408. </para>
  14409. <para>
  14410. If you want to establish this directory in a location other
  14411. than the default, you can uncomment and edit the following
  14412. statement in the
  14413. <filename>conf/local.conf</filename> file in the
  14414. <link linkend='source-directory'>Source Directory</link>:
  14415. <literallayout class='monospaced'>
  14416. #TMPDIR = "${TOPDIR}/tmp"
  14417. </literallayout>
  14418. An example use for this scenario is to set
  14419. <filename>TMPDIR</filename> to a local disk, which does
  14420. not use NFS, while having the Build Directory use NFS.
  14421. </para>
  14422. <para>
  14423. The filesystem used by <filename>TMPDIR</filename> must
  14424. have standard filesystem semantics (i.e. mixed-case files
  14425. are unique, POSIX file locking, and persistent inodes).
  14426. Due to various issues with NFS and bugs in some
  14427. implementations, NFS does not meet this minimum
  14428. requirement.
  14429. Consequently, <filename>TMPDIR</filename> cannot be on
  14430. NFS.
  14431. </para>
  14432. </glossdef>
  14433. </glossentry>
  14434. <glossentry id='var-TOOLCHAIN_HOST_TASK'><glossterm>TOOLCHAIN_HOST_TASK</glossterm>
  14435. <info>
  14436. TOOLCHAIN_HOST_TASK[doc] = "This variable lists packages the OpenEmbedded build system uses when building an SDK, which contains a cross-development environment."
  14437. </info>
  14438. <glossdef>
  14439. <para role="glossdeffirst">
  14440. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14441. This variable lists packages the OpenEmbedded build system
  14442. uses when building an SDK, which contains a
  14443. cross-development environment.
  14444. The packages specified by this variable are part of the
  14445. toolchain set that runs on the
  14446. <link linkend='var-SDKMACHINE'><filename>SDKMACHINE</filename></link>,
  14447. and each package should usually have the prefix
  14448. <filename>nativesdk-</filename>.
  14449. For example, consider the following command when
  14450. building an SDK:
  14451. <literallayout class='monospaced'>
  14452. $ bitbake -c populate_sdk <replaceable>imagename</replaceable>
  14453. </literallayout>
  14454. In this case, a default list of packages is set in this
  14455. variable, but you can add additional packages to the list.
  14456. See the
  14457. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-adding-individual-packages'>Adding Individual Packages to the Standard SDK</ulink>"
  14458. section in the Yocto Project Application Development and
  14459. the Extensible Software Development Kit (eSDK) manual
  14460. for more information.
  14461. </para>
  14462. <para>
  14463. For background information on cross-development toolchains
  14464. in the Yocto Project development environment, see the
  14465. "<ulink url='&YOCTO_DOCS_OM_URL;#cross-development-toolchain-generation'>Cross-Development Toolchain Generation</ulink>"
  14466. section in the Yocto Project Overview and Concepts Manual.
  14467. For information on setting up a cross-development
  14468. environment, see the
  14469. <ulink url='&YOCTO_DOCS_SDK_URL;'>Yocto Project Application Development and the Extensible Software Development Kit (eSDK)</ulink>
  14470. manual.
  14471. </para>
  14472. </glossdef>
  14473. </glossentry>
  14474. <glossentry id='var-TOOLCHAIN_OUTPUTNAME'><glossterm>TOOLCHAIN_OUTPUTNAME</glossterm>
  14475. <info>
  14476. TOOLCHAIN_OUTPUTNAME[doc] = "Defines the name used for the toolchain output."
  14477. </info>
  14478. <glossdef>
  14479. <para role="glossdeffirst">
  14480. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14481. This variable defines the name used for the toolchain
  14482. output.
  14483. The
  14484. <link linkend='ref-classes-populate-sdk-*'><filename>populate_sdk_base</filename></link>
  14485. class sets the
  14486. <filename>TOOLCHAIN_OUTPUTNAME</filename> variable as
  14487. follows:
  14488. <literallayout class='monospaced'>
  14489. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  14490. </literallayout>
  14491. See the
  14492. <link linkend='var-SDK_NAME'><filename>SDK_NAME</filename></link>
  14493. and
  14494. <link linkend='var-SDK_VERSION'><filename>SDK_VERSION</filename></link>
  14495. variables for additional information.
  14496. </para>
  14497. </glossdef>
  14498. </glossentry>
  14499. <glossentry id='var-TOOLCHAIN_TARGET_TASK'><glossterm>TOOLCHAIN_TARGET_TASK</glossterm>
  14500. <info>
  14501. 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."
  14502. </info>
  14503. <glossdef>
  14504. <para role="glossdeffirst">
  14505. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14506. This variable lists packages the OpenEmbedded build system
  14507. uses when it creates the target part of an SDK
  14508. (i.e. the part built for the target hardware), which
  14509. includes libraries and headers.
  14510. Use this variable to add individual packages to the
  14511. part of the SDK that runs on the target.
  14512. See the
  14513. "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-adding-individual-packages'>Adding Individual Packages to the Standard SDK</ulink>"
  14514. section in the Yocto Project Application Development and
  14515. the Extensible Software Development Kit (eSDK) manual for
  14516. more information.
  14517. </para>
  14518. <para>
  14519. For background information on cross-development toolchains
  14520. in the Yocto Project development environment, see the
  14521. "<ulink url='&YOCTO_DOCS_OM_URL;#cross-development-toolchain-generation'>Cross-Development Toolchain Generation</ulink>"
  14522. section in the Yocto Project Overview and Concepts Manual.
  14523. For information on setting up a cross-development
  14524. environment, see the
  14525. <ulink url='&YOCTO_DOCS_SDK_URL;'>Yocto Project Application Development and the Extensible Software Development Kit (eSDK)</ulink>
  14526. manual.
  14527. </para>
  14528. </glossdef>
  14529. </glossentry>
  14530. <glossentry id='var-TOPDIR'><glossterm>TOPDIR</glossterm>
  14531. <info>
  14532. TOPDIR[doc] = "The Build Directory. BitBake automatically sets this variable. The OpenEmbedded build system uses the Build Directory when building images."
  14533. </info>
  14534. <glossdef>
  14535. <para role="glossdeffirst">
  14536. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14537. The top-level
  14538. <link linkend='build-directory'>Build Directory</link>.
  14539. BitBake automatically sets this variable when you
  14540. initialize your build environment using
  14541. <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>.
  14542. </para>
  14543. </glossdef>
  14544. </glossentry>
  14545. <glossentry id='var-TRANSLATED_TARGET_ARCH'><glossterm>TRANSLATED_TARGET_ARCH</glossterm>
  14546. <info>
  14547. 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."
  14548. </info>
  14549. <glossdef>
  14550. <para role="glossdeffirst">
  14551. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14552. A sanitized version of
  14553. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>.
  14554. This variable is used where the architecture is needed in
  14555. a value where underscores are not allowed, for example
  14556. within package filenames.
  14557. In this case, dash characters replace any underscore
  14558. characters used in <filename>TARGET_ARCH</filename>.
  14559. </para>
  14560. <para>
  14561. Do not edit this variable.
  14562. </para>
  14563. </glossdef>
  14564. </glossentry>
  14565. <glossentry id='var-TUNE_ARCH'><glossterm>TUNE_ARCH</glossterm>
  14566. <info>
  14567. TUNE_ARCH[doc] = "The GNU canonical architecture for a specific architecture (i.e. arm, armeb, mips, mips64, and so forth)."
  14568. </info>
  14569. <glossdef>
  14570. <para role="glossdeffirst">
  14571. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14572. The GNU canonical architecture for a specific architecture
  14573. (i.e. <filename>arm</filename>,
  14574. <filename>armeb</filename>,
  14575. <filename>mips</filename>,
  14576. <filename>mips64</filename>, and so forth).
  14577. BitBake uses this value to setup configuration.
  14578. </para>
  14579. <para>
  14580. <filename>TUNE_ARCH</filename> definitions are specific to
  14581. a given architecture.
  14582. The definitions can be a single static definition, or
  14583. can be dynamically adjusted.
  14584. You can see details for a given CPU family by looking at
  14585. the architecture's <filename>README</filename> file.
  14586. For example, the
  14587. <filename>meta/conf/machine/include/mips/README</filename>
  14588. file in the
  14589. <link linkend='source-directory'>Source Directory</link>
  14590. provides information for <filename>TUNE_ARCH</filename>
  14591. specific to the <filename>mips</filename> architecture.
  14592. </para>
  14593. <para>
  14594. <filename>TUNE_ARCH</filename> is tied closely to
  14595. <link linkend='var-TARGET_ARCH'><filename>TARGET_ARCH</filename></link>,
  14596. which defines the target machine's architecture.
  14597. The BitBake configuration file
  14598. (<filename>meta/conf/bitbake.conf</filename>) sets
  14599. <filename>TARGET_ARCH</filename> as follows:
  14600. <literallayout class='monospaced'>
  14601. TARGET_ARCH = "${TUNE_ARCH}"
  14602. </literallayout>
  14603. </para>
  14604. <para>
  14605. The following list, which is by no means complete since
  14606. architectures are configurable, shows supported machine
  14607. architectures:
  14608. <literallayout class='monospaced'>
  14609. arm
  14610. i586
  14611. x86_64
  14612. powerpc
  14613. powerpc64
  14614. mips
  14615. mipsel
  14616. </literallayout>
  14617. </para>
  14618. </glossdef>
  14619. </glossentry>
  14620. <glossentry id='var-TUNE_ASARGS'><glossterm>TUNE_ASARGS</glossterm>
  14621. <info>
  14622. TUNE_ASARGS[doc] = "Specifies architecture-specific assembler flags for the target system."
  14623. </info>
  14624. <glossdef>
  14625. <para role="glossdeffirst">
  14626. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14627. Specifies architecture-specific assembler flags for
  14628. the target system.
  14629. The set of flags is based on the selected tune features.
  14630. <filename>TUNE_ASARGS</filename> is set using
  14631. the tune include files, which are typically under
  14632. <filename>meta/conf/machine/include/</filename> and are
  14633. influenced through
  14634. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  14635. For example, the
  14636. <filename>meta/conf/machine/include/x86/arch-x86.inc</filename>
  14637. file defines the flags for the x86 architecture as follows:
  14638. <literallayout class='monospaced'>
  14639. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  14640. </literallayout>
  14641. <note>
  14642. Board Support Packages (BSPs) select the tune.
  14643. The selected tune, in turn, affects the tune variables
  14644. themselves (i.e. the tune can supply its own
  14645. set of flags).
  14646. </note>
  14647. </para>
  14648. </glossdef>
  14649. </glossentry>
  14650. <glossentry id='var-TUNE_CCARGS'><glossterm>TUNE_CCARGS</glossterm>
  14651. <info>
  14652. TUNE_CCARGS[doc] = "Specifies architecture-specific C compiler flags for the target system."
  14653. </info>
  14654. <glossdef>
  14655. <para role="glossdeffirst">
  14656. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14657. Specifies architecture-specific C compiler flags for
  14658. the target system.
  14659. The set of flags is based on the selected tune features.
  14660. <filename>TUNE_CCARGS</filename> is set using
  14661. the tune include files, which are typically under
  14662. <filename>meta/conf/machine/include/</filename> and are
  14663. influenced through
  14664. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  14665. <note>
  14666. Board Support Packages (BSPs) select the tune.
  14667. The selected tune, in turn, affects the tune variables
  14668. themselves (i.e. the tune can supply its own
  14669. set of flags).
  14670. </note>
  14671. </para>
  14672. </glossdef>
  14673. </glossentry>
  14674. <glossentry id='var-TUNE_LDARGS'><glossterm>TUNE_LDARGS</glossterm>
  14675. <info>
  14676. TUNE_LDARGS[doc] = "Specifies architecture-specific linker flags for the target system."
  14677. </info>
  14678. <glossdef>
  14679. <para role="glossdeffirst">
  14680. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14681. Specifies architecture-specific linker flags for
  14682. the target system.
  14683. The set of flags is based on the selected tune features.
  14684. <filename>TUNE_LDARGS</filename> is set using
  14685. the tune include files, which are typically under
  14686. <filename>meta/conf/machine/include/</filename> and are
  14687. influenced through
  14688. <link linkend='var-TUNE_FEATURES'><filename>TUNE_FEATURES</filename></link>.
  14689. For example, the
  14690. <filename>meta/conf/machine/include/x86/arch-x86.inc</filename>
  14691. file defines the flags for the x86 architecture as follows:
  14692. <literallayout class='monospaced'>
  14693. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  14694. </literallayout>
  14695. <note>
  14696. Board Support Packages (BSPs) select the tune.
  14697. The selected tune, in turn, affects the tune variables
  14698. themselves (i.e. the tune can supply its own
  14699. set of flags).
  14700. </note>
  14701. </para>
  14702. </glossdef>
  14703. </glossentry>
  14704. <glossentry id='var-TUNE_FEATURES'><glossterm>TUNE_FEATURES</glossterm>
  14705. <info>
  14706. TUNE_FEATURES[doc] = "Features used to "tune" a compiler for optimal use given a specific processor."
  14707. </info>
  14708. <glossdef>
  14709. <para role="glossdeffirst">
  14710. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14711. Features used to "tune" a compiler for optimal use
  14712. given a specific processor.
  14713. The features are defined within the tune files and allow
  14714. arguments (i.e. <filename>TUNE_*ARGS</filename>) to be
  14715. dynamically generated based on the features.
  14716. </para>
  14717. <para>
  14718. The OpenEmbedded build system verifies the features
  14719. to be sure they are not conflicting and that they are
  14720. supported.
  14721. </para>
  14722. <para>
  14723. The BitBake configuration file
  14724. (<filename>meta/conf/bitbake.conf</filename>) defines
  14725. <filename>TUNE_FEATURES</filename> as follows:
  14726. <literallayout class='monospaced'>
  14727. TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}"
  14728. </literallayout>
  14729. See the
  14730. <link linkend='var-DEFAULTTUNE'><filename>DEFAULTTUNE</filename></link>
  14731. variable for more information.
  14732. </para>
  14733. </glossdef>
  14734. </glossentry>
  14735. <glossentry id='var-TUNE_PKGARCH'><glossterm>TUNE_PKGARCH</glossterm>
  14736. <info>
  14737. TUNE_PKGARCH[doc] = "The package architecture understood by the packaging system to define the architecture, ABI, and tuning of output packages."
  14738. </info>
  14739. <glossdef>
  14740. <para role="glossdeffirst">
  14741. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14742. The package architecture understood by the packaging
  14743. system to define the architecture, ABI, and tuning of
  14744. output packages.
  14745. The specific tune is defined using the "_tune" override
  14746. as follows:
  14747. <literallayout class='monospaced'>
  14748. TUNE_PKGARCH_tune-<replaceable>tune</replaceable> = "<replaceable>tune</replaceable>"
  14749. </literallayout>
  14750. </para>
  14751. <para>
  14752. These tune-specific package architectures are defined in
  14753. the machine include files.
  14754. Here is an example of the "core2-32" tuning as used
  14755. in the
  14756. <filename>meta/conf/machine/include/tune-core2.inc</filename>
  14757. file:
  14758. <literallayout class='monospaced'>
  14759. TUNE_PKGARCH_tune-core2-32 = "core2-32"
  14760. </literallayout>
  14761. </para>
  14762. </glossdef>
  14763. </glossentry>
  14764. <glossentry id='var-TUNEABI'><glossterm>TUNEABI</glossterm>
  14765. <info>
  14766. 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."
  14767. </info>
  14768. <glossdef>
  14769. <para role="glossdeffirst">
  14770. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14771. An underlying Application Binary Interface (ABI) used by
  14772. a particular tuning in a given toolchain layer.
  14773. Providers that use prebuilt libraries can use the
  14774. <filename>TUNEABI</filename>,
  14775. <link linkend='var-TUNEABI_OVERRIDE'><filename>TUNEABI_OVERRIDE</filename></link>,
  14776. and
  14777. <link linkend='var-TUNEABI_WHITELIST'><filename>TUNEABI_WHITELIST</filename></link>
  14778. variables to check compatibility of tunings against their
  14779. selection of libraries.
  14780. </para>
  14781. <para>
  14782. If <filename>TUNEABI</filename> is undefined, then every
  14783. tuning is allowed.
  14784. See the
  14785. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  14786. class to see how the variable is used.
  14787. </para>
  14788. </glossdef>
  14789. </glossentry>
  14790. <glossentry id='var-TUNEABI_OVERRIDE'><glossterm>TUNEABI_OVERRIDE</glossterm>
  14791. <info>
  14792. TUNEABI_OVERRIDE[doc] = "If set, ignores TUNEABI_WHITELIST."
  14793. </info>
  14794. <glossdef>
  14795. <para role="glossdeffirst">
  14796. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14797. If set, the OpenEmbedded system ignores the
  14798. <link linkend='var-TUNEABI_WHITELIST'><filename>TUNEABI_WHITELIST</filename></link>
  14799. variable.
  14800. Providers that use prebuilt libraries can use the
  14801. <filename>TUNEABI_OVERRIDE</filename>,
  14802. <filename>TUNEABI_WHITELIST</filename>,
  14803. and
  14804. <link linkend='var-TUNEABI'><filename>TUNEABI</filename></link>
  14805. variables to check compatibility of a tuning against their
  14806. selection of libraries.
  14807. </para>
  14808. <para>
  14809. See the
  14810. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  14811. class to see how the variable is used.
  14812. </para>
  14813. </glossdef>
  14814. </glossentry>
  14815. <glossentry id='var-TUNEABI_WHITELIST'><glossterm>TUNEABI_WHITELIST</glossterm>
  14816. <info>
  14817. TUNEABI_WHITELIST[doc] = "A whitelist of permissible TUNEABI values. If the variable is not set, all values are allowed."
  14818. </info>
  14819. <glossdef>
  14820. <para role="glossdeffirst">
  14821. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14822. A whitelist of permissible
  14823. <link linkend='var-TUNEABI'><filename>TUNEABI</filename></link>
  14824. values.
  14825. If <filename>TUNEABI_WHITELIST</filename> is not set,
  14826. all tunes are allowed.
  14827. Providers that use prebuilt libraries can use the
  14828. <filename>TUNEABI_WHITELIST</filename>,
  14829. <link linkend='var-TUNEABI_OVERRIDE'><filename>TUNEABI_OVERRIDE</filename></link>,
  14830. and <filename>TUNEABI</filename> variables to check
  14831. compatibility of a tuning against their selection of
  14832. libraries.
  14833. </para>
  14834. <para>
  14835. See the
  14836. <link linkend='ref-classes-sanity'><filename>sanity</filename></link>
  14837. class to see how the variable is used.
  14838. </para>
  14839. </glossdef>
  14840. </glossentry>
  14841. <glossentry id='var-TUNECONFLICTS'><glossterm>TUNECONFLICTS[<replaceable>feature</replaceable>]</glossterm>
  14842. <info>
  14843. TUNECONFLICTS[doc] = "Specifies CPU or Application Binary Interface (ABI) tuning features that conflict with specified feature."
  14844. </info>
  14845. <glossdef>
  14846. <para role="glossdeffirst">
  14847. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14848. Specifies CPU or Application Binary Interface (ABI)
  14849. tuning features that conflict with <replaceable>feature</replaceable>.
  14850. </para>
  14851. <para>
  14852. Known tuning conflicts are specified in the machine include
  14853. files in the
  14854. <link linkend='source-directory'>Source Directory</link>.
  14855. Here is an example from the
  14856. <filename>meta/conf/machine/include/mips/arch-mips.inc</filename>
  14857. include file that lists the "o32" and "n64" features as
  14858. conflicting with the "n32" feature:
  14859. <literallayout class='monospaced'>
  14860. TUNECONFLICTS[n32] = "o32 n64"
  14861. </literallayout>
  14862. </para>
  14863. </glossdef>
  14864. </glossentry>
  14865. <glossentry id='var-TUNEVALID'><glossterm>TUNEVALID[<replaceable>feature</replaceable>]</glossterm>
  14866. <info>
  14867. TUNEVALID[doc] = "Descriptions, stored as flags, of valid tuning features."
  14868. </info>
  14869. <glossdef>
  14870. <para role="glossdeffirst">
  14871. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14872. Specifies a valid CPU or Application Binary Interface (ABI)
  14873. tuning feature.
  14874. The specified feature is stored as a flag.
  14875. Valid features are specified in the machine include files
  14876. (e.g. <filename>meta/conf/machine/include/arm/arch-arm.inc</filename>).
  14877. Here is an example from that file:
  14878. <literallayout class='monospaced'>
  14879. TUNEVALID[bigendian] = "Enable big-endian mode."
  14880. </literallayout>
  14881. </para>
  14882. <para>
  14883. See the machine include files in the
  14884. <link linkend='source-directory'>Source Directory</link>
  14885. for these features.
  14886. </para>
  14887. </glossdef>
  14888. </glossentry>
  14889. </glossdiv>
  14890. <glossdiv id='var-glossary-u'><title>U</title>
  14891. <glossentry id='var-UBOOT_CONFIG'><glossterm>UBOOT_CONFIG</glossterm>
  14892. <info>
  14893. UBOOT_CONFIG[doc] = "Configures the UBOOT_MACHINE and can also define IMAGE_FSTYPES for individual cases."
  14894. </info>
  14895. <glossdef>
  14896. <para role="glossdeffirst">
  14897. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14898. Configures the
  14899. <link linkend='var-UBOOT_MACHINE'><filename>UBOOT_MACHINE</filename></link>
  14900. and can also define
  14901. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  14902. for individual cases.
  14903. </para>
  14904. <para>
  14905. Following is an example from the
  14906. <filename>meta-fsl-arm</filename> layer.
  14907. <literallayout class='monospaced'>
  14908. UBOOT_CONFIG ??= "sd"
  14909. UBOOT_CONFIG[sd] = "mx6qsabreauto_config,sdcard"
  14910. UBOOT_CONFIG[eimnor] = "mx6qsabreauto_eimnor_config"
  14911. UBOOT_CONFIG[nand] = "mx6qsabreauto_nand_config,ubifs"
  14912. UBOOT_CONFIG[spinor] = "mx6qsabreauto_spinor_config"
  14913. </literallayout>
  14914. In this example, "sd" is selected as the configuration
  14915. of the possible four for the
  14916. <filename>UBOOT_MACHINE</filename>.
  14917. The "sd" configuration defines "mx6qsabreauto_config"
  14918. as the value for <filename>UBOOT_MACHINE</filename>, while
  14919. the "sdcard" specifies the
  14920. <filename>IMAGE_FSTYPES</filename> to use for the U-boot
  14921. image.
  14922. </para>
  14923. <para>
  14924. For more information on how the
  14925. <filename>UBOOT_CONFIG</filename> is handled, see the
  14926. <ulink url='http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/uboot-config.bbclass'><filename>uboot-config</filename></ulink>
  14927. class.
  14928. </para>
  14929. </glossdef>
  14930. </glossentry>
  14931. <glossentry id='var-UBOOT_ENTRYPOINT'><glossterm>UBOOT_ENTRYPOINT</glossterm>
  14932. <info>
  14933. UBOOT_ENTRYPOINT[doc] = "Specifies the entry point for the U-Boot image."
  14934. </info>
  14935. <glossdef>
  14936. <para role="glossdeffirst">
  14937. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14938. Specifies the entry point for the U-Boot image.
  14939. During U-Boot image creation, the
  14940. <filename>UBOOT_ENTRYPOINT</filename> variable is passed
  14941. as a command-line parameter to the
  14942. <filename>uboot-mkimage</filename> utility.
  14943. </para>
  14944. </glossdef>
  14945. </glossentry>
  14946. <glossentry id='var-UBOOT_LOADADDRESS'><glossterm>UBOOT_LOADADDRESS</glossterm>
  14947. <info>
  14948. UBOOT_LOADADDRESS[doc] = "Specifies the load address for the U-Boot image."
  14949. </info>
  14950. <glossdef>
  14951. <para role="glossdeffirst">
  14952. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14953. Specifies the load address for the U-Boot image.
  14954. During U-Boot image creation, the
  14955. <filename>UBOOT_LOADADDRESS</filename> variable is passed
  14956. as a command-line parameter to the
  14957. <filename>uboot-mkimage</filename> utility.
  14958. </para>
  14959. </glossdef>
  14960. </glossentry>
  14961. <glossentry id='var-UBOOT_LOCALVERSION'><glossterm>UBOOT_LOCALVERSION</glossterm>
  14962. <info>
  14963. UBOOT_LOCALVERSION[doc] = "Appends a string to the name of the local version of the U-Boot image."
  14964. </info>
  14965. <glossdef>
  14966. <para role="glossdeffirst">
  14967. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14968. Appends a string to the name of the local version of the
  14969. U-Boot image.
  14970. For example, assuming the version of the U-Boot image
  14971. built was "2013.10, the full version string reported by
  14972. U-Boot would be "2013.10-yocto" given the following
  14973. statement:
  14974. <literallayout class='monospaced'>
  14975. UBOOT_LOCALVERSION = "-yocto"
  14976. </literallayout>
  14977. </para>
  14978. </glossdef>
  14979. </glossentry>
  14980. <glossentry id='var-UBOOT_MACHINE'><glossterm>UBOOT_MACHINE</glossterm>
  14981. <info>
  14982. UBOOT_MACHINE[doc] = "Specifies the value passed on the make command line when building a U-Boot image."
  14983. </info>
  14984. <glossdef>
  14985. <para role="glossdeffirst">
  14986. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  14987. Specifies the value passed on the
  14988. <filename>make</filename> command line when building
  14989. a U-Boot image.
  14990. The value indicates the target platform configuration.
  14991. You typically set this variable from the machine
  14992. configuration file (i.e.
  14993. <filename>conf/machine/<replaceable>machine_name</replaceable>.conf</filename>).
  14994. </para>
  14995. <para>
  14996. Please see the "Selection of Processor Architecture and
  14997. Board Type" section in the U-Boot README for valid values
  14998. for this variable.
  14999. </para>
  15000. </glossdef>
  15001. </glossentry>
  15002. <glossentry id='var-UBOOT_MAKE_TARGET'><glossterm>UBOOT_MAKE_TARGET</glossterm>
  15003. <info>
  15004. UBOOT_MAKE_TARGET[doc] = "Specifies the target called in the Makefile."
  15005. </info>
  15006. <glossdef>
  15007. <para role="glossdeffirst">
  15008. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15009. Specifies the target called in the
  15010. <filename>Makefile</filename>.
  15011. The default target is "all".
  15012. </para>
  15013. </glossdef>
  15014. </glossentry>
  15015. <glossentry id='var-UBOOT_SUFFIX'><glossterm>UBOOT_SUFFIX</glossterm>
  15016. <info>
  15017. UBOOT_SUFFIX[doc] = "Points to the generated U-Boot extension."
  15018. </info>
  15019. <glossdef>
  15020. <para role="glossdeffirst">
  15021. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15022. Points to the generated U-Boot extension.
  15023. For example, <filename>u-boot.sb</filename> has a
  15024. <filename>.sb</filename> extension.
  15025. </para>
  15026. <para>
  15027. The default U-Boot extension is
  15028. <filename>.bin</filename>
  15029. </para>
  15030. </glossdef>
  15031. </glossentry>
  15032. <glossentry id='var-UBOOT_TARGET'><glossterm>UBOOT_TARGET</glossterm>
  15033. <info>
  15034. UBOOT_TARGET[doc] = "Specifies the target used for building U-Boot."
  15035. </info>
  15036. <glossdef>
  15037. <para role="glossdeffirst">
  15038. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15039. Specifies the target used for building U-Boot.
  15040. The target is passed directly as part of the "make" command
  15041. (e.g. SPL and AIS).
  15042. If you do not specifically set this variable, the
  15043. OpenEmbedded build process passes and uses "all" for the
  15044. target during the U-Boot building process.
  15045. </para>
  15046. </glossdef>
  15047. </glossentry>
  15048. <glossentry id='var-UNKNOWN_CONFIGURE_WHITELIST'><glossterm>UNKNOWN_CONFIGURE_WHITELIST</glossterm>
  15049. <info>
  15050. 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."
  15051. </info>
  15052. <glossdef>
  15053. <para role="glossdeffirst">
  15054. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15055. Specifies a list of options that, if reported by the
  15056. configure script as being invalid, should not generate a
  15057. warning during the
  15058. <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>
  15059. task.
  15060. Normally, invalid configure options are simply not passed
  15061. to the configure script (e.g. should be removed from
  15062. <link linkend='var-EXTRA_OECONF'><filename>EXTRA_OECONF</filename></link>
  15063. or
  15064. <link linkend='var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></link>).
  15065. However, common options, for example, exist that are passed
  15066. to all configure scripts at a class level that might not
  15067. be valid for some configure scripts.
  15068. It follows that no benefit exists in seeing a warning about
  15069. these options.
  15070. For these cases, the options are added to
  15071. <filename>UNKNOWN_CONFIGURE_WHITELIST</filename>.
  15072. </para>
  15073. <para>
  15074. The configure arguments check that uses
  15075. <filename>UNKNOWN_CONFIGURE_WHITELIST</filename> is part
  15076. of the
  15077. <link linkend='ref-classes-insane'><filename>insane</filename></link>
  15078. class and is only enabled if the recipe inherits the
  15079. <link linkend='ref-classes-autotools'><filename>autotools</filename></link>
  15080. class.
  15081. </para>
  15082. </glossdef>
  15083. </glossentry>
  15084. <glossentry id='var-UPDATERCPN'><glossterm>UPDATERCPN</glossterm>
  15085. <info>
  15086. UPDATERCPN[doc] = "Specifies the package that contains the initscript that is enabled."
  15087. </info>
  15088. <glossdef>
  15089. <para role="glossdeffirst">
  15090. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15091. For recipes inheriting the
  15092. <link linkend='ref-classes-update-rc.d'><filename>update-rc.d</filename></link>
  15093. class, <filename>UPDATERCPN</filename> specifies
  15094. the package that contains the initscript that is
  15095. enabled.
  15096. </para>
  15097. <para>
  15098. The default value is "${PN}".
  15099. Given that almost all recipes that install initscripts
  15100. package them in the main package for the recipe, you
  15101. rarely need to set this variable in individual recipes.
  15102. </para>
  15103. </glossdef>
  15104. </glossentry>
  15105. <glossentry id='var-UPSTREAM_CHECK_GITTAGREGEX'><glossterm>UPSTREAM_CHECK_GITTAGREGEX</glossterm>
  15106. <info>
  15107. UPSTREAM_CHECK_GITTAGREGEX[doc] = "Filters relevant Git tags when fetching source from an upstream Git repository."
  15108. </info>
  15109. <glossdef>
  15110. <para role="glossdeffirst">
  15111. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15112. When the
  15113. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  15114. class is enabled globally, you can perform a per-recipe
  15115. check for what the latest upstream source code version is
  15116. by calling
  15117. <filename>bitbake -c checkpkg</filename> <replaceable>recipe</replaceable>.
  15118. If the recipe source code is provided from Git
  15119. repositories, the OpenEmbedded build system determines the
  15120. latest upstream version by picking the latest tag from the
  15121. list of all repository tags.
  15122. You can use the
  15123. <filename>UPSTREAM_CHECK_GITTAGREGEX</filename>
  15124. variable to provide a regular expression to filter only the
  15125. relevant tags should the default filter not work
  15126. correctly.
  15127. <literallayout class='monospaced'>
  15128. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  15129. </literallayout>
  15130. </para>
  15131. </glossdef>
  15132. </glossentry>
  15133. <glossentry id='var-UPSTREAM_CHECK_REGEX'><glossterm>UPSTREAM_CHECK_REGEX</glossterm>
  15134. <info>
  15135. UPSTREAM_CHECK_REGEX[doc] = "The regular expression the package checking system uses to parse the page pointed to by UPSTREAM_CHECK_URI."
  15136. </info>
  15137. <glossdef>
  15138. <para role="glossdeffirst">
  15139. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15140. When the
  15141. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  15142. class is enabled globally, use the
  15143. <filename>UPSTREAM_CHECK_REGEX</filename> variable to
  15144. specify a different regular expression instead of the
  15145. default one when the package checking system is parsing
  15146. the page found using
  15147. <link linkend='var-UPSTREAM_CHECK_URI'><filename>UPSTREAM_CHECK_URI</filename></link>.
  15148. <literallayout class='monospaced'>
  15149. UPSTREAM_CHECK_REGEX = "package_regex"
  15150. </literallayout>
  15151. </para>
  15152. </glossdef>
  15153. </glossentry>
  15154. <glossentry id='var-UPSTREAM_CHECK_URI'><glossterm>UPSTREAM_CHECK_URI</glossterm>
  15155. <info>
  15156. 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."
  15157. </info>
  15158. <glossdef>
  15159. <para role="glossdeffirst">
  15160. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15161. When the
  15162. <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
  15163. class is enabled globally, you can perform a per-recipe
  15164. check for what the latest upstream source code version is
  15165. by calling <filename>bitbake -c checkpkg</filename>
  15166. <replaceable>recipe</replaceable>.
  15167. If the source code is provided from tarballs, the latest
  15168. version is determined by fetching the directory listing
  15169. where the tarball is and attempting to find a later tarball.
  15170. When this approach does not work, you can use
  15171. <filename>UPSTREAM_CHECK_URI</filename> to
  15172. provide a different URI that contains the link to the
  15173. latest tarball.
  15174. <literallayout class='monospaced'>
  15175. UPSTREAM_CHECK_URI = "recipe_url"
  15176. </literallayout>
  15177. </para>
  15178. </glossdef>
  15179. </glossentry>
  15180. <glossentry id='var-USE_DEVFS'><glossterm>USE_DEVFS</glossterm>
  15181. <info>
  15182. USE_DEVFS[doc] = "Determines if devtmpfs is used for /dev population."
  15183. </info>
  15184. <glossdef>
  15185. <para role="glossdeffirst">
  15186. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15187. Determines if <filename>devtmpfs</filename> is used for
  15188. <filename>/dev</filename> population.
  15189. The default value used for <filename>USE_DEVFS</filename>
  15190. is "1" when no value is specifically set.
  15191. Typically, you would set <filename>USE_DEVFS</filename>
  15192. to "0" for a statically populated <filename>/dev</filename>
  15193. directory.
  15194. </para>
  15195. <para>
  15196. See the
  15197. "<ulink url='&YOCTO_DOCS_DEV_URL;#selecting-dev-manager'>Selecting a Device Manager</ulink>"
  15198. section in the Yocto Project Development Tasks Manual for
  15199. information on how to use this variable.
  15200. </para>
  15201. </glossdef>
  15202. </glossentry>
  15203. <glossentry id='var-USE_VT'><glossterm>USE_VT</glossterm>
  15204. <info>
  15205. 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."
  15206. </info>
  15207. <glossdef>
  15208. <para role="glossdeffirst">
  15209. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15210. When using
  15211. <ulink url='&YOCTO_DOCS_DEV_URL;#new-recipe-enabling-system-services'>SysVinit</ulink>,
  15212. determines whether or not to run a
  15213. <ulink url='http://en.wikipedia.org/wiki/Getty_%28Unix%29'>getty</ulink>
  15214. on any virtual terminals in order to enable logging in
  15215. through those terminals.
  15216. </para>
  15217. <para>
  15218. The default value used for <filename>USE_VT</filename>
  15219. is "1" when no default value is specifically set.
  15220. Typically, you would set <filename>USE_VT</filename>
  15221. to "0" in the machine configuration file for machines
  15222. that do not have a graphical display attached and
  15223. therefore do not need virtual terminal functionality.
  15224. </para>
  15225. </glossdef>
  15226. </glossentry>
  15227. <glossentry id='var-USER_CLASSES'><glossterm>USER_CLASSES</glossterm>
  15228. <info>
  15229. USER_CLASSES[doc] = "List of additional classes to use when building images that enable extra features."
  15230. </info>
  15231. <glossdef>
  15232. <para role="glossdeffirst">
  15233. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15234. A list of classes to globally inherit.
  15235. These classes are used by the OpenEmbedded build system
  15236. to enable extra features (e.g.
  15237. <filename>buildstats</filename>,
  15238. <filename>image-mklibs</filename>, and so forth).
  15239. </para>
  15240. <para>
  15241. The default list is set in your
  15242. <filename>local.conf</filename> file:
  15243. <literallayout class='monospaced'>
  15244. USER_CLASSES ?= "buildstats image-mklibs image-prelink"
  15245. </literallayout>
  15246. For more information, see
  15247. <filename>meta-poky/conf/local.conf.sample</filename> in
  15248. the
  15249. <link linkend='source-directory'>Source Directory</link>.
  15250. </para>
  15251. </glossdef>
  15252. </glossentry>
  15253. <glossentry id='var-USERADD_ERROR_DYNAMIC'><glossterm>USERADD_ERROR_DYNAMIC</glossterm>
  15254. <info>
  15255. 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."
  15256. </info>
  15257. <glossdef>
  15258. <para role="glossdeffirst">
  15259. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15260. If set to "error", forces the OpenEmbedded build system to
  15261. produce an error if the user identification
  15262. (<filename>uid</filename>) and group identification
  15263. (<filename>gid</filename>) values are not defined
  15264. in <filename>files/passwd</filename>
  15265. and <filename>files/group</filename> files.
  15266. If set to "warn", a warning will be issued instead.
  15267. </para>
  15268. <para>
  15269. The default behavior for the build system is to dynamically
  15270. apply <filename>uid</filename> and
  15271. <filename>gid</filename> values.
  15272. Consequently, the <filename>USERADD_ERROR_DYNAMIC</filename>
  15273. variable is by default not set.
  15274. If you plan on using statically assigned
  15275. <filename>gid</filename> and <filename>uid</filename>
  15276. values, you should set
  15277. the <filename>USERADD_ERROR_DYNAMIC</filename> variable in
  15278. your <filename>local.conf</filename> file as
  15279. follows:
  15280. <literallayout class='monospaced'>
  15281. USERADD_ERROR_DYNAMIC = "error"
  15282. </literallayout>
  15283. Overriding the default behavior implies you are going to
  15284. also take steps to set static <filename>uid</filename> and
  15285. <filename>gid</filename> values through use of the
  15286. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>,
  15287. <link linkend='var-USERADD_UID_TABLES'><filename>USERADD_UID_TABLES</filename></link>,
  15288. and
  15289. <link linkend='var-USERADD_GID_TABLES'><filename>USERADD_GID_TABLES</filename></link>
  15290. variables.
  15291. </para>
  15292. </glossdef>
  15293. </glossentry>
  15294. <glossentry id='var-USERADD_GID_TABLES'><glossterm>USERADD_GID_TABLES</glossterm>
  15295. <info>
  15296. 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."
  15297. </info>
  15298. <glossdef>
  15299. <para role="glossdeffirst">
  15300. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15301. Specifies a password file to use for obtaining static
  15302. group identification (<filename>gid</filename>) values
  15303. when the OpenEmbedded build system adds a group to the
  15304. system during package installation.
  15305. </para>
  15306. <para>
  15307. When applying static group identification
  15308. (<filename>gid</filename>) values, the OpenEmbedded build
  15309. system looks in
  15310. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>
  15311. for a <filename>files/group</filename> file and then applies
  15312. those <filename>uid</filename> values.
  15313. Set the variable as follows in your
  15314. <filename>local.conf</filename> file:
  15315. <literallayout class='monospaced'>
  15316. USERADD_GID_TABLES = "files/group"
  15317. </literallayout>
  15318. </para>
  15319. <note>
  15320. Setting the
  15321. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>
  15322. variable to "useradd-staticids" causes the build system
  15323. to use static <filename>gid</filename> values.
  15324. </note>
  15325. </glossdef>
  15326. </glossentry>
  15327. <glossentry id='var-USERADD_PACKAGES'><glossterm>USERADD_PACKAGES</glossterm>
  15328. <info>
  15329. 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."
  15330. </info>
  15331. <glossdef>
  15332. <para role="glossdeffirst">
  15333. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15334. When inheriting the
  15335. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  15336. class, this variable
  15337. specifies the individual packages within the recipe that
  15338. require users and/or groups to be added.
  15339. </para>
  15340. <para>
  15341. You must set this variable if the recipe inherits the
  15342. class.
  15343. For example, the following enables adding a user for the
  15344. main package in a recipe:
  15345. <literallayout class='monospaced'>
  15346. USERADD_PACKAGES = "${PN}"
  15347. </literallayout>
  15348. <note>
  15349. If follows that if you are going to use the
  15350. <filename>USERADD_PACKAGES</filename> variable,
  15351. you need to set one or more of the
  15352. <link linkend='var-USERADD_PARAM'><filename>USERADD_PARAM</filename></link>,
  15353. <link linkend='var-GROUPADD_PARAM'><filename>GROUPADD_PARAM</filename></link>,
  15354. or
  15355. <link linkend='var-GROUPMEMS_PARAM'><filename>GROUPMEMS_PARAM</filename></link>
  15356. variables.
  15357. </note>
  15358. </para>
  15359. </glossdef>
  15360. </glossentry>
  15361. <glossentry id='var-USERADD_PARAM'><glossterm>USERADD_PARAM</glossterm>
  15362. <info>
  15363. 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."
  15364. </info>
  15365. <glossdef>
  15366. <para role="glossdeffirst">
  15367. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15368. When inheriting the
  15369. <link linkend='ref-classes-useradd'><filename>useradd</filename></link>
  15370. class, this variable
  15371. specifies for a package what parameters should pass
  15372. to the <filename>useradd</filename> command
  15373. if you add a user to the system when the package
  15374. is installed.
  15375. </para>
  15376. <para>
  15377. Here is an example from the <filename>dbus</filename>
  15378. recipe:
  15379. <literallayout class='monospaced'>
  15380. USERADD_PARAM_${PN} = "--system --home ${localstatedir}/lib/dbus \
  15381. --no-create-home --shell /bin/false \
  15382. --user-group messagebus"
  15383. </literallayout>
  15384. For information on the standard Linux shell command
  15385. <filename>useradd</filename>, see
  15386. <ulink url='http://linux.die.net/man/8/useradd'></ulink>.
  15387. </para>
  15388. </glossdef>
  15389. </glossentry>
  15390. <glossentry id='var-USERADD_UID_TABLES'><glossterm>USERADD_UID_TABLES</glossterm>
  15391. <info>
  15392. 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."
  15393. </info>
  15394. <glossdef>
  15395. <para role="glossdeffirst">
  15396. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15397. Specifies a password file to use for obtaining static
  15398. user identification (<filename>uid</filename>) values
  15399. when the OpenEmbedded build system adds a user to the
  15400. system during package installation.
  15401. </para>
  15402. <para>
  15403. When applying static user identification
  15404. (<filename>uid</filename>) values, the OpenEmbedded build
  15405. system looks in
  15406. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>
  15407. for a <filename>files/passwd</filename> file and then applies
  15408. those <filename>uid</filename> values.
  15409. Set the variable as follows in your
  15410. <filename>local.conf</filename> file:
  15411. <literallayout class='monospaced'>
  15412. USERADD_UID_TABLES = "files/passwd"
  15413. </literallayout>
  15414. </para>
  15415. <note>
  15416. Setting the
  15417. <link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>
  15418. variable to "useradd-staticids" causes the build system
  15419. to use static <filename>uid</filename> values.
  15420. </note>
  15421. </glossdef>
  15422. </glossentry>
  15423. <glossentry id='var-USERADDEXTENSION'><glossterm>USERADDEXTENSION</glossterm>
  15424. <info>
  15425. 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."
  15426. </info>
  15427. <glossdef>
  15428. <para role="glossdeffirst">
  15429. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15430. When set to "useradd-staticids", causes the
  15431. OpenEmbedded build system to base all user and group
  15432. additions on a static
  15433. <filename>passwd</filename> and
  15434. <filename>group</filename> files found in
  15435. <link linkend='var-BBPATH'><filename>BBPATH</filename></link>.
  15436. </para>
  15437. <para>
  15438. To use static user identification (<filename>uid</filename>)
  15439. and group identification (<filename>gid</filename>)
  15440. values, set the variable
  15441. as follows in your <filename>local.conf</filename> file:
  15442. <literallayout class='monospaced'>
  15443. USERADDEXTENSION = "useradd-staticids"
  15444. </literallayout>
  15445. <note>
  15446. Setting this variable to use static
  15447. <filename>uid</filename> and <filename>gid</filename>
  15448. values causes the OpenEmbedded build system to employ
  15449. the
  15450. <link linkend='ref-classes-useradd'><filename>useradd-staticids</filename></link>
  15451. class.
  15452. </note>
  15453. </para>
  15454. <para>
  15455. If you use static <filename>uid</filename> and
  15456. <filename>gid</filename> information, you must also
  15457. specify the <filename>files/passwd</filename> and
  15458. <filename>files/group</filename> files by setting the
  15459. <link linkend='var-USERADD_UID_TABLES'><filename>USERADD_UID_TABLES</filename></link>
  15460. and
  15461. <link linkend='var-USERADD_GID_TABLES'><filename>USERADD_GID_TABLES</filename></link>
  15462. variables.
  15463. Additionally, you should also set the
  15464. <link linkend='var-USERADD_ERROR_DYNAMIC'><filename>USERADD_ERROR_DYNAMIC</filename></link>
  15465. variable.
  15466. </para>
  15467. </glossdef>
  15468. </glossentry>
  15469. </glossdiv>
  15470. <glossdiv id='var-glossary-v'><title>V</title>
  15471. <glossentry id='var-VOLATILE_LOG_DIR'><glossterm>VOLATILE_LOG_DIR</glossterm>
  15472. <info>
  15473. VOLATILE_LOG_DIR[doc] = "Specifies the persistence of the target's /var/log directory, which is used to house postinstall target log files."
  15474. </info>
  15475. <glossdef>
  15476. <para role="glossdeffirst">
  15477. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15478. Specifies the persistence of the target's
  15479. <filename>/var/log</filename> directory, which is used to
  15480. house postinstall target log files.
  15481. </para>
  15482. <para>
  15483. By default, <filename>VOLATILE_LOG_DIR</filename> is set
  15484. to "yes", which means the file is not persistent.
  15485. You can override this setting by setting the
  15486. variable to "no" to make the log directory persistent.
  15487. </para>
  15488. </glossdef>
  15489. </glossentry>
  15490. </glossdiv>
  15491. <glossdiv id='var-glossary-w'><title>W</title>
  15492. <glossentry id='var-WARN_QA'><glossterm>WARN_QA</glossterm>
  15493. <info>
  15494. WARN_QA[doc] = "Specifies the quality assurance checks whose failures are reported as warnings by the OpenEmbedded build system."
  15495. </info>
  15496. <glossdef>
  15497. <para role="glossdeffirst">
  15498. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15499. Specifies the quality assurance checks whose failures are
  15500. reported as warnings by the OpenEmbedded build system.
  15501. You set this variable in your distribution configuration
  15502. file.
  15503. For a list of the checks you can control with this variable,
  15504. see the
  15505. "<link linkend='ref-classes-insane'><filename>insane.bbclass</filename></link>"
  15506. section.
  15507. </para>
  15508. </glossdef>
  15509. </glossentry>
  15510. <glossentry id='var-WKS_FILE_DEPENDS'><glossterm>WKS_FILE_DEPENDS</glossterm>
  15511. <info>
  15512. WKS_FILE_DEPENDS[doc] = "Lists a recipe's build-time dependencies specific to Wic."
  15513. </info>
  15514. <glossdef>
  15515. <para role="glossdeffirst">
  15516. When placed in the recipe that builds your image, this
  15517. variable lists build-time dependencies.
  15518. The <filename>WKS_FILE_DEPENDS</filename> variable is only
  15519. applicable when Wic images are active (i.e. when
  15520. <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
  15521. contains entries related to Wic).
  15522. If your recipe does not create Wic images, the variable
  15523. has no effect.
  15524. </para>
  15525. <para>
  15526. The <filename>WKS_FILE_DEPENDS</filename> variable is
  15527. similar to the
  15528. <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
  15529. variable.
  15530. When you use the variable in your recipe that builds the
  15531. Wic image, dependencies you list in the
  15532. <filename>WIC_FILE_DEPENDS</filename> variable are added to
  15533. the <filename>DEPENDS</filename> variable.
  15534. </para>
  15535. <para>
  15536. With the <filename>WKS_FILE_DEPENDS</filename> variable,
  15537. you have the possibility to specify a list of additional
  15538. dependencies (e.g. native tools, bootloaders, and so forth),
  15539. that are required to build Wic images.
  15540. Following is an example:
  15541. <literallayout class='monospaced'>
  15542. WKS_FILE_DEPENDS = "<replaceable>some-native-tool</replaceable>"
  15543. </literallayout>
  15544. In the previous example,
  15545. <replaceable>some-native-tool</replaceable> would be
  15546. replaced with an actual native tool on which the build
  15547. would depend.
  15548. </para>
  15549. </glossdef>
  15550. </glossentry>
  15551. <glossentry id='var-WKS_FILE'><glossterm>WKS_FILE</glossterm>
  15552. <info>
  15553. WKS_FILE[doc] = "Specifies the name of the wic kickstart file."
  15554. </info>
  15555. <glossdef>
  15556. <para role="glossdeffirst">
  15557. Specifies the location of the Wic
  15558. kickstart file that is used by the OpenEmbedded build
  15559. system to create a partitioned image
  15560. (<replaceable>image</replaceable><filename>.wic</filename>).
  15561. For information on how to create a partitioned image, see
  15562. the
  15563. "<ulink url='&YOCTO_DOCS_DEV_URL;#creating-partitioned-images-using-wic'>Creating Partitioned Images Using Wic</ulink>"
  15564. section in the Yocto Project Development Tasks Manual.
  15565. For details on the kickstart file format, see the
  15566. "<link linkend='ref-kickstart'>OpenEmbedded Kickstart (<filename>.wks</filename>) Reference</link>
  15567. Chapter.
  15568. </para>
  15569. </glossdef>
  15570. </glossentry>
  15571. <glossentry id='var-WORKDIR'><glossterm>WORKDIR</glossterm>
  15572. <info>
  15573. 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."
  15574. </info>
  15575. <glossdef>
  15576. <para role="glossdeffirst">
  15577. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15578. The pathname of the work directory in which the OpenEmbedded
  15579. build system builds a recipe.
  15580. This directory is located within the
  15581. <link linkend='var-TMPDIR'><filename>TMPDIR</filename></link>
  15582. directory structure and is specific to the recipe being
  15583. built and the system for which it is being built.
  15584. </para>
  15585. <para>
  15586. The <filename>WORKDIR</filename> directory is defined as
  15587. follows:
  15588. <literallayout class='monospaced'>
  15589. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  15590. </literallayout>
  15591. The actual directory depends on several things:
  15592. <itemizedlist>
  15593. <listitem><filename>TMPDIR</filename>:
  15594. The top-level build output directory</listitem>
  15595. <listitem><link linkend='var-MULTIMACH_TARGET_SYS'><filename>MULTIMACH_TARGET_SYS</filename></link>:
  15596. The target system identifier</listitem>
  15597. <listitem><link linkend='var-PN'><filename>PN</filename></link>:
  15598. The recipe name</listitem>
  15599. <listitem><link linkend='var-EXTENDPE'><filename>EXTENDPE</filename></link>:
  15600. The epoch - (if
  15601. <link linkend='var-PE'><filename>PE</filename></link>
  15602. is not specified, which is usually the case for most
  15603. recipes, then <filename>EXTENDPE</filename> is blank)</listitem>
  15604. <listitem><link linkend='var-PV'><filename>PV</filename></link>:
  15605. The recipe version</listitem>
  15606. <listitem><link linkend='var-PR'><filename>PR</filename></link>:
  15607. The recipe revision</listitem>
  15608. </itemizedlist>
  15609. </para>
  15610. <para>
  15611. As an example, assume a Source Directory top-level folder
  15612. name <filename>poky</filename>, a default Build Directory at
  15613. <filename>poky/build</filename>, and a
  15614. <filename>qemux86-poky-linux</filename> machine target
  15615. system.
  15616. Furthermore, suppose your recipe is named
  15617. <filename>foo_1.3.0-r0.bb</filename>.
  15618. In this case, the work directory the build system uses to
  15619. build the package would be as follows:
  15620. <literallayout class='monospaced'>
  15621. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  15622. </literallayout>
  15623. </para>
  15624. </glossdef>
  15625. </glossentry>
  15626. </glossdiv>
  15627. <glossdiv id='var-glossary-x'><title>X</title>
  15628. <glossentry id='var-XSERVER'><glossterm>XSERVER</glossterm>
  15629. <info>
  15630. XSERVER[doc] = "Specifies the packages that should be installed
  15631. to provide an X server and drivers for the current machine."
  15632. </info>
  15633. <glossdef>
  15634. <para role="glossdeffirst">
  15635. <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
  15636. Specifies the packages that should be installed to
  15637. provide an X server and drivers for the current machine,
  15638. assuming your image directly includes
  15639. <filename>packagegroup-core-x11-xserver</filename> or,
  15640. perhaps indirectly, includes "x11-base" in
  15641. <link linkend='var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></link>.
  15642. </para>
  15643. <para>
  15644. The default value of <filename>XSERVER</filename>, if not
  15645. specified in the machine configuration, is
  15646. "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  15647. </para>
  15648. </glossdef>
  15649. </glossentry>
  15650. </glossdiv>
  15651. <!-- <glossdiv id='var-glossary-y'><title>Y</title>-->
  15652. <!-- </glossdiv>-->
  15653. <!-- <glossdiv id='var-glossary-z'><title>Z</title>-->
  15654. <!-- </glossdiv>-->
  15655. </glossary>
  15656. </chapter>
  15657. <!--
  15658. vim: expandtab tw=80 ts=4
  15659. -->