variables.rst 366 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. ******************
  3. Variables Glossary
  4. ******************
  5. This chapter lists common variables used in the OpenEmbedded build
  6. system and gives an overview of their function and contents.
  7. :term:`A <ABIEXTENSION>` :term:`B` :term:`C <CACHE>`
  8. :term:`D` :term:`E <EFI_PROVIDER>` :term:`F <FEATURE_PACKAGES>`
  9. :term:`G <GCCPIE>` :term:`H <HOMEPAGE>` :term:`I <ICECC_DISABLED>`
  10. :term:`K <KARCH>` :term:`L <LABELS>` :term:`M <MACHINE>`
  11. :term:`N <NATIVELSBSTRING>` :term:`O <OBJCOPY>` :term:`P`
  12. :term:`R <RANLIB>` :term:`S` :term:`T`
  13. :term:`U <UBOOT_CONFIG>` :term:`V <VOLATILE_LOG_DIR>`
  14. :term:`W <WARN_QA>` :term:`X <XSERVER>`
  15. .. glossary::
  16. :term:`ABIEXTENSION`
  17. Extension to the Application Binary Interface (ABI) field of the GNU
  18. canonical architecture name (e.g. "eabi").
  19. ABI extensions are set in the machine include files. For example, the
  20. ``meta/conf/machine/include/arm/arch-arm.inc`` file sets the
  21. following extension:
  22. ::
  23. ABIEXTENSION = "eabi"
  24. :term:`ALLOW_EMPTY`
  25. Specifies whether to produce an output package even if it is empty.
  26. By default, BitBake does not produce empty packages. This default
  27. behavior can cause issues when there is an
  28. :term:`RDEPENDS` or some other hard runtime
  29. requirement on the existence of the package.
  30. Like all package-controlling variables, you must always use them in
  31. conjunction with a package name override, as in:
  32. ::
  33. ALLOW_EMPTY_${PN} = "1"
  34. ALLOW_EMPTY_${PN}-dev = "1"
  35. ALLOW_EMPTY_${PN}-staticdev = "1"
  36. :term:`ALTERNATIVE`
  37. Lists commands in a package that need an alternative binary naming
  38. scheme. Sometimes the same command is provided in multiple packages.
  39. When this occurs, the OpenEmbedded build system needs to use the
  40. alternatives system to create a different binary naming scheme so the
  41. commands can co-exist.
  42. To use the variable, list out the package's commands that also exist
  43. as part of another package. For example, if the ``busybox`` package
  44. has four commands that also exist as part of another package, you
  45. identify them as follows:
  46. ::
  47. ALTERNATIVE_busybox = "sh sed test bracket"
  48. For more information on the alternatives system, see the
  49. ":ref:`update-alternatives.bbclass <ref-classes-update-alternatives>`"
  50. section.
  51. :term:`ALTERNATIVE_LINK_NAME`
  52. Used by the alternatives system to map duplicated commands to actual
  53. locations. For example, if the ``bracket`` command provided by the
  54. ``busybox`` package is duplicated through another package, you must
  55. use the ``ALTERNATIVE_LINK_NAME`` variable to specify the actual
  56. location:
  57. ::
  58. ALTERNATIVE_LINK_NAME[bracket] = "/usr/bin/["
  59. In this example, the binary for the ``bracket`` command (i.e. ``[``)
  60. from the ``busybox`` package resides in ``/usr/bin/``.
  61. .. note::
  62. If ``ALTERNATIVE_LINK_NAME`` is not defined, it defaults to ``${bindir}/name``.
  63. For more information on the alternatives system, see the
  64. ":ref:`update-alternatives.bbclass <ref-classes-update-alternatives>`"
  65. section.
  66. :term:`ALTERNATIVE_PRIORITY`
  67. Used by the alternatives system to create default priorities for
  68. duplicated commands. You can use the variable to create a single
  69. default regardless of the command name or package, a default for
  70. specific duplicated commands regardless of the package, or a default
  71. for specific commands tied to particular packages. Here are the
  72. available syntax forms:
  73. ::
  74. ALTERNATIVE_PRIORITY = "priority"
  75. ALTERNATIVE_PRIORITY[name] = "priority"
  76. ALTERNATIVE_PRIORITY_pkg[name] = "priority"
  77. For more information on the alternatives system, see the
  78. ":ref:`update-alternatives.bbclass <ref-classes-update-alternatives>`"
  79. section.
  80. :term:`ALTERNATIVE_TARGET`
  81. Used by the alternatives system to create default link locations for
  82. duplicated commands. You can use the variable to create a single
  83. default location for all duplicated commands regardless of the
  84. command name or package, a default for specific duplicated commands
  85. regardless of the package, or a default for specific commands tied to
  86. particular packages. Here are the available syntax forms:
  87. ::
  88. ALTERNATIVE_TARGET = "target"
  89. ALTERNATIVE_TARGET[name] = "target"
  90. ALTERNATIVE_TARGET_pkg[name] = "target"
  91. .. note::
  92. If ``ALTERNATIVE_TARGET`` is not defined, it inherits the value
  93. from the :term:`ALTERNATIVE_LINK_NAME` variable.
  94. If ``ALTERNATIVE_LINK_NAME`` and ``ALTERNATIVE_TARGET`` are the
  95. same, the target for ``ALTERNATIVE_TARGET`` has "``.{BPN}``"
  96. appended to it.
  97. Finally, if the file referenced has not been renamed, the
  98. alternatives system will rename it to avoid the need to rename
  99. alternative files in the :ref:`ref-tasks-install`
  100. task while retaining support for the command if necessary.
  101. For more information on the alternatives system, see the
  102. ":ref:`update-alternatives.bbclass <ref-classes-update-alternatives>`"
  103. section.
  104. :term:`ANY_OF_DISTRO_FEATURES`
  105. When inheriting the
  106. :ref:`features_check <ref-classes-features_check>`
  107. class, this variable identifies a list of distribution features where
  108. at least one must be enabled in the current configuration in order
  109. for the OpenEmbedded build system to build the recipe. In other words,
  110. if none of the features listed in ``ANY_OF_DISTRO_FEATURES``
  111. appear in ``DISTRO_FEATURES`` within the current configuration, then
  112. the recipe will be skipped, and if the build system attempts to build
  113. the recipe then an error will be triggered.
  114. :term:`APPEND`
  115. An override list of append strings for each target specified with
  116. :term:`LABELS`.
  117. See the :ref:`grub-efi <ref-classes-grub-efi>` class for more
  118. information on how this variable is used.
  119. :term:`AR`
  120. The minimal command and arguments used to run ``ar``.
  121. :term:`ARCHIVER_MODE`
  122. When used with the :ref:`archiver <ref-classes-archiver>` class,
  123. determines the type of information used to create a released archive.
  124. You can use this variable to create archives of patched source,
  125. original source, configured source, and so forth by employing the
  126. following variable flags (varflags):
  127. ::
  128. ARCHIVER_MODE[src] = "original" # Uses original (unpacked) source files.
  129. ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is the default.
  130. ARCHIVER_MODE[src] = "configured" # Uses configured source files.
  131. ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and do_patch.
  132. ARCHIVER_MODE[diff-exclude] ?= "file file ..." # Lists files and directories to exclude from diff.
  133. ARCHIVER_MODE[dumpdata] = "1" # Uses environment data.
  134. ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files.
  135. ARCHIVER_MODE[srpm] = "1" # Uses RPM package files.
  136. For information on how the variable works, see the
  137. ``meta/classes/archiver.bbclass`` file in the :term:`Source Directory`.
  138. :term:`AS`
  139. Minimal command and arguments needed to run the assembler.
  140. :term:`ASSUME_PROVIDED`
  141. Lists recipe names (:term:`PN` values) BitBake does not
  142. attempt to build. Instead, BitBake assumes these recipes have already
  143. been built.
  144. In OpenEmbedded-Core, ``ASSUME_PROVIDED`` mostly specifies native
  145. tools that should not be built. An example is ``git-native``, which
  146. when specified, allows for the Git binary from the host to be used
  147. rather than building ``git-native``.
  148. :term:`ASSUME_SHLIBS`
  149. Provides additional ``shlibs`` provider mapping information, which
  150. adds to or overwrites the information provided automatically by the
  151. system. Separate multiple entries using spaces.
  152. As an example, use the following form to add an ``shlib`` provider of
  153. shlibname in packagename with the optional version:
  154. ::
  155. shlibname:packagename[_version]
  156. Here is an example that adds a shared library named ``libEGL.so.1``
  157. as being provided by the ``libegl-implementation`` package:
  158. ::
  159. ASSUME_SHLIBS = "libEGL.so.1:libegl-implementation"
  160. :term:`AUTHOR`
  161. The email address used to contact the original author or authors in
  162. order to send patches and forward bugs.
  163. :term:`AUTO_LIBNAME_PKGS`
  164. When the :ref:`debian <ref-classes-debian>` class is inherited,
  165. which is the default behavior, ``AUTO_LIBNAME_PKGS`` specifies which
  166. packages should be checked for libraries and renamed according to
  167. Debian library package naming.
  168. The default value is "${PACKAGES}", which causes the debian class to
  169. act on all packages that are explicitly generated by the recipe.
  170. :term:`AUTO_SYSLINUXMENU`
  171. Enables creating an automatic menu for the syslinux bootloader. You
  172. must set this variable in your recipe. The
  173. :ref:`syslinux <ref-classes-syslinux>` class checks this variable.
  174. :term:`AUTOREV`
  175. When ``SRCREV`` is set to the value of this variable, it specifies to
  176. use the latest source revision in the repository. Here is an example:
  177. ::
  178. SRCREV = "${AUTOREV}"
  179. If you use the previous statement to retrieve the latest version of
  180. software, you need to be sure :term:`PV` contains
  181. ``${``\ :term:`SRCPV`\ ``}``. For example, suppose you
  182. have a kernel recipe that inherits the
  183. :ref:`kernel <ref-classes-kernel>` class and you use the previous
  184. statement. In this example, ``${SRCPV}`` does not automatically get
  185. into ``PV``. Consequently, you need to change ``PV`` in your recipe
  186. so that it does contain ``${SRCPV}``.
  187. For more information see the
  188. ":ref:`dev-manual/common-tasks:automatically incrementing a package version number`"
  189. section in the Yocto Project Development Tasks Manual.
  190. :term:`AVAILABLE_LICENSES`
  191. List of licenses found in the directories specified by
  192. :term:`COMMON_LICENSE_DIR` and
  193. :term:`LICENSE_PATH`.
  194. .. note::
  195. It is assumed that all changes to ``COMMON_LICENSE_DIR`` and
  196. ``LICENSE_PATH`` have been done before ``AVAILABLE_LICENSES``
  197. is defined (in :ref:`ref-classes-license`).
  198. :term:`AVAILTUNES`
  199. The list of defined CPU and Application Binary Interface (ABI)
  200. tunings (i.e. "tunes") available for use by the OpenEmbedded build
  201. system.
  202. The list simply presents the tunes that are available. Not all tunes
  203. may be compatible with a particular machine configuration, or with
  204. each other in a
  205. :ref:`Multilib <dev-manual/common-tasks:combining multiple versions of library files into one image>`
  206. configuration.
  207. To add a tune to the list, be sure to append it with spaces using the
  208. "+=" BitBake operator. Do not simply replace the list by using the
  209. "=" operator. See the
  210. ":ref:`Basic Syntax <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:basic syntax>`" section in the BitBake
  211. User Manual for more information.
  212. :term:`AZ_SAS`
  213. Azure Storage Shared Access Signature, when using the
  214. :ref:`Azure Storage fetcher (az://) <bitbake:bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
  215. This variable can be defined to be used by the fetcher to authenticate
  216. and gain access to non-public artifacts.
  217. ::
  218. AZ_SAS = ""se=2021-01-01&sp=r&sv=2018-11-09&sr=c&skoid=<skoid>&sig=<signature>""
  219. For more information see Microsoft's Azure Storage documentation at
  220. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
  221. :term:`B`
  222. The directory within the :term:`Build Directory` in
  223. which the OpenEmbedded build system places generated objects during a
  224. recipe's build process. By default, this directory is the same as the
  225. :term:`S` directory, which is defined as:
  226. ::
  227. S = "${WORKDIR}/${BP}"
  228. You can separate the (``S``) directory and the directory pointed to
  229. by the ``B`` variable. Most Autotools-based recipes support
  230. separating these directories. The build system defaults to using
  231. separate directories for ``gcc`` and some kernel recipes.
  232. :term:`BAD_RECOMMENDATIONS`
  233. Lists "recommended-only" packages to not install. Recommended-only
  234. packages are packages installed only through the
  235. :term:`RRECOMMENDS` variable. You can prevent any
  236. of these "recommended" packages from being installed by listing them
  237. with the ``BAD_RECOMMENDATIONS`` variable:
  238. ::
  239. BAD_RECOMMENDATIONS = "package_name package_name package_name ..."
  240. You can set this variable globally in your ``local.conf`` file or you
  241. can attach it to a specific image recipe by using the recipe name
  242. override:
  243. ::
  244. BAD_RECOMMENDATIONS_pn-target_image = "package_name"
  245. It is important to realize that if you choose to not install packages
  246. using this variable and some other packages are dependent on them
  247. (i.e. listed in a recipe's :term:`RDEPENDS`
  248. variable), the OpenEmbedded build system ignores your request and
  249. will install the packages to avoid dependency errors.
  250. Support for this variable exists only when using the IPK and RPM
  251. packaging backend. Support does not exist for DEB.
  252. See the :term:`NO_RECOMMENDATIONS` and the
  253. :term:`PACKAGE_EXCLUDE` variables for related
  254. information.
  255. :term:`BASE_LIB`
  256. The library directory name for the CPU or Application Binary
  257. Interface (ABI) tune. The ``BASE_LIB`` applies only in the Multilib
  258. context. See the ":ref:`dev-manual/common-tasks:combining multiple versions of library files into one image`"
  259. section in the Yocto Project Development Tasks Manual for information
  260. on Multilib.
  261. The ``BASE_LIB`` variable is defined in the machine include files in
  262. the :term:`Source Directory`. If Multilib is not
  263. being used, the value defaults to "lib".
  264. :term:`BASE_WORKDIR`
  265. Points to the base of the work directory for all recipes. The default
  266. value is "${TMPDIR}/work".
  267. :term:`BB_ALLOWED_NETWORKS`
  268. Specifies a space-delimited list of hosts that the fetcher is allowed
  269. to use to obtain the required source code. Following are
  270. considerations surrounding this variable:
  271. - This host list is only used if ``BB_NO_NETWORK`` is either not set
  272. or set to "0".
  273. - Limited support for wildcard matching against the beginning of
  274. host names exists. For example, the following setting matches
  275. ``git.gnu.org``, ``ftp.gnu.org``, and ``foo.git.gnu.org``.
  276. ::
  277. BB_ALLOWED_NETWORKS = "*.gnu.org"
  278. .. note::
  279. The use of the "``*``" character only works at the beginning of
  280. a host name and it must be isolated from the remainder of the
  281. host name. You cannot use the wildcard character in any other
  282. location of the name or combined with the front part of the
  283. name.
  284. For example, ``*.foo.bar`` is supported, while ``*aa.foo.bar``
  285. is not.
  286. - Mirrors not in the host list are skipped and logged in debug.
  287. - Attempts to access networks not in the host list cause a failure.
  288. Using ``BB_ALLOWED_NETWORKS`` in conjunction with
  289. :term:`PREMIRRORS` is very useful. Adding the host
  290. you want to use to ``PREMIRRORS`` results in the source code being
  291. fetched from an allowed location and avoids raising an error when a
  292. host that is not allowed is in a :term:`SRC_URI`
  293. statement. This is because the fetcher does not attempt to use the
  294. host listed in ``SRC_URI`` after a successful fetch from the
  295. ``PREMIRRORS`` occurs.
  296. :term:`BB_DANGLINGAPPENDS_WARNONLY`
  297. Defines how BitBake handles situations where an append file
  298. (``.bbappend``) has no corresponding recipe file (``.bb``). This
  299. condition often occurs when layers get out of sync (e.g. ``oe-core``
  300. bumps a recipe version and the old recipe no longer exists and the
  301. other layer has not been updated to the new version of the recipe
  302. yet).
  303. The default fatal behavior is safest because it is the sane reaction
  304. given something is out of sync. It is important to realize when your
  305. changes are no longer being applied.
  306. You can change the default behavior by setting this variable to "1",
  307. "yes", or "true" in your ``local.conf`` file, which is located in the
  308. :term:`Build Directory`: Here is an example:
  309. ::
  310. BB_DANGLINGAPPENDS_WARNONLY = "1"
  311. :term:`BB_DISKMON_DIRS`
  312. Monitors disk space and available inodes during the build and allows
  313. you to control the build based on these parameters.
  314. Disk space monitoring is disabled by default. To enable monitoring,
  315. add the ``BB_DISKMON_DIRS`` variable to your ``conf/local.conf`` file
  316. found in the :term:`Build Directory`. Use the
  317. following form:
  318. .. code-block:: none
  319. BB_DISKMON_DIRS = "action,dir,threshold [...]"
  320. where:
  321. action is:
  322. ABORT: Immediately abort the build when
  323. a threshold is broken.
  324. STOPTASKS: Stop the build after the currently
  325. executing tasks have finished when
  326. a threshold is broken.
  327. WARN: Issue a warning but continue the
  328. build when a threshold is broken.
  329. Subsequent warnings are issued as
  330. defined by the BB_DISKMON_WARNINTERVAL
  331. variable, which must be defined in
  332. the conf/local.conf file.
  333. dir is:
  334. Any directory you choose. You can specify one or
  335. more directories to monitor by separating the
  336. groupings with a space. If two directories are
  337. on the same device, only the first directory
  338. is monitored.
  339. threshold is:
  340. Either the minimum available disk space,
  341. the minimum number of free inodes, or
  342. both. You must specify at least one. To
  343. omit one or the other, simply omit the value.
  344. Specify the threshold using G, M, K for Gbytes,
  345. Mbytes, and Kbytes, respectively. If you do
  346. not specify G, M, or K, Kbytes is assumed by
  347. default. Do not use GB, MB, or KB.
  348. Here are some examples:
  349. ::
  350. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  351. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  352. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  353. The first example works only if you also provide the
  354. :term:`BB_DISKMON_WARNINTERVAL`
  355. variable in the ``conf/local.conf``. This example causes the build
  356. system to immediately abort when either the disk space in
  357. ``${TMPDIR}`` drops below 1 Gbyte or the available free inodes drops
  358. below 100 Kbytes. Because two directories are provided with the
  359. variable, the build system also issue a warning when the disk space
  360. in the ``${SSTATE_DIR}`` directory drops below 1 Gbyte or the number
  361. of free inodes drops below 100 Kbytes. Subsequent warnings are issued
  362. during intervals as defined by the ``BB_DISKMON_WARNINTERVAL``
  363. variable.
  364. The second example stops the build after all currently executing
  365. tasks complete when the minimum disk space in the ``${TMPDIR}``
  366. directory drops below 1 Gbyte. No disk monitoring occurs for the free
  367. inodes in this case.
  368. The final example immediately aborts the build when the number of
  369. free inodes in the ``${TMPDIR}`` directory drops below 100 Kbytes. No
  370. disk space monitoring for the directory itself occurs in this case.
  371. :term:`BB_DISKMON_WARNINTERVAL`
  372. Defines the disk space and free inode warning intervals. To set these
  373. intervals, define the variable in your ``conf/local.conf`` file in
  374. the :term:`Build Directory`.
  375. If you are going to use the ``BB_DISKMON_WARNINTERVAL`` variable, you
  376. must also use the :term:`BB_DISKMON_DIRS`
  377. variable and define its action as "WARN". During the build,
  378. subsequent warnings are issued each time disk space or number of free
  379. inodes further reduces by the respective interval.
  380. If you do not provide a ``BB_DISKMON_WARNINTERVAL`` variable and you
  381. do use ``BB_DISKMON_DIRS`` with the "WARN" action, the disk
  382. monitoring interval defaults to the following:
  383. ::
  384. BB_DISKMON_WARNINTERVAL = "50M,5K"
  385. When specifying the variable in your configuration file, use the
  386. following form:
  387. .. code-block:: none
  388. BB_DISKMON_WARNINTERVAL = "disk_space_interval,disk_inode_interval"
  389. where:
  390. disk_space_interval is:
  391. An interval of memory expressed in either
  392. G, M, or K for Gbytes, Mbytes, or Kbytes,
  393. respectively. You cannot use GB, MB, or KB.
  394. disk_inode_interval is:
  395. An interval of free inodes expressed in either
  396. G, M, or K for Gbytes, Mbytes, or Kbytes,
  397. respectively. You cannot use GB, MB, or KB.
  398. Here is an example:
  399. ::
  400. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  401. BB_DISKMON_WARNINTERVAL = "50M,5K"
  402. These variables cause the
  403. OpenEmbedded build system to issue subsequent warnings each time the
  404. available disk space further reduces by 50 Mbytes or the number of
  405. free inodes further reduces by 5 Kbytes in the ``${SSTATE_DIR}``
  406. directory. Subsequent warnings based on the interval occur each time
  407. a respective interval is reached beyond the initial warning (i.e. 1
  408. Gbytes and 100 Kbytes).
  409. :term:`BB_GENERATE_MIRROR_TARBALLS`
  410. Causes tarballs of the source control repositories (e.g. Git
  411. repositories), including metadata, to be placed in the
  412. :term:`DL_DIR` directory.
  413. For performance reasons, creating and placing tarballs of these
  414. repositories is not the default action by the OpenEmbedded build
  415. system.
  416. ::
  417. BB_GENERATE_MIRROR_TARBALLS = "1"
  418. Set this variable in your
  419. ``local.conf`` file in the :term:`Build Directory`.
  420. Once you have the tarballs containing your source files, you can
  421. clean up your ``DL_DIR`` directory by deleting any Git or other
  422. source control work directories.
  423. :term:`BB_NUMBER_THREADS`
  424. The maximum number of tasks BitBake should run in parallel at any one
  425. time. The OpenEmbedded build system automatically configures this
  426. variable to be equal to the number of cores on the build system. For
  427. example, a system with a dual core processor that also uses
  428. hyper-threading causes the ``BB_NUMBER_THREADS`` variable to default
  429. to "4".
  430. For single socket systems (i.e. one CPU), you should not have to
  431. override this variable to gain optimal parallelism during builds.
  432. However, if you have very large systems that employ multiple physical
  433. CPUs, you might want to make sure the ``BB_NUMBER_THREADS`` variable
  434. is not set higher than "20".
  435. For more information on speeding up builds, see the
  436. ":ref:`dev-manual/common-tasks:speeding up a build`"
  437. section in the Yocto Project Development Tasks Manual.
  438. :term:`BB_SERVER_TIMEOUT`
  439. Specifies the time (in seconds) after which to unload the BitBake
  440. server due to inactivity. Set ``BB_SERVER_TIMEOUT`` to determine how
  441. long the BitBake server stays resident between invocations.
  442. For example, the following statement in your ``local.conf`` file
  443. instructs the server to be unloaded after 20 seconds of inactivity:
  444. ::
  445. BB_SERVER_TIMEOUT = "20"
  446. If you want the server to never be unloaded,
  447. set ``BB_SERVER_TIMEOUT`` to "-1".
  448. :term:`BBCLASSEXTEND`
  449. Allows you to extend a recipe so that it builds variants of the
  450. software. Common variants for recipes exist such as "natives" like
  451. ``quilt-native``, which is a copy of Quilt built to run on the build
  452. system; "crosses" such as ``gcc-cross``, which is a compiler built to
  453. run on the build machine but produces binaries that run on the target
  454. :term:`MACHINE`; "nativesdk", which targets the SDK
  455. machine instead of ``MACHINE``; and "mulitlibs" in the form
  456. "``multilib:``\ multilib_name".
  457. To build a different variant of the recipe with a minimal amount of
  458. code, it usually is as simple as adding the following to your recipe:
  459. ::
  460. BBCLASSEXTEND =+ "native nativesdk"
  461. BBCLASSEXTEND =+ "multilib:multilib_name"
  462. .. note::
  463. Internally, the ``BBCLASSEXTEND`` mechanism generates recipe
  464. variants by rewriting variable values and applying overrides such
  465. as ``_class-native``. For example, to generate a native version of
  466. a recipe, a :term:`DEPENDS` on "foo" is rewritten
  467. to a ``DEPENDS`` on "foo-native".
  468. Even when using ``BBCLASSEXTEND``, the recipe is only parsed once.
  469. Parsing once adds some limitations. For example, it is not
  470. possible to include a different file depending on the variant,
  471. since ``include`` statements are processed when the recipe is
  472. parsed.
  473. :term:`BBFILE_COLLECTIONS`
  474. Lists the names of configured layers. These names are used to find
  475. the other ``BBFILE_*`` variables. Typically, each layer will append
  476. its name to this variable in its ``conf/layer.conf`` file.
  477. :term:`BBFILE_PATTERN`
  478. Variable that expands to match files from
  479. :term:`BBFILES` in a particular layer. This variable
  480. is used in the ``conf/layer.conf`` file and must be suffixed with the
  481. name of the specific layer (e.g. ``BBFILE_PATTERN_emenlow``).
  482. :term:`BBFILE_PRIORITY`
  483. Assigns the priority for recipe files in each layer.
  484. This variable is useful in situations where the same recipe appears
  485. in more than one layer. Setting this variable allows you to
  486. prioritize a layer against other layers that contain the same recipe
  487. - effectively letting you control the precedence for the multiple
  488. layers. The precedence established through this variable stands
  489. regardless of a recipe's version (:term:`PV` variable). For
  490. example, a layer that has a recipe with a higher ``PV`` value but for
  491. which the ``BBFILE_PRIORITY`` is set to have a lower precedence still
  492. has a lower precedence.
  493. A larger value for the ``BBFILE_PRIORITY`` variable results in a
  494. higher precedence. For example, the value 6 has a higher precedence
  495. than the value 5. If not specified, the ``BBFILE_PRIORITY`` variable
  496. is set based on layer dependencies (see the ``LAYERDEPENDS`` variable
  497. for more information. The default priority, if unspecified for a
  498. layer with no dependencies, is the lowest defined priority + 1 (or 1
  499. if no priorities are defined).
  500. .. tip::
  501. You can use the command ``bitbake-layers show-layers``
  502. to list all configured layers along with their priorities.
  503. :term:`BBFILES`
  504. A space-separated list of recipe files BitBake uses to build
  505. software.
  506. When specifying recipe files, you can pattern match using Python's
  507. `glob <https://docs.python.org/3/library/glob.html>`_ syntax.
  508. For details on the syntax, see the documentation by following the
  509. previous link.
  510. :term:`BBFILES_DYNAMIC`
  511. Activates content when identified layers are present. You identify
  512. the layers by the collections that the layers define.
  513. Use the ``BBFILES_DYNAMIC`` variable to avoid ``.bbappend`` files
  514. whose corresponding ``.bb`` file is in a layer that attempts to
  515. modify other layers through ``.bbappend`` but does not want to
  516. introduce a hard dependency on those other layers.
  517. Use the following form for ``BBFILES_DYNAMIC``:
  518. collection_name:filename_pattern The following example identifies two
  519. collection names and two filename patterns:
  520. ::
  521. BBFILES_DYNAMIC += " \
  522. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  523. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  524. "
  525. This next example shows an error message that occurs because invalid
  526. entries are found, which cause parsing to abort:
  527. .. code-block:: none
  528. ERROR: BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:
  529. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  530. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  531. :term:`BBINCLUDELOGS`
  532. Variable that controls how BitBake displays logs on build failure.
  533. :term:`BBINCLUDELOGS_LINES`
  534. If :term:`BBINCLUDELOGS` is set, specifies the
  535. maximum number of lines from the task log file to print when
  536. reporting a failed task. If you do not set ``BBINCLUDELOGS_LINES``,
  537. the entire log is printed.
  538. :term:`BBLAYERS`
  539. Lists the layers to enable during the build. This variable is defined
  540. in the ``bblayers.conf`` configuration file in the :term:`Build Directory`.
  541. Here is an example:
  542. ::
  543. BBLAYERS = " \
  544. /home/scottrif/poky/meta \
  545. /home/scottrif/poky/meta-poky \
  546. /home/scottrif/poky/meta-yocto-bsp \
  547. /home/scottrif/poky/meta-mykernel \
  548. "
  549. This example enables four layers, one of which is a custom,
  550. user-defined layer named ``meta-mykernel``.
  551. :term:`BBMASK`
  552. Prevents BitBake from processing recipes and recipe append files.
  553. You can use the ``BBMASK`` variable to "hide" these ``.bb`` and
  554. ``.bbappend`` files. BitBake ignores any recipe or recipe append
  555. files that match any of the expressions. It is as if BitBake does not
  556. see them at all. Consequently, matching files are not parsed or
  557. otherwise used by BitBake.
  558. The values you provide are passed to Python's regular expression
  559. compiler. Consequently, the syntax follows Python's Regular
  560. Expression (re) syntax. The expressions are compared against the full
  561. paths to the files. For complete syntax information, see Python's
  562. documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax.
  563. The following example uses a complete regular expression to tell
  564. BitBake to ignore all recipe and recipe append files in the
  565. ``meta-ti/recipes-misc/`` directory:
  566. ::
  567. BBMASK = "meta-ti/recipes-misc/"
  568. If you want to mask out multiple directories or recipes, you can
  569. specify multiple regular expression fragments. This next example
  570. masks out multiple directories and individual recipes: ::
  571. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  572. BBMASK += "/meta-oe/recipes-support/"
  573. BBMASK += "/meta-foo/.*/openldap"
  574. BBMASK += "opencv.*\.bbappend"
  575. BBMASK += "lzma"
  576. .. note::
  577. When specifying a directory name, use the trailing slash character
  578. to ensure you match just that directory name.
  579. :term:`BBMULTICONFIG`
  580. Specifies each additional separate configuration when you are
  581. building targets with multiple configurations. Use this variable in
  582. your ``conf/local.conf`` configuration file. Specify a
  583. multiconfigname for each configuration file you are using. For
  584. example, the following line specifies three configuration files:
  585. ::
  586. BBMULTICONFIG = "configA configB configC"
  587. Each configuration file you
  588. use must reside in the :term:`Build Directory`
  589. ``conf/multiconfig`` directory (e.g.
  590. build_directory\ ``/conf/multiconfig/configA.conf``).
  591. For information on how to use ``BBMULTICONFIG`` in an environment
  592. that supports building targets with multiple configurations, see the
  593. ":ref:`dev-manual/common-tasks:building images for multiple targets using multiple configurations`"
  594. section in the Yocto Project Development Tasks Manual.
  595. :term:`BBPATH`
  596. Used by BitBake to locate ``.bbclass`` and configuration files. This
  597. variable is analogous to the ``PATH`` variable.
  598. .. note::
  599. If you run BitBake from a directory outside of the
  600. Build Directory
  601. , you must be sure to set
  602. BBPATH
  603. to point to the Build Directory. Set the variable as you would any
  604. environment variable and then run BitBake:
  605. ::
  606. $ BBPATH = "build_directory"
  607. $ export BBPATH
  608. $ bitbake target
  609. :term:`BBSERVER`
  610. If defined in the BitBake environment, ``BBSERVER`` points to the
  611. BitBake remote server.
  612. Use the following format to export the variable to the BitBake
  613. environment:
  614. ::
  615. export BBSERVER=localhost:$port
  616. By default, ``BBSERVER`` also appears in
  617. :term:`bitbake:BB_HASHBASE_WHITELIST`.
  618. Consequently, ``BBSERVER`` is excluded from checksum and dependency
  619. data.
  620. :term:`BINCONFIG`
  621. When inheriting the
  622. :ref:`binconfig-disabled <ref-classes-binconfig-disabled>` class,
  623. this variable specifies binary configuration scripts to disable in
  624. favor of using ``pkg-config`` to query the information. The
  625. ``binconfig-disabled`` class will modify the specified scripts to
  626. return an error so that calls to them can be easily found and
  627. replaced.
  628. To add multiple scripts, separate them by spaces. Here is an example
  629. from the ``libpng`` recipe:
  630. ::
  631. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  632. :term:`BINCONFIG_GLOB`
  633. When inheriting the :ref:`binconfig <ref-classes-binconfig>` class,
  634. this variable specifies a wildcard for configuration scripts that
  635. need editing. The scripts are edited to correct any paths that have
  636. been set up during compilation so that they are correct for use when
  637. installed into the sysroot and called by the build processes of other
  638. recipes.
  639. .. note::
  640. The ``BINCONFIG_GLOB`` variable uses
  641. `shell globbing <https://tldp.org/LDP/abs/html/globbingref.html>`__,
  642. which is recognition and expansion of wildcards during pattern
  643. matching. Shell globbing is very similar to
  644. `fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__
  645. and `glob <https://docs.python.org/3/library/glob.html>`__.
  646. For more information on how this variable works, see
  647. ``meta/classes/binconfig.bbclass`` in the :term:`Source Directory`.
  648. You can also find general
  649. information on the class in the
  650. ":ref:`binconfig.bbclass <ref-classes-binconfig>`" section.
  651. :term:`BP`
  652. The base recipe name and version but without any special recipe name
  653. suffix (i.e. ``-native``, ``lib64-``, and so forth). ``BP`` is
  654. comprised of the following:
  655. ::
  656. ${BPN}-${PV}
  657. :term:`BPN`
  658. This variable is a version of the :term:`PN` variable with
  659. common prefixes and suffixes removed, such as ``nativesdk-``,
  660. ``-cross``, ``-native``, and multilib's ``lib64-`` and ``lib32-``.
  661. The exact lists of prefixes and suffixes removed are specified by the
  662. :term:`MLPREFIX` and
  663. :term:`SPECIAL_PKGSUFFIX` variables,
  664. respectively.
  665. :term:`BUGTRACKER`
  666. Specifies a URL for an upstream bug tracking website for a recipe.
  667. The OpenEmbedded build system does not use this variable. Rather, the
  668. variable is a useful pointer in case a bug in the software being
  669. built needs to be manually reported.
  670. :term:`BUILD_ARCH`
  671. Specifies the architecture of the build host (e.g. ``i686``). The
  672. OpenEmbedded build system sets the value of ``BUILD_ARCH`` from the
  673. machine name reported by the ``uname`` command.
  674. :term:`BUILD_AS_ARCH`
  675. Specifies the architecture-specific assembler flags for the build
  676. host. By default, the value of ``BUILD_AS_ARCH`` is empty.
  677. :term:`BUILD_CC_ARCH`
  678. Specifies the architecture-specific C compiler flags for the build
  679. host. By default, the value of ``BUILD_CC_ARCH`` is empty.
  680. :term:`BUILD_CCLD`
  681. Specifies the linker command to be used for the build host when the C
  682. compiler is being used as the linker. By default, ``BUILD_CCLD``
  683. points to GCC and passes as arguments the value of
  684. :term:`BUILD_CC_ARCH`, assuming
  685. ``BUILD_CC_ARCH`` is set.
  686. :term:`BUILD_CFLAGS`
  687. Specifies the flags to pass to the C compiler when building for the
  688. build host. When building in the ``-native`` context,
  689. :term:`CFLAGS` is set to the value of this variable by
  690. default.
  691. :term:`BUILD_CPPFLAGS`
  692. Specifies the flags to pass to the C preprocessor (i.e. to both the C
  693. and the C++ compilers) when building for the build host. When
  694. building in the ``-native`` context, :term:`CPPFLAGS`
  695. is set to the value of this variable by default.
  696. :term:`BUILD_CXXFLAGS`
  697. Specifies the flags to pass to the C++ compiler when building for the
  698. build host. When building in the ``-native`` context,
  699. :term:`CXXFLAGS` is set to the value of this variable
  700. by default.
  701. :term:`BUILD_FC`
  702. Specifies the Fortran compiler command for the build host. By
  703. default, ``BUILD_FC`` points to Gfortran and passes as arguments the
  704. value of :term:`BUILD_CC_ARCH`, assuming
  705. ``BUILD_CC_ARCH`` is set.
  706. :term:`BUILD_LD`
  707. Specifies the linker command for the build host. By default,
  708. ``BUILD_LD`` points to the GNU linker (ld) and passes as arguments
  709. the value of :term:`BUILD_LD_ARCH`, assuming
  710. ``BUILD_LD_ARCH`` is set.
  711. :term:`BUILD_LD_ARCH`
  712. Specifies architecture-specific linker flags for the build host. By
  713. default, the value of ``BUILD_LD_ARCH`` is empty.
  714. :term:`BUILD_LDFLAGS`
  715. Specifies the flags to pass to the linker when building for the build
  716. host. When building in the ``-native`` context,
  717. :term:`LDFLAGS` is set to the value of this variable
  718. by default.
  719. :term:`BUILD_OPTIMIZATION`
  720. Specifies the optimization flags passed to the C compiler when
  721. building for the build host or the SDK. The flags are passed through
  722. the :term:`BUILD_CFLAGS` and
  723. :term:`BUILDSDK_CFLAGS` default values.
  724. The default value of the ``BUILD_OPTIMIZATION`` variable is "-O2
  725. -pipe".
  726. :term:`BUILD_OS`
  727. Specifies the operating system in use on the build host (e.g.
  728. "linux"). The OpenEmbedded build system sets the value of
  729. ``BUILD_OS`` from the OS reported by the ``uname`` command - the
  730. first word, converted to lower-case characters.
  731. :term:`BUILD_PREFIX`
  732. The toolchain binary prefix used for native recipes. The OpenEmbedded
  733. build system uses the ``BUILD_PREFIX`` value to set the
  734. :term:`TARGET_PREFIX` when building for
  735. ``native`` recipes.
  736. :term:`BUILD_STRIP`
  737. Specifies the command to be used to strip debugging symbols from
  738. binaries produced for the build host. By default, ``BUILD_STRIP``
  739. points to
  740. ``${``\ :term:`BUILD_PREFIX`\ ``}strip``.
  741. :term:`BUILD_SYS`
  742. Specifies the system, including the architecture and the operating
  743. system, to use when building for the build host (i.e. when building
  744. ``native`` recipes).
  745. The OpenEmbedded build system automatically sets this variable based
  746. on :term:`BUILD_ARCH`,
  747. :term:`BUILD_VENDOR`, and
  748. :term:`BUILD_OS`. You do not need to set the
  749. ``BUILD_SYS`` variable yourself.
  750. :term:`BUILD_VENDOR`
  751. Specifies the vendor name to use when building for the build host.
  752. The default value is an empty string ("").
  753. :term:`BUILDDIR`
  754. Points to the location of the :term:`Build Directory`.
  755. You can define this directory indirectly through the
  756. :ref:`structure-core-script` script by passing in a Build
  757. Directory path when you run the script. If you run the script and do
  758. not provide a Build Directory path, the ``BUILDDIR`` defaults to
  759. ``build`` in the current directory.
  760. :term:`BUILDHISTORY_COMMIT`
  761. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  762. class, this variable specifies whether or not to commit the build
  763. history output in a local Git repository. If set to "1", this local
  764. repository will be maintained automatically by the ``buildhistory``
  765. class and a commit will be created on every build for changes to each
  766. top-level subdirectory of the build history output (images, packages,
  767. and sdk). If you want to track changes to build history over time,
  768. you should set this value to "1".
  769. By default, the ``buildhistory`` class does not commit the build
  770. history output in a local Git repository:
  771. ::
  772. BUILDHISTORY_COMMIT ?= "0"
  773. :term:`BUILDHISTORY_COMMIT_AUTHOR`
  774. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  775. class, this variable specifies the author to use for each Git commit.
  776. In order for the ``BUILDHISTORY_COMMIT_AUTHOR`` variable to work, the
  777. :term:`BUILDHISTORY_COMMIT` variable must
  778. be set to "1".
  779. Git requires that the value you provide for the
  780. ``BUILDHISTORY_COMMIT_AUTHOR`` variable takes the form of "name
  781. email@host". Providing an email address or host that is not valid
  782. does not produce an error.
  783. By default, the ``buildhistory`` class sets the variable as follows:
  784. ::
  785. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
  786. :term:`BUILDHISTORY_DIR`
  787. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  788. class, this variable specifies the directory in which build history
  789. information is kept. For more information on how the variable works,
  790. see the ``buildhistory.class``.
  791. By default, the ``buildhistory`` class sets the directory as follows:
  792. ::
  793. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  794. :term:`BUILDHISTORY_FEATURES`
  795. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  796. class, this variable specifies the build history features to be
  797. enabled. For more information on how build history works, see the
  798. ":ref:`dev-manual/common-tasks:maintaining build output quality`"
  799. section in the Yocto Project Development Tasks Manual.
  800. You can specify these features in the form of a space-separated list:
  801. - *image:* Analysis of the contents of images, which includes the
  802. list of installed packages among other things.
  803. - *package:* Analysis of the contents of individual packages.
  804. - *sdk:* Analysis of the contents of the software development kit
  805. (SDK).
  806. - *task:* Save output file signatures for
  807. :ref:`shared state <overview-manual/concepts:shared state cache>`
  808. (sstate) tasks.
  809. This saves one file per task and lists the SHA-256 checksums for
  810. each file staged (i.e. the output of the task).
  811. By default, the ``buildhistory`` class enables the following
  812. features:
  813. ::
  814. BUILDHISTORY_FEATURES ?= "image package sdk"
  815. :term:`BUILDHISTORY_IMAGE_FILES`
  816. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  817. class, this variable specifies a list of paths to files copied from
  818. the image contents into the build history directory under an
  819. "image-files" directory in the directory for the image, so that you
  820. can track the contents of each file. The default is to copy
  821. ``/etc/passwd`` and ``/etc/group``, which allows you to monitor for
  822. changes in user and group entries. You can modify the list to include
  823. any file. Specifying an invalid path does not produce an error.
  824. Consequently, you can include files that might not always be present.
  825. By default, the ``buildhistory`` class provides paths to the
  826. following files:
  827. ::
  828. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  829. :term:`BUILDHISTORY_PUSH_REPO`
  830. When inheriting the :ref:`buildhistory <ref-classes-buildhistory>`
  831. class, this variable optionally specifies a remote repository to
  832. which build history pushes Git changes. In order for
  833. ``BUILDHISTORY_PUSH_REPO`` to work,
  834. :term:`BUILDHISTORY_COMMIT` must be set to
  835. "1".
  836. The repository should correspond to a remote address that specifies a
  837. repository as understood by Git, or alternatively to a remote name
  838. that you have set up manually using ``git remote`` within the local
  839. repository.
  840. By default, the ``buildhistory`` class sets the variable as follows:
  841. ::
  842. BUILDHISTORY_PUSH_REPO ?= ""
  843. :term:`BUILDSDK_CFLAGS`
  844. Specifies the flags to pass to the C compiler when building for the
  845. SDK. When building in the ``nativesdk-`` context,
  846. :term:`CFLAGS` is set to the value of this variable by
  847. default.
  848. :term:`BUILDSDK_CPPFLAGS`
  849. Specifies the flags to pass to the C pre-processor (i.e. to both the
  850. C and the C++ compilers) when building for the SDK. When building in
  851. the ``nativesdk-`` context, :term:`CPPFLAGS` is set
  852. to the value of this variable by default.
  853. :term:`BUILDSDK_CXXFLAGS`
  854. Specifies the flags to pass to the C++ compiler when building for the
  855. SDK. When building in the ``nativesdk-`` context,
  856. :term:`CXXFLAGS` is set to the value of this variable
  857. by default.
  858. :term:`BUILDSDK_LDFLAGS`
  859. Specifies the flags to pass to the linker when building for the SDK.
  860. When building in the ``nativesdk-`` context,
  861. :term:`LDFLAGS` is set to the value of this variable
  862. by default.
  863. :term:`BUILDSTATS_BASE`
  864. Points to the location of the directory that holds build statistics
  865. when you use and enable the
  866. :ref:`buildstats <ref-classes-buildstats>` class. The
  867. ``BUILDSTATS_BASE`` directory defaults to
  868. ``${``\ :term:`TMPDIR`\ ``}/buildstats/``.
  869. :term:`BUSYBOX_SPLIT_SUID`
  870. For the BusyBox recipe, specifies whether to split the output
  871. executable file into two parts: one for features that require
  872. ``setuid root``, and one for the remaining features (i.e. those that
  873. do not require ``setuid root``).
  874. The ``BUSYBOX_SPLIT_SUID`` variable defaults to "1", which results in
  875. splitting the output executable file. Set the variable to "0" to get
  876. a single output executable file.
  877. :term:`CACHE`
  878. Specifies the directory BitBake uses to store a cache of the
  879. :term:`Metadata` so it does not need to be parsed every time
  880. BitBake is started.
  881. :term:`CC`
  882. The minimal command and arguments used to run the C compiler.
  883. :term:`CFLAGS`
  884. Specifies the flags to pass to the C compiler. This variable is
  885. exported to an environment variable and thus made visible to the
  886. software being built during the compilation step.
  887. Default initialization for ``CFLAGS`` varies depending on what is
  888. being built:
  889. - :term:`TARGET_CFLAGS` when building for the
  890. target
  891. - :term:`BUILD_CFLAGS` when building for the
  892. build host (i.e. ``-native``)
  893. - :term:`BUILDSDK_CFLAGS` when building for
  894. an SDK (i.e. ``nativesdk-``)
  895. :term:`CLASSOVERRIDE`
  896. An internal variable specifying the special class override that
  897. should currently apply (e.g. "class-target", "class-native", and so
  898. forth). The classes that use this variable (e.g.
  899. :ref:`native <ref-classes-native>`,
  900. :ref:`nativesdk <ref-classes-nativesdk>`, and so forth) set the
  901. variable to appropriate values.
  902. .. note::
  903. ``CLASSOVERRIDE`` gets its default "class-target" value from the
  904. ``bitbake.conf`` file.
  905. As an example, the following override allows you to install extra
  906. files, but only when building for the target:
  907. ::
  908. do_install_append_class-target() {
  909. install my-extra-file ${D}${sysconfdir}
  910. }
  911. Here is an example where ``FOO`` is set to
  912. "native" when building for the build host, and to "other" when not
  913. building for the build host:
  914. ::
  915. FOO_class-native = "native"
  916. FOO = "other"
  917. The underlying mechanism behind ``CLASSOVERRIDE`` is simply
  918. that it is included in the default value of
  919. :term:`OVERRIDES`.
  920. :term:`CLEANBROKEN`
  921. If set to "1" within a recipe, ``CLEANBROKEN`` specifies that the
  922. ``make clean`` command does not work for the software being built.
  923. Consequently, the OpenEmbedded build system will not try to run
  924. ``make clean`` during the :ref:`ref-tasks-configure`
  925. task, which is the default behavior.
  926. :term:`COMBINED_FEATURES`
  927. Provides a list of hardware features that are enabled in both
  928. :term:`MACHINE_FEATURES` and
  929. :term:`DISTRO_FEATURES`. This select list of
  930. features contains features that make sense to be controlled both at
  931. the machine and distribution configuration level. For example, the
  932. "bluetooth" feature requires hardware support but should also be
  933. optional at the distribution level, in case the hardware supports
  934. Bluetooth but you do not ever intend to use it.
  935. :term:`COMMON_LICENSE_DIR`
  936. Points to ``meta/files/common-licenses`` in the
  937. :term:`Source Directory`, which is where generic license
  938. files reside.
  939. :term:`COMPATIBLE_HOST`
  940. A regular expression that resolves to one or more hosts (when the
  941. recipe is native) or one or more targets (when the recipe is
  942. non-native) with which a recipe is compatible. The regular expression
  943. is matched against :term:`HOST_SYS`. You can use the
  944. variable to stop recipes from being built for classes of systems with
  945. which the recipes are not compatible. Stopping these builds is
  946. particularly useful with kernels. The variable also helps to increase
  947. parsing speed since the build system skips parsing recipes not
  948. compatible with the current system.
  949. :term:`COMPATIBLE_MACHINE`
  950. A regular expression that resolves to one or more target machines
  951. with which a recipe is compatible. The regular expression is matched
  952. against :term:`MACHINEOVERRIDES`. You can use
  953. the variable to stop recipes from being built for machines with which
  954. the recipes are not compatible. Stopping these builds is particularly
  955. useful with kernels. The variable also helps to increase parsing
  956. speed since the build system skips parsing recipes not compatible
  957. with the current machine.
  958. :term:`COMPLEMENTARY_GLOB`
  959. Defines wildcards to match when installing a list of complementary
  960. packages for all the packages explicitly (or implicitly) installed in
  961. an image.
  962. .. note::
  963. The ``COMPLEMENTARY_GLOB`` variable uses Unix filename pattern matching
  964. (`fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__),
  965. which is similar to the Unix style pathname pattern expansion
  966. (`glob <https://docs.python.org/3/library/glob.html>`__).
  967. The resulting list of complementary packages is associated with an
  968. item that can be added to
  969. :term:`IMAGE_FEATURES`. An example usage of
  970. this is the "dev-pkgs" item that when added to ``IMAGE_FEATURES``
  971. will install -dev packages (containing headers and other development
  972. files) for every package in the image.
  973. To add a new feature item pointing to a wildcard, use a variable flag
  974. to specify the feature item name and use the value to specify the
  975. wildcard. Here is an example:
  976. ::
  977. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  978. :term:`COMPONENTS_DIR`
  979. Stores sysroot components for each recipe. The OpenEmbedded build
  980. system uses ``COMPONENTS_DIR`` when constructing recipe-specific
  981. sysroots for other recipes.
  982. The default is
  983. "``${``\ :term:`STAGING_DIR`\ ``}-components``."
  984. (i.e.
  985. "``${``\ :term:`TMPDIR`\ ``}/sysroots-components``").
  986. :term:`CONF_VERSION`
  987. Tracks the version of the local configuration file (i.e.
  988. ``local.conf``). The value for ``CONF_VERSION`` increments each time
  989. ``build/conf/`` compatibility changes.
  990. :term:`CONFFILES`
  991. Identifies editable or configurable files that are part of a package.
  992. If the Package Management System (PMS) is being used to update
  993. packages on the target system, it is possible that configuration
  994. files you have changed after the original installation and that you
  995. now want to remain unchanged are overwritten. In other words,
  996. editable files might exist in the package that you do not want reset
  997. as part of the package update process. You can use the ``CONFFILES``
  998. variable to list the files in the package that you wish to prevent
  999. the PMS from overwriting during this update process.
  1000. To use the ``CONFFILES`` variable, provide a package name override
  1001. that identifies the resulting package. Then, provide a
  1002. space-separated list of files. Here is an example:
  1003. ::
  1004. CONFFILES_${PN} += "${sysconfdir}/file1 \
  1005. ${sysconfdir}/file2 ${sysconfdir}/file3"
  1006. A relationship exists between the ``CONFFILES`` and ``FILES``
  1007. variables. The files listed within ``CONFFILES`` must be a subset of
  1008. the files listed within ``FILES``. Because the configuration files
  1009. you provide with ``CONFFILES`` are simply being identified so that
  1010. the PMS will not overwrite them, it makes sense that the files must
  1011. already be included as part of the package through the ``FILES``
  1012. variable.
  1013. .. note::
  1014. When specifying paths as part of the ``CONFFILES`` variable, it is
  1015. good practice to use appropriate path variables.
  1016. For example, ``${sysconfdir}`` rather than ``/etc`` or ``${bindir}``
  1017. rather than ``/usr/bin``. You can find a list of these variables at
  1018. the top of the ``meta/conf/bitbake.conf`` file in the
  1019. :term:`Source Directory`.
  1020. :term:`CONFIG_INITRAMFS_SOURCE`
  1021. Identifies the initial RAM filesystem (initramfs) source files. The
  1022. OpenEmbedded build system receives and uses this kernel Kconfig
  1023. variable as an environment variable. By default, the variable is set
  1024. to null ("").
  1025. The ``CONFIG_INITRAMFS_SOURCE`` can be either a single cpio archive
  1026. with a ``.cpio`` suffix or a space-separated list of directories and
  1027. files for building the initramfs image. A cpio archive should contain
  1028. a filesystem archive to be used as an initramfs image. Directories
  1029. should contain a filesystem layout to be included in the initramfs
  1030. image. Files should contain entries according to the format described
  1031. by the ``usr/gen_init_cpio`` program in the kernel tree.
  1032. If you specify multiple directories and files, the initramfs image
  1033. will be the aggregate of all of them.
  1034. For information on creating an initramfs, see the
  1035. ":ref:`dev-manual/common-tasks:building an initial ram filesystem (initramfs) image`" section
  1036. in the Yocto Project Development Tasks Manual.
  1037. :term:`CONFIG_SITE`
  1038. A list of files that contains ``autoconf`` test results relevant to
  1039. the current build. This variable is used by the Autotools utilities
  1040. when running ``configure``.
  1041. :term:`CONFIGURE_FLAGS`
  1042. The minimal arguments for GNU configure.
  1043. :term:`CONFLICT_DISTRO_FEATURES`
  1044. When inheriting the
  1045. :ref:`features_check <ref-classes-features_check>`
  1046. class, this variable identifies distribution features that would be
  1047. in conflict should the recipe be built. In other words, if the
  1048. ``CONFLICT_DISTRO_FEATURES`` variable lists a feature that also
  1049. appears in ``DISTRO_FEATURES`` within the current configuration, then
  1050. the recipe will be skipped, and if the build system attempts to build
  1051. the recipe then an error will be triggered.
  1052. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1053. A space-separated list of licenses to exclude from the source
  1054. archived by the :ref:`archiver <ref-classes-archiver>` class. In
  1055. other words, if a license in a recipe's
  1056. :term:`LICENSE` value is in the value of
  1057. ``COPYLEFT_LICENSE_EXCLUDE``, then its source is not archived by the
  1058. class.
  1059. .. note::
  1060. The ``COPYLEFT_LICENSE_EXCLUDE`` variable takes precedence over the
  1061. :term:`COPYLEFT_LICENSE_INCLUDE` variable.
  1062. The default value, which is "CLOSED Proprietary", for
  1063. ``COPYLEFT_LICENSE_EXCLUDE`` is set by the
  1064. :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which
  1065. is inherited by the ``archiver`` class.
  1066. :term:`COPYLEFT_LICENSE_INCLUDE`
  1067. A space-separated list of licenses to include in the source archived
  1068. by the :ref:`archiver <ref-classes-archiver>` class. In other
  1069. words, if a license in a recipe's :term:`LICENSE`
  1070. value is in the value of ``COPYLEFT_LICENSE_INCLUDE``, then its
  1071. source is archived by the class.
  1072. The default value is set by the
  1073. :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which
  1074. is inherited by the ``archiver`` class. The default value includes
  1075. "GPL*", "LGPL*", and "AGPL*".
  1076. :term:`COPYLEFT_PN_EXCLUDE`
  1077. A list of recipes to exclude in the source archived by the
  1078. :ref:`archiver <ref-classes-archiver>` class. The
  1079. ``COPYLEFT_PN_EXCLUDE`` variable overrides the license inclusion and
  1080. exclusion caused through the
  1081. :term:`COPYLEFT_LICENSE_INCLUDE` and
  1082. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1083. variables, respectively.
  1084. The default value, which is "" indicating to not explicitly exclude
  1085. any recipes by name, for ``COPYLEFT_PN_EXCLUDE`` is set by the
  1086. :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which
  1087. is inherited by the ``archiver`` class.
  1088. :term:`COPYLEFT_PN_INCLUDE`
  1089. A list of recipes to include in the source archived by the
  1090. :ref:`archiver <ref-classes-archiver>` class. The
  1091. ``COPYLEFT_PN_INCLUDE`` variable overrides the license inclusion and
  1092. exclusion caused through the
  1093. :term:`COPYLEFT_LICENSE_INCLUDE` and
  1094. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1095. variables, respectively.
  1096. The default value, which is "" indicating to not explicitly include
  1097. any recipes by name, for ``COPYLEFT_PN_INCLUDE`` is set by the
  1098. :ref:`copyleft_filter <ref-classes-copyleft_filter>` class, which
  1099. is inherited by the ``archiver`` class.
  1100. :term:`COPYLEFT_RECIPE_TYPES`
  1101. A space-separated list of recipe types to include in the source
  1102. archived by the :ref:`archiver <ref-classes-archiver>` class.
  1103. Recipe types are ``target``, ``native``, ``nativesdk``, ``cross``,
  1104. ``crosssdk``, and ``cross-canadian``.
  1105. The default value, which is "target*", for ``COPYLEFT_RECIPE_TYPES``
  1106. is set by the :ref:`copyleft_filter <ref-classes-copyleft_filter>`
  1107. class, which is inherited by the ``archiver`` class.
  1108. :term:`COPY_LIC_DIRS`
  1109. If set to "1" along with the
  1110. :term:`COPY_LIC_MANIFEST` variable, the
  1111. OpenEmbedded build system copies into the image the license files,
  1112. which are located in ``/usr/share/common-licenses``, for each
  1113. package. The license files are placed in directories within the image
  1114. itself during build time.
  1115. .. note::
  1116. The ``COPY_LIC_DIRS`` does not offer a path for adding licenses for
  1117. newly installed packages to an image, which might be most suitable for
  1118. read-only filesystems that cannot be upgraded. See the
  1119. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1120. You can also reference the ":ref:`dev-manual/common-tasks:providing license text`"
  1121. section in the Yocto Project Development Tasks Manual for
  1122. information on providing license text.
  1123. :term:`COPY_LIC_MANIFEST`
  1124. If set to "1", the OpenEmbedded build system copies the license
  1125. manifest for the image to
  1126. ``/usr/share/common-licenses/license.manifest`` within the image
  1127. itself during build time.
  1128. .. note::
  1129. The ``COPY_LIC_MANIFEST`` does not offer a path for adding licenses for
  1130. newly installed packages to an image, which might be most suitable for
  1131. read-only filesystems that cannot be upgraded. See the
  1132. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1133. You can also reference the ":ref:`dev-manual/common-tasks:providing license text`"
  1134. section in the Yocto Project Development Tasks Manual for
  1135. information on providing license text.
  1136. :term:`CORE_IMAGE_EXTRA_INSTALL`
  1137. Specifies the list of packages to be added to the image. You should
  1138. only set this variable in the ``local.conf`` configuration file found
  1139. in the :term:`Build Directory`.
  1140. This variable replaces ``POKY_EXTRA_INSTALL``, which is no longer
  1141. supported.
  1142. :term:`COREBASE`
  1143. Specifies the parent directory of the OpenEmbedded-Core Metadata
  1144. layer (i.e. ``meta``).
  1145. It is an important distinction that ``COREBASE`` points to the parent
  1146. of this layer and not the layer itself. Consider an example where you
  1147. have cloned the Poky Git repository and retained the ``poky`` name
  1148. for your local copy of the repository. In this case, ``COREBASE``
  1149. points to the ``poky`` folder because it is the parent directory of
  1150. the ``poky/meta`` layer.
  1151. :term:`COREBASE_FILES`
  1152. Lists files from the :term:`COREBASE` directory that
  1153. should be copied other than the layers listed in the
  1154. ``bblayers.conf`` file. The ``COREBASE_FILES`` variable exists for
  1155. the purpose of copying metadata from the OpenEmbedded build system
  1156. into the extensible SDK.
  1157. Explicitly listing files in ``COREBASE`` is needed because it
  1158. typically contains build directories and other files that should not
  1159. normally be copied into the extensible SDK. Consequently, the value
  1160. of ``COREBASE_FILES`` is used in order to only copy the files that
  1161. are actually needed.
  1162. :term:`CPP`
  1163. The minimal command and arguments used to run the C preprocessor.
  1164. :term:`CPPFLAGS`
  1165. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1166. C and the C++ compilers). This variable is exported to an environment
  1167. variable and thus made visible to the software being built during the
  1168. compilation step.
  1169. Default initialization for ``CPPFLAGS`` varies depending on what is
  1170. being built:
  1171. - :term:`TARGET_CPPFLAGS` when building for
  1172. the target
  1173. - :term:`BUILD_CPPFLAGS` when building for the
  1174. build host (i.e. ``-native``)
  1175. - :term:`BUILDSDK_CPPFLAGS` when building
  1176. for an SDK (i.e. ``nativesdk-``)
  1177. :term:`CROSS_COMPILE`
  1178. The toolchain binary prefix for the target tools. The
  1179. ``CROSS_COMPILE`` variable is the same as the
  1180. :term:`TARGET_PREFIX` variable.
  1181. .. note::
  1182. The OpenEmbedded build system sets the ``CROSS_COMPILE``
  1183. variable only in certain contexts (e.g. when building for kernel
  1184. and kernel module recipes).
  1185. :term:`CVSDIR`
  1186. The directory in which files checked out under the CVS system are
  1187. stored.
  1188. :term:`CXX`
  1189. The minimal command and arguments used to run the C++ compiler.
  1190. :term:`CXXFLAGS`
  1191. Specifies the flags to pass to the C++ compiler. This variable is
  1192. exported to an environment variable and thus made visible to the
  1193. software being built during the compilation step.
  1194. Default initialization for ``CXXFLAGS`` varies depending on what is
  1195. being built:
  1196. - :term:`TARGET_CXXFLAGS` when building for
  1197. the target
  1198. - :term:`BUILD_CXXFLAGS` when building for the
  1199. build host (i.e. ``-native``)
  1200. - :term:`BUILDSDK_CXXFLAGS` when building
  1201. for an SDK (i.e. ``nativesdk-``)
  1202. :term:`D`
  1203. The destination directory. The location in the :term:`Build Directory`
  1204. where components are installed by the
  1205. :ref:`ref-tasks-install` task. This location defaults
  1206. to:
  1207. ::
  1208. ${WORKDIR}/image
  1209. .. note::
  1210. Tasks that read from or write to this directory should run under
  1211. :ref:`fakeroot <overview-manual/concepts:fakeroot and pseudo>`.
  1212. :term:`DATE`
  1213. The date the build was started. Dates appear using the year, month,
  1214. and day (YMD) format (e.g. "20150209" for February 9th, 2015).
  1215. :term:`DATETIME`
  1216. The date and time on which the current build started. The format is
  1217. suitable for timestamps.
  1218. :term:`DEBIAN_NOAUTONAME`
  1219. When the :ref:`debian <ref-classes-debian>` class is inherited,
  1220. which is the default behavior, ``DEBIAN_NOAUTONAME`` specifies a
  1221. particular package should not be renamed according to Debian library
  1222. package naming. You must use the package name as an override when you
  1223. set this variable. Here is an example from the ``fontconfig`` recipe:
  1224. ::
  1225. DEBIAN_NOAUTONAME_fontconfig-utils = "1"
  1226. :term:`DEBIANNAME`
  1227. When the :ref:`debian <ref-classes-debian>` class is inherited,
  1228. which is the default behavior, ``DEBIANNAME`` allows you to override
  1229. the library name for an individual package. Overriding the library
  1230. name in these cases is rare. You must use the package name as an
  1231. override when you set this variable. Here is an example from the
  1232. ``dbus`` recipe:
  1233. ::
  1234. DEBIANNAME_${PN} = "dbus-1"
  1235. :term:`DEBUGINFOD_URLS`
  1236. Points to the URL of the "debuginfod" server. Such that for every
  1237. debugging information lookup, the debuginfod client will query the
  1238. server and return the requested information. You set this variable
  1239. in your ``local.conf`` file.
  1240. :term:`DEBUG_BUILD`
  1241. Specifies to build packages with debugging information. This
  1242. influences the value of the ``SELECTED_OPTIMIZATION`` variable.
  1243. :term:`DEBUG_OPTIMIZATION`
  1244. The options to pass in ``TARGET_CFLAGS`` and ``CFLAGS`` when
  1245. compiling a system for debugging. This variable defaults to "-O
  1246. -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  1247. :term:`DEFAULT_PREFERENCE`
  1248. Specifies a weak bias for recipe selection priority.
  1249. The most common usage of this is variable is to set it to "-1" within
  1250. a recipe for a development version of a piece of software. Using the
  1251. variable in this way causes the stable version of the recipe to build
  1252. by default in the absence of ``PREFERRED_VERSION`` being used to
  1253. build the development version.
  1254. .. note::
  1255. The bias provided by ``DEFAULT_PREFERENCE`` is weak and is overridden
  1256. by :term:`BBFILE_PRIORITY` if that variable is different between two
  1257. layers that contain different versions of the same recipe.
  1258. :term:`DEFAULTTUNE`
  1259. The default CPU and Application Binary Interface (ABI) tunings (i.e.
  1260. the "tune") used by the OpenEmbedded build system. The
  1261. ``DEFAULTTUNE`` helps define
  1262. :term:`TUNE_FEATURES`.
  1263. The default tune is either implicitly or explicitly set by the
  1264. machine (:term:`MACHINE`). However, you can override
  1265. the setting using available tunes as defined with
  1266. :term:`AVAILTUNES`.
  1267. :term:`DEPENDS`
  1268. Lists a recipe's build-time dependencies. These are dependencies on
  1269. other recipes whose contents (e.g. headers and shared libraries) are
  1270. needed by the recipe at build time.
  1271. As an example, consider a recipe ``foo`` that contains the following
  1272. assignment:
  1273. ::
  1274. DEPENDS = "bar"
  1275. The practical effect of the previous
  1276. assignment is that all files installed by bar will be available in
  1277. the appropriate staging sysroot, given by the
  1278. :term:`STAGING_DIR* <STAGING_DIR>` variables, by the time the
  1279. :ref:`ref-tasks-configure` task for ``foo`` runs.
  1280. This mechanism is implemented by having ``do_configure`` depend on
  1281. the :ref:`ref-tasks-populate_sysroot` task of
  1282. each recipe listed in ``DEPENDS``, through a
  1283. ``[``\ :ref:`deptask <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]``
  1284. declaration in the :ref:`base <ref-classes-base>` class.
  1285. .. note::
  1286. It seldom is necessary to reference, for example, ``STAGING_DIR_HOST``
  1287. explicitly. The standard classes and build-related variables are
  1288. configured to automatically use the appropriate staging sysroots.
  1289. As another example, ``DEPENDS`` can also be used to add utilities
  1290. that run on the build machine during the build. For example, a recipe
  1291. that makes use of a code generator built by the recipe ``codegen``
  1292. might have the following:
  1293. ::
  1294. DEPENDS = "codegen-native"
  1295. For more
  1296. information, see the :ref:`native <ref-classes-native>` class and
  1297. the :term:`EXTRANATIVEPATH` variable.
  1298. .. note::
  1299. - ``DEPENDS`` is a list of recipe names. Or, to be more precise,
  1300. it is a list of :term:`PROVIDES` names, which
  1301. usually match recipe names. Putting a package name such as
  1302. "foo-dev" in ``DEPENDS`` does not make sense. Use "foo"
  1303. instead, as this will put files from all the packages that make
  1304. up ``foo``, which includes those from ``foo-dev``, into the
  1305. sysroot.
  1306. - One recipe having another recipe in ``DEPENDS`` does not by
  1307. itself add any runtime dependencies between the packages
  1308. produced by the two recipes. However, as explained in the
  1309. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  1310. section in the Yocto Project Overview and Concepts Manual,
  1311. runtime dependencies will often be added automatically, meaning
  1312. ``DEPENDS`` alone is sufficient for most recipes.
  1313. - Counterintuitively, ``DEPENDS`` is often necessary even for
  1314. recipes that install precompiled components. For example, if
  1315. ``libfoo`` is a precompiled library that links against
  1316. ``libbar``, then linking against ``libfoo`` requires both
  1317. ``libfoo`` and ``libbar`` to be available in the sysroot.
  1318. Without a ``DEPENDS`` from the recipe that installs ``libfoo``
  1319. to the recipe that installs ``libbar``, other recipes might
  1320. fail to link against ``libfoo``.
  1321. For information on runtime dependencies, see the
  1322. :term:`RDEPENDS` variable. You can also see the
  1323. ":ref:`Tasks <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:tasks>`" and
  1324. ":ref:`Dependencies <bitbake:bitbake-user-manual/bitbake-user-manual-execution:dependencies>`" sections in the
  1325. BitBake User Manual for additional information on tasks and
  1326. dependencies.
  1327. :term:`DEPLOY_DIR`
  1328. Points to the general area that the OpenEmbedded build system uses to
  1329. place images, packages, SDKs, and other output files that are ready
  1330. to be used outside of the build system. By default, this directory
  1331. resides within the :term:`Build Directory` as
  1332. ``${TMPDIR}/deploy``.
  1333. For more information on the structure of the Build Directory, see
  1334. ":ref:`ref-manual/structure:the build directory - \`\`build/\`\``" section.
  1335. For more detail on the contents of the ``deploy`` directory, see the
  1336. ":ref:`overview-manual/concepts:images`",
  1337. ":ref:`overview-manual/concepts:package feeds`", and
  1338. ":ref:`overview-manual/concepts:application development sdk`" sections all in the
  1339. Yocto Project Overview and Concepts Manual.
  1340. :term:`DEPLOY_DIR_DEB`
  1341. Points to the area that the OpenEmbedded build system uses to place
  1342. Debian packages that are ready to be used outside of the build
  1343. system. This variable applies only when
  1344. :term:`PACKAGE_CLASSES` contains
  1345. "package_deb".
  1346. The BitBake configuration file initially defines the
  1347. ``DEPLOY_DIR_DEB`` variable as a sub-folder of
  1348. :term:`DEPLOY_DIR`:
  1349. ::
  1350. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  1351. The :ref:`package_deb <ref-classes-package_deb>` class uses the
  1352. ``DEPLOY_DIR_DEB`` variable to make sure the
  1353. :ref:`ref-tasks-package_write_deb` task
  1354. writes Debian packages into the appropriate folder. For more
  1355. information on how packaging works, see the
  1356. ":ref:`overview-manual/concepts:package feeds`" section
  1357. in the Yocto Project Overview and Concepts Manual.
  1358. :term:`DEPLOY_DIR_IMAGE`
  1359. Points to the area that the OpenEmbedded build system uses to place
  1360. images and other associated output files that are ready to be
  1361. deployed onto the target machine. The directory is machine-specific
  1362. as it contains the ``${MACHINE}`` name. By default, this directory
  1363. resides within the :term:`Build Directory` as
  1364. ``${DEPLOY_DIR}/images/${MACHINE}/``.
  1365. For more information on the structure of the Build Directory, see
  1366. ":ref:`ref-manual/structure:the build directory - \`\`build/\`\``" section.
  1367. For more detail on the contents of the ``deploy`` directory, see the
  1368. ":ref:`overview-manual/concepts:images`" and
  1369. ":ref:`overview-manual/concepts:application development sdk`" sections both in
  1370. the Yocto Project Overview and Concepts Manual.
  1371. :term:`DEPLOY_DIR_IPK`
  1372. Points to the area that the OpenEmbedded build system uses to place
  1373. IPK packages that are ready to be used outside of the build system.
  1374. This variable applies only when
  1375. :term:`PACKAGE_CLASSES` contains
  1376. "package_ipk".
  1377. The BitBake configuration file initially defines this variable as a
  1378. sub-folder of :term:`DEPLOY_DIR`:
  1379. ::
  1380. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  1381. The :ref:`package_ipk <ref-classes-package_ipk>` class uses the
  1382. ``DEPLOY_DIR_IPK`` variable to make sure the
  1383. :ref:`ref-tasks-package_write_ipk` task
  1384. writes IPK packages into the appropriate folder. For more information
  1385. on how packaging works, see the
  1386. ":ref:`overview-manual/concepts:package feeds`" section
  1387. in the Yocto Project Overview and Concepts Manual.
  1388. :term:`DEPLOY_DIR_RPM`
  1389. Points to the area that the OpenEmbedded build system uses to place
  1390. RPM packages that are ready to be used outside of the build system.
  1391. This variable applies only when
  1392. :term:`PACKAGE_CLASSES` contains
  1393. "package_rpm".
  1394. The BitBake configuration file initially defines this variable as a
  1395. sub-folder of :term:`DEPLOY_DIR`:
  1396. ::
  1397. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  1398. The :ref:`package_rpm <ref-classes-package_rpm>` class uses the
  1399. ``DEPLOY_DIR_RPM`` variable to make sure the
  1400. :ref:`ref-tasks-package_write_rpm` task
  1401. writes RPM packages into the appropriate folder. For more information
  1402. on how packaging works, see the
  1403. ":ref:`overview-manual/concepts:package feeds`" section
  1404. in the Yocto Project Overview and Concepts Manual.
  1405. :term:`DEPLOY_DIR_TAR`
  1406. Points to the area that the OpenEmbedded build system uses to place
  1407. tarballs that are ready to be used outside of the build system. This
  1408. variable applies only when
  1409. :term:`PACKAGE_CLASSES` contains
  1410. "package_tar".
  1411. The BitBake configuration file initially defines this variable as a
  1412. sub-folder of :term:`DEPLOY_DIR`:
  1413. ::
  1414. DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
  1415. The :ref:`package_tar <ref-classes-package_tar>` class uses the
  1416. ``DEPLOY_DIR_TAR`` variable to make sure the
  1417. :ref:`ref-tasks-package_write_tar` task
  1418. writes TAR packages into the appropriate folder. For more information
  1419. on how packaging works, see the
  1420. ":ref:`overview-manual/concepts:package feeds`" section
  1421. in the Yocto Project Overview and Concepts Manual.
  1422. :term:`DEPLOYDIR`
  1423. When inheriting the :ref:`deploy <ref-classes-deploy>` class, the
  1424. ``DEPLOYDIR`` points to a temporary work area for deployed files that
  1425. is set in the ``deploy`` class as follows:
  1426. ::
  1427. DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
  1428. Recipes inheriting the ``deploy`` class should copy files to be
  1429. deployed into ``DEPLOYDIR``, and the class will take care of copying
  1430. them into :term:`DEPLOY_DIR_IMAGE`
  1431. afterwards.
  1432. :term:`DESCRIPTION`
  1433. The package description used by package managers. If not set,
  1434. ``DESCRIPTION`` takes the value of the :term:`SUMMARY`
  1435. variable.
  1436. :term:`DISTRO`
  1437. The short name of the distribution. For information on the long name
  1438. of the distribution, see the :term:`DISTRO_NAME`
  1439. variable.
  1440. The ``DISTRO`` variable corresponds to a distribution configuration
  1441. file whose root name is the same as the variable's argument and whose
  1442. filename extension is ``.conf``. For example, the distribution
  1443. configuration file for the Poky distribution is named ``poky.conf``
  1444. and resides in the ``meta-poky/conf/distro`` directory of the
  1445. :term:`Source Directory`.
  1446. Within that ``poky.conf`` file, the ``DISTRO`` variable is set as
  1447. follows:
  1448. ::
  1449. DISTRO = "poky"
  1450. Distribution configuration files are located in a ``conf/distro``
  1451. directory within the :term:`Metadata` that contains the
  1452. distribution configuration. The value for ``DISTRO`` must not contain
  1453. spaces, and is typically all lower-case.
  1454. .. note::
  1455. If the ``DISTRO`` variable is blank, a set of default configurations
  1456. are used, which are specified within
  1457. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1458. :term:`DISTRO_CODENAME`
  1459. Specifies a codename for the distribution being built.
  1460. :term:`DISTRO_EXTRA_RDEPENDS`
  1461. Specifies a list of distro-specific packages to add to all images.
  1462. This variable takes affect through ``packagegroup-base`` so the
  1463. variable only really applies to the more full-featured images that
  1464. include ``packagegroup-base``. You can use this variable to keep
  1465. distro policy out of generic images. As with all other distro
  1466. variables, you set this variable in the distro ``.conf`` file.
  1467. :term:`DISTRO_EXTRA_RRECOMMENDS`
  1468. Specifies a list of distro-specific packages to add to all images if
  1469. the packages exist. The packages might not exist or be empty (e.g.
  1470. kernel modules). The list of packages are automatically installed but
  1471. you can remove them.
  1472. :term:`DISTRO_FEATURES`
  1473. The software support you want in your distribution for various
  1474. features. You define your distribution features in the distribution
  1475. configuration file.
  1476. In most cases, the presence or absence of a feature in
  1477. ``DISTRO_FEATURES`` is translated to the appropriate option supplied
  1478. to the configure script during the
  1479. :ref:`ref-tasks-configure` task for recipes that
  1480. optionally support the feature. For example, specifying "x11" in
  1481. ``DISTRO_FEATURES``, causes every piece of software built for the
  1482. target that can optionally support X11 to have its X11 support
  1483. enabled.
  1484. Two more examples are Bluetooth and NFS support. For a more complete
  1485. list of features that ships with the Yocto Project and that you can
  1486. provide with this variable, see the ":ref:`ref-features-distro`" section.
  1487. :term:`DISTRO_FEATURES_BACKFILL`
  1488. Features to be added to ``DISTRO_FEATURES`` if not also present in
  1489. ``DISTRO_FEATURES_BACKFILL_CONSIDERED``.
  1490. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1491. not intended to be user-configurable. It is best to just reference
  1492. the variable to see which distro features are being backfilled for
  1493. all distro configurations. See the ":ref:`ref-features-backfill`" section
  1494. for more information.
  1495. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`
  1496. Features from ``DISTRO_FEATURES_BACKFILL`` that should not be
  1497. backfilled (i.e. added to ``DISTRO_FEATURES``) during the build. See
  1498. the ":ref:`ref-features-backfill`" section for more information.
  1499. :term:`DISTRO_FEATURES_DEFAULT`
  1500. A convenience variable that gives you the default list of distro
  1501. features with the exception of any features specific to the C library
  1502. (``libc``).
  1503. When creating a custom distribution, you might find it useful to be
  1504. able to reuse the default
  1505. :term:`DISTRO_FEATURES` options without the
  1506. need to write out the full set. Here is an example that uses
  1507. ``DISTRO_FEATURES_DEFAULT`` from a custom distro configuration file:
  1508. ::
  1509. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} myfeature"
  1510. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1511. Specifies a list of features that if present in the target
  1512. :term:`DISTRO_FEATURES` value should be
  1513. included in ``DISTRO_FEATURES`` when building native recipes. This
  1514. variable is used in addition to the features filtered using the
  1515. :term:`DISTRO_FEATURES_NATIVE`
  1516. variable.
  1517. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1518. Specifies a list of features that if present in the target
  1519. :term:`DISTRO_FEATURES` value should be
  1520. included in ``DISTRO_FEATURES`` when building nativesdk recipes. This
  1521. variable is used in addition to the features filtered using the
  1522. :term:`DISTRO_FEATURES_NATIVESDK`
  1523. variable.
  1524. :term:`DISTRO_FEATURES_NATIVE`
  1525. Specifies a list of features that should be included in
  1526. :term:`DISTRO_FEATURES` when building native
  1527. recipes. This variable is used in addition to the features filtered
  1528. using the
  1529. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1530. variable.
  1531. :term:`DISTRO_FEATURES_NATIVESDK`
  1532. Specifies a list of features that should be included in
  1533. :term:`DISTRO_FEATURES` when building
  1534. nativesdk recipes. This variable is used in addition to the features
  1535. filtered using the
  1536. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1537. variable.
  1538. :term:`DISTRO_NAME`
  1539. The long name of the distribution. For information on the short name
  1540. of the distribution, see the :term:`DISTRO` variable.
  1541. The ``DISTRO_NAME`` variable corresponds to a distribution
  1542. configuration file whose root name is the same as the variable's
  1543. argument and whose filename extension is ``.conf``. For example, the
  1544. distribution configuration file for the Poky distribution is named
  1545. ``poky.conf`` and resides in the ``meta-poky/conf/distro`` directory
  1546. of the :term:`Source Directory`.
  1547. Within that ``poky.conf`` file, the ``DISTRO_NAME`` variable is set
  1548. as follows:
  1549. ::
  1550. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  1551. Distribution configuration files are located in a ``conf/distro``
  1552. directory within the :term:`Metadata` that contains the
  1553. distribution configuration.
  1554. .. note::
  1555. If the ``DISTRO_NAME`` variable is blank, a set of default
  1556. configurations are used, which are specified within
  1557. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1558. :term:`DISTRO_VERSION`
  1559. The version of the distribution.
  1560. :term:`DISTROOVERRIDES`
  1561. A colon-separated list of overrides specific to the current
  1562. distribution. By default, this list includes the value of
  1563. :term:`DISTRO`.
  1564. You can extend ``DISTROOVERRIDES`` to add extra overrides that should
  1565. apply to the distribution.
  1566. The underlying mechanism behind ``DISTROOVERRIDES`` is simply that it
  1567. is included in the default value of
  1568. :term:`OVERRIDES`.
  1569. :term:`DL_DIR`
  1570. The central download directory used by the build process to store
  1571. downloads. By default, ``DL_DIR`` gets files suitable for mirroring
  1572. for everything except Git repositories. If you want tarballs of Git
  1573. repositories, use the
  1574. :term:`BB_GENERATE_MIRROR_TARBALLS`
  1575. variable.
  1576. You can set this directory by defining the ``DL_DIR`` variable in the
  1577. ``conf/local.conf`` file. This directory is self-maintaining and you
  1578. should not have to touch it. By default, the directory is
  1579. ``downloads`` in the :term:`Build Directory`.
  1580. ::
  1581. #DL_DIR ?= "${TOPDIR}/downloads"
  1582. To specify a different download directory,
  1583. simply remove the comment from the line and provide your directory.
  1584. During a first build, the system downloads many different source code
  1585. tarballs from various upstream projects. Downloading can take a
  1586. while, particularly if your network connection is slow. Tarballs are
  1587. all stored in the directory defined by ``DL_DIR`` and the build
  1588. system looks there first to find source tarballs.
  1589. .. note::
  1590. When wiping and rebuilding, you can preserve this directory to
  1591. speed up this part of subsequent builds.
  1592. You can safely share this directory between multiple builds on the
  1593. same development machine. For additional information on how the build
  1594. process gets source files when working behind a firewall or proxy
  1595. server, see this specific question in the ":doc:`faq`"
  1596. chapter. You can also refer to the
  1597. ":yocto_wiki:`Working Behind a Network Proxy </Working_Behind_a_Network_Proxy>`"
  1598. Wiki page.
  1599. :term:`DOC_COMPRESS`
  1600. When inheriting the :ref:`compress_doc <ref-classes-compress_doc>`
  1601. class, this variable sets the compression policy used when the
  1602. OpenEmbedded build system compresses man pages and info pages. By
  1603. default, the compression method used is gz (gzip). Other policies
  1604. available are xz and bz2.
  1605. For information on policies and on how to use this variable, see the
  1606. comments in the ``meta/classes/compress_doc.bbclass`` file.
  1607. :term:`EFI_PROVIDER`
  1608. When building bootable images (i.e. where ``hddimg``, ``iso``, or
  1609. ``wic.vmdk`` is in :term:`IMAGE_FSTYPES`), the
  1610. ``EFI_PROVIDER`` variable specifies the EFI bootloader to use. The
  1611. default is "grub-efi", but "systemd-boot" can be used instead.
  1612. See the :ref:`systemd-boot <ref-classes-systemd-boot>` and
  1613. :ref:`image-live <ref-classes-image-live>` classes for more
  1614. information.
  1615. :term:`ENABLE_BINARY_LOCALE_GENERATION`
  1616. Variable that controls which locales for ``glibc`` are generated
  1617. during the build (useful if the target device has 64Mbytes of RAM or
  1618. less).
  1619. :term:`ERR_REPORT_DIR`
  1620. When used with the :ref:`report-error <ref-classes-report-error>`
  1621. class, specifies the path used for storing the debug files created by
  1622. the :ref:`error reporting
  1623. tool <dev-manual/common-tasks:using the error reporting tool>`, which
  1624. allows you to submit build errors you encounter to a central
  1625. database. By default, the value of this variable is
  1626. ``${``\ :term:`LOG_DIR`\ ``}/error-report``.
  1627. You can set ``ERR_REPORT_DIR`` to the path you want the error
  1628. reporting tool to store the debug files as follows in your
  1629. ``local.conf`` file:
  1630. ::
  1631. ERR_REPORT_DIR = "path"
  1632. :term:`ERROR_QA`
  1633. Specifies the quality assurance checks whose failures are reported as
  1634. errors by the OpenEmbedded build system. You set this variable in
  1635. your distribution configuration file. For a list of the checks you
  1636. can control with this variable, see the
  1637. ":ref:`insane.bbclass <ref-classes-insane>`" section.
  1638. :term:`EXCLUDE_FROM_SHLIBS`
  1639. Triggers the OpenEmbedded build system's shared libraries resolver to
  1640. exclude an entire package when scanning for shared libraries.
  1641. .. note::
  1642. The shared libraries resolver's functionality results in part from
  1643. the internal function ``package_do_shlibs``, which is part of the
  1644. :ref:`ref-tasks-package` task. You should be aware that the shared
  1645. libraries resolver might implicitly define some dependencies between
  1646. packages.
  1647. The ``EXCLUDE_FROM_SHLIBS`` variable is similar to the
  1648. :term:`PRIVATE_LIBS` variable, which excludes a
  1649. package's particular libraries only and not the whole package.
  1650. Use the ``EXCLUDE_FROM_SHLIBS`` variable by setting it to "1" for a
  1651. particular package:
  1652. ::
  1653. EXCLUDE_FROM_SHLIBS = "1"
  1654. :term:`EXCLUDE_FROM_WORLD`
  1655. Directs BitBake to exclude a recipe from world builds (i.e.
  1656. ``bitbake world``). During world builds, BitBake locates, parses and
  1657. builds all recipes found in every layer exposed in the
  1658. ``bblayers.conf`` configuration file.
  1659. To exclude a recipe from a world build using this variable, set the
  1660. variable to "1" in the recipe.
  1661. .. note::
  1662. Recipes added to ``EXCLUDE_FROM_WORLD`` may still be built during a
  1663. world build in order to satisfy dependencies of other recipes. Adding
  1664. a recipe to ``EXCLUDE_FROM_WORLD`` only ensures that the recipe is not
  1665. explicitly added to the list of build targets in a world build.
  1666. :term:`EXTENDPE`
  1667. Used with file and pathnames to create a prefix for a recipe's
  1668. version based on the recipe's :term:`PE` value. If ``PE``
  1669. is set and greater than zero for a recipe, ``EXTENDPE`` becomes that
  1670. value (e.g if ``PE`` is equal to "1" then ``EXTENDPE`` becomes "1").
  1671. If a recipe's ``PE`` is not set (the default) or is equal to zero,
  1672. ``EXTENDPE`` becomes "".
  1673. See the :term:`STAMP` variable for an example.
  1674. :term:`EXTENDPKGV`
  1675. The full package version specification as it appears on the final
  1676. packages produced by a recipe. The variable's value is normally used
  1677. to fix a runtime dependency to the exact same version of another
  1678. package in the same recipe:
  1679. ::
  1680. RDEPENDS_${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  1681. The dependency relationships are intended to force the package
  1682. manager to upgrade these types of packages in lock-step.
  1683. :term:`EXTERNAL_KERNEL_TOOLS`
  1684. When set, the ``EXTERNAL_KERNEL_TOOLS`` variable indicates that these
  1685. tools are not in the source tree.
  1686. When kernel tools are available in the tree, they are preferred over
  1687. any externally installed tools. Setting the ``EXTERNAL_KERNEL_TOOLS``
  1688. variable tells the OpenEmbedded build system to prefer the installed
  1689. external tools. See the
  1690. :ref:`kernel-yocto <ref-classes-kernel-yocto>` class in
  1691. ``meta/classes`` to see how the variable is used.
  1692. :term:`EXTERNALSRC`
  1693. When inheriting the :ref:`externalsrc <ref-classes-externalsrc>`
  1694. class, this variable points to the source tree, which is outside of
  1695. the OpenEmbedded build system. When set, this variable sets the
  1696. :term:`S` variable, which is what the OpenEmbedded build
  1697. system uses to locate unpacked recipe source code.
  1698. For more information on ``externalsrc.bbclass``, see the
  1699. ":ref:`externalsrc.bbclass <ref-classes-externalsrc>`" section. You
  1700. can also find information on how to use this variable in the
  1701. ":ref:`dev-manual/common-tasks:building software from an external source`"
  1702. section in the Yocto Project Development Tasks Manual.
  1703. :term:`EXTERNALSRC_BUILD`
  1704. When inheriting the :ref:`externalsrc <ref-classes-externalsrc>`
  1705. class, this variable points to the directory in which the recipe's
  1706. source code is built, which is outside of the OpenEmbedded build
  1707. system. When set, this variable sets the :term:`B` variable,
  1708. which is what the OpenEmbedded build system uses to locate the Build
  1709. Directory.
  1710. For more information on ``externalsrc.bbclass``, see the
  1711. ":ref:`externalsrc.bbclass <ref-classes-externalsrc>`" section. You
  1712. can also find information on how to use this variable in the
  1713. ":ref:`dev-manual/common-tasks:building software from an external source`"
  1714. section in the Yocto Project Development Tasks Manual.
  1715. :term:`EXTRA_AUTORECONF`
  1716. For recipes inheriting the :ref:`autotools <ref-classes-autotools>`
  1717. class, you can use ``EXTRA_AUTORECONF`` to specify extra options to
  1718. pass to the ``autoreconf`` command that is executed during the
  1719. :ref:`ref-tasks-configure` task.
  1720. The default value is "--exclude=autopoint".
  1721. :term:`EXTRA_IMAGE_FEATURES`
  1722. A list of additional features to include in an image. When listing
  1723. more than one feature, separate them with a space.
  1724. Typically, you configure this variable in your ``local.conf`` file,
  1725. which is found in the :term:`Build Directory`.
  1726. Although you can use this variable from within a recipe, best
  1727. practices dictate that you do not.
  1728. .. note::
  1729. To enable primary features from within the image recipe, use the
  1730. :term:`IMAGE_FEATURES` variable.
  1731. Here are some examples of features you can add:
  1732. - "dbg-pkgs" - Adds -dbg packages for all installed packages including
  1733. symbol information for debugging and profiling.
  1734. - "debug-tweaks" - Makes an image suitable for debugging. For example, allows root logins without passwords and
  1735. enables post-installation logging. See the 'allow-empty-password' and
  1736. 'post-install-logging' features in the ":ref:`ref-features-image`"
  1737. section for more information.
  1738. - "dev-pkgs" - Adds -dev packages for all installed packages. This is
  1739. useful if you want to develop against the libraries in the image.
  1740. - "read-only-rootfs" - Creates an image whose root filesystem is
  1741. read-only. See the
  1742. ":ref:`dev-manual/common-tasks:creating a read-only root filesystem`"
  1743. section in the Yocto Project Development Tasks Manual for more
  1744. information
  1745. - "tools-debug" - Adds debugging tools such as gdb and strace.
  1746. - "tools-sdk" - Adds development tools such as gcc, make,
  1747. pkgconfig and so forth.
  1748. - "tools-testapps" - Adds useful testing tools
  1749. such as ts_print, aplay, arecord and so forth.
  1750. For a complete list of image features that ships with the Yocto
  1751. Project, see the ":ref:`ref-features-image`" section.
  1752. For an example that shows how to customize your image by using this
  1753. variable, see the ":ref:`dev-manual/common-tasks:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  1754. section in the Yocto Project Development Tasks Manual.
  1755. :term:`EXTRA_IMAGECMD`
  1756. Specifies additional options for the image creation command that has
  1757. been specified in :term:`IMAGE_CMD`. When setting
  1758. this variable, use an override for the associated image type. Here is
  1759. an example:
  1760. ::
  1761. EXTRA_IMAGECMD_ext3 ?= "-i 4096"
  1762. :term:`EXTRA_IMAGEDEPENDS`
  1763. A list of recipes to build that do not provide packages for
  1764. installing into the root filesystem.
  1765. Sometimes a recipe is required to build the final image but is not
  1766. needed in the root filesystem. You can use the ``EXTRA_IMAGEDEPENDS``
  1767. variable to list these recipes and thus specify the dependencies. A
  1768. typical example is a required bootloader in a machine configuration.
  1769. .. note::
  1770. To add packages to the root filesystem, see the various
  1771. :term:`RDEPENDS` and :term:`RRECOMMENDS` variables.
  1772. :term:`EXTRANATIVEPATH`
  1773. A list of subdirectories of
  1774. ``${``\ :term:`STAGING_BINDIR_NATIVE`\ ``}``
  1775. added to the beginning of the environment variable ``PATH``. As an
  1776. example, the following prepends
  1777. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:" to
  1778. ``PATH``:
  1779. ::
  1780. EXTRANATIVEPATH = "foo bar"
  1781. :term:`EXTRA_OECMAKE`
  1782. Additional `CMake <https://cmake.org/overview/>`__ options. See the
  1783. :ref:`cmake <ref-classes-cmake>` class for additional information.
  1784. :term:`EXTRA_OECONF`
  1785. Additional ``configure`` script options. See
  1786. :term:`PACKAGECONFIG_CONFARGS` for
  1787. additional information on passing configure script options.
  1788. :term:`EXTRA_OEMAKE`
  1789. Additional GNU ``make`` options.
  1790. Because the ``EXTRA_OEMAKE`` defaults to "", you need to set the
  1791. variable to specify any required GNU options.
  1792. :term:`PARALLEL_MAKE` and
  1793. :term:`PARALLEL_MAKEINST` also make use of
  1794. ``EXTRA_OEMAKE`` to pass the required flags.
  1795. :term:`EXTRA_OESCONS`
  1796. When inheriting the :ref:`scons <ref-classes-scons>` class, this
  1797. variable specifies additional configuration options you want to pass
  1798. to the ``scons`` command line.
  1799. :term:`EXTRA_USERS_PARAMS`
  1800. When inheriting the :ref:`extrausers <ref-classes-extrausers>`
  1801. class, this variable provides image level user and group operations.
  1802. This is a more global method of providing user and group
  1803. configuration as compared to using the
  1804. :ref:`useradd <ref-classes-useradd>` class, which ties user and
  1805. group configurations to a specific recipe.
  1806. The set list of commands you can configure using the
  1807. ``EXTRA_USERS_PARAMS`` is shown in the ``extrausers`` class. These
  1808. commands map to the normal Unix commands of the same names:
  1809. ::
  1810. # EXTRA_USERS_PARAMS = "\
  1811. # useradd -p '' tester; \
  1812. # groupadd developers; \
  1813. # userdel nobody; \
  1814. # groupdel -g video; \
  1815. # groupmod -g 1020 developers; \
  1816. # usermod -s /bin/sh tester; \
  1817. # "
  1818. :term:`FEATURE_PACKAGES`
  1819. Defines one or more packages to include in an image when a specific
  1820. item is included in :term:`IMAGE_FEATURES`.
  1821. When setting the value, ``FEATURE_PACKAGES`` should have the name of
  1822. the feature item as an override. Here is an example:
  1823. ::
  1824. FEATURE_PACKAGES_widget = "package1 package2"
  1825. In this example, if "widget" were added to ``IMAGE_FEATURES``,
  1826. package1 and package2 would be included in the image.
  1827. .. note::
  1828. Packages installed by features defined through ``FEATURE_PACKAGES``
  1829. are often package groups. While similarly named, you should not
  1830. confuse the ``FEATURE_PACKAGES`` variable with package groups, which
  1831. are discussed elsewhere in the documentation.
  1832. :term:`FEED_DEPLOYDIR_BASE_URI`
  1833. Points to the base URL of the server and location within the
  1834. document-root that provides the metadata and packages required by
  1835. OPKG to support runtime package management of IPK packages. You set
  1836. this variable in your ``local.conf`` file.
  1837. Consider the following example:
  1838. ::
  1839. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  1840. This example assumes you are serving
  1841. your packages over HTTP and your databases are located in a directory
  1842. named ``BOARD-dir``, which is underneath your HTTP server's
  1843. document-root. In this case, the OpenEmbedded build system generates
  1844. a set of configuration files for you in your target that work with
  1845. the feed.
  1846. :term:`FILES`
  1847. The list of files and directories that are placed in a package. The
  1848. :term:`PACKAGES` variable lists the packages
  1849. generated by a recipe.
  1850. To use the ``FILES`` variable, provide a package name override that
  1851. identifies the resulting package. Then, provide a space-separated
  1852. list of files or paths that identify the files you want included as
  1853. part of the resulting package. Here is an example:
  1854. ::
  1855. FILES_${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  1856. .. note::
  1857. - When specifying files or paths, you can pattern match using
  1858. Python's
  1859. `glob <https://docs.python.org/3/library/glob.html>`_
  1860. syntax. For details on the syntax, see the documentation by
  1861. following the previous link.
  1862. - When specifying paths as part of the ``FILES`` variable, it is
  1863. good practice to use appropriate path variables. For example,
  1864. use ``${sysconfdir}`` rather than ``/etc``, or ``${bindir}``
  1865. rather than ``/usr/bin``. You can find a list of these
  1866. variables at the top of the ``meta/conf/bitbake.conf`` file in
  1867. the :term:`Source Directory`. You will also
  1868. find the default values of the various ``FILES_*`` variables in
  1869. this file.
  1870. If some of the files you provide with the ``FILES`` variable are
  1871. editable and you know they should not be overwritten during the
  1872. package update process by the Package Management System (PMS), you
  1873. can identify these files so that the PMS will not overwrite them. See
  1874. the :term:`CONFFILES` variable for information on
  1875. how to identify these files to the PMS.
  1876. :term:`FILES_SOLIBSDEV`
  1877. Defines the file specification to match
  1878. :term:`SOLIBSDEV`. In other words,
  1879. ``FILES_SOLIBSDEV`` defines the full path name of the development
  1880. symbolic link (symlink) for shared libraries on the target platform.
  1881. The following statement from the ``bitbake.conf`` shows how it is
  1882. set:
  1883. ::
  1884. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  1885. :term:`FILESEXTRAPATHS`
  1886. Extends the search path the OpenEmbedded build system uses when
  1887. looking for files and patches as it processes recipes and append
  1888. files. The default directories BitBake uses when it processes recipes
  1889. are initially defined by the :term:`FILESPATH`
  1890. variable. You can extend ``FILESPATH`` variable by using
  1891. ``FILESEXTRAPATHS``.
  1892. Best practices dictate that you accomplish this by using
  1893. ``FILESEXTRAPATHS`` from within a ``.bbappend`` file and that you
  1894. prepend paths as follows:
  1895. ::
  1896. FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
  1897. In the above example, the build system first
  1898. looks for files in a directory that has the same name as the
  1899. corresponding append file.
  1900. .. note::
  1901. When extending ``FILESEXTRAPATHS``, be sure to use the immediate
  1902. expansion (``:=``) operator. Immediate expansion makes sure that
  1903. BitBake evaluates :term:`THISDIR` at the time the
  1904. directive is encountered rather than at some later time when
  1905. expansion might result in a directory that does not contain the
  1906. files you need.
  1907. Also, include the trailing separating colon character if you are
  1908. prepending. The trailing colon character is necessary because you
  1909. are directing BitBake to extend the path by prepending directories
  1910. to the search path.
  1911. Here is another common use:
  1912. ::
  1913. FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
  1914. In this example, the build system extends the
  1915. ``FILESPATH`` variable to include a directory named ``files`` that is
  1916. in the same directory as the corresponding append file.
  1917. This next example specifically adds three paths:
  1918. ::
  1919. FILESEXTRAPATHS_prepend := "path_1:path_2:path_3:"
  1920. A final example shows how you can extend the search path and include
  1921. a :term:`MACHINE`-specific override, which is useful
  1922. in a BSP layer:
  1923. ::
  1924. FILESEXTRAPATHS_prepend_intel-x86-common := "${THISDIR}/${PN}:"
  1925. The previous statement appears in the
  1926. ``linux-yocto-dev.bbappend`` file, which is found in the
  1927. :ref:`overview-manual/development-environment:yocto project source repositories` in
  1928. ``meta-intel/common/recipes-kernel/linux``. Here, the machine
  1929. override is a special :term:`PACKAGE_ARCH`
  1930. definition for multiple ``meta-intel`` machines.
  1931. .. note::
  1932. For a layer that supports a single BSP, the override could just be
  1933. the value of ``MACHINE``.
  1934. By prepending paths in ``.bbappend`` files, you allow multiple append
  1935. files that reside in different layers but are used for the same
  1936. recipe to correctly extend the path.
  1937. :term:`FILESOVERRIDES`
  1938. A subset of :term:`OVERRIDES` used by the
  1939. OpenEmbedded build system for creating
  1940. :term:`FILESPATH`. The ``FILESOVERRIDES`` variable
  1941. uses overrides to automatically extend the
  1942. :term:`FILESPATH` variable. For an example of how
  1943. that works, see the :term:`FILESPATH` variable
  1944. description. Additionally, you find more information on how overrides
  1945. are handled in the
  1946. ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  1947. section of the BitBake User Manual.
  1948. By default, the ``FILESOVERRIDES`` variable is defined as:
  1949. ::
  1950. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  1951. .. note::
  1952. Do not hand-edit the ``FILESOVERRIDES`` variable. The values match up
  1953. with expected overrides and are used in an expected manner by the
  1954. build system.
  1955. :term:`FILESPATH`
  1956. The default set of directories the OpenEmbedded build system uses
  1957. when searching for patches and files.
  1958. During the build process, BitBake searches each directory in
  1959. ``FILESPATH`` in the specified order when looking for files and
  1960. patches specified by each ``file://`` URI in a recipe's
  1961. :term:`SRC_URI` statements.
  1962. The default value for the ``FILESPATH`` variable is defined in the
  1963. ``base.bbclass`` class found in ``meta/classes`` in the
  1964. :term:`Source Directory`:
  1965. ::
  1966. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  1967. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  1968. The
  1969. ``FILESPATH`` variable is automatically extended using the overrides
  1970. from the :term:`FILESOVERRIDES` variable.
  1971. .. note::
  1972. - Do not hand-edit the ``FILESPATH`` variable. If you want the
  1973. build system to look in directories other than the defaults,
  1974. extend the ``FILESPATH`` variable by using the
  1975. :term:`FILESEXTRAPATHS` variable.
  1976. - Be aware that the default ``FILESPATH`` directories do not map
  1977. to directories in custom layers where append files
  1978. (``.bbappend``) are used. If you want the build system to find
  1979. patches or files that reside with your append files, you need
  1980. to extend the ``FILESPATH`` variable by using the
  1981. ``FILESEXTRAPATHS`` variable.
  1982. You can take advantage of this searching behavior in useful ways. For
  1983. example, consider a case where the following directory structure
  1984. exists for general and machine-specific configurations:
  1985. ::
  1986. files/defconfig
  1987. files/MACHINEA/defconfig
  1988. files/MACHINEB/defconfig
  1989. Also in the example, the ``SRC_URI`` statement contains
  1990. "file://defconfig". Given this scenario, you can set
  1991. :term:`MACHINE` to "MACHINEA" and cause the build
  1992. system to use files from ``files/MACHINEA``. Set ``MACHINE`` to
  1993. "MACHINEB" and the build system uses files from ``files/MACHINEB``.
  1994. Finally, for any machine other than "MACHINEA" and "MACHINEB", the
  1995. build system uses files from ``files/defconfig``.
  1996. You can find out more about the patching process in the
  1997. ":ref:`overview-manual/concepts:patching`" section
  1998. in the Yocto Project Overview and Concepts Manual and the
  1999. ":ref:`dev-manual/common-tasks:patching code`" section in
  2000. the Yocto Project Development Tasks Manual. See the
  2001. :ref:`ref-tasks-patch` task as well.
  2002. :term:`FILESYSTEM_PERMS_TABLES`
  2003. Allows you to define your own file permissions settings table as part
  2004. of your configuration for the packaging process. For example, suppose
  2005. you need a consistent set of custom permissions for a set of groups
  2006. and users across an entire work project. It is best to do this in the
  2007. packages themselves but this is not always possible.
  2008. By default, the OpenEmbedded build system uses the ``fs-perms.txt``,
  2009. which is located in the ``meta/files`` folder in the :term:`Source Directory`.
  2010. If you create your own file
  2011. permissions setting table, you should place it in your layer or the
  2012. distro's layer.
  2013. You define the ``FILESYSTEM_PERMS_TABLES`` variable in the
  2014. ``conf/local.conf`` file, which is found in the :term:`Build Directory`,
  2015. to point to your custom
  2016. ``fs-perms.txt``. You can specify more than a single file permissions
  2017. setting table. The paths you specify to these files must be defined
  2018. within the :term:`BBPATH` variable.
  2019. For guidance on how to create your own file permissions settings
  2020. table file, examine the existing ``fs-perms.txt``.
  2021. :term:`FIT_DESC`
  2022. Specifies the description string encoded into a fitImage. The default
  2023. value is set by the :ref:`kernel-fitimage <ref-classes-kernel-fitimage>`
  2024. class as follows::
  2025. FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  2026. :term:`FIT_GENERATE_KEYS`
  2027. Decides whether to generate the keys for signing fitImage if they
  2028. don't already exist. The keys are created in ``UBOOT_SIGN_KEYDIR``.
  2029. The default value is 0.
  2030. :term:`FIT_HASH_ALG`
  2031. Specifies the hash algorithm used in creating the FIT Image. For e.g. sha256.
  2032. :term:`FIT_KEY_GENRSA_ARGS`
  2033. Arguments to openssl genrsa for generating RSA private key for signing
  2034. fitImage. The default value is "-F4". i.e. the public exponent 65537 to
  2035. use.
  2036. :term:`FIT_KEY_REQ_ARGS`
  2037. Arguments to openssl req for generating certificate for signing fitImage.
  2038. The default value is "-batch -new". batch for non interactive mode
  2039. and new for generating new keys.
  2040. :term:`FIT_KEY_SIGN_PKCS`
  2041. Format for public key certificate used in signing fitImage.
  2042. The default value is "x509".
  2043. :term:`FIT_SIGN_ALG`
  2044. Specifies the signature algorithm used in creating the FIT Image.
  2045. For e.g. rsa2048.
  2046. :term:`FIT_SIGN_NUMBITS`
  2047. Size of private key in number of bits used in fitImage. The default
  2048. value is "2048".
  2049. :term:`FIT_SIGN_INDIVIDUAL`
  2050. If set to "1", then the :ref:`kernel-fitimage <ref-classes-kernel-fitimage>`
  2051. class will sign the kernel, dtb and ramdisk images individually in addition
  2052. to signing the fitImage itself. This could be useful if you are
  2053. intending to verify signatures in another context than booting via
  2054. U-Boot.
  2055. :term:`FONT_EXTRA_RDEPENDS`
  2056. When inheriting the :ref:`fontcache <ref-classes-fontcache>` class,
  2057. this variable specifies the runtime dependencies for font packages.
  2058. By default, the ``FONT_EXTRA_RDEPENDS`` is set to "fontconfig-utils".
  2059. :term:`FONT_PACKAGES`
  2060. When inheriting the :ref:`fontcache <ref-classes-fontcache>` class,
  2061. this variable identifies packages containing font files that need to
  2062. be cached by Fontconfig. By default, the ``fontcache`` class assumes
  2063. that fonts are in the recipe's main package (i.e.
  2064. ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you
  2065. need are in a package other than that main package.
  2066. :term:`FORCE_RO_REMOVE`
  2067. Forces the removal of the packages listed in ``ROOTFS_RO_UNNEEDED``
  2068. during the generation of the root filesystem.
  2069. Set the variable to "1" to force the removal of these packages.
  2070. :term:`FULL_OPTIMIZATION`
  2071. The options to pass in ``TARGET_CFLAGS`` and ``CFLAGS`` when
  2072. compiling an optimized system. This variable defaults to "-O2 -pipe
  2073. ${DEBUG_FLAGS}".
  2074. :term:`GCCPIE`
  2075. Enables Position Independent Executables (PIE) within the GNU C
  2076. Compiler (GCC). Enabling PIE in the GCC makes Return Oriented
  2077. Programming (ROP) attacks much more difficult to execute.
  2078. By default the ``security_flags.inc`` file enables PIE by setting the
  2079. variable as follows:
  2080. ::
  2081. GCCPIE ?= "--enable-default-pie"
  2082. :term:`GCCVERSION`
  2083. Specifies the default version of the GNU C Compiler (GCC) used for
  2084. compilation. By default, ``GCCVERSION`` is set to "8.x" in the
  2085. ``meta/conf/distro/include/tcmode-default.inc`` include file:
  2086. ::
  2087. GCCVERSION ?= "8.%"
  2088. You can override this value by setting it in a
  2089. configuration file such as the ``local.conf``.
  2090. :term:`GDB`
  2091. The minimal command and arguments to run the GNU Debugger.
  2092. :term:`GITDIR`
  2093. The directory in which a local copy of a Git repository is stored
  2094. when it is cloned.
  2095. :term:`GLIBC_GENERATE_LOCALES`
  2096. Specifies the list of GLIBC locales to generate should you not wish
  2097. to generate all LIBC locals, which can be time consuming.
  2098. .. note::
  2099. If you specifically remove the locale ``en_US.UTF-8``, you must set
  2100. :term:`IMAGE_LINGUAS` appropriately.
  2101. You can set ``GLIBC_GENERATE_LOCALES`` in your ``local.conf`` file.
  2102. By default, all locales are generated.
  2103. ::
  2104. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  2105. :term:`GROUPADD_PARAM`
  2106. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  2107. this variable specifies for a package what parameters should be
  2108. passed to the ``groupadd`` command if you wish to add a group to the
  2109. system when the package is installed.
  2110. Here is an example from the ``dbus`` recipe:
  2111. ::
  2112. GROUPADD_PARAM_${PN} = "-r netdev"
  2113. For information on the standard Linux shell command
  2114. ``groupadd``, see https://linux.die.net/man/8/groupadd.
  2115. :term:`GROUPMEMS_PARAM`
  2116. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  2117. this variable specifies for a package what parameters should be
  2118. passed to the ``groupmems`` command if you wish to modify the members
  2119. of a group when the package is installed.
  2120. For information on the standard Linux shell command ``groupmems``,
  2121. see https://linux.die.net/man/8/groupmems.
  2122. :term:`GRUB_GFXSERIAL`
  2123. Configures the GNU GRand Unified Bootloader (GRUB) to have graphics
  2124. and serial in the boot menu. Set this variable to "1" in your
  2125. ``local.conf`` or distribution configuration file to enable graphics
  2126. and serial in the menu.
  2127. See the :ref:`grub-efi <ref-classes-grub-efi>` class for more
  2128. information on how this variable is used.
  2129. :term:`GRUB_OPTS`
  2130. Additional options to add to the GNU GRand Unified Bootloader (GRUB)
  2131. configuration. Use a semi-colon character (``;``) to separate
  2132. multiple options.
  2133. The ``GRUB_OPTS`` variable is optional. See the
  2134. :ref:`grub-efi <ref-classes-grub-efi>` class for more information
  2135. on how this variable is used.
  2136. :term:`GRUB_TIMEOUT`
  2137. Specifies the timeout before executing the default ``LABEL`` in the
  2138. GNU GRand Unified Bootloader (GRUB).
  2139. The ``GRUB_TIMEOUT`` variable is optional. See the
  2140. :ref:`grub-efi <ref-classes-grub-efi>` class for more information
  2141. on how this variable is used.
  2142. :term:`GTKIMMODULES_PACKAGES`
  2143. When inheriting the
  2144. :ref:`gtk-immodules-cache <ref-classes-gtk-immodules-cache>` class,
  2145. this variable specifies the packages that contain the GTK+ input
  2146. method modules being installed when the modules are in packages other
  2147. than the main package.
  2148. :term:`HOMEPAGE`
  2149. Website where more information about the software the recipe is
  2150. building can be found.
  2151. :term:`HOST_ARCH`
  2152. The name of the target architecture, which is normally the same as
  2153. :term:`TARGET_ARCH`. The OpenEmbedded build system
  2154. supports many architectures. Here is an example list of architectures
  2155. supported. This list is by no means complete as the architecture is
  2156. configurable:
  2157. - arm
  2158. - i586
  2159. - x86_64
  2160. - powerpc
  2161. - powerpc64
  2162. - mips
  2163. - mipsel
  2164. :term:`HOST_CC_ARCH`
  2165. Specifies architecture-specific compiler flags that are passed to the
  2166. C compiler.
  2167. Default initialization for ``HOST_CC_ARCH`` varies depending on what
  2168. is being built:
  2169. - :term:`TARGET_CC_ARCH` when building for the
  2170. target
  2171. - :term:`BUILD_CC_ARCH` when building for the build host (i.e.
  2172. ``-native``)
  2173. - ``BUILDSDK_CC_ARCH`` when building for an SDK (i.e.
  2174. ``nativesdk-``)
  2175. :term:`HOST_OS`
  2176. Specifies the name of the target operating system, which is normally
  2177. the same as the :term:`TARGET_OS`. The variable can
  2178. be set to "linux" for ``glibc``-based systems and to "linux-musl" for
  2179. ``musl``. For ARM/EABI targets, there are also "linux-gnueabi" and
  2180. "linux-musleabi" values possible.
  2181. :term:`HOST_PREFIX`
  2182. Specifies the prefix for the cross-compile toolchain. ``HOST_PREFIX``
  2183. is normally the same as :term:`TARGET_PREFIX`.
  2184. :term:`HOST_SYS`
  2185. Specifies the system, including the architecture and the operating
  2186. system, for which the build is occurring in the context of the
  2187. current recipe.
  2188. The OpenEmbedded build system automatically sets this variable based
  2189. on :term:`HOST_ARCH`,
  2190. :term:`HOST_VENDOR`, and
  2191. :term:`HOST_OS` variables.
  2192. .. note::
  2193. You do not need to set the variable yourself.
  2194. Consider these two examples:
  2195. - Given a native recipe on a 32-bit x86 machine running Linux, the
  2196. value is "i686-linux".
  2197. - Given a recipe being built for a little-endian MIPS target running
  2198. Linux, the value might be "mipsel-linux".
  2199. :term:`HOSTTOOLS`
  2200. A space-separated list (filter) of tools on the build host that
  2201. should be allowed to be called from within build tasks. Using this
  2202. filter helps reduce the possibility of host contamination. If a tool
  2203. specified in the value of ``HOSTTOOLS`` is not found on the build
  2204. host, the OpenEmbedded build system produces an error and the build
  2205. is not started.
  2206. For additional information, see
  2207. :term:`HOSTTOOLS_NONFATAL`.
  2208. :term:`HOSTTOOLS_NONFATAL`
  2209. A space-separated list (filter) of tools on the build host that
  2210. should be allowed to be called from within build tasks. Using this
  2211. filter helps reduce the possibility of host contamination. Unlike
  2212. :term:`HOSTTOOLS`, the OpenEmbedded build system
  2213. does not produce an error if a tool specified in the value of
  2214. ``HOSTTOOLS_NONFATAL`` is not found on the build host. Thus, you can
  2215. use ``HOSTTOOLS_NONFATAL`` to filter optional host tools.
  2216. :term:`HOST_VENDOR`
  2217. Specifies the name of the vendor. ``HOST_VENDOR`` is normally the
  2218. same as :term:`TARGET_VENDOR`.
  2219. :term:`ICECC_DISABLED`
  2220. Disables or enables the ``icecc`` (Icecream) function. For more
  2221. information on this function and best practices for using this
  2222. variable, see the ":ref:`icecc.bbclass <ref-classes-icecc>`"
  2223. section.
  2224. Setting this variable to "1" in your ``local.conf`` disables the
  2225. function:
  2226. ::
  2227. ICECC_DISABLED ??= "1"
  2228. To enable the function, set the variable as follows:
  2229. ::
  2230. ICECC_DISABLED = ""
  2231. :term:`ICECC_ENV_EXEC`
  2232. Points to the ``icecc-create-env`` script that you provide. This
  2233. variable is used by the :ref:`icecc <ref-classes-icecc>` class. You
  2234. set this variable in your ``local.conf`` file.
  2235. If you do not point to a script that you provide, the OpenEmbedded
  2236. build system uses the default script provided by the
  2237. ``icecc-create-env.bb`` recipe, which is a modified version and not
  2238. the one that comes with ``icecc``.
  2239. :term:`ICECC_PARALLEL_MAKE`
  2240. Extra options passed to the ``make`` command during the
  2241. :ref:`ref-tasks-compile` task that specify parallel
  2242. compilation. This variable usually takes the form of "-j x", where x
  2243. represents the maximum number of parallel threads ``make`` can run.
  2244. .. note::
  2245. The options passed affect builds on all enabled machines on the
  2246. network, which are machines running the ``iceccd`` daemon.
  2247. If your enabled machines support multiple cores, coming up with the
  2248. maximum number of parallel threads that gives you the best
  2249. performance could take some experimentation since machine speed,
  2250. network lag, available memory, and existing machine loads can all
  2251. affect build time. Consequently, unlike the
  2252. :term:`PARALLEL_MAKE` variable, there is no
  2253. rule-of-thumb for setting ``ICECC_PARALLEL_MAKE`` to achieve optimal
  2254. performance.
  2255. If you do not set ``ICECC_PARALLEL_MAKE``, the build system does not
  2256. use it (i.e. the system does not detect and assign the number of
  2257. cores as is done with ``PARALLEL_MAKE``).
  2258. :term:`ICECC_PATH`
  2259. The location of the ``icecc`` binary. You can set this variable in
  2260. your ``local.conf`` file. If your ``local.conf`` file does not define
  2261. this variable, the :ref:`icecc <ref-classes-icecc>` class attempts
  2262. to define it by locating ``icecc`` using ``which``.
  2263. :term:`ICECC_USER_CLASS_BL`
  2264. Identifies user classes that you do not want the Icecream distributed
  2265. compile support to consider. This variable is used by the
  2266. :ref:`icecc <ref-classes-icecc>` class. You set this variable in
  2267. your ``local.conf`` file.
  2268. When you list classes using this variable, you are "blacklisting"
  2269. them from distributed compilation across remote hosts. Any classes
  2270. you list will be distributed and compiled locally.
  2271. :term:`ICECC_USER_PACKAGE_BL`
  2272. Identifies user recipes that you do not want the Icecream distributed
  2273. compile support to consider. This variable is used by the
  2274. :ref:`icecc <ref-classes-icecc>` class. You set this variable in
  2275. your ``local.conf`` file.
  2276. When you list packages using this variable, you are "blacklisting"
  2277. them from distributed compilation across remote hosts. Any packages
  2278. you list will be distributed and compiled locally.
  2279. :term:`ICECC_USER_PACKAGE_WL`
  2280. Identifies user recipes that use an empty
  2281. :term:`PARALLEL_MAKE` variable that you want to
  2282. force remote distributed compilation on using the Icecream
  2283. distributed compile support. This variable is used by the
  2284. :ref:`icecc <ref-classes-icecc>` class. You set this variable in
  2285. your ``local.conf`` file.
  2286. :term:`IMAGE_BASENAME`
  2287. The base name of image output files. This variable defaults to the
  2288. recipe name (``${``\ :term:`PN`\ ``}``).
  2289. :term:`IMAGE_EFI_BOOT_FILES`
  2290. A space-separated list of files installed into the boot partition
  2291. when preparing an image using the Wic tool with the
  2292. ``bootimg-efi`` source plugin. By default,
  2293. the files are
  2294. installed under the same name as the source files. To change the
  2295. installed name, separate it from the original name with a semi-colon
  2296. (;). Source files need to be located in
  2297. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2298. examples:
  2299. ::
  2300. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE};bz2"
  2301. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE} microcode.cpio"
  2302. Alternatively, source files can be picked up using a glob pattern. In
  2303. this case, the destination file must have the same name as the base
  2304. name of the source file path. To install files into a directory
  2305. within the target location, pass its name after a semi-colon (;).
  2306. Here are two examples:
  2307. ::
  2308. IMAGE_EFI_BOOT_FILES = "boot/loader/*"
  2309. IMAGE_EFI_BOOT_FILES = "boot/loader/*;boot/"
  2310. The first example
  2311. installs all files from ``${DEPLOY_DIR_IMAGE}/boot/loader/``
  2312. into the root of the target partition. The second example installs
  2313. the same files into a ``boot`` directory within the target partition.
  2314. You can find information on how to use the Wic tool in the
  2315. ":ref:`dev-manual/common-tasks:creating partitioned images using wic`"
  2316. section of the Yocto Project Development Tasks Manual. Reference
  2317. material for Wic is located in the
  2318. ":doc:`/ref-manual/kickstart`" chapter.
  2319. :term:`IMAGE_BOOT_FILES`
  2320. A space-separated list of files installed into the boot partition
  2321. when preparing an image using the Wic tool with the
  2322. ``bootimg-partition`` source plugin. By default,
  2323. the files are
  2324. installed under the same name as the source files. To change the
  2325. installed name, separate it from the original name with a semi-colon
  2326. (;). Source files need to be located in
  2327. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2328. examples:
  2329. ::
  2330. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  2331. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  2332. Alternatively, source files can be picked up using a glob pattern. In
  2333. this case, the destination file must have the same name as the base
  2334. name of the source file path. To install files into a directory
  2335. within the target location, pass its name after a semi-colon (;).
  2336. Here are two examples:
  2337. ::
  2338. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  2339. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  2340. The first example
  2341. installs all files from ``${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles``
  2342. into the root of the target partition. The second example installs
  2343. the same files into a ``boot`` directory within the target partition.
  2344. You can find information on how to use the Wic tool in the
  2345. ":ref:`dev-manual/common-tasks:creating partitioned images using wic`"
  2346. section of the Yocto Project Development Tasks Manual. Reference
  2347. material for Wic is located in the
  2348. ":doc:`/ref-manual/kickstart`" chapter.
  2349. :term:`IMAGE_CLASSES`
  2350. A list of classes that all images should inherit. You typically use
  2351. this variable to specify the list of classes that register the
  2352. different types of images the OpenEmbedded build system creates.
  2353. The default value for ``IMAGE_CLASSES`` is ``image_types``. You can
  2354. set this variable in your ``local.conf`` or in a distribution
  2355. configuration file.
  2356. For more information, see ``meta/classes/image_types.bbclass`` in the
  2357. :term:`Source Directory`.
  2358. :term:`IMAGE_CMD`
  2359. Specifies the command to create the image file for a specific image
  2360. type, which corresponds to the value set set in
  2361. :term:`IMAGE_FSTYPES`, (e.g. ``ext3``,
  2362. ``btrfs``, and so forth). When setting this variable, you should use
  2363. an override for the associated type. Here is an example:
  2364. ::
  2365. IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} \
  2366. --faketime --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
  2367. ${EXTRA_IMAGECMD}"
  2368. You typically do not need to set this variable unless you are adding
  2369. support for a new image type. For more examples on how to set this
  2370. variable, see the :ref:`image_types <ref-classes-image_types>`
  2371. class file, which is ``meta/classes/image_types.bbclass``.
  2372. :term:`IMAGE_DEVICE_TABLES`
  2373. Specifies one or more files that contain custom device tables that
  2374. are passed to the ``makedevs`` command as part of creating an image.
  2375. These files list basic device nodes that should be created under
  2376. ``/dev`` within the image. If ``IMAGE_DEVICE_TABLES`` is not set,
  2377. ``files/device_table-minimal.txt`` is used, which is located by
  2378. :term:`BBPATH`. For details on how you should write
  2379. device table files, see ``meta/files/device_table-minimal.txt`` as an
  2380. example.
  2381. :term:`IMAGE_FEATURES`
  2382. The primary list of features to include in an image. Typically, you
  2383. configure this variable in an image recipe. Although you can use this
  2384. variable from your ``local.conf`` file, which is found in the
  2385. :term:`Build Directory`, best practices dictate that you do
  2386. not.
  2387. .. note::
  2388. To enable extra features from outside the image recipe, use the
  2389. :term:`EXTRA_IMAGE_FEATURES` variable.
  2390. For a list of image features that ships with the Yocto Project, see
  2391. the ":ref:`ref-features-image`" section.
  2392. For an example that shows how to customize your image by using this
  2393. variable, see the ":ref:`dev-manual/common-tasks:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2394. section in the Yocto Project Development Tasks Manual.
  2395. :term:`IMAGE_FSTYPES`
  2396. Specifies the formats the OpenEmbedded build system uses during the
  2397. build when creating the root filesystem. For example, setting
  2398. ``IMAGE_FSTYPES`` as follows causes the build system to create root
  2399. filesystems using two formats: ``.ext3`` and ``.tar.bz2``:
  2400. ::
  2401. IMAGE_FSTYPES = "ext3 tar.bz2"
  2402. For the complete list of supported image formats from which you can
  2403. choose, see :term:`IMAGE_TYPES`.
  2404. .. note::
  2405. - If an image recipe uses the "inherit image" line and you are
  2406. setting ``IMAGE_FSTYPES`` inside the recipe, you must set
  2407. ``IMAGE_FSTYPES`` prior to using the "inherit image" line.
  2408. - Due to the way the OpenEmbedded build system processes this
  2409. variable, you cannot update its contents by using ``_append``
  2410. or ``_prepend``. You must use the ``+=`` operator to add one or
  2411. more options to the ``IMAGE_FSTYPES`` variable.
  2412. :term:`IMAGE_INSTALL`
  2413. Used by recipes to specify the packages to install into an image
  2414. through the :ref:`image <ref-classes-image>` class. Use the
  2415. ``IMAGE_INSTALL`` variable with care to avoid ordering issues.
  2416. Image recipes set ``IMAGE_INSTALL`` to specify the packages to
  2417. install into an image through ``image.bbclass``. Additionally,
  2418. "helper" classes such as the
  2419. :ref:`core-image <ref-classes-core-image>` class exist that can
  2420. take lists used with ``IMAGE_FEATURES`` and turn them into
  2421. auto-generated entries in ``IMAGE_INSTALL`` in addition to its
  2422. default contents.
  2423. When you use this variable, it is best to use it as follows:
  2424. ::
  2425. IMAGE_INSTALL_append = " package-name"
  2426. Be sure to include the space
  2427. between the quotation character and the start of the package name or
  2428. names.
  2429. .. note::
  2430. - When working with a
  2431. :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  2432. image, do not use the ``IMAGE_INSTALL`` variable to specify
  2433. packages for installation. Instead, use the
  2434. :term:`PACKAGE_INSTALL` variable, which
  2435. allows the initial RAM filesystem (initramfs) recipe to use a
  2436. fixed set of packages and not be affected by ``IMAGE_INSTALL``.
  2437. For information on creating an initramfs, see the
  2438. ":ref:`dev-manual/common-tasks:building an initial ram filesystem (initramfs) image`"
  2439. section in the Yocto Project Development Tasks Manual.
  2440. - Using ``IMAGE_INSTALL`` with the
  2441. :ref:`+= <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>`
  2442. BitBake operator within the ``/conf/local.conf`` file or from
  2443. within an image recipe is not recommended. Use of this operator
  2444. in these ways can cause ordering issues. Since
  2445. ``core-image.bbclass`` sets ``IMAGE_INSTALL`` to a default
  2446. value using the
  2447. :ref:`?= <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>`
  2448. operator, using a ``+=`` operation against ``IMAGE_INSTALL``
  2449. results in unexpected behavior when used within
  2450. ``conf/local.conf``. Furthermore, the same operation from
  2451. within an image recipe may or may not succeed depending on the
  2452. specific situation. In both these cases, the behavior is
  2453. contrary to how most users expect the ``+=`` operator to work.
  2454. :term:`IMAGE_LINGUAS`
  2455. Specifies the list of locales to install into the image during the
  2456. root filesystem construction process. The OpenEmbedded build system
  2457. automatically splits locale files, which are used for localization,
  2458. into separate packages. Setting the ``IMAGE_LINGUAS`` variable
  2459. ensures that any locale packages that correspond to packages already
  2460. selected for installation into the image are also installed. Here is
  2461. an example:
  2462. ::
  2463. IMAGE_LINGUAS = "pt-br de-de"
  2464. In this example, the build system ensures any Brazilian Portuguese
  2465. and German locale files that correspond to packages in the image are
  2466. installed (i.e. ``*-locale-pt-br`` and ``*-locale-de-de`` as well as
  2467. ``*-locale-pt`` and ``*-locale-de``, since some software packages
  2468. only provide locale files by language and not by country-specific
  2469. language).
  2470. See the :term:`GLIBC_GENERATE_LOCALES`
  2471. variable for information on generating GLIBC locales.
  2472. :term:`IMAGE_LINK_NAME`
  2473. The name of the output image symlink (which does not include
  2474. the version part as :term:`IMAGE_NAME` does). The default value
  2475. is derived using the :term:`IMAGE_BASENAME` and :term:`MACHINE`
  2476. variables:
  2477. ::
  2478. IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}-${MACHINE}"
  2479. :term:`IMAGE_MANIFEST`
  2480. The manifest file for the image. This file lists all the installed
  2481. packages that make up the image. The file contains package
  2482. information on a line-per-package basis as follows:
  2483. ::
  2484. packagename packagearch version
  2485. The :ref:`image <ref-classes-image>` class defines the manifest
  2486. file as follows:
  2487. ::
  2488. IMAGE_MANIFEST ="${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest"
  2489. The location is
  2490. derived using the :term:`DEPLOY_DIR_IMAGE`
  2491. and :term:`IMAGE_NAME` variables. You can find
  2492. information on how the image is created in the ":ref:`overview-manual/concepts:image generation`"
  2493. section in the Yocto Project Overview and Concepts Manual.
  2494. :term:`IMAGE_NAME`
  2495. The name of the output image files minus the extension. This variable
  2496. is derived using the :term:`IMAGE_BASENAME`,
  2497. :term:`MACHINE`, and :term:`IMAGE_VERSION_SUFFIX`
  2498. variables:
  2499. ::
  2500. IMAGE_NAME ?= "${IMAGE_BASENAME}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  2501. :term:`IMAGE_NAME_SUFFIX`
  2502. Suffix used for the image output file name - defaults to ``".rootfs"``
  2503. to distinguish the image file from other files created during image
  2504. building; however if this suffix is redundant or not desired you can
  2505. clear the value of this variable (set the value to ""). For example,
  2506. this is typically cleared in initramfs image recipes.
  2507. :term:`IMAGE_OVERHEAD_FACTOR`
  2508. Defines a multiplier that the build system applies to the initial
  2509. image size for cases when the multiplier times the returned disk
  2510. usage value for the image is greater than the sum of
  2511. ``IMAGE_ROOTFS_SIZE`` and ``IMAGE_ROOTFS_EXTRA_SPACE``. The result of
  2512. the multiplier applied to the initial image size creates free disk
  2513. space in the image as overhead. By default, the build process uses a
  2514. multiplier of 1.3 for this variable. This default value results in
  2515. 30% free disk space added to the image when this method is used to
  2516. determine the final generated image size. You should be aware that
  2517. post install scripts and the package management system uses disk
  2518. space inside this overhead area. Consequently, the multiplier does
  2519. not produce an image with all the theoretical free disk space. See
  2520. ``IMAGE_ROOTFS_SIZE`` for information on how the build system
  2521. determines the overall image size.
  2522. The default 30% free disk space typically gives the image enough room
  2523. to boot and allows for basic post installs while still leaving a
  2524. small amount of free disk space. If 30% free space is inadequate, you
  2525. can increase the default value. For example, the following setting
  2526. gives you 50% free space added to the image:
  2527. ::
  2528. IMAGE_OVERHEAD_FACTOR = "1.5"
  2529. Alternatively, you can ensure a specific amount of free disk space is
  2530. added to the image by using the ``IMAGE_ROOTFS_EXTRA_SPACE``
  2531. variable.
  2532. :term:`IMAGE_PKGTYPE`
  2533. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the
  2534. OpenEmbedded build system. The variable is defined appropriately by
  2535. the :ref:`package_deb <ref-classes-package_deb>`,
  2536. :ref:`package_rpm <ref-classes-package_rpm>`,
  2537. :ref:`package_ipk <ref-classes-package_ipk>`, or
  2538. :ref:`package_tar <ref-classes-package_tar>` class.
  2539. .. note::
  2540. The ``package_tar`` class is broken and is not supported. It is
  2541. recommended that you do not use it.
  2542. The :ref:`populate_sdk_* <ref-classes-populate-sdk-*>` and
  2543. :ref:`image <ref-classes-image>` classes use the ``IMAGE_PKGTYPE``
  2544. for packaging up images and SDKs.
  2545. You should not set the ``IMAGE_PKGTYPE`` manually. Rather, the
  2546. variable is set indirectly through the appropriate
  2547. :ref:`package_* <ref-classes-package>` class using the
  2548. :term:`PACKAGE_CLASSES` variable. The
  2549. OpenEmbedded build system uses the first package type (e.g. DEB, RPM,
  2550. or IPK) that appears with the variable
  2551. .. note::
  2552. Files using the ``.tar`` format are never used as a substitute
  2553. packaging format for DEB, RPM, and IPK formatted files for your image
  2554. or SDK.
  2555. :term:`IMAGE_POSTPROCESS_COMMAND`
  2556. Specifies a list of functions to call once the OpenEmbedded build
  2557. system creates the final image output files. You can specify
  2558. functions separated by semicolons:
  2559. ::
  2560. IMAGE_POSTPROCESS_COMMAND += "function; ... "
  2561. If you need to pass the root filesystem path to a command within the
  2562. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  2563. directory that becomes the root filesystem image. See the
  2564. :term:`IMAGE_ROOTFS` variable for more
  2565. information.
  2566. :term:`IMAGE_PREPROCESS_COMMAND`
  2567. Specifies a list of functions to call before the OpenEmbedded build
  2568. system creates the final image output files. You can specify
  2569. functions separated by semicolons:
  2570. ::
  2571. IMAGE_PREPROCESS_COMMAND += "function; ... "
  2572. If you need to pass the root filesystem path to a command within the
  2573. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  2574. directory that becomes the root filesystem image. See the
  2575. :term:`IMAGE_ROOTFS` variable for more
  2576. information.
  2577. :term:`IMAGE_ROOTFS`
  2578. The location of the root filesystem while it is under construction
  2579. (i.e. during the :ref:`ref-tasks-rootfs` task). This
  2580. variable is not configurable. Do not change it.
  2581. :term:`IMAGE_ROOTFS_ALIGNMENT`
  2582. Specifies the alignment for the output image file in Kbytes. If the
  2583. size of the image is not a multiple of this value, then the size is
  2584. rounded up to the nearest multiple of the value. The default value is
  2585. "1". See :term:`IMAGE_ROOTFS_SIZE` for
  2586. additional information.
  2587. :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2588. Defines additional free disk space created in the image in Kbytes. By
  2589. default, this variable is set to "0". This free disk space is added
  2590. to the image after the build system determines the image size as
  2591. described in ``IMAGE_ROOTFS_SIZE``.
  2592. This variable is particularly useful when you want to ensure that a
  2593. specific amount of free disk space is available on a device after an
  2594. image is installed and running. For example, to be sure 5 Gbytes of
  2595. free disk space is available, set the variable as follows:
  2596. ::
  2597. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  2598. For example, the Yocto Project Build Appliance specifically requests
  2599. 40 Gbytes of extra space with the line:
  2600. ::
  2601. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  2602. :term:`IMAGE_ROOTFS_SIZE`
  2603. Defines the size in Kbytes for the generated image. The OpenEmbedded
  2604. build system determines the final size for the generated image using
  2605. an algorithm that takes into account the initial disk space used for
  2606. the generated image, a requested size for the image, and requested
  2607. additional free disk space to be added to the image. Programatically,
  2608. the build system determines the final size of the generated image as
  2609. follows:
  2610. ::
  2611. if (image-du * overhead) < rootfs-size:
  2612. internal-rootfs-size = rootfs-size + xspace
  2613. else:
  2614. internal-rootfs-size = (image-du * overhead) + xspace
  2615. where:
  2616. image-du = Returned value of the du command on the image.
  2617. overhead = IMAGE_OVERHEAD_FACTOR
  2618. rootfs-size = IMAGE_ROOTFS_SIZE
  2619. internal-rootfs-size = Initial root filesystem size before any modifications.
  2620. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  2621. See the :term:`IMAGE_OVERHEAD_FACTOR`
  2622. and :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2623. variables for related information.
  2624. :term:`IMAGE_TYPEDEP`
  2625. Specifies a dependency from one image type on another. Here is an
  2626. example from the :ref:`image-live <ref-classes-image-live>` class:
  2627. ::
  2628. IMAGE_TYPEDEP_live = "ext3"
  2629. In the previous example, the variable ensures that when "live" is
  2630. listed with the :term:`IMAGE_FSTYPES` variable,
  2631. the OpenEmbedded build system produces an ``ext3`` image first since
  2632. one of the components of the live image is an ``ext3`` formatted
  2633. partition containing the root filesystem.
  2634. :term:`IMAGE_TYPES`
  2635. Specifies the complete list of supported image types by default:
  2636. - btrfs
  2637. - container
  2638. - cpio
  2639. - cpio.gz
  2640. - cpio.lz4
  2641. - cpio.lzma
  2642. - cpio.xz
  2643. - cramfs
  2644. - ext2
  2645. - ext2.bz2
  2646. - ext2.gz
  2647. - ext2.lzma
  2648. - ext3
  2649. - ext3.gz
  2650. - ext4
  2651. - ext4.gz
  2652. - f2fs
  2653. - hddimg
  2654. - iso
  2655. - jffs2
  2656. - jffs2.sum
  2657. - multiubi
  2658. - squashfs
  2659. - squashfs-lz4
  2660. - squashfs-lzo
  2661. - squashfs-xz
  2662. - tar
  2663. - tar.bz2
  2664. - tar.gz
  2665. - tar.lz4
  2666. - tar.xz
  2667. - tar.zst
  2668. - ubi
  2669. - ubifs
  2670. - wic
  2671. - wic.bz2
  2672. - wic.gz
  2673. - wic.lzma
  2674. For more information about these types of images, see
  2675. ``meta/classes/image_types*.bbclass`` in the :term:`Source Directory`.
  2676. :term:`IMAGE_VERSION_SUFFIX`
  2677. Version suffix that is part of the default :term:`IMAGE_NAME` and
  2678. :term:`KERNEL_ARTIFACT_NAME` values.
  2679. Defaults to ``"-${DATETIME}"``, however you could set this to a
  2680. version string that comes from your external build environment if
  2681. desired, and this suffix would then be used consistently across
  2682. the build artifacts.
  2683. :term:`INC_PR`
  2684. Helps define the recipe revision for recipes that share a common
  2685. ``include`` file. You can think of this variable as part of the
  2686. recipe revision as set from within an include file.
  2687. Suppose, for example, you have a set of recipes that are used across
  2688. several projects. And, within each of those recipes the revision (its
  2689. :term:`PR` value) is set accordingly. In this case, when
  2690. the revision of those recipes changes, the burden is on you to find
  2691. all those recipes and be sure that they get changed to reflect the
  2692. updated version of the recipe. In this scenario, it can get
  2693. complicated when recipes that are used in many places and provide
  2694. common functionality are upgraded to a new revision.
  2695. A more efficient way of dealing with this situation is to set the
  2696. ``INC_PR`` variable inside the ``include`` files that the recipes
  2697. share and then expand the ``INC_PR`` variable within the recipes to
  2698. help define the recipe revision.
  2699. The following provides an example that shows how to use the
  2700. ``INC_PR`` variable given a common ``include`` file that defines the
  2701. variable. Once the variable is defined in the ``include`` file, you
  2702. can use the variable to set the ``PR`` values in each recipe. You
  2703. will notice that when you set a recipe's ``PR`` you can provide more
  2704. granular revisioning by appending values to the ``INC_PR`` variable:
  2705. ::
  2706. recipes-graphics/xorg-font/xorg-font-common.inc:INC_PR = "r2"
  2707. recipes-graphics/xorg-font/encodings_1.0.4.bb:PR = "${INC_PR}.1"
  2708. recipes-graphics/xorg-font/font-util_1.3.0.bb:PR = "${INC_PR}.0"
  2709. recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
  2710. The
  2711. first line of the example establishes the baseline revision to be
  2712. used for all recipes that use the ``include`` file. The remaining
  2713. lines in the example are from individual recipes and show how the
  2714. ``PR`` value is set.
  2715. :term:`INCOMPATIBLE_LICENSE`
  2716. Specifies a space-separated list of license names (as they would
  2717. appear in :term:`LICENSE`) that should be excluded
  2718. from the build. Recipes that provide no alternatives to listed
  2719. incompatible licenses are not built. Packages that are individually
  2720. licensed with the specified incompatible licenses will be deleted.
  2721. .. note::
  2722. This functionality is only regularly tested using the following
  2723. setting:
  2724. ::
  2725. INCOMPATIBLE_LICENSE = "GPL-3.0 LGPL-3.0 AGPL-3.0"
  2726. Although you can use other settings, you might be required to
  2727. remove dependencies on or provide alternatives to components that
  2728. are required to produce a functional system image.
  2729. .. note::
  2730. It is possible to define a list of licenses that are allowed to be
  2731. used instead of the licenses that are excluded. To do this, define
  2732. a variable ``COMPATIBLE_LICENSES`` with the names of the licenses
  2733. that are allowed. Then define ``INCOMPATIBLE_LICENSE`` as:
  2734. ::
  2735. INCOMPATIBLE_LICENSE = "${@' '.join(sorted(set(d.getVar('AVAILABLE_LICENSES').split()) - set(d.getVar('COMPATIBLE_LICENSES').split())))}"
  2736. This will result in ``INCOMPATIBLE_LICENSE`` containing the names of
  2737. all licenses from :term:`AVAILABLE_LICENSES` except the ones specified
  2738. in ``COMPATIBLE_LICENSES`` , thus only allowing the latter licenses to
  2739. be used.
  2740. :term:`INHERIT`
  2741. Causes the named class or classes to be inherited globally. Anonymous
  2742. functions in the class or classes are not executed for the base
  2743. configuration and in each individual recipe. The OpenEmbedded build
  2744. system ignores changes to ``INHERIT`` in individual recipes.
  2745. For more information on ``INHERIT``, see the
  2746. :ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`"
  2747. section in the Bitbake User Manual.
  2748. :term:`INHERIT_DISTRO`
  2749. Lists classes that will be inherited at the distribution level. It is
  2750. unlikely that you want to edit this variable.
  2751. The default value of the variable is set as follows in the
  2752. ``meta/conf/distro/defaultsetup.conf`` file:
  2753. ::
  2754. INHERIT_DISTRO ?= "debian devshell sstate license"
  2755. :term:`INHIBIT_DEFAULT_DEPS`
  2756. Prevents the default dependencies, namely the C compiler and standard
  2757. C library (libc), from being added to :term:`DEPENDS`.
  2758. This variable is usually used within recipes that do not require any
  2759. compilation using the C compiler.
  2760. Set the variable to "1" to prevent the default dependencies from
  2761. being added.
  2762. :term:`INHIBIT_PACKAGE_DEBUG_SPLIT`
  2763. Prevents the OpenEmbedded build system from splitting out debug
  2764. information during packaging. By default, the build system splits out
  2765. debugging information during the
  2766. :ref:`ref-tasks-package` task. For more information on
  2767. how debug information is split out, see the
  2768. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  2769. variable.
  2770. To prevent the build system from splitting out debug information
  2771. during packaging, set the ``INHIBIT_PACKAGE_DEBUG_SPLIT`` variable as
  2772. follows:
  2773. ::
  2774. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  2775. :term:`INHIBIT_PACKAGE_STRIP`
  2776. If set to "1", causes the build to not strip binaries in resulting
  2777. packages and prevents the ``-dbg`` package from containing the source
  2778. files.
  2779. By default, the OpenEmbedded build system strips binaries and puts
  2780. the debugging symbols into ``${``\ :term:`PN`\ ``}-dbg``.
  2781. Consequently, you should not set ``INHIBIT_PACKAGE_STRIP`` when you
  2782. plan to debug in general.
  2783. :term:`INHIBIT_SYSROOT_STRIP`
  2784. If set to "1", causes the build to not strip binaries in the
  2785. resulting sysroot.
  2786. By default, the OpenEmbedded build system strips binaries in the
  2787. resulting sysroot. When you specifically set the
  2788. ``INHIBIT_SYSROOT_STRIP`` variable to "1" in your recipe, you inhibit
  2789. this stripping.
  2790. If you want to use this variable, include the
  2791. :ref:`staging <ref-classes-staging>` class. This class uses a
  2792. ``sys_strip()`` function to test for the variable and acts
  2793. accordingly.
  2794. .. note::
  2795. Use of the ``INHIBIT_SYSROOT_STRIP`` variable occurs in rare and
  2796. special circumstances. For example, suppose you are building
  2797. bare-metal firmware by using an external GCC toolchain. Furthermore,
  2798. even if the toolchain's binaries are strippable, other files exist
  2799. that are needed for the build that are not strippable.
  2800. :term:`INITRAMFS_FSTYPES`
  2801. Defines the format for the output image of an initial RAM filesystem
  2802. (initramfs), which is used during boot. Supported formats are the
  2803. same as those supported by the
  2804. :term:`IMAGE_FSTYPES` variable.
  2805. The default value of this variable, which is set in the
  2806. ``meta/conf/bitbake.conf`` configuration file in the
  2807. :term:`Source Directory`, is "cpio.gz". The Linux kernel's
  2808. initramfs mechanism, as opposed to the initial RAM filesystem
  2809. `initrd <https://en.wikipedia.org/wiki/Initrd>`__ mechanism, expects
  2810. an optionally compressed cpio archive.
  2811. :term:`INITRAMFS_IMAGE`
  2812. Specifies the :term:`PROVIDES` name of an image
  2813. recipe that is used to build an initial RAM filesystem (initramfs)
  2814. image. In other words, the ``INITRAMFS_IMAGE`` variable causes an
  2815. additional recipe to be built as a dependency to whatever root
  2816. filesystem recipe you might be using (e.g. ``core-image-sato``). The
  2817. initramfs image recipe you provide should set
  2818. :term:`IMAGE_FSTYPES` to
  2819. :term:`INITRAMFS_FSTYPES`.
  2820. An initramfs image provides a temporary root filesystem used for
  2821. early system initialization (e.g. loading of modules needed to locate
  2822. and mount the "real" root filesystem).
  2823. .. note::
  2824. See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb``
  2825. recipe in the :term:`Source Directory`
  2826. for an example initramfs recipe. To select this sample recipe as
  2827. the one built to provide the initramfs image, set ``INITRAMFS_IMAGE``
  2828. to "core-image-minimal-initramfs".
  2829. You can also find more information by referencing the
  2830. ``meta-poky/conf/local.conf.sample.extended`` configuration file in
  2831. the Source Directory, the :ref:`image <ref-classes-image>` class,
  2832. and the :ref:`kernel <ref-classes-kernel>` class to see how to use
  2833. the ``INITRAMFS_IMAGE`` variable.
  2834. If ``INITRAMFS_IMAGE`` is empty, which is the default, then no
  2835. initramfs image is built.
  2836. For more information, you can also see the
  2837. :term:`INITRAMFS_IMAGE_BUNDLE`
  2838. variable, which allows the generated image to be bundled inside the
  2839. kernel image. Additionally, for information on creating an initramfs
  2840. image, see the ":ref:`dev-manual/common-tasks:building an initial ram filesystem (initramfs) image`" section
  2841. in the Yocto Project Development Tasks Manual.
  2842. :term:`INITRAMFS_IMAGE_BUNDLE`
  2843. Controls whether or not the image recipe specified by
  2844. :term:`INITRAMFS_IMAGE` is run through an
  2845. extra pass
  2846. (:ref:`ref-tasks-bundle_initramfs`) during
  2847. kernel compilation in order to build a single binary that contains
  2848. both the kernel image and the initial RAM filesystem (initramfs)
  2849. image. This makes use of the
  2850. :term:`CONFIG_INITRAMFS_SOURCE` kernel
  2851. feature.
  2852. .. note::
  2853. Using an extra compilation pass to bundle the initramfs avoids a
  2854. circular dependency between the kernel recipe and the initramfs
  2855. recipe should the initramfs include kernel modules. Should that be
  2856. the case, the initramfs recipe depends on the kernel for the
  2857. kernel modules, and the kernel depends on the initramfs recipe
  2858. since the initramfs is bundled inside the kernel image.
  2859. The combined binary is deposited into the ``tmp/deploy`` directory,
  2860. which is part of the :term:`Build Directory`.
  2861. Setting the variable to "1" in a configuration file causes the
  2862. OpenEmbedded build system to generate a kernel image with the
  2863. initramfs specified in ``INITRAMFS_IMAGE`` bundled within:
  2864. ::
  2865. INITRAMFS_IMAGE_BUNDLE = "1"
  2866. By default, the
  2867. :ref:`kernel <ref-classes-kernel>` class sets this variable to a
  2868. null string as follows:
  2869. ::
  2870. INITRAMFS_IMAGE_BUNDLE ?= ""
  2871. .. note::
  2872. You must set the ``INITRAMFS_IMAGE_BUNDLE`` variable in a
  2873. configuration file. You cannot set the variable in a recipe file.
  2874. See the
  2875. :yocto_git:`local.conf.sample.extended </poky/tree/meta-poky/conf/local.conf.sample.extended>`
  2876. file for additional information. Also, for information on creating an
  2877. initramfs, see the ":ref:`dev-manual/common-tasks:building an initial ram filesystem (initramfs) image`" section
  2878. in the Yocto Project Development Tasks Manual.
  2879. :term:`INITRAMFS_LINK_NAME`
  2880. The link name of the initial RAM filesystem image. This variable is
  2881. set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  2882. follows:
  2883. ::
  2884. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  2885. The value of the
  2886. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  2887. file, has the following value:
  2888. ::
  2889. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  2890. See the :term:`MACHINE` variable for additional
  2891. information.
  2892. :term:`INITRAMFS_NAME`
  2893. The base name of the initial RAM filesystem image. This variable is
  2894. set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  2895. follows:
  2896. ::
  2897. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  2898. The value of the :term:`KERNEL_ARTIFACT_NAME`
  2899. variable, which is set in the same file, has the following value:
  2900. ::
  2901. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  2902. :term:`INITRD`
  2903. Indicates list of filesystem images to concatenate and use as an
  2904. initial RAM disk (``initrd``).
  2905. The ``INITRD`` variable is an optional variable used with the
  2906. :ref:`image-live <ref-classes-image-live>` class.
  2907. :term:`INITRD_IMAGE`
  2908. When building a "live" bootable image (i.e. when
  2909. :term:`IMAGE_FSTYPES` contains "live"),
  2910. ``INITRD_IMAGE`` specifies the image recipe that should be built to
  2911. provide the initial RAM disk image. The default value is
  2912. "core-image-minimal-initramfs".
  2913. See the :ref:`image-live <ref-classes-image-live>` class for more
  2914. information.
  2915. :term:`INITSCRIPT_NAME`
  2916. The filename of the initialization script as installed to
  2917. ``${sysconfdir}/init.d``.
  2918. This variable is used in recipes when using ``update-rc.d.bbclass``.
  2919. The variable is mandatory.
  2920. :term:`INITSCRIPT_PACKAGES`
  2921. A list of the packages that contain initscripts. If multiple packages
  2922. are specified, you need to append the package name to the other
  2923. ``INITSCRIPT_*`` as an override.
  2924. This variable is used in recipes when using ``update-rc.d.bbclass``.
  2925. The variable is optional and defaults to the :term:`PN`
  2926. variable.
  2927. :term:`INITSCRIPT_PARAMS`
  2928. Specifies the options to pass to ``update-rc.d``. Here is an example:
  2929. ::
  2930. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  2931. In this example, the script has a runlevel of 99, starts the script
  2932. in initlevels 2 and 5, and stops the script in levels 0, 1 and 6.
  2933. The variable's default value is "defaults", which is set in the
  2934. :ref:`update-rc.d <ref-classes-update-rc.d>` class.
  2935. The value in ``INITSCRIPT_PARAMS`` is passed through to the
  2936. ``update-rc.d`` command. For more information on valid parameters,
  2937. please see the ``update-rc.d`` manual page at
  2938. https://manpages.debian.org/buster/init-system-helpers/update-rc.d.8.en.html
  2939. :term:`INSANE_SKIP`
  2940. Specifies the QA checks to skip for a specific package within a
  2941. recipe. For example, to skip the check for symbolic link ``.so``
  2942. files in the main package of a recipe, add the following to the
  2943. recipe. The package name override must be used, which in this example
  2944. is ``${PN}``:
  2945. ::
  2946. INSANE_SKIP_${PN} += "dev-so"
  2947. See the ":ref:`insane.bbclass <ref-classes-insane>`" section for a
  2948. list of the valid QA checks you can specify using this variable.
  2949. :term:`INSTALL_TIMEZONE_FILE`
  2950. By default, the ``tzdata`` recipe packages an ``/etc/timezone`` file.
  2951. Set the ``INSTALL_TIMEZONE_FILE`` variable to "0" at the
  2952. configuration level to disable this behavior.
  2953. :term:`IPK_FEED_URIS`
  2954. When the IPK backend is in use and package management is enabled on
  2955. the target, you can use this variable to set up ``opkg`` in the
  2956. target image to point to package feeds on a nominated server. Once
  2957. the feed is established, you can perform installations or upgrades
  2958. using the package manager at runtime.
  2959. :term:`KARCH`
  2960. Defines the kernel architecture used when assembling the
  2961. configuration. Architectures supported for this release are:
  2962. - powerpc
  2963. - i386
  2964. - x86_64
  2965. - arm
  2966. - qemu
  2967. - mips
  2968. You define the ``KARCH`` variable in the :ref:`kernel-dev/advanced:bsp descriptions`.
  2969. :term:`KBRANCH`
  2970. A regular expression used by the build process to explicitly identify
  2971. the kernel branch that is validated, patched, and configured during a
  2972. build. You must set this variable to ensure the exact kernel branch
  2973. you want is being used by the build process.
  2974. Values for this variable are set in the kernel's recipe file and the
  2975. kernel's append file. For example, if you are using the
  2976. ``linux-yocto_4.12`` kernel, the kernel recipe file is the
  2977. ``meta/recipes-kernel/linux/linux-yocto_4.12.bb`` file. ``KBRANCH``
  2978. is set as follows in that kernel recipe file:
  2979. ::
  2980. KBRANCH ?= "standard/base"
  2981. This variable is also used from the kernel's append file to identify
  2982. the kernel branch specific to a particular machine or target
  2983. hardware. Continuing with the previous kernel example, the kernel's
  2984. append file (i.e. ``linux-yocto_4.12.bbappend``) is located in the
  2985. BSP layer for a given machine. For example, the append file for the
  2986. Beaglebone, EdgeRouter, and generic versions of both 32 and 64-bit IA
  2987. machines (``meta-yocto-bsp``) is named
  2988. ``meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.12.bbappend``.
  2989. Here are the related statements from that append file:
  2990. ::
  2991. KBRANCH_genericx86 = "standard/base"
  2992. KBRANCH_genericx86-64 = "standard/base"
  2993. KBRANCH_edgerouter = "standard/edgerouter"
  2994. KBRANCH_beaglebone = "standard/beaglebone"
  2995. The ``KBRANCH`` statements
  2996. identify the kernel branch to use when building for each supported
  2997. BSP.
  2998. :term:`KBUILD_DEFCONFIG`
  2999. When used with the :ref:`kernel-yocto <ref-classes-kernel-yocto>`
  3000. class, specifies an "in-tree" kernel configuration file for use
  3001. during a kernel build.
  3002. Typically, when using a ``defconfig`` to configure a kernel during a
  3003. build, you place the file in your layer in the same manner as you
  3004. would place patch files and configuration fragment files (i.e.
  3005. "out-of-tree"). However, if you want to use a ``defconfig`` file that
  3006. is part of the kernel tree (i.e. "in-tree"), you can use the
  3007. ``KBUILD_DEFCONFIG`` variable and append the
  3008. :term:`KMACHINE` variable to point to the
  3009. ``defconfig`` file.
  3010. To use the variable, set it in the append file for your kernel recipe
  3011. using the following form:
  3012. ::
  3013. KBUILD_DEFCONFIG_KMACHINE ?= defconfig_file
  3014. Here is an example from a "raspberrypi2" ``KMACHINE`` build that uses
  3015. a ``defconfig`` file named "bcm2709_defconfig":
  3016. ::
  3017. KBUILD_DEFCONFIG_raspberrypi2 = "bcm2709_defconfig"
  3018. As an alternative, you can use the following within your append file:
  3019. ::
  3020. KBUILD_DEFCONFIG_pn-linux-yocto ?= defconfig_file
  3021. For more
  3022. information on how to use the ``KBUILD_DEFCONFIG`` variable, see the
  3023. ":ref:`kernel-dev/common:using an "in-tree" \`\`defconfig\`\` file`"
  3024. section in the Yocto Project Linux Kernel Development Manual.
  3025. :term:`KERNEL_ALT_IMAGETYPE`
  3026. Specifies an alternate kernel image type for creation in addition to
  3027. the kernel image type specified using the
  3028. :term:`KERNEL_IMAGETYPE` variable.
  3029. :term:`KERNEL_ARTIFACT_NAME`
  3030. Specifies the name of all of the build artifacts. You can change the
  3031. name of the artifacts by changing the ``KERNEL_ARTIFACT_NAME``
  3032. variable.
  3033. The value of ``KERNEL_ARTIFACT_NAME``, which is set in the
  3034. ``meta/classes/kernel-artifact-names.bbclass`` file, has the
  3035. following default value:
  3036. ::
  3037. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3038. See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`MACHINE`
  3039. and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
  3040. :term:`KERNEL_CLASSES`
  3041. A list of classes defining kernel image types that the
  3042. :ref:`kernel <ref-classes-kernel>` class should inherit. You
  3043. typically append this variable to enable extended image types. An
  3044. example is the "kernel-fitimage", which enables fitImage support and
  3045. resides in ``meta/classes/kernel-fitimage.bbclass``. You can register
  3046. custom kernel image types with the ``kernel`` class using this
  3047. variable.
  3048. :term:`KERNEL_DEVICETREE`
  3049. Specifies the name of the generated Linux kernel device tree (i.e.
  3050. the ``.dtb``) file.
  3051. .. note::
  3052. Legacy support exists for specifying the full path to the device
  3053. tree. However, providing just the ``.dtb`` file is preferred.
  3054. In order to use this variable, the
  3055. :ref:`kernel-devicetree <ref-classes-kernel-devicetree>` class must
  3056. be inherited.
  3057. :term:`KERNEL_DTB_LINK_NAME`
  3058. The link name of the kernel device tree binary (DTB). This variable
  3059. is set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  3060. follows:
  3061. ::
  3062. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3063. The
  3064. value of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in
  3065. the same file, has the following value:
  3066. ::
  3067. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3068. See the :term:`MACHINE` variable for additional
  3069. information.
  3070. :term:`KERNEL_DTB_NAME`
  3071. The base name of the kernel device tree binary (DTB). This variable
  3072. is set in the ``meta/classes/kernel-artifact-names.bbclass`` file as
  3073. follows:
  3074. ::
  3075. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3076. The value of the :term:`KERNEL_ARTIFACT_NAME`
  3077. variable, which is set in the same file, has the following value:
  3078. ::
  3079. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3080. :term:`KERNEL_DTC_FLAGS`
  3081. Specifies the ``dtc`` flags that are passed to the Linux kernel build
  3082. system when generating the device trees (via ``DTC_FLAGS`` environment
  3083. variable).
  3084. In order to use this variable, the
  3085. :ref:`kernel-devicetree <ref-classes-kernel-devicetree>` class must
  3086. be inherited.
  3087. :term:`KERNEL_EXTRA_ARGS`
  3088. Specifies additional ``make`` command-line arguments the OpenEmbedded
  3089. build system passes on when compiling the kernel.
  3090. :term:`KERNEL_FEATURES`
  3091. Includes additional kernel metadata. In the OpenEmbedded build
  3092. system, the default Board Support Packages (BSPs)
  3093. :term:`Metadata` is provided through the
  3094. :term:`KMACHINE` and :term:`KBRANCH`
  3095. variables. You can use the ``KERNEL_FEATURES`` variable from within
  3096. the kernel recipe or kernel append file to further add metadata for
  3097. all BSPs or specific BSPs.
  3098. The metadata you add through this variable includes config fragments
  3099. and features descriptions, which usually includes patches as well as
  3100. config fragments. You typically override the ``KERNEL_FEATURES``
  3101. variable for a specific machine. In this way, you can provide
  3102. validated, but optional, sets of kernel configurations and features.
  3103. For example, the following example from the ``linux-yocto-rt_4.12``
  3104. kernel recipe adds "netfilter" and "taskstats" features to all BSPs
  3105. as well as "virtio" configurations to all QEMU machines. The last two
  3106. statements add specific configurations to targeted machine types:
  3107. ::
  3108. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  3109. KERNEL_FEATURES_append = "${KERNEL_EXTRA_FEATURES}"
  3110. KERNEL_FEATURES_append_qemuall = "cfg/virtio.scc"
  3111. KERNEL_FEATURES_append_qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  3112. KERNEL_FEATURES_append_qemux86-64 = "cfg/sound.scc"
  3113. :term:`KERNEL_FIT_LINK_NAME`
  3114. The link name of the kernel flattened image tree (FIT) image. This
  3115. variable is set in the ``meta/classes/kernel-artifact-names.bbclass``
  3116. file as follows:
  3117. ::
  3118. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3119. The value of the
  3120. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3121. file, has the following value:
  3122. ::
  3123. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3124. See the :term:`MACHINE` variable for additional
  3125. information.
  3126. :term:`KERNEL_FIT_NAME`
  3127. The base name of the kernel flattened image tree (FIT) image. This
  3128. variable is set in the ``meta/classes/kernel-artifact-names.bbclass``
  3129. file as follows:
  3130. ::
  3131. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3132. The value of the :term:`KERNEL_ARTIFACT_NAME`
  3133. variable, which is set in the same file, has the following value:
  3134. ::
  3135. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3136. :term:`KERNEL_IMAGE_LINK_NAME`
  3137. The link name for the kernel image. This variable is set in the
  3138. ``meta/classes/kernel-artifact-names.bbclass`` file as follows:
  3139. ::
  3140. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3141. The value of
  3142. the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3143. file, has the following value:
  3144. ::
  3145. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3146. See the :term:`MACHINE` variable for additional
  3147. information.
  3148. :term:`KERNEL_IMAGE_MAXSIZE`
  3149. Specifies the maximum size of the kernel image file in kilobytes. If
  3150. ``KERNEL_IMAGE_MAXSIZE`` is set, the size of the kernel image file is
  3151. checked against the set value during the
  3152. :ref:`ref-tasks-sizecheck` task. The task fails if
  3153. the kernel image file is larger than the setting.
  3154. ``KERNEL_IMAGE_MAXSIZE`` is useful for target devices that have a
  3155. limited amount of space in which the kernel image must be stored.
  3156. By default, this variable is not set, which means the size of the
  3157. kernel image is not checked.
  3158. :term:`KERNEL_IMAGE_NAME`
  3159. The base name of the kernel image. This variable is set in the
  3160. ``meta/classes/kernel-artifact-names.bbclass`` file as follows:
  3161. ::
  3162. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3163. The value of the
  3164. :term:`KERNEL_ARTIFACT_NAME` variable,
  3165. which is set in the same file, has the following value:
  3166. ::
  3167. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3168. :term:`KERNEL_IMAGETYPE`
  3169. The type of kernel to build for a device, usually set by the machine
  3170. configuration files and defaults to "zImage". This variable is used
  3171. when building the kernel and is passed to ``make`` as the target to
  3172. build.
  3173. If you want to build an alternate kernel image type in addition to that
  3174. specified by ``KERNEL_IMAGETYPE``, use the :term:`KERNEL_ALT_IMAGETYPE`
  3175. variable.
  3176. :term:`KERNEL_MODULE_AUTOLOAD`
  3177. Lists kernel modules that need to be auto-loaded during boot.
  3178. .. note::
  3179. This variable replaces the deprecated :term:`module_autoload`
  3180. variable.
  3181. You can use the ``KERNEL_MODULE_AUTOLOAD`` variable anywhere that it
  3182. can be recognized by the kernel recipe or by an out-of-tree kernel
  3183. module recipe (e.g. a machine configuration file, a distribution
  3184. configuration file, an append file for the recipe, or the recipe
  3185. itself).
  3186. Specify it as follows:
  3187. ::
  3188. KERNEL_MODULE_AUTOLOAD += "module_name1 module_name2 module_name3"
  3189. Including ``KERNEL_MODULE_AUTOLOAD`` causes the OpenEmbedded build
  3190. system to populate the ``/etc/modules-load.d/modname.conf`` file with
  3191. the list of modules to be auto-loaded on boot. The modules appear
  3192. one-per-line in the file. Here is an example of the most common use
  3193. case:
  3194. ::
  3195. KERNEL_MODULE_AUTOLOAD += "module_name"
  3196. For information on how to populate the ``modname.conf`` file with
  3197. ``modprobe.d`` syntax lines, see the :term:`KERNEL_MODULE_PROBECONF` variable.
  3198. :term:`KERNEL_MODULE_PROBECONF`
  3199. Provides a list of modules for which the OpenEmbedded build system
  3200. expects to find ``module_conf_``\ modname values that specify
  3201. configuration for each of the modules. For information on how to
  3202. provide those module configurations, see the
  3203. :term:`module_conf_* <module_conf>` variable.
  3204. :term:`KERNEL_PATH`
  3205. The location of the kernel sources. This variable is set to the value
  3206. of the :term:`STAGING_KERNEL_DIR` within
  3207. the :ref:`module <ref-classes-module>` class. For information on
  3208. how this variable is used, see the
  3209. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3210. section in the Yocto Project Linux Kernel Development Manual.
  3211. To help maximize compatibility with out-of-tree drivers used to build
  3212. modules, the OpenEmbedded build system also recognizes and uses the
  3213. :term:`KERNEL_SRC` variable, which is identical to
  3214. the ``KERNEL_PATH`` variable. Both variables are common variables
  3215. used by external Makefiles to point to the kernel source directory.
  3216. :term:`KERNEL_SRC`
  3217. The location of the kernel sources. This variable is set to the value
  3218. of the :term:`STAGING_KERNEL_DIR` within
  3219. the :ref:`module <ref-classes-module>` class. For information on
  3220. how this variable is used, see the
  3221. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3222. section in the Yocto Project Linux Kernel Development Manual.
  3223. To help maximize compatibility with out-of-tree drivers used to build
  3224. modules, the OpenEmbedded build system also recognizes and uses the
  3225. :term:`KERNEL_PATH` variable, which is identical
  3226. to the ``KERNEL_SRC`` variable. Both variables are common variables
  3227. used by external Makefiles to point to the kernel source directory.
  3228. :term:`KERNEL_VERSION`
  3229. Specifies the version of the kernel as extracted from ``version.h``
  3230. or ``utsrelease.h`` within the kernel sources. Effects of setting
  3231. this variable do not take affect until the kernel has been
  3232. configured. Consequently, attempting to refer to this variable in
  3233. contexts prior to configuration will not work.
  3234. :term:`KERNELDEPMODDEPEND`
  3235. Specifies whether the data referenced through
  3236. :term:`PKGDATA_DIR` is needed or not. The
  3237. ``KERNELDEPMODDEPEND`` does not control whether or not that data
  3238. exists, but simply whether or not it is used. If you do not need to
  3239. use the data, set the ``KERNELDEPMODDEPEND`` variable in your
  3240. ``initramfs`` recipe. Setting the variable there when the data is not
  3241. needed avoids a potential dependency loop.
  3242. :term:`KFEATURE_DESCRIPTION`
  3243. Provides a short description of a configuration fragment. You use
  3244. this variable in the ``.scc`` file that describes a configuration
  3245. fragment file. Here is the variable used in a file named ``smp.scc``
  3246. to describe SMP being enabled:
  3247. ::
  3248. define KFEATURE_DESCRIPTION "Enable SMP"
  3249. :term:`KMACHINE`
  3250. The machine as known by the kernel. Sometimes the machine name used
  3251. by the kernel does not match the machine name used by the
  3252. OpenEmbedded build system. For example, the machine name that the
  3253. OpenEmbedded build system understands as ``core2-32-intel-common``
  3254. goes by a different name in the Linux Yocto kernel. The kernel
  3255. understands that machine as ``intel-core2-32``. For cases like these,
  3256. the ``KMACHINE`` variable maps the kernel machine name to the
  3257. OpenEmbedded build system machine name.
  3258. These mappings between different names occur in the Yocto Linux
  3259. Kernel's ``meta`` branch. As an example take a look in the
  3260. ``common/recipes-kernel/linux/linux-yocto_3.19.bbappend`` file:
  3261. ::
  3262. LINUX_VERSION_core2-32-intel-common = "3.19.0"
  3263. COMPATIBLE_MACHINE_core2-32-intel-common = "${MACHINE}"
  3264. SRCREV_meta_core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  3265. SRCREV_machine_core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  3266. KMACHINE_core2-32-intel-common = "intel-core2-32"
  3267. KBRANCH_core2-32-intel-common = "standard/base"
  3268. KERNEL_FEATURES_append_core2-32-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}"
  3269. The ``KMACHINE`` statement says
  3270. that the kernel understands the machine name as "intel-core2-32".
  3271. However, the OpenEmbedded build system understands the machine as
  3272. "core2-32-intel-common".
  3273. :term:`KTYPE`
  3274. Defines the kernel type to be used in assembling the configuration.
  3275. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3276. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3277. section in the
  3278. Yocto Project Linux Kernel Development Manual for more information on
  3279. kernel types.
  3280. You define the ``KTYPE`` variable in the
  3281. :ref:`kernel-dev/advanced:bsp descriptions`. The
  3282. value you use must match the value used for the
  3283. :term:`LINUX_KERNEL_TYPE` value used by the
  3284. kernel recipe.
  3285. :term:`LABELS`
  3286. Provides a list of targets for automatic configuration.
  3287. See the :ref:`grub-efi <ref-classes-grub-efi>` class for more
  3288. information on how this variable is used.
  3289. :term:`LAYERDEPENDS`
  3290. Lists the layers, separated by spaces, on which this recipe depends.
  3291. Optionally, you can specify a specific layer version for a dependency
  3292. by adding it to the end of the layer name. Here is an example:
  3293. ::
  3294. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  3295. In this previous example,
  3296. version 3 of "anotherlayer" is compared against
  3297. :term:`LAYERVERSION`\ ``_anotherlayer``.
  3298. An error is produced if any dependency is missing or the version
  3299. numbers (if specified) do not match exactly. This variable is used in
  3300. the ``conf/layer.conf`` file and must be suffixed with the name of
  3301. the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
  3302. :term:`LAYERDIR`
  3303. When used inside the ``layer.conf`` configuration file, this variable
  3304. provides the path of the current layer. This variable is not
  3305. available outside of ``layer.conf`` and references are expanded
  3306. immediately when parsing of the file completes.
  3307. :term:`LAYERRECOMMENDS`
  3308. Lists the layers, separated by spaces, recommended for use with this
  3309. layer.
  3310. Optionally, you can specify a specific layer version for a
  3311. recommendation by adding the version to the end of the layer name.
  3312. Here is an example:
  3313. ::
  3314. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  3315. In this previous example, version 3 of "anotherlayer" is compared
  3316. against ``LAYERVERSION_anotherlayer``.
  3317. This variable is used in the ``conf/layer.conf`` file and must be
  3318. suffixed with the name of the specific layer (e.g.
  3319. ``LAYERRECOMMENDS_mylayer``).
  3320. :term:`LAYERSERIES_COMPAT`
  3321. Lists the versions of the :term:`OpenEmbedded-Core (OE-Core)` for which
  3322. a layer is compatible. Using the ``LAYERSERIES_COMPAT`` variable
  3323. allows the layer maintainer to indicate which combinations of the
  3324. layer and OE-Core can be expected to work. The variable gives the
  3325. system a way to detect when a layer has not been tested with new
  3326. releases of OE-Core (e.g. the layer is not maintained).
  3327. To specify the OE-Core versions for which a layer is compatible, use
  3328. this variable in your layer's ``conf/layer.conf`` configuration file.
  3329. For the list, use the Yocto Project
  3330. :yocto_wiki:`Release Name </Releases>` (e.g.
  3331. &DISTRO_NAME_NO_CAP;). To specify multiple OE-Core versions for the
  3332. layer, use a space-separated list:
  3333. ::
  3334. LAYERSERIES_COMPAT_layer_root_name = "&DISTRO_NAME_NO_CAP; &DISTRO_NAME_NO_CAP_MINUS_ONE;"
  3335. .. note::
  3336. Setting ``LAYERSERIES_COMPAT`` is required by the Yocto Project
  3337. Compatible version 2 standard.
  3338. The OpenEmbedded build system produces a warning if the variable
  3339. is not set for any given layer.
  3340. See the ":ref:`dev-manual/common-tasks:creating your own layer`"
  3341. section in the Yocto Project Development Tasks Manual.
  3342. :term:`LAYERVERSION`
  3343. Optionally specifies the version of a layer as a single number. You
  3344. can use this within :term:`LAYERDEPENDS` for
  3345. another layer in order to depend on a specific version of the layer.
  3346. This variable is used in the ``conf/layer.conf`` file and must be
  3347. suffixed with the name of the specific layer (e.g.
  3348. ``LAYERVERSION_mylayer``).
  3349. :term:`LD`
  3350. The minimal command and arguments used to run the linker.
  3351. :term:`LDFLAGS`
  3352. Specifies the flags to pass to the linker. This variable is exported
  3353. to an environment variable and thus made visible to the software
  3354. being built during the compilation step.
  3355. Default initialization for ``LDFLAGS`` varies depending on what is
  3356. being built:
  3357. - :term:`TARGET_LDFLAGS` when building for the
  3358. target
  3359. - :term:`BUILD_LDFLAGS` when building for the
  3360. build host (i.e. ``-native``)
  3361. - :term:`BUILDSDK_LDFLAGS` when building for
  3362. an SDK (i.e. ``nativesdk-``)
  3363. :term:`LEAD_SONAME`
  3364. Specifies the lead (or primary) compiled library file (i.e. ``.so``)
  3365. that the :ref:`debian <ref-classes-debian>` class applies its
  3366. naming policy to given a recipe that packages multiple libraries.
  3367. This variable works in conjunction with the ``debian`` class.
  3368. :term:`LIC_FILES_CHKSUM`
  3369. Checksums of the license text in the recipe source code.
  3370. This variable tracks changes in license text of the source code
  3371. files. If the license text is changed, it will trigger a build
  3372. failure, which gives the developer an opportunity to review any
  3373. license change.
  3374. This variable must be defined for all recipes (unless
  3375. :term:`LICENSE` is set to "CLOSED").
  3376. For more information, see the ":ref:`dev-manual/common-tasks:tracking license changes`"
  3377. section in the Yocto Project Development Tasks Manual.
  3378. :term:`LICENSE`
  3379. The list of source licenses for the recipe. Follow these rules:
  3380. - Do not use spaces within individual license names.
  3381. - Separate license names using \| (pipe) when there is a choice
  3382. between licenses.
  3383. - Separate license names using & (ampersand) when multiple licenses
  3384. exist that cover different parts of the source.
  3385. - You can use spaces between license names.
  3386. - For standard licenses, use the names of the files in
  3387. ``meta/files/common-licenses/`` or the
  3388. :term:`SPDXLICENSEMAP` flag names defined in
  3389. ``meta/conf/licenses.conf``.
  3390. Here are some examples:
  3391. ::
  3392. LICENSE = "LGPLv2.1 | GPLv3"
  3393. LICENSE = "MPL-1 & LGPLv2.1"
  3394. LICENSE = "GPLv2+"
  3395. The first example is from the
  3396. recipes for Qt, which the user may choose to distribute under either
  3397. the LGPL version 2.1 or GPL version 3. The second example is from
  3398. Cairo where two licenses cover different parts of the source code.
  3399. The final example is from ``sysstat``, which presents a single
  3400. license.
  3401. You can also specify licenses on a per-package basis to handle
  3402. situations where components of the output have different licenses.
  3403. For example, a piece of software whose code is licensed under GPLv2
  3404. but has accompanying documentation licensed under the GNU Free
  3405. Documentation License 1.2 could be specified as follows:
  3406. ::
  3407. LICENSE = "GFDL-1.2 & GPLv2"
  3408. LICENSE_${PN} = "GPLv2"
  3409. LICENSE_${PN}-doc = "GFDL-1.2"
  3410. :term:`LICENSE_CREATE_PACKAGE`
  3411. Setting ``LICENSE_CREATE_PACKAGE`` to "1" causes the OpenEmbedded
  3412. build system to create an extra package (i.e.
  3413. ``${``\ :term:`PN`\ ``}-lic``) for each recipe and to add
  3414. those packages to the
  3415. :term:`RRECOMMENDS`\ ``_${PN}``.
  3416. The ``${PN}-lic`` package installs a directory in
  3417. ``/usr/share/licenses`` named ``${PN}``, which is the recipe's base
  3418. name, and installs files in that directory that contain license and
  3419. copyright information (i.e. copies of the appropriate license files
  3420. from ``meta/common-licenses`` that match the licenses specified in
  3421. the :term:`LICENSE` variable of the recipe metadata
  3422. and copies of files marked in
  3423. :term:`LIC_FILES_CHKSUM` as containing
  3424. license text).
  3425. For related information on providing license text, see the
  3426. :term:`COPY_LIC_DIRS` variable, the
  3427. :term:`COPY_LIC_MANIFEST` variable, and the
  3428. ":ref:`dev-manual/common-tasks:providing license text`"
  3429. section in the Yocto Project Development Tasks Manual.
  3430. :term:`LICENSE_FLAGS`
  3431. Specifies additional flags for a recipe you must whitelist through
  3432. :term:`LICENSE_FLAGS_WHITELIST` in
  3433. order to allow the recipe to be built. When providing multiple flags,
  3434. separate them with spaces.
  3435. This value is independent of :term:`LICENSE` and is
  3436. typically used to mark recipes that might require additional licenses
  3437. in order to be used in a commercial product. For more information,
  3438. see the
  3439. ":ref:`dev-manual/common-tasks:enabling commercially licensed recipes`"
  3440. section in the Yocto Project Development Tasks Manual.
  3441. :term:`LICENSE_FLAGS_WHITELIST`
  3442. Lists license flags that when specified in
  3443. :term:`LICENSE_FLAGS` within a recipe should not
  3444. prevent that recipe from being built. This practice is otherwise
  3445. known as "whitelisting" license flags. For more information, see the
  3446. ":ref:`dev-manual/common-tasks:enabling commercially licensed recipes`"
  3447. section in the Yocto Project Development Tasks Manual.
  3448. :term:`LICENSE_PATH`
  3449. Path to additional licenses used during the build. By default, the
  3450. OpenEmbedded build system uses ``COMMON_LICENSE_DIR`` to define the
  3451. directory that holds common license text used during the build. The
  3452. ``LICENSE_PATH`` variable allows you to extend that location to other
  3453. areas that have additional licenses:
  3454. ::
  3455. LICENSE_PATH += "path-to-additional-common-licenses"
  3456. :term:`LINUX_KERNEL_TYPE`
  3457. Defines the kernel type to be used in assembling the configuration.
  3458. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3459. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3460. section in the
  3461. Yocto Project Linux Kernel Development Manual for more information on
  3462. kernel types.
  3463. If you do not specify a ``LINUX_KERNEL_TYPE``, it defaults to
  3464. "standard". Together with :term:`KMACHINE`, the
  3465. ``LINUX_KERNEL_TYPE`` variable defines the search arguments used by
  3466. the kernel tools to find the appropriate description within the
  3467. kernel :term:`Metadata` with which to build out the sources
  3468. and configuration.
  3469. :term:`LINUX_VERSION`
  3470. The Linux version from ``kernel.org`` on which the Linux kernel image
  3471. being built using the OpenEmbedded build system is based. You define
  3472. this variable in the kernel recipe. For example, the
  3473. ``linux-yocto-3.4.bb`` kernel recipe found in
  3474. ``meta/recipes-kernel/linux`` defines the variables as follows:
  3475. ::
  3476. LINUX_VERSION ?= "3.4.24"
  3477. The ``LINUX_VERSION`` variable is used to define :term:`PV`
  3478. for the recipe:
  3479. ::
  3480. PV = "${LINUX_VERSION}+git${SRCPV}"
  3481. :term:`LINUX_VERSION_EXTENSION`
  3482. A string extension compiled into the version string of the Linux
  3483. kernel built with the OpenEmbedded build system. You define this
  3484. variable in the kernel recipe. For example, the linux-yocto kernel
  3485. recipes all define the variable as follows:
  3486. ::
  3487. LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
  3488. Defining this variable essentially sets the Linux kernel
  3489. configuration item ``CONFIG_LOCALVERSION``, which is visible through
  3490. the ``uname`` command. Here is an example that shows the extension
  3491. assuming it was set as previously shown:
  3492. ::
  3493. $ uname -r
  3494. 3.7.0-rc8-custom
  3495. :term:`LOG_DIR`
  3496. Specifies the directory to which the OpenEmbedded build system writes
  3497. overall log files. The default directory is ``${TMPDIR}/log``.
  3498. For the directory containing logs specific to each task, see the
  3499. :term:`T` variable.
  3500. :term:`MACHINE`
  3501. Specifies the target device for which the image is built. You define
  3502. ``MACHINE`` in the ``local.conf`` file found in the
  3503. :term:`Build Directory`. By default, ``MACHINE`` is set to
  3504. "qemux86", which is an x86-based architecture machine to be emulated
  3505. using QEMU:
  3506. ::
  3507. MACHINE ?= "qemux86"
  3508. The variable corresponds to a machine configuration file of the same
  3509. name, through which machine-specific configurations are set. Thus,
  3510. when ``MACHINE`` is set to "qemux86" there exists the corresponding
  3511. ``qemux86.conf`` machine configuration file, which can be found in
  3512. the :term:`Source Directory` in
  3513. ``meta/conf/machine``.
  3514. The list of machines supported by the Yocto Project as shipped
  3515. include the following:
  3516. ::
  3517. MACHINE ?= "qemuarm"
  3518. MACHINE ?= "qemuarm64"
  3519. MACHINE ?= "qemumips"
  3520. MACHINE ?= "qemumips64"
  3521. MACHINE ?= "qemuppc"
  3522. MACHINE ?= "qemux86"
  3523. MACHINE ?= "qemux86-64"
  3524. MACHINE ?= "genericx86"
  3525. MACHINE ?= "genericx86-64"
  3526. MACHINE ?= "beaglebone"
  3527. MACHINE ?= "edgerouter"
  3528. The last five are Yocto Project reference hardware
  3529. boards, which are provided in the ``meta-yocto-bsp`` layer.
  3530. .. note::
  3531. Adding additional Board Support Package (BSP) layers to your
  3532. configuration adds new possible settings for ``MACHINE``.
  3533. :term:`MACHINE_ARCH`
  3534. Specifies the name of the machine-specific architecture. This
  3535. variable is set automatically from :term:`MACHINE` or
  3536. :term:`TUNE_PKGARCH`. You should not hand-edit
  3537. the ``MACHINE_ARCH`` variable.
  3538. :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  3539. A list of required machine-specific packages to install as part of
  3540. the image being built. The build process depends on these packages
  3541. being present. Furthermore, because this is a "machine-essential"
  3542. variable, the list of packages are essential for the machine to boot.
  3543. The impact of this variable affects images based on
  3544. ``packagegroup-core-boot``, including the ``core-image-minimal``
  3545. image.
  3546. This variable is similar to the
  3547. ``MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`` variable with the exception
  3548. that the image being built has a build dependency on the variable's
  3549. list of packages. In other words, the image will not build if a file
  3550. in this list is not found.
  3551. As an example, suppose the machine for which you are building
  3552. requires ``example-init`` to be run during boot to initialize the
  3553. hardware. In this case, you would use the following in the machine's
  3554. ``.conf`` configuration file:
  3555. ::
  3556. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  3557. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  3558. A list of recommended machine-specific packages to install as part of
  3559. the image being built. The build process does not depend on these
  3560. packages being present. However, because this is a
  3561. "machine-essential" variable, the list of packages are essential for
  3562. the machine to boot. The impact of this variable affects images based
  3563. on ``packagegroup-core-boot``, including the ``core-image-minimal``
  3564. image.
  3565. This variable is similar to the ``MACHINE_ESSENTIAL_EXTRA_RDEPENDS``
  3566. variable with the exception that the image being built does not have
  3567. a build dependency on the variable's list of packages. In other
  3568. words, the image will still build if a package in this list is not
  3569. found. Typically, this variable is used to handle essential kernel
  3570. modules, whose functionality may be selected to be built into the
  3571. kernel rather than as a module, in which case a package will not be
  3572. produced.
  3573. Consider an example where you have a custom kernel where a specific
  3574. touchscreen driver is required for the machine to be usable. However,
  3575. the driver can be built as a module or into the kernel depending on
  3576. the kernel configuration. If the driver is built as a module, you
  3577. want it to be installed. But, when the driver is built into the
  3578. kernel, you still want the build to succeed. This variable sets up a
  3579. "recommends" relationship so that in the latter case, the build will
  3580. not fail due to the missing package. To accomplish this, assuming the
  3581. package for the module was called ``kernel-module-ab123``, you would
  3582. use the following in the machine's ``.conf`` configuration file:
  3583. ::
  3584. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  3585. .. note::
  3586. In this example, the ``kernel-module-ab123`` recipe needs to
  3587. explicitly set its :term:`PACKAGES` variable to ensure that BitBake
  3588. does not use the kernel recipe's :term:`PACKAGES_DYNAMIC` variable to
  3589. satisfy the dependency.
  3590. Some examples of these machine essentials are flash, screen,
  3591. keyboard, mouse, or touchscreen drivers (depending on the machine).
  3592. :term:`MACHINE_EXTRA_RDEPENDS`
  3593. A list of machine-specific packages to install as part of the image
  3594. being built that are not essential for the machine to boot. However,
  3595. the build process for more fully-featured images depends on the
  3596. packages being present.
  3597. This variable affects all images based on ``packagegroup-base``,
  3598. which does not include the ``core-image-minimal`` or
  3599. ``core-image-full-cmdline`` images.
  3600. The variable is similar to the ``MACHINE_EXTRA_RRECOMMENDS`` variable
  3601. with the exception that the image being built has a build dependency
  3602. on the variable's list of packages. In other words, the image will
  3603. not build if a file in this list is not found.
  3604. An example is a machine that has WiFi capability but is not essential
  3605. for the machine to boot the image. However, if you are building a
  3606. more fully-featured image, you want to enable the WiFi. The package
  3607. containing the firmware for the WiFi hardware is always expected to
  3608. exist, so it is acceptable for the build process to depend upon
  3609. finding the package. In this case, assuming the package for the
  3610. firmware was called ``wifidriver-firmware``, you would use the
  3611. following in the ``.conf`` file for the machine:
  3612. ::
  3613. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  3614. :term:`MACHINE_EXTRA_RRECOMMENDS`
  3615. A list of machine-specific packages to install as part of the image
  3616. being built that are not essential for booting the machine. The image
  3617. being built has no build dependency on this list of packages.
  3618. This variable affects only images based on ``packagegroup-base``,
  3619. which does not include the ``core-image-minimal`` or
  3620. ``core-image-full-cmdline`` images.
  3621. This variable is similar to the ``MACHINE_EXTRA_RDEPENDS`` variable
  3622. with the exception that the image being built does not have a build
  3623. dependency on the variable's list of packages. In other words, the
  3624. image will build if a file in this list is not found.
  3625. An example is a machine that has WiFi capability but is not essential
  3626. For the machine to boot the image. However, if you are building a
  3627. more fully-featured image, you want to enable WiFi. In this case, the
  3628. package containing the WiFi kernel module will not be produced if the
  3629. WiFi driver is built into the kernel, in which case you still want
  3630. the build to succeed instead of failing as a result of the package
  3631. not being found. To accomplish this, assuming the package for the
  3632. module was called ``kernel-module-examplewifi``, you would use the
  3633. following in the ``.conf`` file for the machine:
  3634. ::
  3635. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  3636. :term:`MACHINE_FEATURES`
  3637. Specifies the list of hardware features the
  3638. :term:`MACHINE` is capable of supporting. For related
  3639. information on enabling features, see the
  3640. :term:`DISTRO_FEATURES`,
  3641. :term:`COMBINED_FEATURES`, and
  3642. :term:`IMAGE_FEATURES` variables.
  3643. For a list of hardware features supported by the Yocto Project as
  3644. shipped, see the ":ref:`ref-features-machine`" section.
  3645. :term:`MACHINE_FEATURES_BACKFILL`
  3646. Features to be added to ``MACHINE_FEATURES`` if not also present in
  3647. ``MACHINE_FEATURES_BACKFILL_CONSIDERED``.
  3648. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  3649. not intended to be user-configurable. It is best to just reference
  3650. the variable to see which machine features are being backfilled for
  3651. all machine configurations. See the ":ref:`ref-features-backfill`"
  3652. section for more information.
  3653. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`
  3654. Features from ``MACHINE_FEATURES_BACKFILL`` that should not be
  3655. backfilled (i.e. added to ``MACHINE_FEATURES``) during the build. See
  3656. the ":ref:`ref-features-backfill`" section for more information.
  3657. :term:`MACHINEOVERRIDES`
  3658. A colon-separated list of overrides that apply to the current
  3659. machine. By default, this list includes the value of
  3660. :term:`MACHINE`.
  3661. You can extend ``MACHINEOVERRIDES`` to add extra overrides that
  3662. should apply to a machine. For example, all machines emulated in QEMU
  3663. (e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
  3664. ``meta/conf/machine/include/qemu.inc`` that prepends the following
  3665. override to ``MACHINEOVERRIDES``:
  3666. ::
  3667. MACHINEOVERRIDES =. "qemuall:"
  3668. This
  3669. override allows variables to be overridden for all machines emulated
  3670. in QEMU, like in the following example from the ``connman-conf``
  3671. recipe:
  3672. ::
  3673. SRC_URI_append_qemuall = " file://wired.config \
  3674. file://wired-setup \
  3675. "
  3676. The underlying mechanism behind
  3677. ``MACHINEOVERRIDES`` is simply that it is included in the default
  3678. value of :term:`OVERRIDES`.
  3679. :term:`MAINTAINER`
  3680. The email address of the distribution maintainer.
  3681. :term:`MIRRORS`
  3682. Specifies additional paths from which the OpenEmbedded build system
  3683. gets source code. When the build system searches for source code, it
  3684. first tries the local download directory. If that location fails, the
  3685. build system tries locations defined by
  3686. :term:`PREMIRRORS`, the upstream source, and then
  3687. locations specified by ``MIRRORS`` in that order.
  3688. Assuming your distribution (:term:`DISTRO`) is "poky",
  3689. the default value for ``MIRRORS`` is defined in the
  3690. ``conf/distro/poky.conf`` file in the ``meta-poky`` Git repository.
  3691. :term:`MLPREFIX`
  3692. Specifies a prefix has been added to :term:`PN` to create a
  3693. special version of a recipe or package (i.e. a Multilib version). The
  3694. variable is used in places where the prefix needs to be added to or
  3695. removed from a the name (e.g. the :term:`BPN` variable).
  3696. ``MLPREFIX`` gets set when a prefix has been added to ``PN``.
  3697. .. note::
  3698. The "ML" in ``MLPREFIX`` stands for "MultiLib". This representation is
  3699. historical and comes from a time when ``nativesdk`` was a suffix
  3700. rather than a prefix on the recipe name. When ``nativesdk`` was turned
  3701. into a prefix, it made sense to set ``MLPREFIX`` for it as well.
  3702. To help understand when ``MLPREFIX`` might be needed, consider when
  3703. :term:`BBCLASSEXTEND` is used to provide a
  3704. ``nativesdk`` version of a recipe in addition to the target version.
  3705. If that recipe declares build-time dependencies on tasks in other
  3706. recipes by using :term:`DEPENDS`, then a dependency on
  3707. "foo" will automatically get rewritten to a dependency on
  3708. "nativesdk-foo". However, dependencies like the following will not
  3709. get rewritten automatically:
  3710. ::
  3711. do_foo[depends] += "recipe:do_foo"
  3712. If you want such a dependency to also get transformed, you can do the
  3713. following:
  3714. ::
  3715. do_foo[depends] += "${MLPREFIX}recipe:do_foo"
  3716. module_autoload
  3717. This variable has been replaced by the ``KERNEL_MODULE_AUTOLOAD``
  3718. variable. You should replace all occurrences of ``module_autoload``
  3719. with additions to ``KERNEL_MODULE_AUTOLOAD``, for example:
  3720. ::
  3721. module_autoload_rfcomm = "rfcomm"
  3722. should now be replaced with:
  3723. ::
  3724. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  3725. See the :term:`KERNEL_MODULE_AUTOLOAD` variable for more information.
  3726. module_conf
  3727. Specifies `modprobe.d <https://linux.die.net/man/5/modprobe.d>`_
  3728. syntax lines for inclusion in the ``/etc/modprobe.d/modname.conf``
  3729. file.
  3730. You can use this variable anywhere that it can be recognized by the
  3731. kernel recipe or out-of-tree kernel module recipe (e.g. a machine
  3732. configuration file, a distribution configuration file, an append file
  3733. for the recipe, or the recipe itself). If you use this variable, you
  3734. must also be sure to list the module name in the
  3735. :term:`KERNEL_MODULE_AUTOLOAD`
  3736. variable.
  3737. Here is the general syntax:
  3738. ::
  3739. module_conf_module_name = "modprobe.d-syntax"
  3740. You must use the kernel module name override.
  3741. Run ``man modprobe.d`` in the shell to find out more information on
  3742. the exact syntax you want to provide with ``module_conf``.
  3743. Including ``module_conf`` causes the OpenEmbedded build system to
  3744. populate the ``/etc/modprobe.d/modname.conf`` file with
  3745. ``modprobe.d`` syntax lines. Here is an example that adds the options
  3746. ``arg1`` and ``arg2`` to a module named ``mymodule``:
  3747. ::
  3748. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  3749. For information on how to specify kernel modules to auto-load on
  3750. boot, see the :term:`KERNEL_MODULE_AUTOLOAD` variable.
  3751. :term:`MODULE_TARBALL_DEPLOY`
  3752. Controls creation of the ``modules-*.tgz`` file. Set this variable to
  3753. "0" to disable creation of this file, which contains all of the
  3754. kernel modules resulting from a kernel build.
  3755. :term:`MODULE_TARBALL_LINK_NAME`
  3756. The link name of the kernel module tarball. This variable is set in
  3757. the ``meta/classes/kernel-artifact-names.bbclass`` file as follows:
  3758. ::
  3759. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3760. The value
  3761. of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the
  3762. same file, has the following value:
  3763. ::
  3764. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3765. See the :term:`MACHINE` variable for additional information.
  3766. :term:`MODULE_TARBALL_NAME`
  3767. The base name of the kernel module tarball. This variable is set in
  3768. the ``meta/classes/kernel-artifact-names.bbclass`` file as follows:
  3769. ::
  3770. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3771. The value of the :term:`KERNEL_ARTIFACT_NAME` variable,
  3772. which is set in the same file, has the following value:
  3773. ::
  3774. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
  3775. :term:`MULTIMACH_TARGET_SYS`
  3776. Uniquely identifies the type of the target system for which packages
  3777. are being built. This variable allows output for different types of
  3778. target systems to be put into different subdirectories of the same
  3779. output directory.
  3780. The default value of this variable is:
  3781. ::
  3782. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  3783. Some classes (e.g.
  3784. :ref:`cross-canadian <ref-classes-cross-canadian>`) modify the
  3785. ``MULTIMACH_TARGET_SYS`` value.
  3786. See the :term:`STAMP` variable for an example. See the
  3787. :term:`STAGING_DIR_TARGET` variable for more information.
  3788. :term:`NATIVELSBSTRING`
  3789. A string identifying the host distribution. Strings consist of the
  3790. host distributor ID followed by the release, as reported by the
  3791. ``lsb_release`` tool or as read from ``/etc/lsb-release``. For
  3792. example, when running a build on Ubuntu 12.10, the value is
  3793. "Ubuntu-12.10". If this information is unable to be determined, the
  3794. value resolves to "Unknown".
  3795. This variable is used by default to isolate native shared state
  3796. packages for different distributions (e.g. to avoid problems with
  3797. ``glibc`` version incompatibilities). Additionally, the variable is
  3798. checked against
  3799. :term:`SANITY_TESTED_DISTROS` if that
  3800. variable is set.
  3801. :term:`NM`
  3802. The minimal command and arguments to run ``nm``.
  3803. :term:`NO_GENERIC_LICENSE`
  3804. Avoids QA errors when you use a non-common, non-CLOSED license in a
  3805. recipe. Packages exist, such as the linux-firmware package, with many
  3806. licenses that are not in any way common. Also, new licenses are added
  3807. occasionally to avoid introducing a lot of common license files,
  3808. which are only applicable to a specific package.
  3809. ``NO_GENERIC_LICENSE`` is used to allow copying a license that does
  3810. not exist in common licenses.
  3811. The following example shows how to add ``NO_GENERIC_LICENSE`` to a
  3812. recipe:
  3813. ::
  3814. NO_GENERIC_LICENSE[license_name] = "license_file_in_fetched_source"
  3815. The following is an example that
  3816. uses the ``LICENSE.Abilis.txt`` file as the license from the fetched
  3817. source:
  3818. ::
  3819. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  3820. :term:`NO_RECOMMENDATIONS`
  3821. Prevents installation of all "recommended-only" packages.
  3822. Recommended-only packages are packages installed only through the
  3823. :term:`RRECOMMENDS` variable). Setting the
  3824. ``NO_RECOMMENDATIONS`` variable to "1" turns this feature on: ::
  3825. NO_RECOMMENDATIONS = "1"
  3826. You can set this variable globally in your ``local.conf`` file or you
  3827. can attach it to a specific image recipe by using the recipe name
  3828. override: ::
  3829. NO_RECOMMENDATIONS_pn-target_image = "1"
  3830. It is important to realize that if you choose to not install packages
  3831. using this variable and some other packages are dependent on them
  3832. (i.e. listed in a recipe's :term:`RDEPENDS`
  3833. variable), the OpenEmbedded build system ignores your request and
  3834. will install the packages to avoid dependency errors.
  3835. .. note::
  3836. Some recommended packages might be required for certain system
  3837. functionality, such as kernel modules. It is up to you to add
  3838. packages with the :term:`IMAGE_INSTALL` variable.
  3839. Support for this variable exists only when using the IPK and RPM
  3840. packaging backend. Support does not exist for DEB.
  3841. See the :term:`BAD_RECOMMENDATIONS` and
  3842. the :term:`PACKAGE_EXCLUDE` variables for
  3843. related information.
  3844. :term:`NOAUTOPACKAGEDEBUG`
  3845. Disables auto package from splitting ``.debug`` files. If a recipe
  3846. requires ``FILES_${PN}-dbg`` to be set manually, the
  3847. ``NOAUTOPACKAGEDEBUG`` can be defined allowing you to define the
  3848. content of the debug package. For example:
  3849. ::
  3850. NOAUTOPACKAGEDEBUG = "1"
  3851. FILES_${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  3852. FILES_${PN}-dbg = "/usr/src/debug/"
  3853. FILES_${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  3854. :term:`OBJCOPY`
  3855. The minimal command and arguments to run ``objcopy``.
  3856. :term:`OBJDUMP`
  3857. The minimal command and arguments to run ``objdump``.
  3858. :term:`OE_BINCONFIG_EXTRA_MANGLE`
  3859. When inheriting the :ref:`binconfig <ref-classes-binconfig>` class,
  3860. this variable specifies additional arguments passed to the "sed"
  3861. command. The sed command alters any paths in configuration scripts
  3862. that have been set up during compilation. Inheriting this class
  3863. results in all paths in these scripts being changed to point into the
  3864. ``sysroots/`` directory so that all builds that use the script will
  3865. use the correct directories for the cross compiling layout.
  3866. See the ``meta/classes/binconfig.bbclass`` in the
  3867. :term:`Source Directory` for details on how this class
  3868. applies these additional sed command arguments. For general
  3869. information on the ``binconfig`` class, see the
  3870. ":ref:`binconfig.bbclass <ref-classes-binconfig>`" section.
  3871. :term:`OE_IMPORTS`
  3872. An internal variable used to tell the OpenEmbedded build system what
  3873. Python modules to import for every Python function run by the system.
  3874. .. note::
  3875. Do not set this variable. It is for internal use only.
  3876. :term:`OE_INIT_ENV_SCRIPT`
  3877. The name of the build environment setup script for the purposes of
  3878. setting up the environment within the extensible SDK. The default
  3879. value is "oe-init-build-env".
  3880. If you use a custom script to set up your build environment, set the
  3881. ``OE_INIT_ENV_SCRIPT`` variable to its name.
  3882. :term:`OE_TERMINAL`
  3883. Controls how the OpenEmbedded build system spawns interactive
  3884. terminals on the host development system (e.g. using the BitBake
  3885. command with the ``-c devshell`` command-line option). For more
  3886. information, see the ":ref:`dev-manual/common-tasks:using a development shell`" section in
  3887. the Yocto Project Development Tasks Manual.
  3888. You can use the following values for the ``OE_TERMINAL`` variable:
  3889. - auto
  3890. - gnome
  3891. - xfce
  3892. - rxvt
  3893. - screen
  3894. - konsole
  3895. - none
  3896. :term:`OEROOT`
  3897. The directory from which the top-level build environment setup script
  3898. is sourced. The Yocto Project provides a top-level build environment
  3899. setup script: :ref:`structure-core-script`. When you run this
  3900. script, the ``OEROOT`` variable resolves to the directory that
  3901. contains the script.
  3902. For additional information on how this variable is used, see the
  3903. initialization script.
  3904. :term:`OLDEST_KERNEL`
  3905. Declares the oldest version of the Linux kernel that the produced
  3906. binaries must support. This variable is passed into the build of the
  3907. Embedded GNU C Library (``glibc``).
  3908. The default for this variable comes from the
  3909. ``meta/conf/bitbake.conf`` configuration file. You can override this
  3910. default by setting the variable in a custom distribution
  3911. configuration file.
  3912. :term:`OVERRIDES`
  3913. A colon-separated list of overrides that currently apply. Overrides
  3914. are a BitBake mechanism that allows variables to be selectively
  3915. overridden at the end of parsing. The set of overrides in
  3916. ``OVERRIDES`` represents the "state" during building, which includes
  3917. the current recipe being built, the machine for which it is being
  3918. built, and so forth.
  3919. As an example, if the string "an-override" appears as an element in
  3920. the colon-separated list in ``OVERRIDES``, then the following
  3921. assignment will override ``FOO`` with the value "overridden" at the
  3922. end of parsing:
  3923. ::
  3924. FOO_an-override = "overridden"
  3925. See the
  3926. ":ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  3927. section in the BitBake User Manual for more information on the
  3928. overrides mechanism.
  3929. The default value of ``OVERRIDES`` includes the values of the
  3930. :term:`CLASSOVERRIDE`,
  3931. :term:`MACHINEOVERRIDES`, and
  3932. :term:`DISTROOVERRIDES` variables. Another
  3933. important override included by default is ``pn-${PN}``. This override
  3934. allows variables to be set for a single recipe within configuration
  3935. (``.conf``) files. Here is an example:
  3936. ::
  3937. FOO_pn-myrecipe = "myrecipe-specific value"
  3938. .. note::
  3939. An easy way to see what overrides apply is to search for ``OVERRIDES``
  3940. in the output of the ``bitbake -e`` command. See the
  3941. ":ref:`dev-manual/common-tasks:viewing variable values`" section in the Yocto
  3942. Project Development Tasks Manual for more information.
  3943. :term:`P`
  3944. The recipe name and version. ``P`` is comprised of the following:
  3945. ::
  3946. ${PN}-${PV}
  3947. :term:`PACKAGE_ADD_METADATA`
  3948. This variable defines additional metadata to add to packages.
  3949. You may find you need to inject additional metadata into packages.
  3950. This variable allows you to do that by setting the injected data as
  3951. the value. Multiple fields can be added by splitting the content with
  3952. the literal separator "\n".
  3953. The suffixes '_IPK', '_DEB', or '_RPM' can be applied to the variable
  3954. to do package type specific settings. It can also be made package
  3955. specific by using the package name as a suffix.
  3956. You can find out more about applying this variable in the
  3957. ":ref:`dev-manual/common-tasks:adding custom metadata to packages`"
  3958. section in the Yocto Project Development Tasks Manual.
  3959. :term:`PACKAGE_ARCH`
  3960. The architecture of the resulting package or packages.
  3961. By default, the value of this variable is set to
  3962. :term:`TUNE_PKGARCH` when building for the
  3963. target, :term:`BUILD_ARCH` when building for the
  3964. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building for the
  3965. SDK.
  3966. .. note::
  3967. See :term:`SDK_ARCH` for more information.
  3968. However, if your recipe's output packages are built specific to the
  3969. target machine rather than generally for the architecture of the
  3970. machine, you should set ``PACKAGE_ARCH`` to the value of
  3971. :term:`MACHINE_ARCH` in the recipe as follows:
  3972. ::
  3973. PACKAGE_ARCH = "${MACHINE_ARCH}"
  3974. :term:`PACKAGE_ARCHS`
  3975. Specifies a list of architectures compatible with the target machine.
  3976. This variable is set automatically and should not normally be
  3977. hand-edited. Entries are separated using spaces and listed in order
  3978. of priority. The default value for ``PACKAGE_ARCHS`` is "all any
  3979. noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  3980. :term:`PACKAGE_BEFORE_PN`
  3981. Enables easily adding packages to ``PACKAGES`` before ``${PN}`` so
  3982. that those added packages can pick up files that would normally be
  3983. included in the default package.
  3984. :term:`PACKAGE_CLASSES`
  3985. This variable, which is set in the ``local.conf`` configuration file
  3986. found in the ``conf`` folder of the
  3987. :term:`Build Directory`, specifies the package manager the
  3988. OpenEmbedded build system uses when packaging data.
  3989. You can provide one or more of the following arguments for the
  3990. variable: PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk
  3991. package_tar"
  3992. .. note::
  3993. While it is a legal option, the ``package_tar``
  3994. class has limited functionality due to no support for package
  3995. dependencies by that backend. Therefore, it is recommended that
  3996. you do not use it.
  3997. The build system uses only the first argument in the list as the
  3998. package manager when creating your image or SDK. However, packages
  3999. will be created using any additional packaging classes you specify.
  4000. For example, if you use the following in your ``local.conf`` file:
  4001. ::
  4002. PACKAGE_CLASSES ?= "package_ipk"
  4003. The OpenEmbedded build system uses
  4004. the IPK package manager to create your image or SDK.
  4005. For information on packaging and build performance effects as a
  4006. result of the package manager in use, see the
  4007. ":ref:`package.bbclass <ref-classes-package>`" section.
  4008. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  4009. Determines how to split up the binary and debug information when
  4010. creating ``*-dbg`` packages to be used with the GNU Project Debugger
  4011. (GDB).
  4012. With the ``PACKAGE_DEBUG_SPLIT_STYLE`` variable, you can control
  4013. where debug information, which can include or exclude source files,
  4014. is stored:
  4015. - ".debug": Debug symbol files are placed next to the binary in a
  4016. ``.debug`` directory on the target. For example, if a binary is
  4017. installed into ``/bin``, the corresponding debug symbol files are
  4018. installed in ``/bin/.debug``. Source files are placed in
  4019. ``/usr/src/debug``.
  4020. - "debug-file-directory": Debug symbol files are placed under
  4021. ``/usr/lib/debug`` on the target, and separated by the path from
  4022. where the binary is installed. For example, if a binary is
  4023. installed in ``/bin``, the corresponding debug symbols are
  4024. installed in ``/usr/lib/debug/bin``. Source files are placed in
  4025. ``/usr/src/debug``.
  4026. - "debug-without-src": The same behavior as ".debug" previously
  4027. described with the exception that no source files are installed.
  4028. - "debug-with-srcpkg": The same behavior as ".debug" previously
  4029. described with the exception that all source files are placed in a
  4030. separate ``*-src`` pkg. This is the default behavior.
  4031. You can find out more about debugging using GDB by reading the
  4032. ":ref:`dev-manual/common-tasks:debugging with the gnu project debugger (gdb) remotely`" section
  4033. in the Yocto Project Development Tasks Manual.
  4034. :term:`PACKAGE_EXCLUDE_COMPLEMENTARY`
  4035. Prevents specific packages from being installed when you are
  4036. installing complementary packages.
  4037. You might find that you want to prevent installing certain packages
  4038. when you are installing complementary packages. For example, if you
  4039. are using :term:`IMAGE_FEATURES` to install
  4040. ``dev-pkgs``, you might not want to install all packages from a
  4041. particular multilib. If you find yourself in this situation, you can
  4042. use the ``PACKAGE_EXCLUDE_COMPLEMENTARY`` variable to specify regular
  4043. expressions to match the packages you want to exclude.
  4044. :term:`PACKAGE_EXCLUDE`
  4045. Lists packages that should not be installed into an image. For
  4046. example:
  4047. ::
  4048. PACKAGE_EXCLUDE = "package_name package_name package_name ..."
  4049. You can set this variable globally in your ``local.conf`` file or you
  4050. can attach it to a specific image recipe by using the recipe name
  4051. override:
  4052. ::
  4053. PACKAGE_EXCLUDE_pn-target_image = "package_name"
  4054. If you choose to not install a package using this variable and some
  4055. other package is dependent on it (i.e. listed in a recipe's
  4056. :term:`RDEPENDS` variable), the OpenEmbedded build
  4057. system generates a fatal installation error. Because the build system
  4058. halts the process with a fatal error, you can use the variable with
  4059. an iterative development process to remove specific components from a
  4060. system.
  4061. Support for this variable exists only when using the IPK and RPM
  4062. packaging backend. Support does not exist for DEB.
  4063. See the :term:`NO_RECOMMENDATIONS` and the
  4064. :term:`BAD_RECOMMENDATIONS` variables for
  4065. related information.
  4066. :term:`PACKAGE_EXTRA_ARCHS`
  4067. Specifies the list of architectures compatible with the device CPU.
  4068. This variable is useful when you build for several different devices
  4069. that use miscellaneous processors such as XScale and ARM926-EJS.
  4070. :term:`PACKAGE_FEED_ARCHS`
  4071. Optionally specifies the package architectures used as part of the
  4072. package feed URIs during the build. When used, the
  4073. ``PACKAGE_FEED_ARCHS`` variable is appended to the final package feed
  4074. URI, which is constructed using the
  4075. :term:`PACKAGE_FEED_URIS` and
  4076. :term:`PACKAGE_FEED_BASE_PATHS`
  4077. variables.
  4078. .. note::
  4079. You can use the ``PACKAGE_FEED_ARCHS``
  4080. variable to whitelist specific package architectures. If you do
  4081. not need to whitelist specific architectures, which is a common
  4082. case, you can omit this variable. Omitting the variable results in
  4083. all available architectures for the current machine being included
  4084. into remote package feeds.
  4085. Consider the following example where the ``PACKAGE_FEED_URIS``,
  4086. ``PACKAGE_FEED_BASE_PATHS``, and ``PACKAGE_FEED_ARCHS`` variables are
  4087. defined in your ``local.conf`` file:
  4088. ::
  4089. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4090. https://example.com/packagerepos/updates"
  4091. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4092. PACKAGE_FEED_ARCHS = "all core2-64"
  4093. Given these settings, the resulting package feeds are as follows:
  4094. .. code-block:: none
  4095. https://example.com/packagerepos/release/rpm/all
  4096. https://example.com/packagerepos/release/rpm/core2-64
  4097. https://example.com/packagerepos/release/rpm-dev/all
  4098. https://example.com/packagerepos/release/rpm-dev/core2-64
  4099. https://example.com/packagerepos/updates/rpm/all
  4100. https://example.com/packagerepos/updates/rpm/core2-64
  4101. https://example.com/packagerepos/updates/rpm-dev/all
  4102. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4103. :term:`PACKAGE_FEED_BASE_PATHS`
  4104. Specifies the base path used when constructing package feed URIs. The
  4105. ``PACKAGE_FEED_BASE_PATHS`` variable makes up the middle portion of a
  4106. package feed URI used by the OpenEmbedded build system. The base path
  4107. lies between the :term:`PACKAGE_FEED_URIS`
  4108. and :term:`PACKAGE_FEED_ARCHS` variables.
  4109. Consider the following example where the ``PACKAGE_FEED_URIS``,
  4110. ``PACKAGE_FEED_BASE_PATHS``, and ``PACKAGE_FEED_ARCHS`` variables are
  4111. defined in your ``local.conf`` file:
  4112. ::
  4113. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4114. https://example.com/packagerepos/updates"
  4115. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4116. PACKAGE_FEED_ARCHS = "all core2-64"
  4117. Given these settings, the resulting package feeds are as follows:
  4118. .. code-block:: none
  4119. https://example.com/packagerepos/release/rpm/all
  4120. https://example.com/packagerepos/release/rpm/core2-64
  4121. https://example.com/packagerepos/release/rpm-dev/all
  4122. https://example.com/packagerepos/release/rpm-dev/core2-64
  4123. https://example.com/packagerepos/updates/rpm/all
  4124. https://example.com/packagerepos/updates/rpm/core2-64
  4125. https://example.com/packagerepos/updates/rpm-dev/all
  4126. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4127. :term:`PACKAGE_FEED_URIS`
  4128. Specifies the front portion of the package feed URI used by the
  4129. OpenEmbedded build system. Each final package feed URI is comprised
  4130. of ``PACKAGE_FEED_URIS``,
  4131. :term:`PACKAGE_FEED_BASE_PATHS`, and
  4132. :term:`PACKAGE_FEED_ARCHS` variables.
  4133. Consider the following example where the ``PACKAGE_FEED_URIS``,
  4134. ``PACKAGE_FEED_BASE_PATHS``, and ``PACKAGE_FEED_ARCHS`` variables are
  4135. defined in your ``local.conf`` file:
  4136. ::
  4137. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4138. https://example.com/packagerepos/updates"
  4139. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4140. PACKAGE_FEED_ARCHS = "all core2-64"
  4141. Given these settings, the resulting package feeds are as follows:
  4142. .. code-block:: none
  4143. https://example.com/packagerepos/release/rpm/all
  4144. https://example.com/packagerepos/release/rpm/core2-64
  4145. https://example.com/packagerepos/release/rpm-dev/all
  4146. https://example.com/packagerepos/release/rpm-dev/core2-64
  4147. https://example.com/packagerepos/updates/rpm/all
  4148. https://example.com/packagerepos/updates/rpm/core2-64
  4149. https://example.com/packagerepos/updates/rpm-dev/all
  4150. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4151. :term:`PACKAGE_INSTALL`
  4152. The final list of packages passed to the package manager for
  4153. installation into the image.
  4154. Because the package manager controls actual installation of all
  4155. packages, the list of packages passed using ``PACKAGE_INSTALL`` is
  4156. not the final list of packages that are actually installed. This
  4157. variable is internal to the image construction code. Consequently, in
  4158. general, you should use the
  4159. :term:`IMAGE_INSTALL` variable to specify
  4160. packages for installation. The exception to this is when working with
  4161. the :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  4162. image. When working with an initial RAM filesystem (initramfs) image,
  4163. use the ``PACKAGE_INSTALL`` variable. For information on creating an
  4164. initramfs, see the ":ref:`dev-manual/common-tasks:building an initial ram filesystem (initramfs) image`" section
  4165. in the Yocto Project Development Tasks Manual.
  4166. :term:`PACKAGE_INSTALL_ATTEMPTONLY`
  4167. Specifies a list of packages the OpenEmbedded build system attempts
  4168. to install when creating an image. If a listed package fails to
  4169. install, the build system does not generate an error. This variable
  4170. is generally not user-defined.
  4171. :term:`PACKAGE_PREPROCESS_FUNCS`
  4172. Specifies a list of functions run to pre-process the
  4173. :term:`PKGD` directory prior to splitting the files out
  4174. to individual packages.
  4175. :term:`PACKAGE_WRITE_DEPS`
  4176. Specifies a list of dependencies for post-installation and
  4177. pre-installation scripts on native/cross tools. If your
  4178. post-installation or pre-installation script can execute at rootfs
  4179. creation time rather than on the target but depends on a native tool
  4180. in order to execute, you need to list the tools in
  4181. ``PACKAGE_WRITE_DEPS``.
  4182. For information on running post-installation scripts, see the
  4183. ":ref:`dev-manual/common-tasks:post-installation scripts`"
  4184. section in the Yocto Project Development Tasks Manual.
  4185. :term:`PACKAGECONFIG`
  4186. This variable provides a means of enabling or disabling features of a
  4187. recipe on a per-recipe basis. ``PACKAGECONFIG`` blocks are defined in
  4188. recipes when you specify features and then arguments that define
  4189. feature behaviors. Here is the basic block structure (broken over
  4190. multiple lines for readability):
  4191. ::
  4192. PACKAGECONFIG ??= "f1 f2 f3 ..."
  4193. PACKAGECONFIG[f1] = "\
  4194. --with-f1, \
  4195. --without-f1, \
  4196. build-deps-for-f1, \
  4197. runtime-deps-for-f1, \
  4198. runtime-recommends-for-f1, \
  4199. packageconfig-conflicts-for-f1"
  4200. PACKAGECONFIG[f2] = "\
  4201. ... and so on and so on ...
  4202. The ``PACKAGECONFIG`` variable itself specifies a space-separated
  4203. list of the features to enable. Following the features, you can
  4204. determine the behavior of each feature by providing up to six
  4205. order-dependent arguments, which are separated by commas. You can
  4206. omit any argument you like but must retain the separating commas. The
  4207. order is important and specifies the following:
  4208. 1. Extra arguments that should be added to the configure script
  4209. argument list (:term:`EXTRA_OECONF` or
  4210. :term:`PACKAGECONFIG_CONFARGS`) if
  4211. the feature is enabled.
  4212. 2. Extra arguments that should be added to ``EXTRA_OECONF`` or
  4213. ``PACKAGECONFIG_CONFARGS`` if the feature is disabled.
  4214. 3. Additional build dependencies (:term:`DEPENDS`)
  4215. that should be added if the feature is enabled.
  4216. 4. Additional runtime dependencies (:term:`RDEPENDS`)
  4217. that should be added if the feature is enabled.
  4218. 5. Additional runtime recommendations
  4219. (:term:`RRECOMMENDS`) that should be added if
  4220. the feature is enabled.
  4221. 6. Any conflicting (that is, mutually exclusive) ``PACKAGECONFIG``
  4222. settings for this feature.
  4223. Consider the following ``PACKAGECONFIG`` block taken from the
  4224. ``librsvg`` recipe. In this example the feature is ``gtk``, which has
  4225. three arguments that determine the feature's behavior.
  4226. ::
  4227. PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3"
  4228. The
  4229. ``--with-gtk3`` and ``gtk+3`` arguments apply only if the feature is
  4230. enabled. In this case, ``--with-gtk3`` is added to the configure
  4231. script argument list and ``gtk+3`` is added to ``DEPENDS``. On the
  4232. other hand, if the feature is disabled say through a ``.bbappend``
  4233. file in another layer, then the second argument ``--without-gtk3`` is
  4234. added to the configure script instead.
  4235. The basic ``PACKAGECONFIG`` structure previously described holds true
  4236. regardless of whether you are creating a block or changing a block.
  4237. When creating a block, use the structure inside your recipe.
  4238. If you want to change an existing ``PACKAGECONFIG`` block, you can do
  4239. so one of two ways:
  4240. - *Append file:* Create an append file named
  4241. recipename\ ``.bbappend`` in your layer and override the value of
  4242. ``PACKAGECONFIG``. You can either completely override the
  4243. variable:
  4244. ::
  4245. PACKAGECONFIG = "f4 f5"
  4246. Or, you can just append the variable:
  4247. ::
  4248. PACKAGECONFIG_append = " f4"
  4249. - *Configuration file:* This method is identical to changing the
  4250. block through an append file except you edit your ``local.conf``
  4251. or ``mydistro.conf`` file. As with append files previously
  4252. described, you can either completely override the variable:
  4253. ::
  4254. PACKAGECONFIG_pn-recipename = "f4 f5"
  4255. Or, you can just amend the variable:
  4256. ::
  4257. PACKAGECONFIG_append_pn-recipename = " f4"
  4258. :term:`PACKAGECONFIG_CONFARGS`
  4259. A space-separated list of configuration options generated from the
  4260. :term:`PACKAGECONFIG` setting.
  4261. Classes such as :ref:`autotools <ref-classes-autotools>` and
  4262. :ref:`cmake <ref-classes-cmake>` use ``PACKAGECONFIG_CONFARGS`` to
  4263. pass ``PACKAGECONFIG`` options to ``configure`` and ``cmake``,
  4264. respectively. If you are using ``PACKAGECONFIG`` but not a class that
  4265. handles the ``do_configure`` task, then you need to use
  4266. ``PACKAGECONFIG_CONFARGS`` appropriately.
  4267. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY`
  4268. For recipes inheriting the
  4269. :ref:`packagegroup <ref-classes-packagegroup>` class, setting
  4270. ``PACKAGEGROUP_DISABLE_COMPLEMENTARY`` to "1" specifies that the
  4271. normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth)
  4272. should not be automatically created by the ``packagegroup`` recipe,
  4273. which is the default behavior.
  4274. :term:`PACKAGES`
  4275. The list of packages the recipe creates. The default value is the
  4276. following:
  4277. ::
  4278. ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  4279. During packaging, the :ref:`ref-tasks-package` task
  4280. goes through ``PACKAGES`` and uses the :term:`FILES`
  4281. variable corresponding to each package to assign files to the
  4282. package. If a file matches the ``FILES`` variable for more than one
  4283. package in ``PACKAGES``, it will be assigned to the earliest
  4284. (leftmost) package.
  4285. Packages in the variable's list that are empty (i.e. where none of
  4286. the patterns in ``FILES_``\ pkg match any files installed by the
  4287. :ref:`ref-tasks-install` task) are not generated,
  4288. unless generation is forced through the
  4289. :term:`ALLOW_EMPTY` variable.
  4290. :term:`PACKAGES_DYNAMIC`
  4291. A promise that your recipe satisfies runtime dependencies for
  4292. optional modules that are found in other recipes.
  4293. ``PACKAGES_DYNAMIC`` does not actually satisfy the dependencies, it
  4294. only states that they should be satisfied. For example, if a hard,
  4295. runtime dependency (:term:`RDEPENDS`) of another
  4296. package is satisfied at build time through the ``PACKAGES_DYNAMIC``
  4297. variable, but a package with the module name is never actually
  4298. produced, then the other package will be broken. Thus, if you attempt
  4299. to include that package in an image, you will get a dependency
  4300. failure from the packaging system during the
  4301. :ref:`ref-tasks-rootfs` task.
  4302. Typically, if there is a chance that such a situation can occur and
  4303. the package that is not created is valid without the dependency being
  4304. satisfied, then you should use :term:`RRECOMMENDS`
  4305. (a soft runtime dependency) instead of ``RDEPENDS``.
  4306. For an example of how to use the ``PACKAGES_DYNAMIC`` variable when
  4307. you are splitting packages, see the
  4308. ":ref:`dev-manual/common-tasks:handling optional module packaging`"
  4309. section in the Yocto Project Development Tasks Manual.
  4310. :term:`PACKAGESPLITFUNCS`
  4311. Specifies a list of functions run to perform additional splitting of
  4312. files into individual packages. Recipes can either prepend to this
  4313. variable or prepend to the ``populate_packages`` function in order to
  4314. perform additional package splitting. In either case, the function
  4315. should set :term:`PACKAGES`,
  4316. :term:`FILES`, :term:`RDEPENDS` and
  4317. other packaging variables appropriately in order to perform the
  4318. desired splitting.
  4319. :term:`PARALLEL_MAKE`
  4320. Extra options passed to the ``make`` command during the
  4321. :ref:`ref-tasks-compile` task in order to specify
  4322. parallel compilation on the local build host. This variable is
  4323. usually in the form "-j x", where x represents the maximum number of
  4324. parallel threads ``make`` can run.
  4325. .. note::
  4326. In order for ``PARALLEL_MAKE`` to be effective, ``make`` must be
  4327. called with ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy way to ensure
  4328. this is to use the ``oe_runmake`` function.
  4329. By default, the OpenEmbedded build system automatically sets this
  4330. variable to be equal to the number of cores the build system uses.
  4331. .. note::
  4332. If the software being built experiences dependency issues during
  4333. the ``do_compile`` task that result in race conditions, you can clear
  4334. the ``PARALLEL_MAKE`` variable within the recipe as a workaround. For
  4335. information on addressing race conditions, see the
  4336. ":ref:`dev-manual/common-tasks:debugging parallel make races`"
  4337. section in the Yocto Project Development Tasks Manual.
  4338. For single socket systems (i.e. one CPU), you should not have to
  4339. override this variable to gain optimal parallelism during builds.
  4340. However, if you have very large systems that employ multiple physical
  4341. CPUs, you might want to make sure the ``PARALLEL_MAKE`` variable is
  4342. not set higher than "-j 20".
  4343. For more information on speeding up builds, see the
  4344. ":ref:`dev-manual/common-tasks:speeding up a build`"
  4345. section in the Yocto Project Development Tasks Manual.
  4346. :term:`PARALLEL_MAKEINST`
  4347. Extra options passed to the ``make install`` command during the
  4348. :ref:`ref-tasks-install` task in order to specify
  4349. parallel installation. This variable defaults to the value of
  4350. :term:`PARALLEL_MAKE`.
  4351. .. note::
  4352. In order for ``PARALLEL_MAKEINST`` to be effective, ``make`` must
  4353. be called with
  4354. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  4355. way to ensure this is to use the ``oe_runmake`` function.
  4356. If the software being built experiences dependency issues during
  4357. the ``do_install`` task that result in race conditions, you can
  4358. clear the ``PARALLEL_MAKEINST`` variable within the recipe as a
  4359. workaround. For information on addressing race conditions, see the
  4360. ":ref:`dev-manual/common-tasks:debugging parallel make races`"
  4361. section in the Yocto Project Development Tasks Manual.
  4362. :term:`PATCHRESOLVE`
  4363. Determines the action to take when a patch fails. You can set this
  4364. variable to one of two values: "noop" and "user".
  4365. The default value of "noop" causes the build to simply fail when the
  4366. OpenEmbedded build system cannot successfully apply a patch. Setting
  4367. the value to "user" causes the build system to launch a shell and
  4368. places you in the right location so that you can manually resolve the
  4369. conflicts.
  4370. Set this variable in your ``local.conf`` file.
  4371. :term:`PATCHTOOL`
  4372. Specifies the utility used to apply patches for a recipe during the
  4373. :ref:`ref-tasks-patch` task. You can specify one of
  4374. three utilities: "patch", "quilt", or "git". The default utility used
  4375. is "quilt" except for the quilt-native recipe itself. Because the
  4376. quilt tool is not available at the time quilt-native is being
  4377. patched, it uses "patch".
  4378. If you wish to use an alternative patching tool, set the variable in
  4379. the recipe using one of the following:
  4380. ::
  4381. PATCHTOOL = "patch"
  4382. PATCHTOOL = "quilt"
  4383. PATCHTOOL = "git"
  4384. :term:`PE`
  4385. The epoch of the recipe. By default, this variable is unset. The
  4386. variable is used to make upgrades possible when the versioning scheme
  4387. changes in some backwards incompatible way.
  4388. ``PE`` is the default value of the :term:`PKGE` variable.
  4389. :term:`PF`
  4390. Specifies the recipe or package name and includes all version and
  4391. revision numbers (i.e. ``glibc-2.13-r20+svnr15508/`` and
  4392. ``bash-4.2-r1/``). This variable is comprised of the following:
  4393. ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`}
  4394. :term:`PIXBUF_PACKAGES`
  4395. When inheriting the :ref:`pixbufcache <ref-classes-pixbufcache>`
  4396. class, this variable identifies packages that contain the pixbuf
  4397. loaders used with ``gdk-pixbuf``. By default, the ``pixbufcache``
  4398. class assumes that the loaders are in the recipe's main package (i.e.
  4399. ``${``\ :term:`PN`\ ``}``). Use this variable if the
  4400. loaders you need are in a package other than that main package.
  4401. :term:`PKG`
  4402. The name of the resulting package created by the OpenEmbedded build
  4403. system.
  4404. .. note::
  4405. When using the ``PKG`` variable, you must use a package name override.
  4406. For example, when the :ref:`debian <ref-classes-debian>` class
  4407. renames the output package, it does so by setting
  4408. ``PKG_packagename``.
  4409. :term:`PKG_CONFIG_PATH`
  4410. The path to ``pkg-config`` files for the current build context.
  4411. ``pkg-config`` reads this variable from the environment.
  4412. :term:`PKGD`
  4413. Points to the destination directory for files to be packaged before
  4414. they are split into individual packages. This directory defaults to
  4415. the following:
  4416. ::
  4417. ${WORKDIR}/package
  4418. Do not change this default.
  4419. :term:`PKGDATA_DIR`
  4420. Points to a shared, global-state directory that holds data generated
  4421. during the packaging process. During the packaging process, the
  4422. :ref:`ref-tasks-packagedata` task packages data
  4423. for each recipe and installs it into this temporary, shared area.
  4424. This directory defaults to the following, which you should not
  4425. change:
  4426. ::
  4427. ${STAGING_DIR_HOST}/pkgdata
  4428. For examples of how this data is used, see the
  4429. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  4430. section in the Yocto Project Overview and Concepts Manual and the
  4431. ":ref:`dev-manual/common-tasks:viewing package information with \`\`oe-pkgdata-util\`\``"
  4432. section in the Yocto Project Development Tasks Manual. For more
  4433. information on the shared, global-state directory, see
  4434. :term:`STAGING_DIR_HOST`.
  4435. :term:`PKGDEST`
  4436. Points to the parent directory for files to be packaged after they
  4437. have been split into individual packages. This directory defaults to
  4438. the following:
  4439. ::
  4440. ${WORKDIR}/packages-split
  4441. Under this directory, the build system creates directories for each
  4442. package specified in :term:`PACKAGES`. Do not change
  4443. this default.
  4444. :term:`PKGDESTWORK`
  4445. Points to a temporary work area where the
  4446. :ref:`ref-tasks-package` task saves package metadata.
  4447. The ``PKGDESTWORK`` location defaults to the following:
  4448. ::
  4449. ${WORKDIR}/pkgdata
  4450. Do not change this default.
  4451. The :ref:`ref-tasks-packagedata` task copies the
  4452. package metadata from ``PKGDESTWORK`` to
  4453. :term:`PKGDATA_DIR` to make it available globally.
  4454. :term:`PKGE`
  4455. The epoch of the package(s) built by the recipe. By default, ``PKGE``
  4456. is set to :term:`PE`.
  4457. :term:`PKGR`
  4458. The revision of the package(s) built by the recipe. By default,
  4459. ``PKGR`` is set to :term:`PR`.
  4460. :term:`PKGV`
  4461. The version of the package(s) built by the recipe. By default,
  4462. ``PKGV`` is set to :term:`PV`.
  4463. :term:`PN`
  4464. This variable can have two separate functions depending on the
  4465. context: a recipe name or a resulting package name.
  4466. ``PN`` refers to a recipe name in the context of a file used by the
  4467. OpenEmbedded build system as input to create a package. The name is
  4468. normally extracted from the recipe file name. For example, if the
  4469. recipe is named ``expat_2.0.1.bb``, then the default value of ``PN``
  4470. will be "expat".
  4471. The variable refers to a package name in the context of a file
  4472. created or produced by the OpenEmbedded build system.
  4473. If applicable, the ``PN`` variable also contains any special suffix
  4474. or prefix. For example, using ``bash`` to build packages for the
  4475. native machine, ``PN`` is ``bash-native``. Using ``bash`` to build
  4476. packages for the target and for Multilib, ``PN`` would be ``bash``
  4477. and ``lib64-bash``, respectively.
  4478. :term:`PNBLACKLIST`
  4479. Lists recipes you do not want the OpenEmbedded build system to build.
  4480. This variable works in conjunction with the
  4481. :ref:`blacklist <ref-classes-blacklist>` class, which is inherited
  4482. globally.
  4483. To prevent a recipe from being built, use the ``PNBLACKLIST``
  4484. variable in your ``local.conf`` file. Here is an example that
  4485. prevents ``myrecipe`` from being built:
  4486. ::
  4487. PNBLACKLIST[myrecipe] = "Not supported by our organization."
  4488. :term:`POPULATE_SDK_POST_HOST_COMMAND`
  4489. Specifies a list of functions to call once the OpenEmbedded build
  4490. system has created the host part of the SDK. You can specify
  4491. functions separated by semicolons:
  4492. ::
  4493. POPULATE_SDK_POST_HOST_COMMAND += "function; ... "
  4494. If you need to pass the SDK path to a command within a function, you
  4495. can use ``${SDK_DIR}``, which points to the parent directory used by
  4496. the OpenEmbedded build system when creating SDK output. See the
  4497. :term:`SDK_DIR` variable for more information.
  4498. :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  4499. Specifies a list of functions to call once the OpenEmbedded build
  4500. system has created the target part of the SDK. You can specify
  4501. functions separated by semicolons:
  4502. ::
  4503. POPULATE_SDK_POST_TARGET_COMMAND += "function; ... "
  4504. If you need to pass the SDK path to a command within a function, you
  4505. can use ``${SDK_DIR}``, which points to the parent directory used by
  4506. the OpenEmbedded build system when creating SDK output. See the
  4507. :term:`SDK_DIR` variable for more information.
  4508. :term:`PR`
  4509. The revision of the recipe. The default value for this variable is
  4510. "r0". Subsequent revisions of the recipe conventionally have the
  4511. values "r1", "r2", and so forth. When :term:`PV` increases,
  4512. ``PR`` is conventionally reset to "r0".
  4513. .. note::
  4514. The OpenEmbedded build system does not need the aid of ``PR``
  4515. to know when to rebuild a recipe. The build system uses the task
  4516. :ref:`input checksums <overview-manual/concepts:checksums (signatures)>` along with the
  4517. :ref:`stamp <structure-build-tmp-stamps>` and
  4518. :ref:`overview-manual/concepts:shared state cache`
  4519. mechanisms.
  4520. The ``PR`` variable primarily becomes significant when a package
  4521. manager dynamically installs packages on an already built image. In
  4522. this case, ``PR``, which is the default value of
  4523. :term:`PKGR`, helps the package manager distinguish which
  4524. package is the most recent one in cases where many packages have the
  4525. same ``PV`` (i.e. ``PKGV``). A component having many packages with
  4526. the same ``PV`` usually means that the packages all install the same
  4527. upstream version, but with later (``PR``) version packages including
  4528. packaging fixes.
  4529. .. note::
  4530. ``PR`` does not need to be increased for changes that do not change the
  4531. package contents or metadata.
  4532. Because manually managing ``PR`` can be cumbersome and error-prone,
  4533. an automated solution exists. See the
  4534. ":ref:`dev-manual/common-tasks:working with a pr service`" section
  4535. in the Yocto Project Development Tasks Manual for more information.
  4536. :term:`PREFERRED_PROVIDER`
  4537. If multiple recipes provide the same item, this variable determines
  4538. which recipe is preferred and thus provides the item (i.e. the
  4539. preferred provider). You should always suffix this variable with the
  4540. name of the provided item. And, you should define the variable using
  4541. the preferred recipe's name (:term:`PN`). Here is a common
  4542. example:
  4543. ::
  4544. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  4545. In the previous example, multiple recipes are providing "virtual/kernel".
  4546. The ``PREFERRED_PROVIDER`` variable is set with the name (``PN``) of
  4547. the recipe you prefer to provide "virtual/kernel".
  4548. Following are more examples:
  4549. ::
  4550. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  4551. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  4552. For more
  4553. information, see the ":ref:`dev-manual/common-tasks:using virtual providers`"
  4554. section in the Yocto Project Development Tasks Manual.
  4555. .. note::
  4556. If you use a ``virtual/\*`` item with ``PREFERRED_PROVIDER``, then any
  4557. recipe that :term:`PROVIDES` that item but is not selected (defined)
  4558. by ``PREFERRED_PROVIDER`` is prevented from building, which is usually
  4559. desirable since this mechanism is designed to select between mutually
  4560. exclusive alternative providers.
  4561. :term:`PREFERRED_VERSION`
  4562. If multiple versions of recipes exist, this variable determines which
  4563. version is given preference. You must always suffix the variable with
  4564. the :term:`PN` you want to select, and you should set the
  4565. :term:`PV` accordingly for precedence.
  4566. The ``PREFERRED_VERSION`` variable supports limited wildcard use
  4567. through the "``%``" character. You can use the character to match any
  4568. number of characters, which can be useful when specifying versions
  4569. that contain long revision numbers that potentially change. Here are
  4570. two examples:
  4571. ::
  4572. PREFERRED_VERSION_python = "3.4.0"
  4573. PREFERRED_VERSION_linux-yocto = "5.0%"
  4574. .. note::
  4575. The use of the "%" character is limited in that it only works at the end of the
  4576. string. You cannot use the wildcard character in any other
  4577. location of the string.
  4578. The specified version is matched against :term:`PV`, which
  4579. does not necessarily match the version part of the recipe's filename.
  4580. For example, consider two recipes ``foo_1.2.bb`` and ``foo_git.bb``
  4581. where ``foo_git.bb`` contains the following assignment:
  4582. ::
  4583. PV = "1.1+git${SRCPV}"
  4584. In this case, the correct way to select
  4585. ``foo_git.bb`` is by using an assignment such as the following:
  4586. ::
  4587. PREFERRED_VERSION_foo = "1.1+git%"
  4588. Compare that previous example
  4589. against the following incorrect example, which does not work:
  4590. ::
  4591. PREFERRED_VERSION_foo = "git"
  4592. Sometimes the ``PREFERRED_VERSION`` variable can be set by
  4593. configuration files in a way that is hard to change. You can use
  4594. :term:`OVERRIDES` to set a machine-specific
  4595. override. Here is an example:
  4596. ::
  4597. PREFERRED_VERSION_linux-yocto_qemux86 = "5.0%"
  4598. Although not recommended, worst case, you can also use the
  4599. "forcevariable" override, which is the strongest override possible.
  4600. Here is an example:
  4601. ::
  4602. PREFERRED_VERSION_linux-yocto_forcevariable = "5.0%"
  4603. .. note::
  4604. The ``\_forcevariable`` override is not handled specially. This override
  4605. only works because the default value of ``OVERRIDES`` includes "forcevariable".
  4606. :term:`PREMIRRORS`
  4607. Specifies additional paths from which the OpenEmbedded build system
  4608. gets source code. When the build system searches for source code, it
  4609. first tries the local download directory. If that location fails, the
  4610. build system tries locations defined by ``PREMIRRORS``, the upstream
  4611. source, and then locations specified by
  4612. :term:`MIRRORS` in that order.
  4613. Assuming your distribution (:term:`DISTRO`) is "poky",
  4614. the default value for ``PREMIRRORS`` is defined in the
  4615. ``conf/distro/poky.conf`` file in the ``meta-poky`` Git repository.
  4616. Typically, you could add a specific server for the build system to
  4617. attempt before any others by adding something like the following to
  4618. the ``local.conf`` configuration file in the
  4619. :term:`Build Directory`:
  4620. ::
  4621. PREMIRRORS_prepend = "\
  4622. git://.*/.* http://www.yoctoproject.org/sources/ \n \
  4623. ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
  4624. http://.*/.* http://www.yoctoproject.org/sources/ \n \
  4625. https://.*/.* http://www.yoctoproject.org/sources/ \n"
  4626. These changes cause the
  4627. build system to intercept Git, FTP, HTTP, and HTTPS requests and
  4628. direct them to the ``http://`` sources mirror. You can use
  4629. ``file://`` URLs to point to local directories or network shares as
  4630. well.
  4631. :term:`PRIORITY`
  4632. Indicates the importance of a package.
  4633. ``PRIORITY`` is considered to be part of the distribution policy
  4634. because the importance of any given recipe depends on the purpose for
  4635. which the distribution is being produced. Thus, ``PRIORITY`` is not
  4636. normally set within recipes.
  4637. You can set ``PRIORITY`` to "required", "standard", "extra", and
  4638. "optional", which is the default.
  4639. :term:`PRIVATE_LIBS`
  4640. Specifies libraries installed within a recipe that should be ignored
  4641. by the OpenEmbedded build system's shared library resolver. This
  4642. variable is typically used when software being built by a recipe has
  4643. its own private versions of a library normally provided by another
  4644. recipe. In this case, you would not want the package containing the
  4645. private libraries to be set as a dependency on other unrelated
  4646. packages that should instead depend on the package providing the
  4647. standard version of the library.
  4648. Libraries specified in this variable should be specified by their
  4649. file name. For example, from the Firefox recipe in meta-browser:
  4650. ::
  4651. PRIVATE_LIBS = "libmozjs.so \
  4652. libxpcom.so \
  4653. libnspr4.so \
  4654. libxul.so \
  4655. libmozalloc.so \
  4656. libplc4.so \
  4657. libplds4.so"
  4658. For more information, see the
  4659. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  4660. section in the Yocto Project Overview and Concepts Manual.
  4661. :term:`PROVIDES`
  4662. A list of aliases by which a particular recipe can be known. By
  4663. default, a recipe's own ``PN`` is implicitly already in its
  4664. ``PROVIDES`` list and therefore does not need to mention that it
  4665. provides itself. If a recipe uses ``PROVIDES``, the additional
  4666. aliases are synonyms for the recipe and can be useful for satisfying
  4667. dependencies of other recipes during the build as specified by
  4668. ``DEPENDS``.
  4669. Consider the following example ``PROVIDES`` statement from the recipe
  4670. file ``eudev_3.2.9.bb``:
  4671. ::
  4672. PROVIDES += "udev"
  4673. The ``PROVIDES`` statement
  4674. results in the "eudev" recipe also being available as simply "udev".
  4675. .. note::
  4676. A recipe's own recipe name (:term:`PN`) is always implicitly prepended
  4677. to `PROVIDES`, so while using "+=" in the above example may not be
  4678. strictly necessary it is recommended to avoid confusion.
  4679. In addition to providing recipes under alternate names, the
  4680. ``PROVIDES`` mechanism is also used to implement virtual targets. A
  4681. virtual target is a name that corresponds to some particular
  4682. functionality (e.g. a Linux kernel). Recipes that provide the
  4683. functionality in question list the virtual target in ``PROVIDES``.
  4684. Recipes that depend on the functionality in question can include the
  4685. virtual target in ``DEPENDS`` to leave the choice of provider open.
  4686. Conventionally, virtual targets have names on the form
  4687. "virtual/function" (e.g. "virtual/kernel"). The slash is simply part
  4688. of the name and has no syntactical significance.
  4689. The :term:`PREFERRED_PROVIDER` variable is
  4690. used to select which particular recipe provides a virtual target.
  4691. .. note::
  4692. A corresponding mechanism for virtual runtime dependencies
  4693. (packages) exists. However, the mechanism does not depend on any
  4694. special functionality beyond ordinary variable assignments. For
  4695. example, ``VIRTUAL-RUNTIME_dev_manager`` refers to the package of
  4696. the component that manages the ``/dev`` directory.
  4697. Setting the "preferred provider" for runtime dependencies is as
  4698. simple as using the following assignment in a configuration file:
  4699. ::
  4700. VIRTUAL-RUNTIME_dev_manager = "udev"
  4701. :term:`PRSERV_HOST`
  4702. The network based :term:`PR` service host and port.
  4703. The ``conf/local.conf.sample.extended`` configuration file in the
  4704. :term:`Source Directory` shows how the
  4705. ``PRSERV_HOST`` variable is set:
  4706. ::
  4707. PRSERV_HOST = "localhost:0"
  4708. You must
  4709. set the variable if you want to automatically start a local :ref:`PR
  4710. service <dev-manual/common-tasks:working with a pr service>`. You can
  4711. set ``PRSERV_HOST`` to other values to use a remote PR service.
  4712. :term:`PSEUDO_IGNORE_PATHS`
  4713. A comma-separated (without spaces) list of path prefixes that should be ignored
  4714. by pseudo when monitoring and recording file operations, in order to avoid
  4715. problems with files being written to outside of the pseudo context and
  4716. reduce pseudo's overhead. A path is ignored if it matches any prefix in the list
  4717. and can include partial directory (or file) names.
  4718. :term:`PTEST_ENABLED`
  4719. Specifies whether or not :ref:`Package
  4720. Test <dev-manual/common-tasks:testing packages with ptest>` (ptest)
  4721. functionality is enabled when building a recipe. You should not set
  4722. this variable directly. Enabling and disabling building Package Tests
  4723. at build time should be done by adding "ptest" to (or removing it
  4724. from) :term:`DISTRO_FEATURES`.
  4725. :term:`PV`
  4726. The version of the recipe. The version is normally extracted from the
  4727. recipe filename. For example, if the recipe is named
  4728. ``expat_2.0.1.bb``, then the default value of ``PV`` will be "2.0.1".
  4729. ``PV`` is generally not overridden within a recipe unless it is
  4730. building an unstable (i.e. development) version from a source code
  4731. repository (e.g. Git or Subversion).
  4732. ``PV`` is the default value of the :term:`PKGV` variable.
  4733. :term:`PYTHON_ABI`
  4734. When used by recipes that inherit the
  4735. :ref:`distutils3 <ref-classes-distutils3>`,
  4736. :ref:`setuptools3 <ref-classes-setuptools3>`,
  4737. :ref:`distutils <ref-classes-distutils>`, or
  4738. :ref:`setuptools <ref-classes-setuptools>` classes, denotes the
  4739. Application Binary Interface (ABI) currently in use for Python. By
  4740. default, the ABI is "m". You do not have to set this variable as the
  4741. OpenEmbedded build system sets it for you.
  4742. The OpenEmbedded build system uses the ABI to construct directory
  4743. names used when installing the Python headers and libraries in
  4744. sysroot (e.g. ``.../python3.3m/...``).
  4745. Recipes that inherit the ``distutils`` class during cross-builds also
  4746. use this variable to locate the headers and libraries of the
  4747. appropriate Python that the extension is targeting.
  4748. :term:`PYTHON_PN`
  4749. When used by recipes that inherit the
  4750. `distutils3 <ref-classes-distutils3>`,
  4751. :ref:`setuptools3 <ref-classes-setuptools3>`,
  4752. :ref:`distutils <ref-classes-distutils>`, or
  4753. :ref:`setuptools <ref-classes-setuptools>` classes, specifies the
  4754. major Python version being built. For Python 3.x, ``PYTHON_PN`` would
  4755. be "python3". You do not have to set this variable as the
  4756. OpenEmbedded build system automatically sets it for you.
  4757. The variable allows recipes to use common infrastructure such as the
  4758. following:
  4759. ::
  4760. DEPENDS += "${PYTHON_PN}-native"
  4761. In the previous example,
  4762. the version of the dependency is ``PYTHON_PN``.
  4763. :term:`RANLIB`
  4764. The minimal command and arguments to run ``ranlib``.
  4765. :term:`RCONFLICTS`
  4766. The list of packages that conflict with packages. Note that packages
  4767. will not be installed if conflicting packages are not first removed.
  4768. Like all package-controlling variables, you must always use them in
  4769. conjunction with a package name override. Here is an example:
  4770. ::
  4771. RCONFLICTS_${PN} = "another_conflicting_package_name"
  4772. BitBake, which the OpenEmbedded build system uses, supports
  4773. specifying versioned dependencies. Although the syntax varies
  4774. depending on the packaging format, BitBake hides these differences
  4775. from you. Here is the general syntax to specify versions with the
  4776. ``RCONFLICTS`` variable:
  4777. ::
  4778. RCONFLICTS_${PN} = "package (operator version)"
  4779. For ``operator``, you can specify the following:
  4780. - =
  4781. - <
  4782. - >
  4783. - <=
  4784. - >=
  4785. For example, the following sets up a dependency on version 1.2 or
  4786. greater of the package ``foo``:
  4787. ::
  4788. RCONFLICTS_${PN} = "foo (>= 1.2)"
  4789. :term:`RDEPENDS`
  4790. Lists runtime dependencies of a package. These dependencies are other
  4791. packages that must be installed in order for the package to function
  4792. correctly. As an example, the following assignment declares that the
  4793. package ``foo`` needs the packages ``bar`` and ``baz`` to be
  4794. installed:
  4795. ::
  4796. RDEPENDS_foo = "bar baz"
  4797. The most common types of package
  4798. runtime dependencies are automatically detected and added. Therefore,
  4799. most recipes do not need to set ``RDEPENDS``. For more information,
  4800. see the
  4801. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  4802. section in the Yocto Project Overview and Concepts Manual.
  4803. The practical effect of the above ``RDEPENDS`` assignment is that
  4804. ``bar`` and ``baz`` will be declared as dependencies inside the
  4805. package ``foo`` when it is written out by one of the
  4806. :ref:`do_package_write_\* <ref-tasks-package_write_deb>` tasks.
  4807. Exactly how this is done depends on which package format is used,
  4808. which is determined by
  4809. :term:`PACKAGE_CLASSES`. When the
  4810. corresponding package manager installs the package, it will know to
  4811. also install the packages on which it depends.
  4812. To ensure that the packages ``bar`` and ``baz`` get built, the
  4813. previous ``RDEPENDS`` assignment also causes a task dependency to be
  4814. added. This dependency is from the recipe's
  4815. :ref:`ref-tasks-build` (not to be confused with
  4816. :ref:`ref-tasks-compile`) task to the
  4817. ``do_package_write_*`` task of the recipes that build ``bar`` and
  4818. ``baz``.
  4819. The names of the packages you list within ``RDEPENDS`` must be the
  4820. names of other packages - they cannot be recipe names. Although
  4821. package names and recipe names usually match, the important point
  4822. here is that you are providing package names within the ``RDEPENDS``
  4823. variable. For an example of the default list of packages created from
  4824. a recipe, see the :term:`PACKAGES` variable.
  4825. Because the ``RDEPENDS`` variable applies to packages being built,
  4826. you should always use the variable in a form with an attached package
  4827. name (remember that a single recipe can build multiple packages). For
  4828. example, suppose you are building a development package that depends
  4829. on the ``perl`` package. In this case, you would use the following
  4830. ``RDEPENDS`` statement:
  4831. ::
  4832. RDEPENDS_${PN}-dev += "perl"
  4833. In the example,
  4834. the development package depends on the ``perl`` package. Thus, the
  4835. ``RDEPENDS`` variable has the ``${PN}-dev`` package name as part of
  4836. the variable.
  4837. .. note::
  4838. ``RDEPENDS_${PN}-dev`` includes ``${``\ :term:`PN`\ ``}``
  4839. by default. This default is set in the BitBake configuration file
  4840. (``meta/conf/bitbake.conf``). Be careful not to accidentally remove
  4841. ``${PN}`` when modifying ``RDEPENDS_${PN}-dev``. Use the "+=" operator
  4842. rather than the "=" operator.
  4843. The package names you use with ``RDEPENDS`` must appear as they would
  4844. in the ``PACKAGES`` variable. The :term:`PKG` variable
  4845. allows a different name to be used for the final package (e.g. the
  4846. :ref:`debian <ref-classes-debian>` class uses this to rename
  4847. packages), but this final package name cannot be used with
  4848. ``RDEPENDS``, which makes sense as ``RDEPENDS`` is meant to be
  4849. independent of the package format used.
  4850. BitBake, which the OpenEmbedded build system uses, supports
  4851. specifying versioned dependencies. Although the syntax varies
  4852. depending on the packaging format, BitBake hides these differences
  4853. from you. Here is the general syntax to specify versions with the
  4854. ``RDEPENDS`` variable:
  4855. ::
  4856. RDEPENDS_${PN} = "package (operator version)"
  4857. For ``operator``, you can specify the following:
  4858. - =
  4859. - <
  4860. - >
  4861. - <=
  4862. - >=
  4863. For version, provide the version number.
  4864. .. note::
  4865. You can use ``EXTENDPKGV`` to provide a full package version
  4866. specification.
  4867. For example, the following sets up a dependency on version 1.2 or
  4868. greater of the package ``foo``:
  4869. ::
  4870. RDEPENDS_${PN} = "foo (>= 1.2)"
  4871. For information on build-time dependencies, see the
  4872. :term:`DEPENDS` variable. You can also see the
  4873. ":ref:`Tasks <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:tasks>`" and
  4874. ":ref:`Dependencies <bitbake:bitbake-user-manual/bitbake-user-manual-execution:dependencies>`" sections in the
  4875. BitBake User Manual for additional information on tasks and
  4876. dependencies.
  4877. :term:`REQUIRED_DISTRO_FEATURES`
  4878. When inheriting the
  4879. :ref:`features_check <ref-classes-features_check>`
  4880. class, this variable identifies distribution features that must exist
  4881. in the current configuration in order for the OpenEmbedded build
  4882. system to build the recipe. In other words, if the
  4883. ``REQUIRED_DISTRO_FEATURES`` variable lists a feature that does not
  4884. appear in ``DISTRO_FEATURES`` within the current configuration, then
  4885. the recipe will be skipped, and if the build system attempts to build
  4886. the recipe then an error will be triggered.
  4887. :term:`RM_WORK_EXCLUDE`
  4888. With ``rm_work`` enabled, this variable specifies a list of recipes
  4889. whose work directories should not be removed. See the
  4890. ":ref:`rm_work.bbclass <ref-classes-rm-work>`" section for more
  4891. details.
  4892. :term:`ROOT_HOME`
  4893. Defines the root home directory. By default, this directory is set as
  4894. follows in the BitBake configuration file:
  4895. ::
  4896. ROOT_HOME ??= "/home/root"
  4897. .. note::
  4898. This default value is likely used because some embedded solutions
  4899. prefer to have a read-only root filesystem and prefer to keep
  4900. writeable data in one place.
  4901. You can override the default by setting the variable in any layer or
  4902. in the ``local.conf`` file. Because the default is set using a "weak"
  4903. assignment (i.e. "??="), you can use either of the following forms to
  4904. define your override:
  4905. ::
  4906. ROOT_HOME = "/root"
  4907. ROOT_HOME ?= "/root"
  4908. These
  4909. override examples use ``/root``, which is probably the most commonly
  4910. used override.
  4911. :term:`ROOTFS`
  4912. Indicates a filesystem image to include as the root filesystem.
  4913. The ``ROOTFS`` variable is an optional variable used with the
  4914. :ref:`image-live <ref-classes-image-live>` class.
  4915. :term:`ROOTFS_POSTINSTALL_COMMAND`
  4916. Specifies a list of functions to call after the OpenEmbedded build
  4917. system has installed packages. You can specify functions separated by
  4918. semicolons:
  4919. ::
  4920. ROOTFS_POSTINSTALL_COMMAND += "function; ... "
  4921. If you need to pass the root filesystem path to a command within a
  4922. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  4923. directory that becomes the root filesystem image. See the
  4924. :term:`IMAGE_ROOTFS` variable for more
  4925. information.
  4926. :term:`ROOTFS_POSTPROCESS_COMMAND`
  4927. Specifies a list of functions to call once the OpenEmbedded build
  4928. system has created the root filesystem. You can specify functions
  4929. separated by semicolons:
  4930. ::
  4931. ROOTFS_POSTPROCESS_COMMAND += "function; ... "
  4932. If you need to pass the root filesystem path to a command within a
  4933. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  4934. directory that becomes the root filesystem image. See the
  4935. :term:`IMAGE_ROOTFS` variable for more
  4936. information.
  4937. :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  4938. Specifies a list of functions to call after the OpenEmbedded build
  4939. system has removed unnecessary packages. When runtime package
  4940. management is disabled in the image, several packages are removed
  4941. including ``base-passwd``, ``shadow``, and ``update-alternatives``.
  4942. You can specify functions separated by semicolons:
  4943. ::
  4944. ROOTFS_POSTUNINSTALL_COMMAND += "function; ... "
  4945. If you need to pass the root filesystem path to a command within a
  4946. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  4947. directory that becomes the root filesystem image. See the
  4948. :term:`IMAGE_ROOTFS` variable for more
  4949. information.
  4950. :term:`ROOTFS_PREPROCESS_COMMAND`
  4951. Specifies a list of functions to call before the OpenEmbedded build
  4952. system has created the root filesystem. You can specify functions
  4953. separated by semicolons:
  4954. ::
  4955. ROOTFS_PREPROCESS_COMMAND += "function; ... "
  4956. If you need to pass the root filesystem path to a command within a
  4957. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  4958. directory that becomes the root filesystem image. See the
  4959. :term:`IMAGE_ROOTFS` variable for more
  4960. information.
  4961. :term:`RPROVIDES`
  4962. A list of package name aliases that a package also provides. These
  4963. aliases are useful for satisfying runtime dependencies of other
  4964. packages both during the build and on the target (as specified by
  4965. ``RDEPENDS``).
  4966. .. note::
  4967. A package's own name is implicitly already in its ``RPROVIDES`` list.
  4968. As with all package-controlling variables, you must always use the
  4969. variable in conjunction with a package name override. Here is an
  4970. example:
  4971. ::
  4972. RPROVIDES_${PN} = "widget-abi-2"
  4973. :term:`RRECOMMENDS`
  4974. A list of packages that extends the usability of a package being
  4975. built. The package being built does not depend on this list of
  4976. packages in order to successfully build, but rather uses them for
  4977. extended usability. To specify runtime dependencies for packages, see
  4978. the ``RDEPENDS`` variable.
  4979. The package manager will automatically install the ``RRECOMMENDS``
  4980. list of packages when installing the built package. However, you can
  4981. prevent listed packages from being installed by using the
  4982. :term:`BAD_RECOMMENDATIONS`,
  4983. :term:`NO_RECOMMENDATIONS`, and
  4984. :term:`PACKAGE_EXCLUDE` variables.
  4985. Packages specified in ``RRECOMMENDS`` need not actually be produced.
  4986. However, a recipe must exist that provides each package, either
  4987. through the :term:`PACKAGES` or
  4988. :term:`PACKAGES_DYNAMIC` variables or the
  4989. :term:`RPROVIDES` variable, or an error will occur
  4990. during the build. If such a recipe does exist and the package is not
  4991. produced, the build continues without error.
  4992. Because the ``RRECOMMENDS`` variable applies to packages being built,
  4993. you should always attach an override to the variable to specify the
  4994. particular package whose usability is being extended. For example,
  4995. suppose you are building a development package that is extended to
  4996. support wireless functionality. In this case, you would use the
  4997. following:
  4998. ::
  4999. RRECOMMENDS_${PN}-dev += "wireless_package_name"
  5000. In the
  5001. example, the package name (``${PN}-dev``) must appear as it would in
  5002. the ``PACKAGES`` namespace before any renaming of the output package
  5003. by classes such as ``debian.bbclass``.
  5004. BitBake, which the OpenEmbedded build system uses, supports
  5005. specifying versioned recommends. Although the syntax varies depending
  5006. on the packaging format, BitBake hides these differences from you.
  5007. Here is the general syntax to specify versions with the
  5008. ``RRECOMMENDS`` variable:
  5009. ::
  5010. RRECOMMENDS_${PN} = "package (operator version)"
  5011. For ``operator``, you can specify the following:
  5012. - =
  5013. - <
  5014. - >
  5015. - <=
  5016. - >=
  5017. For example, the following sets up a recommend on version 1.2 or
  5018. greater of the package ``foo``:
  5019. ::
  5020. RRECOMMENDS_${PN} = "foo (>= 1.2)"
  5021. :term:`RREPLACES`
  5022. A list of packages replaced by a package. The package manager uses
  5023. this variable to determine which package should be installed to
  5024. replace other package(s) during an upgrade. In order to also have the
  5025. other package(s) removed at the same time, you must add the name of
  5026. the other package to the ``RCONFLICTS`` variable.
  5027. As with all package-controlling variables, you must use this variable
  5028. in conjunction with a package name override. Here is an example:
  5029. ::
  5030. RREPLACES_${PN} = "other_package_being_replaced"
  5031. BitBake, which the OpenEmbedded build system uses, supports
  5032. specifying versioned replacements. Although the syntax varies
  5033. depending on the packaging format, BitBake hides these differences
  5034. from you. Here is the general syntax to specify versions with the
  5035. ``RREPLACES`` variable:
  5036. ::
  5037. RREPLACES_${PN} = "package (operator version)"
  5038. For ``operator``, you can specify the following:
  5039. - =
  5040. - <
  5041. - >
  5042. - <=
  5043. - >=
  5044. For example, the following sets up a replacement using version 1.2
  5045. or greater of the package ``foo``:
  5046. ::
  5047. RREPLACES_${PN} = "foo (>= 1.2)"
  5048. :term:`RSUGGESTS`
  5049. A list of additional packages that you can suggest for installation
  5050. by the package manager at the time a package is installed. Not all
  5051. package managers support this functionality.
  5052. As with all package-controlling variables, you must always use this
  5053. variable in conjunction with a package name override. Here is an
  5054. example:
  5055. ::
  5056. RSUGGESTS_${PN} = "useful_package another_package"
  5057. :term:`S`
  5058. The location in the :term:`Build Directory` where
  5059. unpacked recipe source code resides. By default, this directory is
  5060. ``${``\ :term:`WORKDIR`\ ``}/${``\ :term:`BPN`\ ``}-${``\ :term:`PV`\ ``}``,
  5061. where ``${BPN}`` is the base recipe name and ``${PV}`` is the recipe
  5062. version. If the source tarball extracts the code to a directory named
  5063. anything other than ``${BPN}-${PV}``, or if the source code is
  5064. fetched from an SCM such as Git or Subversion, then you must set
  5065. ``S`` in the recipe so that the OpenEmbedded build system knows where
  5066. to find the unpacked source.
  5067. As an example, assume a :term:`Source Directory`
  5068. top-level folder named ``poky`` and a default Build Directory at
  5069. ``poky/build``. In this case, the work directory the build system
  5070. uses to keep the unpacked recipe for ``db`` is the following:
  5071. ::
  5072. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  5073. The unpacked source code resides in the ``db-5.1.19`` folder.
  5074. This next example assumes a Git repository. By default, Git
  5075. repositories are cloned to ``${WORKDIR}/git`` during
  5076. :ref:`ref-tasks-fetch`. Since this path is different
  5077. from the default value of ``S``, you must set it specifically so the
  5078. source can be located:
  5079. ::
  5080. SRC_URI = "git://path/to/repo.git"
  5081. S = "${WORKDIR}/git"
  5082. :term:`SANITY_REQUIRED_UTILITIES`
  5083. Specifies a list of command-line utilities that should be checked for
  5084. during the initial sanity checking process when running BitBake. If
  5085. any of the utilities are not installed on the build host, then
  5086. BitBake immediately exits with an error.
  5087. :term:`SANITY_TESTED_DISTROS`
  5088. A list of the host distribution identifiers that the build system has
  5089. been tested against. Identifiers consist of the host distributor ID
  5090. followed by the release, as reported by the ``lsb_release`` tool or
  5091. as read from ``/etc/lsb-release``. Separate the list items with
  5092. explicit newline characters (``\n``). If ``SANITY_TESTED_DISTROS`` is
  5093. not empty and the current value of
  5094. :term:`NATIVELSBSTRING` does not appear in the
  5095. list, then the build system reports a warning that indicates the
  5096. current host distribution has not been tested as a build host.
  5097. :term:`SDK_ARCH`
  5098. The target architecture for the SDK. Typically, you do not directly
  5099. set this variable. Instead, use :term:`SDKMACHINE`.
  5100. :term:`SDK_DEPLOY`
  5101. The directory set up and used by the
  5102. :ref:`populate_sdk_base <ref-classes-populate-sdk>` class to which
  5103. the SDK is deployed. The ``populate_sdk_base`` class defines
  5104. ``SDK_DEPLOY`` as follows:
  5105. ::
  5106. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  5107. :term:`SDK_DIR`
  5108. The parent directory used by the OpenEmbedded build system when
  5109. creating SDK output. The
  5110. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines
  5111. the variable as follows:
  5112. ::
  5113. SDK_DIR = "${WORKDIR}/sdk"
  5114. .. note::
  5115. The ``SDK_DIR`` directory is a temporary directory as it is part of
  5116. ``WORKDIR``. The final output directory is :term:`SDK_DEPLOY`.
  5117. :term:`SDK_EXT_TYPE`
  5118. Controls whether or not shared state artifacts are copied into the
  5119. extensible SDK. The default value of "full" copies all of the
  5120. required shared state artifacts into the extensible SDK. The value
  5121. "minimal" leaves these artifacts out of the SDK.
  5122. .. note::
  5123. If you set the variable to "minimal", you need to ensure
  5124. :term:`SSTATE_MIRRORS` is set in the SDK's configuration to enable the
  5125. artifacts to be fetched as needed.
  5126. :term:`SDK_HOST_MANIFEST`
  5127. The manifest file for the host part of the SDK. This file lists all
  5128. the installed packages that make up the host part of the SDK. The
  5129. file contains package information on a line-per-package basis as
  5130. follows:
  5131. ::
  5132. packagename packagearch version
  5133. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5134. defines the manifest file as follows:
  5135. ::
  5136. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  5137. The location is derived using the :term:`SDK_DEPLOY` and
  5138. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5139. :term:`SDK_INCLUDE_PKGDATA`
  5140. When set to "1", specifies to include the packagedata for all recipes
  5141. in the "world" target in the extensible SDK. Including this data
  5142. allows the ``devtool search`` command to find these recipes in search
  5143. results, as well as allows the ``devtool add`` command to map
  5144. dependencies more effectively.
  5145. .. note::
  5146. Enabling the ``SDK_INCLUDE_PKGDATA``
  5147. variable significantly increases build time because all of world
  5148. needs to be built. Enabling the variable also slightly increases
  5149. the size of the extensible SDK.
  5150. :term:`SDK_INCLUDE_TOOLCHAIN`
  5151. When set to "1", specifies to include the toolchain in the extensible
  5152. SDK. Including the toolchain is useful particularly when
  5153. :term:`SDK_EXT_TYPE` is set to "minimal" to keep
  5154. the SDK reasonably small but you still want to provide a usable
  5155. toolchain. For example, suppose you want to use the toolchain from an
  5156. IDE or from other tools and you do not want to perform additional
  5157. steps to install the toolchain.
  5158. The ``SDK_INCLUDE_TOOLCHAIN`` variable defaults to "0" if
  5159. ``SDK_EXT_TYPE`` is set to "minimal", and defaults to "1" if
  5160. ``SDK_EXT_TYPE`` is set to "full".
  5161. :term:`SDK_INHERIT_BLACKLIST`
  5162. A list of classes to remove from the :term:`INHERIT`
  5163. value globally within the extensible SDK configuration. The
  5164. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class sets the
  5165. default value:
  5166. ::
  5167. SDK_INHERIT_BLACKLIST ?= "buildhistory icecc"
  5168. Some classes are not generally applicable within the extensible SDK
  5169. context. You can use this variable to disable those classes.
  5170. For additional information on how to customize the extensible SDK's
  5171. configuration, see the
  5172. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  5173. section in the Yocto Project Application Development and the
  5174. Extensible Software Development Kit (eSDK) manual.
  5175. :term:`SDK_LOCAL_CONF_BLACKLIST`
  5176. A list of variables not allowed through from the OpenEmbedded build
  5177. system configuration into the extensible SDK configuration. Usually,
  5178. these are variables that are specific to the machine on which the
  5179. build system is running and thus would be potentially problematic
  5180. within the extensible SDK.
  5181. By default, ``SDK_LOCAL_CONF_BLACKLIST`` is set in the
  5182. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class and
  5183. excludes the following variables:
  5184. - :term:`CONF_VERSION`
  5185. - :term:`BB_NUMBER_THREADS`
  5186. - :term:`bitbake:BB_NUMBER_PARSE_THREADS`
  5187. - :term:`PARALLEL_MAKE`
  5188. - :term:`PRSERV_HOST`
  5189. - :term:`SSTATE_MIRRORS` :term:`DL_DIR`
  5190. - :term:`SSTATE_DIR` :term:`TMPDIR`
  5191. - :term:`BB_SERVER_TIMEOUT`
  5192. For additional information on how to customize the extensible SDK's
  5193. configuration, see the
  5194. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  5195. section in the Yocto Project Application Development and the
  5196. Extensible Software Development Kit (eSDK) manual.
  5197. :term:`SDK_LOCAL_CONF_WHITELIST`
  5198. A list of variables allowed through from the OpenEmbedded build
  5199. system configuration into the extensible SDK configuration. By
  5200. default, the list of variables is empty and is set in the
  5201. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class.
  5202. This list overrides the variables specified using the
  5203. :term:`SDK_LOCAL_CONF_BLACKLIST`
  5204. variable as well as any variables identified by automatic
  5205. blacklisting due to the "/" character being found at the start of the
  5206. value, which is usually indicative of being a path and thus might not
  5207. be valid on the system where the SDK is installed.
  5208. For additional information on how to customize the extensible SDK's
  5209. configuration, see the
  5210. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  5211. section in the Yocto Project Application Development and the
  5212. Extensible Software Development Kit (eSDK) manual.
  5213. :term:`SDK_NAME`
  5214. The base name for SDK output files. The name is derived from the
  5215. :term:`DISTRO`, :term:`TCLIBC`,
  5216. :term:`SDK_ARCH`,
  5217. :term:`IMAGE_BASENAME`, and
  5218. :term:`TUNE_PKGARCH` variables:
  5219. ::
  5220. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"
  5221. :term:`SDK_OS`
  5222. Specifies the operating system for which the SDK will be built. The
  5223. default value is the value of :term:`BUILD_OS`.
  5224. :term:`SDK_OUTPUT`
  5225. The location used by the OpenEmbedded build system when creating SDK
  5226. output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`
  5227. class defines the variable as follows:
  5228. ::
  5229. SDK_DIR = "${WORKDIR}/sdk"
  5230. SDK_OUTPUT = "${SDK_DIR}/image"
  5231. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  5232. .. note::
  5233. The ``SDK_OUTPUT`` directory is a temporary directory as it is part of
  5234. :term:`WORKDIR` by way of :term:`SDK_DIR`. The final output directory is
  5235. :term:`SDK_DEPLOY`.
  5236. :term:`SDK_PACKAGE_ARCHS`
  5237. Specifies a list of architectures compatible with the SDK machine.
  5238. This variable is set automatically and should not normally be
  5239. hand-edited. Entries are separated using spaces and listed in order
  5240. of priority. The default value for ``SDK_PACKAGE_ARCHS`` is "all any
  5241. noarch ${SDK_ARCH}-${SDKPKGSUFFIX}".
  5242. :term:`SDK_POSTPROCESS_COMMAND`
  5243. Specifies a list of functions to call once the OpenEmbedded build
  5244. system creates the SDK. You can specify functions separated by
  5245. semicolons: SDK_POSTPROCESS_COMMAND += "function; ... "
  5246. If you need to pass an SDK path to a command within a function, you
  5247. can use ``${SDK_DIR}``, which points to the parent directory used by
  5248. the OpenEmbedded build system when creating SDK output. See the
  5249. :term:`SDK_DIR` variable for more information.
  5250. :term:`SDK_PREFIX`
  5251. The toolchain binary prefix used for ``nativesdk`` recipes. The
  5252. OpenEmbedded build system uses the ``SDK_PREFIX`` value to set the
  5253. :term:`TARGET_PREFIX` when building
  5254. ``nativesdk`` recipes. The default value is "${SDK_SYS}-".
  5255. :term:`SDK_RECRDEP_TASKS`
  5256. A list of shared state tasks added to the extensible SDK. By default,
  5257. the following tasks are added:
  5258. - do_populate_lic
  5259. - do_package_qa
  5260. - do_populate_sysroot
  5261. - do_deploy
  5262. Despite the default value of "" for the
  5263. ``SDK_RECRDEP_TASKS`` variable, the above four tasks are always added
  5264. to the SDK. To specify tasks beyond these four, you need to use the
  5265. ``SDK_RECRDEP_TASKS`` variable (e.g. you are defining additional
  5266. tasks that are needed in order to build
  5267. :term:`SDK_TARGETS`).
  5268. :term:`SDK_SYS`
  5269. Specifies the system, including the architecture and the operating
  5270. system, for which the SDK will be built.
  5271. The OpenEmbedded build system automatically sets this variable based
  5272. on :term:`SDK_ARCH`,
  5273. :term:`SDK_VENDOR`, and
  5274. :term:`SDK_OS`. You do not need to set the ``SDK_SYS``
  5275. variable yourself.
  5276. :term:`SDK_TARGET_MANIFEST`
  5277. The manifest file for the target part of the SDK. This file lists all
  5278. the installed packages that make up the target part of the SDK. The
  5279. file contains package information on a line-per-package basis as
  5280. follows:
  5281. ::
  5282. packagename packagearch version
  5283. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5284. defines the manifest file as follows:
  5285. ::
  5286. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  5287. The location is derived using the :term:`SDK_DEPLOY` and
  5288. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5289. :term:`SDK_TARGETS`
  5290. A list of targets to install from shared state as part of the
  5291. standard or extensible SDK installation. The default value is "${PN}"
  5292. (i.e. the image from which the SDK is built).
  5293. The ``SDK_TARGETS`` variable is an internal variable and typically
  5294. would not be changed.
  5295. :term:`SDK_TITLE`
  5296. The title to be printed when running the SDK installer. By default,
  5297. this title is based on the :term:`DISTRO_NAME` or
  5298. :term:`DISTRO` variable and is set in the
  5299. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5300. follows:
  5301. ::
  5302. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  5303. For the default distribution "poky",
  5304. ``SDK_TITLE`` is set to "Poky (Yocto Project Reference Distro)".
  5305. For information on how to change this default title, see the
  5306. ":ref:`sdk-manual/appendix-customizing:changing the extensible sdk installer title`"
  5307. section in the Yocto Project Application Development and the
  5308. Extensible Software Development Kit (eSDK) manual.
  5309. :term:`SDK_UPDATE_URL`
  5310. An optional URL for an update server for the extensible SDK. If set,
  5311. the value is used as the default update server when running
  5312. ``devtool sdk-update`` within the extensible SDK.
  5313. :term:`SDK_VENDOR`
  5314. Specifies the name of the SDK vendor.
  5315. :term:`SDK_VERSION`
  5316. Specifies the version of the SDK. The distribution configuration file
  5317. (e.g. ``/meta-poky/conf/distro/poky.conf``) defines the
  5318. ``SDK_VERSION`` as follows:
  5319. ::
  5320. SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${DATE}','snapshot')}"
  5321. For additional information, see the
  5322. :term:`DISTRO_VERSION` and
  5323. :term:`DATE` variables.
  5324. :term:`SDKEXTPATH`
  5325. The default installation directory for the Extensible SDK. By
  5326. default, this directory is based on the :term:`DISTRO`
  5327. variable and is set in the
  5328. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5329. follows:
  5330. ::
  5331. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  5332. For the
  5333. default distribution "poky", the ``SDKEXTPATH`` is set to "poky_sdk".
  5334. For information on how to change this default directory, see the
  5335. ":ref:`sdk-manual/appendix-customizing:changing the default sdk installation directory`"
  5336. section in the Yocto Project Application Development and the
  5337. Extensible Software Development Kit (eSDK) manual.
  5338. :term:`SDKIMAGE_FEATURES`
  5339. Equivalent to ``IMAGE_FEATURES``. However, this variable applies to
  5340. the SDK generated from an image using the following command:
  5341. ::
  5342. $ bitbake -c populate_sdk imagename
  5343. :term:`SDKMACHINE`
  5344. The machine for which the SDK is built. In other words, the SDK is
  5345. built such that it runs on the target you specify with the
  5346. ``SDKMACHINE`` value. The value points to a corresponding ``.conf``
  5347. file under ``conf/machine-sdk/``.
  5348. You can use "i686" and "x86_64" as possible values for this variable.
  5349. The variable defaults to "i686" and is set in the local.conf file in
  5350. the Build Directory.
  5351. ::
  5352. SDKMACHINE ?= "i686"
  5353. .. note::
  5354. You cannot set the ``SDKMACHINE``
  5355. variable in your distribution configuration file. If you do, the
  5356. configuration will not take affect.
  5357. :term:`SDKPATH`
  5358. Defines the path offered to the user for installation of the SDK that
  5359. is generated by the OpenEmbedded build system. The path appears as
  5360. the default location for installing the SDK when you run the SDK's
  5361. installation script. You can override the offered path when you run
  5362. the script.
  5363. :term:`SDKTARGETSYSROOT`
  5364. The full path to the sysroot used for cross-compilation within an SDK
  5365. as it will be when installed into the default
  5366. :term:`SDKPATH`.
  5367. :term:`SECTION`
  5368. The section in which packages should be categorized. Package
  5369. management utilities can make use of this variable.
  5370. :term:`SELECTED_OPTIMIZATION`
  5371. Specifies the optimization flags passed to the C compiler when
  5372. building for the target. The flags are passed through the default
  5373. value of the :term:`TARGET_CFLAGS` variable.
  5374. The ``SELECTED_OPTIMIZATION`` variable takes the value of
  5375. ``FULL_OPTIMIZATION`` unless ``DEBUG_BUILD`` = "1". If that is the
  5376. case, the value of ``DEBUG_OPTIMIZATION`` is used.
  5377. :term:`SERIAL_CONSOLE`
  5378. Defines a serial console (TTY) to enable using
  5379. `getty <https://en.wikipedia.org/wiki/Getty_(Unix)>`__. Provide a
  5380. value that specifies the baud rate followed by the TTY device name
  5381. separated by a space. You cannot specify more than one TTY device:
  5382. ::
  5383. SERIAL_CONSOLE = "115200 ttyS0"
  5384. .. note::
  5385. The ``SERIAL_CONSOLE`` variable is deprecated. Please use the
  5386. :term:`SERIAL_CONSOLES` variable.
  5387. :term:`SERIAL_CONSOLES`
  5388. Defines a serial console (TTY) to enable using
  5389. `getty <https://en.wikipedia.org/wiki/Getty_(Unix)>`__. Provide a
  5390. value that specifies the baud rate followed by the TTY device name
  5391. separated by a semicolon. Use spaces to separate multiple devices:
  5392. ::
  5393. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  5394. :term:`SERIAL_CONSOLES_CHECK`
  5395. Specifies serial consoles, which must be listed in
  5396. :term:`SERIAL_CONSOLES`, to check against
  5397. ``/proc/console`` before enabling them using getty. This variable
  5398. allows aliasing in the format: <device>:<alias>. If a device was
  5399. listed as "sclp_line0" in ``/dev/`` and "ttyS0" was listed in
  5400. ``/proc/console``, you would do the following: ::
  5401. SERIAL_CONSOLES_CHECK = "slcp_line0:ttyS0"
  5402. This variable is currently only supported with SysVinit (i.e. not
  5403. with systemd).
  5404. :term:`SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS`
  5405. A list of recipe dependencies that should not be used to determine
  5406. signatures of tasks from one recipe when they depend on tasks from
  5407. another recipe. For example: ::
  5408. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  5409. In the previous example, ``intone`` depends on ``mplayer2``.
  5410. You can use the special token ``"*"`` on the left-hand side of the
  5411. dependency to match all recipes except the one on the right-hand
  5412. side. Here is an example: ::
  5413. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  5414. In the previous example, all recipes except ``quilt-native`` ignore
  5415. task signatures from the ``quilt-native`` recipe when determining
  5416. their task signatures.
  5417. Use of this variable is one mechanism to remove dependencies that
  5418. affect task signatures and thus force rebuilds when a recipe changes.
  5419. .. note::
  5420. If you add an inappropriate dependency for a recipe relationship,
  5421. the software might break during runtime if the interface of the
  5422. second recipe was changed after the first recipe had been built.
  5423. :term:`SIGGEN_EXCLUDERECIPES_ABISAFE`
  5424. A list of recipes that are completely stable and will never change.
  5425. The ABI for the recipes in the list are presented by output from the
  5426. tasks run to build the recipe. Use of this variable is one way to
  5427. remove dependencies from one recipe on another that affect task
  5428. signatures and thus force rebuilds when the recipe changes.
  5429. .. note::
  5430. If you add an inappropriate variable to this list, the software
  5431. might break at runtime if the interface of the recipe was changed
  5432. after the other had been built.
  5433. :term:`SITEINFO_BITS`
  5434. Specifies the number of bits for the target system CPU. The value
  5435. should be either "32" or "64".
  5436. :term:`SITEINFO_ENDIANNESS`
  5437. Specifies the endian byte order of the target system. The value
  5438. should be either "le" for little-endian or "be" for big-endian.
  5439. :term:`SKIP_FILEDEPS`
  5440. Enables removal of all files from the "Provides" section of an RPM
  5441. package. Removal of these files is required for packages containing
  5442. prebuilt binaries and libraries such as ``libstdc++`` and ``glibc``.
  5443. To enable file removal, set the variable to "1" in your
  5444. ``conf/local.conf`` configuration file in your:
  5445. :term:`Build Directory`.
  5446. ::
  5447. SKIP_FILEDEPS = "1"
  5448. :term:`SOC_FAMILY`
  5449. Groups together machines based upon the same family of SOC (System On
  5450. Chip). You typically set this variable in a common ``.inc`` file that
  5451. you include in the configuration files of all the machines.
  5452. .. note::
  5453. You must include ``conf/machine/include/soc-family.inc`` for this
  5454. variable to appear in :term:`MACHINEOVERRIDES`.
  5455. :term:`SOLIBS`
  5456. Defines the suffix for shared libraries used on the target platform.
  5457. By default, this suffix is ".so.*" for all Linux-based systems and is
  5458. defined in the ``meta/conf/bitbake.conf`` configuration file.
  5459. You will see this variable referenced in the default values of
  5460. ``FILES_${PN}``.
  5461. :term:`SOLIBSDEV`
  5462. Defines the suffix for the development symbolic link (symlink) for
  5463. shared libraries on the target platform. By default, this suffix is
  5464. ".so" for Linux-based systems and is defined in the
  5465. ``meta/conf/bitbake.conf`` configuration file.
  5466. You will see this variable referenced in the default values of
  5467. ``FILES_${PN}-dev``.
  5468. :term:`SOURCE_MIRROR_FETCH`
  5469. When you are fetching files to create a mirror of sources (i.e.
  5470. creating a source mirror), setting ``SOURCE_MIRROR_FETCH`` to "1" in
  5471. your ``local.conf`` configuration file ensures the source for all
  5472. recipes are fetched regardless of whether or not a recipe is
  5473. compatible with the configuration. A recipe is considered
  5474. incompatible with the currently configured machine when either or
  5475. both the :term:`COMPATIBLE_MACHINE`
  5476. variable and :term:`COMPATIBLE_HOST` variables
  5477. specify compatibility with a machine other than that of the current
  5478. machine or host.
  5479. .. note::
  5480. Do not set the ``SOURCE_MIRROR_FETCH``
  5481. variable unless you are creating a source mirror. In other words,
  5482. do not set the variable during a normal build.
  5483. :term:`SOURCE_MIRROR_URL`
  5484. Defines your own :term:`PREMIRRORS` from which to
  5485. first fetch source before attempting to fetch from the upstream
  5486. specified in :term:`SRC_URI`.
  5487. To use this variable, you must globally inherit the
  5488. :ref:`own-mirrors <ref-classes-own-mirrors>` class and then provide
  5489. the URL to your mirrors. Here is the general syntax:
  5490. ::
  5491. INHERIT += "own-mirrors"
  5492. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror"
  5493. .. note::
  5494. You can specify only a single URL in ``SOURCE_MIRROR_URL``.
  5495. :term:`SPDXLICENSEMAP`
  5496. Maps commonly used license names to their SPDX counterparts found in
  5497. ``meta/files/common-licenses/``. For the default ``SPDXLICENSEMAP``
  5498. mappings, see the ``meta/conf/licenses.conf`` file.
  5499. For additional information, see the :term:`LICENSE`
  5500. variable.
  5501. :term:`SPECIAL_PKGSUFFIX`
  5502. A list of prefixes for :term:`PN` used by the OpenEmbedded
  5503. build system to create variants of recipes or packages. The list
  5504. specifies the prefixes to strip off during certain circumstances such
  5505. as the generation of the :term:`BPN` variable.
  5506. :term:`SPL_BINARY`
  5507. The file type for the Secondary Program Loader (SPL). Some devices
  5508. use an SPL from which to boot (e.g. the BeagleBone development
  5509. board). For such cases, you can declare the file type of the SPL
  5510. binary in the ``u-boot.inc`` include file, which is used in the
  5511. U-Boot recipe.
  5512. The SPL file type is set to "null" by default in the ``u-boot.inc``
  5513. file as follows:
  5514. ::
  5515. # Some versions of u-boot build an SPL (Second Program Loader) image that
  5516. # should be packaged along with the u-boot binary as well as placed in the
  5517. # deploy directory. For those versions they can set the following variables
  5518. # to allow packaging the SPL.
  5519. SPL_BINARY ?= ""
  5520. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  5521. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  5522. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  5523. The ``SPL_BINARY`` variable helps form
  5524. various ``SPL_*`` variables used by the OpenEmbedded build system.
  5525. See the BeagleBone machine configuration example in the
  5526. ":ref:`dev-manual/common-tasks:adding a layer using the \`\`bitbake-layers\`\` script`"
  5527. section in the Yocto Project Board Support Package Developer's Guide
  5528. for additional information.
  5529. :term:`SRC_URI`
  5530. The list of source files - local or remote. This variable tells the
  5531. OpenEmbedded build system which bits to pull in for the build and how
  5532. to pull them in. For example, if the recipe or append file only needs
  5533. to fetch a tarball from the Internet, the recipe or append file uses
  5534. a single ``SRC_URI`` entry. On the other hand, if the recipe or
  5535. append file needs to fetch a tarball, apply two patches, and include
  5536. a custom file, the recipe or append file would include four instances
  5537. of the variable.
  5538. The following list explains the available URI protocols. URI
  5539. protocols are highly dependent on particular BitBake Fetcher
  5540. submodules. Depending on the fetcher BitBake uses, various URL
  5541. parameters are employed. For specifics on the supported Fetchers, see
  5542. the ":ref:`Fetchers <bitbake:bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`" section in the
  5543. BitBake User Manual.
  5544. - ``file://`` - Fetches files, which are usually files shipped
  5545. with the :term:`Metadata`, from the local machine (e.g.
  5546. :ref:`patch <overview-manual/concepts:patching>` files).
  5547. The path is relative to the :term:`FILESPATH`
  5548. variable. Thus, the build system searches, in order, from the
  5549. following directories, which are assumed to be a subdirectories of
  5550. the directory in which the recipe file (``.bb``) or append file
  5551. (``.bbappend``) resides:
  5552. - ``${BPN}`` - The base recipe name without any special suffix
  5553. or version numbers.
  5554. - ``${BP}`` - ``${BPN}-${PV}``. The base recipe name and
  5555. version but without any special package name suffix.
  5556. - *files -* Files within a directory, which is named ``files``
  5557. and is also alongside the recipe or append file.
  5558. .. note::
  5559. If you want the build system to pick up files specified through
  5560. a
  5561. SRC_URI
  5562. statement from your append file, you need to be sure to extend
  5563. the
  5564. FILESPATH
  5565. variable by also using the
  5566. FILESEXTRAPATHS
  5567. variable from within your append file.
  5568. - ``bzr://`` - Fetches files from a Bazaar revision control
  5569. repository.
  5570. - ``git://`` - Fetches files from a Git revision control
  5571. repository.
  5572. - ``osc://`` - Fetches files from an OSC (openSUSE Build service)
  5573. revision control repository.
  5574. - ``repo://`` - Fetches files from a repo (Git) repository.
  5575. - ``ccrc://`` - Fetches files from a ClearCase repository.
  5576. - ``http://`` - Fetches files from the Internet using ``http``.
  5577. - ``https://`` - Fetches files from the Internet using ``https``.
  5578. - ``ftp://`` - Fetches files from the Internet using ``ftp``.
  5579. - ``cvs://`` - Fetches files from a CVS revision control
  5580. repository.
  5581. - ``hg://`` - Fetches files from a Mercurial (``hg``) revision
  5582. control repository.
  5583. - ``p4://`` - Fetches files from a Perforce (``p4``) revision
  5584. control repository.
  5585. - ``ssh://`` - Fetches files from a secure shell.
  5586. - ``svn://`` - Fetches files from a Subversion (``svn``) revision
  5587. control repository.
  5588. - ``npm://`` - Fetches JavaScript modules from a registry.
  5589. - ``az://`` - Fetches files from an Azure Storage account.
  5590. Standard and recipe-specific options for ``SRC_URI`` exist. Here are
  5591. standard options:
  5592. - ``apply`` - Whether to apply the patch or not. The default
  5593. action is to apply the patch.
  5594. - ``striplevel`` - Which striplevel to use when applying the
  5595. patch. The default level is 1.
  5596. - ``patchdir`` - Specifies the directory in which the patch should
  5597. be applied. The default is ``${``\ :term:`S`\ ``}``.
  5598. Here are options specific to recipes building code from a revision
  5599. control system:
  5600. - ``mindate`` - Apply the patch only if
  5601. :term:`SRCDATE` is equal to or greater than
  5602. ``mindate``.
  5603. - ``maxdate`` - Apply the patch only if ``SRCDATE`` is not later
  5604. than ``maxdate``.
  5605. - ``minrev`` - Apply the patch only if ``SRCREV`` is equal to or
  5606. greater than ``minrev``.
  5607. - ``maxrev`` - Apply the patch only if ``SRCREV`` is not later
  5608. than ``maxrev``.
  5609. - ``rev`` - Apply the patch only if ``SRCREV`` is equal to
  5610. ``rev``.
  5611. - ``notrev`` - Apply the patch only if ``SRCREV`` is not equal to
  5612. ``rev``.
  5613. Here are some additional options worth mentioning:
  5614. - ``unpack`` - Controls whether or not to unpack the file if it is
  5615. an archive. The default action is to unpack the file.
  5616. - ``destsuffix`` - Places the file (or extracts its contents) into
  5617. the specified subdirectory of :term:`WORKDIR` when
  5618. the Git fetcher is used.
  5619. - ``subdir`` - Places the file (or extracts its contents) into the
  5620. specified subdirectory of ``WORKDIR`` when the local (``file://``)
  5621. fetcher is used.
  5622. - ``localdir`` - Places the file (or extracts its contents) into
  5623. the specified subdirectory of ``WORKDIR`` when the CVS fetcher is
  5624. used.
  5625. - ``subpath`` - Limits the checkout to a specific subpath of the
  5626. tree when using the Git fetcher is used.
  5627. - ``name`` - Specifies a name to be used for association with
  5628. ``SRC_URI`` checksums or :term:`SRCREV` when you have more than one
  5629. file or git repository specified in ``SRC_URI``. For example:
  5630. ::
  5631. SRC_URI = "git://example.com/foo.git;name=first \
  5632. git://example.com/bar.git;name=second \
  5633. http://example.com/file.tar.gz;name=third"
  5634. SRCREV_first = "f1d2d2f924e986ac86fdf7b36c94bcdf32beec15"
  5635. SRCREV_second = "e242ed3bffccdf271b7fbaf34ed72d089537b42f"
  5636. SRC_URI[third.sha256sum] = "13550350a8681c84c861aac2e5b440161c2b33a3e4f302ac680ca5b686de48de"
  5637. - ``downloadfilename`` - Specifies the filename used when storing
  5638. the downloaded file.
  5639. :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH`
  5640. By default, the OpenEmbedded build system automatically detects
  5641. whether ``SRC_URI`` contains files that are machine-specific. If so,
  5642. the build system automatically changes ``PACKAGE_ARCH``. Setting this
  5643. variable to "0" disables this behavior.
  5644. :term:`SRCDATE`
  5645. The date of the source code used to build the package. This variable
  5646. applies only if the source was fetched from a Source Code Manager
  5647. (SCM).
  5648. :term:`SRCPV`
  5649. Returns the version string of the current package. This string is
  5650. used to help define the value of :term:`PV`.
  5651. The ``SRCPV`` variable is defined in the ``meta/conf/bitbake.conf``
  5652. configuration file in the :term:`Source Directory` as
  5653. follows:
  5654. ::
  5655. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  5656. Recipes that need to define ``PV`` do so with the help of the
  5657. ``SRCPV``. For example, the ``ofono`` recipe (``ofono_git.bb``)
  5658. located in ``meta/recipes-connectivity`` in the Source Directory
  5659. defines ``PV`` as follows:
  5660. ::
  5661. PV = "0.12-git${SRCPV}"
  5662. :term:`SRCREV`
  5663. The revision of the source code used to build the package. This
  5664. variable applies to Subversion, Git, Mercurial, and Bazaar only. Note
  5665. that if you want to build a fixed revision and you want to avoid
  5666. performing a query on the remote repository every time BitBake parses
  5667. your recipe, you should specify a ``SRCREV`` that is a full revision
  5668. identifier and not just a tag.
  5669. .. note::
  5670. For information on limitations when inheriting the latest revision
  5671. of software using ``SRCREV``, see the :term:`AUTOREV` variable
  5672. description and the
  5673. ":ref:`dev-manual/common-tasks:automatically incrementing a package version number`"
  5674. section, which is in the Yocto Project Development Tasks Manual.
  5675. :term:`SSTATE_DIR`
  5676. The directory for the shared state cache.
  5677. :term:`SSTATE_MIRROR_ALLOW_NETWORK`
  5678. If set to "1", allows fetches from mirrors that are specified in
  5679. :term:`SSTATE_MIRRORS` to work even when
  5680. fetching from the network is disabled by setting ``BB_NO_NETWORK`` to
  5681. "1". Using the ``SSTATE_MIRROR_ALLOW_NETWORK`` variable is useful if
  5682. you have set ``SSTATE_MIRRORS`` to point to an internal server for
  5683. your shared state cache, but you want to disable any other fetching
  5684. from the network.
  5685. :term:`SSTATE_MIRRORS`
  5686. Configures the OpenEmbedded build system to search other mirror
  5687. locations for prebuilt cache data objects before building out the
  5688. data. This variable works like fetcher :term:`MIRRORS`
  5689. and :term:`PREMIRRORS` and points to the cache
  5690. locations to check for the shared state (sstate) objects.
  5691. You can specify a filesystem directory or a remote URL such as HTTP
  5692. or FTP. The locations you specify need to contain the shared state
  5693. cache (sstate-cache) results from previous builds. The sstate-cache
  5694. you point to can also be from builds on other machines.
  5695. When pointing to sstate build artifacts on another machine that uses
  5696. a different GCC version for native builds, you must configure
  5697. ``SSTATE_MIRRORS`` with a regular expression that maps local search
  5698. paths to server paths. The paths need to take into account
  5699. :term:`NATIVELSBSTRING` set by the
  5700. :ref:`uninative <ref-classes-uninative>` class. For example, the
  5701. following maps the local search path ``universal-4.9`` to the
  5702. server-provided path server_url_sstate_path:
  5703. ::
  5704. SSTATE_MIRRORS ?= "file://universal-4.9/(.*) http://server_url_sstate_path/universal-4.8/\1 \n"
  5705. If a mirror uses the same structure as
  5706. :term:`SSTATE_DIR`, you need to add "PATH" at the
  5707. end as shown in the examples below. The build system substitutes the
  5708. correct path within the directory structure.
  5709. ::
  5710. SSTATE_MIRRORS ?= "\
  5711. file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \
  5712. file://.* file:///some-local-dir/sstate/PATH"
  5713. :term:`SSTATE_SCAN_FILES`
  5714. Controls the list of files the OpenEmbedded build system scans for
  5715. hardcoded installation paths. The variable uses a space-separated
  5716. list of filenames (not paths) with standard wildcard characters
  5717. allowed.
  5718. During a build, the OpenEmbedded build system creates a shared state
  5719. (sstate) object during the first stage of preparing the sysroots.
  5720. That object is scanned for hardcoded paths for original installation
  5721. locations. The list of files that are scanned for paths is controlled
  5722. by the ``SSTATE_SCAN_FILES`` variable. Typically, recipes add files
  5723. they want to be scanned to the value of ``SSTATE_SCAN_FILES`` rather
  5724. than the variable being comprehensively set. The
  5725. :ref:`sstate <ref-classes-sstate>` class specifies the default list
  5726. of files.
  5727. For details on the process, see the
  5728. :ref:`staging <ref-classes-staging>` class.
  5729. :term:`STAGING_BASE_LIBDIR_NATIVE`
  5730. Specifies the path to the ``/lib`` subdirectory of the sysroot
  5731. directory for the build host.
  5732. :term:`STAGING_BASELIBDIR`
  5733. Specifies the path to the ``/lib`` subdirectory of the sysroot
  5734. directory for the target for which the current recipe is being built
  5735. (:term:`STAGING_DIR_HOST`).
  5736. :term:`STAGING_BINDIR`
  5737. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  5738. directory for the target for which the current recipe is being built
  5739. (:term:`STAGING_DIR_HOST`).
  5740. :term:`STAGING_BINDIR_CROSS`
  5741. Specifies the path to the directory containing binary configuration
  5742. scripts. These scripts provide configuration information for other
  5743. software that wants to make use of libraries or include files
  5744. provided by the software associated with the script.
  5745. .. note::
  5746. This style of build configuration has been largely replaced by
  5747. ``pkg-config``. Consequently, if ``pkg-config`` is supported by the
  5748. library to which you are linking, it is recommended you use
  5749. ``pkg-config`` instead of a provided configuration script.
  5750. :term:`STAGING_BINDIR_NATIVE`
  5751. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  5752. directory for the build host.
  5753. :term:`STAGING_DATADIR`
  5754. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  5755. directory for the target for which the current recipe is being built
  5756. (:term:`STAGING_DIR_HOST`).
  5757. :term:`STAGING_DATADIR_NATIVE`
  5758. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  5759. directory for the build host.
  5760. :term:`STAGING_DIR`
  5761. Helps construct the ``recipe-sysroots`` directory, which is used
  5762. during packaging.
  5763. For information on how staging for recipe-specific sysroots occurs,
  5764. see the :ref:`ref-tasks-populate_sysroot`
  5765. task, the ":ref:`sdk-manual/extensible:sharing files between recipes`"
  5766. section in the Yocto Project Development Tasks Manual, the
  5767. ":ref:`overview-manual/concepts:configuration, compilation, and staging`"
  5768. section in the Yocto Project Overview and Concepts Manual, and the
  5769. :term:`SYSROOT_DIRS` variable.
  5770. .. note::
  5771. Recipes should never write files directly under the ``STAGING_DIR``
  5772. directory because the OpenEmbedded build system manages the
  5773. directory automatically. Instead, files should be installed to
  5774. ``${``\ :term:`D`\ ``}`` within your recipe's :ref:`ref-tasks-install`
  5775. task and then the OpenEmbedded build system will stage a subset of
  5776. those files into the sysroot.
  5777. :term:`STAGING_DIR_HOST`
  5778. Specifies the path to the sysroot directory for the system on which
  5779. the component is built to run (the system that hosts the component).
  5780. For most recipes, this sysroot is the one in which that recipe's
  5781. :ref:`ref-tasks-populate_sysroot` task copies
  5782. files. Exceptions include ``-native`` recipes, where the
  5783. ``do_populate_sysroot`` task instead uses
  5784. :term:`STAGING_DIR_NATIVE`. Depending on
  5785. the type of recipe and the build target, ``STAGING_DIR_HOST`` can
  5786. have the following values:
  5787. - For recipes building for the target machine, the value is
  5788. "${:term:`STAGING_DIR`}/${:term:`MACHINE`}".
  5789. - For native recipes building for the build host, the value is empty
  5790. given the assumption that when building for the build host, the
  5791. build host's own directories should be used.
  5792. .. note::
  5793. ``-native`` recipes are not installed into host paths like such
  5794. as ``/usr``. Rather, these recipes are installed into
  5795. ``STAGING_DIR_NATIVE``. When compiling ``-native`` recipes,
  5796. standard build environment variables such as
  5797. :term:`CPPFLAGS` and
  5798. :term:`CFLAGS` are set up so that both host paths
  5799. and ``STAGING_DIR_NATIVE`` are searched for libraries and
  5800. headers using, for example, GCC's ``-isystem`` option.
  5801. Thus, the emphasis is that the ``STAGING_DIR*`` variables
  5802. should be viewed as input variables by tasks such as
  5803. :ref:`ref-tasks-configure`,
  5804. :ref:`ref-tasks-compile`, and
  5805. :ref:`ref-tasks-install`. Having the real system
  5806. root correspond to ``STAGING_DIR_HOST`` makes conceptual sense
  5807. for ``-native`` recipes, as they make use of host headers and
  5808. libraries.
  5809. :term:`STAGING_DIR_NATIVE`
  5810. Specifies the path to the sysroot directory used when building
  5811. components that run on the build host itself.
  5812. :term:`STAGING_DIR_TARGET`
  5813. Specifies the path to the sysroot used for the system for which the
  5814. component generates code. For components that do not generate code,
  5815. which is the majority, ``STAGING_DIR_TARGET`` is set to match
  5816. :term:`STAGING_DIR_HOST`.
  5817. Some recipes build binaries that can run on the target system but
  5818. those binaries in turn generate code for another different system
  5819. (e.g. cross-canadian recipes). Using terminology from GNU, the
  5820. primary system is referred to as the "HOST" and the secondary, or
  5821. different, system is referred to as the "TARGET". Thus, the binaries
  5822. run on the "HOST" system and generate binaries for the "TARGET"
  5823. system. The ``STAGING_DIR_HOST`` variable points to the sysroot used
  5824. for the "HOST" system, while ``STAGING_DIR_TARGET`` points to the
  5825. sysroot used for the "TARGET" system.
  5826. :term:`STAGING_ETCDIR_NATIVE`
  5827. Specifies the path to the ``/etc`` subdirectory of the sysroot
  5828. directory for the build host.
  5829. :term:`STAGING_EXECPREFIXDIR`
  5830. Specifies the path to the ``/usr`` subdirectory of the sysroot
  5831. directory for the target for which the current recipe is being built
  5832. (:term:`STAGING_DIR_HOST`).
  5833. :term:`STAGING_INCDIR`
  5834. Specifies the path to the ``/usr/include`` subdirectory of the
  5835. sysroot directory for the target for which the current recipe being
  5836. built (:term:`STAGING_DIR_HOST`).
  5837. :term:`STAGING_INCDIR_NATIVE`
  5838. Specifies the path to the ``/usr/include`` subdirectory of the
  5839. sysroot directory for the build host.
  5840. :term:`STAGING_KERNEL_BUILDDIR`
  5841. Points to the directory containing the kernel build artifacts.
  5842. Recipes building software that needs to access kernel build artifacts
  5843. (e.g. ``systemtap-uprobes``) can look in the directory specified with
  5844. the ``STAGING_KERNEL_BUILDDIR`` variable to find these artifacts
  5845. after the kernel has been built.
  5846. :term:`STAGING_KERNEL_DIR`
  5847. The directory with kernel headers that are required to build
  5848. out-of-tree modules.
  5849. :term:`STAGING_LIBDIR`
  5850. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  5851. directory for the target for which the current recipe is being built
  5852. (:term:`STAGING_DIR_HOST`).
  5853. :term:`STAGING_LIBDIR_NATIVE`
  5854. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  5855. directory for the build host.
  5856. :term:`STAMP`
  5857. Specifies the base path used to create recipe stamp files. The path
  5858. to an actual stamp file is constructed by evaluating this string and
  5859. then appending additional information. Currently, the default
  5860. assignment for ``STAMP`` as set in the ``meta/conf/bitbake.conf``
  5861. file is:
  5862. ::
  5863. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  5864. For information on how BitBake uses stamp files to determine if a
  5865. task should be rerun, see the
  5866. ":ref:`overview-manual/concepts:stamp files and the rerunning of tasks`"
  5867. section in the Yocto Project Overview and Concepts Manual.
  5868. See :term:`STAMPS_DIR`,
  5869. :term:`MULTIMACH_TARGET_SYS`,
  5870. :term:`PN`, :term:`EXTENDPE`,
  5871. :term:`PV`, and :term:`PR` for related variable
  5872. information.
  5873. :term:`STAMPS_DIR`
  5874. Specifies the base directory in which the OpenEmbedded build system
  5875. places stamps. The default directory is ``${TMPDIR}/stamps``.
  5876. :term:`STRIP`
  5877. The minimal command and arguments to run ``strip``, which is used to
  5878. strip symbols.
  5879. :term:`SUMMARY`
  5880. The short (72 characters or less) summary of the binary package for
  5881. packaging systems such as ``opkg``, ``rpm``, or ``dpkg``. By default,
  5882. ``SUMMARY`` is used to define the
  5883. :term:`DESCRIPTION` variable if ``DESCRIPTION`` is
  5884. not set in the recipe.
  5885. :term:`SVNDIR`
  5886. The directory in which files checked out of a Subversion system are
  5887. stored.
  5888. :term:`SYSLINUX_DEFAULT_CONSOLE`
  5889. Specifies the kernel boot default console. If you want to use a
  5890. console other than the default, set this variable in your recipe as
  5891. follows where "X" is the console number you want to use:
  5892. ::
  5893. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  5894. The :ref:`syslinux <ref-classes-syslinux>` class initially sets
  5895. this variable to null but then checks for a value later.
  5896. :term:`SYSLINUX_OPTS`
  5897. Lists additional options to add to the syslinux file. You need to set
  5898. this variable in your recipe. If you want to list multiple options,
  5899. separate the options with a semicolon character (``;``).
  5900. The :ref:`syslinux <ref-classes-syslinux>` class uses this variable
  5901. to create a set of options.
  5902. :term:`SYSLINUX_SERIAL`
  5903. Specifies the alternate serial port or turns it off. To turn off
  5904. serial, set this variable to an empty string in your recipe. The
  5905. variable's default value is set in the
  5906. :ref:`syslinux <ref-classes-syslinux>` class as follows:
  5907. ::
  5908. SYSLINUX_SERIAL ?= "0 115200"
  5909. The class checks for and uses the variable as needed.
  5910. :term:`SYSLINUX_SERIAL_TTY`
  5911. Specifies the alternate console=tty... kernel boot argument. The
  5912. variable's default value is set in the
  5913. :ref:`syslinux <ref-classes-syslinux>` class as follows:
  5914. ::
  5915. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  5916. The class checks for and uses the variable as needed.
  5917. :term:`SYSLINUX_SPLASH`
  5918. An ``.LSS`` file used as the background for the VGA boot menu when
  5919. you use the boot menu. You need to set this variable in your recipe.
  5920. The :ref:`syslinux <ref-classes-syslinux>` class checks for this
  5921. variable and if found, the OpenEmbedded build system installs the
  5922. splash screen.
  5923. :term:`SYSROOT_DESTDIR`
  5924. Points to the temporary directory under the work directory (default
  5925. "``${``\ :term:`WORKDIR`\ ``}/sysroot-destdir``")
  5926. where the files populated into the sysroot are assembled during the
  5927. :ref:`ref-tasks-populate_sysroot` task.
  5928. :term:`SYSROOT_DIRS`
  5929. Directories that are staged into the sysroot by the
  5930. :ref:`ref-tasks-populate_sysroot` task. By
  5931. default, the following directories are staged:
  5932. ::
  5933. SYSROOT_DIRS = " \
  5934. ${includedir} \
  5935. ${libdir} \
  5936. ${base_libdir} \
  5937. ${nonarch_base_libdir} \
  5938. ${datadir} \
  5939. "
  5940. :term:`SYSROOT_DIRS_BLACKLIST`
  5941. Directories that are not staged into the sysroot by the
  5942. :ref:`ref-tasks-populate_sysroot` task. You
  5943. can use this variable to exclude certain subdirectories of
  5944. directories listed in :term:`SYSROOT_DIRS` from
  5945. staging. By default, the following directories are not staged:
  5946. ::
  5947. SYSROOT_DIRS_BLACKLIST = " \
  5948. ${mandir} \
  5949. ${docdir} \
  5950. ${infodir} \
  5951. ${datadir}/locale \
  5952. ${datadir}/applications \
  5953. ${datadir}/fonts \
  5954. ${datadir}/pixmaps \
  5955. "
  5956. :term:`SYSROOT_DIRS_NATIVE`
  5957. Extra directories staged into the sysroot by the
  5958. :ref:`ref-tasks-populate_sysroot` task for
  5959. ``-native`` recipes, in addition to those specified in
  5960. :term:`SYSROOT_DIRS`. By default, the following
  5961. extra directories are staged:
  5962. ::
  5963. SYSROOT_DIRS_NATIVE = " \
  5964. ${bindir} \
  5965. ${sbindir} \
  5966. ${base_bindir} \
  5967. ${base_sbindir} \
  5968. ${libexecdir} \
  5969. ${sysconfdir} \
  5970. ${localstatedir} \
  5971. "
  5972. .. note::
  5973. Programs built by ``-native`` recipes run directly from the sysroot
  5974. (:term:`STAGING_DIR_NATIVE`), which is why additional directories
  5975. containing program executables and supporting files need to be staged.
  5976. :term:`SYSROOT_PREPROCESS_FUNCS`
  5977. A list of functions to execute after files are staged into the
  5978. sysroot. These functions are usually used to apply additional
  5979. processing on the staged files, or to stage additional files.
  5980. :term:`SYSTEMD_AUTO_ENABLE`
  5981. When inheriting the :ref:`systemd <ref-classes-systemd>` class,
  5982. this variable specifies whether the specified service in
  5983. :term:`SYSTEMD_SERVICE` should start
  5984. automatically or not. By default, the service is enabled to
  5985. automatically start at boot time. The default setting is in the
  5986. :ref:`systemd <ref-classes-systemd>` class as follows:
  5987. ::
  5988. SYSTEMD_AUTO_ENABLE ??= "enable"
  5989. You can disable the service by setting the variable to "disable".
  5990. :term:`SYSTEMD_BOOT_CFG`
  5991. When :term:`EFI_PROVIDER` is set to
  5992. "systemd-boot", the ``SYSTEMD_BOOT_CFG`` variable specifies the
  5993. configuration file that should be used. By default, the
  5994. :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the
  5995. ``SYSTEMD_BOOT_CFG`` as follows:
  5996. ::
  5997. SYSTEMD_BOOT_CFG ?= "${:term:`S`}/loader.conf"
  5998. For information on Systemd-boot, see the `Systemd-boot
  5999. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6000. :term:`SYSTEMD_BOOT_ENTRIES`
  6001. When :term:`EFI_PROVIDER` is set to
  6002. "systemd-boot", the ``SYSTEMD_BOOT_ENTRIES`` variable specifies a
  6003. list of entry files (``*.conf``) to install that contain one boot
  6004. entry per file. By default, the
  6005. :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the
  6006. ``SYSTEMD_BOOT_ENTRIES`` as follows:
  6007. ::
  6008. SYSTEMD_BOOT_ENTRIES ?= ""
  6009. For information on Systemd-boot, see the `Systemd-boot
  6010. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6011. :term:`SYSTEMD_BOOT_TIMEOUT`
  6012. When :term:`EFI_PROVIDER` is set to
  6013. "systemd-boot", the ``SYSTEMD_BOOT_TIMEOUT`` variable specifies the
  6014. boot menu timeout in seconds. By default, the
  6015. :ref:`systemd-boot <ref-classes-systemd-boot>` class sets the
  6016. ``SYSTEMD_BOOT_TIMEOUT`` as follows:
  6017. ::
  6018. SYSTEMD_BOOT_TIMEOUT ?= "10"
  6019. For information on Systemd-boot, see the `Systemd-boot
  6020. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6021. :term:`SYSTEMD_PACKAGES`
  6022. When inheriting the :ref:`systemd <ref-classes-systemd>` class,
  6023. this variable locates the systemd unit files when they are not found
  6024. in the main recipe's package. By default, the ``SYSTEMD_PACKAGES``
  6025. variable is set such that the systemd unit files are assumed to
  6026. reside in the recipes main package:
  6027. ::
  6028. SYSTEMD_PACKAGES ?= "${PN}"
  6029. If these unit files are not in this recipe's main package, you need
  6030. to use ``SYSTEMD_PACKAGES`` to list the package or packages in which
  6031. the build system can find the systemd unit files.
  6032. :term:`SYSTEMD_SERVICE`
  6033. When inheriting the :ref:`systemd <ref-classes-systemd>` class,
  6034. this variable specifies the systemd service name for a package.
  6035. When you specify this file in your recipe, use a package name
  6036. override to indicate the package to which the value applies. Here is
  6037. an example from the connman recipe:
  6038. ::
  6039. SYSTEMD_SERVICE_${PN} = "connman.service"
  6040. :term:`SYSVINIT_ENABLED_GETTYS`
  6041. When using
  6042. :ref:`SysVinit <dev-manual/common-tasks:enabling system services>`,
  6043. specifies a space-separated list of the virtual terminals that should
  6044. run a `getty <https://en.wikipedia.org/wiki/Getty_%28Unix%29>`__
  6045. (allowing login), assuming :term:`USE_VT` is not set to
  6046. "0".
  6047. The default value for ``SYSVINIT_ENABLED_GETTYS`` is "1" (i.e. only
  6048. run a getty on the first virtual terminal).
  6049. :term:`T`
  6050. This variable points to a directory were BitBake places temporary
  6051. files, which consist mostly of task logs and scripts, when building a
  6052. particular recipe. The variable is typically set as follows:
  6053. ::
  6054. T = "${WORKDIR}/temp"
  6055. The :term:`WORKDIR` is the directory into which
  6056. BitBake unpacks and builds the recipe. The default ``bitbake.conf``
  6057. file sets this variable.
  6058. The ``T`` variable is not to be confused with the
  6059. :term:`TMPDIR` variable, which points to the root of
  6060. the directory tree where BitBake places the output of an entire
  6061. build.
  6062. :term:`TARGET_ARCH`
  6063. The target machine's architecture. The OpenEmbedded build system
  6064. supports many architectures. Here is an example list of architectures
  6065. supported. This list is by no means complete as the architecture is
  6066. configurable:
  6067. - arm
  6068. - i586
  6069. - x86_64
  6070. - powerpc
  6071. - powerpc64
  6072. - mips
  6073. - mipsel
  6074. For additional information on machine architectures, see the
  6075. :term:`TUNE_ARCH` variable.
  6076. :term:`TARGET_AS_ARCH`
  6077. Specifies architecture-specific assembler flags for the target
  6078. system. ``TARGET_AS_ARCH`` is initialized from
  6079. :term:`TUNE_ASARGS` by default in the BitBake
  6080. configuration file (``meta/conf/bitbake.conf``):
  6081. ::
  6082. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  6083. :term:`TARGET_CC_ARCH`
  6084. Specifies architecture-specific C compiler flags for the target
  6085. system. ``TARGET_CC_ARCH`` is initialized from
  6086. :term:`TUNE_CCARGS` by default.
  6087. .. note::
  6088. It is a common workaround to append :term:`LDFLAGS` to
  6089. ``TARGET_CC_ARCH`` in recipes that build software for the target that
  6090. would not otherwise respect the exported ``LDFLAGS`` variable.
  6091. :term:`TARGET_CC_KERNEL_ARCH`
  6092. This is a specific kernel compiler flag for a CPU or Application
  6093. Binary Interface (ABI) tune. The flag is used rarely and only for
  6094. cases where a userspace :term:`TUNE_CCARGS` is not
  6095. compatible with the kernel compilation. The ``TARGET_CC_KERNEL_ARCH``
  6096. variable allows the kernel (and associated modules) to use a
  6097. different configuration. See the
  6098. ``meta/conf/machine/include/arm/feature-arm-thumb.inc`` file in the
  6099. :term:`Source Directory` for an example.
  6100. :term:`TARGET_CFLAGS`
  6101. Specifies the flags to pass to the C compiler when building for the
  6102. target. When building in the target context,
  6103. :term:`CFLAGS` is set to the value of this variable by
  6104. default.
  6105. Additionally, the SDK's environment setup script sets the ``CFLAGS``
  6106. variable in the environment to the ``TARGET_CFLAGS`` value so that
  6107. executables built using the SDK also have the flags applied.
  6108. :term:`TARGET_CPPFLAGS`
  6109. Specifies the flags to pass to the C pre-processor (i.e. to both the
  6110. C and the C++ compilers) when building for the target. When building
  6111. in the target context, :term:`CPPFLAGS` is set to the
  6112. value of this variable by default.
  6113. Additionally, the SDK's environment setup script sets the
  6114. ``CPPFLAGS`` variable in the environment to the ``TARGET_CPPFLAGS``
  6115. value so that executables built using the SDK also have the flags
  6116. applied.
  6117. :term:`TARGET_CXXFLAGS`
  6118. Specifies the flags to pass to the C++ compiler when building for the
  6119. target. When building in the target context,
  6120. :term:`CXXFLAGS` is set to the value of this variable
  6121. by default.
  6122. Additionally, the SDK's environment setup script sets the
  6123. ``CXXFLAGS`` variable in the environment to the ``TARGET_CXXFLAGS``
  6124. value so that executables built using the SDK also have the flags
  6125. applied.
  6126. :term:`TARGET_FPU`
  6127. Specifies the method for handling FPU code. For FPU-less targets,
  6128. which include most ARM CPUs, the variable must be set to "soft". If
  6129. not, the kernel emulation gets used, which results in a performance
  6130. penalty.
  6131. :term:`TARGET_LD_ARCH`
  6132. Specifies architecture-specific linker flags for the target system.
  6133. ``TARGET_LD_ARCH`` is initialized from
  6134. :term:`TUNE_LDARGS` by default in the BitBake
  6135. configuration file (``meta/conf/bitbake.conf``):
  6136. ::
  6137. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  6138. :term:`TARGET_LDFLAGS`
  6139. Specifies the flags to pass to the linker when building for the
  6140. target. When building in the target context,
  6141. :term:`LDFLAGS` is set to the value of this variable
  6142. by default.
  6143. Additionally, the SDK's environment setup script sets the
  6144. :term:`LDFLAGS` variable in the environment to the
  6145. ``TARGET_LDFLAGS`` value so that executables built using the SDK also
  6146. have the flags applied.
  6147. :term:`TARGET_OS`
  6148. Specifies the target's operating system. The variable can be set to
  6149. "linux" for glibc-based systems (GNU C Library) and to "linux-musl"
  6150. for musl libc. For ARM/EABI targets, "linux-gnueabi" and
  6151. "linux-musleabi" possible values exist.
  6152. :term:`TARGET_PREFIX`
  6153. Specifies the prefix used for the toolchain binary target tools.
  6154. Depending on the type of recipe and the build target,
  6155. ``TARGET_PREFIX`` is set as follows:
  6156. - For recipes building for the target machine, the value is
  6157. "${:term:`TARGET_SYS`}-".
  6158. - For native recipes, the build system sets the variable to the
  6159. value of ``BUILD_PREFIX``.
  6160. - For native SDK recipes (``nativesdk``), the build system sets the
  6161. variable to the value of ``SDK_PREFIX``.
  6162. :term:`TARGET_SYS`
  6163. Specifies the system, including the architecture and the operating
  6164. system, for which the build is occurring in the context of the
  6165. current recipe.
  6166. The OpenEmbedded build system automatically sets this variable based
  6167. on :term:`TARGET_ARCH`,
  6168. :term:`TARGET_VENDOR`, and
  6169. :term:`TARGET_OS` variables.
  6170. .. note::
  6171. You do not need to set the ``TARGET_SYS`` variable yourself.
  6172. Consider these two examples:
  6173. - Given a native recipe on a 32-bit, x86 machine running Linux, the
  6174. value is "i686-linux".
  6175. - Given a recipe being built for a little-endian, MIPS target
  6176. running Linux, the value might be "mipsel-linux".
  6177. :term:`TARGET_VENDOR`
  6178. Specifies the name of the target vendor.
  6179. :term:`TCLIBC`
  6180. Specifies the GNU standard C library (``libc``) variant to use during
  6181. the build process. This variable replaces ``POKYLIBC``, which is no
  6182. longer supported.
  6183. You can select "glibc", "musl", "newlib", or "baremetal"
  6184. :term:`TCLIBCAPPEND`
  6185. Specifies a suffix to be appended onto the
  6186. :term:`TMPDIR` value. The suffix identifies the
  6187. ``libc`` variant for building. When you are building for multiple
  6188. variants with the same :term:`Build Directory`, this
  6189. mechanism ensures that output for different ``libc`` variants is kept
  6190. separate to avoid potential conflicts.
  6191. In the ``defaultsetup.conf`` file, the default value of
  6192. ``TCLIBCAPPEND`` is "-${TCLIBC}". However, distros such as poky,
  6193. which normally only support one ``libc`` variant, set
  6194. ``TCLIBCAPPEND`` to "" in their distro configuration file resulting
  6195. in no suffix being applied.
  6196. :term:`TCMODE`
  6197. Specifies the toolchain selector. ``TCMODE`` controls the
  6198. characteristics of the generated packages and images by telling the
  6199. OpenEmbedded build system which toolchain profile to use. By default,
  6200. the OpenEmbedded build system builds its own internal toolchain. The
  6201. variable's default value is "default", which uses that internal
  6202. toolchain.
  6203. .. note::
  6204. If ``TCMODE`` is set to a value other than "default", then it is your
  6205. responsibility to ensure that the toolchain is compatible with the
  6206. default toolchain. Using older or newer versions of these
  6207. components might cause build problems. See the Release Notes for
  6208. the Yocto Project release for the specific components with which
  6209. the toolchain must be compatible. To access the Release Notes, go
  6210. to the :yocto_home:`Downloads </software-overview/downloads>`
  6211. page on the Yocto Project website and click on the "RELEASE
  6212. INFORMATION" link for the appropriate release.
  6213. The ``TCMODE`` variable is similar to :term:`TCLIBC`,
  6214. which controls the variant of the GNU standard C library (``libc``)
  6215. used during the build process: ``glibc`` or ``musl``.
  6216. With additional layers, it is possible to use a pre-compiled external
  6217. toolchain. One example is the Sourcery G++ Toolchain. The support for
  6218. this toolchain resides in the separate Mentor Graphics
  6219. ``meta-sourcery`` layer at
  6220. https://github.com/MentorEmbedded/meta-sourcery/.
  6221. The layer's ``README`` file contains information on how to use the
  6222. Sourcery G++ Toolchain as an external toolchain. In summary, you must
  6223. be sure to add the layer to your ``bblayers.conf`` file in front of
  6224. the ``meta`` layer and then set the ``EXTERNAL_TOOLCHAIN`` variable
  6225. in your ``local.conf`` file to the location in which you installed
  6226. the toolchain.
  6227. The fundamentals used for this example apply to any external
  6228. toolchain. You can use ``meta-sourcery`` as a template for adding
  6229. support for other external toolchains.
  6230. :term:`TEST_EXPORT_DIR`
  6231. The location the OpenEmbedded build system uses to export tests when
  6232. the :term:`TEST_EXPORT_ONLY` variable is set
  6233. to "1".
  6234. The ``TEST_EXPORT_DIR`` variable defaults to
  6235. ``"${TMPDIR}/testimage/${PN}"``.
  6236. :term:`TEST_EXPORT_ONLY`
  6237. Specifies to export the tests only. Set this variable to "1" if you
  6238. do not want to run the tests but you want them to be exported in a
  6239. manner that you to run them outside of the build system.
  6240. :term:`TEST_LOG_DIR`
  6241. Holds the SSH log and the boot log for QEMU machines. The
  6242. ``TEST_LOG_DIR`` variable defaults to ``"${WORKDIR}/testimage"``.
  6243. .. note::
  6244. Actual test results reside in the task log (``log.do_testimage``),
  6245. which is in the ``${WORKDIR}/temp/`` directory.
  6246. :term:`TEST_POWERCONTROL_CMD`
  6247. For automated hardware testing, specifies the command to use to
  6248. control the power of the target machine under test. Typically, this
  6249. command would point to a script that performs the appropriate action
  6250. (e.g. interacting with a web-enabled power strip). The specified
  6251. command should expect to receive as the last argument "off", "on" or
  6252. "cycle" specifying to power off, on, or cycle (power off and then
  6253. power on) the device, respectively.
  6254. :term:`TEST_POWERCONTROL_EXTRA_ARGS`
  6255. For automated hardware testing, specifies additional arguments to
  6256. pass through to the command specified in
  6257. :term:`TEST_POWERCONTROL_CMD`. Setting
  6258. ``TEST_POWERCONTROL_EXTRA_ARGS`` is optional. You can use it if you
  6259. wish, for example, to separate the machine-specific and
  6260. non-machine-specific parts of the arguments.
  6261. :term:`TEST_QEMUBOOT_TIMEOUT`
  6262. The time in seconds allowed for an image to boot before automated
  6263. runtime tests begin to run against an image. The default timeout
  6264. period to allow the boot process to reach the login prompt is 500
  6265. seconds. You can specify a different value in the ``local.conf``
  6266. file.
  6267. For more information on testing images, see the
  6268. ":ref:`dev-manual/common-tasks:performing automated runtime testing`"
  6269. section in the Yocto Project Development Tasks Manual.
  6270. :term:`TEST_SERIALCONTROL_CMD`
  6271. For automated hardware testing, specifies the command to use to
  6272. connect to the serial console of the target machine under test. This
  6273. command simply needs to connect to the serial console and forward
  6274. that connection to standard input and output as any normal terminal
  6275. program does.
  6276. For example, to use the Picocom terminal program on serial device
  6277. ``/dev/ttyUSB0`` at 115200bps, you would set the variable as follows:
  6278. ::
  6279. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  6280. :term:`TEST_SERIALCONTROL_EXTRA_ARGS`
  6281. For automated hardware testing, specifies additional arguments to
  6282. pass through to the command specified in
  6283. :term:`TEST_SERIALCONTROL_CMD`. Setting
  6284. ``TEST_SERIALCONTROL_EXTRA_ARGS`` is optional. You can use it if you
  6285. wish, for example, to separate the machine-specific and
  6286. non-machine-specific parts of the command.
  6287. :term:`TEST_SERVER_IP`
  6288. The IP address of the build machine (host machine). This IP address
  6289. is usually automatically detected. However, if detection fails, this
  6290. variable needs to be set to the IP address of the build machine (i.e.
  6291. where the build is taking place).
  6292. .. note::
  6293. The ``TEST_SERVER_IP`` variable is only used for a small number of
  6294. tests such as the "dnf" test suite, which needs to download packages
  6295. from ``WORKDIR/oe-rootfs-repo``.
  6296. :term:`TEST_SUITES`
  6297. An ordered list of tests (modules) to run against an image when
  6298. performing automated runtime testing.
  6299. The OpenEmbedded build system provides a core set of tests that can
  6300. be used against images.
  6301. .. note::
  6302. Currently, there is only support for running these tests under
  6303. QEMU.
  6304. Tests include ``ping``, ``ssh``, ``df`` among others. You can add
  6305. your own tests to the list of tests by appending ``TEST_SUITES`` as
  6306. follows:
  6307. ::
  6308. TEST_SUITES_append = " mytest"
  6309. Alternatively, you can
  6310. provide the "auto" option to have all applicable tests run against
  6311. the image.
  6312. ::
  6313. TEST_SUITES_append = " auto"
  6314. Using this option causes the
  6315. build system to automatically run tests that are applicable to the
  6316. image. Tests that are not applicable are skipped.
  6317. The order in which tests are run is important. Tests that depend on
  6318. another test must appear later in the list than the test on which
  6319. they depend. For example, if you append the list of tests with two
  6320. tests (``test_A`` and ``test_B``) where ``test_B`` is dependent on
  6321. ``test_A``, then you must order the tests as follows:
  6322. ::
  6323. TEST_SUITES = "test_A test_B"
  6324. For more information on testing images, see the
  6325. ":ref:`dev-manual/common-tasks:performing automated runtime testing`"
  6326. section in the Yocto Project Development Tasks Manual.
  6327. :term:`TEST_TARGET`
  6328. Specifies the target controller to use when running tests against a
  6329. test image. The default controller to use is "qemu":
  6330. ::
  6331. TEST_TARGET = "qemu"
  6332. A target controller is a class that defines how an image gets
  6333. deployed on a target and how a target is started. A layer can extend
  6334. the controllers by adding a module in the layer's
  6335. ``/lib/oeqa/controllers`` directory and by inheriting the
  6336. ``BaseTarget`` class, which is an abstract class that cannot be used
  6337. as a value of ``TEST_TARGET``.
  6338. You can provide the following arguments with ``TEST_TARGET``:
  6339. - *"qemu":* Boots a QEMU image and runs the tests. See the
  6340. ":ref:`dev-manual/common-tasks:enabling runtime tests on qemu`" section
  6341. in the Yocto Project Development Tasks Manual for more
  6342. information.
  6343. - *"simpleremote":* Runs the tests on target hardware that is
  6344. already up and running. The hardware can be on the network or it
  6345. can be a device running an image on QEMU. You must also set
  6346. :term:`TEST_TARGET_IP` when you use
  6347. "simpleremote".
  6348. .. note::
  6349. This argument is defined in
  6350. ``meta/lib/oeqa/controllers/simpleremote.py``.
  6351. For information on running tests on hardware, see the
  6352. ":ref:`dev-manual/common-tasks:enabling runtime tests on hardware`"
  6353. section in the Yocto Project Development Tasks Manual.
  6354. :term:`TEST_TARGET_IP`
  6355. The IP address of your hardware under test. The ``TEST_TARGET_IP``
  6356. variable has no effect when :term:`TEST_TARGET` is
  6357. set to "qemu".
  6358. When you specify the IP address, you can also include a port. Here is
  6359. an example:
  6360. ::
  6361. TEST_TARGET_IP = "192.168.1.4:2201"
  6362. Specifying a port is
  6363. useful when SSH is started on a non-standard port or in cases when
  6364. your hardware under test is behind a firewall or network that is not
  6365. directly accessible from your host and you need to do port address
  6366. translation.
  6367. :term:`TESTIMAGE_AUTO`
  6368. Automatically runs the series of automated tests for images when an
  6369. image is successfully built. Setting ``TESTIMAGE_AUTO`` to "1" causes
  6370. any image that successfully builds to automatically boot under QEMU.
  6371. Using the variable also adds in dependencies so that any SDK for
  6372. which testing is requested is automatically built first.
  6373. These tests are written in Python making use of the ``unittest``
  6374. module, and the majority of them run commands on the target system
  6375. over ``ssh``. You can set this variable to "1" in your ``local.conf``
  6376. file in the :term:`Build Directory` to have the
  6377. OpenEmbedded build system automatically run these tests after an
  6378. image successfully builds:
  6379. TESTIMAGE_AUTO = "1"
  6380. For more information
  6381. on enabling, running, and writing these tests, see the
  6382. ":ref:`dev-manual/common-tasks:performing automated runtime testing`"
  6383. section in the Yocto Project Development Tasks Manual and the
  6384. ":ref:`testimage*.bbclass <ref-classes-testimage*>`" section.
  6385. :term:`THISDIR`
  6386. The directory in which the file BitBake is currently parsing is
  6387. located. Do not manually set this variable.
  6388. :term:`TIME`
  6389. The time the build was started. Times appear using the hour, minute,
  6390. and second (HMS) format (e.g. "140159" for one minute and fifty-nine
  6391. seconds past 1400 hours).
  6392. :term:`TMPDIR`
  6393. This variable is the base directory the OpenEmbedded build system
  6394. uses for all build output and intermediate files (other than the
  6395. shared state cache). By default, the ``TMPDIR`` variable points to
  6396. ``tmp`` within the :term:`Build Directory`.
  6397. If you want to establish this directory in a location other than the
  6398. default, you can uncomment and edit the following statement in the
  6399. ``conf/local.conf`` file in the :term:`Source Directory`:
  6400. ::
  6401. #TMPDIR = "${TOPDIR}/tmp"
  6402. An example use for this scenario is to set ``TMPDIR`` to a local disk,
  6403. which does not use NFS, while having the Build Directory use NFS.
  6404. The filesystem used by ``TMPDIR`` must have standard filesystem
  6405. semantics (i.e. mixed-case files are unique, POSIX file locking, and
  6406. persistent inodes). Due to various issues with NFS and bugs in some
  6407. implementations, NFS does not meet this minimum requirement.
  6408. Consequently, ``TMPDIR`` cannot be on NFS.
  6409. :term:`TOOLCHAIN_HOST_TASK`
  6410. This variable lists packages the OpenEmbedded build system uses when
  6411. building an SDK, which contains a cross-development environment. The
  6412. packages specified by this variable are part of the toolchain set
  6413. that runs on the :term:`SDKMACHINE`, and each
  6414. package should usually have the prefix ``nativesdk-``. For example,
  6415. consider the following command when building an SDK:
  6416. ::
  6417. $ bitbake -c populate_sdk imagename
  6418. In this case, a default list of packages is
  6419. set in this variable, but you can add additional packages to the
  6420. list. See the
  6421. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  6422. in the Yocto Project Application Development and the Extensible
  6423. Software Development Kit (eSDK) manual for more information.
  6424. For background information on cross-development toolchains in the
  6425. Yocto Project development environment, see the
  6426. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  6427. section in the Yocto Project Overview and Concepts Manual. For
  6428. information on setting up a cross-development environment, see the
  6429. :doc:`/sdk-manual/index` manual.
  6430. :term:`TOOLCHAIN_OUTPUTNAME`
  6431. This variable defines the name used for the toolchain output. The
  6432. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
  6433. the ``TOOLCHAIN_OUTPUTNAME`` variable as follows:
  6434. ::
  6435. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  6436. See
  6437. the :term:`SDK_NAME` and
  6438. :term:`SDK_VERSION` variables for additional
  6439. information.
  6440. :term:`TOOLCHAIN_TARGET_TASK`
  6441. This variable lists packages the OpenEmbedded build system uses when
  6442. it creates the target part of an SDK (i.e. the part built for the
  6443. target hardware), which includes libraries and headers. Use this
  6444. variable to add individual packages to the part of the SDK that runs
  6445. on the target. See the
  6446. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  6447. in the Yocto Project Application Development and the Extensible
  6448. Software Development Kit (eSDK) manual for more information.
  6449. For background information on cross-development toolchains in the
  6450. Yocto Project development environment, see the
  6451. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  6452. section in the Yocto Project Overview and Concepts Manual. For
  6453. information on setting up a cross-development environment, see the
  6454. :doc:`/sdk-manual/index` manual.
  6455. :term:`TOPDIR`
  6456. The top-level :term:`Build Directory`. BitBake
  6457. automatically sets this variable when you initialize your build
  6458. environment using :ref:`structure-core-script`.
  6459. :term:`TRANSLATED_TARGET_ARCH`
  6460. A sanitized version of :term:`TARGET_ARCH`. This
  6461. variable is used where the architecture is needed in a value where
  6462. underscores are not allowed, for example within package filenames. In
  6463. this case, dash characters replace any underscore characters used in
  6464. ``TARGET_ARCH``.
  6465. Do not edit this variable.
  6466. :term:`TUNE_ARCH`
  6467. The GNU canonical architecture for a specific architecture (i.e.
  6468. ``arm``, ``armeb``, ``mips``, ``mips64``, and so forth). BitBake uses
  6469. this value to setup configuration.
  6470. ``TUNE_ARCH`` definitions are specific to a given architecture. The
  6471. definitions can be a single static definition, or can be dynamically
  6472. adjusted. You can see details for a given CPU family by looking at
  6473. the architecture's ``README`` file. For example, the
  6474. ``meta/conf/machine/include/mips/README`` file in the
  6475. :term:`Source Directory` provides information for
  6476. ``TUNE_ARCH`` specific to the ``mips`` architecture.
  6477. ``TUNE_ARCH`` is tied closely to
  6478. :term:`TARGET_ARCH`, which defines the target
  6479. machine's architecture. The BitBake configuration file
  6480. (``meta/conf/bitbake.conf``) sets ``TARGET_ARCH`` as follows:
  6481. ::
  6482. TARGET_ARCH = "${TUNE_ARCH}"
  6483. The following list, which is by no means complete since architectures
  6484. are configurable, shows supported machine architectures:
  6485. - arm
  6486. - i586
  6487. - x86_64
  6488. - powerpc
  6489. - powerpc64
  6490. - mips
  6491. - mipsel
  6492. :term:`TUNE_ASARGS`
  6493. Specifies architecture-specific assembler flags for the target
  6494. system. The set of flags is based on the selected tune features.
  6495. ``TUNE_ASARGS`` is set using the tune include files, which are
  6496. typically under ``meta/conf/machine/include/`` and are influenced
  6497. through :term:`TUNE_FEATURES`. For example, the
  6498. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  6499. for the x86 architecture as follows:
  6500. ::
  6501. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  6502. .. note::
  6503. Board Support Packages (BSPs) select the tune. The selected tune,
  6504. in turn, affects the tune variables themselves (i.e. the tune can
  6505. supply its own set of flags).
  6506. :term:`TUNE_CCARGS`
  6507. Specifies architecture-specific C compiler flags for the target
  6508. system. The set of flags is based on the selected tune features.
  6509. ``TUNE_CCARGS`` is set using the tune include files, which are
  6510. typically under ``meta/conf/machine/include/`` and are influenced
  6511. through :term:`TUNE_FEATURES`.
  6512. .. note::
  6513. Board Support Packages (BSPs) select the tune. The selected tune,
  6514. in turn, affects the tune variables themselves (i.e. the tune can
  6515. supply its own set of flags).
  6516. :term:`TUNE_FEATURES`
  6517. Features used to "tune" a compiler for optimal use given a specific
  6518. processor. The features are defined within the tune files and allow
  6519. arguments (i.e. ``TUNE_*ARGS``) to be dynamically generated based on
  6520. the features.
  6521. The OpenEmbedded build system verifies the features to be sure they
  6522. are not conflicting and that they are supported.
  6523. The BitBake configuration file (``meta/conf/bitbake.conf``) defines
  6524. ``TUNE_FEATURES`` as follows:
  6525. ::
  6526. TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}"
  6527. See the :term:`DEFAULTTUNE` variable for more information.
  6528. :term:`TUNE_LDARGS`
  6529. Specifies architecture-specific linker flags for the target system.
  6530. The set of flags is based on the selected tune features.
  6531. ``TUNE_LDARGS`` is set using the tune include files, which are
  6532. typically under ``meta/conf/machine/include/`` and are influenced
  6533. through :term:`TUNE_FEATURES`. For example, the
  6534. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  6535. for the x86 architecture as follows:
  6536. ::
  6537. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  6538. .. note::
  6539. Board Support Packages (BSPs) select the tune. The selected tune,
  6540. in turn, affects the tune variables themselves (i.e. the tune can
  6541. supply its own set of flags).
  6542. :term:`TUNE_PKGARCH`
  6543. The package architecture understood by the packaging system to define
  6544. the architecture, ABI, and tuning of output packages. The specific
  6545. tune is defined using the "_tune" override as follows:
  6546. ::
  6547. TUNE_PKGARCH_tune-tune = "tune"
  6548. These tune-specific package architectures are defined in the machine
  6549. include files. Here is an example of the "core2-32" tuning as used in
  6550. the ``meta/conf/machine/include/tune-core2.inc`` file:
  6551. ::
  6552. TUNE_PKGARCH_tune-core2-32 = "core2-32"
  6553. :term:`TUNEABI`
  6554. An underlying Application Binary Interface (ABI) used by a particular
  6555. tuning in a given toolchain layer. Providers that use prebuilt
  6556. libraries can use the ``TUNEABI``,
  6557. :term:`TUNEABI_OVERRIDE`, and
  6558. :term:`TUNEABI_WHITELIST` variables to check
  6559. compatibility of tunings against their selection of libraries.
  6560. If ``TUNEABI`` is undefined, then every tuning is allowed. See the
  6561. :ref:`sanity <ref-classes-sanity>` class to see how the variable is
  6562. used.
  6563. :term:`TUNEABI_OVERRIDE`
  6564. If set, the OpenEmbedded system ignores the
  6565. :term:`TUNEABI_WHITELIST` variable.
  6566. Providers that use prebuilt libraries can use the
  6567. ``TUNEABI_OVERRIDE``, ``TUNEABI_WHITELIST``, and
  6568. :term:`TUNEABI` variables to check compatibility of a
  6569. tuning against their selection of libraries.
  6570. See the :ref:`sanity <ref-classes-sanity>` class to see how the
  6571. variable is used.
  6572. :term:`TUNEABI_WHITELIST`
  6573. A whitelist of permissible :term:`TUNEABI` values. If
  6574. ``TUNEABI_WHITELIST`` is not set, all tunes are allowed. Providers
  6575. that use prebuilt libraries can use the ``TUNEABI_WHITELIST``,
  6576. :term:`TUNEABI_OVERRIDE`, and ``TUNEABI``
  6577. variables to check compatibility of a tuning against their selection
  6578. of libraries.
  6579. See the :ref:`sanity <ref-classes-sanity>` class to see how the
  6580. variable is used.
  6581. :term:`TUNECONFLICTS[feature]`
  6582. Specifies CPU or Application Binary Interface (ABI) tuning features
  6583. that conflict with feature.
  6584. Known tuning conflicts are specified in the machine include files in
  6585. the :term:`Source Directory`. Here is an example from
  6586. the ``meta/conf/machine/include/mips/arch-mips.inc`` include file
  6587. that lists the "o32" and "n64" features as conflicting with the "n32"
  6588. feature:
  6589. ::
  6590. TUNECONFLICTS[n32] = "o32 n64"
  6591. :term:`TUNEVALID[feature]`
  6592. Specifies a valid CPU or Application Binary Interface (ABI) tuning
  6593. feature. The specified feature is stored as a flag. Valid features
  6594. are specified in the machine include files (e.g.
  6595. ``meta/conf/machine/include/arm/arch-arm.inc``). Here is an example
  6596. from that file:
  6597. ::
  6598. TUNEVALID[bigendian] = "Enable big-endian mode."
  6599. See the machine include files in the :term:`Source Directory`
  6600. for these features.
  6601. :term:`UBOOT_CONFIG`
  6602. Configures the :term:`UBOOT_MACHINE` and can
  6603. also define :term:`IMAGE_FSTYPES` for individual
  6604. cases.
  6605. Following is an example from the ``meta-fsl-arm`` layer. ::
  6606. UBOOT_CONFIG ??= "sd"
  6607. UBOOT_CONFIG[sd] = "mx6qsabreauto_config,sdcard"
  6608. UBOOT_CONFIG[eimnor] = "mx6qsabreauto_eimnor_config"
  6609. UBOOT_CONFIG[nand] = "mx6qsabreauto_nand_config,ubifs"
  6610. UBOOT_CONFIG[spinor] = "mx6qsabreauto_spinor_config"
  6611. In this example, "sd" is selected as the configuration of the possible four for the
  6612. ``UBOOT_MACHINE``. The "sd" configuration defines
  6613. "mx6qsabreauto_config" as the value for ``UBOOT_MACHINE``, while the
  6614. "sdcard" specifies the ``IMAGE_FSTYPES`` to use for the U-Boot image.
  6615. For more information on how the ``UBOOT_CONFIG`` is handled, see the
  6616. :ref:`uboot-config <ref-classes-uboot-config>`
  6617. class.
  6618. :term:`UBOOT_DTB_LOADADDRESS`
  6619. Specifies the load address for the dtb image used by U-Boot. During FIT
  6620. image creation, the ``UBOOT_DTB_LOADADDRESS`` variable is used in
  6621. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify
  6622. the load address to be used in
  6623. creating the dtb sections of Image Tree Source for the FIT image.
  6624. :term:`UBOOT_DTBO_LOADADDRESS`
  6625. Specifies the load address for the dtbo image used by U-Boot. During FIT
  6626. image creation, the ``UBOOT_DTBO_LOADADDRESS`` variable is used in
  6627. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the load address to be used in
  6628. creating the dtbo sections of Image Tree Source for the FIT image.
  6629. :term:`UBOOT_ENTRYPOINT`
  6630. Specifies the entry point for the U-Boot image. During U-Boot image
  6631. creation, the ``UBOOT_ENTRYPOINT`` variable is passed as a
  6632. command-line parameter to the ``uboot-mkimage`` utility.
  6633. :term:`UBOOT_LOADADDRESS`
  6634. Specifies the load address for the U-Boot image. During U-Boot image
  6635. creation, the ``UBOOT_LOADADDRESS`` variable is passed as a
  6636. command-line parameter to the ``uboot-mkimage`` utility.
  6637. :term:`UBOOT_LOCALVERSION`
  6638. Appends a string to the name of the local version of the U-Boot
  6639. image. For example, assuming the version of the U-Boot image built
  6640. was "2013.10", the full version string reported by U-Boot would be
  6641. "2013.10-yocto" given the following statement:
  6642. ::
  6643. UBOOT_LOCALVERSION = "-yocto"
  6644. :term:`UBOOT_MACHINE`
  6645. Specifies the value passed on the ``make`` command line when building
  6646. a U-Boot image. The value indicates the target platform
  6647. configuration. You typically set this variable from the machine
  6648. configuration file (i.e. ``conf/machine/machine_name.conf``).
  6649. Please see the "Selection of Processor Architecture and Board Type"
  6650. section in the U-Boot README for valid values for this variable.
  6651. :term:`UBOOT_MAKE_TARGET`
  6652. Specifies the target called in the ``Makefile``. The default target
  6653. is "all".
  6654. :term:`UBOOT_MKIMAGE`
  6655. Specifies the name of the mkimage command as used by the
  6656. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to assemble
  6657. the FIT image. This can be used to substitute an alternative command, wrapper
  6658. script or function if desired. The default is "uboot-mkimage".
  6659. :term:`UBOOT_MKIMAGE_DTCOPTS`
  6660. Options for the device tree compiler passed to mkimage '-D'
  6661. feature while creating FIT image in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class.
  6662. If ``UBOOT_MKIMAGE_DTCOPTS`` is not set then kernel-fitimage will not
  6663. pass the ``-D`` option to mkimage.
  6664. :term:`UBOOT_MKIMAGE_SIGN`
  6665. Specifies the name of the mkimage command as used by the
  6666. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to sign
  6667. the FIT image after it has been assembled (if enabled). This can be used
  6668. to substitute an alternative command, wrapper script or function if
  6669. desired. The default is "${:term:`UBOOT_MKIMAGE`}".
  6670. :term:`UBOOT_MKIMAGE_SIGN_ARGS`
  6671. Optionally specifies additional arguments for the
  6672. :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to pass to the
  6673. mkimage command when signing the FIT image.
  6674. :term:`UBOOT_RD_ENTRYPOINT`
  6675. Specifies the entrypoint for the RAM disk image.
  6676. During FIT image creation, the
  6677. ``UBOOT_RD_ENTRYPOINT`` variable is used
  6678. in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the
  6679. entrypoint to be used in creating the Image Tree Source for
  6680. the FIT image.
  6681. :term:`UBOOT_RD_LOADADDRESS`
  6682. Specifies the load address for the RAM disk image.
  6683. During FIT image creation, the
  6684. ``UBOOT_RD_LOADADDRESS`` variable is used
  6685. in :ref:`kernel-fitimage <ref-classes-kernel-fitimage>` class to specify the
  6686. load address to be used in creating the Image Tree Source for
  6687. the FIT image.
  6688. :term:`UBOOT_SIGN_ENABLE`
  6689. Enable signing of FIT image. The default value is "0".
  6690. :term:`UBOOT_SIGN_KEYDIR`
  6691. Location of the directory containing the RSA key and
  6692. certificate used for signing FIT image.
  6693. :term:`UBOOT_SIGN_KEYNAME`
  6694. The name of keys used for signing U-Boot FIT image stored in
  6695. :term:`UBOOT_SIGN_KEYDIR` directory. For e.g. dev.key key and dev.crt
  6696. certificate stored in :term:`UBOOT_SIGN_KEYDIR` directory will have
  6697. :term:`UBOOT_SIGN_KEYNAME` set to "dev".
  6698. :term:`UBOOT_SUFFIX`
  6699. Points to the generated U-Boot extension. For example, ``u-boot.sb``
  6700. has a ``.sb`` extension.
  6701. The default U-Boot extension is ``.bin``
  6702. :term:`UBOOT_TARGET`
  6703. Specifies the target used for building U-Boot. The target is passed
  6704. directly as part of the "make" command (e.g. SPL and AIS). If you do
  6705. not specifically set this variable, the OpenEmbedded build process
  6706. passes and uses "all" for the target during the U-Boot building
  6707. process.
  6708. :term:`UNKNOWN_CONFIGURE_WHITELIST`
  6709. Specifies a list of options that, if reported by the configure script
  6710. as being invalid, should not generate a warning during the
  6711. :ref:`ref-tasks-configure` task. Normally, invalid
  6712. configure options are simply not passed to the configure script (e.g.
  6713. should be removed from :term:`EXTRA_OECONF` or
  6714. :term:`PACKAGECONFIG_CONFARGS`).
  6715. However, common options, for example, exist that are passed to all
  6716. configure scripts at a class level that might not be valid for some
  6717. configure scripts. It follows that no benefit exists in seeing a
  6718. warning about these options. For these cases, the options are added
  6719. to ``UNKNOWN_CONFIGURE_WHITELIST``.
  6720. The configure arguments check that uses
  6721. ``UNKNOWN_CONFIGURE_WHITELIST`` is part of the
  6722. :ref:`insane <ref-classes-insane>` class and is only enabled if the
  6723. recipe inherits the :ref:`autotools <ref-classes-autotools>` class.
  6724. :term:`UPDATERCPN`
  6725. For recipes inheriting the
  6726. :ref:`update-rc.d <ref-classes-update-rc.d>` class, ``UPDATERCPN``
  6727. specifies the package that contains the initscript that is enabled.
  6728. The default value is "${PN}". Given that almost all recipes that
  6729. install initscripts package them in the main package for the recipe,
  6730. you rarely need to set this variable in individual recipes.
  6731. :term:`UPSTREAM_CHECK_GITTAGREGEX`
  6732. You can perform a per-recipe check for what the latest upstream
  6733. source code version is by calling ``bitbake -c checkpkg`` recipe. If
  6734. the recipe source code is provided from Git repositories, the
  6735. OpenEmbedded build system determines the latest upstream version by
  6736. picking the latest tag from the list of all repository tags.
  6737. You can use the ``UPSTREAM_CHECK_GITTAGREGEX`` variable to provide a
  6738. regular expression to filter only the relevant tags should the
  6739. default filter not work correctly.
  6740. ::
  6741. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  6742. :term:`UPSTREAM_CHECK_REGEX`
  6743. Use the ``UPSTREAM_CHECK_REGEX`` variable to specify a different
  6744. regular expression instead of the default one when the package
  6745. checking system is parsing the page found using
  6746. :term:`UPSTREAM_CHECK_URI`.
  6747. ::
  6748. UPSTREAM_CHECK_REGEX = "package_regex"
  6749. :term:`UPSTREAM_CHECK_URI`
  6750. You can perform a per-recipe check for what the latest upstream
  6751. source code version is by calling ``bitbake -c checkpkg`` recipe. If
  6752. the source code is provided from tarballs, the latest version is
  6753. determined by fetching the directory listing where the tarball is and
  6754. attempting to find a later tarball. When this approach does not work,
  6755. you can use ``UPSTREAM_CHECK_URI`` to provide a different URI that
  6756. contains the link to the latest tarball.
  6757. ::
  6758. UPSTREAM_CHECK_URI = "recipe_url"
  6759. :term:`USE_DEVFS`
  6760. Determines if ``devtmpfs`` is used for ``/dev`` population. The
  6761. default value used for ``USE_DEVFS`` is "1" when no value is
  6762. specifically set. Typically, you would set ``USE_DEVFS`` to "0" for a
  6763. statically populated ``/dev`` directory.
  6764. See the ":ref:`dev-manual/common-tasks:selecting a device manager`" section in
  6765. the Yocto Project Development Tasks Manual for information on how to
  6766. use this variable.
  6767. :term:`USE_VT`
  6768. When using
  6769. :ref:`SysVinit <dev-manual/common-tasks:enabling system services>`,
  6770. determines whether or not to run a
  6771. `getty <https://en.wikipedia.org/wiki/Getty_%28Unix%29>`__ on any
  6772. virtual terminals in order to enable logging in through those
  6773. terminals.
  6774. The default value used for ``USE_VT`` is "1" when no default value is
  6775. specifically set. Typically, you would set ``USE_VT`` to "0" in the
  6776. machine configuration file for machines that do not have a graphical
  6777. display attached and therefore do not need virtual terminal
  6778. functionality.
  6779. :term:`USER_CLASSES`
  6780. A list of classes to globally inherit. These classes are used by the
  6781. OpenEmbedded build system to enable extra features (e.g.
  6782. ``buildstats``, ``image-mklibs``, and so forth).
  6783. The default list is set in your ``local.conf`` file:
  6784. ::
  6785. USER_CLASSES ?= "buildstats image-mklibs image-prelink"
  6786. For more information, see
  6787. ``meta-poky/conf/local.conf.sample`` in the :term:`Source Directory`.
  6788. :term:`USERADD_ERROR_DYNAMIC`
  6789. If set to ``error``, forces the OpenEmbedded build system to produce
  6790. an error if the user identification (``uid``) and group
  6791. identification (``gid``) values are not defined in any of the files
  6792. listed in :term:`USERADD_UID_TABLES` and
  6793. :term:`USERADD_GID_TABLES`. If set to
  6794. ``warn``, a warning will be issued instead.
  6795. The default behavior for the build system is to dynamically apply
  6796. ``uid`` and ``gid`` values. Consequently, the
  6797. ``USERADD_ERROR_DYNAMIC`` variable is by default not set. If you plan
  6798. on using statically assigned ``gid`` and ``uid`` values, you should
  6799. set the ``USERADD_ERROR_DYNAMIC`` variable in your ``local.conf``
  6800. file as follows:
  6801. ::
  6802. USERADD_ERROR_DYNAMIC = "error"
  6803. Overriding the
  6804. default behavior implies you are going to also take steps to set
  6805. static ``uid`` and ``gid`` values through use of the
  6806. :term:`USERADDEXTENSION`,
  6807. :term:`USERADD_UID_TABLES`, and
  6808. :term:`USERADD_GID_TABLES` variables.
  6809. .. note::
  6810. There is a difference in behavior between setting
  6811. ``USERADD_ERROR_DYNAMIC`` to ``error`` and setting it to ``warn``.
  6812. When it is set to ``warn``, the build system will report a warning for
  6813. every undefined ``uid`` and ``gid`` in any recipe. But when it is set
  6814. to ``error``, it will only report errors for recipes that are actually
  6815. built.
  6816. This saves you from having to add static IDs for recipes that you
  6817. know will never be built.
  6818. :term:`USERADD_GID_TABLES`
  6819. Specifies a password file to use for obtaining static group
  6820. identification (``gid``) values when the OpenEmbedded build system
  6821. adds a group to the system during package installation.
  6822. When applying static group identification (``gid``) values, the
  6823. OpenEmbedded build system looks in :term:`BBPATH` for a
  6824. ``files/group`` file and then applies those ``uid`` values. Set the
  6825. variable as follows in your ``local.conf`` file:
  6826. ::
  6827. USERADD_GID_TABLES = "files/group"
  6828. .. note::
  6829. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  6830. causes the build system to use static ``gid`` values.
  6831. :term:`USERADD_PACKAGES`
  6832. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  6833. this variable specifies the individual packages within the recipe
  6834. that require users and/or groups to be added.
  6835. You must set this variable if the recipe inherits the class. For
  6836. example, the following enables adding a user for the main package in
  6837. a recipe:
  6838. ::
  6839. USERADD_PACKAGES = "${PN}"
  6840. .. note::
  6841. It follows that if you are going to use the ``USERADD_PACKAGES``
  6842. variable, you need to set one or more of the :term:`USERADD_PARAM`,
  6843. :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables.
  6844. :term:`USERADD_PARAM`
  6845. When inheriting the :ref:`useradd <ref-classes-useradd>` class,
  6846. this variable specifies for a package what parameters should pass to
  6847. the ``useradd`` command if you add a user to the system when the
  6848. package is installed.
  6849. Here is an example from the ``dbus`` recipe:
  6850. ::
  6851. USERADD_PARAM_${PN} = "--system --home ${localstatedir}/lib/dbus \
  6852. --no-create-home --shell /bin/false \
  6853. --user-group messagebus"
  6854. For information on the
  6855. standard Linux shell command ``useradd``, see
  6856. https://linux.die.net/man/8/useradd.
  6857. :term:`USERADD_UID_TABLES`
  6858. Specifies a password file to use for obtaining static user
  6859. identification (``uid``) values when the OpenEmbedded build system
  6860. adds a user to the system during package installation.
  6861. When applying static user identification (``uid``) values, the
  6862. OpenEmbedded build system looks in :term:`BBPATH` for a
  6863. ``files/passwd`` file and then applies those ``uid`` values. Set the
  6864. variable as follows in your ``local.conf`` file:
  6865. ::
  6866. USERADD_UID_TABLES = "files/passwd"
  6867. .. note::
  6868. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  6869. causes the build system to use static ``uid`` values.
  6870. :term:`USERADDEXTENSION`
  6871. When set to "useradd-staticids", causes the OpenEmbedded build system
  6872. to base all user and group additions on a static ``passwd`` and
  6873. ``group`` files found in :term:`BBPATH`.
  6874. To use static user identification (``uid``) and group identification
  6875. (``gid``) values, set the variable as follows in your ``local.conf``
  6876. file: USERADDEXTENSION = "useradd-staticids"
  6877. .. note::
  6878. Setting this variable to use static ``uid`` and ``gid``
  6879. values causes the OpenEmbedded build system to employ the
  6880. :ref:`ref-classes-useradd` class.
  6881. If you use static ``uid`` and ``gid`` information, you must also
  6882. specify the ``files/passwd`` and ``files/group`` files by setting the
  6883. :term:`USERADD_UID_TABLES` and
  6884. :term:`USERADD_GID_TABLES` variables.
  6885. Additionally, you should also set the
  6886. :term:`USERADD_ERROR_DYNAMIC` variable.
  6887. :term:`VOLATILE_LOG_DIR`
  6888. Specifies the persistence of the target's ``/var/log`` directory,
  6889. which is used to house postinstall target log files.
  6890. By default, ``VOLATILE_LOG_DIR`` is set to "yes", which means the
  6891. file is not persistent. You can override this setting by setting the
  6892. variable to "no" to make the log directory persistent.
  6893. :term:`WARN_QA`
  6894. Specifies the quality assurance checks whose failures are reported as
  6895. warnings by the OpenEmbedded build system. You set this variable in
  6896. your distribution configuration file. For a list of the checks you
  6897. can control with this variable, see the
  6898. ":ref:`insane.bbclass <ref-classes-insane>`" section.
  6899. :term:`WKS_FILE`
  6900. Specifies the location of the Wic kickstart file that is used by the
  6901. OpenEmbedded build system to create a partitioned image
  6902. (image\ ``.wic``). For information on how to create a partitioned
  6903. image, see the
  6904. ":ref:`dev-manual/common-tasks:creating partitioned images using wic`"
  6905. section in the Yocto Project Development Tasks Manual. For details on
  6906. the kickstart file format, see the ":doc:`/ref-manual/kickstart`" Chapter.
  6907. :term:`WKS_FILE_DEPENDS`
  6908. When placed in the recipe that builds your image, this variable lists
  6909. build-time dependencies. The ``WKS_FILE_DEPENDS`` variable is only
  6910. applicable when Wic images are active (i.e. when
  6911. :term:`IMAGE_FSTYPES` contains entries related
  6912. to Wic). If your recipe does not create Wic images, the variable has
  6913. no effect.
  6914. The ``WKS_FILE_DEPENDS`` variable is similar to the
  6915. :term:`DEPENDS` variable. When you use the variable in
  6916. your recipe that builds the Wic image, dependencies you list in the
  6917. ``WKS_FILE_DEPENDS`` variable are added to the ``DEPENDS`` variable.
  6918. With the ``WKS_FILE_DEPENDS`` variable, you have the possibility to
  6919. specify a list of additional dependencies (e.g. native tools,
  6920. bootloaders, and so forth), that are required to build Wic images.
  6921. Following is an example:
  6922. ::
  6923. WKS_FILE_DEPENDS = "some-native-tool"
  6924. In the
  6925. previous example, some-native-tool would be replaced with an actual
  6926. native tool on which the build would depend.
  6927. :term:`WORKDIR`
  6928. The pathname of the work directory in which the OpenEmbedded build
  6929. system builds a recipe. This directory is located within the
  6930. :term:`TMPDIR` directory structure and is specific to
  6931. the recipe being built and the system for which it is being built.
  6932. The ``WORKDIR`` directory is defined as follows:
  6933. ::
  6934. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  6935. The actual directory depends on several things:
  6936. - :term:`TMPDIR`: The top-level build output directory
  6937. - :term:`MULTIMACH_TARGET_SYS`: The target system identifier
  6938. - :term:`PN`: The recipe name
  6939. - :term:`EXTENDPE`: The epoch - (if :term:`PE` is not specified, which
  6940. is usually the case for most recipes, then `EXTENDPE` is blank)
  6941. - :term:`PV`: The recipe version
  6942. - :term:`PR`: The recipe revision
  6943. As an example, assume a Source Directory top-level folder name
  6944. ``poky``, a default Build Directory at ``poky/build``, and a
  6945. ``qemux86-poky-linux`` machine target system. Furthermore, suppose
  6946. your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
  6947. directory the build system uses to build the package would be as
  6948. follows:
  6949. ::
  6950. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  6951. :term:`XSERVER`
  6952. Specifies the packages that should be installed to provide an X
  6953. server and drivers for the current machine, assuming your image
  6954. directly includes ``packagegroup-core-x11-xserver`` or, perhaps
  6955. indirectly, includes "x11-base" in
  6956. :term:`IMAGE_FEATURES`.
  6957. The default value of ``XSERVER``, if not specified in the machine
  6958. configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev".