variables.rst 420 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833
  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. :sorted:
  17. :term:`ABIEXTENSION`
  18. Extension to the Application Binary Interface (ABI) field of the GNU
  19. canonical architecture name (e.g. "eabi").
  20. ABI extensions are set in the machine include files. For example, the
  21. ``meta/conf/machine/include/arm/arch-arm.inc`` file sets the
  22. following extension::
  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. ALLOW_EMPTY:${PN} = "1"
  33. ALLOW_EMPTY:${PN}-dev = "1"
  34. ALLOW_EMPTY:${PN}-staticdev = "1"
  35. :term:`ALTERNATIVE`
  36. Lists commands in a package that need an alternative binary naming
  37. scheme. Sometimes the same command is provided in multiple packages.
  38. When this occurs, the OpenEmbedded build system needs to use the
  39. alternatives system to create a different binary naming scheme so the
  40. commands can co-exist.
  41. To use the variable, list out the package's commands that are also
  42. provided by another package. For example, if the ``busybox`` package
  43. has four such commands, you identify them as follows::
  44. ALTERNATIVE:busybox = "sh sed test bracket"
  45. For more information on the alternatives system, see the
  46. ":ref:`ref-classes-update-alternatives`"
  47. section.
  48. :term:`ALTERNATIVE_LINK_NAME`
  49. Used by the alternatives system to map duplicated commands to actual
  50. locations. For example, if the ``bracket`` command provided by the
  51. ``busybox`` package is duplicated through another package, you must
  52. use the :term:`ALTERNATIVE_LINK_NAME` variable to specify the actual
  53. location::
  54. ALTERNATIVE_LINK_NAME[bracket] = "/usr/bin/["
  55. In this example, the binary for the ``bracket`` command (i.e. ``[``)
  56. from the ``busybox`` package resides in ``/usr/bin/``.
  57. .. note::
  58. If :term:`ALTERNATIVE_LINK_NAME` is not defined, it defaults to ``${bindir}/name``.
  59. For more information on the alternatives system, see the
  60. ":ref:`ref-classes-update-alternatives`"
  61. section.
  62. :term:`ALTERNATIVE_PRIORITY`
  63. Used by the alternatives system to create default priorities for
  64. duplicated commands. You can use the variable to create a single
  65. default regardless of the command name or package, a default for
  66. specific duplicated commands regardless of the package, or a default
  67. for specific commands tied to particular packages. Here are the
  68. available syntax forms::
  69. ALTERNATIVE_PRIORITY = "priority"
  70. ALTERNATIVE_PRIORITY[name] = "priority"
  71. ALTERNATIVE_PRIORITY_pkg[name] = "priority"
  72. For more information on the alternatives system, see the
  73. ":ref:`ref-classes-update-alternatives`"
  74. section.
  75. :term:`ALTERNATIVE_TARGET`
  76. Used by the alternatives system to create default link locations for
  77. duplicated commands. You can use the variable to create a single
  78. default location for all duplicated commands regardless of the
  79. command name or package, a default for specific duplicated commands
  80. regardless of the package, or a default for specific commands tied to
  81. particular packages. Here are the available syntax forms::
  82. ALTERNATIVE_TARGET = "target"
  83. ALTERNATIVE_TARGET[name] = "target"
  84. ALTERNATIVE_TARGET_pkg[name] = "target"
  85. .. note::
  86. If :term:`ALTERNATIVE_TARGET` is not defined, it inherits the value
  87. from the :term:`ALTERNATIVE_LINK_NAME` variable.
  88. If :term:`ALTERNATIVE_LINK_NAME` and :term:`ALTERNATIVE_TARGET` are the
  89. same, the target for :term:`ALTERNATIVE_TARGET` has "``.{BPN}``"
  90. appended to it.
  91. Finally, if the file referenced has not been renamed, the
  92. alternatives system will rename it to avoid the need to rename
  93. alternative files in the :ref:`ref-tasks-install`
  94. task while retaining support for the command if necessary.
  95. For more information on the alternatives system, see the
  96. ":ref:`ref-classes-update-alternatives`" section.
  97. :term:`ANY_OF_DISTRO_FEATURES`
  98. When inheriting the :ref:`ref-classes-features_check`
  99. class, this variable identifies a list of distribution features where
  100. at least one must be enabled in the current configuration in order
  101. for the OpenEmbedded build system to build the recipe. In other words,
  102. if none of the features listed in :term:`ANY_OF_DISTRO_FEATURES`
  103. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  104. the recipe will be skipped, and if the build system attempts to build
  105. the recipe then an error will be triggered.
  106. :term:`APPEND`
  107. An override list of append strings for each target specified with
  108. :term:`LABELS`.
  109. See the :ref:`ref-classes-grub-efi` class for more
  110. information on how this variable is used.
  111. :term:`AR`
  112. The minimal command and arguments used to run ``ar``.
  113. :term:`ARCHIVER_MODE`
  114. When used with the :ref:`ref-classes-archiver` class,
  115. determines the type of information used to create a released archive.
  116. You can use this variable to create archives of patched source,
  117. original source, configured source, and so forth by employing the
  118. following variable flags (varflags)::
  119. ARCHIVER_MODE[src] = "original" # Uses original (unpacked) source files.
  120. ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is the default.
  121. ARCHIVER_MODE[src] = "configured" # Uses configured source files.
  122. ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and do_patch.
  123. ARCHIVER_MODE[diff-exclude] ?= "file file ..." # Lists files and directories to exclude from diff.
  124. ARCHIVER_MODE[dumpdata] = "1" # Uses environment data.
  125. ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files.
  126. ARCHIVER_MODE[srpm] = "1" # Uses RPM package files.
  127. For information on how the variable works, see the
  128. ``meta/classes/archiver.bbclass`` file in the :term:`Source Directory`.
  129. :term:`AS`
  130. Minimal command and arguments needed to run the assembler.
  131. :term:`ASSUME_PROVIDED`
  132. Lists recipe names (:term:`PN` values) BitBake does not
  133. attempt to build. Instead, BitBake assumes these recipes have already
  134. been built.
  135. In OpenEmbedded-Core, :term:`ASSUME_PROVIDED` mostly specifies native
  136. tools that should not be built. An example is ``git-native``, which
  137. when specified, allows for the Git binary from the host to be used
  138. rather than building ``git-native``.
  139. :term:`ASSUME_SHLIBS`
  140. Provides additional ``shlibs`` provider mapping information, which
  141. adds to or overwrites the information provided automatically by the
  142. system. Separate multiple entries using spaces.
  143. As an example, use the following form to add an ``shlib`` provider of
  144. shlibname in packagename with the optional version::
  145. shlibname:packagename[_version]
  146. Here is an example that adds a shared library named ``libEGL.so.1``
  147. as being provided by the ``libegl-implementation`` package::
  148. ASSUME_SHLIBS = "libEGL.so.1:libegl-implementation"
  149. :term:`AUTO_LIBNAME_PKGS`
  150. When the :ref:`ref-classes-debian` class is inherited,
  151. which is the default behavior, :term:`AUTO_LIBNAME_PKGS` specifies which
  152. packages should be checked for libraries and renamed according to
  153. Debian library package naming.
  154. The default value is "${PACKAGES}", which causes the
  155. :ref:`ref-classes-debian` class to act on all packages that are
  156. explicitly generated by the recipe.
  157. :term:`AUTOREV`
  158. When :term:`SRCREV` is set to the value of this variable, it specifies to
  159. use the latest source revision in the repository. Here is an example::
  160. SRCREV = "${AUTOREV}"
  161. If you use the previous statement to retrieve the latest version of
  162. software, you need to be sure :term:`PV` contains
  163. ``${``\ :term:`SRCPV`\ ``}``. For example, suppose you have a kernel
  164. recipe that inherits the :ref:`ref-classes-kernel` class and you
  165. use the previous statement. In this example, ``${SRCPV}`` does not
  166. automatically get into :term:`PV`. Consequently, you need to change
  167. :term:`PV` in your recipe so that it does contain ``${SRCPV}``.
  168. For more information see the
  169. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  170. section in the Yocto Project Development Tasks Manual.
  171. :term:`AUTO_SYSLINUXMENU`
  172. Enables creating an automatic menu for the syslinux bootloader. You
  173. must set this variable in your recipe. The
  174. :ref:`ref-classes-syslinux` class checks this variable.
  175. :term:`AVAILTUNES`
  176. The list of defined CPU and Application Binary Interface (ABI)
  177. tunings (i.e. "tunes") available for use by the OpenEmbedded build
  178. system.
  179. The list simply presents the tunes that are available. Not all tunes
  180. may be compatible with a particular machine configuration, or with
  181. each other in a
  182. :ref:`Multilib <dev-manual/libraries:combining multiple versions of library files into one image>`
  183. configuration.
  184. To add a tune to the list, be sure to append it with spaces using the
  185. "+=" BitBake operator. Do not simply replace the list by using the
  186. "=" operator. See the
  187. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:basic syntax`" section in the BitBake
  188. User Manual for more information.
  189. :term:`AZ_SAS`
  190. Azure Storage Shared Access Signature, when using the
  191. :ref:`Azure Storage fetcher (az://) <bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
  192. This variable can be defined to be used by the fetcher to authenticate
  193. and gain access to non-public artifacts::
  194. AZ_SAS = ""se=2021-01-01&sp=r&sv=2018-11-09&sr=c&skoid=<skoid>&sig=<signature>""
  195. For more information see Microsoft's Azure Storage documentation at
  196. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
  197. :term:`B`
  198. The directory within the :term:`Build Directory` in which the
  199. OpenEmbedded build system places generated objects during a recipe's
  200. build process. By default, this directory is the same as the
  201. :term:`S` directory, which is defined as::
  202. S = "${WORKDIR}/${BP}"
  203. You can separate the (:term:`S`) directory and the directory pointed to
  204. by the :term:`B` variable. Most Autotools-based recipes support
  205. separating these directories. The build system defaults to using
  206. separate directories for ``gcc`` and some kernel recipes.
  207. :term:`BAD_RECOMMENDATIONS`
  208. Lists "recommended-only" packages to not install. Recommended-only
  209. packages are packages installed only through the
  210. :term:`RRECOMMENDS` variable. You can prevent any
  211. of these "recommended" packages from being installed by listing them
  212. with the :term:`BAD_RECOMMENDATIONS` variable::
  213. BAD_RECOMMENDATIONS = "package_name package_name package_name ..."
  214. You can set this variable globally in your ``local.conf`` file or you
  215. can attach it to a specific image recipe by using the recipe name
  216. override::
  217. BAD_RECOMMENDATIONS:pn-target_image = "package_name"
  218. It is important to realize that if you choose to not install packages
  219. using this variable and some other packages are dependent on them
  220. (i.e. listed in a recipe's :term:`RDEPENDS`
  221. variable), the OpenEmbedded build system ignores your request and
  222. will install the packages to avoid dependency errors.
  223. This variable is supported only when using the IPK and RPM
  224. packaging backends. DEB is not supported.
  225. See the :term:`NO_RECOMMENDATIONS` and the
  226. :term:`PACKAGE_EXCLUDE` variables for related
  227. information.
  228. :term:`BASE_LIB`
  229. The library directory name for the CPU or Application Binary
  230. Interface (ABI) tune. The :term:`BASE_LIB` applies only in the Multilib
  231. context. See the ":ref:`dev-manual/libraries:combining multiple versions of library files into one image`"
  232. section in the Yocto Project Development Tasks Manual for information
  233. on Multilib.
  234. The :term:`BASE_LIB` variable is defined in the machine include files in
  235. the :term:`Source Directory`. If Multilib is not
  236. being used, the value defaults to "lib".
  237. :term:`BASE_WORKDIR`
  238. Points to the base of the work directory for all recipes. The default
  239. value is "${TMPDIR}/work".
  240. :term:`BB_ALLOWED_NETWORKS`
  241. Specifies a space-delimited list of hosts that the fetcher is allowed
  242. to use to obtain the required source code. Following are
  243. considerations surrounding this variable:
  244. - This host list is only used if :term:`BB_NO_NETWORK` is either not set
  245. or set to "0".
  246. - There is limited support for wildcard matching against the beginning of
  247. host names. For example, the following setting matches
  248. ``git.gnu.org``, ``ftp.gnu.org``, and ``foo.git.gnu.org``::
  249. BB_ALLOWED_NETWORKS = "*.gnu.org"
  250. .. note::
  251. The use of the "``*``" character only works at the beginning of
  252. a host name and it must be isolated from the remainder of the
  253. host name. You cannot use the wildcard character in any other
  254. location of the name or combined with the front part of the
  255. name.
  256. For example, ``*.foo.bar`` is supported, while ``*aa.foo.bar``
  257. is not.
  258. - Mirrors not in the host list are skipped and logged in debug.
  259. - Attempts to access networks not in the host list cause a failure.
  260. Using :term:`BB_ALLOWED_NETWORKS` in conjunction with
  261. :term:`PREMIRRORS` is very useful. Adding the host
  262. you want to use to :term:`PREMIRRORS` results in the source code being
  263. fetched from an allowed location and avoids raising an error when a
  264. host that is not allowed is in a :term:`SRC_URI`
  265. statement. This is because the fetcher does not attempt to use the
  266. host listed in :term:`SRC_URI` after a successful fetch from the
  267. :term:`PREMIRRORS` occurs.
  268. :term:`BB_BASEHASH_IGNORE_VARS`
  269. See :term:`bitbake:BB_BASEHASH_IGNORE_VARS` in the BitBake manual.
  270. :term:`BB_CACHEDIR`
  271. See :term:`bitbake:BB_CACHEDIR` in the BitBake manual.
  272. :term:`BB_CHECK_SSL_CERTS`
  273. See :term:`bitbake:BB_CHECK_SSL_CERTS` in the BitBake manual.
  274. :term:`BB_CONSOLELOG`
  275. See :term:`bitbake:BB_CONSOLELOG` in the BitBake manual.
  276. :term:`BB_CURRENTTASK`
  277. See :term:`bitbake:BB_CURRENTTASK` in the BitBake manual.
  278. :term:`BB_DANGLINGAPPENDS_WARNONLY`
  279. Defines how BitBake handles situations where an append file
  280. (``.bbappend``) has no corresponding recipe file (``.bb``). This
  281. condition often occurs when layers get out of sync (e.g. ``oe-core``
  282. bumps a recipe version and the old recipe no longer exists and the
  283. other layer has not been updated to the new version of the recipe
  284. yet).
  285. The default fatal behavior is safest because it is the sane reaction
  286. given something is out of sync. It is important to realize when your
  287. changes are no longer being applied.
  288. You can change the default behavior by setting this variable to "1",
  289. "yes", or "true" in your ``local.conf`` file, which is located in the
  290. :term:`Build Directory`: Here is an example::
  291. BB_DANGLINGAPPENDS_WARNONLY = "1"
  292. :term:`BB_DEFAULT_TASK`
  293. See :term:`bitbake:BB_DEFAULT_TASK` in the BitBake manual.
  294. :term:`BB_DEFAULT_UMASK`
  295. See :term:`bitbake:BB_DEFAULT_UMASK` in the BitBake manual.
  296. :term:`BB_DISKMON_DIRS`
  297. Monitors disk space and available inodes during the build and allows
  298. you to control the build based on these parameters.
  299. Disk space monitoring is disabled by default. To enable monitoring,
  300. add the :term:`BB_DISKMON_DIRS` variable to your ``conf/local.conf`` file
  301. found in the :term:`Build Directory`. Use the
  302. following form:
  303. .. code-block:: none
  304. BB_DISKMON_DIRS = "action,dir,threshold [...]"
  305. where:
  306. action is:
  307. ABORT: Immediately stop the build when
  308. a threshold is broken.
  309. STOPTASKS: Stop the build after the currently
  310. executing tasks have finished when
  311. a threshold is broken.
  312. WARN: Issue a warning but continue the
  313. build when a threshold is broken.
  314. Subsequent warnings are issued as
  315. defined by the BB_DISKMON_WARNINTERVAL
  316. variable, which must be defined in
  317. the conf/local.conf file.
  318. dir is:
  319. Any directory you choose. You can specify one or
  320. more directories to monitor by separating the
  321. groupings with a space. If two directories are
  322. on the same device, only the first directory
  323. is monitored.
  324. threshold is:
  325. Either the minimum available disk space,
  326. the minimum number of free inodes, or
  327. both. You must specify at least one. To
  328. omit one or the other, simply omit the value.
  329. Specify the threshold using G, M, K for Gbytes,
  330. Mbytes, and Kbytes, respectively. If you do
  331. not specify G, M, or K, Kbytes is assumed by
  332. default. Do not use GB, MB, or KB.
  333. Here are some examples::
  334. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  335. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  336. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  337. The first example works only if you also provide the
  338. :term:`BB_DISKMON_WARNINTERVAL`
  339. variable in the ``conf/local.conf``. This example causes the build
  340. system to immediately stop when either the disk space in
  341. ``${TMPDIR}`` drops below 1 Gbyte or the available free inodes drops
  342. below 100 Kbytes. Because two directories are provided with the
  343. variable, the build system also issue a warning when the disk space
  344. in the ``${SSTATE_DIR}`` directory drops below 1 Gbyte or the number
  345. of free inodes drops below 100 Kbytes. Subsequent warnings are issued
  346. during intervals as defined by the :term:`BB_DISKMON_WARNINTERVAL`
  347. variable.
  348. The second example stops the build after all currently executing
  349. tasks complete when the minimum disk space in the ``${TMPDIR}``
  350. directory drops below 1 Gbyte. No disk monitoring occurs for the free
  351. inodes in this case.
  352. The final example immediately stops the build when the number of
  353. free inodes in the ``${TMPDIR}`` directory drops below 100 Kbytes. No
  354. disk space monitoring for the directory itself occurs in this case.
  355. :term:`BB_DISKMON_WARNINTERVAL`
  356. Defines the disk space and free inode warning intervals. To set these
  357. intervals, define the variable in your ``conf/local.conf`` file in
  358. the :term:`Build Directory`.
  359. If you are going to use the :term:`BB_DISKMON_WARNINTERVAL` variable, you
  360. must also use the :term:`BB_DISKMON_DIRS`
  361. variable and define its action as "WARN". During the build,
  362. subsequent warnings are issued each time disk space or number of free
  363. inodes further reduces by the respective interval.
  364. If you do not provide a :term:`BB_DISKMON_WARNINTERVAL` variable and you
  365. do use :term:`BB_DISKMON_DIRS` with the "WARN" action, the disk
  366. monitoring interval defaults to the following::
  367. BB_DISKMON_WARNINTERVAL = "50M,5K"
  368. When specifying the variable in your configuration file, use the
  369. following form:
  370. .. code-block:: none
  371. BB_DISKMON_WARNINTERVAL = "disk_space_interval,disk_inode_interval"
  372. where:
  373. disk_space_interval is:
  374. An interval of memory expressed in either
  375. G, M, or K for Gbytes, Mbytes, or Kbytes,
  376. respectively. You cannot use GB, MB, or KB.
  377. disk_inode_interval is:
  378. An interval of free inodes expressed in either
  379. G, M, or K for Gbytes, Mbytes, or Kbytes,
  380. respectively. You cannot use GB, MB, or KB.
  381. Here is an example::
  382. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  383. BB_DISKMON_WARNINTERVAL = "50M,5K"
  384. These variables cause the
  385. OpenEmbedded build system to issue subsequent warnings each time the
  386. available disk space further reduces by 50 Mbytes or the number of
  387. free inodes further reduces by 5 Kbytes in the ``${SSTATE_DIR}``
  388. directory. Subsequent warnings based on the interval occur each time
  389. a respective interval is reached beyond the initial warning (i.e. 1
  390. Gbytes and 100 Kbytes).
  391. :term:`BB_ENV_PASSTHROUGH`
  392. See :term:`bitbake:BB_ENV_PASSTHROUGH` in the BitBake manual.
  393. :term:`BB_ENV_PASSTHROUGH_ADDITIONS`
  394. See :term:`bitbake:BB_ENV_PASSTHROUGH_ADDITIONS` in the BitBake manual.
  395. :term:`BB_FETCH_PREMIRRORONLY`
  396. See :term:`bitbake:BB_FETCH_PREMIRRORONLY` in the BitBake manual.
  397. :term:`BB_FILENAME`
  398. See :term:`bitbake:BB_FILENAME` in the BitBake manual.
  399. :term:`BB_GENERATE_MIRROR_TARBALLS`
  400. Causes tarballs of the source control repositories (e.g. Git
  401. repositories), including metadata, to be placed in the
  402. :term:`DL_DIR` directory.
  403. For performance reasons, creating and placing tarballs of these
  404. repositories is not the default action by the OpenEmbedded build
  405. system::
  406. BB_GENERATE_MIRROR_TARBALLS = "1"
  407. Set this variable in your
  408. ``local.conf`` file in the :term:`Build Directory`.
  409. Once you have the tarballs containing your source files, you can
  410. clean up your :term:`DL_DIR` directory by deleting any Git or other
  411. source control work directories.
  412. :term:`BB_GENERATE_SHALLOW_TARBALLS`
  413. See :term:`bitbake:BB_GENERATE_SHALLOW_TARBALLS` in the BitBake manual.
  414. :term:`BB_GIT_SHALLOW`
  415. See :term:`bitbake:BB_GIT_SHALLOW` in the BitBake manual.
  416. :term:`BB_GIT_SHALLOW_DEPTH`
  417. See :term:`bitbake:BB_GIT_SHALLOW_DEPTH` in the BitBake manual.
  418. :term:`BB_HASHCHECK_FUNCTION`
  419. See :term:`bitbake:BB_HASHCHECK_FUNCTION` in the BitBake manual.
  420. :term:`BB_HASHCONFIG_IGNORE_VARS`
  421. See :term:`bitbake:BB_HASHCONFIG_IGNORE_VARS` in the BitBake manual.
  422. :term:`BB_HASHSERVE`
  423. See :term:`bitbake:BB_HASHSERVE` in the BitBake manual.
  424. :term:`BB_HASHSERVE_UPSTREAM`
  425. See :term:`bitbake:BB_HASHSERVE_UPSTREAM` in the BitBake manual.
  426. :term:`BB_INVALIDCONF`
  427. See :term:`bitbake:BB_INVALIDCONF` in the BitBake manual.
  428. :term:`BB_LOGCONFIG`
  429. See :term:`bitbake:BB_LOGCONFIG` in the BitBake manual.
  430. :term:`BB_LOGFMT`
  431. See :term:`bitbake:BB_LOGFMT` in the BitBake manual.
  432. :term:`BB_MULTI_PROVIDER_ALLOWED`
  433. See :term:`bitbake:BB_MULTI_PROVIDER_ALLOWED` in the BitBake manual.
  434. :term:`BB_NICE_LEVEL`
  435. See :term:`bitbake:BB_NICE_LEVEL` in the BitBake manual.
  436. :term:`BB_NO_NETWORK`
  437. See :term:`bitbake:BB_NO_NETWORK` in the BitBake manual.
  438. :term:`BB_NUMBER_PARSE_THREADS`
  439. See :term:`bitbake:BB_NUMBER_PARSE_THREADS` in the BitBake manual.
  440. :term:`BB_NUMBER_THREADS`
  441. The maximum number of tasks BitBake should run in parallel at any one
  442. time. The OpenEmbedded build system automatically configures this
  443. variable to be equal to the number of cores on the build system. For
  444. example, a system with a dual core processor that also uses
  445. hyper-threading causes the :term:`BB_NUMBER_THREADS` variable to default
  446. to "4".
  447. For single socket systems (i.e. one CPU), you should not have to
  448. override this variable to gain optimal parallelism during builds.
  449. However, if you have very large systems that employ multiple physical
  450. CPUs, you might want to make sure the :term:`BB_NUMBER_THREADS` variable
  451. is not set higher than "20".
  452. For more information on speeding up builds, see the
  453. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  454. section in the Yocto Project Development Tasks Manual.
  455. On the other hand, if your goal is to limit the amount of system
  456. resources consumed by BitBake tasks, setting :term:`BB_NUMBER_THREADS`
  457. to a number lower than the number of CPU threads in your machine
  458. won't be sufficient. That's because each package will still be built
  459. and installed through a number of parallel jobs specified by the
  460. :term:`PARALLEL_MAKE` variable, which is by default the number of CPU
  461. threads in your system, and is not impacted by the
  462. :term:`BB_NUMBER_THREADS` value.
  463. So, if you set :term:`BB_NUMBER_THREADS` to "1" but don't set
  464. :term:`PARALLEL_MAKE`, most of your system resources will be consumed
  465. anyway.
  466. Therefore, if you intend to reduce the load of your build system by
  467. setting :term:`BB_NUMBER_THREADS` to a relatively low value compared
  468. to the number of CPU threads on your system, you should also set
  469. :term:`PARALLEL_MAKE` to a similarly low value.
  470. An alternative to using :term:`BB_NUMBER_THREADS` to keep the usage
  471. of build system resources under control is to use the smarter
  472. :term:`BB_PRESSURE_MAX_CPU`, :term:`BB_PRESSURE_MAX_IO` or
  473. :term:`BB_PRESSURE_MAX_MEMORY` controls. They will prevent BitBake
  474. from starting new tasks as long as thresholds are exceeded. Anyway,
  475. as with :term:`BB_NUMBER_THREADS`, such controls won't prevent the
  476. tasks already being run from using all CPU threads on the system
  477. if :term:`PARALLEL_MAKE` is not set to a low value.
  478. :term:`BB_ORIGENV`
  479. See :term:`bitbake:BB_ORIGENV` in the BitBake manual.
  480. :term:`BB_PRESERVE_ENV`
  481. See :term:`bitbake:BB_PRESERVE_ENV` in the BitBake manual.
  482. :term:`BB_PRESSURE_MAX_CPU`
  483. See :term:`bitbake:BB_PRESSURE_MAX_CPU` in the BitBake manual.
  484. :term:`BB_PRESSURE_MAX_IO`
  485. See :term:`bitbake:BB_PRESSURE_MAX_IO` in the BitBake manual.
  486. :term:`BB_PRESSURE_MAX_MEMORY`
  487. See :term:`bitbake:BB_PRESSURE_MAX_MEMORY` in the BitBake manual.
  488. :term:`BB_RUNFMT`
  489. See :term:`bitbake:BB_RUNFMT` in the BitBake manual.
  490. :term:`BB_RUNTASK`
  491. See :term:`bitbake:BB_RUNTASK` in the BitBake manual.
  492. :term:`BB_SCHEDULER`
  493. See :term:`bitbake:BB_SCHEDULER` in the BitBake manual.
  494. :term:`BB_SCHEDULERS`
  495. See :term:`bitbake:BB_SCHEDULERS` in the BitBake manual.
  496. :term:`BB_SERVER_TIMEOUT`
  497. Specifies the time (in seconds) after which to unload the BitBake
  498. server due to inactivity. Set :term:`BB_SERVER_TIMEOUT` to determine how
  499. long the BitBake server stays resident between invocations.
  500. For example, the following statement in your ``local.conf`` file
  501. instructs the server to be unloaded after 20 seconds of inactivity::
  502. BB_SERVER_TIMEOUT = "20"
  503. If you want the server to never be unloaded,
  504. set :term:`BB_SERVER_TIMEOUT` to "-1".
  505. :term:`BB_SETSCENE_DEPVALID`
  506. See :term:`bitbake:BB_SETSCENE_DEPVALID` in the BitBake manual.
  507. :term:`BB_SIGNATURE_EXCLUDE_FLAGS`
  508. See :term:`bitbake:BB_SIGNATURE_EXCLUDE_FLAGS` in the BitBake manual.
  509. :term:`BB_SIGNATURE_HANDLER`
  510. See :term:`bitbake:BB_SIGNATURE_HANDLER` in the BitBake manual.
  511. :term:`BB_SRCREV_POLICY`
  512. See :term:`bitbake:BB_SRCREV_POLICY` in the BitBake manual.
  513. :term:`BB_STRICT_CHECKSUM`
  514. See :term:`bitbake:BB_STRICT_CHECKSUM` in the BitBake manual.
  515. :term:`BB_TASK_IONICE_LEVEL`
  516. See :term:`bitbake:BB_TASK_IONICE_LEVEL` in the BitBake manual.
  517. :term:`BB_TASK_NICE_LEVEL`
  518. See :term:`bitbake:BB_TASK_NICE_LEVEL` in the BitBake manual.
  519. :term:`BB_TASKHASH`
  520. See :term:`bitbake:BB_TASKHASH` in the BitBake manual.
  521. :term:`BB_VERBOSE_LOGS`
  522. See :term:`bitbake:BB_VERBOSE_LOGS` in the BitBake manual.
  523. :term:`BB_WORKERCONTEXT`
  524. See :term:`bitbake:BB_WORKERCONTEXT` in the BitBake manual.
  525. :term:`BBCLASSEXTEND`
  526. Allows you to extend a recipe so that it builds variants of the
  527. software. There are common variants for recipes as "natives" like
  528. ``quilt-native``, which is a copy of Quilt built to run on the build
  529. system; "crosses" such as ``gcc-cross``, which is a compiler built to
  530. run on the build machine but produces binaries that run on the target
  531. :term:`MACHINE`; ":ref:`ref-classes-nativesdk`", which
  532. targets the SDK machine instead of :term:`MACHINE`; and "mulitlibs" in
  533. the form "``multilib:``\ multilib_name".
  534. To build a different variant of the recipe with a minimal amount of
  535. code, it usually is as simple as adding the following to your recipe::
  536. BBCLASSEXTEND =+ "native nativesdk"
  537. BBCLASSEXTEND =+ "multilib:multilib_name"
  538. .. note::
  539. Internally, the :term:`BBCLASSEXTEND` mechanism generates recipe
  540. variants by rewriting variable values and applying overrides such
  541. as ``:class-native``. For example, to generate a native version of
  542. a recipe, a :term:`DEPENDS` on "foo" is rewritten
  543. to a :term:`DEPENDS` on "foo-native".
  544. Even when using :term:`BBCLASSEXTEND`, the recipe is only parsed once.
  545. Parsing once adds some limitations. For example, it is not
  546. possible to include a different file depending on the variant,
  547. since ``include`` statements are processed when the recipe is
  548. parsed.
  549. :term:`BBDEBUG`
  550. See :term:`bitbake:BBDEBUG` in the BitBake manual.
  551. :term:`BBFILE_COLLECTIONS`
  552. Lists the names of configured layers. These names are used to find
  553. the other ``BBFILE_*`` variables. Typically, each layer will append
  554. its name to this variable in its ``conf/layer.conf`` file.
  555. :term:`BBFILE_PATTERN`
  556. Variable that expands to match files from
  557. :term:`BBFILES` in a particular layer. This variable
  558. is used in the ``conf/layer.conf`` file and must be suffixed with the
  559. name of the specific layer (e.g. ``BBFILE_PATTERN_emenlow``).
  560. :term:`BBFILE_PRIORITY`
  561. Assigns the priority for recipe files in each layer.
  562. This variable is useful in situations where the same recipe appears
  563. in more than one layer. Setting this variable allows you to
  564. prioritize a layer against other layers that contain the same recipe
  565. --- effectively letting you control the precedence for the multiple
  566. layers. The precedence established through this variable stands
  567. regardless of a recipe's version (:term:`PV` variable). For
  568. example, a layer that has a recipe with a higher :term:`PV` value but for
  569. which the :term:`BBFILE_PRIORITY` is set to have a lower precedence still
  570. has a lower precedence.
  571. A larger value for the :term:`BBFILE_PRIORITY` variable results in a
  572. higher precedence. For example, the value 6 has a higher precedence
  573. than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
  574. is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
  575. for more information. The default priority, if unspecified for a
  576. layer with no dependencies, is the lowest defined priority + 1 (or 1
  577. if no priorities are defined).
  578. .. tip::
  579. You can use the command ``bitbake-layers show-layers``
  580. to list all configured layers along with their priorities.
  581. :term:`BBFILES`
  582. A space-separated list of recipe files BitBake uses to build
  583. software.
  584. When specifying recipe files, you can pattern match using Python's
  585. `glob <https://docs.python.org/3/library/glob.html>`__ syntax.
  586. For details on the syntax, see the documentation by following the
  587. previous link.
  588. :term:`BBFILES_DYNAMIC`
  589. Activates content when identified layers are present. You identify
  590. the layers by the collections that the layers define.
  591. Use the :term:`BBFILES_DYNAMIC` variable to avoid ``.bbappend`` files
  592. whose corresponding ``.bb`` file is in a layer that attempts to
  593. modify other layers through ``.bbappend`` but does not want to
  594. introduce a hard dependency on those other layers.
  595. Use the following form for :term:`BBFILES_DYNAMIC`:
  596. ``collection_name:filename_pattern``.
  597. The following example identifies two collection names and two
  598. filename patterns::
  599. BBFILES_DYNAMIC += " \
  600. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  601. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  602. "
  603. This next example shows an error message that occurs because invalid
  604. entries are found, which cause parsing to fail:
  605. .. code-block:: none
  606. ERROR: BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:
  607. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  608. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  609. :term:`BBINCLUDED`
  610. See :term:`bitbake:BBINCLUDED` in the BitBake manual.
  611. :term:`BBINCLUDELOGS`
  612. Variable that controls how BitBake displays logs on build failure.
  613. :term:`BBINCLUDELOGS_LINES`
  614. If :term:`BBINCLUDELOGS` is set, specifies the
  615. maximum number of lines from the task log file to print when
  616. reporting a failed task. If you do not set :term:`BBINCLUDELOGS_LINES`,
  617. the entire log is printed.
  618. :term:`BBLAYERS`
  619. Lists the layers to enable during the build. This variable is defined
  620. in the ``bblayers.conf`` configuration file in the :term:`Build Directory`.
  621. Here is an example::
  622. BBLAYERS = " \
  623. /home/scottrif/poky/meta \
  624. /home/scottrif/poky/meta-poky \
  625. /home/scottrif/poky/meta-yocto-bsp \
  626. /home/scottrif/poky/meta-mykernel \
  627. "
  628. This example enables four layers, one of which is a custom,
  629. user-defined layer named ``meta-mykernel``.
  630. :term:`BBLAYERS_FETCH_DIR`
  631. See :term:`bitbake:BBLAYERS_FETCH_DIR` in the BitBake manual.
  632. :term:`BBMASK`
  633. Prevents BitBake from processing recipes and recipe append files.
  634. You can use the :term:`BBMASK` variable to "hide" these ``.bb`` and
  635. ``.bbappend`` files. BitBake ignores any recipe or recipe append
  636. files that match any of the expressions. It is as if BitBake does not
  637. see them at all. Consequently, matching files are not parsed or
  638. otherwise used by BitBake.
  639. The values you provide are passed to Python's regular expression
  640. compiler. Consequently, the syntax follows Python's Regular
  641. Expression (re) syntax. The expressions are compared against the full
  642. paths to the files. For complete syntax information, see Python's
  643. documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax.
  644. The following example uses a complete regular expression to tell
  645. BitBake to ignore all recipe and recipe append files in the
  646. ``meta-ti/recipes-misc/`` directory::
  647. BBMASK = "meta-ti/recipes-misc/"
  648. If you want to mask out multiple directories or recipes, you can
  649. specify multiple regular expression fragments. This next example
  650. masks out multiple directories and individual recipes::
  651. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  652. BBMASK += "/meta-oe/recipes-support/"
  653. BBMASK += "/meta-foo/.*/openldap"
  654. BBMASK += "opencv.*\.bbappend"
  655. BBMASK += "lzma"
  656. .. note::
  657. When specifying a directory name, use the trailing slash character
  658. to ensure you match just that directory name.
  659. :term:`BBMULTICONFIG`
  660. Specifies each additional separate configuration when you are
  661. building targets with multiple configurations. Use this variable in
  662. your ``conf/local.conf`` configuration file. Specify a
  663. multiconfigname for each configuration file you are using. For
  664. example, the following line specifies three configuration files::
  665. BBMULTICONFIG = "configA configB configC"
  666. Each configuration file you use must reside in a ``multiconfig``
  667. subdirectory of a configuration directory within a layer, or
  668. within the :term:`Build Directory` (e.g.
  669. ``build_directory/conf/multiconfig/configA.conf`` or
  670. ``mylayer/conf/multiconfig/configB.conf``).
  671. For information on how to use :term:`BBMULTICONFIG` in an environment
  672. that supports building targets with multiple configurations, see the
  673. ":ref:`dev-manual/building:building images for multiple targets using multiple configurations`"
  674. section in the Yocto Project Development Tasks Manual.
  675. :term:`BBPATH`
  676. See :term:`bitbake:BBPATH` in the BitBake manual.
  677. :term:`BBSERVER`
  678. If defined in the BitBake environment, :term:`BBSERVER` points to the
  679. BitBake remote server.
  680. Use the following format to export the variable to the BitBake
  681. environment::
  682. export BBSERVER=localhost:$port
  683. By default, :term:`BBSERVER` also appears in :term:`BB_BASEHASH_IGNORE_VARS`.
  684. Consequently, :term:`BBSERVER` is excluded from checksum and dependency
  685. data.
  686. :term:`BBTARGETS`
  687. See :term:`bitbake:BBTARGETS` in the BitBake manual.
  688. :term:`BINCONFIG`
  689. When inheriting the :ref:`ref-classes-binconfig-disabled` class, this
  690. variable specifies binary configuration scripts to disable in favor of
  691. using ``pkg-config`` to query the information. The
  692. :ref:`ref-classes-binconfig-disabled` class will modify the specified
  693. scripts to return an error so that calls to them can be easily found
  694. and replaced.
  695. To add multiple scripts, separate them by spaces. Here is an example
  696. from the ``libpng`` recipe::
  697. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  698. :term:`BINCONFIG_GLOB`
  699. When inheriting the :ref:`ref-classes-binconfig` class,
  700. this variable specifies a wildcard for configuration scripts that
  701. need editing. The scripts are edited to correct any paths that have
  702. been set up during compilation so that they are correct for use when
  703. installed into the sysroot and called by the build processes of other
  704. recipes.
  705. .. note::
  706. The :term:`BINCONFIG_GLOB` variable uses
  707. `shell globbing <https://tldp.org/LDP/abs/html/globbingref.html>`__,
  708. which is recognition and expansion of wildcards during pattern
  709. matching. Shell globbing is very similar to
  710. `fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__
  711. and `glob <https://docs.python.org/3/library/glob.html>`__.
  712. For more information on how this variable works, see
  713. ``meta/classes-recipe/binconfig.bbclass`` in the :term:`Source Directory`.
  714. You can also find general
  715. information on the class in the
  716. ":ref:`ref-classes-binconfig`" section.
  717. :term:`BITBAKE_UI`
  718. See :term:`bitbake:BITBAKE_UI` in the BitBake manual.
  719. :term:`BP`
  720. The base recipe name and version but without any special recipe name
  721. suffix (i.e. ``-native``, ``lib64-``, and so forth). :term:`BP` is
  722. comprised of the following::
  723. ${BPN}-${PV}
  724. :term:`BPN`
  725. This variable is a version of the :term:`PN` variable with
  726. common prefixes and suffixes removed, such as ``nativesdk-``,
  727. ``-cross``, ``-native``, and multilib's ``lib64-`` and ``lib32-``.
  728. The exact lists of prefixes and suffixes removed are specified by the
  729. :term:`MLPREFIX` and
  730. :term:`SPECIAL_PKGSUFFIX` variables,
  731. respectively.
  732. :term:`BUGTRACKER`
  733. Specifies a URL for an upstream bug tracking website for a recipe.
  734. The OpenEmbedded build system does not use this variable. Rather, the
  735. variable is a useful pointer in case a bug in the software being
  736. built needs to be manually reported.
  737. :term:`BUILD_ARCH`
  738. Specifies the architecture of the build host (e.g. ``i686``). The
  739. OpenEmbedded build system sets the value of :term:`BUILD_ARCH` from the
  740. machine name reported by the ``uname`` command.
  741. :term:`BUILD_AS_ARCH`
  742. Specifies the architecture-specific assembler flags for the build
  743. host. By default, the value of :term:`BUILD_AS_ARCH` is empty.
  744. :term:`BUILD_CC_ARCH`
  745. Specifies the architecture-specific C compiler flags for the build
  746. host. By default, the value of :term:`BUILD_CC_ARCH` is empty.
  747. :term:`BUILD_CCLD`
  748. Specifies the linker command to be used for the build host when the C
  749. compiler is being used as the linker. By default, :term:`BUILD_CCLD`
  750. points to GCC and passes as arguments the value of
  751. :term:`BUILD_CC_ARCH`, assuming
  752. :term:`BUILD_CC_ARCH` is set.
  753. :term:`BUILD_CFLAGS`
  754. Specifies the flags to pass to the C compiler when building for the
  755. build host. When building in the ``-native`` context,
  756. :term:`CFLAGS` is set to the value of this variable by
  757. default.
  758. :term:`BUILD_CPPFLAGS`
  759. Specifies the flags to pass to the C preprocessor (i.e. to both the C
  760. and the C++ compilers) when building for the build host. When
  761. building in the ``-native`` context, :term:`CPPFLAGS`
  762. is set to the value of this variable by default.
  763. :term:`BUILD_CXXFLAGS`
  764. Specifies the flags to pass to the C++ compiler when building for the
  765. build host. When building in the ``-native`` context,
  766. :term:`CXXFLAGS` is set to the value of this variable
  767. by default.
  768. :term:`BUILD_FC`
  769. Specifies the Fortran compiler command for the build host. By
  770. default, :term:`BUILD_FC` points to Gfortran and passes as arguments the
  771. value of :term:`BUILD_CC_ARCH`, assuming
  772. :term:`BUILD_CC_ARCH` is set.
  773. :term:`BUILD_LD`
  774. Specifies the linker command for the build host. By default,
  775. :term:`BUILD_LD` points to the GNU linker (ld) and passes as arguments
  776. the value of :term:`BUILD_LD_ARCH`, assuming
  777. :term:`BUILD_LD_ARCH` is set.
  778. :term:`BUILD_LD_ARCH`
  779. Specifies architecture-specific linker flags for the build host. By
  780. default, the value of :term:`BUILD_LD_ARCH` is empty.
  781. :term:`BUILD_LDFLAGS`
  782. Specifies the flags to pass to the linker when building for the build
  783. host. When building in the ``-native`` context,
  784. :term:`LDFLAGS` is set to the value of this variable
  785. by default.
  786. :term:`BUILD_OPTIMIZATION`
  787. Specifies the optimization flags passed to the C compiler when
  788. building for the build host or the SDK. The flags are passed through
  789. the :term:`BUILD_CFLAGS` and
  790. :term:`BUILDSDK_CFLAGS` default values.
  791. The default value of the :term:`BUILD_OPTIMIZATION` variable is "-O2
  792. -pipe".
  793. :term:`BUILD_OS`
  794. Specifies the operating system in use on the build host (e.g.
  795. "linux"). The OpenEmbedded build system sets the value of
  796. :term:`BUILD_OS` from the OS reported by the ``uname`` command --- the
  797. first word, converted to lower-case characters.
  798. :term:`BUILD_PREFIX`
  799. The toolchain binary prefix used for native recipes. The OpenEmbedded
  800. build system uses the :term:`BUILD_PREFIX` value to set the
  801. :term:`TARGET_PREFIX` when building for :ref:`ref-classes-native` recipes.
  802. :term:`BUILD_STRIP`
  803. Specifies the command to be used to strip debugging symbols from
  804. binaries produced for the build host. By default, :term:`BUILD_STRIP`
  805. points to
  806. ``${``\ :term:`BUILD_PREFIX`\ ``}strip``.
  807. :term:`BUILD_SYS`
  808. Specifies the system, including the architecture and the operating
  809. system, to use when building for the build host (i.e. when building
  810. :ref:`ref-classes-native` recipes).
  811. The OpenEmbedded build system automatically sets this variable based
  812. on :term:`BUILD_ARCH`,
  813. :term:`BUILD_VENDOR`, and
  814. :term:`BUILD_OS`. You do not need to set the
  815. :term:`BUILD_SYS` variable yourself.
  816. :term:`BUILD_VENDOR`
  817. Specifies the vendor name to use when building for the build host.
  818. The default value is an empty string ("").
  819. :term:`BUILDDIR`
  820. Points to the location of the :term:`Build Directory`. You can define
  821. this directory indirectly through the :ref:`structure-core-script` script
  822. by passing in a :term:`Build Directory` path when you run the script. If
  823. you run the script and do not provide a :term:`Build Directory` path, the
  824. :term:`BUILDDIR` defaults to ``build`` in the current directory.
  825. :term:`BUILDHISTORY_COMMIT`
  826. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  827. specifies whether or not to commit the build history output in a local
  828. Git repository. If set to "1", this local repository will be maintained
  829. automatically by the :ref:`ref-classes-buildhistory` class and a commit
  830. will be created on every build for changes to each top-level subdirectory
  831. of the build history output (images, packages, and sdk). If you want to
  832. track changes to build history over time, you should set this value to
  833. "1".
  834. By default, the :ref:`ref-classes-buildhistory` class
  835. enables committing the buildhistory output in a local Git repository::
  836. BUILDHISTORY_COMMIT ?= "1"
  837. :term:`BUILDHISTORY_COMMIT_AUTHOR`
  838. When inheriting the :ref:`ref-classes-buildhistory`
  839. class, this variable specifies the author to use for each Git commit.
  840. In order for the :term:`BUILDHISTORY_COMMIT_AUTHOR` variable to work, the
  841. :term:`BUILDHISTORY_COMMIT` variable must
  842. be set to "1".
  843. Git requires that the value you provide for the
  844. :term:`BUILDHISTORY_COMMIT_AUTHOR` variable takes the form of "name
  845. email@host". Providing an email address or host that is not valid
  846. does not produce an error.
  847. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  848. as follows::
  849. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
  850. :term:`BUILDHISTORY_DIR`
  851. When inheriting the :ref:`ref-classes-buildhistory`
  852. class, this variable specifies the directory in which build history
  853. information is kept. For more information on how the variable works,
  854. see the :ref:`ref-classes-buildhistory` class.
  855. By default, the :ref:`ref-classes-buildhistory` class sets the directory
  856. as follows::
  857. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  858. :term:`BUILDHISTORY_FEATURES`
  859. When inheriting the :ref:`ref-classes-buildhistory`
  860. class, this variable specifies the build history features to be
  861. enabled. For more information on how build history works, see the
  862. ":ref:`dev-manual/build-quality:maintaining build output quality`"
  863. section in the Yocto Project Development Tasks Manual.
  864. You can specify these features in the form of a space-separated list:
  865. - *image:* Analysis of the contents of images, which includes the
  866. list of installed packages among other things.
  867. - *package:* Analysis of the contents of individual packages.
  868. - *sdk:* Analysis of the contents of the software development kit
  869. (SDK).
  870. - *task:* Save output file signatures for
  871. :ref:`shared state <overview-manual/concepts:shared state cache>`
  872. (sstate) tasks.
  873. This saves one file per task and lists the SHA-256 checksums for
  874. each file staged (i.e. the output of the task).
  875. By default, the :ref:`ref-classes-buildhistory` class enables the
  876. following features::
  877. BUILDHISTORY_FEATURES ?= "image package sdk"
  878. :term:`BUILDHISTORY_IMAGE_FILES`
  879. When inheriting the :ref:`ref-classes-buildhistory`
  880. class, this variable specifies a list of paths to files copied from
  881. the image contents into the build history directory under an
  882. "image-files" directory in the directory for the image, so that you
  883. can track the contents of each file. The default is to copy
  884. ``/etc/passwd`` and ``/etc/group``, which allows you to monitor for
  885. changes in user and group entries. You can modify the list to include
  886. any file. Specifying an invalid path does not produce an error.
  887. Consequently, you can include files that might not always be present.
  888. By default, the :ref:`ref-classes-buildhistory` class provides paths to
  889. the following files::
  890. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  891. :term:`BUILDHISTORY_PATH_PREFIX_STRIP`
  892. When inheriting the :ref:`ref-classes-buildhistory`
  893. class, this variable specifies a common path prefix that should be
  894. stripped off the beginning of paths in the task signature list when the
  895. ``task`` feature is active in :term:`BUILDHISTORY_FEATURES`. This can be
  896. useful when build history is populated from multiple sources that may not
  897. all use the same top level directory.
  898. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  899. as follows::
  900. BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
  901. In this case, no prefixes will be stripped.
  902. :term:`BUILDHISTORY_PUSH_REPO`
  903. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  904. optionally specifies a remote repository to which build history pushes
  905. Git changes. In order for :term:`BUILDHISTORY_PUSH_REPO` to work,
  906. :term:`BUILDHISTORY_COMMIT` must be set to "1".
  907. The repository should correspond to a remote address that specifies a
  908. repository as understood by Git, or alternatively to a remote name
  909. that you have set up manually using ``git remote`` within the local
  910. repository.
  911. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  912. as follows::
  913. BUILDHISTORY_PUSH_REPO ?= ""
  914. :term:`BUILDNAME`
  915. See :term:`bitbake:BUILDNAME` in the BitBake manual.
  916. :term:`BUILDSDK_CFLAGS`
  917. Specifies the flags to pass to the C compiler when building for the
  918. SDK. When building in the ``nativesdk-`` context,
  919. :term:`CFLAGS` is set to the value of this variable by
  920. default.
  921. :term:`BUILDSDK_CPPFLAGS`
  922. Specifies the flags to pass to the C pre-processor (i.e. to both the
  923. C and the C++ compilers) when building for the SDK. When building in
  924. the ``nativesdk-`` context, :term:`CPPFLAGS` is set
  925. to the value of this variable by default.
  926. :term:`BUILDSDK_CXXFLAGS`
  927. Specifies the flags to pass to the C++ compiler when building for the
  928. SDK. When building in the ``nativesdk-`` context,
  929. :term:`CXXFLAGS` is set to the value of this variable
  930. by default.
  931. :term:`BUILDSDK_LDFLAGS`
  932. Specifies the flags to pass to the linker when building for the SDK.
  933. When building in the ``nativesdk-`` context,
  934. :term:`LDFLAGS` is set to the value of this variable
  935. by default.
  936. :term:`BUILDSTATS_BASE`
  937. Points to the location of the directory that holds build statistics
  938. when you use and enable the :ref:`ref-classes-buildstats` class. The
  939. :term:`BUILDSTATS_BASE` directory defaults to
  940. ``${``\ :term:`TMPDIR`\ ``}/buildstats/``.
  941. :term:`BUSYBOX_SPLIT_SUID`
  942. For the BusyBox recipe, specifies whether to split the output
  943. executable file into two parts: one for features that require
  944. ``setuid root``, and one for the remaining features (i.e. those that
  945. do not require ``setuid root``).
  946. The :term:`BUSYBOX_SPLIT_SUID` variable defaults to "1", which results in
  947. splitting the output executable file. Set the variable to "0" to get
  948. a single output executable file.
  949. :term:`BZRDIR`
  950. See :term:`bitbake:BZRDIR` in the BitBake manual.
  951. :term:`CACHE`
  952. Specifies the directory BitBake uses to store a cache of the
  953. :term:`Metadata` so it does not need to be parsed every time
  954. BitBake is started.
  955. :term:`CC`
  956. The minimal command and arguments used to run the C compiler.
  957. :term:`CFLAGS`
  958. Specifies the flags to pass to the C compiler. This variable is
  959. exported to an environment variable and thus made visible to the
  960. software being built during the compilation step.
  961. Default initialization for :term:`CFLAGS` varies depending on what is
  962. being built:
  963. - :term:`TARGET_CFLAGS` when building for the
  964. target
  965. - :term:`BUILD_CFLAGS` when building for the
  966. build host (i.e. ``-native``)
  967. - :term:`BUILDSDK_CFLAGS` when building for
  968. an SDK (i.e. ``nativesdk-``)
  969. :term:`CLASSOVERRIDE`
  970. An internal variable specifying the special class override that
  971. should currently apply (e.g. "class-target", "class-native", and so
  972. forth). The classes that use this variable (e.g.
  973. :ref:`ref-classes-native`, :ref:`ref-classes-nativesdk`, and so forth)
  974. set the variable to appropriate values.
  975. .. note::
  976. :term:`CLASSOVERRIDE` gets its default "class-target" value from the
  977. ``bitbake.conf`` file.
  978. As an example, the following override allows you to install extra
  979. files, but only when building for the target::
  980. do_install:append:class-target() {
  981. install my-extra-file ${D}${sysconfdir}
  982. }
  983. Here is an example where ``FOO`` is set to
  984. "native" when building for the build host, and to "other" when not
  985. building for the build host::
  986. FOO:class-native = "native"
  987. FOO = "other"
  988. The underlying mechanism behind :term:`CLASSOVERRIDE` is simply
  989. that it is included in the default value of
  990. :term:`OVERRIDES`.
  991. :term:`CLEANBROKEN`
  992. If set to "1" within a recipe, :term:`CLEANBROKEN` specifies that the
  993. ``make clean`` command does not work for the software being built.
  994. Consequently, the OpenEmbedded build system will not try to run
  995. ``make clean`` during the :ref:`ref-tasks-configure`
  996. task, which is the default behavior.
  997. :term:`COMBINED_FEATURES`
  998. Provides a list of hardware features that are enabled in both
  999. :term:`MACHINE_FEATURES` and
  1000. :term:`DISTRO_FEATURES`. This select list of
  1001. features contains features that make sense to be controlled both at
  1002. the machine and distribution configuration level. For example, the
  1003. "bluetooth" feature requires hardware support but should also be
  1004. optional at the distribution level, in case the hardware supports
  1005. Bluetooth but you do not ever intend to use it.
  1006. :term:`COMMERCIAL_AUDIO_PLUGINS`
  1007. This variable is specific to the :yocto_git:`GStreamer recipes
  1008. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1009. It allows to build the GStreamer `"ugly"
  1010. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1011. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ audio plugins.
  1012. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1013. section for usage details.
  1014. :term:`COMMERCIAL_VIDEO_PLUGINS`
  1015. This variable is specific to the :yocto_git:`GStreamer recipes
  1016. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1017. It allows to build the GStreamer `"ugly"
  1018. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1019. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ video plugins.
  1020. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1021. section for usage details.
  1022. :term:`COMMON_LICENSE_DIR`
  1023. Points to ``meta/files/common-licenses`` in the
  1024. :term:`Source Directory`, which is where generic license
  1025. files reside.
  1026. :term:`COMPATIBLE_HOST`
  1027. A regular expression that resolves to one or more hosts (when the
  1028. recipe is native) or one or more targets (when the recipe is
  1029. non-native) with which a recipe is compatible. The regular expression
  1030. is matched against :term:`HOST_SYS`. You can use the
  1031. variable to stop recipes from being built for classes of systems with
  1032. which the recipes are not compatible. Stopping these builds is
  1033. particularly useful with kernels. The variable also helps to increase
  1034. parsing speed since the build system skips parsing recipes not
  1035. compatible with the current system.
  1036. :term:`COMPATIBLE_MACHINE`
  1037. A regular expression that resolves to one or more target machines
  1038. with which a recipe is compatible. The regular expression is matched
  1039. against :term:`MACHINEOVERRIDES`. You can use
  1040. the variable to stop recipes from being built for machines with which
  1041. the recipes are not compatible. Stopping these builds is particularly
  1042. useful with kernels. The variable also helps to increase parsing
  1043. speed since the build system skips parsing recipes not compatible
  1044. with the current machine.
  1045. :term:`COMPLEMENTARY_GLOB`
  1046. Defines wildcards to match when installing a list of complementary
  1047. packages for all the packages explicitly (or implicitly) installed in
  1048. an image.
  1049. The :term:`COMPLEMENTARY_GLOB` variable uses Unix filename pattern matching
  1050. (`fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__),
  1051. which is similar to the Unix style pathname pattern expansion
  1052. (`glob <https://docs.python.org/3/library/glob.html>`__).
  1053. The resulting list of complementary packages is associated with an
  1054. item that can be added to
  1055. :term:`IMAGE_FEATURES`. An example usage of
  1056. this is the "dev-pkgs" item that when added to :term:`IMAGE_FEATURES`
  1057. will install -dev packages (containing headers and other development
  1058. files) for every package in the image.
  1059. To add a new feature item pointing to a wildcard, use a variable flag
  1060. to specify the feature item name and use the value to specify the
  1061. wildcard. Here is an example::
  1062. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  1063. .. note::
  1064. When installing complementary packages, recommends relationships
  1065. (set via :term:`RRECOMMENDS`) are always ignored.
  1066. :term:`COMPONENTS_DIR`
  1067. Stores sysroot components for each recipe. The OpenEmbedded build
  1068. system uses :term:`COMPONENTS_DIR` when constructing recipe-specific
  1069. sysroots for other recipes.
  1070. The default is
  1071. "``${``\ :term:`STAGING_DIR`\ ``}-components``."
  1072. (i.e.
  1073. "``${``\ :term:`TMPDIR`\ ``}/sysroots-components``").
  1074. :term:`CONF_VERSION`
  1075. Tracks the version of the local configuration file (i.e.
  1076. ``local.conf``). The value for :term:`CONF_VERSION` increments each time
  1077. ``build/conf/`` compatibility changes.
  1078. :term:`CONFFILES`
  1079. Identifies editable or configurable files that are part of a package.
  1080. If the Package Management System (PMS) is being used to update
  1081. packages on the target system, it is possible that configuration
  1082. files you have changed after the original installation and that you
  1083. now want to remain unchanged are overwritten. In other words,
  1084. editable files might exist in the package that you do not want reset
  1085. as part of the package update process. You can use the :term:`CONFFILES`
  1086. variable to list the files in the package that you wish to prevent
  1087. the PMS from overwriting during this update process.
  1088. To use the :term:`CONFFILES` variable, provide a package name override
  1089. that identifies the resulting package. Then, provide a
  1090. space-separated list of files. Here is an example::
  1091. CONFFILES:${PN} += "${sysconfdir}/file1 \
  1092. ${sysconfdir}/file2 ${sysconfdir}/file3"
  1093. There is a relationship between the :term:`CONFFILES` and :term:`FILES`
  1094. variables. The files listed within :term:`CONFFILES` must be a subset of
  1095. the files listed within :term:`FILES`. Because the configuration files
  1096. you provide with :term:`CONFFILES` are simply being identified so that
  1097. the PMS will not overwrite them, it makes sense that the files must
  1098. already be included as part of the package through the :term:`FILES`
  1099. variable.
  1100. .. note::
  1101. When specifying paths as part of the :term:`CONFFILES` variable, it is
  1102. good practice to use appropriate path variables.
  1103. For example, ``${sysconfdir}`` rather than ``/etc`` or ``${bindir}``
  1104. rather than ``/usr/bin``. You can find a list of these variables at
  1105. the top of the ``meta/conf/bitbake.conf`` file in the
  1106. :term:`Source Directory`.
  1107. :term:`CONFIG_INITRAMFS_SOURCE`
  1108. Identifies the initial RAM filesystem (:term:`Initramfs`) source files. The
  1109. OpenEmbedded build system receives and uses this kernel Kconfig
  1110. variable as an environment variable. By default, the variable is set
  1111. to null ("").
  1112. The :term:`CONFIG_INITRAMFS_SOURCE` can be either a single cpio archive
  1113. with a ``.cpio`` suffix or a space-separated list of directories and
  1114. files for building the :term:`Initramfs` image. A cpio archive should contain
  1115. a filesystem archive to be used as an :term:`Initramfs` image. Directories
  1116. should contain a filesystem layout to be included in the :term:`Initramfs`
  1117. image. Files should contain entries according to the format described
  1118. by the ``usr/gen_init_cpio`` program in the kernel tree.
  1119. If you specify multiple directories and files, the :term:`Initramfs` image
  1120. will be the aggregate of all of them.
  1121. For information on creating an :term:`Initramfs`, see the
  1122. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  1123. in the Yocto Project Development Tasks Manual.
  1124. :term:`CONFIG_SITE`
  1125. A list of files that contains ``autoconf`` test results relevant to
  1126. the current build. This variable is used by the Autotools utilities
  1127. when running ``configure``.
  1128. :term:`CONFIGURE_FLAGS`
  1129. The minimal arguments for GNU configure.
  1130. :term:`CONFLICT_DISTRO_FEATURES`
  1131. When inheriting the :ref:`ref-classes-features_check`
  1132. class, this variable identifies distribution features that would be
  1133. in conflict should the recipe be built. In other words, if the
  1134. :term:`CONFLICT_DISTRO_FEATURES` variable lists a feature that also
  1135. appears in :term:`DISTRO_FEATURES` within the current configuration, then
  1136. the recipe will be skipped, and if the build system attempts to build
  1137. the recipe then an error will be triggered.
  1138. :term:`CONVERSION_CMD`
  1139. This variable is used for storing image conversion commands.
  1140. Image conversion can convert an image into different objects like:
  1141. - Compressed version of the image
  1142. - Checksums for the image
  1143. An example of :term:`CONVERSION_CMD` from :ref:`ref-classes-image_types`
  1144. class is::
  1145. CONVERSION_CMD:lzo = "lzop -9 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
  1146. :term:`COPY_LIC_DIRS`
  1147. If set to "1" along with the
  1148. :term:`COPY_LIC_MANIFEST` variable, the
  1149. OpenEmbedded build system copies into the image the license files,
  1150. which are located in ``/usr/share/common-licenses``, for each
  1151. package. The license files are placed in directories within the image
  1152. itself during build time.
  1153. .. note::
  1154. The :term:`COPY_LIC_DIRS` does not offer a path for adding licenses for
  1155. newly installed packages to an image, which might be most suitable for
  1156. read-only filesystems that cannot be upgraded. See the
  1157. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1158. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1159. section in the Yocto Project Development Tasks Manual for
  1160. information on providing license text.
  1161. :term:`COPY_LIC_MANIFEST`
  1162. If set to "1", the OpenEmbedded build system copies the license
  1163. manifest for the image to
  1164. ``/usr/share/common-licenses/license.manifest`` within the image
  1165. itself during build time.
  1166. .. note::
  1167. The :term:`COPY_LIC_MANIFEST` does not offer a path for adding licenses for
  1168. newly installed packages to an image, which might be most suitable for
  1169. read-only filesystems that cannot be upgraded. See the
  1170. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1171. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1172. section in the Yocto Project Development Tasks Manual for
  1173. information on providing license text.
  1174. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1175. A space-separated list of licenses to exclude from the source archived by
  1176. the :ref:`ref-classes-archiver` class. In other words, if a license in a
  1177. recipe's :term:`LICENSE` value is in the value of
  1178. :term:`COPYLEFT_LICENSE_EXCLUDE`, then its source is not archived by the
  1179. class.
  1180. .. note::
  1181. The :term:`COPYLEFT_LICENSE_EXCLUDE` variable takes precedence over the
  1182. :term:`COPYLEFT_LICENSE_INCLUDE` variable.
  1183. The default value, which is "CLOSED Proprietary", for
  1184. :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the
  1185. :ref:`ref-classes-copyleft_filter` class, which
  1186. is inherited by the :ref:`ref-classes-archiver` class.
  1187. :term:`COPYLEFT_LICENSE_INCLUDE`
  1188. A space-separated list of licenses to include in the source archived
  1189. by the :ref:`ref-classes-archiver` class. In other
  1190. words, if a license in a recipe's :term:`LICENSE`
  1191. value is in the value of :term:`COPYLEFT_LICENSE_INCLUDE`, then its
  1192. source is archived by the class.
  1193. The default value is set by the :ref:`ref-classes-copyleft_filter` class,
  1194. which is inherited by the :ref:`ref-classes-archiver` class. The default
  1195. value includes "GPL*", "LGPL*", and "AGPL*".
  1196. :term:`COPYLEFT_PN_EXCLUDE`
  1197. A list of recipes to exclude in the source archived by the
  1198. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_EXCLUDE`
  1199. variable overrides the license inclusion and exclusion caused through the
  1200. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1201. variables, respectively.
  1202. The default value, which is "" indicating to not explicitly exclude
  1203. any recipes by name, for :term:`COPYLEFT_PN_EXCLUDE` is set by the
  1204. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1205. :ref:`ref-classes-archiver` class.
  1206. :term:`COPYLEFT_PN_INCLUDE`
  1207. A list of recipes to include in the source archived by the
  1208. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_INCLUDE`
  1209. variable overrides the license inclusion and exclusion caused through the
  1210. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1211. variables, respectively.
  1212. The default value, which is "" indicating to not explicitly include
  1213. any recipes by name, for :term:`COPYLEFT_PN_INCLUDE` is set by the
  1214. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1215. :ref:`ref-classes-archiver` class.
  1216. :term:`COPYLEFT_RECIPE_TYPES`
  1217. A space-separated list of recipe types to include in the source
  1218. archived by the :ref:`archiver <ref-classes-archiver>` class.
  1219. Recipe types are ``target``, :ref:`ref-classes-native`,
  1220. :ref:`ref-classes-nativesdk`, :ref:`ref-classes-cross`,
  1221. :ref:`ref-classes-crosssdk`, and :ref:`ref-classes-cross-canadian`.
  1222. The default value, which is "target*", for :term:`COPYLEFT_RECIPE_TYPES`
  1223. is set by the :ref:`ref-classes-copyleft_filter` class, which is
  1224. inherited by the :ref:`ref-classes-archiver` class.
  1225. :term:`CORE_IMAGE_EXTRA_INSTALL`
  1226. Specifies the list of packages to be added to the image. You should
  1227. only set this variable in the ``local.conf`` configuration file found
  1228. in the :term:`Build Directory`.
  1229. This variable replaces ``POKY_EXTRA_INSTALL``, which is no longer
  1230. supported.
  1231. :term:`COREBASE`
  1232. Specifies the parent directory of the OpenEmbedded-Core Metadata
  1233. layer (i.e. ``meta``).
  1234. It is an important distinction that :term:`COREBASE` points to the parent
  1235. of this layer and not the layer itself. Consider an example where you
  1236. have cloned the Poky Git repository and retained the ``poky`` name
  1237. for your local copy of the repository. In this case, :term:`COREBASE`
  1238. points to the ``poky`` folder because it is the parent directory of
  1239. the ``poky/meta`` layer.
  1240. :term:`COREBASE_FILES`
  1241. Lists files from the :term:`COREBASE` directory that
  1242. should be copied other than the layers listed in the
  1243. ``bblayers.conf`` file. The :term:`COREBASE_FILES` variable allows
  1244. to copy metadata from the OpenEmbedded build system
  1245. into the extensible SDK.
  1246. Explicitly listing files in :term:`COREBASE` is needed because it
  1247. typically contains build directories and other files that should not
  1248. normally be copied into the extensible SDK. Consequently, the value
  1249. of :term:`COREBASE_FILES` is used in order to only copy the files that
  1250. are actually needed.
  1251. :term:`CPP`
  1252. The minimal command and arguments used to run the C preprocessor.
  1253. :term:`CPPFLAGS`
  1254. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1255. C and the C++ compilers). This variable is exported to an environment
  1256. variable and thus made visible to the software being built during the
  1257. compilation step.
  1258. Default initialization for :term:`CPPFLAGS` varies depending on what is
  1259. being built:
  1260. - :term:`TARGET_CPPFLAGS` when building for
  1261. the target
  1262. - :term:`BUILD_CPPFLAGS` when building for the
  1263. build host (i.e. ``-native``)
  1264. - :term:`BUILDSDK_CPPFLAGS` when building
  1265. for an SDK (i.e. ``nativesdk-``)
  1266. :term:`CROSS_COMPILE`
  1267. The toolchain binary prefix for the target tools. The
  1268. :term:`CROSS_COMPILE` variable is the same as the
  1269. :term:`TARGET_PREFIX` variable.
  1270. .. note::
  1271. The OpenEmbedded build system sets the :term:`CROSS_COMPILE`
  1272. variable only in certain contexts (e.g. when building for kernel
  1273. and kernel module recipes).
  1274. :term:`CVE_CHECK_IGNORE`
  1275. This variable is deprecated and should be replaced by :term:`CVE_STATUS`.
  1276. :term:`CVE_CHECK_SHOW_WARNINGS`
  1277. Specifies whether or not the :ref:`ref-classes-cve-check`
  1278. class should generate warning messages on the console when unpatched
  1279. CVEs are found. The default is "1", but you may wish to set it to "0" if
  1280. you are already examining/processing the logs after the build has
  1281. completed and thus do not need the warning messages.
  1282. :term:`CVE_CHECK_SKIP_RECIPE`
  1283. The list of package names (:term:`PN`) for which
  1284. CVEs (Common Vulnerabilities and Exposures) are ignored.
  1285. :term:`CVE_DB_UPDATE_INTERVAL`
  1286. Specifies the CVE database update interval in seconds, as used by
  1287. ``cve-update-db-native``. The default value is "86400" i.e. once a day
  1288. (24*60*60). If the value is set to "0" then the update will be forced
  1289. every time. Alternatively, a negative value e.g. "-1" will disable
  1290. updates entirely.
  1291. :term:`CVE_PRODUCT`
  1292. In a recipe, defines the name used to match the recipe name
  1293. against the name in the upstream `NIST CVE database <https://nvd.nist.gov/>`__.
  1294. The default is ${:term:`BPN`} (except for recipes that inherit the
  1295. :ref:`ref-classes-pypi` class where it is set based upon
  1296. :term:`PYPI_PACKAGE`). If it does not match the name in the NIST CVE
  1297. database or matches with multiple entries in the database, the default
  1298. value needs to be changed.
  1299. Here is an example from the :oe_layerindex:`Berkeley DB recipe </layerindex/recipe/544>`::
  1300. CVE_PRODUCT = "oracle_berkeley_db berkeley_db"
  1301. Sometimes the product name is not specific enough, for example
  1302. "tar" has been matching CVEs for the GNU ``tar`` package and also
  1303. the ``node-tar`` node.js extension. To avoid this problem, use the
  1304. vendor name as a prefix. The syntax for this is::
  1305. CVE_PRODUCT = "vendor:package"
  1306. :term:`CVE_STATUS`
  1307. The CVE ID which is patched or should be ignored. Here is
  1308. an example from the :oe_layerindex:`Python3 recipe</layerindex/recipe/23823>`::
  1309. CVE_STATUS[CVE-2020-15523] = "not-applicable-platform: Issue only applies on Windows"
  1310. It has the format "reason: description" and the description is optional.
  1311. The Reason is mapped to the final CVE state by mapping via
  1312. :term:`CVE_CHECK_STATUSMAP`
  1313. :term:`CVE_STATUS_GROUPS`
  1314. If there are many CVEs with the same status and reason, they can by simplified by using this
  1315. variable instead of many similar lines with :term:`CVE_STATUS`::
  1316. CVE_STATUS_GROUPS = "CVE_STATUS_WIN CVE_STATUS_PATCHED"
  1317. CVE_STATUS_WIN = "CVE-1234-0001 CVE-1234-0002"
  1318. CVE_STATUS_WIN[status] = "not-applicable-platform: Issue only applies on Windows"
  1319. CVE_STATUS_PATCHED = "CVE-1234-0003 CVE-1234-0004"
  1320. CVE_STATUS_PATCHED[status] = "fixed-version: Fixed externally"
  1321. :term:`CVE_CHECK_STATUSMAP`
  1322. Mapping variable for all possible reasons of :term:`CVE_STATUS`:
  1323. ``Patched``, ``Unpatched`` and ``Ignored``.
  1324. See :ref:`ref-classes-cve-check` or ``meta/conf/cve-check-map.conf`` for more details::
  1325. CVE_CHECK_STATUSMAP[cpe-incorrect] = "Ignored"
  1326. :term:`CVE_VERSION`
  1327. In a recipe, defines the version used to match the recipe version
  1328. against the version in the `NIST CVE database <https://nvd.nist.gov/>`__
  1329. when usign :ref:`ref-classes-cve-check`.
  1330. The default is ${:term:`PV`} but if recipes use custom version numbers
  1331. which do not map to upstream software component release versions and the versions
  1332. used in the CVE database, then this variable can be used to set the
  1333. version number for :ref:`ref-classes-cve-check`. Example::
  1334. CVE_VERSION = "2.39"
  1335. :term:`CVSDIR`
  1336. The directory in which files checked out under the CVS system are
  1337. stored.
  1338. :term:`CXX`
  1339. The minimal command and arguments used to run the C++ compiler.
  1340. :term:`CXXFLAGS`
  1341. Specifies the flags to pass to the C++ compiler. This variable is
  1342. exported to an environment variable and thus made visible to the
  1343. software being built during the compilation step.
  1344. Default initialization for :term:`CXXFLAGS` varies depending on what is
  1345. being built:
  1346. - :term:`TARGET_CXXFLAGS` when building for
  1347. the target
  1348. - :term:`BUILD_CXXFLAGS` when building for the
  1349. build host (i.e. ``-native``)
  1350. - :term:`BUILDSDK_CXXFLAGS` when building
  1351. for an SDK (i.e. ``nativesdk-``)
  1352. :term:`D`
  1353. The destination directory. The location in the :term:`Build Directory`
  1354. where components are installed by the
  1355. :ref:`ref-tasks-install` task. This location defaults
  1356. to::
  1357. ${WORKDIR}/image
  1358. .. note::
  1359. Tasks that read from or write to this directory should run under
  1360. :ref:`fakeroot <overview-manual/concepts:fakeroot and pseudo>`.
  1361. :term:`DATE`
  1362. The date the build was started. Dates appear using the year, month,
  1363. and day (YMD) format (e.g. "20150209" for February 9th, 2015).
  1364. :term:`DATETIME`
  1365. The date and time on which the current build started. The format is
  1366. suitable for timestamps.
  1367. :term:`DEBIAN_NOAUTONAME`
  1368. When the :ref:`ref-classes-debian` class is inherited,
  1369. which is the default behavior, :term:`DEBIAN_NOAUTONAME` specifies a
  1370. particular package should not be renamed according to Debian library
  1371. package naming. You must use the package name as an override when you
  1372. set this variable. Here is an example from the ``fontconfig`` recipe::
  1373. DEBIAN_NOAUTONAME:fontconfig-utils = "1"
  1374. :term:`DEBIANNAME`
  1375. When the :ref:`ref-classes-debian` class is inherited,
  1376. which is the default behavior, :term:`DEBIANNAME` allows you to override
  1377. the library name for an individual package. Overriding the library
  1378. name in these cases is rare. You must use the package name as an
  1379. override when you set this variable. Here is an example from the
  1380. ``dbus`` recipe::
  1381. DEBIANNAME:${PN} = "dbus-1"
  1382. :term:`DEBUG_BUILD`
  1383. Specifies to build packages with debugging information. This
  1384. influences the value of the :term:`SELECTED_OPTIMIZATION` variable.
  1385. :term:`DEBUG_OPTIMIZATION`
  1386. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  1387. compiling a system for debugging. This variable defaults to "-O
  1388. -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  1389. :term:`DEBUG_PREFIX_MAP`
  1390. Allows to set C compiler options, such as ``-fdebug-prefix-map``,
  1391. ``-fmacro-prefix-map``, and ``-ffile-prefix-map``, which allow to
  1392. replace build-time paths by install-time ones in the debugging sections
  1393. of binaries. This makes compiler output files location independent,
  1394. at the cost of having to pass an extra command to tell the debugger
  1395. where source files are.
  1396. This is used by the Yocto Project to guarantee
  1397. :doc:`/test-manual/reproducible-builds` even when the source code of
  1398. a package uses the ``__FILE__`` or ``assert()`` macros. See the
  1399. `reproducible-builds.org <https://reproducible-builds.org/docs/build-path/>`__
  1400. website for details.
  1401. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1402. not intended to be user-configurable.
  1403. :term:`DEFAULT_PREFERENCE`
  1404. Specifies a weak bias for recipe selection priority.
  1405. The most common usage of this is variable is to set it to "-1" within
  1406. a recipe for a development version of a piece of software. Using the
  1407. variable in this way causes the stable version of the recipe to build
  1408. by default in the absence of :term:`PREFERRED_VERSION` being used to
  1409. build the development version.
  1410. .. note::
  1411. The bias provided by :term:`DEFAULT_PREFERENCE` is weak and is overridden
  1412. by :term:`BBFILE_PRIORITY` if that variable is different between two
  1413. layers that contain different versions of the same recipe.
  1414. :term:`DEFAULTTUNE`
  1415. The default CPU and Application Binary Interface (ABI) tunings (i.e.
  1416. the "tune") used by the OpenEmbedded build system. The
  1417. :term:`DEFAULTTUNE` helps define
  1418. :term:`TUNE_FEATURES`.
  1419. The default tune is either implicitly or explicitly set by the
  1420. machine (:term:`MACHINE`). However, you can override
  1421. the setting using available tunes as defined with
  1422. :term:`AVAILTUNES`.
  1423. :term:`DEPENDS`
  1424. Lists a recipe's build-time dependencies. These are dependencies on
  1425. other recipes whose contents (e.g. headers and shared libraries) are
  1426. needed by the recipe at build time.
  1427. As an example, consider a recipe ``foo`` that contains the following
  1428. assignment::
  1429. DEPENDS = "bar"
  1430. The practical effect of the previous assignment is that all files
  1431. installed by bar will be available in the appropriate staging sysroot,
  1432. given by the :term:`STAGING_DIR* <STAGING_DIR>` variables, by the time
  1433. the :ref:`ref-tasks-configure` task for ``foo`` runs. This mechanism is
  1434. implemented by having :ref:`ref-tasks-configure` depend on the
  1435. :ref:`ref-tasks-populate_sysroot` task of each recipe listed in
  1436. :term:`DEPENDS`, through a
  1437. ``[``\ :ref:`deptask <bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]``
  1438. declaration in the :ref:`ref-classes-base` class.
  1439. .. note::
  1440. It seldom is necessary to reference, for example, :term:`STAGING_DIR_HOST`
  1441. explicitly. The standard classes and build-related variables are
  1442. configured to automatically use the appropriate staging sysroots.
  1443. As another example, :term:`DEPENDS` can also be used to add utilities
  1444. that run on the build machine during the build. For example, a recipe
  1445. that makes use of a code generator built by the recipe ``codegen``
  1446. might have the following::
  1447. DEPENDS = "codegen-native"
  1448. For more
  1449. information, see the :ref:`ref-classes-native` class and
  1450. the :term:`EXTRANATIVEPATH` variable.
  1451. .. note::
  1452. - :term:`DEPENDS` is a list of recipe names. Or, to be more precise,
  1453. it is a list of :term:`PROVIDES` names, which
  1454. usually match recipe names. Putting a package name such as
  1455. "foo-dev" in :term:`DEPENDS` does not make sense. Use "foo"
  1456. instead, as this will put files from all the packages that make
  1457. up ``foo``, which includes those from ``foo-dev``, into the
  1458. sysroot.
  1459. - One recipe having another recipe in :term:`DEPENDS` does not by
  1460. itself add any runtime dependencies between the packages
  1461. produced by the two recipes. However, as explained in the
  1462. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  1463. section in the Yocto Project Overview and Concepts Manual,
  1464. runtime dependencies will often be added automatically, meaning
  1465. :term:`DEPENDS` alone is sufficient for most recipes.
  1466. - Counterintuitively, :term:`DEPENDS` is often necessary even for
  1467. recipes that install precompiled components. For example, if
  1468. ``libfoo`` is a precompiled library that links against
  1469. ``libbar``, then linking against ``libfoo`` requires both
  1470. ``libfoo`` and ``libbar`` to be available in the sysroot.
  1471. Without a :term:`DEPENDS` from the recipe that installs ``libfoo``
  1472. to the recipe that installs ``libbar``, other recipes might
  1473. fail to link against ``libfoo``.
  1474. For information on runtime dependencies, see the :term:`RDEPENDS`
  1475. variable. You can also see the
  1476. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  1477. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`"
  1478. sections in the BitBake User Manual for additional information on tasks
  1479. and dependencies.
  1480. :term:`DEPLOY_DIR`
  1481. Points to the general area that the OpenEmbedded build system uses to
  1482. place images, packages, SDKs, and other output files that are ready
  1483. to be used outside of the build system. By default, this directory
  1484. resides within the :term:`Build Directory` as ``${TMPDIR}/deploy``.
  1485. For more information on the structure of the Build Directory, see
  1486. ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section.
  1487. For more detail on the contents of the ``deploy`` directory, see the
  1488. ":ref:`overview-manual/concepts:images`",
  1489. ":ref:`overview-manual/concepts:package feeds`", and
  1490. ":ref:`overview-manual/concepts:application development sdk`" sections all in the
  1491. Yocto Project Overview and Concepts Manual.
  1492. :term:`DEPLOY_DIR_DEB`
  1493. Points to the area that the OpenEmbedded build system uses to place
  1494. Debian packages that are ready to be used outside of the build
  1495. system. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1496. ":ref:`ref-classes-package_deb`".
  1497. The BitBake configuration file initially defines the
  1498. :term:`DEPLOY_DIR_DEB` variable as a sub-folder of
  1499. :term:`DEPLOY_DIR`::
  1500. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  1501. The :ref:`ref-classes-package_deb` class uses the
  1502. :term:`DEPLOY_DIR_DEB` variable to make sure the
  1503. :ref:`ref-tasks-package_write_deb` task
  1504. writes Debian packages into the appropriate folder. For more
  1505. information on how packaging works, see the
  1506. ":ref:`overview-manual/concepts:package feeds`" section
  1507. in the Yocto Project Overview and Concepts Manual.
  1508. :term:`DEPLOY_DIR_IMAGE`
  1509. Points to the area that the OpenEmbedded build system uses to place
  1510. images and other associated output files that are ready to be
  1511. deployed onto the target machine. The directory is machine-specific
  1512. as it contains the ``${MACHINE}`` name. By default, this directory
  1513. resides within the :term:`Build Directory` as
  1514. ``${DEPLOY_DIR}/images/${MACHINE}/``.
  1515. It must not be used directly in recipes when deploying files. Instead,
  1516. it's only useful when a recipe needs to "read" a file already deployed
  1517. by a dependency. So, it should be filled with the contents of
  1518. :term:`DEPLOYDIR` by the :ref:`ref-classes-deploy` class or with the
  1519. contents of :term:`IMGDEPLOYDIR` by the :ref:`ref-classes-image` class.
  1520. For more information on the structure of the :term:`Build Directory`, see
  1521. ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section.
  1522. For more detail on the contents of the ``deploy`` directory, see the
  1523. ":ref:`overview-manual/concepts:images`" and
  1524. ":ref:`overview-manual/concepts:application development sdk`" sections both in
  1525. the Yocto Project Overview and Concepts Manual.
  1526. :term:`DEPLOY_DIR_IPK`
  1527. Points to the area that the OpenEmbedded build system uses to place
  1528. IPK packages that are ready to be used outside of the build system.
  1529. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1530. ":ref:`ref-classes-package_ipk`".
  1531. The BitBake configuration file initially defines this variable as a
  1532. sub-folder of :term:`DEPLOY_DIR`::
  1533. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  1534. The :ref:`ref-classes-package_ipk` class uses the :term:`DEPLOY_DIR_IPK`
  1535. variable to make sure the :ref:`ref-tasks-package_write_ipk` task
  1536. writes IPK packages into the appropriate folder. For more information
  1537. on how packaging works, see the
  1538. ":ref:`overview-manual/concepts:package feeds`" section
  1539. in the Yocto Project Overview and Concepts Manual.
  1540. :term:`DEPLOY_DIR_RPM`
  1541. Points to the area that the OpenEmbedded build system uses to place
  1542. RPM packages that are ready to be used outside of the build system.
  1543. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1544. ":ref:`ref-classes-package_rpm`".
  1545. The BitBake configuration file initially defines this variable as a
  1546. sub-folder of :term:`DEPLOY_DIR`::
  1547. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  1548. The :ref:`ref-classes-package_rpm` class uses the
  1549. :term:`DEPLOY_DIR_RPM` variable to make sure the
  1550. :ref:`ref-tasks-package_write_rpm` task
  1551. writes RPM packages into the appropriate folder. For more information
  1552. on how packaging works, see the
  1553. ":ref:`overview-manual/concepts:package feeds`" section
  1554. in the Yocto Project Overview and Concepts Manual.
  1555. :term:`DEPLOYDIR`
  1556. When inheriting the :ref:`ref-classes-deploy` class, the
  1557. :term:`DEPLOYDIR` points to a temporary work area for deployed files that
  1558. is set in the :ref:`ref-classes-deploy` class as follows::
  1559. DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
  1560. Recipes inheriting the :ref:`ref-classes-deploy` class should copy files to be
  1561. deployed into :term:`DEPLOYDIR`, and the class will take care of copying
  1562. them into :term:`DEPLOY_DIR_IMAGE`
  1563. afterwards.
  1564. :term:`DESCRIPTION`
  1565. The package description used by package managers. If not set,
  1566. :term:`DESCRIPTION` takes the value of the :term:`SUMMARY`
  1567. variable.
  1568. :term:`DEV_PKG_DEPENDENCY`
  1569. Provides an easy way for recipes to disable or adjust the runtime recommendation
  1570. (:term:`RRECOMMENDS`) of the ``${PN}-dev`` package on the main
  1571. (``${PN}``) package.
  1572. :term:`DISABLE_STATIC`
  1573. Used in order to disable static linking by default (in order to save
  1574. space, since static libraries are often unused in embedded systems.)
  1575. The default value is " --disable-static", however it can be set to ""
  1576. in order to enable static linking if desired. Certain recipes do this
  1577. individually, and also there is a
  1578. ``meta/conf/distro/include/no-static-libs.inc`` include file that
  1579. disables static linking for a number of recipes. Some software
  1580. packages or build tools (such as CMake) have explicit support for
  1581. enabling / disabling static linking, and in those cases
  1582. :term:`DISABLE_STATIC` is not used.
  1583. :term:`DISTRO`
  1584. The short name of the distribution. For information on the long name
  1585. of the distribution, see the :term:`DISTRO_NAME`
  1586. variable.
  1587. The :term:`DISTRO` variable corresponds to a distribution configuration
  1588. file whose root name is the same as the variable's argument and whose
  1589. filename extension is ``.conf``. For example, the distribution
  1590. configuration file for the Poky distribution is named ``poky.conf``
  1591. and resides in the ``meta-poky/conf/distro`` directory of the
  1592. :term:`Source Directory`.
  1593. Within that ``poky.conf`` file, the :term:`DISTRO` variable is set as
  1594. follows::
  1595. DISTRO = "poky"
  1596. Distribution configuration files are located in a ``conf/distro``
  1597. directory within the :term:`Metadata` that contains the
  1598. distribution configuration. The value for :term:`DISTRO` must not contain
  1599. spaces, and is typically all lower-case.
  1600. .. note::
  1601. If the :term:`DISTRO` variable is blank, a set of default configurations
  1602. are used, which are specified within
  1603. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1604. :term:`DISTRO_CODENAME`
  1605. Specifies a codename for the distribution being built.
  1606. :term:`DISTRO_EXTRA_RDEPENDS`
  1607. Specifies a list of distro-specific packages to add to all images.
  1608. This variable takes effect through ``packagegroup-base`` so the
  1609. variable only really applies to the more full-featured images that
  1610. include ``packagegroup-base``. You can use this variable to keep
  1611. distro policy out of generic images. As with all other distro
  1612. variables, you set this variable in the distro ``.conf`` file.
  1613. :term:`DISTRO_EXTRA_RRECOMMENDS`
  1614. Specifies a list of distro-specific packages to add to all images if
  1615. the packages exist. The packages might not exist or be empty (e.g.
  1616. kernel modules). The list of packages are automatically installed but
  1617. you can remove them.
  1618. :term:`DISTRO_FEATURES`
  1619. The software support you want in your distribution for various
  1620. features. You define your distribution features in the distribution
  1621. configuration file.
  1622. In most cases, the presence or absence of a feature in
  1623. :term:`DISTRO_FEATURES` is translated to the appropriate option supplied
  1624. to the configure script during the
  1625. :ref:`ref-tasks-configure` task for recipes that
  1626. optionally support the feature. For example, specifying "x11" in
  1627. :term:`DISTRO_FEATURES`, causes every piece of software built for the
  1628. target that can optionally support X11 to have its X11 support
  1629. enabled.
  1630. .. note::
  1631. Just enabling :term:`DISTRO_FEATURES` alone doesn't
  1632. enable feature support for packages. Mechanisms such as making
  1633. :term:`PACKAGECONFIG` track :term:`DISTRO_FEATURES` are used
  1634. to enable/disable package features.
  1635. Two more examples are Bluetooth and NFS support. For a more complete
  1636. list of features that ships with the Yocto Project and that you can
  1637. provide with this variable, see the ":ref:`ref-features-distro`" section.
  1638. :term:`DISTRO_FEATURES_BACKFILL`
  1639. A space-separated list of features to be added to :term:`DISTRO_FEATURES`
  1640. if not also present in :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`.
  1641. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1642. not intended to be user-configurable. It is best to just reference
  1643. the variable to see which distro features are being
  1644. :ref:`backfilled <ref-features-backfill>` for all distro configurations.
  1645. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`
  1646. A space-separated list of features from :term:`DISTRO_FEATURES_BACKFILL`
  1647. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  1648. to :term:`DISTRO_FEATURES`) during the build.
  1649. This corresponds to an opt-out mechanism. When new default distro
  1650. features are introduced, distribution maintainers can review (`consider`)
  1651. them and decide to exclude them from the
  1652. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  1653. combination of :term:`DISTRO_FEATURES_BACKFILL` and
  1654. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  1655. add new default features without breaking existing distributions.
  1656. :term:`DISTRO_FEATURES_DEFAULT`
  1657. A convenience variable that gives you the default list of distro
  1658. features with the exception of any features specific to the C library
  1659. (``libc``).
  1660. When creating a custom distribution, you might find it useful to be
  1661. able to reuse the default
  1662. :term:`DISTRO_FEATURES` options without the
  1663. need to write out the full set. Here is an example that uses
  1664. :term:`DISTRO_FEATURES_DEFAULT` from a custom distro configuration file::
  1665. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} myfeature"
  1666. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1667. Specifies a list of features that if present in the target
  1668. :term:`DISTRO_FEATURES` value should be
  1669. included in :term:`DISTRO_FEATURES` when building native recipes. This
  1670. variable is used in addition to the features filtered using the
  1671. :term:`DISTRO_FEATURES_NATIVE`
  1672. variable.
  1673. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1674. Specifies a list of features that if present in the target
  1675. :term:`DISTRO_FEATURES` value should be included in
  1676. :term:`DISTRO_FEATURES` when building :ref:`ref-classes-nativesdk`
  1677. recipes. This variable is used in addition to the features filtered using
  1678. the :term:`DISTRO_FEATURES_NATIVESDK` variable.
  1679. :term:`DISTRO_FEATURES_NATIVE`
  1680. Specifies a list of features that should be included in
  1681. :term:`DISTRO_FEATURES` when building native
  1682. recipes. This variable is used in addition to the features filtered
  1683. using the
  1684. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1685. variable.
  1686. :term:`DISTRO_FEATURES_NATIVESDK`
  1687. Specifies a list of features that should be included in
  1688. :term:`DISTRO_FEATURES` when building
  1689. :ref:`ref-classes-nativesdk` recipes. This variable is used
  1690. in addition to the features filtered using the
  1691. :term:`DISTRO_FEATURES_FILTER_NATIVESDK` variable.
  1692. :term:`DISTRO_NAME`
  1693. The long name of the distribution. For information on the short name
  1694. of the distribution, see the :term:`DISTRO` variable.
  1695. The :term:`DISTRO_NAME` variable corresponds to a distribution
  1696. configuration file whose root name is the same as the variable's
  1697. argument and whose filename extension is ``.conf``. For example, the
  1698. distribution configuration file for the Poky distribution is named
  1699. ``poky.conf`` and resides in the ``meta-poky/conf/distro`` directory
  1700. of the :term:`Source Directory`.
  1701. Within that ``poky.conf`` file, the :term:`DISTRO_NAME` variable is set
  1702. as follows::
  1703. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  1704. Distribution configuration files are located in a ``conf/distro``
  1705. directory within the :term:`Metadata` that contains the
  1706. distribution configuration.
  1707. .. note::
  1708. If the :term:`DISTRO_NAME` variable is blank, a set of default
  1709. configurations are used, which are specified within
  1710. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1711. :term:`DISTRO_VERSION`
  1712. The version of the distribution.
  1713. :term:`DISTROOVERRIDES`
  1714. A colon-separated list of overrides specific to the current
  1715. distribution. By default, this list includes the value of
  1716. :term:`DISTRO`.
  1717. You can extend :term:`DISTROOVERRIDES` to add extra overrides that should
  1718. apply to the distribution.
  1719. The underlying mechanism behind :term:`DISTROOVERRIDES` is simply that it
  1720. is included in the default value of
  1721. :term:`OVERRIDES`.
  1722. Here is an example from :yocto_git:`meta-poky/conf/distro/poky-tiny.conf
  1723. </poky/tree/meta-poky/conf/distro/poky-tiny.conf>`::
  1724. DISTROOVERRIDES = "poky:poky-tiny"
  1725. :term:`DL_DIR`
  1726. The central download directory used by the build process to store
  1727. downloads. By default, :term:`DL_DIR` gets files suitable for mirroring
  1728. for everything except Git repositories. If you want tarballs of Git
  1729. repositories, use the
  1730. :term:`BB_GENERATE_MIRROR_TARBALLS`
  1731. variable.
  1732. You can set this directory by defining the :term:`DL_DIR` variable in the
  1733. ``conf/local.conf`` file. This directory is self-maintaining and you
  1734. should not have to touch it. By default, the directory is
  1735. ``downloads`` in the :term:`Build Directory`::
  1736. #DL_DIR ?= "${TOPDIR}/downloads"
  1737. To specify a different download directory,
  1738. simply remove the comment from the line and provide your directory.
  1739. During a first build, the system downloads many different source code
  1740. tarballs from various upstream projects. Downloading can take a
  1741. while, particularly if your network connection is slow. Tarballs are
  1742. all stored in the directory defined by :term:`DL_DIR` and the build
  1743. system looks there first to find source tarballs.
  1744. .. note::
  1745. When wiping and rebuilding, you can preserve this directory to
  1746. speed up this part of subsequent builds.
  1747. You can safely share this directory between multiple builds on the
  1748. same development machine. For additional information on how the build
  1749. process gets source files when working behind a firewall or proxy
  1750. server, see this specific question in the ":doc:`faq`"
  1751. chapter. You can also refer to the
  1752. ":yocto_wiki:`Working Behind a Network Proxy </Working_Behind_a_Network_Proxy>`"
  1753. Wiki page.
  1754. :term:`DOC_COMPRESS`
  1755. When inheriting the :ref:`ref-classes-compress_doc`
  1756. class, this variable sets the compression policy used when the
  1757. OpenEmbedded build system compresses man pages and info pages. By
  1758. default, the compression method used is gz (gzip). Other policies
  1759. available are xz and bz2.
  1760. For information on policies and on how to use this variable, see the
  1761. comments in the ``meta/classes-recipe/compress_doc.bbclass`` file.
  1762. :term:`DT_FILES`
  1763. Space-separated list of device tree source files to compile using
  1764. a recipe that inherits the :ref:`ref-classes-devicetree` class. These
  1765. are relative to the :term:`DT_FILES_PATH`.
  1766. For convenience, both ``.dts`` and ``.dtb`` extensions can be used.
  1767. Use an empty string (default) to build all device tree sources within
  1768. the :term:`DT_FILES_PATH` directory.
  1769. :term:`DT_FILES_PATH`
  1770. When compiling out-of-tree device tree sources using a recipe that
  1771. inherits the :ref:`ref-classes-devicetree` class, this variable specifies
  1772. the path to the directory containing dts files to build.
  1773. Defaults to the :term:`S` directory.
  1774. :term:`DT_PADDING_SIZE`
  1775. When inheriting the :ref:`ref-classes-devicetree` class, this variable
  1776. specifies the size of padding appended to the device tree blob, used as
  1777. extra space typically for additional properties during boot.
  1778. :term:`EFI_PROVIDER`
  1779. When building bootable images (i.e. where ``hddimg``, ``iso``, or
  1780. ``wic.vmdk`` is in :term:`IMAGE_FSTYPES`), the
  1781. :term:`EFI_PROVIDER` variable specifies the EFI bootloader to use. The
  1782. default is "grub-efi", but "systemd-boot" can be used instead.
  1783. See the :ref:`ref-classes-systemd-boot` and :ref:`ref-classes-image-live`
  1784. classes for more information.
  1785. :term:`ENABLE_BINARY_LOCALE_GENERATION`
  1786. Variable that controls which locales for ``glibc`` are generated
  1787. during the build (useful if the target device has 64Mbytes of RAM or
  1788. less).
  1789. :term:`ERR_REPORT_DIR`
  1790. When used with the :ref:`ref-classes-report-error` class, specifies the
  1791. path used for storing the debug files created by the :ref:`error reporting
  1792. tool <dev-manual/error-reporting-tool:using the error reporting tool>`,
  1793. which allows you to submit build errors you encounter to a central
  1794. database. By default, the value of this variable is
  1795. ``${``\ :term:`LOG_DIR`\ ``}/error-report``.
  1796. You can set :term:`ERR_REPORT_DIR` to the path you want the error
  1797. reporting tool to store the debug files as follows in your
  1798. ``local.conf`` file::
  1799. ERR_REPORT_DIR = "path"
  1800. :term:`ERROR_QA`
  1801. Specifies the quality assurance checks whose failures are reported as
  1802. errors by the OpenEmbedded build system. You set this variable in
  1803. your distribution configuration file. For a list of the checks you
  1804. can control with this variable, see the
  1805. ":ref:`ref-classes-insane`" section.
  1806. :term:`ESDK_CLASS_INHERIT_DISABLE`
  1807. A list of classes to remove from the :term:`INHERIT`
  1808. value globally within the extensible SDK configuration. The
  1809. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class sets the
  1810. default value::
  1811. ESDK_CLASS_INHERIT_DISABLE ?= "buildhistory icecc"
  1812. Some classes are not generally applicable within the extensible SDK
  1813. context. You can use this variable to disable those classes.
  1814. For additional information on how to customize the extensible SDK's
  1815. configuration, see the
  1816. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1817. section in the Yocto Project Application Development and the
  1818. Extensible Software Development Kit (eSDK) manual.
  1819. :term:`ESDK_LOCALCONF_ALLOW`
  1820. A list of variables allowed through from the OpenEmbedded build
  1821. system configuration into the extensible SDK configuration. By
  1822. default, the list of variables is empty and is set in the
  1823. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class.
  1824. This list overrides the variables specified using the
  1825. :term:`ESDK_LOCALCONF_REMOVE` variable as well as
  1826. other variables automatically added due to the "/" character
  1827. being found at the start of the
  1828. value, which is usually indicative of being a path and thus might not
  1829. be valid on the system where the SDK is installed.
  1830. For additional information on how to customize the extensible SDK's
  1831. configuration, see the
  1832. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1833. section in the Yocto Project Application Development and the
  1834. Extensible Software Development Kit (eSDK) manual.
  1835. :term:`ESDK_LOCALCONF_REMOVE`
  1836. A list of variables not allowed through from the OpenEmbedded build
  1837. system configuration into the extensible SDK configuration. Usually,
  1838. these are variables that are specific to the machine on which the
  1839. build system is running and thus would be potentially problematic
  1840. within the extensible SDK.
  1841. By default, :term:`ESDK_LOCALCONF_REMOVE` is set in the
  1842. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class and
  1843. excludes the following variables:
  1844. - :term:`CONF_VERSION`
  1845. - :term:`BB_NUMBER_THREADS`
  1846. - :term:`BB_NUMBER_PARSE_THREADS`
  1847. - :term:`PARALLEL_MAKE`
  1848. - :term:`PRSERV_HOST`
  1849. - :term:`SSTATE_MIRRORS` :term:`DL_DIR`
  1850. - :term:`SSTATE_DIR` :term:`TMPDIR`
  1851. - :term:`BB_SERVER_TIMEOUT`
  1852. For additional information on how to customize the extensible SDK's
  1853. configuration, see the
  1854. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1855. section in the Yocto Project Application Development and the
  1856. Extensible Software Development Kit (eSDK) manual.
  1857. :term:`EXCLUDE_FROM_SHLIBS`
  1858. Triggers the OpenEmbedded build system's shared libraries resolver to
  1859. exclude an entire package when scanning for shared libraries.
  1860. .. note::
  1861. The shared libraries resolver's functionality results in part from
  1862. the internal function ``package_do_shlibs``, which is part of the
  1863. :ref:`ref-tasks-package` task. You should be aware that the shared
  1864. libraries resolver might implicitly define some dependencies between
  1865. packages.
  1866. The :term:`EXCLUDE_FROM_SHLIBS` variable is similar to the
  1867. :term:`PRIVATE_LIBS` variable, which excludes a
  1868. package's particular libraries only and not the whole package.
  1869. Use the :term:`EXCLUDE_FROM_SHLIBS` variable by setting it to "1" for a
  1870. particular package::
  1871. EXCLUDE_FROM_SHLIBS = "1"
  1872. :term:`EXCLUDE_FROM_WORLD`
  1873. Directs BitBake to exclude a recipe from world builds (i.e.
  1874. ``bitbake world``). During world builds, BitBake locates, parses and
  1875. builds all recipes found in every layer exposed in the
  1876. ``bblayers.conf`` configuration file.
  1877. To exclude a recipe from a world build using this variable, set the
  1878. variable to "1" in the recipe.
  1879. .. note::
  1880. Recipes added to :term:`EXCLUDE_FROM_WORLD` may still be built during a
  1881. world build in order to satisfy dependencies of other recipes. Adding
  1882. a recipe to :term:`EXCLUDE_FROM_WORLD` only ensures that the recipe is not
  1883. explicitly added to the list of build targets in a world build.
  1884. :term:`EXTENDPE`
  1885. Used with file and pathnames to create a prefix for a recipe's
  1886. version based on the recipe's :term:`PE` value. If :term:`PE`
  1887. is set and greater than zero for a recipe, :term:`EXTENDPE` becomes that
  1888. value (e.g if :term:`PE` is equal to "1" then :term:`EXTENDPE` becomes "1").
  1889. If a recipe's :term:`PE` is not set (the default) or is equal to zero,
  1890. :term:`EXTENDPE` becomes "".
  1891. See the :term:`STAMP` variable for an example.
  1892. :term:`EXTENDPKGV`
  1893. The full package version specification as it appears on the final
  1894. packages produced by a recipe. The variable's value is normally used
  1895. to fix a runtime dependency to the exact same version of another
  1896. package in the same recipe::
  1897. RDEPENDS:${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  1898. The dependency relationships are intended to force the package
  1899. manager to upgrade these types of packages in lock-step.
  1900. :term:`EXTERNAL_KERNEL_TOOLS`
  1901. When set, the :term:`EXTERNAL_KERNEL_TOOLS` variable indicates that these
  1902. tools are not in the source tree.
  1903. When kernel tools are available in the tree, they are preferred over
  1904. any externally installed tools. Setting the :term:`EXTERNAL_KERNEL_TOOLS`
  1905. variable tells the OpenEmbedded build system to prefer the installed
  1906. external tools. See the :ref:`ref-classes-kernel-yocto` class in
  1907. ``meta/classes-recipe`` to see how the variable is used.
  1908. :term:`EXTERNAL_TOOLCHAIN`
  1909. When you intend to use an
  1910. :ref:`external toolchain <dev-manual/external-toolchain:optionally using an external toolchain>`,
  1911. this variable allows to specify the directory where this toolchain was
  1912. installed.
  1913. :term:`EXTERNALSRC`
  1914. When inheriting the :ref:`ref-classes-externalsrc`
  1915. class, this variable points to the source tree, which is outside of
  1916. the OpenEmbedded build system. When set, this variable sets the
  1917. :term:`S` variable, which is what the OpenEmbedded build
  1918. system uses to locate unpacked recipe source code.
  1919. See the ":ref:`ref-classes-externalsrc`" section for details. You
  1920. can also find information on how to use this variable in the
  1921. ":ref:`dev-manual/building:building software from an external source`"
  1922. section in the Yocto Project Development Tasks Manual.
  1923. :term:`EXTERNALSRC_BUILD`
  1924. When inheriting the :ref:`ref-classes-externalsrc`
  1925. class, this variable points to the directory in which the recipe's
  1926. source code is built, which is outside of the OpenEmbedded build
  1927. system. When set, this variable sets the :term:`B` variable,
  1928. which is what the OpenEmbedded build system uses to locate the
  1929. :term:`Build Directory`.
  1930. See the ":ref:`ref-classes-externalsrc`" section for details. You
  1931. can also find information on how to use this variable in the
  1932. ":ref:`dev-manual/building:building software from an external source`"
  1933. section in the Yocto Project Development Tasks Manual.
  1934. :term:`EXTRA_AUTORECONF`
  1935. For recipes inheriting the :ref:`ref-classes-autotools`
  1936. class, you can use :term:`EXTRA_AUTORECONF` to specify extra options to
  1937. pass to the ``autoreconf`` command that is executed during the
  1938. :ref:`ref-tasks-configure` task.
  1939. The default value is "--exclude=autopoint".
  1940. :term:`EXTRA_IMAGE_FEATURES`
  1941. A list of additional features to include in an image. When listing
  1942. more than one feature, separate them with a space.
  1943. Typically, you configure this variable in your ``local.conf`` file,
  1944. which is found in the :term:`Build Directory`. Although you can use this
  1945. variable from within a recipe, best practices dictate that you do not.
  1946. .. note::
  1947. To enable primary features from within the image recipe, use the
  1948. :term:`IMAGE_FEATURES` variable.
  1949. Here are some examples of features you can add:
  1950. - "dbg-pkgs" --- adds -dbg packages for all installed packages including
  1951. symbol information for debugging and profiling.
  1952. - "debug-tweaks" --- makes an image suitable for debugging. For example, allows root logins without passwords and
  1953. enables post-installation logging. See the 'allow-empty-password' and
  1954. 'post-install-logging' features in the ":ref:`ref-features-image`"
  1955. section for more information.
  1956. - "dev-pkgs" --- adds -dev packages for all installed packages. This is
  1957. useful if you want to develop against the libraries in the image.
  1958. - "read-only-rootfs" --- creates an image whose root filesystem is
  1959. read-only. See the
  1960. ":ref:`dev-manual/read-only-rootfs:creating a read-only root filesystem`"
  1961. section in the Yocto Project Development Tasks Manual for more
  1962. information
  1963. - "tools-debug" --- adds debugging tools such as gdb and strace.
  1964. - "tools-sdk" --- adds development tools such as gcc, make,
  1965. pkgconfig and so forth.
  1966. - "tools-testapps" --- adds useful testing tools
  1967. such as ts_print, aplay, arecord and so forth.
  1968. For a complete list of image features that ships with the Yocto
  1969. Project, see the ":ref:`ref-features-image`" section.
  1970. For an example that shows how to customize your image by using this
  1971. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  1972. section in the Yocto Project Development Tasks Manual.
  1973. :term:`EXTRA_IMAGECMD`
  1974. Specifies additional options for the image creation command that has
  1975. been specified in :term:`IMAGE_CMD`. When setting
  1976. this variable, use an override for the associated image type. Here is
  1977. an example::
  1978. EXTRA_IMAGECMD:ext3 ?= "-i 4096"
  1979. :term:`EXTRA_IMAGEDEPENDS`
  1980. A list of recipes to build that do not provide packages for
  1981. installing into the root filesystem.
  1982. Sometimes a recipe is required to build the final image but is not
  1983. needed in the root filesystem. You can use the :term:`EXTRA_IMAGEDEPENDS`
  1984. variable to list these recipes and thus specify the dependencies. A
  1985. typical example is a required bootloader in a machine configuration.
  1986. .. note::
  1987. To add packages to the root filesystem, see the various
  1988. :term:`RDEPENDS` and :term:`RRECOMMENDS` variables.
  1989. :term:`EXTRA_OECMAKE`
  1990. Additional `CMake <https://cmake.org/overview/>`__ options. See the
  1991. :ref:`ref-classes-cmake` class for additional information.
  1992. :term:`EXTRA_OECONF`
  1993. Additional ``configure`` script options. See
  1994. :term:`PACKAGECONFIG_CONFARGS` for
  1995. additional information on passing configure script options.
  1996. :term:`EXTRA_OEMAKE`
  1997. Additional GNU ``make`` options.
  1998. Because the :term:`EXTRA_OEMAKE` defaults to "", you need to set the
  1999. variable to specify any required GNU options.
  2000. :term:`PARALLEL_MAKE` and
  2001. :term:`PARALLEL_MAKEINST` also make use of
  2002. :term:`EXTRA_OEMAKE` to pass the required flags.
  2003. :term:`EXTRA_OESCONS`
  2004. When inheriting the :ref:`ref-classes-scons` class, this
  2005. variable specifies additional configuration options you want to pass
  2006. to the ``scons`` command line.
  2007. :term:`EXTRA_OEMESON`
  2008. Additional `Meson <https://mesonbuild.com/>`__ options. See the
  2009. :ref:`ref-classes-meson` class for additional information.
  2010. In addition to standard Meson options, such options correspond to
  2011. `Meson build options <https://mesonbuild.com/Build-options.html>`__
  2012. defined in the ``meson_options.txt`` file in the sources to build.
  2013. Here is an example::
  2014. EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled"
  2015. Note that any custom value for the Meson ``--buildtype`` option
  2016. should be set through the :term:`MESON_BUILDTYPE` variable.
  2017. :term:`EXTRA_USERS_PARAMS`
  2018. When inheriting the :ref:`ref-classes-extrausers`
  2019. class, this variable provides image level user and group operations.
  2020. This is a more global method of providing user and group
  2021. configuration as compared to using the
  2022. :ref:`ref-classes-useradd` class, which ties user and
  2023. group configurations to a specific recipe.
  2024. The set list of commands you can configure using the
  2025. :term:`EXTRA_USERS_PARAMS` is shown in the
  2026. :ref:`ref-classes-extrausers` class. These commands map to the normal
  2027. Unix commands of the same names::
  2028. # EXTRA_USERS_PARAMS = "\
  2029. # useradd -p '' tester; \
  2030. # groupadd developers; \
  2031. # userdel nobody; \
  2032. # groupdel -g video; \
  2033. # groupmod -g 1020 developers; \
  2034. # usermod -s /bin/sh tester; \
  2035. # "
  2036. Hardcoded passwords are supported via the ``-p`` parameters for
  2037. ``useradd`` or ``usermod``, but only hashed.
  2038. Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns
  2039. passwords. First on host, create the (escaped) password hash::
  2040. printf "%q" $(mkpasswd -m sha256crypt tester01)
  2041. The resulting hash is set to a variable and used in ``useradd`` command parameters::
  2042. inherit extrausers
  2043. PASSWD = "\$X\$ABC123\$A-Long-Hash"
  2044. EXTRA_USERS_PARAMS = "\
  2045. useradd -p '${PASSWD}' tester-jim; \
  2046. useradd -p '${PASSWD}' tester-sue; \
  2047. "
  2048. Finally, here is an example that sets the root password::
  2049. inherit extrausers
  2050. EXTRA_USERS_PARAMS = "\
  2051. usermod -p '${PASSWD}' root; \
  2052. "
  2053. .. note::
  2054. From a security perspective, hardcoding a default password is not
  2055. generally a good idea or even legal in some jurisdictions. It is
  2056. recommended that you do not do this if you are building a production
  2057. image.
  2058. Additionally there is a special ``passwd-expire`` command that will
  2059. cause the password for a user to be expired and thus force changing it
  2060. on first login, for example::
  2061. EXTRA_USERS_PARAMS += " useradd myuser; passwd-expire myuser;"
  2062. .. note::
  2063. At present, ``passwd-expire`` may only work for remote logins when
  2064. using OpenSSH and not dropbear as an SSH server.
  2065. :term:`EXTRANATIVEPATH`
  2066. A list of subdirectories of
  2067. ``${``\ :term:`STAGING_BINDIR_NATIVE`\ ``}``
  2068. added to the beginning of the environment variable ``PATH``. As an
  2069. example, the following prepends
  2070. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:" to
  2071. ``PATH``::
  2072. EXTRANATIVEPATH = "foo bar"
  2073. :term:`FAKEROOT`
  2074. See :term:`bitbake:FAKEROOT` in the BitBake manual.
  2075. :term:`FAKEROOTBASEENV`
  2076. See :term:`bitbake:FAKEROOTBASEENV` in the BitBake manual.
  2077. :term:`FAKEROOTCMD`
  2078. See :term:`bitbake:FAKEROOTCMD` in the BitBake manual.
  2079. :term:`FAKEROOTDIRS`
  2080. See :term:`bitbake:FAKEROOTDIRS` in the BitBake manual.
  2081. :term:`FAKEROOTENV`
  2082. See :term:`bitbake:FAKEROOTENV` in the BitBake manual.
  2083. :term:`FAKEROOTNOENV`
  2084. See :term:`bitbake:FAKEROOTNOENV` in the BitBake manual.
  2085. :term:`FEATURE_PACKAGES`
  2086. Defines one or more packages to include in an image when a specific
  2087. item is included in :term:`IMAGE_FEATURES`.
  2088. When setting the value, :term:`FEATURE_PACKAGES` should have the name of
  2089. the feature item as an override. Here is an example::
  2090. FEATURE_PACKAGES_widget = "package1 package2"
  2091. In this example, if "widget" were added to :term:`IMAGE_FEATURES`,
  2092. package1 and package2 would be included in the image.
  2093. .. note::
  2094. Packages installed by features defined through :term:`FEATURE_PACKAGES`
  2095. are often package groups. While similarly named, you should not
  2096. confuse the :term:`FEATURE_PACKAGES` variable with package groups, which
  2097. are discussed elsewhere in the documentation.
  2098. :term:`FEED_DEPLOYDIR_BASE_URI`
  2099. Points to the base URL of the server and location within the
  2100. document-root that provides the metadata and packages required by
  2101. OPKG to support runtime package management of IPK packages. You set
  2102. this variable in your ``local.conf`` file.
  2103. Consider the following example::
  2104. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  2105. This example assumes you are serving
  2106. your packages over HTTP and your databases are located in a directory
  2107. named ``BOARD-dir``, which is underneath your HTTP server's
  2108. document-root. In this case, the OpenEmbedded build system generates
  2109. a set of configuration files for you in your target that work with
  2110. the feed.
  2111. :term:`FETCHCMD`
  2112. See :term:`bitbake:FETCHCMD` in the BitBake manual.
  2113. :term:`FILE`
  2114. See :term:`bitbake:FILE` in the BitBake manual.
  2115. :term:`FILES`
  2116. The list of files and directories that are placed in a package. The
  2117. :term:`PACKAGES` variable lists the packages
  2118. generated by a recipe.
  2119. To use the :term:`FILES` variable, provide a package name override that
  2120. identifies the resulting package. Then, provide a space-separated
  2121. list of files or paths that identify the files you want included as
  2122. part of the resulting package. Here is an example::
  2123. FILES:${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  2124. .. note::
  2125. - When specifying files or paths, you can pattern match using
  2126. Python's
  2127. `glob <https://docs.python.org/3/library/glob.html>`__
  2128. syntax. For details on the syntax, see the documentation by
  2129. following the previous link.
  2130. - When specifying paths as part of the :term:`FILES` variable, it is
  2131. good practice to use appropriate path variables. For example,
  2132. use ``${sysconfdir}`` rather than ``/etc``, or ``${bindir}``
  2133. rather than ``/usr/bin``. You can find a list of these
  2134. variables at the top of the ``meta/conf/bitbake.conf`` file in
  2135. the :term:`Source Directory`. You will also
  2136. find the default values of the various ``FILES:*`` variables in
  2137. this file.
  2138. If some of the files you provide with the :term:`FILES` variable are
  2139. editable and you know they should not be overwritten during the
  2140. package update process by the Package Management System (PMS), you
  2141. can identify these files so that the PMS will not overwrite them. See
  2142. the :term:`CONFFILES` variable for information on
  2143. how to identify these files to the PMS.
  2144. :term:`FILES_SOLIBSDEV`
  2145. Defines the file specification to match
  2146. :term:`SOLIBSDEV`. In other words,
  2147. :term:`FILES_SOLIBSDEV` defines the full path name of the development
  2148. symbolic link (symlink) for shared libraries on the target platform.
  2149. The following statement from the ``bitbake.conf`` shows how it is
  2150. set::
  2151. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  2152. :term:`FILESEXTRAPATHS`
  2153. A colon-separated list to extend the search path the OpenEmbedded build
  2154. system uses when looking for files and patches as it processes recipes
  2155. and append files. The default directories BitBake uses when it processes
  2156. recipes are initially defined by the :term:`FILESPATH` variable. You can
  2157. extend :term:`FILESPATH` variable by using :term:`FILESEXTRAPATHS`.
  2158. Best practices dictate that you accomplish this by using
  2159. :term:`FILESEXTRAPATHS` from within a ``.bbappend`` file and that you
  2160. prepend paths as follows::
  2161. FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
  2162. In the above example, the build system first
  2163. looks for files in a directory that has the same name as the
  2164. corresponding append file.
  2165. .. note::
  2166. When extending :term:`FILESEXTRAPATHS`, be sure to use the immediate
  2167. expansion (``:=``) operator. Immediate expansion makes sure that
  2168. BitBake evaluates :term:`THISDIR` at the time the
  2169. directive is encountered rather than at some later time when
  2170. expansion might result in a directory that does not contain the
  2171. files you need.
  2172. Also, include the trailing separating colon character if you are
  2173. prepending. The trailing colon character is necessary because you
  2174. are directing BitBake to extend the path by prepending directories
  2175. to the search path.
  2176. Here is another common use::
  2177. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  2178. In this example, the build system extends the
  2179. :term:`FILESPATH` variable to include a directory named ``files`` that is
  2180. in the same directory as the corresponding append file.
  2181. This next example specifically adds three paths::
  2182. FILESEXTRAPATHS:prepend := "path_1:path_2:path_3:"
  2183. A final example shows how you can extend the search path and include
  2184. a :term:`MACHINE`-specific override, which is useful
  2185. in a BSP layer::
  2186. FILESEXTRAPATHS:prepend:intel-x86-common := "${THISDIR}/${PN}:"
  2187. The previous statement appears in the
  2188. ``linux-yocto-dev.bbappend`` file, which is found in the
  2189. :ref:`overview-manual/development-environment:yocto project source repositories` in
  2190. ``meta-intel/common/recipes-kernel/linux``. Here, the machine
  2191. override is a special :term:`PACKAGE_ARCH`
  2192. definition for multiple ``meta-intel`` machines.
  2193. .. note::
  2194. For a layer that supports a single BSP, the override could just be
  2195. the value of :term:`MACHINE`.
  2196. By prepending paths in ``.bbappend`` files, you allow multiple append
  2197. files that reside in different layers but are used for the same
  2198. recipe to correctly extend the path.
  2199. :term:`FILESOVERRIDES`
  2200. A colon-separated list to specify a subset of :term:`OVERRIDES` used by
  2201. the OpenEmbedded build system for creating :term:`FILESPATH`. The
  2202. :term:`FILESOVERRIDES` variable uses overrides to automatically extend
  2203. the :term:`FILESPATH` variable. For an example of how that works, see the
  2204. :term:`FILESPATH` variable description. Additionally, you find more
  2205. information on how overrides are handled in the
  2206. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  2207. section of the BitBake User Manual.
  2208. By default, the :term:`FILESOVERRIDES` variable is defined as::
  2209. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  2210. .. note::
  2211. Do not hand-edit the :term:`FILESOVERRIDES` variable. The values match up
  2212. with expected overrides and are used in an expected manner by the
  2213. build system.
  2214. :term:`FILESPATH`
  2215. A colon-separated list specifying the default set of directories the
  2216. OpenEmbedded build system uses when searching for patches and files.
  2217. During the build process, BitBake searches each directory in
  2218. :term:`FILESPATH` in the specified order when looking for files and
  2219. patches specified by each ``file://`` URI in a recipe's
  2220. :term:`SRC_URI` statements.
  2221. The default value for the :term:`FILESPATH` variable is defined in the
  2222. :ref:`ref-classes-base` class found in ``meta/classes-global`` in the
  2223. :term:`Source Directory`::
  2224. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  2225. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  2226. The
  2227. :term:`FILESPATH` variable is automatically extended using the overrides
  2228. from the :term:`FILESOVERRIDES` variable.
  2229. .. note::
  2230. - Do not hand-edit the :term:`FILESPATH` variable. If you want the
  2231. build system to look in directories other than the defaults,
  2232. extend the :term:`FILESPATH` variable by using the
  2233. :term:`FILESEXTRAPATHS` variable.
  2234. - Be aware that the default :term:`FILESPATH` directories do not map
  2235. to directories in custom layers where append files
  2236. (``.bbappend``) are used. If you want the build system to find
  2237. patches or files that reside with your append files, you need
  2238. to extend the :term:`FILESPATH` variable by using the
  2239. :term:`FILESEXTRAPATHS` variable.
  2240. You can take advantage of this searching behavior in useful ways. For
  2241. example, consider a case where there is the following directory structure
  2242. for general and machine-specific configurations::
  2243. files/defconfig
  2244. files/MACHINEA/defconfig
  2245. files/MACHINEB/defconfig
  2246. Also in the example, the :term:`SRC_URI` statement contains
  2247. "file://defconfig". Given this scenario, you can set
  2248. :term:`MACHINE` to "MACHINEA" and cause the build
  2249. system to use files from ``files/MACHINEA``. Set :term:`MACHINE` to
  2250. "MACHINEB" and the build system uses files from ``files/MACHINEB``.
  2251. Finally, for any machine other than "MACHINEA" and "MACHINEB", the
  2252. build system uses files from ``files/defconfig``.
  2253. You can find out more about the patching process in the
  2254. ":ref:`overview-manual/concepts:patching`" section
  2255. in the Yocto Project Overview and Concepts Manual and the
  2256. ":ref:`dev-manual/new-recipe:patching code`" section in
  2257. the Yocto Project Development Tasks Manual. See the
  2258. :ref:`ref-tasks-patch` task as well.
  2259. :term:`FILESYSTEM_PERMS_TABLES`
  2260. Allows you to define your own file permissions settings table as part
  2261. of your configuration for the packaging process. For example, suppose
  2262. you need a consistent set of custom permissions for a set of groups
  2263. and users across an entire work project. It is best to do this in the
  2264. packages themselves but this is not always possible.
  2265. By default, the OpenEmbedded build system uses the ``fs-perms.txt``,
  2266. which is located in the ``meta/files`` folder in the :term:`Source Directory`.
  2267. If you create your own file
  2268. permissions setting table, you should place it in your layer or the
  2269. distro's layer.
  2270. You define the :term:`FILESYSTEM_PERMS_TABLES` variable in the
  2271. ``conf/local.conf`` file, which is found in the :term:`Build Directory`,
  2272. to point to your custom ``fs-perms.txt``. You can specify more than a
  2273. single file permissions setting table. The paths you specify to these
  2274. files must be defined within the :term:`BBPATH` variable.
  2275. For guidance on how to create your own file permissions settings
  2276. table file, examine the existing ``fs-perms.txt``.
  2277. :term:`FIT_ADDRESS_CELLS`
  2278. Specifies the value of the ``#address-cells`` value for the
  2279. description of the FIT image.
  2280. The default value is set to "1" by the :ref:`ref-classes-kernel-fitimage`
  2281. class, which corresponds to 32 bit addresses.
  2282. For platforms that need to set 64 bit addresses, for example in
  2283. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  2284. set this value to "2", as two 32 bit values (cells) will be needed
  2285. to represent such addresses.
  2286. Here is an example setting "0x400000000" as a load address::
  2287. FIT_ADDRESS_CELLS = "2"
  2288. UBOOT_LOADADDRESS= "0x04 0x00000000"
  2289. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  2290. :term:`FIT_CONF_DEFAULT_DTB`
  2291. Specifies the default device tree binary (dtb) file for a FIT image
  2292. when multiple ones are provided.
  2293. This variable is used in the :ref:`ref-classes-kernel-fitimage` class.
  2294. :term:`FIT_DESC`
  2295. Specifies the description string encoded into a FIT image. The
  2296. default value is set by the :ref:`ref-classes-kernel-fitimage` class as
  2297. follows::
  2298. FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  2299. :term:`FIT_GENERATE_KEYS`
  2300. Decides whether to generate the keys for signing the FIT image if
  2301. they don't already exist. The keys are created in
  2302. :term:`UBOOT_SIGN_KEYDIR`. The default value is set to "0"
  2303. by the :ref:`ref-classes-kernel-fitimage` class.
  2304. :term:`FIT_HASH_ALG`
  2305. Specifies the hash algorithm used in creating the FIT Image.
  2306. This variable is set by default to "sha256" by the
  2307. :ref:`ref-classes-kernel-fitimage` class.
  2308. :term:`FIT_KERNEL_COMP_ALG`
  2309. The compression algorithm to use for the kernel image inside the FIT Image.
  2310. At present, the only supported values are "gzip" (default), "lzo" or "none".
  2311. If you set this variable to anything other than "none" you may also need
  2312. to set :term:`FIT_KERNEL_COMP_ALG_EXTENSION`.
  2313. This variable is used in the :ref:`ref-classes-kernel-uboot` class.
  2314. :term:`FIT_KERNEL_COMP_ALG_EXTENSION`
  2315. File extension corresponding to :term:`FIT_KERNEL_COMP_ALG`. The default
  2316. value is set ".gz" by the :ref:`ref-classes-kernel-uboot` class. If you
  2317. set :term:`FIT_KERNEL_COMP_ALG` to "lzo", you may want to set this
  2318. variable to ".lzo".
  2319. :term:`FIT_KEY_GENRSA_ARGS`
  2320. Arguments to ``openssl genrsa`` for generating a RSA private key for
  2321. signing the FIT image. The default value is set to "-F4" by the
  2322. :ref:`ref-classes-kernel-fitimage` class.
  2323. :term:`FIT_KEY_REQ_ARGS`
  2324. Arguments to ``openssl req`` for generating a certificate for signing
  2325. the FIT image. The default value is "-batch -new" by the
  2326. :ref:`ref-classes-kernel-fitimage` class, "batch" for
  2327. non interactive mode and "new" for generating new keys.
  2328. :term:`FIT_KEY_SIGN_PKCS`
  2329. Format for the public key certificate used for signing the FIT image.
  2330. The default value is set to "x509" by the
  2331. :ref:`ref-classes-kernel-fitimage` class.
  2332. :term:`FIT_SIGN_ALG`
  2333. Specifies the signature algorithm used in creating the FIT Image.
  2334. This variable is set by default to "rsa2048" by the
  2335. :ref:`ref-classes-kernel-fitimage` class.
  2336. :term:`FIT_PAD_ALG`
  2337. Specifies the padding algorithm used in creating the FIT Image.
  2338. The default value is set to "pkcs-1.5" by the
  2339. :ref:`ref-classes-kernel-fitimage` class.
  2340. :term:`FIT_SIGN_INDIVIDUAL`
  2341. If set to "1", then the :ref:`ref-classes-kernel-fitimage`
  2342. class will sign the kernel, dtb and ramdisk images individually in addition
  2343. to signing the FIT image itself. This could be useful if you are
  2344. intending to verify signatures in another context than booting via
  2345. U-Boot.
  2346. This variable is set to "0" by default.
  2347. :term:`FIT_SIGN_NUMBITS`
  2348. Size of the private key used in the FIT image, in number of bits.
  2349. The default value for this variable is set to "2048"
  2350. by the :ref:`ref-classes-kernel-fitimage` class.
  2351. :term:`FONT_EXTRA_RDEPENDS`
  2352. When inheriting the :ref:`ref-classes-fontcache` class,
  2353. this variable specifies the runtime dependencies for font packages.
  2354. By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils".
  2355. :term:`FONT_PACKAGES`
  2356. When inheriting the :ref:`ref-classes-fontcache` class, this variable
  2357. identifies packages containing font files that need to be cached by
  2358. Fontconfig. By default, the :ref:`ref-classes-fontcache` class assumes
  2359. that fonts are in the recipe's main package (i.e.
  2360. ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you
  2361. need are in a package other than that main package.
  2362. :term:`FORCE_RO_REMOVE`
  2363. Forces the removal of the packages listed in ``ROOTFS_RO_UNNEEDED``
  2364. during the generation of the root filesystem.
  2365. Set the variable to "1" to force the removal of these packages.
  2366. :term:`FULL_OPTIMIZATION`
  2367. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  2368. compiling an optimized system. This variable defaults to "-O2 -pipe
  2369. ${DEBUG_FLAGS}".
  2370. :term:`GCCPIE`
  2371. Enables Position Independent Executables (PIE) within the GNU C
  2372. Compiler (GCC). Enabling PIE in the GCC makes Return Oriented
  2373. Programming (ROP) attacks much more difficult to execute.
  2374. By default the ``security_flags.inc`` file enables PIE by setting the
  2375. variable as follows::
  2376. GCCPIE ?= "--enable-default-pie"
  2377. :term:`GCCVERSION`
  2378. Specifies the default version of the GNU C Compiler (GCC) used for
  2379. compilation. By default, :term:`GCCVERSION` is set to "8.x" in the
  2380. ``meta/conf/distro/include/tcmode-default.inc`` include file::
  2381. GCCVERSION ?= "8.%"
  2382. You can override this value by setting it in a
  2383. configuration file such as the ``local.conf``.
  2384. :term:`GDB`
  2385. The minimal command and arguments to run the GNU Debugger.
  2386. :term:`GIR_EXTRA_LIBS_PATH`
  2387. Allows to specify an extra search path for ``.so`` files
  2388. in GLib related recipes using GObject introspection,
  2389. and which do not compile without this setting.
  2390. See the ":ref:`dev-manual/gobject-introspection:enabling gobject introspection support`"
  2391. section for details.
  2392. :term:`GITDIR`
  2393. The directory in which a local copy of a Git repository is stored
  2394. when it is cloned.
  2395. :term:`GITHUB_BASE_URI`
  2396. When inheriting the :ref:`ref-classes-github-releases`
  2397. class, specifies the base URL for fetching releases for the github
  2398. project you wish to fetch sources from. The default value is as follows::
  2399. GITHUB_BASE_URI ?= "https://github.com/${BPN}/${BPN}/releases/"
  2400. :term:`GLIBC_GENERATE_LOCALES`
  2401. Specifies the list of GLIBC locales to generate should you not wish
  2402. to generate all LIBC locals, which can be time consuming.
  2403. .. note::
  2404. If you specifically remove the locale ``en_US.UTF-8``, you must set
  2405. :term:`IMAGE_LINGUAS` appropriately.
  2406. You can set :term:`GLIBC_GENERATE_LOCALES` in your ``local.conf`` file.
  2407. By default, all locales are generated::
  2408. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  2409. :term:`GO_IMPORT`
  2410. When inheriting the :ref:`ref-classes-go` class, this mandatory variable
  2411. sets the import path for the Go package that will be created for the code
  2412. to build. If you have a ``go.mod`` file in the source directory, this
  2413. typically matches the path in the ``module`` line in this file.
  2414. Other Go programs importing this package will use this path.
  2415. Here is an example setting from the
  2416. :yocto_git:`go-helloworld_0.1.bb </poky/tree/meta/recipes-extended/go-examples/go-helloworld_0.1.bb>`
  2417. recipe::
  2418. GO_IMPORT = "golang.org/x/example"
  2419. :term:`GO_INSTALL`
  2420. When inheriting the :ref:`ref-classes-go` class, this optional variable
  2421. specifies which packages in the sources should be compiled and
  2422. installed in the Go build space by the
  2423. `go install <https://go.dev/ref/mod#go-install>`__ command.
  2424. Here is an example setting from the
  2425. :oe_git:`crucible </meta-openembedded/tree/meta-oe/recipes-support/crucible/>`
  2426. recipe::
  2427. GO_INSTALL = "\
  2428. ${GO_IMPORT}/cmd/crucible \
  2429. ${GO_IMPORT}/cmd/habtool \
  2430. "
  2431. By default, :term:`GO_INSTALL` is defined as::
  2432. GO_INSTALL ?= "${GO_IMPORT}/..."
  2433. The ``...`` wildcard means that it will catch all
  2434. packages found in the sources.
  2435. See the :term:`GO_INSTALL_FILTEROUT` variable for
  2436. filtering out unwanted packages from the ones
  2437. found from the :term:`GO_INSTALL` value.
  2438. :term:`GO_INSTALL_FILTEROUT`
  2439. When using the Go "vendor" mechanism to bring in dependencies for a Go
  2440. package, the default :term:`GO_INSTALL` setting, which uses the ``...``
  2441. wildcard, will include the vendored packages in the build, which produces
  2442. incorrect results.
  2443. There are also some Go packages that are structured poorly, so that the
  2444. ``...`` wildcard results in building example or test code that should not
  2445. be included in the build, or could fail to build.
  2446. This optional variable allows for filtering out a subset of the sources.
  2447. It defaults to excluding everything under the ``vendor`` subdirectory
  2448. under package's main directory. This is the normal location for vendored
  2449. packages, but it can be overridden by a recipe to filter out other
  2450. subdirectories if needed.
  2451. :term:`GO_WORKDIR`
  2452. When using Go Modules, the current working directory must be the directory
  2453. containing the ``go.mod`` file, or one of its subdirectories. When the
  2454. ``go`` tool is used, it will automatically look for the ``go.mod`` file
  2455. in the Go working directory or in any parent directory, but not in
  2456. subdirectories.
  2457. When using the :ref:`ref-classes-go-mod` class to use Go modules,
  2458. the optional :term:`GO_WORKDIR` variable, defaulting to the value
  2459. of :term:`GO_IMPORT`, allows to specify a different Go working directory.
  2460. :term:`GROUPADD_PARAM`
  2461. When inheriting the :ref:`ref-classes-useradd` class,
  2462. this variable specifies for a package what parameters should be
  2463. passed to the ``groupadd`` command if you wish to add a group to the
  2464. system when the package is installed.
  2465. Here is an example from the ``dbus`` recipe::
  2466. GROUPADD_PARAM:${PN} = "-r netdev"
  2467. For information on the standard Linux shell command
  2468. ``groupadd``, see https://linux.die.net/man/8/groupadd.
  2469. :term:`GROUPMEMS_PARAM`
  2470. When inheriting the :ref:`ref-classes-useradd` class,
  2471. this variable specifies for a package what parameters should be
  2472. passed to the ``groupmems`` command if you wish to modify the members
  2473. of a group when the package is installed.
  2474. For information on the standard Linux shell command ``groupmems``,
  2475. see https://linux.die.net/man/8/groupmems.
  2476. :term:`GRUB_GFXSERIAL`
  2477. Configures the GNU GRand Unified Bootloader (GRUB) to have graphics
  2478. and serial in the boot menu. Set this variable to "1" in your
  2479. ``local.conf`` or distribution configuration file to enable graphics
  2480. and serial in the menu.
  2481. See the :ref:`ref-classes-grub-efi` class for more
  2482. information on how this variable is used.
  2483. :term:`GRUB_OPTS`
  2484. Additional options to add to the GNU GRand Unified Bootloader (GRUB)
  2485. configuration. Use a semi-colon character (``;``) to separate
  2486. multiple options.
  2487. The :term:`GRUB_OPTS` variable is optional. See the
  2488. :ref:`ref-classes-grub-efi` class for more information
  2489. on how this variable is used.
  2490. :term:`GRUB_TIMEOUT`
  2491. Specifies the timeout before executing the default ``LABEL`` in the
  2492. GNU GRand Unified Bootloader (GRUB).
  2493. The :term:`GRUB_TIMEOUT` variable is optional. See the
  2494. :ref:`ref-classes-grub-efi` class for more information
  2495. on how this variable is used.
  2496. :term:`GTKIMMODULES_PACKAGES`
  2497. When inheriting the :ref:`ref-classes-gtk-immodules-cache` class,
  2498. this variable specifies the packages that contain the GTK+ input
  2499. method modules being installed when the modules are in packages other
  2500. than the main package.
  2501. :term:`HGDIR`
  2502. See :term:`bitbake:HGDIR` in the BitBake manual.
  2503. :term:`HOMEPAGE`
  2504. Website where more information about the software the recipe is
  2505. building can be found.
  2506. :term:`HOST_ARCH`
  2507. The name of the target architecture, which is normally the same as
  2508. :term:`TARGET_ARCH`. The OpenEmbedded build system
  2509. supports many architectures. Here is an example list of architectures
  2510. supported. This list is by no means complete as the architecture is
  2511. configurable:
  2512. - arm
  2513. - i586
  2514. - x86_64
  2515. - powerpc
  2516. - powerpc64
  2517. - mips
  2518. - mipsel
  2519. :term:`HOST_CC_ARCH`
  2520. Specifies architecture-specific compiler flags that are passed to the
  2521. C compiler.
  2522. Default initialization for :term:`HOST_CC_ARCH` varies depending on what
  2523. is being built:
  2524. - :term:`TARGET_CC_ARCH` when building for the
  2525. target
  2526. - :term:`BUILD_CC_ARCH` when building for the build host (i.e.
  2527. ``-native``)
  2528. - ``BUILDSDK_CC_ARCH`` when building for an SDK (i.e.
  2529. ``nativesdk-``)
  2530. :term:`HOST_OS`
  2531. Specifies the name of the target operating system, which is normally
  2532. the same as the :term:`TARGET_OS`. The variable can
  2533. be set to "linux" for ``glibc``-based systems and to "linux-musl" for
  2534. ``musl``. For ARM/EABI targets, there are also "linux-gnueabi" and
  2535. "linux-musleabi" values possible.
  2536. :term:`HOST_PREFIX`
  2537. Specifies the prefix for the cross-compile toolchain. :term:`HOST_PREFIX`
  2538. is normally the same as :term:`TARGET_PREFIX`.
  2539. :term:`HOST_SYS`
  2540. Specifies the system, including the architecture and the operating
  2541. system, for which the build is occurring in the context of the
  2542. current recipe.
  2543. The OpenEmbedded build system automatically sets this variable based
  2544. on :term:`HOST_ARCH`,
  2545. :term:`HOST_VENDOR`, and
  2546. :term:`HOST_OS` variables.
  2547. .. note::
  2548. You do not need to set the variable yourself.
  2549. Consider these two examples:
  2550. - Given a native recipe on a 32-bit x86 machine running Linux, the
  2551. value is "i686-linux".
  2552. - Given a recipe being built for a little-endian MIPS target running
  2553. Linux, the value might be "mipsel-linux".
  2554. :term:`HOST_VENDOR`
  2555. Specifies the name of the vendor. :term:`HOST_VENDOR` is normally the
  2556. same as :term:`TARGET_VENDOR`.
  2557. :term:`HOSTTOOLS`
  2558. A space-separated list (filter) of tools on the build host that
  2559. should be allowed to be called from within build tasks. Using this
  2560. filter helps reduce the possibility of host contamination. If a tool
  2561. specified in the value of :term:`HOSTTOOLS` is not found on the build
  2562. host, the OpenEmbedded build system produces an error and the build
  2563. is not started.
  2564. For additional information, see
  2565. :term:`HOSTTOOLS_NONFATAL`.
  2566. :term:`HOSTTOOLS_NONFATAL`
  2567. A space-separated list (filter) of tools on the build host that
  2568. should be allowed to be called from within build tasks. Using this
  2569. filter helps reduce the possibility of host contamination. Unlike
  2570. :term:`HOSTTOOLS`, the OpenEmbedded build system
  2571. does not produce an error if a tool specified in the value of
  2572. :term:`HOSTTOOLS_NONFATAL` is not found on the build host. Thus, you can
  2573. use :term:`HOSTTOOLS_NONFATAL` to filter optional host tools.
  2574. :term:`ICECC_CLASS_DISABLE`
  2575. Identifies user classes that you do not want the Icecream distributed
  2576. compile support to consider. This variable is used by the
  2577. :ref:`ref-classes-icecc` class. You set this variable in
  2578. your ``local.conf`` file.
  2579. When you list classes using this variable, the recipes inheriting
  2580. those classes will not benefit from distributed compilation across
  2581. remote hosts. Instead they will be built locally.
  2582. :term:`ICECC_DISABLED`
  2583. Disables or enables the ``icecc`` (Icecream) function. For more
  2584. information on this function and best practices for using this
  2585. variable, see the ":ref:`ref-classes-icecc`"
  2586. section.
  2587. Setting this variable to "1" in your ``local.conf`` disables the
  2588. function::
  2589. ICECC_DISABLED ??= "1"
  2590. To enable the function, set the variable as follows::
  2591. ICECC_DISABLED = ""
  2592. :term:`ICECC_ENV_EXEC`
  2593. Points to the ``icecc-create-env`` script that you provide. This
  2594. variable is used by the :ref:`ref-classes-icecc` class. You
  2595. set this variable in your ``local.conf`` file.
  2596. If you do not point to a script that you provide, the OpenEmbedded
  2597. build system uses the default script provided by the
  2598. :oe_git:`icecc-create-env_0.1.bb
  2599. </openembedded-core/tree/meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb>`
  2600. recipe, which is a modified version and not the one that comes with
  2601. ``icecream``.
  2602. :term:`ICECC_PARALLEL_MAKE`
  2603. Extra options passed to the ``make`` command during the
  2604. :ref:`ref-tasks-compile` task that specify parallel
  2605. compilation. This variable usually takes the form of "-j x", where x
  2606. represents the maximum number of parallel threads ``make`` can run.
  2607. .. note::
  2608. The options passed affect builds on all enabled machines on the
  2609. network, which are machines running the ``iceccd`` daemon.
  2610. If your enabled machines support multiple cores, coming up with the
  2611. maximum number of parallel threads that gives you the best
  2612. performance could take some experimentation since machine speed,
  2613. network lag, available memory, and existing machine loads can all
  2614. affect build time. Consequently, unlike the
  2615. :term:`PARALLEL_MAKE` variable, there is no
  2616. rule-of-thumb for setting :term:`ICECC_PARALLEL_MAKE` to achieve optimal
  2617. performance.
  2618. If you do not set :term:`ICECC_PARALLEL_MAKE`, the build system does not
  2619. use it (i.e. the system does not detect and assign the number of
  2620. cores as is done with :term:`PARALLEL_MAKE`).
  2621. :term:`ICECC_PATH`
  2622. The location of the ``icecc`` binary. You can set this variable in
  2623. your ``local.conf`` file. If your ``local.conf`` file does not define
  2624. this variable, the :ref:`ref-classes-icecc` class attempts
  2625. to define it by locating ``icecc`` using ``which``.
  2626. :term:`ICECC_RECIPE_DISABLE`
  2627. Identifies user recipes that you do not want the Icecream distributed
  2628. compile support to consider. This variable is used by the
  2629. :ref:`ref-classes-icecc` class. You set this variable in
  2630. your ``local.conf`` file.
  2631. When you list recipes using this variable, you are excluding them
  2632. from distributed compilation across remote hosts. Instead they will
  2633. be built locally.
  2634. :term:`ICECC_RECIPE_ENABLE`
  2635. Identifies user recipes that use an empty
  2636. :term:`PARALLEL_MAKE` variable that you want to
  2637. force remote distributed compilation on using the Icecream
  2638. distributed compile support. This variable is used by the
  2639. :ref:`ref-classes-icecc` class. You set this variable in
  2640. your ``local.conf`` file.
  2641. :term:`IMAGE_BASENAME`
  2642. The base name of image output files. This variable defaults to the
  2643. recipe name (``${``\ :term:`PN`\ ``}``).
  2644. :term:`IMAGE_BOOT_FILES`
  2645. A space-separated list of files installed into the boot partition
  2646. when preparing an image using the Wic tool with the
  2647. ``bootimg-partition`` source plugin. By default,
  2648. the files are
  2649. installed under the same name as the source files. To change the
  2650. installed name, separate it from the original name with a semi-colon
  2651. (;). Source files need to be located in
  2652. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2653. examples::
  2654. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  2655. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  2656. Alternatively, source files can be picked up using a glob pattern. In
  2657. this case, the destination file must have the same name as the base
  2658. name of the source file path. To install files into a directory
  2659. within the target location, pass its name after a semi-colon (;).
  2660. Here are two examples::
  2661. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  2662. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  2663. The first example
  2664. installs all files from ``${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles``
  2665. into the root of the target partition. The second example installs
  2666. the same files into a ``boot`` directory within the target partition.
  2667. You can find information on how to use the Wic tool in the
  2668. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2669. section of the Yocto Project Development Tasks Manual. Reference
  2670. material for Wic is located in the
  2671. ":doc:`/ref-manual/kickstart`" chapter.
  2672. :term:`IMAGE_BUILDINFO_FILE`
  2673. When using the :ref:`ref-classes-image-buildinfo` class,
  2674. specifies the file in the image to write the build information into. The
  2675. default value is "``${sysconfdir}/buildinfo``".
  2676. :term:`IMAGE_BUILDINFO_VARS`
  2677. When using the :ref:`ref-classes-image-buildinfo` class,
  2678. specifies the list of variables to include in the `Build Configuration`
  2679. section of the output file (as a space-separated list). Defaults to
  2680. ":term:`DISTRO` :term:`DISTRO_VERSION`".
  2681. :term:`IMAGE_CLASSES`
  2682. A list of classes that all images should inherit. This is typically used
  2683. to enable functionality across all image recipes.
  2684. Classes specified in :term:`IMAGE_CLASSES` must be located in the
  2685. ``classes-recipe/`` or ``classes/`` subdirectories.
  2686. :term:`IMAGE_CMD`
  2687. Specifies the command to create the image file for a specific image
  2688. type, which corresponds to the value set in
  2689. :term:`IMAGE_FSTYPES`, (e.g. ``ext3``,
  2690. ``btrfs``, and so forth). When setting this variable, you should use
  2691. an override for the associated type. Here is an example::
  2692. IMAGE_CMD:jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
  2693. --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 \
  2694. ${EXTRA_IMAGECMD}"
  2695. You typically do not need to set this variable unless you are adding
  2696. support for a new image type. For more examples on how to set this
  2697. variable, see the :ref:`ref-classes-image_types`
  2698. class file, which is ``meta/classes-recipe/image_types.bbclass``.
  2699. :term:`IMAGE_DEVICE_TABLES`
  2700. Specifies one or more files that contain custom device tables that
  2701. are passed to the ``makedevs`` command as part of creating an image.
  2702. These files list basic device nodes that should be created under
  2703. ``/dev`` within the image. If :term:`IMAGE_DEVICE_TABLES` is not set,
  2704. ``files/device_table-minimal.txt`` is used, which is located by
  2705. :term:`BBPATH`. For details on how you should write
  2706. device table files, see ``meta/files/device_table-minimal.txt`` as an
  2707. example.
  2708. :term:`IMAGE_EFI_BOOT_FILES`
  2709. A space-separated list of files installed into the boot partition
  2710. when preparing an image using the Wic tool with the
  2711. ``bootimg-efi`` source plugin. By default,
  2712. the files are
  2713. installed under the same name as the source files. To change the
  2714. installed name, separate it from the original name with a semi-colon
  2715. (;). Source files need to be located in
  2716. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2717. examples::
  2718. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE};bz2"
  2719. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE} microcode.cpio"
  2720. Alternatively, source files can be picked up using a glob pattern. In
  2721. this case, the destination file must have the same name as the base
  2722. name of the source file path. To install files into a directory
  2723. within the target location, pass its name after a semi-colon (;).
  2724. Here are two examples::
  2725. IMAGE_EFI_BOOT_FILES = "boot/loader/*"
  2726. IMAGE_EFI_BOOT_FILES = "boot/loader/*;boot/"
  2727. The first example
  2728. installs all files from ``${DEPLOY_DIR_IMAGE}/boot/loader/``
  2729. into the root of the target partition. The second example installs
  2730. the same files into a ``boot`` directory within the target partition.
  2731. You can find information on how to use the Wic tool in the
  2732. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2733. section of the Yocto Project Development Tasks Manual. Reference
  2734. material for Wic is located in the
  2735. ":doc:`/ref-manual/kickstart`" chapter.
  2736. :term:`IMAGE_FEATURES`
  2737. The primary list of features to include in an image. Typically, you
  2738. configure this variable in an image recipe. Although you can use this
  2739. variable from your ``local.conf`` file, which is found in the
  2740. :term:`Build Directory`, best practices dictate that you do
  2741. not.
  2742. .. note::
  2743. To enable extra features from outside the image recipe, use the
  2744. :term:`EXTRA_IMAGE_FEATURES` variable.
  2745. For a list of image features that ships with the Yocto Project, see
  2746. the ":ref:`ref-features-image`" section.
  2747. For an example that shows how to customize your image by using this
  2748. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2749. section in the Yocto Project Development Tasks Manual.
  2750. :term:`IMAGE_FSTYPES`
  2751. Specifies the formats the OpenEmbedded build system uses during the
  2752. build when creating the root filesystem. For example, setting
  2753. :term:`IMAGE_FSTYPES` as follows causes the build system to create root
  2754. filesystems using two formats: ``.ext3`` and ``.tar.bz2``::
  2755. IMAGE_FSTYPES = "ext3 tar.bz2"
  2756. For the complete list of supported image formats from which you can
  2757. choose, see :term:`IMAGE_TYPES`.
  2758. .. note::
  2759. - If an image recipe uses the "inherit image" line and you are
  2760. setting :term:`IMAGE_FSTYPES` inside the recipe, you must set
  2761. :term:`IMAGE_FSTYPES` prior to using the "inherit image" line.
  2762. - Due to the way the OpenEmbedded build system processes this
  2763. variable, you cannot update its contents by using ``:append``
  2764. or ``:prepend``. You must use the ``+=`` operator to add one or
  2765. more options to the :term:`IMAGE_FSTYPES` variable.
  2766. :term:`IMAGE_INSTALL`
  2767. Used by recipes to specify the packages to install into an image
  2768. through the :ref:`ref-classes-image` class. Use the
  2769. :term:`IMAGE_INSTALL` variable with care to avoid ordering issues.
  2770. Image recipes set :term:`IMAGE_INSTALL` to specify the packages to
  2771. install into an image through :ref:`ref-classes-image`. Additionally,
  2772. there are "helper" classes such as the :ref:`ref-classes-core-image`
  2773. class which can take lists used with :term:`IMAGE_FEATURES` and turn
  2774. them into auto-generated entries in :term:`IMAGE_INSTALL` in addition
  2775. to its default contents.
  2776. When you use this variable, it is best to use it as follows::
  2777. IMAGE_INSTALL:append = " package-name"
  2778. Be sure to include the space
  2779. between the quotation character and the start of the package name or
  2780. names.
  2781. .. note::
  2782. - When working with a
  2783. :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  2784. image, do not use the :term:`IMAGE_INSTALL` variable to specify
  2785. packages for installation. Instead, use the
  2786. :term:`PACKAGE_INSTALL` variable, which
  2787. allows the initial RAM filesystem (:term:`Initramfs`) recipe to use a
  2788. fixed set of packages and not be affected by :term:`IMAGE_INSTALL`.
  2789. For information on creating an :term:`Initramfs`, see the
  2790. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`"
  2791. section in the Yocto Project Development Tasks Manual.
  2792. - Using :term:`IMAGE_INSTALL` with the
  2793. :ref:`+= <bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>`
  2794. BitBake operator within the ``/conf/local.conf`` file or from
  2795. within an image recipe is not recommended. Use of this operator in
  2796. these ways can cause ordering issues. Since
  2797. :ref:`ref-classes-core-image` sets :term:`IMAGE_INSTALL` to a
  2798. default value using the
  2799. :ref:`?= <bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>`
  2800. operator, using a ``+=`` operation against :term:`IMAGE_INSTALL`
  2801. results in unexpected behavior when used within
  2802. ``conf/local.conf``. Furthermore, the same operation from within an
  2803. image recipe may or may not succeed depending on the specific
  2804. situation. In both these cases, the behavior is contrary to how
  2805. most users expect the ``+=`` operator to work.
  2806. :term:`IMAGE_LINGUAS`
  2807. Specifies the list of locales to install into the image during the
  2808. root filesystem construction process. The OpenEmbedded build system
  2809. automatically splits locale files, which are used for localization,
  2810. into separate packages. Setting the :term:`IMAGE_LINGUAS` variable
  2811. ensures that any locale packages that correspond to packages already
  2812. selected for installation into the image are also installed. Here is
  2813. an example::
  2814. IMAGE_LINGUAS = "pt-br de-de"
  2815. In this example, the build system ensures any Brazilian Portuguese
  2816. and German locale files that correspond to packages in the image are
  2817. installed (i.e. ``*-locale-pt-br`` and ``*-locale-de-de`` as well as
  2818. ``*-locale-pt`` and ``*-locale-de``, since some software packages
  2819. only provide locale files by language and not by country-specific
  2820. language).
  2821. See the :term:`GLIBC_GENERATE_LOCALES`
  2822. variable for information on generating GLIBC locales.
  2823. :term:`IMAGE_LINK_NAME`
  2824. The name of the output image symlink (which does not include
  2825. the version part as :term:`IMAGE_NAME` does). The default value
  2826. is derived using the :term:`IMAGE_BASENAME` and
  2827. :term:`IMAGE_MACHINE_SUFFIX` variables::
  2828. IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}"
  2829. .. note::
  2830. It is possible to set this to "" to disable symlink creation,
  2831. however, you also need to set :term:`IMAGE_NAME` to still have
  2832. a reasonable value e.g.::
  2833. IMAGE_LINK_NAME = ""
  2834. IMAGE_NAME = "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  2835. :term:`IMAGE_MACHINE_SUFFIX`
  2836. Specifies the by default machine-specific suffix for image file names
  2837. (before the extension). The default value is set as follows::
  2838. IMAGE_MACHINE_SUFFIX ??= "-${MACHINE}"
  2839. The default :term:`DEPLOY_DIR_IMAGE` already has a :term:`MACHINE`
  2840. subdirectory, so you may find it unnecessary to also include this suffix
  2841. in the name of every image file. If you prefer to remove the suffix you
  2842. can set this variable to an empty string::
  2843. IMAGE_MACHINE_SUFFIX = ""
  2844. (Not to be confused with :term:`IMAGE_NAME_SUFFIX`.)
  2845. :term:`IMAGE_MANIFEST`
  2846. The manifest file for the image. This file lists all the installed
  2847. packages that make up the image. The file contains package
  2848. information on a line-per-package basis as follows::
  2849. packagename packagearch version
  2850. The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class defines the manifest
  2851. file as follows::
  2852. IMAGE_MANIFEST ="${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
  2853. The location is
  2854. derived using the :term:`IMGDEPLOYDIR`
  2855. and :term:`IMAGE_NAME` variables. You can find
  2856. information on how the image is created in the ":ref:`overview-manual/concepts:image generation`"
  2857. section in the Yocto Project Overview and Concepts Manual.
  2858. :term:`IMAGE_NAME`
  2859. The name of the output image files minus the extension. By default
  2860. this variable is set using the :term:`IMAGE_LINK_NAME`, and
  2861. :term:`IMAGE_VERSION_SUFFIX` variables::
  2862. IMAGE_NAME ?= "${IMAGE_LINK_NAME}${IMAGE_VERSION_SUFFIX}"
  2863. :term:`IMAGE_NAME_SUFFIX`
  2864. Suffix used for the image output filename --- defaults to ``".rootfs"``
  2865. to distinguish the image file from other files created during image
  2866. building; however if this suffix is redundant or not desired you can
  2867. clear the value of this variable (set the value to ""). For example,
  2868. this is typically cleared in :term:`Initramfs` image recipes.
  2869. :term:`IMAGE_OVERHEAD_FACTOR`
  2870. Defines a multiplier that the build system applies to the initial
  2871. image size for cases when the multiplier times the returned disk
  2872. usage value for the image is greater than the sum of
  2873. :term:`IMAGE_ROOTFS_SIZE` and :term:`IMAGE_ROOTFS_EXTRA_SPACE`. The result of
  2874. the multiplier applied to the initial image size creates free disk
  2875. space in the image as overhead. By default, the build process uses a
  2876. multiplier of 1.3 for this variable. This default value results in
  2877. 30% free disk space added to the image when this method is used to
  2878. determine the final generated image size. You should be aware that
  2879. post install scripts and the package management system uses disk
  2880. space inside this overhead area. Consequently, the multiplier does
  2881. not produce an image with all the theoretical free disk space. See
  2882. :term:`IMAGE_ROOTFS_SIZE` for information on how the build system
  2883. determines the overall image size.
  2884. The default 30% free disk space typically gives the image enough room
  2885. to boot and allows for basic post installs while still leaving a
  2886. small amount of free disk space. If 30% free space is inadequate, you
  2887. can increase the default value. For example, the following setting
  2888. gives you 50% free space added to the image::
  2889. IMAGE_OVERHEAD_FACTOR = "1.5"
  2890. Alternatively, you can ensure a specific amount of free disk space is
  2891. added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2892. variable.
  2893. :term:`IMAGE_PKGTYPE`
  2894. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the
  2895. OpenEmbedded build system. The variable is defined appropriately by
  2896. the :ref:`ref-classes-package_deb`, :ref:`ref-classes-package_rpm`,
  2897. or :ref:`ref-classes-package_ipk` class.
  2898. The :ref:`ref-classes-populate-sdk-*` and :ref:`ref-classes-image`
  2899. classes use the :term:`IMAGE_PKGTYPE` for packaging up images and SDKs.
  2900. You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the
  2901. variable is set indirectly through the appropriate
  2902. :ref:`package_* <ref-classes-package>` class using the
  2903. :term:`PACKAGE_CLASSES` variable. The
  2904. OpenEmbedded build system uses the first package type (e.g. DEB, RPM,
  2905. or IPK) that appears with the variable
  2906. .. note::
  2907. Files using the ``.tar`` format are never used as a substitute
  2908. packaging format for DEB, RPM, and IPK formatted files for your image
  2909. or SDK.
  2910. :term:`IMAGE_POSTPROCESS_COMMAND`
  2911. Specifies a list of functions to call once the OpenEmbedded build
  2912. system creates the final image output files. You can specify
  2913. functions separated by semicolons::
  2914. IMAGE_POSTPROCESS_COMMAND += "function; ... "
  2915. If you need to pass the root filesystem path to a command within the
  2916. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  2917. directory that becomes the root filesystem image. See the
  2918. :term:`IMAGE_ROOTFS` variable for more
  2919. information.
  2920. :term:`IMAGE_PREPROCESS_COMMAND`
  2921. Specifies a list of functions to call before the OpenEmbedded build
  2922. system creates the final image output files. You can specify
  2923. functions separated by semicolons::
  2924. IMAGE_PREPROCESS_COMMAND += "function; ... "
  2925. If you need to pass the root filesystem path to a command within the
  2926. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  2927. directory that becomes the root filesystem image. See the
  2928. :term:`IMAGE_ROOTFS` variable for more
  2929. information.
  2930. :term:`IMAGE_ROOTFS`
  2931. The location of the root filesystem while it is under construction
  2932. (i.e. during the :ref:`ref-tasks-rootfs` task). This
  2933. variable is not configurable. Do not change it.
  2934. :term:`IMAGE_ROOTFS_ALIGNMENT`
  2935. Specifies the alignment for the output image file in Kbytes. If the
  2936. size of the image is not a multiple of this value, then the size is
  2937. rounded up to the nearest multiple of the value. The default value is
  2938. "1". See :term:`IMAGE_ROOTFS_SIZE` for
  2939. additional information.
  2940. :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2941. Defines additional free disk space created in the image in Kbytes. By
  2942. default, this variable is set to "0". This free disk space is added
  2943. to the image after the build system determines the image size as
  2944. described in :term:`IMAGE_ROOTFS_SIZE`.
  2945. This variable is particularly useful when you want to ensure that a
  2946. specific amount of free disk space is available on a device after an
  2947. image is installed and running. For example, to be sure 5 Gbytes of
  2948. free disk space is available, set the variable as follows::
  2949. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  2950. For example, the Yocto Project Build Appliance specifically requests
  2951. 40 Gbytes of extra space with the line::
  2952. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  2953. :term:`IMAGE_ROOTFS_SIZE`
  2954. Defines the size in Kbytes for the generated image. The OpenEmbedded
  2955. build system determines the final size for the generated image using
  2956. an algorithm that takes into account the initial disk space used for
  2957. the generated image, a requested size for the image, and requested
  2958. additional free disk space to be added to the image. Programatically,
  2959. the build system determines the final size of the generated image as
  2960. follows::
  2961. if (image-du * overhead) < rootfs-size:
  2962. internal-rootfs-size = rootfs-size + xspace
  2963. else:
  2964. internal-rootfs-size = (image-du * overhead) + xspace
  2965. where:
  2966. image-du = Returned value of the du command on the image.
  2967. overhead = IMAGE_OVERHEAD_FACTOR
  2968. rootfs-size = IMAGE_ROOTFS_SIZE
  2969. internal-rootfs-size = Initial root filesystem size before any modifications.
  2970. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  2971. See the :term:`IMAGE_OVERHEAD_FACTOR`
  2972. and :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2973. variables for related information.
  2974. :term:`IMAGE_TYPEDEP`
  2975. Specifies a dependency from one image type on another. Here is an
  2976. example from the :ref:`ref-classes-image-live` class::
  2977. IMAGE_TYPEDEP:live = "ext3"
  2978. In the previous example, the variable ensures that when "live" is
  2979. listed with the :term:`IMAGE_FSTYPES` variable,
  2980. the OpenEmbedded build system produces an ``ext3`` image first since
  2981. one of the components of the live image is an ``ext3`` formatted
  2982. partition containing the root filesystem.
  2983. :term:`IMAGE_TYPES`
  2984. Specifies the complete list of supported image types by default:
  2985. - btrfs
  2986. - container
  2987. - cpio
  2988. - cpio.gz
  2989. - cpio.lz4
  2990. - cpio.lzma
  2991. - cpio.xz
  2992. - cramfs
  2993. - erofs
  2994. - erofs-lz4
  2995. - erofs-lz4hc
  2996. - ext2
  2997. - ext2.bz2
  2998. - ext2.gz
  2999. - ext2.lzma
  3000. - ext3
  3001. - ext3.gz
  3002. - ext4
  3003. - ext4.gz
  3004. - f2fs
  3005. - hddimg
  3006. - iso
  3007. - jffs2
  3008. - jffs2.sum
  3009. - multiubi
  3010. - squashfs
  3011. - squashfs-lz4
  3012. - squashfs-lzo
  3013. - squashfs-xz
  3014. - tar
  3015. - tar.bz2
  3016. - tar.gz
  3017. - tar.lz4
  3018. - tar.xz
  3019. - tar.zst
  3020. - ubi
  3021. - ubifs
  3022. - wic
  3023. - wic.bz2
  3024. - wic.gz
  3025. - wic.lzma
  3026. For more information about these types of images, see
  3027. ``meta/classes-recipe/image_types*.bbclass`` in the :term:`Source Directory`.
  3028. :term:`IMAGE_VERSION_SUFFIX`
  3029. Version suffix that is part of the default :term:`IMAGE_NAME` and
  3030. :term:`KERNEL_ARTIFACT_NAME` values.
  3031. Defaults to ``"-${DATETIME}"``, however you could set this to a
  3032. version string that comes from your external build environment if
  3033. desired, and this suffix would then be used consistently across
  3034. the build artifacts.
  3035. :term:`IMGDEPLOYDIR`
  3036. When inheriting the :ref:`ref-classes-image` class directly or
  3037. through the :ref:`ref-classes-core-image` class, the
  3038. :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files
  3039. that is set in the ``image`` class as follows::
  3040. IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete"
  3041. Recipes inheriting the :ref:`ref-classes-image` class should copy
  3042. files to be deployed into :term:`IMGDEPLOYDIR`, and the class will take
  3043. care of copying them into :term:`DEPLOY_DIR_IMAGE` afterwards.
  3044. :term:`INCOMPATIBLE_LICENSE`
  3045. Specifies a space-separated list of license names (as they would
  3046. appear in :term:`LICENSE`) that should be excluded
  3047. from the build (if set globally), or from an image (if set locally
  3048. in an image recipe).
  3049. When the variable is set globally, recipes that provide no alternatives to listed
  3050. incompatible licenses are not built. Packages that are individually
  3051. licensed with the specified incompatible licenses will be deleted.
  3052. Most of the time this does not allow a feasible build (because it becomes impossible
  3053. to satisfy build time dependencies), so the recommended way to
  3054. implement license restrictions is to set the variable in specific
  3055. image recipes where the restrictions must apply. That way there
  3056. are no build time restrictions, but the license check is still
  3057. performed when the image's filesystem is assembled from packages.
  3058. There is some support for wildcards in this variable's value,
  3059. however it is restricted to specific licenses. Currently only
  3060. these wildcards are allowed and expand as follows:
  3061. - ``AGPL-3.0*"``: ``AGPL-3.0-only``, ``AGPL-3.0-or-later``
  3062. - ``GPL-3.0*``: ``GPL-3.0-only``, ``GPL-3.0-or-later``
  3063. - ``LGPL-3.0*``: ``LGPL-3.0-only``, ``LGPL-3.0-or-later``
  3064. .. note::
  3065. This functionality is only regularly tested using the following
  3066. setting::
  3067. INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0* AGPL-3.0*"
  3068. Although you can use other settings, you might be required to
  3069. remove dependencies on (or provide alternatives to) components that
  3070. are required to produce a functional system image.
  3071. :term:`INCOMPATIBLE_LICENSE_EXCEPTIONS`
  3072. Specifies a space-separated list of package and license pairs that
  3073. are allowed to be used even if the license is specified in
  3074. :term:`INCOMPATIBLE_LICENSE`. The package and license pairs are
  3075. separated using a colon. Example::
  3076. INCOMPATIBLE_LICENSE_EXCEPTIONS = "gdbserver:GPL-3.0-only gdbserver:LGPL-3.0-only"
  3077. :term:`INHERIT`
  3078. Causes the named class or classes to be inherited globally. Anonymous
  3079. functions in the class or classes are not executed for the base
  3080. configuration and in each individual recipe. The OpenEmbedded build
  3081. system ignores changes to :term:`INHERIT` in individual recipes.
  3082. Classes inherited using :term:`INHERIT` must be located in the
  3083. ``classes-global/`` or ``classes/`` subdirectories.
  3084. For more information on :term:`INHERIT`, see the
  3085. :ref:`bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`"
  3086. section in the BitBake User Manual.
  3087. :term:`INHERIT_DISTRO`
  3088. Lists classes that will be inherited at the distribution level. It is
  3089. unlikely that you want to edit this variable.
  3090. Classes specified in :term:`INHERIT_DISTRO` must be located in the
  3091. ``classes-global/`` or ``classes/`` subdirectories.
  3092. The default value of the variable is set as follows in the
  3093. ``meta/conf/distro/defaultsetup.conf`` file::
  3094. INHERIT_DISTRO ?= "debian devshell sstate license"
  3095. :term:`INHIBIT_DEFAULT_DEPS`
  3096. Prevents the default dependencies, namely the C compiler and standard
  3097. C library (libc), from being added to :term:`DEPENDS`.
  3098. This variable is usually used within recipes that do not require any
  3099. compilation using the C compiler.
  3100. Set the variable to "1" to prevent the default dependencies from
  3101. being added.
  3102. :term:`INHIBIT_PACKAGE_DEBUG_SPLIT`
  3103. Prevents the OpenEmbedded build system from splitting out debug
  3104. information during packaging. By default, the build system splits out
  3105. debugging information during the
  3106. :ref:`ref-tasks-package` task. For more information on
  3107. how debug information is split out, see the
  3108. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  3109. variable.
  3110. To prevent the build system from splitting out debug information
  3111. during packaging, set the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable as
  3112. follows::
  3113. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  3114. :term:`INHIBIT_PACKAGE_STRIP`
  3115. If set to "1", causes the build to not strip binaries in resulting
  3116. packages and prevents the ``-dbg`` package from containing the source
  3117. files.
  3118. By default, the OpenEmbedded build system strips binaries and puts
  3119. the debugging symbols into ``${``\ :term:`PN`\ ``}-dbg``.
  3120. Consequently, you should not set :term:`INHIBIT_PACKAGE_STRIP` when you
  3121. plan to debug in general.
  3122. :term:`INHIBIT_SYSROOT_STRIP`
  3123. If set to "1", causes the build to not strip binaries in the
  3124. resulting sysroot.
  3125. By default, the OpenEmbedded build system strips binaries in the
  3126. resulting sysroot. When you specifically set the
  3127. :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit
  3128. this stripping.
  3129. If you want to use this variable, include the :ref:`ref-classes-staging`
  3130. class. This class uses a ``sys_strip()`` function to test for the variable
  3131. and acts accordingly.
  3132. .. note::
  3133. Use of the :term:`INHIBIT_SYSROOT_STRIP` variable occurs in rare and
  3134. special circumstances. For example, suppose you are building
  3135. bare-metal firmware by using an external GCC toolchain. Furthermore,
  3136. even if the toolchain's binaries are strippable, there are other files
  3137. needed for the build that are not strippable.
  3138. :term:`INIT_MANAGER`
  3139. Specifies the system init manager to use. Available options are:
  3140. - ``sysvinit``
  3141. - ``systemd``
  3142. - ``mdev-busybox``
  3143. With ``sysvinit``, the init manager is set to
  3144. :wikipedia:`SysVinit <Init#SysV-style>`, the traditional UNIX init
  3145. system. This is the default choice in the Poky distribution, together with
  3146. the Udev device manager (see the ":ref:`device-manager`" section).
  3147. With ``systemd``, the init manager becomes :wikipedia:`systemd <Systemd>`,
  3148. which comes with the :wikipedia:`udev <Udev>` device manager.
  3149. With ``mdev-busybox``, the init manager becomes the much simpler BusyBox
  3150. init, together with the BusyBox mdev device manager. This is the simplest
  3151. and lightest solution, and probably the best choice for low-end systems
  3152. with a rather slow CPU and a limited amount of RAM.
  3153. More concretely, this is used to include
  3154. ``conf/distro/include/init-manager-${INIT_MANAGER}.inc`` into the global
  3155. configuration. You can have a look at the
  3156. :yocto_git:`meta/conf/distro/include/init-manager-*.inc </poky/tree/meta/conf/distro/include>`
  3157. files for more information, and also the ":ref:`init-manager`"
  3158. section in the Yocto Project Development Tasks Manual.
  3159. :term:`INITRAMFS_DEPLOY_DIR_IMAGE`
  3160. Indicates the deploy directory used by :ref:`ref-tasks-bundle_initramfs`
  3161. where the :term:`INITRAMFS_IMAGE` will be fetched from. This variable is
  3162. set by default to ``${DEPLOY_DIR_IMAGE}`` in the
  3163. :ref:`ref-classes-kernel` class and it's only meant to be changed when
  3164. building an :term:`Initramfs` image from a separate multiconfig via
  3165. :term:`INITRAMFS_MULTICONFIG`.
  3166. :term:`INITRAMFS_FSTYPES`
  3167. Defines the format for the output image of an initial RAM filesystem
  3168. (:term:`Initramfs`), which is used during boot. Supported formats are the
  3169. same as those supported by the
  3170. :term:`IMAGE_FSTYPES` variable.
  3171. The default value of this variable, which is set in the
  3172. ``meta/conf/bitbake.conf`` configuration file in the
  3173. :term:`Source Directory`, is "cpio.gz". The Linux kernel's
  3174. :term:`Initramfs` mechanism, as opposed to the initial RAM filesystem
  3175. :wikipedia:`initrd <Initrd>` mechanism, expects
  3176. an optionally compressed cpio archive.
  3177. :term:`INITRAMFS_IMAGE`
  3178. Specifies the :term:`PROVIDES` name of an image
  3179. recipe that is used to build an initial RAM filesystem (:term:`Initramfs`)
  3180. image. In other words, the :term:`INITRAMFS_IMAGE` variable causes an
  3181. additional recipe to be built as a dependency to whatever root
  3182. filesystem recipe you might be using (e.g. ``core-image-sato``). The
  3183. :term:`Initramfs` image recipe you provide should set
  3184. :term:`IMAGE_FSTYPES` to
  3185. :term:`INITRAMFS_FSTYPES`.
  3186. An :term:`Initramfs` image provides a temporary root filesystem used for
  3187. early system initialization (e.g. loading of modules needed to locate
  3188. and mount the "real" root filesystem).
  3189. .. note::
  3190. See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb``
  3191. recipe in the :term:`Source Directory`
  3192. for an example :term:`Initramfs` recipe. To select this sample recipe as
  3193. the one built to provide the :term:`Initramfs` image, set :term:`INITRAMFS_IMAGE`
  3194. to "core-image-minimal-initramfs".
  3195. You can also find more information by referencing the
  3196. ``meta-poky/conf/templates/default/local.conf.sample.extended``
  3197. configuration file in the Source Directory, the :ref:`ref-classes-image`
  3198. class, and the :ref:`ref-classes-kernel` class to see how to use the
  3199. :term:`INITRAMFS_IMAGE` variable.
  3200. If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no
  3201. :term:`Initramfs` image is built.
  3202. For more information, you can also see the
  3203. :term:`INITRAMFS_IMAGE_BUNDLE`
  3204. variable, which allows the generated image to be bundled inside the
  3205. kernel image. Additionally, for information on creating an :term:`Initramfs`
  3206. image, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3207. in the Yocto Project Development Tasks Manual.
  3208. :term:`INITRAMFS_IMAGE_BUNDLE`
  3209. Controls whether or not the image recipe specified by
  3210. :term:`INITRAMFS_IMAGE` is run through an
  3211. extra pass
  3212. (:ref:`ref-tasks-bundle_initramfs`) during
  3213. kernel compilation in order to build a single binary that contains
  3214. both the kernel image and the initial RAM filesystem (:term:`Initramfs`)
  3215. image. This makes use of the
  3216. :term:`CONFIG_INITRAMFS_SOURCE` kernel
  3217. feature.
  3218. .. note::
  3219. Bundling the :term:`Initramfs` with the kernel conflates the code in the
  3220. :term:`Initramfs` with the GPLv2 licensed Linux kernel binary. Thus only GPLv2
  3221. compatible software may be part of a bundled :term:`Initramfs`.
  3222. .. note::
  3223. Using an extra compilation pass to bundle the :term:`Initramfs` avoids a
  3224. circular dependency between the kernel recipe and the :term:`Initramfs`
  3225. recipe should the :term:`Initramfs` include kernel modules. Should that be
  3226. the case, the :term:`Initramfs` recipe depends on the kernel for the
  3227. kernel modules, and the kernel depends on the :term:`Initramfs` recipe
  3228. since the :term:`Initramfs` is bundled inside the kernel image.
  3229. The combined binary is deposited into the ``tmp/deploy`` directory,
  3230. which is part of the :term:`Build Directory`.
  3231. Setting the variable to "1" in a configuration file causes the
  3232. OpenEmbedded build system to generate a kernel image with the
  3233. :term:`Initramfs` specified in :term:`INITRAMFS_IMAGE` bundled within::
  3234. INITRAMFS_IMAGE_BUNDLE = "1"
  3235. By default, the :ref:`ref-classes-kernel` class sets this variable to a
  3236. null string as follows::
  3237. INITRAMFS_IMAGE_BUNDLE ?= ""
  3238. .. note::
  3239. You must set the :term:`INITRAMFS_IMAGE_BUNDLE` variable in a
  3240. configuration file. You cannot set the variable in a recipe file.
  3241. See the
  3242. :yocto_git:`local.conf.sample.extended </poky/tree/meta-poky/conf/templates/default/local.conf.sample.extended>`
  3243. file for additional information. Also, for information on creating an
  3244. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3245. in the Yocto Project Development Tasks Manual.
  3246. :term:`INITRAMFS_IMAGE_NAME`
  3247. This value needs to stay in sync with :term:`IMAGE_LINK_NAME`, but with
  3248. :term:`INITRAMFS_IMAGE` instead of :term:`IMAGE_BASENAME`. The default value
  3249. is set as follows:
  3250. INITRAMFS_IMAGE_NAME ?= "${@['${INITRAMFS_IMAGE}${IMAGE_MACHINE_SUFFIX}', ''][d.getVar('INITRAMFS_IMAGE') == '']}"
  3251. That is, if :term:`INITRAMFS_IMAGE` is set, the value of
  3252. :term:`INITRAMFS_IMAGE_NAME` will be set based upon
  3253. :term:`INITRAMFS_IMAGE` and :term:`IMAGE_MACHINE_SUFFIX`.
  3254. :term:`INITRAMFS_LINK_NAME`
  3255. The link name of the initial RAM filesystem image. This variable is
  3256. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3257. follows::
  3258. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  3259. The value of the
  3260. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3261. file, has the following value::
  3262. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3263. See the :term:`MACHINE` variable for additional
  3264. information.
  3265. :term:`INITRAMFS_MULTICONFIG`
  3266. Defines the multiconfig to create a multiconfig dependency to be used by
  3267. the :ref:`ref-classes-kernel` class.
  3268. This allows the kernel to bundle an :term:`INITRAMFS_IMAGE` coming from
  3269. a separate multiconfig, this is meant to be used in addition to :term:`INITRAMFS_DEPLOY_DIR_IMAGE`.
  3270. For more information on how to bundle an :term:`Initramfs` image from a separate
  3271. multiconfig see the ":ref:`dev-manual/building:Bundling an Initramfs Image From a Separate Multiconfig`"
  3272. section in the Yocto Project Development Tasks Manual.
  3273. :term:`INITRAMFS_NAME`
  3274. The base name of the initial RAM filesystem image. This variable is
  3275. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3276. follows::
  3277. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  3278. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3279. :term:`INITRD`
  3280. Indicates list of filesystem images to concatenate and use as an
  3281. initial RAM disk (``initrd``).
  3282. The :term:`INITRD` variable is an optional variable used with the
  3283. :ref:`ref-classes-image-live` class.
  3284. :term:`INITRD_IMAGE`
  3285. When building a "live" bootable image (i.e. when
  3286. :term:`IMAGE_FSTYPES` contains "live"),
  3287. :term:`INITRD_IMAGE` specifies the image recipe that should be built to
  3288. provide the initial RAM disk image. The default value is
  3289. "core-image-minimal-initramfs".
  3290. See the :ref:`ref-classes-image-live` class for more information.
  3291. :term:`INITSCRIPT_NAME`
  3292. The filename of the initialization script as installed to
  3293. ``${sysconfdir}/init.d``.
  3294. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3295. The variable is mandatory.
  3296. :term:`INITSCRIPT_PACKAGES`
  3297. A list of the packages that contain initscripts. If multiple packages
  3298. are specified, you need to append the package name to the other
  3299. ``INITSCRIPT_*`` as an override.
  3300. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3301. The variable is optional and defaults to the :term:`PN`
  3302. variable.
  3303. :term:`INITSCRIPT_PARAMS`
  3304. Specifies the options to pass to ``update-rc.d``. Here is an example::
  3305. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  3306. In this example, the script has a runlevel of 99, starts the script
  3307. in initlevels 2 and 5, and stops the script in levels 0, 1 and 6.
  3308. The variable's default value is "defaults", which is set in the
  3309. :ref:`ref-classes-update-rc.d` class.
  3310. The value in :term:`INITSCRIPT_PARAMS` is passed through to the
  3311. ``update-rc.d`` command. For more information on valid parameters,
  3312. please see the ``update-rc.d`` manual page at
  3313. https://manpages.debian.org/buster/init-system-helpers/update-rc.d.8.en.html
  3314. :term:`INSANE_SKIP`
  3315. Specifies the QA checks to skip for a specific package within a
  3316. recipe. For example, to skip the check for symbolic link ``.so``
  3317. files in the main package of a recipe, add the following to the
  3318. recipe. The package name override must be used, which in this example
  3319. is ``${PN}``::
  3320. INSANE_SKIP:${PN} += "dev-so"
  3321. See the ":ref:`ref-classes-insane`" section for a
  3322. list of the valid QA checks you can specify using this variable.
  3323. :term:`INSTALL_TIMEZONE_FILE`
  3324. By default, the ``tzdata`` recipe packages an ``/etc/timezone`` file.
  3325. Set the :term:`INSTALL_TIMEZONE_FILE` variable to "0" at the
  3326. configuration level to disable this behavior.
  3327. :term:`IPK_FEED_URIS`
  3328. When the IPK backend is in use and package management is enabled on
  3329. the target, you can use this variable to set up ``opkg`` in the
  3330. target image to point to package feeds on a nominated server. Once
  3331. the feed is established, you can perform installations or upgrades
  3332. using the package manager at runtime.
  3333. :term:`KARCH`
  3334. Defines the kernel architecture used when assembling the
  3335. configuration. Architectures supported for this release are:
  3336. - powerpc
  3337. - i386
  3338. - x86_64
  3339. - arm
  3340. - qemu
  3341. - mips
  3342. You define the :term:`KARCH` variable in the :ref:`kernel-dev/advanced:bsp descriptions`.
  3343. :term:`KBRANCH`
  3344. A regular expression used by the build process to explicitly identify
  3345. the kernel branch that is validated, patched, and configured during a
  3346. build. You must set this variable to ensure the exact kernel branch
  3347. you want is being used by the build process.
  3348. Values for this variable are set in the kernel's recipe file and the
  3349. kernel's append file. For example, if you are using the
  3350. ``linux-yocto_4.12`` kernel, the kernel recipe file is the
  3351. ``meta/recipes-kernel/linux/linux-yocto_4.12.bb`` file. :term:`KBRANCH`
  3352. is set as follows in that kernel recipe file::
  3353. KBRANCH ?= "standard/base"
  3354. This variable is also used from the kernel's append file to identify
  3355. the kernel branch specific to a particular machine or target
  3356. hardware. Continuing with the previous kernel example, the kernel's
  3357. append file (i.e. ``linux-yocto_4.12.bbappend``) is located in the
  3358. BSP layer for a given machine. For example, the append file for the
  3359. Beaglebone, EdgeRouter, and generic versions of both 32 and 64-bit IA
  3360. machines (``meta-yocto-bsp``) is named
  3361. ``meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.12.bbappend``.
  3362. Here are the related statements from that append file::
  3363. KBRANCH:genericx86 = "standard/base"
  3364. KBRANCH:genericx86-64 = "standard/base"
  3365. KBRANCH:edgerouter = "standard/edgerouter"
  3366. KBRANCH:beaglebone = "standard/beaglebone"
  3367. The :term:`KBRANCH` statements
  3368. identify the kernel branch to use when building for each supported
  3369. BSP.
  3370. :term:`KBUILD_DEFCONFIG`
  3371. When used with the :ref:`ref-classes-kernel-yocto`
  3372. class, specifies an "in-tree" kernel configuration file for use
  3373. during a kernel build.
  3374. Typically, when using a ``defconfig`` to configure a kernel during a
  3375. build, you place the file in your layer in the same manner as you
  3376. would place patch files and configuration fragment files (i.e.
  3377. "out-of-tree"). However, if you want to use a ``defconfig`` file that
  3378. is part of the kernel tree (i.e. "in-tree"), you can use the
  3379. :term:`KBUILD_DEFCONFIG` variable and append the
  3380. :term:`KMACHINE` variable to point to the
  3381. ``defconfig`` file.
  3382. To use the variable, set it in the append file for your kernel recipe
  3383. using the following form::
  3384. KBUILD_DEFCONFIG:<machine> ?= "defconfig_file"
  3385. Here is an example from a "raspberrypi2" :term:`MACHINE` build that uses
  3386. a ``defconfig`` file named "bcm2709_defconfig"::
  3387. KBUILD_DEFCONFIG:raspberrypi2 = "bcm2709_defconfig"
  3388. As an alternative, you can use the following within your append file::
  3389. KBUILD_DEFCONFIG:pn-linux-yocto ?= "defconfig_file"
  3390. For more
  3391. information on how to use the :term:`KBUILD_DEFCONFIG` variable, see the
  3392. ":ref:`kernel-dev/common:using an "in-tree" \`\`defconfig\`\` file`"
  3393. section in the Yocto Project Linux Kernel Development Manual.
  3394. :term:`KCONFIG_MODE`
  3395. When used with the :ref:`ref-classes-kernel-yocto`
  3396. class, specifies the kernel configuration values to use for options
  3397. not specified in the provided ``defconfig`` file. Valid options are::
  3398. KCONFIG_MODE = "alldefconfig"
  3399. KCONFIG_MODE = "allnoconfig"
  3400. In ``alldefconfig`` mode the options not explicitly specified will be
  3401. assigned their Kconfig default value. In ``allnoconfig`` mode the
  3402. options not explicitly specified will be disabled in the kernel
  3403. config.
  3404. In case :term:`KCONFIG_MODE` is not set the behaviour will depend on where
  3405. the ``defconfig`` file is coming from. An "in-tree" ``defconfig`` file
  3406. will be handled in ``alldefconfig`` mode, a ``defconfig`` file placed
  3407. in ``${WORKDIR}`` through a meta-layer will be handled in
  3408. ``allnoconfig`` mode.
  3409. An "in-tree" ``defconfig`` file can be selected via the
  3410. :term:`KBUILD_DEFCONFIG` variable. :term:`KCONFIG_MODE` does not need to
  3411. be explicitly set.
  3412. A ``defconfig`` file compatible with ``allnoconfig`` mode can be
  3413. generated by copying the ``.config`` file from a working Linux kernel
  3414. build, renaming it to ``defconfig`` and placing it into the Linux
  3415. kernel ``${WORKDIR}`` through your meta-layer. :term:`KCONFIG_MODE` does
  3416. not need to be explicitly set.
  3417. A ``defconfig`` file compatible with ``alldefconfig`` mode can be
  3418. generated using the
  3419. :ref:`ref-tasks-savedefconfig`
  3420. task and placed into the Linux kernel ``${WORKDIR}`` through your
  3421. meta-layer. Explicitely set :term:`KCONFIG_MODE`::
  3422. KCONFIG_MODE = "alldefconfig"
  3423. :term:`KERNEL_ALT_IMAGETYPE`
  3424. Specifies an alternate kernel image type for creation in addition to
  3425. the kernel image type specified using the :term:`KERNEL_IMAGETYPE` and
  3426. :term:`KERNEL_IMAGETYPES` variables.
  3427. :term:`KERNEL_ARTIFACT_NAME`
  3428. Specifies the name of all of the build artifacts. You can change the
  3429. name of the artifacts by changing the :term:`KERNEL_ARTIFACT_NAME`
  3430. variable.
  3431. The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the
  3432. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file, has the
  3433. following default value::
  3434. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  3435. See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`IMAGE_MACHINE_SUFFIX`
  3436. and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
  3437. :term:`KERNEL_CLASSES`
  3438. A list of classes defining kernel image types that the
  3439. :ref:`ref-classes-kernel` class should inherit. You typically
  3440. append this variable to enable extended image types. An example is
  3441. ":ref:`ref-classes-kernel-fitimage`", which enables
  3442. FIT image support and resides in ``meta/classes-recipe/kernel-fitimage.bbclass``.
  3443. You can register custom kernel image types with the
  3444. :ref:`ref-classes-kernel` class using this variable.
  3445. :term:`KERNEL_DANGLING_FEATURES_WARN_ONLY`
  3446. When kernel configuration fragments are missing for some
  3447. :term:`KERNEL_FEATURES` specified by layers or BSPs,
  3448. building and configuring the kernel stops with an error.
  3449. You can turn these errors into warnings by setting the
  3450. following in ``conf/local.conf``::
  3451. KERNEL_DANGLING_FEATURES_WARN_ONLY = "1"
  3452. You will still be warned that runtime issues may occur,
  3453. but at least the kernel configuration and build process will
  3454. be allowed to continue.
  3455. :term:`KERNEL_DEBUG_TIMESTAMPS`
  3456. If set to "1", enables timestamping functionality during building
  3457. the kernel. The default is "0" to disable this for reproducibility
  3458. reasons.
  3459. :term:`KERNEL_DEPLOY_DEPEND`
  3460. Provides a means of controlling the dependency of an image recipe
  3461. on the kernel. The default value is "virtual/kernel:do_deploy",
  3462. however for a small initramfs image or other images that do not
  3463. need the kernel, this can be set to "" in the image recipe.
  3464. :term:`KERNEL_DEVICETREE`
  3465. Specifies the name of the generated Linux kernel device tree (i.e.
  3466. the ``.dtb``) file.
  3467. .. note::
  3468. There is legacy support for specifying the full path to the device
  3469. tree. However, providing just the ``.dtb`` file is preferred.
  3470. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3471. class must be inherited.
  3472. :term:`KERNEL_DEVICETREE_BUNDLE`
  3473. When set to "1", this variable allows to bundle the Linux kernel
  3474. and the Device Tree Binary together in a single file.
  3475. This feature is currently only supported on the "arm" (32 bit)
  3476. architecture.
  3477. This variable is set to "0" by default by the
  3478. :ref:`ref-classes-kernel-devicetree` class.
  3479. :term:`KERNEL_DTB_LINK_NAME`
  3480. The link name of the kernel device tree binary (DTB). This variable
  3481. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3482. follows::
  3483. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3484. The
  3485. value of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in
  3486. the same file, has the following value::
  3487. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3488. See the :term:`MACHINE` variable for additional
  3489. information.
  3490. :term:`KERNEL_DTB_NAME`
  3491. The base name of the kernel device tree binary (DTB). This variable
  3492. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3493. follows::
  3494. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3495. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3496. :term:`KERNEL_DTBDEST`
  3497. This variable, used by the :ref:`ref-classes-kernel-devicetree`
  3498. class, allows to change the installation directory of the DTB
  3499. (Device Tree Binary) files.
  3500. It is set by default to "${KERNEL_IMAGEDEST}" by the
  3501. :ref:`ref-classes-kernel` class.
  3502. :term:`KERNEL_DTBVENDORED`
  3503. This variable, used by the :ref:`ref-classes-kernel-devicetree`,
  3504. allows to ignore vendor subdirectories when installing DTB
  3505. (Device Tree Binary) files, when it is set to "false".
  3506. To keep vendor subdirectories, set this variable to "true".
  3507. It is set by default to "false" by the :ref:`ref-classes-kernel` class.
  3508. :term:`KERNEL_DTC_FLAGS`
  3509. Specifies the ``dtc`` flags that are passed to the Linux kernel build
  3510. system when generating the device trees (via ``DTC_FLAGS`` environment
  3511. variable).
  3512. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3513. class must be inherited.
  3514. :term:`KERNEL_EXTRA_ARGS`
  3515. Specifies additional ``make`` command-line arguments the OpenEmbedded
  3516. build system passes on when compiling the kernel.
  3517. :term:`KERNEL_FEATURES`
  3518. Includes additional kernel metadata. In the OpenEmbedded build
  3519. system, the default Board Support Packages (BSPs)
  3520. :term:`Metadata` is provided through the
  3521. :term:`KMACHINE` and :term:`KBRANCH`
  3522. variables. You can use the :term:`KERNEL_FEATURES` variable from within
  3523. the kernel recipe or kernel append file to further add metadata for
  3524. all BSPs or specific BSPs.
  3525. The metadata you add through this variable includes config fragments
  3526. and features descriptions, which usually includes patches as well as
  3527. config fragments. You typically override the :term:`KERNEL_FEATURES`
  3528. variable for a specific machine. In this way, you can provide
  3529. validated, but optional, sets of kernel configurations and features.
  3530. For example, the following example from the ``linux-yocto-rt_4.12``
  3531. kernel recipe adds "netfilter" and "taskstats" features to all BSPs
  3532. as well as "virtio" configurations to all QEMU machines. The last two
  3533. statements add specific configurations to targeted machine types::
  3534. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  3535. KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
  3536. KERNEL_FEATURES:append:qemuall = " cfg/virtio.scc"
  3537. KERNEL_FEATURES:append:qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  3538. KERNEL_FEATURES:append:qemux86-64 = " cfg/sound.scc"
  3539. :term:`KERNEL_FIT_LINK_NAME`
  3540. The link name of the kernel flattened image tree (FIT) image. This
  3541. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3542. file as follows::
  3543. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3544. The value of the
  3545. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3546. file, has the following value::
  3547. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3548. See the :term:`MACHINE` variable for additional
  3549. information.
  3550. :term:`KERNEL_FIT_NAME`
  3551. The base name of the kernel flattened image tree (FIT) image. This
  3552. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3553. file as follows::
  3554. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3555. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3556. :term:`KERNEL_IMAGE_LINK_NAME`
  3557. The link name for the kernel image. This variable is set in the
  3558. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3559. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3560. The value of
  3561. the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3562. file, has the following value::
  3563. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3564. See the :term:`MACHINE` variable for additional
  3565. information.
  3566. :term:`KERNEL_IMAGE_MAXSIZE`
  3567. Specifies the maximum size of the kernel image file in kilobytes. If
  3568. :term:`KERNEL_IMAGE_MAXSIZE` is set, the size of the kernel image file is
  3569. checked against the set value during the
  3570. :ref:`ref-tasks-sizecheck` task. The task fails if
  3571. the kernel image file is larger than the setting.
  3572. :term:`KERNEL_IMAGE_MAXSIZE` is useful for target devices that have a
  3573. limited amount of space in which the kernel image must be stored.
  3574. By default, this variable is not set, which means the size of the
  3575. kernel image is not checked.
  3576. :term:`KERNEL_IMAGE_NAME`
  3577. The base name of the kernel image. This variable is set in the
  3578. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3579. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3580. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3581. :term:`KERNEL_IMAGETYPE`
  3582. The type of kernel to build for a device, usually set by the machine
  3583. configuration files and defaults to "zImage". This variable is used
  3584. when building the kernel and is passed to ``make`` as the target to
  3585. build.
  3586. To build additional kernel image types, use :term:`KERNEL_IMAGETYPES`.
  3587. :term:`KERNEL_IMAGETYPES`
  3588. Lists additional types of kernel images to build for a device in addition
  3589. to image type specified in :term:`KERNEL_IMAGETYPE`. Usually set by the
  3590. machine configuration files.
  3591. :term:`KERNEL_MODULE_AUTOLOAD`
  3592. Lists kernel modules that need to be auto-loaded during boot.
  3593. .. note::
  3594. This variable replaces the deprecated :term:`module_autoload`
  3595. variable.
  3596. You can use the :term:`KERNEL_MODULE_AUTOLOAD` variable anywhere that it
  3597. can be recognized by the kernel recipe or by an out-of-tree kernel
  3598. module recipe (e.g. a machine configuration file, a distribution
  3599. configuration file, an append file for the recipe, or the recipe
  3600. itself).
  3601. Specify it as follows::
  3602. KERNEL_MODULE_AUTOLOAD += "module_name1 module_name2 module_name3"
  3603. Including :term:`KERNEL_MODULE_AUTOLOAD` causes the OpenEmbedded build
  3604. system to populate the ``/etc/modules-load.d/modname.conf`` file with
  3605. the list of modules to be auto-loaded on boot. The modules appear
  3606. one-per-line in the file. Here is an example of the most common use
  3607. case::
  3608. KERNEL_MODULE_AUTOLOAD += "module_name"
  3609. For information on how to populate the ``modname.conf`` file with
  3610. ``modprobe.d`` syntax lines, see the :term:`KERNEL_MODULE_PROBECONF` variable.
  3611. :term:`KERNEL_MODULE_PROBECONF`
  3612. Provides a list of modules for which the OpenEmbedded build system
  3613. expects to find ``module_conf_``\ modname values that specify
  3614. configuration for each of the modules. For information on how to
  3615. provide those module configurations, see the
  3616. :term:`module_conf_* <module_conf>` variable.
  3617. :term:`KERNEL_PACKAGE_NAME`
  3618. Specifies the base name of the kernel packages, such as "kernel"
  3619. in the kernel packages such as "kernel-modules", "kernel-image" and
  3620. "kernel-dbg".
  3621. The default value for this variable is set to "kernel" by the
  3622. :ref:`ref-classes-kernel` class.
  3623. :term:`KERNEL_PATH`
  3624. The location of the kernel sources. This variable is set to the value
  3625. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  3626. class. For information on how this variable is used, see the
  3627. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3628. section in the Yocto Project Linux Kernel Development Manual.
  3629. To help maximize compatibility with out-of-tree drivers used to build
  3630. modules, the OpenEmbedded build system also recognizes and uses the
  3631. :term:`KERNEL_SRC` variable, which is identical to
  3632. the :term:`KERNEL_PATH` variable. Both variables are common variables
  3633. used by external Makefiles to point to the kernel source directory.
  3634. :term:`KERNEL_SRC`
  3635. The location of the kernel sources. This variable is set to the value
  3636. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  3637. class. For information on how this variable is used, see the
  3638. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3639. section in the Yocto Project Linux Kernel Development Manual.
  3640. To help maximize compatibility with out-of-tree drivers used to build
  3641. modules, the OpenEmbedded build system also recognizes and uses the
  3642. :term:`KERNEL_PATH` variable, which is identical
  3643. to the :term:`KERNEL_SRC` variable. Both variables are common variables
  3644. used by external Makefiles to point to the kernel source directory.
  3645. :term:`KERNEL_VERSION`
  3646. Specifies the version of the kernel as extracted from ``version.h``
  3647. or ``utsrelease.h`` within the kernel sources. Effects of setting
  3648. this variable do not take effect until the kernel has been
  3649. configured. Consequently, attempting to refer to this variable in
  3650. contexts prior to configuration will not work.
  3651. :term:`KERNELDEPMODDEPEND`
  3652. Specifies whether the data referenced through
  3653. :term:`PKGDATA_DIR` is needed or not.
  3654. :term:`KERNELDEPMODDEPEND` does not control whether or not that data
  3655. exists, but simply whether or not it is used. If you do not need to
  3656. use the data, set the :term:`KERNELDEPMODDEPEND` variable in your
  3657. :term:`Initramfs` recipe. Setting the variable there when the data is not
  3658. needed avoids a potential dependency loop.
  3659. :term:`KFEATURE_DESCRIPTION`
  3660. Provides a short description of a configuration fragment. You use
  3661. this variable in the ``.scc`` file that describes a configuration
  3662. fragment file. Here is the variable used in a file named ``smp.scc``
  3663. to describe SMP being enabled::
  3664. define KFEATURE_DESCRIPTION "Enable SMP"
  3665. :term:`KMACHINE`
  3666. The machine as known by the kernel. Sometimes the machine name used
  3667. by the kernel does not match the machine name used by the
  3668. OpenEmbedded build system. For example, the machine name that the
  3669. OpenEmbedded build system understands as ``core2-32-intel-common``
  3670. goes by a different name in the Linux Yocto kernel. The kernel
  3671. understands that machine as ``intel-core2-32``. For cases like these,
  3672. the :term:`KMACHINE` variable maps the kernel machine name to the
  3673. OpenEmbedded build system machine name.
  3674. These mappings between different names occur in the Yocto Linux
  3675. Kernel's ``meta`` branch. As an example take a look in the
  3676. ``common/recipes-kernel/linux/linux-yocto_3.19.bbappend`` file::
  3677. LINUX_VERSION:core2-32-intel-common = "3.19.0"
  3678. COMPATIBLE_MACHINE:core2-32-intel-common = "${MACHINE}"
  3679. SRCREV_meta:core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  3680. SRCREV_machine:core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  3681. KMACHINE:core2-32-intel-common = "intel-core2-32"
  3682. KBRANCH:core2-32-intel-common = "standard/base"
  3683. KERNEL_FEATURES:append:core2-32-intel-common = " ${KERNEL_FEATURES_INTEL_COMMON}"
  3684. The :term:`KMACHINE` statement says
  3685. that the kernel understands the machine name as "intel-core2-32".
  3686. However, the OpenEmbedded build system understands the machine as
  3687. "core2-32-intel-common".
  3688. :term:`KTYPE`
  3689. Defines the kernel type to be used in assembling the configuration.
  3690. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3691. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3692. section in the
  3693. Yocto Project Linux Kernel Development Manual for more information on
  3694. kernel types.
  3695. You define the :term:`KTYPE` variable in the
  3696. :ref:`kernel-dev/advanced:bsp descriptions`. The
  3697. value you use must match the value used for the
  3698. :term:`LINUX_KERNEL_TYPE` value used by the
  3699. kernel recipe.
  3700. :term:`LABELS`
  3701. Provides a list of targets for automatic configuration.
  3702. See the :ref:`ref-classes-grub-efi` class for more
  3703. information on how this variable is used.
  3704. :term:`LAYERDEPENDS`
  3705. Lists the layers, separated by spaces, on which this recipe depends.
  3706. Optionally, you can specify a specific layer version for a dependency
  3707. by adding it to the end of the layer name. Here is an example::
  3708. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  3709. In this previous example,
  3710. version 3 of "anotherlayer" is compared against
  3711. :term:`LAYERVERSION`\ ``_anotherlayer``.
  3712. An error is produced if any dependency is missing or the version
  3713. numbers (if specified) do not match exactly. This variable is used in
  3714. the ``conf/layer.conf`` file and must be suffixed with the name of
  3715. the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
  3716. :term:`LAYERDIR`
  3717. When used inside the ``layer.conf`` configuration file, this variable
  3718. provides the path of the current layer. This variable is not
  3719. available outside of ``layer.conf`` and references are expanded
  3720. immediately when parsing of the file completes.
  3721. :term:`LAYERDIR_RE`
  3722. See :term:`bitbake:LAYERDIR_RE` in the BitBake manual.
  3723. :term:`LAYERRECOMMENDS`
  3724. Lists the layers, separated by spaces, recommended for use with this
  3725. layer.
  3726. Optionally, you can specify a specific layer version for a
  3727. recommendation by adding the version to the end of the layer name.
  3728. Here is an example::
  3729. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  3730. In this previous example, version 3 of "anotherlayer" is compared
  3731. against ``LAYERVERSION_anotherlayer``.
  3732. This variable is used in the ``conf/layer.conf`` file and must be
  3733. suffixed with the name of the specific layer (e.g.
  3734. ``LAYERRECOMMENDS_mylayer``).
  3735. :term:`LAYERSERIES_COMPAT`
  3736. See :term:`bitbake:LAYERSERIES_COMPAT` in the BitBake manual.
  3737. :term:`LAYERVERSION`
  3738. Optionally specifies the version of a layer as a single number. You
  3739. can use this within :term:`LAYERDEPENDS` for
  3740. another layer in order to depend on a specific version of the layer.
  3741. This variable is used in the ``conf/layer.conf`` file and must be
  3742. suffixed with the name of the specific layer (e.g.
  3743. ``LAYERVERSION_mylayer``).
  3744. :term:`LD`
  3745. The minimal command and arguments used to run the linker.
  3746. :term:`LDFLAGS`
  3747. Specifies the flags to pass to the linker. This variable is exported
  3748. to an environment variable and thus made visible to the software
  3749. being built during the compilation step.
  3750. Default initialization for :term:`LDFLAGS` varies depending on what is
  3751. being built:
  3752. - :term:`TARGET_LDFLAGS` when building for the
  3753. target
  3754. - :term:`BUILD_LDFLAGS` when building for the
  3755. build host (i.e. ``-native``)
  3756. - :term:`BUILDSDK_LDFLAGS` when building for
  3757. an SDK (i.e. ``nativesdk-``)
  3758. :term:`LEAD_SONAME`
  3759. Specifies the lead (or primary) compiled library file (i.e. ``.so``)
  3760. that the :ref:`ref-classes-debian` class applies its
  3761. naming policy to given a recipe that packages multiple libraries.
  3762. This variable works in conjunction with the :ref:`ref-classes-debian`
  3763. class.
  3764. :term:`LIC_FILES_CHKSUM`
  3765. Checksums of the license text in the recipe source code.
  3766. This variable tracks changes in license text of the source code
  3767. files. If the license text is changed, it will trigger a build
  3768. failure, which gives the developer an opportunity to review any
  3769. license change.
  3770. This variable must be defined for all recipes (unless
  3771. :term:`LICENSE` is set to "CLOSED").
  3772. For more information, see the ":ref:`dev-manual/licenses:tracking license changes`"
  3773. section in the Yocto Project Development Tasks Manual.
  3774. :term:`LICENSE`
  3775. The list of source licenses for the recipe. Follow these rules:
  3776. - Do not use spaces within individual license names.
  3777. - Separate license names using \| (pipe) when there is a choice
  3778. between licenses.
  3779. - Separate license names using & (ampersand) when there are
  3780. multiple licenses for different parts of the source.
  3781. - You can use spaces between license names.
  3782. - For standard licenses, use the names of the files in
  3783. ``meta/files/common-licenses/`` or the
  3784. :term:`SPDXLICENSEMAP` flag names defined in
  3785. ``meta/conf/licenses.conf``.
  3786. Here are some examples::
  3787. LICENSE = "LGPL-2.1-only | GPL-3.0-only"
  3788. LICENSE = "MPL-1.0 & LGPL-2.1-only"
  3789. LICENSE = "GPL-2.0-or-later"
  3790. The first example is from the
  3791. recipes for Qt, which the user may choose to distribute under either
  3792. the LGPL version 2.1 or GPL version 3. The second example is from
  3793. Cairo where two licenses cover different parts of the source code.
  3794. The final example is from ``sysstat``, which presents a single
  3795. license.
  3796. You can also specify licenses on a per-package basis to handle
  3797. situations where components of the output have different licenses.
  3798. For example, a piece of software whose code is licensed under GPLv2
  3799. but has accompanying documentation licensed under the GNU Free
  3800. Documentation License 1.2 could be specified as follows::
  3801. LICENSE = "GFDL-1.2 & GPL-2.0-only"
  3802. LICENSE:${PN} = "GPL-2.0.only"
  3803. LICENSE:${PN}-doc = "GFDL-1.2"
  3804. :term:`LICENSE_CREATE_PACKAGE`
  3805. Setting :term:`LICENSE_CREATE_PACKAGE` to "1" causes the OpenEmbedded
  3806. build system to create an extra package (i.e.
  3807. ``${``\ :term:`PN`\ ``}-lic``) for each recipe and to add
  3808. those packages to the
  3809. :term:`RRECOMMENDS`\ ``:${PN}``.
  3810. The ``${PN}-lic`` package installs a directory in
  3811. ``/usr/share/licenses`` named ``${PN}``, which is the recipe's base
  3812. name, and installs files in that directory that contain license and
  3813. copyright information (i.e. copies of the appropriate license files
  3814. from ``meta/common-licenses`` that match the licenses specified in
  3815. the :term:`LICENSE` variable of the recipe metadata
  3816. and copies of files marked in
  3817. :term:`LIC_FILES_CHKSUM` as containing
  3818. license text).
  3819. For related information on providing license text, see the
  3820. :term:`COPY_LIC_DIRS` variable, the
  3821. :term:`COPY_LIC_MANIFEST` variable, and the
  3822. ":ref:`dev-manual/licenses:providing license text`"
  3823. section in the Yocto Project Development Tasks Manual.
  3824. :term:`LICENSE_FLAGS`
  3825. Specifies additional flags for a recipe you must allow through
  3826. :term:`LICENSE_FLAGS_ACCEPTED` in
  3827. order for the recipe to be built. When providing multiple flags,
  3828. separate them with spaces.
  3829. This value is independent of :term:`LICENSE` and is
  3830. typically used to mark recipes that might require additional licenses
  3831. in order to be used in a commercial product. For more information,
  3832. see the
  3833. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3834. section in the Yocto Project Development Tasks Manual.
  3835. :term:`LICENSE_FLAGS_ACCEPTED`
  3836. Lists license flags that when specified in
  3837. :term:`LICENSE_FLAGS` within a recipe should not
  3838. prevent that recipe from being built. For more information, see the
  3839. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3840. section in the Yocto Project Development Tasks Manual.
  3841. :term:`LICENSE_PATH`
  3842. Path to additional licenses used during the build. By default, the
  3843. OpenEmbedded build system uses :term:`COMMON_LICENSE_DIR` to define the
  3844. directory that holds common license text used during the build. The
  3845. :term:`LICENSE_PATH` variable allows you to extend that location to other
  3846. areas that have additional licenses::
  3847. LICENSE_PATH += "path-to-additional-common-licenses"
  3848. :term:`LINUX_KERNEL_TYPE`
  3849. Defines the kernel type to be used in assembling the configuration.
  3850. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3851. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3852. section in the
  3853. Yocto Project Linux Kernel Development Manual for more information on
  3854. kernel types.
  3855. If you do not specify a :term:`LINUX_KERNEL_TYPE`, it defaults to
  3856. "standard". Together with :term:`KMACHINE`, the
  3857. :term:`LINUX_KERNEL_TYPE` variable defines the search arguments used by
  3858. the kernel tools to find the appropriate description within the
  3859. kernel :term:`Metadata` with which to build out the sources
  3860. and configuration.
  3861. :term:`LINUX_VERSION`
  3862. The Linux version from ``kernel.org`` on which the Linux kernel image
  3863. being built using the OpenEmbedded build system is based. You define
  3864. this variable in the kernel recipe. For example, the
  3865. ``linux-yocto-3.4.bb`` kernel recipe found in
  3866. ``meta/recipes-kernel/linux`` defines the variables as follows::
  3867. LINUX_VERSION ?= "3.4.24"
  3868. The :term:`LINUX_VERSION` variable is used to define :term:`PV`
  3869. for the recipe::
  3870. PV = "${LINUX_VERSION}+git${SRCPV}"
  3871. :term:`LINUX_VERSION_EXTENSION`
  3872. A string extension compiled into the version string of the Linux
  3873. kernel built with the OpenEmbedded build system. You define this
  3874. variable in the kernel recipe. For example, the linux-yocto kernel
  3875. recipes all define the variable as follows::
  3876. LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
  3877. Defining this variable essentially sets the Linux kernel
  3878. configuration item ``CONFIG_LOCALVERSION``, which is visible through
  3879. the ``uname`` command. Here is an example that shows the extension
  3880. assuming it was set as previously shown::
  3881. $ uname -r
  3882. 3.7.0-rc8-custom
  3883. :term:`LOG_DIR`
  3884. Specifies the directory to which the OpenEmbedded build system writes
  3885. overall log files. The default directory is ``${TMPDIR}/log``.
  3886. For the directory containing logs specific to each task, see the
  3887. :term:`T` variable.
  3888. :term:`MACHINE`
  3889. Specifies the target device for which the image is built. You define
  3890. :term:`MACHINE` in the ``local.conf`` file found in the
  3891. :term:`Build Directory`. By default, :term:`MACHINE` is set to
  3892. "qemux86", which is an x86-based architecture machine to be emulated
  3893. using QEMU::
  3894. MACHINE ?= "qemux86"
  3895. The variable corresponds to a machine configuration file of the same
  3896. name, through which machine-specific configurations are set. Thus,
  3897. when :term:`MACHINE` is set to "qemux86", the corresponding
  3898. ``qemux86.conf`` machine configuration file can be found in
  3899. the :term:`Source Directory` in
  3900. ``meta/conf/machine``.
  3901. The list of machines supported by the Yocto Project as shipped
  3902. include the following::
  3903. MACHINE ?= "qemuarm"
  3904. MACHINE ?= "qemuarm64"
  3905. MACHINE ?= "qemumips"
  3906. MACHINE ?= "qemumips64"
  3907. MACHINE ?= "qemuppc"
  3908. MACHINE ?= "qemux86"
  3909. MACHINE ?= "qemux86-64"
  3910. MACHINE ?= "genericx86"
  3911. MACHINE ?= "genericx86-64"
  3912. MACHINE ?= "beaglebone"
  3913. MACHINE ?= "edgerouter"
  3914. The last five are Yocto Project reference hardware
  3915. boards, which are provided in the ``meta-yocto-bsp`` layer.
  3916. .. note::
  3917. Adding additional Board Support Package (BSP) layers to your
  3918. configuration adds new possible settings for :term:`MACHINE`.
  3919. :term:`MACHINE_ARCH`
  3920. Specifies the name of the machine-specific architecture. This
  3921. variable is set automatically from :term:`MACHINE` or
  3922. :term:`TUNE_PKGARCH`. You should not hand-edit
  3923. the :term:`MACHINE_ARCH` variable.
  3924. :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  3925. A list of required machine-specific packages to install as part of
  3926. the image being built. The build process depends on these packages
  3927. being present. Furthermore, because this is a "machine-essential"
  3928. variable, the list of packages are essential for the machine to boot.
  3929. The impact of this variable affects images based on
  3930. ``packagegroup-core-boot``, including the ``core-image-minimal``
  3931. image.
  3932. This variable is similar to the
  3933. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS` variable with the exception
  3934. that the image being built has a build dependency on the variable's
  3935. list of packages. In other words, the image will not build if a file
  3936. in this list is not found.
  3937. As an example, suppose the machine for which you are building
  3938. requires ``example-init`` to be run during boot to initialize the
  3939. hardware. In this case, you would use the following in the machine's
  3940. ``.conf`` configuration file::
  3941. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  3942. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  3943. A list of recommended machine-specific packages to install as part of
  3944. the image being built. The build process does not depend on these
  3945. packages being present. However, because this is a
  3946. "machine-essential" variable, the list of packages are essential for
  3947. the machine to boot. The impact of this variable affects images based
  3948. on ``packagegroup-core-boot``, including the ``core-image-minimal``
  3949. image.
  3950. This variable is similar to the :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  3951. variable with the exception that the image being built does not have
  3952. a build dependency on the variable's list of packages. In other
  3953. words, the image will still build if a package in this list is not
  3954. found. Typically, this variable is used to handle essential kernel
  3955. modules, whose functionality may be selected to be built into the
  3956. kernel rather than as a module, in which case a package will not be
  3957. produced.
  3958. Consider an example where you have a custom kernel where a specific
  3959. touchscreen driver is required for the machine to be usable. However,
  3960. the driver can be built as a module or into the kernel depending on
  3961. the kernel configuration. If the driver is built as a module, you
  3962. want it to be installed. But, when the driver is built into the
  3963. kernel, you still want the build to succeed. This variable sets up a
  3964. "recommends" relationship so that in the latter case, the build will
  3965. not fail due to the missing package. To accomplish this, assuming the
  3966. package for the module was called ``kernel-module-ab123``, you would
  3967. use the following in the machine's ``.conf`` configuration file::
  3968. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  3969. .. note::
  3970. In this example, the ``kernel-module-ab123`` recipe needs to
  3971. explicitly set its :term:`PACKAGES` variable to ensure that BitBake
  3972. does not use the kernel recipe's :term:`PACKAGES_DYNAMIC` variable to
  3973. satisfy the dependency.
  3974. Some examples of these machine essentials are flash, screen,
  3975. keyboard, mouse, or touchscreen drivers (depending on the machine).
  3976. :term:`MACHINE_EXTRA_RDEPENDS`
  3977. A list of machine-specific packages to install as part of the image
  3978. being built that are not essential for the machine to boot. However,
  3979. the build process for more fully-featured images depends on the
  3980. packages being present.
  3981. This variable affects all images based on ``packagegroup-base``,
  3982. which does not include the ``core-image-minimal`` or
  3983. ``core-image-full-cmdline`` images.
  3984. The variable is similar to the :term:`MACHINE_EXTRA_RRECOMMENDS` variable
  3985. with the exception that the image being built has a build dependency
  3986. on the variable's list of packages. In other words, the image will
  3987. not build if a file in this list is not found.
  3988. An example is a machine that has WiFi capability but is not essential
  3989. for the machine to boot the image. However, if you are building a
  3990. more fully-featured image, you want to enable the WiFi. The package
  3991. containing the firmware for the WiFi hardware is always expected to
  3992. exist, so it is acceptable for the build process to depend upon
  3993. finding the package. In this case, assuming the package for the
  3994. firmware was called ``wifidriver-firmware``, you would use the
  3995. following in the ``.conf`` file for the machine::
  3996. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  3997. :term:`MACHINE_EXTRA_RRECOMMENDS`
  3998. A list of machine-specific packages to install as part of the image
  3999. being built that are not essential for booting the machine. The image
  4000. being built has no build dependency on this list of packages.
  4001. This variable affects only images based on ``packagegroup-base``,
  4002. which does not include the ``core-image-minimal`` or
  4003. ``core-image-full-cmdline`` images.
  4004. This variable is similar to the :term:`MACHINE_EXTRA_RDEPENDS` variable
  4005. with the exception that the image being built does not have a build
  4006. dependency on the variable's list of packages. In other words, the
  4007. image will build if a file in this list is not found.
  4008. An example is a machine that has WiFi capability but is not essential
  4009. For the machine to boot the image. However, if you are building a
  4010. more fully-featured image, you want to enable WiFi. In this case, the
  4011. package containing the WiFi kernel module will not be produced if the
  4012. WiFi driver is built into the kernel, in which case you still want
  4013. the build to succeed instead of failing as a result of the package
  4014. not being found. To accomplish this, assuming the package for the
  4015. module was called ``kernel-module-examplewifi``, you would use the
  4016. following in the ``.conf`` file for the machine::
  4017. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  4018. :term:`MACHINE_FEATURES`
  4019. Specifies the list of hardware features the
  4020. :term:`MACHINE` is capable of supporting. For related
  4021. information on enabling features, see the
  4022. :term:`DISTRO_FEATURES`,
  4023. :term:`COMBINED_FEATURES`, and
  4024. :term:`IMAGE_FEATURES` variables.
  4025. For a list of hardware features supported by the Yocto Project as
  4026. shipped, see the ":ref:`ref-features-machine`" section.
  4027. :term:`MACHINE_FEATURES_BACKFILL`
  4028. A list of space-separated features to be added to
  4029. :term:`MACHINE_FEATURES` if not also present in
  4030. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`.
  4031. This variable is set in the ``meta/conf/bitbake.conf`` file. It is not
  4032. intended to be user-configurable. It is best to just reference the
  4033. variable to see which machine features are being
  4034. :ref:`backfilled <ref-features-backfill>` for all machine configurations.
  4035. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`
  4036. A list of space-separated features from :term:`MACHINE_FEATURES_BACKFILL`
  4037. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  4038. to :term:`MACHINE_FEATURES`) during the build.
  4039. This corresponds to an opt-out mechanism. When new default machine
  4040. features are introduced, machine definition maintainers can review
  4041. (`consider`) them and decide to exclude them from the
  4042. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  4043. combination of :term:`MACHINE_FEATURES_BACKFILL` and
  4044. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  4045. add new default features without breaking existing machine definitions.
  4046. :term:`MACHINEOVERRIDES`
  4047. A colon-separated list of overrides that apply to the current
  4048. machine. By default, this list includes the value of
  4049. :term:`MACHINE`.
  4050. You can extend :term:`MACHINEOVERRIDES` to add extra overrides that
  4051. should apply to a machine. For example, all machines emulated in QEMU
  4052. (e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
  4053. ``meta/conf/machine/include/qemu.inc`` that prepends the following
  4054. override to :term:`MACHINEOVERRIDES`::
  4055. MACHINEOVERRIDES =. "qemuall:"
  4056. This
  4057. override allows variables to be overridden for all machines emulated
  4058. in QEMU, like in the following example from the ``connman-conf``
  4059. recipe::
  4060. SRC_URI:append:qemuall = " file://wired.config \
  4061. file://wired-setup \
  4062. "
  4063. The underlying mechanism behind
  4064. :term:`MACHINEOVERRIDES` is simply that it is included in the default
  4065. value of :term:`OVERRIDES`.
  4066. :term:`MAINTAINER`
  4067. The email address of the distribution maintainer.
  4068. :term:`MESON_BUILDTYPE`
  4069. Value of the Meson ``--buildtype`` argument used by the
  4070. :ref:`ref-classes-meson` class. It defaults to ``debug`` if
  4071. :term:`DEBUG_BUILD` is set to "1", and ``plain`` otherwise.
  4072. See `Meson build options <https://mesonbuild.com/Builtin-options.html>`__
  4073. for the values you could set in a recipe. Values such as ``plain``,
  4074. ``debug``, ``debugoptimized``, ``release`` and ``minsize`` allow
  4075. you to specify the inclusion of debugging symbols and the compiler
  4076. optimizations (none, performance or size).
  4077. :term:`METADATA_BRANCH`
  4078. The branch currently checked out for the OpenEmbedded-Core layer (path
  4079. determined by :term:`COREBASE`).
  4080. :term:`METADATA_REVISION`
  4081. The revision currently checked out for the OpenEmbedded-Core layer (path
  4082. determined by :term:`COREBASE`).
  4083. :term:`MIME_XDG_PACKAGES`
  4084. The current implementation of the :ref:`ref-classes-mime-xdg`
  4085. class cannot detect ``.desktop`` files installed through absolute
  4086. symbolic links. Use this setting to make the class create post-install
  4087. and post-remove scripts for these packages anyway, to invoke the
  4088. ``update-destop-database`` command.
  4089. :term:`MIRRORS`
  4090. Specifies additional paths from which the OpenEmbedded build system
  4091. gets source code. When the build system searches for source code, it
  4092. first tries the local download directory. If that location fails, the
  4093. build system tries locations defined by
  4094. :term:`PREMIRRORS`, the upstream source, and then
  4095. locations specified by :term:`MIRRORS` in that order.
  4096. Assuming your distribution (:term:`DISTRO`) is "poky",
  4097. the default value for :term:`MIRRORS` is defined in the
  4098. ``conf/distro/poky.conf`` file in the ``meta-poky`` Git repository.
  4099. :term:`MLPREFIX`
  4100. Specifies a prefix has been added to :term:`PN` to create a
  4101. special version of a recipe or package (i.e. a Multilib version). The
  4102. variable is used in places where the prefix needs to be added to or
  4103. removed from a name (e.g. the :term:`BPN` variable).
  4104. :term:`MLPREFIX` gets set when a prefix has been added to :term:`PN`.
  4105. .. note::
  4106. The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation
  4107. is historical and comes from a time when ":ref:`ref-classes-nativesdk`"
  4108. was a suffix rather than a prefix on the recipe name. When
  4109. ":ref:`ref-classes-nativesdk`" was turned into a prefix, it made sense
  4110. to set :term:`MLPREFIX` for it as well.
  4111. To help understand when :term:`MLPREFIX` might be needed, consider when
  4112. :term:`BBCLASSEXTEND` is used to provide a :ref:`ref-classes-nativesdk`
  4113. version of a recipe in addition to the target version. If that recipe
  4114. declares build-time dependencies on tasks in other recipes by using
  4115. :term:`DEPENDS`, then a dependency on "foo" will automatically get
  4116. rewritten to a dependency on "nativesdk-foo". However, dependencies like
  4117. the following will not get rewritten automatically::
  4118. do_foo[depends] += "recipe:do_foo"
  4119. If you want such a dependency to also get transformed, you can do the
  4120. following::
  4121. do_foo[depends] += "${MLPREFIX}recipe:do_foo"
  4122. :term:`module_autoload`
  4123. This variable has been replaced by the :term:`KERNEL_MODULE_AUTOLOAD`
  4124. variable. You should replace all occurrences of :term:`module_autoload`
  4125. with additions to :term:`KERNEL_MODULE_AUTOLOAD`, for example::
  4126. module_autoload_rfcomm = "rfcomm"
  4127. should now be replaced with::
  4128. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  4129. See the :term:`KERNEL_MODULE_AUTOLOAD` variable for more information.
  4130. :term:`module_conf`
  4131. Specifies `modprobe.d <https://linux.die.net/man/5/modprobe.d>`__
  4132. syntax lines for inclusion in the ``/etc/modprobe.d/modname.conf``
  4133. file.
  4134. You can use this variable anywhere that it can be recognized by the
  4135. kernel recipe or out-of-tree kernel module recipe (e.g. a machine
  4136. configuration file, a distribution configuration file, an append file
  4137. for the recipe, or the recipe itself). If you use this variable, you
  4138. must also be sure to list the module name in the
  4139. :term:`KERNEL_MODULE_PROBECONF`
  4140. variable.
  4141. Here is the general syntax::
  4142. module_conf_module_name = "modprobe.d-syntax"
  4143. You must use the kernel module name override.
  4144. Run ``man modprobe.d`` in the shell to find out more information on
  4145. the exact syntax you want to provide with :term:`module_conf`.
  4146. Including :term:`module_conf` causes the OpenEmbedded build system to
  4147. populate the ``/etc/modprobe.d/modname.conf`` file with
  4148. ``modprobe.d`` syntax lines. Here is an example that adds the options
  4149. ``arg1`` and ``arg2`` to a module named ``mymodule``::
  4150. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  4151. For information on how to specify kernel modules to auto-load on
  4152. boot, see the :term:`KERNEL_MODULE_AUTOLOAD` variable.
  4153. :term:`MODULE_TARBALL_DEPLOY`
  4154. Controls creation of the ``modules-*.tgz`` file. Set this variable to
  4155. "0" to disable creation of this file, which contains all of the
  4156. kernel modules resulting from a kernel build.
  4157. :term:`MODULE_TARBALL_LINK_NAME`
  4158. The link name of the kernel module tarball. This variable is set in
  4159. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4160. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4161. The value
  4162. of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the
  4163. same file, has the following value::
  4164. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4165. See the :term:`MACHINE` variable for additional information.
  4166. :term:`MODULE_TARBALL_NAME`
  4167. The base name of the kernel module tarball. This variable is set in
  4168. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4169. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4170. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4171. :term:`MOUNT_BASE`
  4172. On non-systemd systems (where ``udev-extraconf`` is being used),
  4173. specifies the base directory for auto-mounting filesystems. The
  4174. default value is "/run/media".
  4175. :term:`MULTIMACH_TARGET_SYS`
  4176. Uniquely identifies the type of the target system for which packages
  4177. are being built. This variable allows output for different types of
  4178. target systems to be put into different subdirectories of the same
  4179. output directory.
  4180. The default value of this variable is::
  4181. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  4182. Some classes (e.g. :ref:`ref-classes-cross-canadian`) modify the
  4183. :term:`MULTIMACH_TARGET_SYS` value.
  4184. See the :term:`STAMP` variable for an example. See the
  4185. :term:`STAGING_DIR_TARGET` variable for more information.
  4186. :term:`NATIVELSBSTRING`
  4187. A string identifying the host distribution. Strings consist of the
  4188. host distributor ID followed by the release, as reported by the
  4189. ``lsb_release`` tool or as read from ``/etc/lsb-release``. For
  4190. example, when running a build on Ubuntu 12.10, the value is
  4191. "Ubuntu-12.10". If this information is unable to be determined, the
  4192. value resolves to "Unknown".
  4193. This variable is used by default to isolate native shared state
  4194. packages for different distributions (e.g. to avoid problems with
  4195. ``glibc`` version incompatibilities). Additionally, the variable is
  4196. checked against
  4197. :term:`SANITY_TESTED_DISTROS` if that
  4198. variable is set.
  4199. :term:`NM`
  4200. The minimal command and arguments to run ``nm``.
  4201. :term:`NO_GENERIC_LICENSE`
  4202. Avoids QA errors when you use a non-common, non-CLOSED license in a
  4203. recipe. There are packages, such as the linux-firmware package, with many
  4204. licenses that are not in any way common. Also, new licenses are added
  4205. occasionally to avoid introducing a lot of common license files,
  4206. which are only applicable to a specific package.
  4207. :term:`NO_GENERIC_LICENSE` is used to allow copying a license that does
  4208. not exist in common licenses.
  4209. The following example shows how to add :term:`NO_GENERIC_LICENSE` to a
  4210. recipe::
  4211. NO_GENERIC_LICENSE[license_name] = "license_file_in_fetched_source"
  4212. Here is an example that
  4213. uses the ``LICENSE.Abilis.txt`` file as the license from the fetched
  4214. source::
  4215. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  4216. :term:`NO_RECOMMENDATIONS`
  4217. Prevents installation of all "recommended-only" packages.
  4218. Recommended-only packages are packages installed only through the
  4219. :term:`RRECOMMENDS` variable). Setting the
  4220. :term:`NO_RECOMMENDATIONS` variable to "1" turns this feature on::
  4221. NO_RECOMMENDATIONS = "1"
  4222. You can set this variable globally in your ``local.conf`` file or you
  4223. can attach it to a specific image recipe by using the recipe name
  4224. override::
  4225. NO_RECOMMENDATIONS:pn-target_image = "1"
  4226. It is important to realize that if you choose to not install packages
  4227. using this variable and some other packages are dependent on them
  4228. (i.e. listed in a recipe's :term:`RDEPENDS`
  4229. variable), the OpenEmbedded build system ignores your request and
  4230. will install the packages to avoid dependency errors.
  4231. .. note::
  4232. Some recommended packages might be required for certain system
  4233. functionality, such as kernel modules. It is up to you to add
  4234. packages with the :term:`IMAGE_INSTALL` variable.
  4235. This variable is only supported when using the IPK and RPM
  4236. packaging backends. DEB is not supported.
  4237. See the :term:`BAD_RECOMMENDATIONS` and
  4238. the :term:`PACKAGE_EXCLUDE` variables for
  4239. related information.
  4240. :term:`NOAUTOPACKAGEDEBUG`
  4241. Disables auto package from splitting ``.debug`` files. If a recipe
  4242. requires ``FILES:${PN}-dbg`` to be set manually, the
  4243. :term:`NOAUTOPACKAGEDEBUG` can be defined allowing you to define the
  4244. content of the debug package. For example::
  4245. NOAUTOPACKAGEDEBUG = "1"
  4246. FILES:${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  4247. FILES:${PN}-dbg = "/usr/src/debug/"
  4248. FILES:${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  4249. :term:`NON_MULTILIB_RECIPES`
  4250. A list of recipes that should not be built for multilib. OE-Core's
  4251. ``multilib.conf`` file defines a reasonable starting point for this
  4252. list with::
  4253. NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"
  4254. :term:`OBJCOPY`
  4255. The minimal command and arguments to run ``objcopy``.
  4256. :term:`OBJDUMP`
  4257. The minimal command and arguments to run ``objdump``.
  4258. :term:`OE_BINCONFIG_EXTRA_MANGLE`
  4259. When inheriting the :ref:`ref-classes-binconfig` class,
  4260. this variable specifies additional arguments passed to the "sed"
  4261. command. The sed command alters any paths in configuration scripts
  4262. that have been set up during compilation. Inheriting this class
  4263. results in all paths in these scripts being changed to point into the
  4264. ``sysroots/`` directory so that all builds that use the script will
  4265. use the correct directories for the cross compiling layout.
  4266. See the ``meta/classes-recipe/binconfig.bbclass`` in the
  4267. :term:`Source Directory` for details on how this class
  4268. applies these additional sed command arguments.
  4269. :term:`OECMAKE_GENERATOR`
  4270. A variable for the :ref:`ref-classes-cmake` class, allowing to choose
  4271. which back-end will be generated by CMake to build an application.
  4272. By default, this variable is set to ``Ninja``, which is faster than GNU
  4273. make, but if building is broken with Ninja, a recipe can use this
  4274. variable to use GNU make instead::
  4275. OECMAKE_GENERATOR = "Unix Makefiles"
  4276. :term:`OE_IMPORTS`
  4277. An internal variable used to tell the OpenEmbedded build system what
  4278. Python modules to import for every Python function run by the system.
  4279. .. note::
  4280. Do not set this variable. It is for internal use only.
  4281. :term:`OE_INIT_ENV_SCRIPT`
  4282. The name of the build environment setup script for the purposes of
  4283. setting up the environment within the extensible SDK. The default
  4284. value is "oe-init-build-env".
  4285. If you use a custom script to set up your build environment, set the
  4286. :term:`OE_INIT_ENV_SCRIPT` variable to its name.
  4287. :term:`OE_TERMINAL`
  4288. Controls how the OpenEmbedded build system spawns interactive
  4289. terminals on the host development system (e.g. using the BitBake
  4290. command with the ``-c devshell`` command-line option). For more
  4291. information, see the ":ref:`dev-manual/development-shell:using a development shell`" section in
  4292. the Yocto Project Development Tasks Manual.
  4293. You can use the following values for the :term:`OE_TERMINAL` variable:
  4294. - auto
  4295. - gnome
  4296. - xfce
  4297. - rxvt
  4298. - screen
  4299. - konsole
  4300. - none
  4301. :term:`OEROOT`
  4302. The directory from which the top-level build environment setup script
  4303. is sourced. The Yocto Project provides a top-level build environment
  4304. setup script: :ref:`structure-core-script`. When you run this
  4305. script, the :term:`OEROOT` variable resolves to the directory that
  4306. contains the script.
  4307. For additional information on how this variable is used, see the
  4308. initialization script.
  4309. :term:`OEQA_REPRODUCIBLE_TEST_TARGET`
  4310. Set build target for build reproducibility testing. By default
  4311. all available recipes are compiled with "bitbake world", see also :term:`EXCLUDE_FROM_WORLD`
  4312. and :doc:`/test-manual/reproducible-builds`.
  4313. :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`
  4314. Set build targets which can be rebuilt using :ref:`shared state <overview-manual/concepts:shared state cache>`
  4315. when running build reproducibility tests. See :doc:`/test-manual/reproducible-builds`.
  4316. :term:`OLDEST_KERNEL`
  4317. Declares the oldest version of the Linux kernel that the produced
  4318. binaries must support. This variable is passed into the build of the
  4319. Embedded GNU C Library (``glibc``).
  4320. The default for this variable comes from the
  4321. ``meta/conf/bitbake.conf`` configuration file. You can override this
  4322. default by setting the variable in a custom distribution
  4323. configuration file.
  4324. :term:`OVERLAYFS_ETC_DEVICE`
  4325. When the :ref:`ref-classes-overlayfs-etc` class is
  4326. inherited, specifies the device to be mounted for the read/write
  4327. layer of ``/etc``. There is no default, so you must set this if you
  4328. wish to enable :ref:`ref-classes-overlayfs-etc`, for
  4329. example, assuming ``/dev/mmcblk0p2`` was the desired device::
  4330. OVERLAYFS_ETC_DEVICE = "/dev/mmcblk0p2"
  4331. :term:`OVERLAYFS_ETC_EXPOSE_LOWER`
  4332. When the :ref:`ref-classes-overlayfs-etc` class is
  4333. inherited, if set to "1" then a read-only access to the original
  4334. ``/etc`` content will be provided as a ``lower/`` subdirectory of
  4335. :term:`OVERLAYFS_ETC_MOUNT_POINT`. The default value is "0".
  4336. :term:`OVERLAYFS_ETC_FSTYPE`
  4337. When the :ref:`ref-classes-overlayfs-etc` class is
  4338. inherited, specifies the file system type for the read/write
  4339. layer of ``/etc``. There is no default, so you must set this if you
  4340. wish to enable :ref:`ref-classes-overlayfs-etc`,
  4341. for example, assuming the file system is ext4::
  4342. OVERLAYFS_ETC_FSTYPE = "ext4"
  4343. :term:`OVERLAYFS_ETC_MOUNT_OPTIONS`
  4344. When the :ref:`ref-classes-overlayfs-etc` class is
  4345. inherited, specifies the mount options for the read-write layer.
  4346. The default value is "defaults".
  4347. :term:`OVERLAYFS_ETC_MOUNT_POINT`
  4348. When the :ref:`ref-classes-overlayfs-etc` class is
  4349. inherited, specifies the parent mount path for the filesystem layers.
  4350. There is no default, so you must set this if you wish to enable
  4351. :ref:`ref-classes-overlayfs-etc`, for example if the desired path is
  4352. "/data"::
  4353. OVERLAYFS_ETC_MOUNT_POINT = "/data"
  4354. :term:`OVERLAYFS_ETC_USE_ORIG_INIT_NAME`
  4355. When the :ref:`ref-classes-overlayfs-etc` class is inherited, controls
  4356. how the generated init will be named. For more information, see the
  4357. :ref:`ref-classes-overlayfs-etc` class documentation. The default value
  4358. is "1".
  4359. :term:`OVERLAYFS_MOUNT_POINT`
  4360. When inheriting the :ref:`ref-classes-overlayfs` class,
  4361. specifies mount point(s) to be used. For example::
  4362. OVERLAYFS_MOUNT_POINT[data] = "/data"
  4363. The assumes you have a ``data.mount`` systemd unit defined elsewhere in
  4364. your BSP (e.g. in ``systemd-machine-units`` recipe) and it is installed
  4365. into the image. For more information see :ref:`ref-classes-overlayfs`.
  4366. .. note::
  4367. Although the :ref:`ref-classes-overlayfs` class is
  4368. inherited by individual recipes, :term:`OVERLAYFS_MOUNT_POINT`
  4369. should be set in your machine configuration.
  4370. :term:`OVERLAYFS_QA_SKIP`
  4371. When inheriting the :ref:`ref-classes-overlayfs` class,
  4372. provides the ability to disable QA checks for particular overlayfs
  4373. mounts. For example::
  4374. OVERLAYFS_QA_SKIP[data] = "mount-configured"
  4375. .. note::
  4376. Although the :ref:`ref-classes-overlayfs` class is
  4377. inherited by individual recipes, :term:`OVERLAYFS_QA_SKIP`
  4378. should be set in your machine configuration.
  4379. :term:`OVERLAYFS_WRITABLE_PATHS`
  4380. When inheriting the :ref:`ref-classes-overlayfs` class,
  4381. specifies writable paths used at runtime for the recipe. For
  4382. example::
  4383. OVERLAYFS_WRITABLE_PATHS[data] = "/usr/share/my-custom-application"
  4384. :term:`OVERRIDES`
  4385. A colon-separated list of overrides that currently apply. Overrides
  4386. are a BitBake mechanism that allows variables to be selectively
  4387. overridden at the end of parsing. The set of overrides in
  4388. :term:`OVERRIDES` represents the "state" during building, which includes
  4389. the current recipe being built, the machine for which it is being
  4390. built, and so forth.
  4391. As an example, if the string "an-override" appears as an element in
  4392. the colon-separated list in :term:`OVERRIDES`, then the following
  4393. assignment will override ``FOO`` with the value "overridden" at the
  4394. end of parsing::
  4395. FOO:an-override = "overridden"
  4396. See the
  4397. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  4398. section in the BitBake User Manual for more information on the
  4399. overrides mechanism.
  4400. The default value of :term:`OVERRIDES` includes the values of the
  4401. :term:`CLASSOVERRIDE`,
  4402. :term:`MACHINEOVERRIDES`, and
  4403. :term:`DISTROOVERRIDES` variables. Another
  4404. important override included by default is ``pn-${PN}``. This override
  4405. allows variables to be set for a single recipe within configuration
  4406. (``.conf``) files. Here is an example::
  4407. FOO:pn-myrecipe = "myrecipe-specific value"
  4408. .. note::
  4409. An easy way to see what overrides apply is to search for :term:`OVERRIDES`
  4410. in the output of the ``bitbake -e`` command. See the
  4411. ":ref:`dev-manual/debugging:viewing variable values`" section in the Yocto
  4412. Project Development Tasks Manual for more information.
  4413. :term:`P`
  4414. The recipe name and version. :term:`P` is comprised of the following::
  4415. ${PN}-${PV}
  4416. :term:`P4DIR`
  4417. See :term:`bitbake:P4DIR` in the BitBake manual.
  4418. :term:`PACKAGE_ADD_METADATA`
  4419. This variable defines additional metadata to add to packages.
  4420. You may find you need to inject additional metadata into packages.
  4421. This variable allows you to do that by setting the injected data as
  4422. the value. Multiple fields can be added by splitting the content with
  4423. the literal separator "\n".
  4424. The suffixes '_IPK', '_DEB', or '_RPM' can be applied to the variable
  4425. to do package type specific settings. It can also be made package
  4426. specific by using the package name as a suffix.
  4427. You can find out more about applying this variable in the
  4428. ":ref:`dev-manual/packages:adding custom metadata to packages`"
  4429. section in the Yocto Project Development Tasks Manual.
  4430. :term:`PACKAGE_ARCH`
  4431. The architecture of the resulting package or packages.
  4432. By default, the value of this variable is set to
  4433. :term:`TUNE_PKGARCH` when building for the
  4434. target, :term:`BUILD_ARCH` when building for the
  4435. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building for the
  4436. SDK.
  4437. .. note::
  4438. See :term:`SDK_ARCH` for more information.
  4439. However, if your recipe's output packages are built specific to the
  4440. target machine rather than generally for the architecture of the
  4441. machine, you should set :term:`PACKAGE_ARCH` to the value of
  4442. :term:`MACHINE_ARCH` in the recipe as follows::
  4443. PACKAGE_ARCH = "${MACHINE_ARCH}"
  4444. :term:`PACKAGE_ARCHS`
  4445. Specifies a list of architectures compatible with the target machine.
  4446. This variable is set automatically and should not normally be
  4447. hand-edited. Entries are separated using spaces and listed in order
  4448. of priority. The default value for :term:`PACKAGE_ARCHS` is "all any
  4449. noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  4450. :term:`PACKAGE_BEFORE_PN`
  4451. Enables easily adding packages to :term:`PACKAGES` before ``${PN}`` so
  4452. that those added packages can pick up files that would normally be
  4453. included in the default package.
  4454. :term:`PACKAGE_CLASSES`
  4455. This variable, which is set in the ``local.conf`` configuration file
  4456. found in the ``conf`` folder of the
  4457. :term:`Build Directory`, specifies the package manager the
  4458. OpenEmbedded build system uses when packaging data.
  4459. You can provide one or more of the following arguments for the
  4460. variable::
  4461. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
  4462. The build system uses only the first argument in the list as the
  4463. package manager when creating your image or SDK. However, packages
  4464. will be created using any additional packaging classes you specify.
  4465. For example, if you use the following in your ``local.conf`` file::
  4466. PACKAGE_CLASSES ?= "package_ipk"
  4467. The OpenEmbedded build system uses
  4468. the IPK package manager to create your image or SDK.
  4469. For information on packaging and build performance effects as a
  4470. result of the package manager in use, see the
  4471. ":ref:`ref-classes-package`" section.
  4472. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  4473. Determines how to split up and package debug and source information
  4474. when creating debugging packages to be used with the GNU Project
  4475. Debugger (GDB). In general, based on the value of this variable,
  4476. you can combine the source and debug info in a single package,
  4477. you can break out the source into a separate package that can be
  4478. installed independently, or you can choose to not have the source
  4479. packaged at all.
  4480. The possible values of :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable:
  4481. - "``.debug``": All debugging and source info is placed in a single
  4482. ``*-dbg`` package; debug symbol files are placed next to the
  4483. binary in a ``.debug`` directory so that, if a binary is installed
  4484. into ``/bin``, the corresponding debug symbol file is installed
  4485. in ``/bin/.debug``. Source files are installed in the same ``*-dbg``
  4486. package under ``/usr/src/debug``.
  4487. - "``debug-file-directory``": As above, all debugging and source info
  4488. is placed in a single ``*-dbg`` package; debug symbol files are
  4489. placed entirely under the directory ``/usr/lib/debug`` and separated
  4490. by the path from where the binary is installed, so that if a binary
  4491. is installed in ``/bin``, the corresponding debug symbols are installed
  4492. in ``/usr/lib/debug/bin``, and so on. As above, source is installed
  4493. in the same package under ``/usr/src/debug``.
  4494. - "``debug-with-srcpkg``": Debugging info is placed in the standard
  4495. ``*-dbg`` package as with the ``.debug`` value, while source is
  4496. placed in a separate ``*-src`` package, which can be installed
  4497. independently. This is the default setting for this variable,
  4498. as defined in Poky's ``bitbake.conf`` file.
  4499. - "``debug-without-src``": The same behavior as with the ``.debug``
  4500. setting, but no source is packaged at all.
  4501. .. note::
  4502. Much of the above package splitting can be overridden via
  4503. use of the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable.
  4504. You can find out more about debugging using GDB by reading the
  4505. ":ref:`dev-manual/debugging:debugging with the gnu project debugger (gdb) remotely`" section
  4506. in the Yocto Project Development Tasks Manual.
  4507. :term:`PACKAGE_EXCLUDE`
  4508. Lists packages that should not be installed into an image. For
  4509. example::
  4510. PACKAGE_EXCLUDE = "package_name package_name package_name ..."
  4511. You can set this variable globally in your ``local.conf`` file or you
  4512. can attach it to a specific image recipe by using the recipe name
  4513. override::
  4514. PACKAGE_EXCLUDE:pn-target_image = "package_name"
  4515. If you choose to not install a package using this variable and some
  4516. other package is dependent on it (i.e. listed in a recipe's
  4517. :term:`RDEPENDS` variable), the OpenEmbedded build
  4518. system generates a fatal installation error. Because the build system
  4519. halts the process with a fatal error, you can use the variable with
  4520. an iterative development process to remove specific components from a
  4521. system.
  4522. This variable is supported only when using the IPK and RPM
  4523. packaging backends. DEB is not supported.
  4524. See the :term:`NO_RECOMMENDATIONS` and the
  4525. :term:`BAD_RECOMMENDATIONS` variables for
  4526. related information.
  4527. :term:`PACKAGE_EXCLUDE_COMPLEMENTARY`
  4528. Prevents specific packages from being installed when you are
  4529. installing complementary packages.
  4530. You might find that you want to prevent installing certain packages
  4531. when you are installing complementary packages. For example, if you
  4532. are using :term:`IMAGE_FEATURES` to install
  4533. ``dev-pkgs``, you might not want to install all packages from a
  4534. particular multilib. If you find yourself in this situation, you can
  4535. use the :term:`PACKAGE_EXCLUDE_COMPLEMENTARY` variable to specify regular
  4536. expressions to match the packages you want to exclude.
  4537. :term:`PACKAGE_EXTRA_ARCHS`
  4538. Specifies the list of architectures compatible with the device CPU.
  4539. This variable is useful when you build for several different devices
  4540. that use miscellaneous processors such as XScale and ARM926-EJS.
  4541. :term:`PACKAGE_FEED_ARCHS`
  4542. Optionally specifies the package architectures used as part of the
  4543. package feed URIs during the build. When used, the
  4544. :term:`PACKAGE_FEED_ARCHS` variable is appended to the final package feed
  4545. URI, which is constructed using the
  4546. :term:`PACKAGE_FEED_URIS` and
  4547. :term:`PACKAGE_FEED_BASE_PATHS`
  4548. variables.
  4549. .. note::
  4550. You can use the :term:`PACKAGE_FEED_ARCHS`
  4551. variable to allow specific package architectures. If you do
  4552. not need to allow specific architectures, which is a common
  4553. case, you can omit this variable. Omitting the variable results in
  4554. all available architectures for the current machine being included
  4555. into remote package feeds.
  4556. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4557. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4558. defined in your ``local.conf`` file::
  4559. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4560. https://example.com/packagerepos/updates"
  4561. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4562. PACKAGE_FEED_ARCHS = "all core2-64"
  4563. Given these settings, the resulting package feeds are as follows:
  4564. .. code-block:: none
  4565. https://example.com/packagerepos/release/rpm/all
  4566. https://example.com/packagerepos/release/rpm/core2-64
  4567. https://example.com/packagerepos/release/rpm-dev/all
  4568. https://example.com/packagerepos/release/rpm-dev/core2-64
  4569. https://example.com/packagerepos/updates/rpm/all
  4570. https://example.com/packagerepos/updates/rpm/core2-64
  4571. https://example.com/packagerepos/updates/rpm-dev/all
  4572. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4573. :term:`PACKAGE_FEED_BASE_PATHS`
  4574. Specifies the base path used when constructing package feed URIs. The
  4575. :term:`PACKAGE_FEED_BASE_PATHS` variable makes up the middle portion of a
  4576. package feed URI used by the OpenEmbedded build system. The base path
  4577. lies between the :term:`PACKAGE_FEED_URIS`
  4578. and :term:`PACKAGE_FEED_ARCHS` variables.
  4579. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4580. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4581. defined in your ``local.conf`` file::
  4582. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4583. https://example.com/packagerepos/updates"
  4584. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4585. PACKAGE_FEED_ARCHS = "all core2-64"
  4586. Given these settings, the resulting package feeds are as follows:
  4587. .. code-block:: none
  4588. https://example.com/packagerepos/release/rpm/all
  4589. https://example.com/packagerepos/release/rpm/core2-64
  4590. https://example.com/packagerepos/release/rpm-dev/all
  4591. https://example.com/packagerepos/release/rpm-dev/core2-64
  4592. https://example.com/packagerepos/updates/rpm/all
  4593. https://example.com/packagerepos/updates/rpm/core2-64
  4594. https://example.com/packagerepos/updates/rpm-dev/all
  4595. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4596. :term:`PACKAGE_FEED_URIS`
  4597. Specifies the front portion of the package feed URI used by the
  4598. OpenEmbedded build system. Each final package feed URI is comprised
  4599. of :term:`PACKAGE_FEED_URIS`,
  4600. :term:`PACKAGE_FEED_BASE_PATHS`, and
  4601. :term:`PACKAGE_FEED_ARCHS` variables.
  4602. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4603. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4604. defined in your ``local.conf`` file::
  4605. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4606. https://example.com/packagerepos/updates"
  4607. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4608. PACKAGE_FEED_ARCHS = "all core2-64"
  4609. Given these settings, the resulting package feeds are as follows:
  4610. .. code-block:: none
  4611. https://example.com/packagerepos/release/rpm/all
  4612. https://example.com/packagerepos/release/rpm/core2-64
  4613. https://example.com/packagerepos/release/rpm-dev/all
  4614. https://example.com/packagerepos/release/rpm-dev/core2-64
  4615. https://example.com/packagerepos/updates/rpm/all
  4616. https://example.com/packagerepos/updates/rpm/core2-64
  4617. https://example.com/packagerepos/updates/rpm-dev/all
  4618. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4619. :term:`PACKAGE_INSTALL`
  4620. The final list of packages passed to the package manager for
  4621. installation into the image.
  4622. Because the package manager controls actual installation of all
  4623. packages, the list of packages passed using :term:`PACKAGE_INSTALL` is
  4624. not the final list of packages that are actually installed. This
  4625. variable is internal to the image construction code. Consequently, in
  4626. general, you should use the
  4627. :term:`IMAGE_INSTALL` variable to specify
  4628. packages for installation. The exception to this is when working with
  4629. the :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  4630. image. When working with an initial RAM filesystem (:term:`Initramfs`) image,
  4631. use the :term:`PACKAGE_INSTALL` variable. For information on creating an
  4632. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  4633. in the Yocto Project Development Tasks Manual.
  4634. :term:`PACKAGE_INSTALL_ATTEMPTONLY`
  4635. Specifies a list of packages the OpenEmbedded build system attempts
  4636. to install when creating an image. If a listed package fails to
  4637. install, the build system does not generate an error. This variable
  4638. is generally not user-defined.
  4639. :term:`PACKAGE_PREPROCESS_FUNCS`
  4640. Specifies a list of functions run to pre-process the
  4641. :term:`PKGD` directory prior to splitting the files out
  4642. to individual packages.
  4643. :term:`PACKAGE_WRITE_DEPS`
  4644. Specifies a list of dependencies for post-installation and
  4645. pre-installation scripts on native/cross tools. If your
  4646. post-installation or pre-installation script can execute at root filesystem
  4647. creation time rather than on the target but depends on a native tool
  4648. in order to execute, you need to list the tools in
  4649. :term:`PACKAGE_WRITE_DEPS`.
  4650. For information on running post-installation scripts, see the
  4651. ":ref:`dev-manual/new-recipe:post-installation scripts`"
  4652. section in the Yocto Project Development Tasks Manual.
  4653. :term:`PACKAGECONFIG`
  4654. This variable provides a means of enabling or disabling features of a
  4655. recipe on a per-recipe basis. :term:`PACKAGECONFIG` blocks are defined in
  4656. recipes when you specify features and then arguments that define
  4657. feature behaviors. Here is the basic block structure (broken over
  4658. multiple lines for readability)::
  4659. PACKAGECONFIG ??= "f1 f2 f3 ..."
  4660. PACKAGECONFIG[f1] = "\
  4661. --with-f1, \
  4662. --without-f1, \
  4663. build-deps-for-f1, \
  4664. runtime-deps-for-f1, \
  4665. runtime-recommends-for-f1, \
  4666. packageconfig-conflicts-for-f1"
  4667. PACKAGECONFIG[f2] = "\
  4668. ... and so on and so on ...
  4669. The :term:`PACKAGECONFIG` variable itself specifies a space-separated
  4670. list of the features to enable. Following the features, you can
  4671. determine the behavior of each feature by providing up to six
  4672. order-dependent arguments, which are separated by commas. You can
  4673. omit any argument you like but must retain the separating commas. The
  4674. order is important and specifies the following:
  4675. #. Extra arguments that should be added to the configure script
  4676. argument list (:term:`EXTRA_OECONF` or
  4677. :term:`PACKAGECONFIG_CONFARGS`) if
  4678. the feature is enabled.
  4679. #. Extra arguments that should be added to :term:`EXTRA_OECONF` or
  4680. :term:`PACKAGECONFIG_CONFARGS` if the feature is disabled.
  4681. #. Additional build dependencies (:term:`DEPENDS`)
  4682. that should be added if the feature is enabled.
  4683. #. Additional runtime dependencies (:term:`RDEPENDS`)
  4684. that should be added if the feature is enabled.
  4685. #. Additional runtime recommendations
  4686. (:term:`RRECOMMENDS`) that should be added if
  4687. the feature is enabled.
  4688. #. Any conflicting (that is, mutually exclusive) :term:`PACKAGECONFIG`
  4689. settings for this feature.
  4690. Consider the following :term:`PACKAGECONFIG` block taken from the
  4691. ``librsvg`` recipe. In this example the feature is ``gtk``, which has
  4692. three arguments that determine the feature's behavior::
  4693. PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3"
  4694. The
  4695. ``--with-gtk3`` and ``gtk+3`` arguments apply only if the feature is
  4696. enabled. In this case, ``--with-gtk3`` is added to the configure
  4697. script argument list and ``gtk+3`` is added to :term:`DEPENDS`. On the
  4698. other hand, if the feature is disabled say through a ``.bbappend``
  4699. file in another layer, then the second argument ``--without-gtk3`` is
  4700. added to the configure script instead.
  4701. The basic :term:`PACKAGECONFIG` structure previously described holds true
  4702. regardless of whether you are creating a block or changing a block.
  4703. When creating a block, use the structure inside your recipe.
  4704. If you want to change an existing :term:`PACKAGECONFIG` block, you can do
  4705. so one of two ways:
  4706. - *Append file:* Create an append file named
  4707. ``recipename.bbappend`` in your layer and override the value of
  4708. :term:`PACKAGECONFIG`. You can either completely override the
  4709. variable::
  4710. PACKAGECONFIG = "f4 f5"
  4711. Or, you can just append the variable::
  4712. PACKAGECONFIG:append = " f4"
  4713. - *Configuration file:* This method is identical to changing the
  4714. block through an append file except you edit your ``local.conf``
  4715. or ``mydistro.conf`` file. As with append files previously
  4716. described, you can either completely override the variable::
  4717. PACKAGECONFIG:pn-recipename = "f4 f5"
  4718. Or, you can just amend the variable::
  4719. PACKAGECONFIG:append:pn-recipename = " f4"
  4720. :term:`PACKAGECONFIG_CONFARGS`
  4721. A space-separated list of configuration options generated from the
  4722. :term:`PACKAGECONFIG` setting.
  4723. Classes such as :ref:`ref-classes-autotools` and :ref:`ref-classes-cmake`
  4724. use :term:`PACKAGECONFIG_CONFARGS` to pass :term:`PACKAGECONFIG` options
  4725. to ``configure`` and ``cmake``, respectively. If you are using
  4726. :term:`PACKAGECONFIG` but not a class that handles the
  4727. :ref:`ref-tasks-configure` task, then you need to use
  4728. :term:`PACKAGECONFIG_CONFARGS` appropriately.
  4729. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY`
  4730. For recipes inheriting the :ref:`ref-classes-packagegroup` class, setting
  4731. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the
  4732. normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth)
  4733. should not be automatically created by the ``packagegroup`` recipe,
  4734. which is the default behavior.
  4735. :term:`PACKAGES`
  4736. The list of packages the recipe creates. The default value is the
  4737. following::
  4738. ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  4739. During packaging, the :ref:`ref-tasks-package` task
  4740. goes through :term:`PACKAGES` and uses the :term:`FILES`
  4741. variable corresponding to each package to assign files to the
  4742. package. If a file matches the :term:`FILES` variable for more than one
  4743. package in :term:`PACKAGES`, it will be assigned to the earliest
  4744. (leftmost) package.
  4745. Packages in the variable's list that are empty (i.e. where none of
  4746. the patterns in ``FILES:``\ pkg match any files installed by the
  4747. :ref:`ref-tasks-install` task) are not generated,
  4748. unless generation is forced through the
  4749. :term:`ALLOW_EMPTY` variable.
  4750. :term:`PACKAGES_DYNAMIC`
  4751. A promise that your recipe satisfies runtime dependencies for
  4752. optional modules that are found in other recipes.
  4753. :term:`PACKAGES_DYNAMIC` does not actually satisfy the dependencies, it
  4754. only states that they should be satisfied. For example, if a hard,
  4755. runtime dependency (:term:`RDEPENDS`) of another
  4756. package is satisfied at build time through the :term:`PACKAGES_DYNAMIC`
  4757. variable, but a package with the module name is never actually
  4758. produced, then the other package will be broken. Thus, if you attempt
  4759. to include that package in an image, you will get a dependency
  4760. failure from the packaging system during the
  4761. :ref:`ref-tasks-rootfs` task.
  4762. Typically, if there is a chance that such a situation can occur and
  4763. the package that is not created is valid without the dependency being
  4764. satisfied, then you should use :term:`RRECOMMENDS`
  4765. (a soft runtime dependency) instead of :term:`RDEPENDS`.
  4766. For an example of how to use the :term:`PACKAGES_DYNAMIC` variable when
  4767. you are splitting packages, see the
  4768. ":ref:`dev-manual/packages:handling optional module packaging`"
  4769. section in the Yocto Project Development Tasks Manual.
  4770. :term:`PACKAGESPLITFUNCS`
  4771. Specifies a list of functions run to perform additional splitting of
  4772. files into individual packages. Recipes can either prepend to this
  4773. variable or prepend to the ``populate_packages`` function in order to
  4774. perform additional package splitting. In either case, the function
  4775. should set :term:`PACKAGES`,
  4776. :term:`FILES`, :term:`RDEPENDS` and
  4777. other packaging variables appropriately in order to perform the
  4778. desired splitting.
  4779. :term:`PARALLEL_MAKE`
  4780. Extra options passed to the build tool command (``make``,
  4781. ``ninja`` or more specific build engines, like the Go language one)
  4782. during the :ref:`ref-tasks-compile` task, to specify parallel compilation
  4783. on the local build host. This variable is usually in the form "-j x",
  4784. where x represents the maximum number of parallel threads such engines
  4785. can run.
  4786. .. note::
  4787. For software compiled by ``make``, in order for :term:`PARALLEL_MAKE`
  4788. to be effective, ``make`` must be called with
  4789. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  4790. way to ensure this is to use the ``oe_runmake`` function.
  4791. By default, the OpenEmbedded build system automatically sets this
  4792. variable to be equal to the number of cores the build system uses.
  4793. .. note::
  4794. If the software being built experiences dependency issues during
  4795. the :ref:`ref-tasks-compile` task that result in race conditions, you can clear
  4796. the :term:`PARALLEL_MAKE` variable within the recipe as a workaround. For
  4797. information on addressing race conditions, see the
  4798. ":ref:`dev-manual/debugging:debugging parallel make races`"
  4799. section in the Yocto Project Development Tasks Manual.
  4800. For single socket systems (i.e. one CPU), you should not have to
  4801. override this variable to gain optimal parallelism during builds.
  4802. However, if you have very large systems that employ multiple physical
  4803. CPUs, you might want to make sure the :term:`PARALLEL_MAKE` variable is
  4804. not set higher than "-j 20".
  4805. For more information on speeding up builds, see the
  4806. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  4807. section in the Yocto Project Development Tasks Manual.
  4808. :term:`PARALLEL_MAKEINST`
  4809. Extra options passed to the build tool install command
  4810. (``make install``, ``ninja install`` or more specific ones)
  4811. during the :ref:`ref-tasks-install` task in order to specify
  4812. parallel installation. This variable defaults to the value of
  4813. :term:`PARALLEL_MAKE`.
  4814. .. note::
  4815. For software compiled by ``make``, in order for :term:`PARALLEL_MAKEINST`
  4816. to be effective, ``make`` must be called with
  4817. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  4818. way to ensure this is to use the ``oe_runmake`` function.
  4819. If the software being built experiences dependency issues during
  4820. the :ref:`ref-tasks-install` task that result in race conditions, you can
  4821. clear the :term:`PARALLEL_MAKEINST` variable within the recipe as a
  4822. workaround. For information on addressing race conditions, see the
  4823. ":ref:`dev-manual/debugging:debugging parallel make races`"
  4824. section in the Yocto Project Development Tasks Manual.
  4825. :term:`PATCHRESOLVE`
  4826. Determines the action to take when a patch fails. You can set this
  4827. variable to one of two values: "noop" and "user".
  4828. The default value of "noop" causes the build to simply fail when the
  4829. OpenEmbedded build system cannot successfully apply a patch. Setting
  4830. the value to "user" causes the build system to launch a shell and
  4831. places you in the right location so that you can manually resolve the
  4832. conflicts.
  4833. Set this variable in your ``local.conf`` file.
  4834. :term:`PATCHTOOL`
  4835. Specifies the utility used to apply patches for a recipe during the
  4836. :ref:`ref-tasks-patch` task. You can specify one of
  4837. three utilities: "patch", "quilt", or "git". The default utility used
  4838. is "quilt" except for the quilt-native recipe itself. Because the
  4839. quilt tool is not available at the time quilt-native is being
  4840. patched, it uses "patch".
  4841. If you wish to use an alternative patching tool, set the variable in
  4842. the recipe using one of the following::
  4843. PATCHTOOL = "patch"
  4844. PATCHTOOL = "quilt"
  4845. PATCHTOOL = "git"
  4846. :term:`PE`
  4847. The epoch of the recipe. By default, this variable is unset. The
  4848. variable is used to make upgrades possible when the versioning scheme
  4849. changes in some backwards incompatible way.
  4850. :term:`PE` is the default value of the :term:`PKGE` variable.
  4851. :term:`PEP517_WHEEL_PATH`
  4852. When used by recipes that inherit the :ref:`ref-classes-python_pep517`
  4853. class, denotes the path to ``dist/`` (short for distribution) where the
  4854. binary archive ``wheel`` is built.
  4855. :term:`PERSISTENT_DIR`
  4856. See :term:`bitbake:PERSISTENT_DIR` in the BitBake manual.
  4857. :term:`PF`
  4858. Specifies the recipe or package name and includes all version and
  4859. revision numbers (i.e. ``glibc-2.13-r20+svnr15508/`` and
  4860. ``bash-4.2-r1/``). This variable is comprised of the following:
  4861. ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`}
  4862. :term:`PIXBUF_PACKAGES`
  4863. When inheriting the :ref:`ref-classes-pixbufcache`
  4864. class, this variable identifies packages that contain the pixbuf
  4865. loaders used with ``gdk-pixbuf``. By default, the
  4866. :ref:`ref-classes-pixbufcache` class assumes that
  4867. the loaders are in the recipe's main package (i.e.
  4868. ``${``\ :term:`PN`\ ``}``). Use this variable if the
  4869. loaders you need are in a package other than that main package.
  4870. :term:`PKG`
  4871. The name of the resulting package created by the OpenEmbedded build
  4872. system.
  4873. .. note::
  4874. When using the :term:`PKG` variable, you must use a package name override.
  4875. For example, when the :ref:`ref-classes-debian` class renames the output
  4876. package, it does so by setting ``PKG:packagename``.
  4877. :term:`PKG_CONFIG_PATH`
  4878. The path to ``pkg-config`` files for the current build context.
  4879. ``pkg-config`` reads this variable from the environment.
  4880. :term:`PKGD`
  4881. Points to the destination directory for files to be packaged before
  4882. they are split into individual packages. This directory defaults to
  4883. the following::
  4884. ${WORKDIR}/package
  4885. Do not change this default.
  4886. :term:`PKGDATA_DIR`
  4887. Points to a shared, global-state directory that holds data generated
  4888. during the packaging process. During the packaging process, the
  4889. :ref:`ref-tasks-packagedata` task packages data
  4890. for each recipe and installs it into this temporary, shared area.
  4891. This directory defaults to the following, which you should not
  4892. change::
  4893. ${STAGING_DIR_HOST}/pkgdata
  4894. For examples of how this data is used, see the
  4895. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  4896. section in the Yocto Project Overview and Concepts Manual and the
  4897. ":ref:`dev-manual/debugging:viewing package information with \`\`oe-pkgdata-util\`\``"
  4898. section in the Yocto Project Development Tasks Manual. For more
  4899. information on the shared, global-state directory, see
  4900. :term:`STAGING_DIR_HOST`.
  4901. :term:`PKGDEST`
  4902. Points to the parent directory for files to be packaged after they
  4903. have been split into individual packages. This directory defaults to
  4904. the following::
  4905. ${WORKDIR}/packages-split
  4906. Under this directory, the build system creates directories for each
  4907. package specified in :term:`PACKAGES`. Do not change
  4908. this default.
  4909. :term:`PKGDESTWORK`
  4910. Points to a temporary work area where the
  4911. :ref:`ref-tasks-package` task saves package metadata.
  4912. The :term:`PKGDESTWORK` location defaults to the following::
  4913. ${WORKDIR}/pkgdata
  4914. Do not change this default.
  4915. The :ref:`ref-tasks-packagedata` task copies the
  4916. package metadata from :term:`PKGDESTWORK` to
  4917. :term:`PKGDATA_DIR` to make it available globally.
  4918. :term:`PKGE`
  4919. The epoch of the package(s) built by the recipe. By default, :term:`PKGE`
  4920. is set to :term:`PE`.
  4921. :term:`PKGR`
  4922. The revision of the package(s) built by the recipe. By default,
  4923. :term:`PKGR` is set to :term:`PR`.
  4924. :term:`PKGV`
  4925. The version of the package(s) built by the recipe. By default,
  4926. :term:`PKGV` is set to :term:`PV`.
  4927. :term:`PN`
  4928. This variable can have two separate functions depending on the
  4929. context: a recipe name or a resulting package name.
  4930. :term:`PN` refers to a recipe name in the context of a file used by the
  4931. OpenEmbedded build system as input to create a package. The name is
  4932. normally extracted from the recipe file name. For example, if the
  4933. recipe is named ``expat_2.0.1.bb``, then the default value of :term:`PN`
  4934. will be "expat".
  4935. The variable refers to a package name in the context of a file
  4936. created or produced by the OpenEmbedded build system.
  4937. If applicable, the :term:`PN` variable also contains any special suffix
  4938. or prefix. For example, using ``bash`` to build packages for the
  4939. native machine, :term:`PN` is ``bash-native``. Using ``bash`` to build
  4940. packages for the target and for Multilib, :term:`PN` would be ``bash``
  4941. and ``lib64-bash``, respectively.
  4942. :term:`POPULATE_SDK_POST_HOST_COMMAND`
  4943. Specifies a list of functions to call once the OpenEmbedded build
  4944. system has created the host part of the SDK. You can specify
  4945. functions separated by semicolons::
  4946. POPULATE_SDK_POST_HOST_COMMAND += "function; ... "
  4947. If you need to pass the SDK path to a command within a function, you
  4948. can use ``${SDK_DIR}``, which points to the parent directory used by
  4949. the OpenEmbedded build system when creating SDK output. See the
  4950. :term:`SDK_DIR` variable for more information.
  4951. :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  4952. Specifies a list of functions to call once the OpenEmbedded build
  4953. system has created the target part of the SDK. You can specify
  4954. functions separated by semicolons::
  4955. POPULATE_SDK_POST_TARGET_COMMAND += "function; ... "
  4956. If you need to pass the SDK path to a command within a function, you
  4957. can use ``${SDK_DIR}``, which points to the parent directory used by
  4958. the OpenEmbedded build system when creating SDK output. See the
  4959. :term:`SDK_DIR` variable for more information.
  4960. :term:`PR`
  4961. The revision of the recipe. The default value for this variable is
  4962. "r0". Subsequent revisions of the recipe conventionally have the
  4963. values "r1", "r2", and so forth. When :term:`PV` increases,
  4964. :term:`PR` is conventionally reset to "r0".
  4965. .. note::
  4966. The OpenEmbedded build system does not need the aid of :term:`PR`
  4967. to know when to rebuild a recipe. The build system uses the task
  4968. :ref:`input checksums <overview-manual/concepts:checksums (signatures)>` along with the
  4969. :ref:`stamp <structure-build-tmp-stamps>` and
  4970. :ref:`overview-manual/concepts:shared state cache`
  4971. mechanisms.
  4972. The :term:`PR` variable primarily becomes significant when a package
  4973. manager dynamically installs packages on an already built image. In
  4974. this case, :term:`PR`, which is the default value of
  4975. :term:`PKGR`, helps the package manager distinguish which
  4976. package is the most recent one in cases where many packages have the
  4977. same :term:`PV` (i.e. :term:`PKGV`). A component having many packages with
  4978. the same :term:`PV` usually means that the packages all install the same
  4979. upstream version, but with later (:term:`PR`) version packages including
  4980. packaging fixes.
  4981. .. note::
  4982. :term:`PR` does not need to be increased for changes that do not change the
  4983. package contents or metadata.
  4984. Because manually managing :term:`PR` can be cumbersome and error-prone,
  4985. an automated solution exists. See the
  4986. ":ref:`dev-manual/packages:working with a pr service`" section
  4987. in the Yocto Project Development Tasks Manual for more information.
  4988. :term:`PREFERRED_PROVIDER`
  4989. If multiple recipes provide the same item, this variable determines
  4990. which recipe is preferred and thus provides the item (i.e. the
  4991. preferred provider). You should always suffix this variable with the
  4992. name of the provided item. And, you should define the variable using
  4993. the preferred recipe's name (:term:`PN`). Here is a common
  4994. example::
  4995. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  4996. In the previous example, multiple recipes are providing "virtual/kernel".
  4997. The :term:`PREFERRED_PROVIDER` variable is set with the name (:term:`PN`) of
  4998. the recipe you prefer to provide "virtual/kernel".
  4999. Following are more examples::
  5000. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  5001. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  5002. For more
  5003. information, see the ":ref:`dev-manual/new-recipe:using virtual providers`"
  5004. section in the Yocto Project Development Tasks Manual.
  5005. .. note::
  5006. If you use a ``virtual/\*`` item with :term:`PREFERRED_PROVIDER`, then any
  5007. recipe that :term:`PROVIDES` that item but is not selected (defined)
  5008. by :term:`PREFERRED_PROVIDER` is prevented from building, which is usually
  5009. desirable since this mechanism is designed to select between mutually
  5010. exclusive alternative providers.
  5011. :term:`PREFERRED_PROVIDERS`
  5012. See :term:`bitbake:PREFERRED_PROVIDERS` in the BitBake manual.
  5013. :term:`PREFERRED_VERSION`
  5014. If there are multiple versions of a recipe available, this variable
  5015. determines which version should be given preference. You must always
  5016. suffix the variable with the :term:`PN` you want to select (`python` in
  5017. the first example below), and you should specify the :term:`PV`
  5018. accordingly (`3.4.0` in the example).
  5019. The :term:`PREFERRED_VERSION` variable supports limited wildcard use
  5020. through the "``%``" character. You can use the character to match any
  5021. number of characters, which can be useful when specifying versions
  5022. that contain long revision numbers that potentially change. Here are
  5023. two examples::
  5024. PREFERRED_VERSION_python = "3.4.0"
  5025. PREFERRED_VERSION_linux-yocto = "5.0%"
  5026. .. note::
  5027. The use of the "%" character is limited in that it only works at the end of the
  5028. string. You cannot use the wildcard character in any other
  5029. location of the string.
  5030. The specified version is matched against :term:`PV`, which
  5031. does not necessarily match the version part of the recipe's filename.
  5032. For example, consider two recipes ``foo_1.2.bb`` and ``foo_git.bb``
  5033. where ``foo_git.bb`` contains the following assignment::
  5034. PV = "1.1+git${SRCPV}"
  5035. In this case, the correct way to select
  5036. ``foo_git.bb`` is by using an assignment such as the following::
  5037. PREFERRED_VERSION_foo = "1.1+git%"
  5038. Compare that previous example
  5039. against the following incorrect example, which does not work::
  5040. PREFERRED_VERSION_foo = "git"
  5041. Sometimes the :term:`PREFERRED_VERSION` variable can be set by
  5042. configuration files in a way that is hard to change. You can use
  5043. :term:`OVERRIDES` to set a machine-specific
  5044. override. Here is an example::
  5045. PREFERRED_VERSION_linux-yocto:qemux86 = "5.0%"
  5046. Although not recommended, worst case, you can also use the
  5047. "forcevariable" override, which is the strongest override possible.
  5048. Here is an example::
  5049. PREFERRED_VERSION_linux-yocto:forcevariable = "5.0%"
  5050. .. note::
  5051. The ``:forcevariable`` override is not handled specially. This override
  5052. only works because the default value of :term:`OVERRIDES` includes "forcevariable".
  5053. If a recipe with the specified version is not available, a warning
  5054. message will be shown. See :term:`REQUIRED_VERSION` if you want this
  5055. to be an error instead.
  5056. :term:`PREMIRRORS`
  5057. Specifies additional paths from which the OpenEmbedded build system
  5058. gets source code. When the build system searches for source code, it
  5059. first tries the local download directory. If that location fails, the
  5060. build system tries locations defined by :term:`PREMIRRORS`, the upstream
  5061. source, and then locations specified by
  5062. :term:`MIRRORS` in that order.
  5063. Assuming your distribution (:term:`DISTRO`) is "poky",
  5064. the default value for :term:`PREMIRRORS` is defined in the
  5065. ``conf/distro/poky.conf`` file in the ``meta-poky`` Git repository.
  5066. Typically, you could add a specific server for the build system to
  5067. attempt before any others by adding something like the following to
  5068. the ``local.conf`` configuration file in the
  5069. :term:`Build Directory`::
  5070. PREMIRRORS:prepend = "\
  5071. git://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5072. ftp://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5073. http://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5074. https://.*/.* &YOCTO_DL_URL;/mirror/sources/"
  5075. These changes cause the
  5076. build system to intercept Git, FTP, HTTP, and HTTPS requests and
  5077. direct them to the ``http://`` sources mirror. You can use
  5078. ``file://`` URLs to point to local directories or network shares as
  5079. well.
  5080. :term:`PRIORITY`
  5081. Indicates the importance of a package.
  5082. :term:`PRIORITY` is considered to be part of the distribution policy
  5083. because the importance of any given recipe depends on the purpose for
  5084. which the distribution is being produced. Thus, :term:`PRIORITY` is not
  5085. normally set within recipes.
  5086. You can set :term:`PRIORITY` to "required", "standard", "extra", and
  5087. "optional", which is the default.
  5088. :term:`PRIVATE_LIBS`
  5089. Specifies libraries installed within a recipe that should be ignored
  5090. by the OpenEmbedded build system's shared library resolver. This
  5091. variable is typically used when software being built by a recipe has
  5092. its own private versions of a library normally provided by another
  5093. recipe. In this case, you would not want the package containing the
  5094. private libraries to be set as a dependency on other unrelated
  5095. packages that should instead depend on the package providing the
  5096. standard version of the library.
  5097. Libraries specified in this variable should be specified by their
  5098. file name. For example, from the Firefox recipe in meta-browser::
  5099. PRIVATE_LIBS = "libmozjs.so \
  5100. libxpcom.so \
  5101. libnspr4.so \
  5102. libxul.so \
  5103. libmozalloc.so \
  5104. libplc4.so \
  5105. libplds4.so"
  5106. For more information, see the
  5107. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5108. section in the Yocto Project Overview and Concepts Manual.
  5109. :term:`PROVIDES`
  5110. A list of aliases by which a particular recipe can be known. By
  5111. default, a recipe's own :term:`PN` is implicitly already in its
  5112. :term:`PROVIDES` list and therefore does not need to mention that it
  5113. provides itself. If a recipe uses :term:`PROVIDES`, the additional
  5114. aliases are synonyms for the recipe and can be useful for satisfying
  5115. dependencies of other recipes during the build as specified by
  5116. :term:`DEPENDS`.
  5117. Consider the following example :term:`PROVIDES` statement from the recipe
  5118. file ``eudev_3.2.9.bb``::
  5119. PROVIDES += "udev"
  5120. The :term:`PROVIDES` statement
  5121. results in the "eudev" recipe also being available as simply "udev".
  5122. .. note::
  5123. A recipe's own recipe name (:term:`PN`) is always implicitly prepended
  5124. to :term:`PROVIDES`, so while using "+=" in the above example may not be
  5125. strictly necessary it is recommended to avoid confusion.
  5126. In addition to providing recipes under alternate names, the
  5127. :term:`PROVIDES` mechanism is also used to implement virtual targets. A
  5128. virtual target is a name that corresponds to some particular
  5129. functionality (e.g. a Linux kernel). Recipes that provide the
  5130. functionality in question list the virtual target in :term:`PROVIDES`.
  5131. Recipes that depend on the functionality in question can include the
  5132. virtual target in :term:`DEPENDS` to leave the choice of provider open.
  5133. Conventionally, virtual targets have names on the form
  5134. "virtual/function" (e.g. "virtual/kernel"). The slash is simply part
  5135. of the name and has no syntactical significance.
  5136. The :term:`PREFERRED_PROVIDER` variable is
  5137. used to select which particular recipe provides a virtual target.
  5138. .. note::
  5139. A corresponding mechanism for virtual runtime dependencies
  5140. (packages) exists. However, the mechanism does not depend on any
  5141. special functionality beyond ordinary variable assignments. For
  5142. example, ``VIRTUAL-RUNTIME_dev_manager`` refers to the package of
  5143. the component that manages the ``/dev`` directory.
  5144. Setting the "preferred provider" for runtime dependencies is as
  5145. simple as using the following assignment in a configuration file::
  5146. VIRTUAL-RUNTIME_dev_manager = "udev"
  5147. :term:`PRSERV_HOST`
  5148. The network based :term:`PR` service host and port.
  5149. The ``conf/templates/default/local.conf.sample.extended`` configuration
  5150. file in the :term:`Source Directory` shows how the :term:`PRSERV_HOST`
  5151. variable is set::
  5152. PRSERV_HOST = "localhost:0"
  5153. You must
  5154. set the variable if you want to automatically start a local :ref:`PR
  5155. service <dev-manual/packages:working with a pr service>`. You can
  5156. set :term:`PRSERV_HOST` to other values to use a remote PR service.
  5157. :term:`PSEUDO_IGNORE_PATHS`
  5158. A comma-separated (without spaces) list of path prefixes that should be ignored
  5159. by pseudo when monitoring and recording file operations, in order to avoid
  5160. problems with files being written to outside of the pseudo context and
  5161. reduce pseudo's overhead. A path is ignored if it matches any prefix in the list
  5162. and can include partial directory (or file) names.
  5163. :term:`PTEST_ENABLED`
  5164. Specifies whether or not :ref:`Package
  5165. Test <dev-manual/packages:testing packages with ptest>` (ptest)
  5166. functionality is enabled when building a recipe. You should not set
  5167. this variable directly. Enabling and disabling building Package Tests
  5168. at build time should be done by adding "ptest" to (or removing it
  5169. from) :term:`DISTRO_FEATURES`.
  5170. :term:`PV`
  5171. The version of the recipe. The version is normally extracted from the
  5172. recipe filename. For example, if the recipe is named
  5173. ``expat_2.0.1.bb``, then the default value of :term:`PV` will be "2.0.1".
  5174. :term:`PV` is generally not overridden within a recipe unless it is
  5175. building an unstable (i.e. development) version from a source code
  5176. repository (e.g. Git or Subversion).
  5177. :term:`PV` is the default value of the :term:`PKGV` variable.
  5178. :term:`PYPI_PACKAGE`
  5179. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5180. `PyPI <https://pypi.org/>`__ package name to be built. The default value
  5181. is set based upon :term:`BPN` (stripping any "python-" or "python3-"
  5182. prefix off if present), however for some packages it will need to be set
  5183. explicitly if that will not match the package name (e.g. where the
  5184. package name has a prefix, underscores, uppercase letters etc.)
  5185. :term:`PYTHON_ABI`
  5186. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5187. class, denotes the Application Binary Interface (ABI) currently in use
  5188. for Python. By default, the ABI is "m". You do not have to set this
  5189. variable as the OpenEmbedded build system sets it for you.
  5190. The OpenEmbedded build system uses the ABI to construct directory
  5191. names used when installing the Python headers and libraries in
  5192. sysroot (e.g. ``.../python3.3m/...``).
  5193. :term:`PYTHON_PN`
  5194. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5195. class, specifies the major Python version being built. For Python 3.x,
  5196. :term:`PYTHON_PN` would be "python3". You do not have to set this
  5197. variable as the OpenEmbedded build system automatically sets it for you.
  5198. The variable allows recipes to use common infrastructure such as the
  5199. following::
  5200. DEPENDS += "${PYTHON_PN}-native"
  5201. In the previous example,
  5202. the version of the dependency is :term:`PYTHON_PN`.
  5203. :term:`QA_EMPTY_DIRS`
  5204. Specifies a list of directories that are expected to be empty when
  5205. packaging; if ``empty-dirs`` appears in :term:`ERROR_QA` or
  5206. :term:`WARN_QA` these will be checked and an error or warning
  5207. (respectively) will be produced.
  5208. The default :term:`QA_EMPTY_DIRS` value is set in
  5209. :ref:`insane.bbclass <ref-classes-insane>`.
  5210. :term:`QA_EMPTY_DIRS_RECOMMENDATION`
  5211. Specifies a recommendation for why a directory must be empty,
  5212. which will be included in the error message if a specific directory
  5213. is found to contain files. Must be overridden with the directory
  5214. path to match on.
  5215. If no recommendation is specified for a directory, then the default
  5216. "but it is expected to be empty" will be used.
  5217. An example message shows if files were present in '/dev'::
  5218. QA_EMPTY_DIRS_RECOMMENDATION:/dev = "but all devices must be created at runtime"
  5219. :term:`RANLIB`
  5220. The minimal command and arguments to run ``ranlib``.
  5221. :term:`RCONFLICTS`
  5222. The list of packages that conflict with packages. Note that packages
  5223. will not be installed if conflicting packages are not first removed.
  5224. Like all package-controlling variables, you must always use them in
  5225. conjunction with a package name override. Here is an example::
  5226. RCONFLICTS:${PN} = "another_conflicting_package_name"
  5227. BitBake, which the OpenEmbedded build system uses, supports
  5228. specifying versioned dependencies. Although the syntax varies
  5229. depending on the packaging format, BitBake hides these differences
  5230. from you. Here is the general syntax to specify versions with the
  5231. :term:`RCONFLICTS` variable::
  5232. RCONFLICTS:${PN} = "package (operator version)"
  5233. For ``operator``, you can specify the following:
  5234. - =
  5235. - <
  5236. - >
  5237. - <=
  5238. - >=
  5239. For example, the following sets up a dependency on version 1.2 or
  5240. greater of the package ``foo``::
  5241. RCONFLICTS:${PN} = "foo (>= 1.2)"
  5242. :term:`RDEPENDS`
  5243. Lists runtime dependencies of a package. These dependencies are other
  5244. packages that must be installed in order for the package to function
  5245. correctly. As an example, the following assignment declares that the
  5246. package ``foo`` needs the packages ``bar`` and ``baz`` to be
  5247. installed::
  5248. RDEPENDS:foo = "bar baz"
  5249. The most common types of package
  5250. runtime dependencies are automatically detected and added. Therefore,
  5251. most recipes do not need to set :term:`RDEPENDS`. For more information,
  5252. see the
  5253. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5254. section in the Yocto Project Overview and Concepts Manual.
  5255. The practical effect of the above :term:`RDEPENDS` assignment is that
  5256. ``bar`` and ``baz`` will be declared as dependencies inside the
  5257. package ``foo`` when it is written out by one of the
  5258. :ref:`do_package_write_* <ref-tasks-package_write_deb>` tasks.
  5259. Exactly how this is done depends on which package format is used,
  5260. which is determined by
  5261. :term:`PACKAGE_CLASSES`. When the
  5262. corresponding package manager installs the package, it will know to
  5263. also install the packages on which it depends.
  5264. To ensure that the packages ``bar`` and ``baz`` get built, the
  5265. previous :term:`RDEPENDS` assignment also causes a task dependency to be
  5266. added. This dependency is from the recipe's
  5267. :ref:`ref-tasks-build` (not to be confused with
  5268. :ref:`ref-tasks-compile`) task to the
  5269. :ref:`do_package_write_* <ref-tasks-package_write_deb>` task of the recipes that build ``bar`` and
  5270. ``baz``.
  5271. The names of the packages you list within :term:`RDEPENDS` must be the
  5272. names of other packages --- they cannot be recipe names. Although
  5273. package names and recipe names usually match, the important point
  5274. here is that you are providing package names within the :term:`RDEPENDS`
  5275. variable. For an example of the default list of packages created from
  5276. a recipe, see the :term:`PACKAGES` variable.
  5277. Because the :term:`RDEPENDS` variable applies to packages being built,
  5278. you should always use the variable in a form with an attached package
  5279. name (remember that a single recipe can build multiple packages). For
  5280. example, suppose you are building a development package that depends
  5281. on the ``perl`` package. In this case, you would use the following
  5282. :term:`RDEPENDS` statement::
  5283. RDEPENDS:${PN}-dev += "perl"
  5284. In the example,
  5285. the development package depends on the ``perl`` package. Thus, the
  5286. :term:`RDEPENDS` variable has the ``${PN}-dev`` package name as part of
  5287. the variable.
  5288. .. note::
  5289. ``RDEPENDS:${PN}-dev`` includes ``${``\ :term:`PN`\ ``}``
  5290. by default. This default is set in the BitBake configuration file
  5291. (``meta/conf/bitbake.conf``). Be careful not to accidentally remove
  5292. ``${PN}`` when modifying ``RDEPENDS:${PN}-dev``. Use the "+=" operator
  5293. rather than the "=" operator.
  5294. The package names you use with :term:`RDEPENDS` must appear as they would
  5295. in the :term:`PACKAGES` variable. The :term:`PKG` variable
  5296. allows a different name to be used for the final package (e.g. the
  5297. :ref:`ref-classes-debian` class uses this to rename
  5298. packages), but this final package name cannot be used with
  5299. :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be
  5300. independent of the package format used.
  5301. BitBake, which the OpenEmbedded build system uses, supports
  5302. specifying versioned dependencies. Although the syntax varies
  5303. depending on the packaging format, BitBake hides these differences
  5304. from you. Here is the general syntax to specify versions with the
  5305. :term:`RDEPENDS` variable::
  5306. RDEPENDS:${PN} = "package (operator version)"
  5307. For ``operator``, you can specify the following:
  5308. - =
  5309. - <
  5310. - >
  5311. - <=
  5312. - >=
  5313. For version, provide the version number.
  5314. .. note::
  5315. You can use :term:`EXTENDPKGV` to provide a full package version
  5316. specification.
  5317. For example, the following sets up a dependency on version 1.2 or
  5318. greater of the package ``foo``::
  5319. RDEPENDS:${PN} = "foo (>= 1.2)"
  5320. For information on build-time dependencies, see the :term:`DEPENDS`
  5321. variable. You can also see the
  5322. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  5323. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`" sections in the
  5324. BitBake User Manual for additional information on tasks and dependencies.
  5325. :term:`RECIPE_NO_UPDATE_REASON`
  5326. If a recipe should not be replaced by a more recent upstream version,
  5327. putting the reason why in this variable in a recipe allows
  5328. ``devtool check-upgrade-status`` command to display it, as explained
  5329. in the ":ref:`ref-manual/devtool-reference:checking on the upgrade status of a recipe`"
  5330. section.
  5331. :term:`REPODIR`
  5332. See :term:`bitbake:REPODIR` in the BitBake manual.
  5333. :term:`REQUIRED_DISTRO_FEATURES`
  5334. When inheriting the :ref:`ref-classes-features_check`
  5335. class, this variable identifies distribution features that must exist
  5336. in the current configuration in order for the OpenEmbedded build
  5337. system to build the recipe. In other words, if the
  5338. :term:`REQUIRED_DISTRO_FEATURES` variable lists a feature that does not
  5339. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  5340. the recipe will be skipped, and if the build system attempts to build
  5341. the recipe then an error will be triggered.
  5342. :term:`REQUIRED_VERSION`
  5343. If there are multiple versions of a recipe available, this variable
  5344. determines which version should be given preference.
  5345. :term:`REQUIRED_VERSION` works in exactly the same manner as
  5346. :term:`PREFERRED_VERSION`, except that if the specified version is not
  5347. available then an error message is shown and the build fails
  5348. immediately.
  5349. If both :term:`REQUIRED_VERSION` and :term:`PREFERRED_VERSION` are set
  5350. for the same recipe, the :term:`REQUIRED_VERSION` value applies.
  5351. :term:`RM_WORK_EXCLUDE`
  5352. With :ref:`ref-classes-rm-work` enabled, this variable
  5353. specifies a list of recipes whose work directories should not be removed.
  5354. See the ":ref:`ref-classes-rm-work`" section for more details.
  5355. :term:`ROOT_HOME`
  5356. Defines the root home directory. By default, this directory is set as
  5357. follows in the BitBake configuration file::
  5358. ROOT_HOME ??= "/home/root"
  5359. .. note::
  5360. This default value is likely used because some embedded solutions
  5361. prefer to have a read-only root filesystem and prefer to keep
  5362. writeable data in one place.
  5363. You can override the default by setting the variable in any layer or
  5364. in the ``local.conf`` file. Because the default is set using a "weak"
  5365. assignment (i.e. "??="), you can use either of the following forms to
  5366. define your override::
  5367. ROOT_HOME = "/root"
  5368. ROOT_HOME ?= "/root"
  5369. These
  5370. override examples use ``/root``, which is probably the most commonly
  5371. used override.
  5372. :term:`ROOTFS`
  5373. Indicates a filesystem image to include as the root filesystem.
  5374. The :term:`ROOTFS` variable is an optional variable used with the
  5375. :ref:`ref-classes-image-live` class.
  5376. :term:`ROOTFS_POSTINSTALL_COMMAND`
  5377. Specifies a list of functions to call after the OpenEmbedded build
  5378. system has installed packages. You can specify functions separated by
  5379. semicolons::
  5380. ROOTFS_POSTINSTALL_COMMAND += "function; ... "
  5381. If you need to pass the root filesystem path to a command within a
  5382. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5383. directory that becomes the root filesystem image. See the
  5384. :term:`IMAGE_ROOTFS` variable for more
  5385. information.
  5386. :term:`ROOTFS_POSTPROCESS_COMMAND`
  5387. Specifies a list of functions to call once the OpenEmbedded build
  5388. system has created the root filesystem. You can specify functions
  5389. separated by semicolons::
  5390. ROOTFS_POSTPROCESS_COMMAND += "function; ... "
  5391. If you need to pass the root filesystem path to a command within a
  5392. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5393. directory that becomes the root filesystem image. See the
  5394. :term:`IMAGE_ROOTFS` variable for more
  5395. information.
  5396. :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  5397. Specifies a list of functions to call after the OpenEmbedded build
  5398. system has removed unnecessary packages. When runtime package
  5399. management is disabled in the image, several packages are removed
  5400. including ``base-passwd``, ``shadow``, and ``update-alternatives``.
  5401. You can specify functions separated by semicolons::
  5402. ROOTFS_POSTUNINSTALL_COMMAND += "function; ... "
  5403. If you need to pass the root filesystem path to a command within a
  5404. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5405. directory that becomes the root filesystem image. See the
  5406. :term:`IMAGE_ROOTFS` variable for more
  5407. information.
  5408. :term:`ROOTFS_PREPROCESS_COMMAND`
  5409. Specifies a list of functions to call before the OpenEmbedded build
  5410. system has created the root filesystem. You can specify functions
  5411. separated by semicolons::
  5412. ROOTFS_PREPROCESS_COMMAND += "function; ... "
  5413. If you need to pass the root filesystem path to a command within a
  5414. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5415. directory that becomes the root filesystem image. See the
  5416. :term:`IMAGE_ROOTFS` variable for more
  5417. information.
  5418. :term:`RPROVIDES`
  5419. A list of package name aliases that a package also provides. These
  5420. aliases are useful for satisfying runtime dependencies of other
  5421. packages both during the build and on the target (as specified by
  5422. :term:`RDEPENDS`).
  5423. .. note::
  5424. A package's own name is implicitly already in its :term:`RPROVIDES` list.
  5425. As with all package-controlling variables, you must always use the
  5426. variable in conjunction with a package name override. Here is an
  5427. example::
  5428. RPROVIDES:${PN} = "widget-abi-2"
  5429. :term:`RRECOMMENDS`
  5430. A list of packages that extends the usability of a package being
  5431. built. The package being built does not depend on this list of
  5432. packages in order to successfully build, but rather uses them for
  5433. extended usability. To specify runtime dependencies for packages, see
  5434. the :term:`RDEPENDS` variable.
  5435. The package manager will automatically install the :term:`RRECOMMENDS`
  5436. list of packages when installing the built package. However, you can
  5437. prevent listed packages from being installed by using the
  5438. :term:`BAD_RECOMMENDATIONS`,
  5439. :term:`NO_RECOMMENDATIONS`, and
  5440. :term:`PACKAGE_EXCLUDE` variables.
  5441. Packages specified in :term:`RRECOMMENDS` need not actually be produced.
  5442. However, there must be a recipe providing each package, either
  5443. through the :term:`PACKAGES` or
  5444. :term:`PACKAGES_DYNAMIC` variables or the
  5445. :term:`RPROVIDES` variable, or an error will occur
  5446. during the build. If such a recipe does exist and the package is not
  5447. produced, the build continues without error.
  5448. Because the :term:`RRECOMMENDS` variable applies to packages being built,
  5449. you should always attach an override to the variable to specify the
  5450. particular package whose usability is being extended. For example,
  5451. suppose you are building a development package that is extended to
  5452. support wireless functionality. In this case, you would use the
  5453. following::
  5454. RRECOMMENDS:${PN}-dev += "wireless_package_name"
  5455. In the
  5456. example, the package name (``${PN}-dev``) must appear as it would in
  5457. the :term:`PACKAGES` namespace before any renaming of the output package
  5458. by classes such as :ref:`ref-classes-debian`.
  5459. BitBake, which the OpenEmbedded build system uses, supports
  5460. specifying versioned recommends. Although the syntax varies depending
  5461. on the packaging format, BitBake hides these differences from you.
  5462. Here is the general syntax to specify versions with the
  5463. :term:`RRECOMMENDS` variable::
  5464. RRECOMMENDS:${PN} = "package (operator version)"
  5465. For ``operator``, you can specify the following:
  5466. - =
  5467. - <
  5468. - >
  5469. - <=
  5470. - >=
  5471. For example, the following sets up a recommend on version 1.2 or
  5472. greater of the package ``foo``::
  5473. RRECOMMENDS:${PN} = "foo (>= 1.2)"
  5474. :term:`RREPLACES`
  5475. A list of packages replaced by a package. The package manager uses
  5476. this variable to determine which package should be installed to
  5477. replace other package(s) during an upgrade. In order to also have the
  5478. other package(s) removed at the same time, you must add the name of
  5479. the other package to the :term:`RCONFLICTS` variable.
  5480. As with all package-controlling variables, you must use this variable
  5481. in conjunction with a package name override. Here is an example::
  5482. RREPLACES:${PN} = "other_package_being_replaced"
  5483. BitBake, which the OpenEmbedded build system uses, supports
  5484. specifying versioned replacements. Although the syntax varies
  5485. depending on the packaging format, BitBake hides these differences
  5486. from you. Here is the general syntax to specify versions with the
  5487. :term:`RREPLACES` variable::
  5488. RREPLACES:${PN} = "package (operator version)"
  5489. For ``operator``, you can specify the following:
  5490. - =
  5491. - <
  5492. - >
  5493. - <=
  5494. - >=
  5495. For example, the following sets up a replacement using version 1.2
  5496. or greater of the package ``foo``::
  5497. RREPLACES:${PN} = "foo (>= 1.2)"
  5498. :term:`RSUGGESTS`
  5499. A list of additional packages that you can suggest for installation
  5500. by the package manager at the time a package is installed. Not all
  5501. package managers support this functionality.
  5502. As with all package-controlling variables, you must always use this
  5503. variable in conjunction with a package name override. Here is an
  5504. example::
  5505. RSUGGESTS:${PN} = "useful_package another_package"
  5506. :term:`RUST_CHANNEL`
  5507. Specifies which version of Rust to build - "stable", "beta" or "nightly".
  5508. The default value is "stable". Set this at your own risk, as values other
  5509. than "stable" are not guaranteed to work at a given time.
  5510. :term:`S`
  5511. The location in the :term:`Build Directory` where
  5512. unpacked recipe source code resides. By default, this directory is
  5513. ``${``\ :term:`WORKDIR`\ ``}/${``\ :term:`BPN`\ ``}-${``\ :term:`PV`\ ``}``,
  5514. where ``${BPN}`` is the base recipe name and ``${PV}`` is the recipe
  5515. version. If the source tarball extracts the code to a directory named
  5516. anything other than ``${BPN}-${PV}``, or if the source code is
  5517. fetched from an SCM such as Git or Subversion, then you must set
  5518. :term:`S` in the recipe so that the OpenEmbedded build system knows where
  5519. to find the unpacked source.
  5520. As an example, assume a :term:`Source Directory`
  5521. top-level folder named ``poky`` and a default :term:`Build Directory` at
  5522. ``poky/build``. In this case, the work directory the build system
  5523. uses to keep the unpacked recipe for ``db`` is the following::
  5524. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  5525. The unpacked source code resides in the ``db-5.1.19`` folder.
  5526. This next example assumes a Git repository. By default, Git
  5527. repositories are cloned to ``${WORKDIR}/git`` during
  5528. :ref:`ref-tasks-fetch`. Since this path is different
  5529. from the default value of :term:`S`, you must set it specifically so the
  5530. source can be located::
  5531. SRC_URI = "git://path/to/repo.git;branch=main"
  5532. S = "${WORKDIR}/git"
  5533. :term:`SANITY_REQUIRED_UTILITIES`
  5534. Specifies a list of command-line utilities that should be checked for
  5535. during the initial sanity checking process when running BitBake. If
  5536. any of the utilities are not installed on the build host, then
  5537. BitBake immediately exits with an error.
  5538. :term:`SANITY_TESTED_DISTROS`
  5539. A list of the host distribution identifiers that the build system has
  5540. been tested against. Identifiers consist of the host distributor ID
  5541. followed by the release, as reported by the ``lsb_release`` tool or
  5542. as read from ``/etc/lsb-release``. Separate the list items with
  5543. explicit newline characters (``\n``). If :term:`SANITY_TESTED_DISTROS` is
  5544. not empty and the current value of
  5545. :term:`NATIVELSBSTRING` does not appear in the
  5546. list, then the build system reports a warning that indicates the
  5547. current host distribution has not been tested as a build host.
  5548. :term:`SDK_ARCH`
  5549. The target architecture for the SDK. Typically, you do not directly
  5550. set this variable. Instead, use :term:`SDKMACHINE`.
  5551. :term:`SDK_ARCHIVE_TYPE`
  5552. Specifies the type of archive to create for the SDK. Valid values:
  5553. - ``tar.xz`` (default)
  5554. - ``zip``
  5555. Only one archive type can be specified.
  5556. :term:`SDK_BUILDINFO_FILE`
  5557. When using the :ref:`ref-classes-image-buildinfo` class,
  5558. specifies the file in the SDK to write the build information into. The
  5559. default value is "``/buildinfo``".
  5560. :term:`SDK_CUSTOM_TEMPLATECONF`
  5561. When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to
  5562. "1" and a ``conf/templateconf.cfg`` file exists in the :term:`Build Directory`
  5563. (:term:`TOPDIR`) then this will be copied into the SDK.
  5564. :term:`SDK_DEPLOY`
  5565. The directory set up and used by the
  5566. :ref:`populate_sdk_base <ref-classes-populate-sdk>` class to which the
  5567. SDK is deployed. The :ref:`populate_sdk_base <ref-classes-populate-sdk>`
  5568. class defines :term:`SDK_DEPLOY` as follows::
  5569. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  5570. :term:`SDK_DIR`
  5571. The parent directory used by the OpenEmbedded build system when
  5572. creating SDK output. The
  5573. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines
  5574. the variable as follows::
  5575. SDK_DIR = "${WORKDIR}/sdk"
  5576. .. note::
  5577. The :term:`SDK_DIR` directory is a temporary directory as it is part of
  5578. :term:`WORKDIR`. The final output directory is :term:`SDK_DEPLOY`.
  5579. :term:`SDK_EXT_TYPE`
  5580. Controls whether or not shared state artifacts are copied into the
  5581. extensible SDK. The default value of "full" copies all of the
  5582. required shared state artifacts into the extensible SDK. The value
  5583. "minimal" leaves these artifacts out of the SDK.
  5584. .. note::
  5585. If you set the variable to "minimal", you need to ensure
  5586. :term:`SSTATE_MIRRORS` is set in the SDK's configuration to enable the
  5587. artifacts to be fetched as needed.
  5588. :term:`SDK_HOST_MANIFEST`
  5589. The manifest file for the host part of the SDK. This file lists all
  5590. the installed packages that make up the host part of the SDK. The
  5591. file contains package information on a line-per-package basis as
  5592. follows::
  5593. packagename packagearch version
  5594. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5595. defines the manifest file as follows::
  5596. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  5597. The location is derived using the :term:`SDK_DEPLOY` and
  5598. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5599. :term:`SDK_INCLUDE_PKGDATA`
  5600. When set to "1", specifies to include the packagedata for all recipes
  5601. in the "world" target in the extensible SDK. Including this data
  5602. allows the ``devtool search`` command to find these recipes in search
  5603. results, as well as allows the ``devtool add`` command to map
  5604. dependencies more effectively.
  5605. .. note::
  5606. Enabling the :term:`SDK_INCLUDE_PKGDATA`
  5607. variable significantly increases build time because all of world
  5608. needs to be built. Enabling the variable also slightly increases
  5609. the size of the extensible SDK.
  5610. :term:`SDK_INCLUDE_TOOLCHAIN`
  5611. When set to "1", specifies to include the toolchain in the extensible
  5612. SDK. Including the toolchain is useful particularly when
  5613. :term:`SDK_EXT_TYPE` is set to "minimal" to keep
  5614. the SDK reasonably small but you still want to provide a usable
  5615. toolchain. For example, suppose you want to use the toolchain from an
  5616. IDE or from other tools and you do not want to perform additional
  5617. steps to install the toolchain.
  5618. The :term:`SDK_INCLUDE_TOOLCHAIN` variable defaults to "0" if
  5619. :term:`SDK_EXT_TYPE` is set to "minimal", and defaults to "1" if
  5620. :term:`SDK_EXT_TYPE` is set to "full".
  5621. :term:`SDK_NAME`
  5622. The base name for SDK output files. The name is derived from the
  5623. :term:`DISTRO`, :term:`TCLIBC`,
  5624. :term:`SDK_ARCH`,
  5625. :term:`IMAGE_BASENAME`, and
  5626. :term:`TUNE_PKGARCH` variables::
  5627. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"
  5628. :term:`SDK_OS`
  5629. Specifies the operating system for which the SDK will be built. The
  5630. default value is the value of :term:`BUILD_OS`.
  5631. :term:`SDK_OUTPUT`
  5632. The location used by the OpenEmbedded build system when creating SDK
  5633. output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`
  5634. class defines the variable as follows::
  5635. SDK_DIR = "${WORKDIR}/sdk"
  5636. SDK_OUTPUT = "${SDK_DIR}/image"
  5637. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  5638. .. note::
  5639. The :term:`SDK_OUTPUT` directory is a temporary directory as it is part of
  5640. :term:`WORKDIR` by way of :term:`SDK_DIR`. The final output directory is
  5641. :term:`SDK_DEPLOY`.
  5642. :term:`SDK_PACKAGE_ARCHS`
  5643. Specifies a list of architectures compatible with the SDK machine.
  5644. This variable is set automatically and should not normally be
  5645. hand-edited. Entries are separated using spaces and listed in order
  5646. of priority. The default value for :term:`SDK_PACKAGE_ARCHS` is "all any
  5647. noarch ${SDK_ARCH}-${SDKPKGSUFFIX}".
  5648. :term:`SDK_POSTPROCESS_COMMAND`
  5649. Specifies a list of functions to call once the OpenEmbedded build
  5650. system creates the SDK. You can specify functions separated by
  5651. semicolons: SDK_POSTPROCESS_COMMAND += "function; ... "
  5652. If you need to pass an SDK path to a command within a function, you
  5653. can use ``${SDK_DIR}``, which points to the parent directory used by
  5654. the OpenEmbedded build system when creating SDK output. See the
  5655. :term:`SDK_DIR` variable for more information.
  5656. :term:`SDK_PREFIX`
  5657. The toolchain binary prefix used for
  5658. :ref:`ref-classes-nativesdk` recipes. The
  5659. OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the
  5660. :term:`TARGET_PREFIX` when building
  5661. ``nativesdk`` recipes. The default value is "${SDK_SYS}-".
  5662. :term:`SDK_RECRDEP_TASKS`
  5663. A list of shared state tasks added to the extensible SDK. By default,
  5664. the following tasks are added:
  5665. - :ref:`ref-tasks-populate_lic`
  5666. - :ref:`ref-tasks-package_qa`
  5667. - :ref:`ref-tasks-populate_sysroot`
  5668. - :ref:`ref-tasks-deploy`
  5669. Despite the default value of "" for the
  5670. :term:`SDK_RECRDEP_TASKS` variable, the above four tasks are always added
  5671. to the SDK. To specify tasks beyond these four, you need to use the
  5672. :term:`SDK_RECRDEP_TASKS` variable (e.g. you are defining additional
  5673. tasks that are needed in order to build
  5674. :term:`SDK_TARGETS`).
  5675. :term:`SDK_SYS`
  5676. Specifies the system, including the architecture and the operating
  5677. system, for which the SDK will be built.
  5678. The OpenEmbedded build system automatically sets this variable based
  5679. on :term:`SDK_ARCH`,
  5680. :term:`SDK_VENDOR`, and
  5681. :term:`SDK_OS`. You do not need to set the :term:`SDK_SYS`
  5682. variable yourself.
  5683. :term:`SDK_TARGET_MANIFEST`
  5684. The manifest file for the target part of the SDK. This file lists all
  5685. the installed packages that make up the target part of the SDK. The
  5686. file contains package information on a line-per-package basis as
  5687. follows::
  5688. packagename packagearch version
  5689. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5690. defines the manifest file as follows::
  5691. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  5692. The location is derived using the :term:`SDK_DEPLOY` and
  5693. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5694. :term:`SDK_TARGETS`
  5695. A list of targets to install from shared state as part of the
  5696. standard or extensible SDK installation. The default value is "${PN}"
  5697. (i.e. the image from which the SDK is built).
  5698. The :term:`SDK_TARGETS` variable is an internal variable and typically
  5699. would not be changed.
  5700. :term:`SDK_TITLE`
  5701. The title to be printed when running the SDK installer. By default,
  5702. this title is based on the :term:`DISTRO_NAME` or
  5703. :term:`DISTRO` variable and is set in the
  5704. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5705. follows::
  5706. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  5707. For the default distribution "poky",
  5708. :term:`SDK_TITLE` is set to "Poky (Yocto Project Reference Distro)".
  5709. For information on how to change this default title, see the
  5710. ":ref:`sdk-manual/appendix-customizing:changing the extensible sdk installer title`"
  5711. section in the Yocto Project Application Development and the
  5712. Extensible Software Development Kit (eSDK) manual.
  5713. :term:`SDK_TOOLCHAIN_LANGS`
  5714. Specifies programming languages to support in the SDK, as a
  5715. space-separated list. Currently supported items are ``rust`` and ``go``.
  5716. :term:`SDK_UPDATE_URL`
  5717. An optional URL for an update server for the extensible SDK. If set,
  5718. the value is used as the default update server when running
  5719. ``devtool sdk-update`` within the extensible SDK.
  5720. :term:`SDK_VENDOR`
  5721. Specifies the name of the SDK vendor.
  5722. :term:`SDK_VERSION`
  5723. Specifies the version of the SDK. The Poky distribution configuration file
  5724. (``/meta-poky/conf/distro/poky.conf``) sets the default
  5725. :term:`SDK_VERSION` as follows::
  5726. SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}"
  5727. For additional information, see the
  5728. :term:`DISTRO_VERSION` and
  5729. :term:`METADATA_REVISION` variables.
  5730. :term:`SDK_ZIP_OPTIONS`
  5731. Specifies extra options to pass to the ``zip`` command when zipping the SDK
  5732. (i.e. when :term:`SDK_ARCHIVE_TYPE` is set to "zip"). The default value is
  5733. "-y".
  5734. :term:`SDKEXTPATH`
  5735. The default installation directory for the Extensible SDK. By
  5736. default, this directory is based on the :term:`DISTRO`
  5737. variable and is set in the
  5738. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5739. follows::
  5740. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  5741. For the
  5742. default distribution "poky", the :term:`SDKEXTPATH` is set to "poky_sdk".
  5743. For information on how to change this default directory, see the
  5744. ":ref:`sdk-manual/appendix-customizing:changing the default sdk installation directory`"
  5745. section in the Yocto Project Application Development and the
  5746. Extensible Software Development Kit (eSDK) manual.
  5747. :term:`SDKIMAGE_FEATURES`
  5748. Equivalent to :term:`IMAGE_FEATURES`. However, this variable applies to
  5749. the SDK generated from an image using the following command::
  5750. $ bitbake -c populate_sdk imagename
  5751. :term:`SDKMACHINE`
  5752. The machine for which the SDK is built. In other words, the SDK is built
  5753. such that it runs on the target you specify with the :term:`SDKMACHINE`
  5754. value. The value points to a corresponding ``.conf`` file under
  5755. ``conf/machine-sdk/`` in the enabled layers, for example ``aarch64``,
  5756. ``i586``, ``i686``, ``ppc64``, ``ppc64le``, and ``x86_64`` are
  5757. :oe_git:`available in OpenEmbedded-Core </openembedded-core/tree/meta/conf/machine-sdk>`.
  5758. The variable defaults to :term:`BUILD_ARCH` so that SDKs are built for the
  5759. architecture of the build machine.
  5760. .. note::
  5761. You cannot set the :term:`SDKMACHINE`
  5762. variable in your distribution configuration file. If you do, the
  5763. configuration will not take effect.
  5764. :term:`SDKPATH`
  5765. Defines the path offered to the user for installation of the SDK that
  5766. is generated by the OpenEmbedded build system. The path appears as
  5767. the default location for installing the SDK when you run the SDK's
  5768. installation script. You can override the offered path when you run
  5769. the script.
  5770. :term:`SDKTARGETSYSROOT`
  5771. The full path to the sysroot used for cross-compilation within an SDK
  5772. as it will be when installed into the default
  5773. :term:`SDKPATH`.
  5774. :term:`SECTION`
  5775. The section in which packages should be categorized. Package
  5776. management utilities can make use of this variable.
  5777. :term:`SELECTED_OPTIMIZATION`
  5778. Specifies the optimization flags passed to the C compiler when
  5779. building for the target. The flags are passed through the default
  5780. value of the :term:`TARGET_CFLAGS` variable.
  5781. The :term:`SELECTED_OPTIMIZATION` variable takes the value of
  5782. :term:`FULL_OPTIMIZATION` unless :term:`DEBUG_BUILD` = "1", in which
  5783. case the value of :term:`DEBUG_OPTIMIZATION` is used.
  5784. :term:`SERIAL_CONSOLES`
  5785. Defines a serial console (TTY) to enable using
  5786. :wikipedia:`getty <Getty_(Unix)>`. Provide a value that specifies the
  5787. baud rate followed by the TTY device name separated by a semicolon.
  5788. Use spaces to separate multiple devices::
  5789. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  5790. :term:`SERIAL_CONSOLES_CHECK`
  5791. Specifies serial consoles, which must be listed in
  5792. :term:`SERIAL_CONSOLES`, to check against
  5793. ``/proc/console`` before enabling them using getty. This variable
  5794. allows aliasing in the format: <device>:<alias>. If a device was
  5795. listed as "sclp_line0" in ``/dev/`` and "ttyS0" was listed in
  5796. ``/proc/console``, you would do the following::
  5797. SERIAL_CONSOLES_CHECK = "slcp_line0:ttyS0"
  5798. This variable is currently only supported with SysVinit (i.e. not
  5799. with systemd). Note that :term:`SERIAL_CONSOLES_CHECK` also requires
  5800. ``/etc/inittab`` to be writable when used with SysVinit. This makes it
  5801. incompatible with customizations such as the following::
  5802. EXTRA_IMAGE_FEATURES += "read-only-rootfs"
  5803. :term:`SETUPTOOLS_BUILD_ARGS`
  5804. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5805. class, this variable can be used to specify additional arguments to be
  5806. passed to ``setup.py build`` in the ``setuptools3_do_compile()`` task.
  5807. :term:`SETUPTOOLS_INSTALL_ARGS`
  5808. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5809. class, this variable can be used to specify additional arguments to be
  5810. passed to ``setup.py install`` in the ``setuptools3_do_install()`` task.
  5811. :term:`SETUPTOOLS_SETUP_PATH`
  5812. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5813. class, this variable should be used to specify the directory in which
  5814. the ``setup.py`` file is located if it is not at the root of the source
  5815. tree (as specified by :term:`S`). For example, in a recipe where the
  5816. sources are fetched from a Git repository and ``setup.py`` is in a
  5817. ``python/pythonmodule`` subdirectory, you would have this::
  5818. S = "${WORKDIR}/git"
  5819. SETUPTOOLS_SETUP_PATH = "${S}/python/pythonmodule"
  5820. :term:`SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS`
  5821. A list of recipe dependencies that should not be used to determine
  5822. signatures of tasks from one recipe when they depend on tasks from
  5823. another recipe. For example::
  5824. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  5825. In the previous example, ``intone`` depends on ``mplayer2``.
  5826. You can use the special token ``"*"`` on the left-hand side of the
  5827. dependency to match all recipes except the one on the right-hand
  5828. side. Here is an example::
  5829. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  5830. In the previous example, all recipes except ``quilt-native`` ignore
  5831. task signatures from the ``quilt-native`` recipe when determining
  5832. their task signatures.
  5833. Use of this variable is one mechanism to remove dependencies that
  5834. affect task signatures and thus force rebuilds when a recipe changes.
  5835. .. note::
  5836. If you add an inappropriate dependency for a recipe relationship,
  5837. the software might break during runtime if the interface of the
  5838. second recipe was changed after the first recipe had been built.
  5839. :term:`SIGGEN_EXCLUDERECIPES_ABISAFE`
  5840. A list of recipes that are completely stable and will never change.
  5841. The ABI for the recipes in the list are presented by output from the
  5842. tasks run to build the recipe. Use of this variable is one way to
  5843. remove dependencies from one recipe on another that affect task
  5844. signatures and thus force rebuilds when the recipe changes.
  5845. .. note::
  5846. If you add an inappropriate variable to this list, the software
  5847. might break at runtime if the interface of the recipe was changed
  5848. after the other had been built.
  5849. :term:`SITEINFO_BITS`
  5850. Specifies the number of bits for the target system CPU. The value
  5851. should be either "32" or "64".
  5852. :term:`SITEINFO_ENDIANNESS`
  5853. Specifies the endian byte order of the target system. The value
  5854. should be either "le" for little-endian or "be" for big-endian.
  5855. :term:`SKIP_FILEDEPS`
  5856. Enables removal of all files from the "Provides" section of an RPM
  5857. package. Removal of these files is required for packages containing
  5858. prebuilt binaries and libraries such as ``libstdc++`` and ``glibc``.
  5859. To enable file removal, set the variable to "1" in your
  5860. ``conf/local.conf`` configuration file in your:
  5861. :term:`Build Directory`::
  5862. SKIP_FILEDEPS = "1"
  5863. :term:`SKIP_RECIPE`
  5864. Used to prevent the OpenEmbedded build system from building a given
  5865. recipe. Specify the :term:`PN` value as a variable flag (``varflag``)
  5866. and provide a reason, which will be reported when attempting to
  5867. build the recipe.
  5868. To prevent a recipe from being built, use the :term:`SKIP_RECIPE`
  5869. variable in your ``local.conf`` file or distribution configuration.
  5870. Here is an example which prevents ``myrecipe`` from being built::
  5871. SKIP_RECIPE[myrecipe] = "Not supported by our organization."
  5872. :term:`SOC_FAMILY`
  5873. A colon-separated list grouping together machines based upon the same
  5874. family of SoC (System On Chip). You typically set this variable in a
  5875. common ``.inc`` file that you include in the configuration files of all
  5876. the machines.
  5877. .. note::
  5878. You must include ``conf/machine/include/soc-family.inc`` for this
  5879. variable to appear in :term:`MACHINEOVERRIDES`.
  5880. :term:`SOLIBS`
  5881. Defines the suffix for shared libraries used on the target platform.
  5882. By default, this suffix is ".so.*" for all Linux-based systems and is
  5883. defined in the ``meta/conf/bitbake.conf`` configuration file.
  5884. You will see this variable referenced in the default values of
  5885. ``FILES:${PN}``.
  5886. :term:`SOLIBSDEV`
  5887. Defines the suffix for the development symbolic link (symlink) for
  5888. shared libraries on the target platform. By default, this suffix is
  5889. ".so" for Linux-based systems and is defined in the
  5890. ``meta/conf/bitbake.conf`` configuration file.
  5891. You will see this variable referenced in the default values of
  5892. ``FILES:${PN}-dev``.
  5893. :term:`SOURCE_DATE_EPOCH`
  5894. This defines a date expressed in number of seconds since
  5895. the UNIX EPOCH (01 Jan 1970 00:00:00 UTC), which is used by
  5896. multiple build systems to force a timestamp in built binaries.
  5897. Many upstream projects already support this variable.
  5898. You will find more details in the `official specifications
  5899. <https://reproducible-builds.org/specs/source-date-epoch/>`__.
  5900. A value for each recipe is computed from the sources by
  5901. :oe_git:`meta/lib/oe/reproducible.py </openembedded-core/tree/meta/lib/oe/reproducible.py>`.
  5902. If a recipe wishes to override the default behavior, it should set its
  5903. own :term:`SOURCE_DATE_EPOCH` value::
  5904. SOURCE_DATE_EPOCH = "1613559011"
  5905. :term:`SOURCE_MIRROR_FETCH`
  5906. When you are fetching files to create a mirror of sources (i.e.
  5907. creating a source mirror), setting :term:`SOURCE_MIRROR_FETCH` to "1" in
  5908. your ``local.conf`` configuration file ensures the source for all
  5909. recipes are fetched regardless of whether or not a recipe is
  5910. compatible with the configuration. A recipe is considered
  5911. incompatible with the currently configured machine when either or
  5912. both the :term:`COMPATIBLE_MACHINE`
  5913. variable and :term:`COMPATIBLE_HOST` variables
  5914. specify compatibility with a machine other than that of the current
  5915. machine or host.
  5916. .. note::
  5917. Do not set the :term:`SOURCE_MIRROR_FETCH`
  5918. variable unless you are creating a source mirror. In other words,
  5919. do not set the variable during a normal build.
  5920. :term:`SOURCE_MIRROR_URL`
  5921. Defines your own :term:`PREMIRRORS` from which to
  5922. first fetch source before attempting to fetch from the upstream
  5923. specified in :term:`SRC_URI`.
  5924. To use this variable, you must globally inherit the
  5925. :ref:`ref-classes-own-mirrors` class and then provide
  5926. the URL to your mirrors. Here is the general syntax::
  5927. INHERIT += "own-mirrors"
  5928. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror"
  5929. .. note::
  5930. You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
  5931. :term:`SPDX_ARCHIVE_PACKAGED`
  5932. This option allows to add to :term:`SPDX` output compressed archives
  5933. of the files in the generated target packages.
  5934. Such archives are available in
  5935. ``tmp/deploy/spdx/MACHINE/packages/packagename.tar.zst``
  5936. under the :term:`Build Directory`.
  5937. Enable this option as follows::
  5938. SPDX_ARCHIVE_PACKAGED = "1"
  5939. According to our tests on release 4.1 "langdale", building
  5940. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this
  5941. option multiplied the size of the ``tmp/deploy/spdx`` directory by a
  5942. factor of 13 (+1.6 GiB for this image), compared to just using the
  5943. :ref:`ref-classes-create-spdx` class with no option.
  5944. Note that this option doesn't increase the size of :term:`SPDX`
  5945. files in ``tmp/deploy/images/MACHINE``.
  5946. :term:`SPDX_ARCHIVE_SOURCES`
  5947. This option allows to add to :term:`SPDX` output compressed archives
  5948. of the sources for packages installed on the target. It currently
  5949. only works when :term:`SPDX_INCLUDE_SOURCES` is set.
  5950. This is one way of fulfilling "source code access" license
  5951. requirements.
  5952. Such source archives are available in
  5953. ``tmp/deploy/spdx/MACHINE/recipes/recipe-packagename.tar.zst``
  5954. under the :term:`Build Directory`.
  5955. Enable this option as follows::
  5956. SPDX_INCLUDE_SOURCES = "1"
  5957. SPDX_ARCHIVE_SOURCES = "1"
  5958. According to our tests on release 4.1 "langdale", building
  5959. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  5960. these options multiplied the size of the ``tmp/deploy/spdx``
  5961. directory by a factor of 11 (+1.4 GiB for this image),
  5962. compared to just using the :ref:`ref-classes-create-spdx`
  5963. class with no option.
  5964. Note that using this option only marginally increases the size
  5965. of the :term:`SPDX` output in ``tmp/deploy/images/MACHINE/``
  5966. (+ 0.07\% with the tested image), compared to just enabling
  5967. :term:`SPDX_INCLUDE_SOURCES`.
  5968. :term:`SPDX_CUSTOM_ANNOTATION_VARS`
  5969. This option allows to associate `SPDX annotations
  5970. <https://spdx.github.io/spdx-spec/v2.3/annotations/>`__ to a recipe,
  5971. using the values of variables in the recipe::
  5972. ANNOTATION1 = "First annotation for recipe"
  5973. ANNOTATION2 = "Second annotation for recipe"
  5974. SPDX_CUSTOM_ANNOTATION_VARS = "ANNOTATION1 ANNOTATION2"
  5975. This will add a new block to the recipe ``.sdpx.json`` output::
  5976. "annotations": [
  5977. {
  5978. "annotationDate": "2023-04-18T08:32:12Z",
  5979. "annotationType": "OTHER",
  5980. "annotator": "Tool: oe-spdx-creator - 1.0",
  5981. "comment": "ANNOTATION1=First annotation for recipe"
  5982. },
  5983. {
  5984. "annotationDate": "2023-04-18T08:32:12Z",
  5985. "annotationType": "OTHER",
  5986. "annotator": "Tool: oe-spdx-creator - 1.0",
  5987. "comment": "ANNOTATION2=Second annotation for recipe"
  5988. }
  5989. ],
  5990. :term:`SPDX_INCLUDE_SOURCES`
  5991. This option allows to add a description of the source files used to build
  5992. the host tools and the target packages, to the ``spdx.json`` files in
  5993. ``tmp/deploy/spdx/MACHINE/recipes/`` under the :term:`Build Directory`.
  5994. As a consequence, the ``spdx.json`` files under the ``by-namespace`` and
  5995. ``packages`` subdirectories in ``tmp/deploy/spdx/MACHINE`` are also
  5996. modified to include references to such source file descriptions.
  5997. Enable this option as follows::
  5998. SPDX_INCLUDE_SOURCES = "1"
  5999. According to our tests on release 4.1 "langdale", building
  6000. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6001. this option multiplied the total size of the ``tmp/deploy/spdx``
  6002. directory by a factor of 3 (+291 MiB for this image),
  6003. and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in
  6004. ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this
  6005. image), compared to just using the :ref:`ref-classes-create-spdx` class
  6006. with no option.
  6007. :term:`SPDX_PRETTY`
  6008. This option makes the SPDX output more human-readable, using
  6009. identation and newlines, instead of the default output in a
  6010. single line::
  6011. SPDX_PRETTY = "1"
  6012. The generated SPDX files are approximately 20% bigger, but
  6013. this option is recommended if you want to inspect the SPDX
  6014. output files with a text editor.
  6015. :term:`SPDXLICENSEMAP`
  6016. Maps commonly used license names to their SPDX counterparts found in
  6017. ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP`
  6018. mappings, see the ``meta/conf/licenses.conf`` file.
  6019. For additional information, see the :term:`LICENSE`
  6020. variable.
  6021. :term:`SPECIAL_PKGSUFFIX`
  6022. A list of prefixes for :term:`PN` used by the OpenEmbedded
  6023. build system to create variants of recipes or packages. The list
  6024. specifies the prefixes to strip off during certain circumstances such
  6025. as the generation of the :term:`BPN` variable.
  6026. :term:`SPL_BINARY`
  6027. The file type for the Secondary Program Loader (SPL). Some devices
  6028. use an SPL from which to boot (e.g. the BeagleBone development
  6029. board). For such cases, you can declare the file type of the SPL
  6030. binary in the ``u-boot.inc`` include file, which is used in the
  6031. U-Boot recipe.
  6032. The SPL file type is set to "null" by default in the ``u-boot.inc``
  6033. file as follows::
  6034. # Some versions of u-boot build an SPL (Second Program Loader) image that
  6035. # should be packaged along with the u-boot binary as well as placed in the
  6036. # deploy directory. For those versions they can set the following variables
  6037. # to allow packaging the SPL.
  6038. SPL_BINARY ?= ""
  6039. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  6040. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  6041. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  6042. The :term:`SPL_BINARY` variable helps form
  6043. various ``SPL_*`` variables used by the OpenEmbedded build system.
  6044. See the BeagleBone machine configuration example in the
  6045. ":ref:`dev-manual/layers:adding a layer using the \`\`bitbake-layers\`\` script`"
  6046. section in the Yocto Project Board Support Package Developer's Guide
  6047. for additional information.
  6048. :term:`SPL_MKIMAGE_DTCOPTS`
  6049. Options for the device tree compiler passed to ``mkimage -D`` feature
  6050. while creating a FIT image with the :ref:`ref-classes-uboot-sign`
  6051. class. If :term:`SPL_MKIMAGE_DTCOPTS` is not set then the
  6052. :ref:`ref-classes-uboot-sign` class will not pass the ``-D`` option
  6053. to ``mkimage``.
  6054. The default value is set to "" by the :ref:`ref-classes-uboot-config`
  6055. class.
  6056. :term:`SPL_SIGN_ENABLE`
  6057. Enable signing of the U-Boot FIT image. The default value is "0".
  6058. This variable is used by the :ref:`ref-classes-uboot-sign` class.
  6059. :term:`SPL_SIGN_KEYDIR`
  6060. Location of the directory containing the RSA key and certificate used for
  6061. signing the U-Boot FIT image, used by the :ref:`ref-classes-uboot-sign`
  6062. class.
  6063. :term:`SPL_SIGN_KEYNAME`
  6064. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  6065. for signing U-Boot FIT image stored in the :term:`SPL_SIGN_KEYDIR`
  6066. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  6067. certificate stored in the :term:`SPL_SIGN_KEYDIR` directory, you will
  6068. have to set :term:`SPL_SIGN_KEYNAME` to ``dev``.
  6069. :term:`SPLASH`
  6070. This variable, used by the :ref:`ref-classes-image` class, allows
  6071. to choose splashscreen applications. Set it to the names of packages
  6072. for such applications to use. This variable is set by default to
  6073. ``psplash``.
  6074. :term:`SPLASH_IMAGES`
  6075. This variable, used by the ``psplash`` recipe, allows to customize
  6076. the default splashscreen image.
  6077. Specified images in PNG format are converted to ``.h`` files by the recipe,
  6078. and are included in the ``psplash`` binary, so you won't find them in
  6079. the root filesystem.
  6080. To make such a change, it is recommended to customize the
  6081. ``psplash`` recipe in a custom layer. Here is an example structure for
  6082. an ``ACME`` board::
  6083. meta-acme/recipes-core/psplash
  6084. ├── files
  6085. │   └── logo-acme.png
  6086. └── psplash_%.bbappend
  6087. And here are the contents of the ``psplash_%.bbappend`` file in
  6088. this example::
  6089. SPLASH_IMAGES = "file://logo-acme.png;outsuffix=default"
  6090. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  6091. You could even add specific configuration options for ``psplash``,
  6092. for example::
  6093. EXTRA_OECONF += "--disable-startup-msg --enable-img-fullscreen"
  6094. For information on append files, see the
  6095. ":ref:`dev-manual/layers:appending other layers metadata with your layer`"
  6096. section.
  6097. :term:`SRCREV_FORMAT`
  6098. See :term:`bitbake:SRCREV_FORMAT` in the BitBake manual.
  6099. :term:`SRC_URI`
  6100. See the BitBake manual for the initial description for this variable:
  6101. :term:`bitbake:SRC_URI`.
  6102. The following features are added by OpenEmbedded and the Yocto Project.
  6103. There are standard and recipe-specific options. Here are standard ones:
  6104. - ``apply`` --- whether to apply the patch or not. The default
  6105. action is to apply the patch.
  6106. - ``striplevel`` --- which striplevel to use when applying the
  6107. patch. The default level is 1.
  6108. - ``patchdir`` --- specifies the directory in which the patch should
  6109. be applied. The default is ``${``\ :term:`S`\ ``}``.
  6110. Here are options specific to recipes building code from a revision
  6111. control system:
  6112. - ``mindate`` --- apply the patch only if
  6113. :term:`SRCDATE` is equal to or greater than
  6114. ``mindate``.
  6115. - ``maxdate`` --- apply the patch only if :term:`SRCDATE` is not later
  6116. than ``maxdate``.
  6117. - ``minrev`` --- apply the patch only if :term:`SRCREV` is equal to or
  6118. greater than ``minrev``.
  6119. - ``maxrev`` --- apply the patch only if :term:`SRCREV` is not later
  6120. than ``maxrev``.
  6121. - ``rev`` --- apply the patch only if :term:`SRCREV` is equal to
  6122. ``rev``.
  6123. - ``notrev`` --- apply the patch only if :term:`SRCREV` is not equal to
  6124. ``rev``.
  6125. .. note::
  6126. If you want the build system to pick up files specified through
  6127. a :term:`SRC_URI` statement from your append file, you need to be
  6128. sure to extend the :term:`FILESPATH` variable by also using the
  6129. :term:`FILESEXTRAPATHS` variable from within your append file.
  6130. :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH`
  6131. By default, the OpenEmbedded build system automatically detects
  6132. whether :term:`SRC_URI` contains files that are machine-specific. If so,
  6133. the build system automatically changes :term:`PACKAGE_ARCH`. Setting this
  6134. variable to "0" disables this behavior.
  6135. :term:`SRCDATE`
  6136. The date of the source code used to build the package. This variable
  6137. applies only if the source was fetched from a Source Code Manager
  6138. (SCM).
  6139. :term:`SRCPV`
  6140. Returns the version string of the current package. This string is
  6141. used to help define the value of :term:`PV`.
  6142. The :term:`SRCPV` variable is defined in the ``meta/conf/bitbake.conf``
  6143. configuration file in the :term:`Source Directory` as
  6144. follows::
  6145. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  6146. Recipes that need to define :term:`PV` do so with the help of the
  6147. :term:`SRCPV`. For example, the ``ofono`` recipe (``ofono_git.bb``)
  6148. located in ``meta/recipes-connectivity`` in the Source Directory
  6149. defines :term:`PV` as follows::
  6150. PV = "0.12-git${SRCPV}"
  6151. :term:`SRCREV`
  6152. The revision of the source code used to build the package. This
  6153. variable applies to Subversion, Git, Mercurial, and Bazaar only. Note
  6154. that if you want to build a fixed revision and you want to avoid
  6155. performing a query on the remote repository every time BitBake parses
  6156. your recipe, you should specify a :term:`SRCREV` that is a full revision
  6157. identifier (e.g. the full SHA hash in git) and not just a tag.
  6158. .. note::
  6159. For information on limitations when inheriting the latest revision
  6160. of software using :term:`SRCREV`, see the :term:`AUTOREV` variable
  6161. description and the
  6162. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  6163. section, which is in the Yocto Project Development Tasks Manual.
  6164. :term:`SRCTREECOVEREDTASKS`
  6165. A list of tasks that are typically not relevant (and therefore skipped)
  6166. when building using the :ref:`ref-classes-externalsrc`
  6167. class. The default value as set in that class file is the set of tasks
  6168. that are rarely needed when using external source::
  6169. SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
  6170. The notable exception is when processing external kernel source as
  6171. defined in the :ref:`ref-classes-kernel-yocto` class file (formatted for
  6172. aesthetics)::
  6173. SRCTREECOVEREDTASKS += "\
  6174. do_validate_branches \
  6175. do_kernel_configcheck \
  6176. do_kernel_checkout \
  6177. do_fetch \
  6178. do_unpack \
  6179. do_patch \
  6180. "
  6181. See the associated :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD`
  6182. variables for more information.
  6183. :term:`SSTATE_DIR`
  6184. The directory for the shared state cache.
  6185. :term:`SSTATE_EXCLUDEDEPS_SYSROOT`
  6186. This variable allows to specify indirect dependencies to exclude
  6187. from sysroots, for example to avoid the situations when a dependency on
  6188. any ``-native`` recipe will pull in all dependencies of that recipe
  6189. in the recipe sysroot. This behaviour might not always be wanted,
  6190. for example when that ``-native`` recipe depends on build tools
  6191. that are not relevant for the current recipe.
  6192. This way, irrelevant dependencies are ignored, which could have
  6193. prevented the reuse of prebuilt artifacts stored in the Shared
  6194. State Cache.
  6195. :term:`SSTATE_EXCLUDEDEPS_SYSROOT` is evaluated as two regular
  6196. expressions of recipe and dependency to ignore. An example
  6197. is the rule in :oe_git:`meta/conf/layer.conf </openembedded-core/tree/meta/conf/layer.conf>`::
  6198. # Nothing needs to depend on libc-initial
  6199. # base-passwd/shadow-sysroot don't need their dependencies
  6200. SSTATE_EXCLUDEDEPS_SYSROOT += "\
  6201. .*->.*-initial.* \
  6202. .*(base-passwd|shadow-sysroot)->.* \
  6203. "
  6204. The ``->`` substring represents the dependency between
  6205. the two regular expressions.
  6206. :term:`SSTATE_MIRROR_ALLOW_NETWORK`
  6207. If set to "1", allows fetches from mirrors that are specified in
  6208. :term:`SSTATE_MIRRORS` to work even when
  6209. fetching from the network is disabled by setting :term:`BB_NO_NETWORK` to
  6210. "1". Using the :term:`SSTATE_MIRROR_ALLOW_NETWORK` variable is useful if
  6211. you have set :term:`SSTATE_MIRRORS` to point to an internal server for
  6212. your shared state cache, but you want to disable any other fetching
  6213. from the network.
  6214. :term:`SSTATE_MIRRORS`
  6215. Configures the OpenEmbedded build system to search other mirror
  6216. locations for prebuilt cache data objects before building out the
  6217. data. This variable works like fetcher :term:`MIRRORS`
  6218. and :term:`PREMIRRORS` and points to the cache
  6219. locations to check for the shared state (sstate) objects.
  6220. You can specify a filesystem directory or a remote URL such as HTTP
  6221. or FTP. The locations you specify need to contain the shared state
  6222. cache (sstate-cache) results from previous builds. The sstate-cache
  6223. you point to can also be from builds on other machines.
  6224. When pointing to sstate build artifacts on another machine that uses
  6225. a different GCC version for native builds, you must configure
  6226. :term:`SSTATE_MIRRORS` with a regular expression that maps local search
  6227. paths to server paths. The paths need to take into account
  6228. :term:`NATIVELSBSTRING` set by the :ref:`ref-classes-uninative` class.
  6229. For example, the following maps the local search path ``universal-4.9``
  6230. to the server-provided path server_url_sstate_path::
  6231. SSTATE_MIRRORS ?= "file://universal-4.9/(.*) https://server_url_sstate_path/universal-4.8/\1"
  6232. If a mirror uses the same structure as
  6233. :term:`SSTATE_DIR`, you need to add "PATH" at the
  6234. end as shown in the examples below. The build system substitutes the
  6235. correct path within the directory structure::
  6236. SSTATE_MIRRORS ?= "\
  6237. file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
  6238. file://.* file:///some-local-dir/sstate/PATH"
  6239. :term:`SSTATE_SCAN_FILES`
  6240. Controls the list of files the OpenEmbedded build system scans for
  6241. hardcoded installation paths. The variable uses a space-separated
  6242. list of filenames (not paths) with standard wildcard characters
  6243. allowed.
  6244. During a build, the OpenEmbedded build system creates a shared state
  6245. (sstate) object during the first stage of preparing the sysroots.
  6246. That object is scanned for hardcoded paths for original installation
  6247. locations. The list of files that are scanned for paths is controlled
  6248. by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files
  6249. they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather
  6250. than the variable being comprehensively set. The
  6251. :ref:`ref-classes-sstate` class specifies the default list of files.
  6252. For details on the process, see the :ref:`ref-classes-staging` class.
  6253. :term:`STAGING_BASE_LIBDIR_NATIVE`
  6254. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6255. directory for the build host.
  6256. :term:`STAGING_BASELIBDIR`
  6257. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6258. directory for the target for which the current recipe is being built
  6259. (:term:`STAGING_DIR_HOST`).
  6260. :term:`STAGING_BINDIR`
  6261. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6262. directory for the target for which the current recipe is being built
  6263. (:term:`STAGING_DIR_HOST`).
  6264. :term:`STAGING_BINDIR_CROSS`
  6265. Specifies the path to the directory containing binary configuration
  6266. scripts. These scripts provide configuration information for other
  6267. software that wants to make use of libraries or include files
  6268. provided by the software associated with the script.
  6269. .. note::
  6270. This style of build configuration has been largely replaced by
  6271. ``pkg-config``. Consequently, if ``pkg-config`` is supported by the
  6272. library to which you are linking, it is recommended you use
  6273. ``pkg-config`` instead of a provided configuration script.
  6274. :term:`STAGING_BINDIR_NATIVE`
  6275. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6276. directory for the build host.
  6277. :term:`STAGING_DATADIR`
  6278. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6279. directory for the target for which the current recipe is being built
  6280. (:term:`STAGING_DIR_HOST`).
  6281. :term:`STAGING_DATADIR_NATIVE`
  6282. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6283. directory for the build host.
  6284. :term:`STAGING_DIR`
  6285. Helps construct the ``recipe-sysroots`` directory, which is used
  6286. during packaging.
  6287. For information on how staging for recipe-specific sysroots occurs,
  6288. see the :ref:`ref-tasks-populate_sysroot`
  6289. task, the ":ref:`sdk-manual/extensible:sharing files between recipes`"
  6290. section in the Yocto Project Development Tasks Manual, the
  6291. ":ref:`overview-manual/concepts:configuration, compilation, and staging`"
  6292. section in the Yocto Project Overview and Concepts Manual, and the
  6293. :term:`SYSROOT_DIRS` variable.
  6294. .. note::
  6295. Recipes should never write files directly under the :term:`STAGING_DIR`
  6296. directory because the OpenEmbedded build system manages the
  6297. directory automatically. Instead, files should be installed to
  6298. ``${``\ :term:`D`\ ``}`` within your recipe's :ref:`ref-tasks-install`
  6299. task and then the OpenEmbedded build system will stage a subset of
  6300. those files into the sysroot.
  6301. :term:`STAGING_DIR_HOST`
  6302. Specifies the path to the sysroot directory for the system on which
  6303. the component is built to run (the system that hosts the component).
  6304. For most recipes, this sysroot is the one in which that recipe's
  6305. :ref:`ref-tasks-populate_sysroot` task copies
  6306. files. Exceptions include ``-native`` recipes, where the
  6307. :ref:`ref-tasks-populate_sysroot` task instead uses
  6308. :term:`STAGING_DIR_NATIVE`. Depending on
  6309. the type of recipe and the build target, :term:`STAGING_DIR_HOST` can
  6310. have the following values:
  6311. - For recipes building for the target machine, the value is
  6312. "${:term:`STAGING_DIR`}/${:term:`MACHINE`}".
  6313. - For native recipes building for the build host, the value is empty
  6314. given the assumption that when building for the build host, the
  6315. build host's own directories should be used.
  6316. .. note::
  6317. ``-native`` recipes are not installed into host paths like such
  6318. as ``/usr``. Rather, these recipes are installed into
  6319. :term:`STAGING_DIR_NATIVE`. When compiling ``-native`` recipes,
  6320. standard build environment variables such as
  6321. :term:`CPPFLAGS` and
  6322. :term:`CFLAGS` are set up so that both host paths
  6323. and :term:`STAGING_DIR_NATIVE` are searched for libraries and
  6324. headers using, for example, GCC's ``-isystem`` option.
  6325. Thus, the emphasis is that the ``STAGING_DIR*`` variables
  6326. should be viewed as input variables by tasks such as
  6327. :ref:`ref-tasks-configure`,
  6328. :ref:`ref-tasks-compile`, and
  6329. :ref:`ref-tasks-install`. Having the real system
  6330. root correspond to :term:`STAGING_DIR_HOST` makes conceptual sense
  6331. for ``-native`` recipes, as they make use of host headers and
  6332. libraries.
  6333. :term:`STAGING_DIR_NATIVE`
  6334. Specifies the path to the sysroot directory used when building
  6335. components that run on the build host itself.
  6336. :term:`STAGING_DIR_TARGET`
  6337. Specifies the path to the sysroot used for the system for which the
  6338. component generates code. For components that do not generate code,
  6339. which is the majority, :term:`STAGING_DIR_TARGET` is set to match
  6340. :term:`STAGING_DIR_HOST`.
  6341. Some recipes build binaries that can run on the target system but those
  6342. binaries in turn generate code for another different system (e.g.
  6343. :ref:`ref-classes-cross-canadian` recipes). Using terminology from GNU,
  6344. the primary system is referred to as the "HOST" and the secondary, or
  6345. different, system is referred to as the "TARGET". Thus, the binaries
  6346. run on the "HOST" system and generate binaries for the "TARGET"
  6347. system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used
  6348. for the "HOST" system, while :term:`STAGING_DIR_TARGET` points to the
  6349. sysroot used for the "TARGET" system.
  6350. :term:`STAGING_ETCDIR_NATIVE`
  6351. Specifies the path to the ``/etc`` subdirectory of the sysroot
  6352. directory for the build host.
  6353. :term:`STAGING_EXECPREFIXDIR`
  6354. Specifies the path to the ``/usr`` subdirectory of the sysroot
  6355. directory for the target for which the current recipe is being built
  6356. (:term:`STAGING_DIR_HOST`).
  6357. :term:`STAGING_INCDIR`
  6358. Specifies the path to the ``/usr/include`` subdirectory of the
  6359. sysroot directory for the target for which the current recipe being
  6360. built (:term:`STAGING_DIR_HOST`).
  6361. :term:`STAGING_INCDIR_NATIVE`
  6362. Specifies the path to the ``/usr/include`` subdirectory of the
  6363. sysroot directory for the build host.
  6364. :term:`STAGING_KERNEL_BUILDDIR`
  6365. Points to the directory containing the kernel build artifacts.
  6366. Recipes building software that needs to access kernel build artifacts
  6367. (e.g. ``systemtap-uprobes``) can look in the directory specified with
  6368. the :term:`STAGING_KERNEL_BUILDDIR` variable to find these artifacts
  6369. after the kernel has been built.
  6370. :term:`STAGING_KERNEL_DIR`
  6371. The directory with kernel headers that are required to build
  6372. out-of-tree modules.
  6373. :term:`STAGING_LIBDIR`
  6374. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6375. directory for the target for which the current recipe is being built
  6376. (:term:`STAGING_DIR_HOST`).
  6377. :term:`STAGING_LIBDIR_NATIVE`
  6378. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6379. directory for the build host.
  6380. :term:`STAMP`
  6381. Specifies the base path used to create recipe stamp files. The path
  6382. to an actual stamp file is constructed by evaluating this string and
  6383. then appending additional information. Currently, the default
  6384. assignment for :term:`STAMP` as set in the ``meta/conf/bitbake.conf``
  6385. file is::
  6386. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  6387. For information on how BitBake uses stamp files to determine if a
  6388. task should be rerun, see the
  6389. ":ref:`overview-manual/concepts:stamp files and the rerunning of tasks`"
  6390. section in the Yocto Project Overview and Concepts Manual.
  6391. See :term:`STAMPS_DIR`,
  6392. :term:`MULTIMACH_TARGET_SYS`,
  6393. :term:`PN`, :term:`EXTENDPE`,
  6394. :term:`PV`, and :term:`PR` for related variable
  6395. information.
  6396. :term:`STAMPCLEAN`
  6397. See :term:`bitbake:STAMPCLEAN` in the BitBake manual.
  6398. :term:`STAMPS_DIR`
  6399. Specifies the base directory in which the OpenEmbedded build system
  6400. places stamps. The default directory is ``${TMPDIR}/stamps``.
  6401. :term:`STRIP`
  6402. The minimal command and arguments to run ``strip``, which is used to
  6403. strip symbols.
  6404. :term:`SUMMARY`
  6405. The short (72 characters or less) summary of the binary package for
  6406. packaging systems such as ``opkg``, ``rpm``, or ``dpkg``. By default,
  6407. :term:`SUMMARY` is used to define the
  6408. :term:`DESCRIPTION` variable if :term:`DESCRIPTION` is
  6409. not set in the recipe.
  6410. :term:`SVNDIR`
  6411. The directory in which files checked out of a Subversion system are
  6412. stored.
  6413. :term:`SYSLINUX_DEFAULT_CONSOLE`
  6414. Specifies the kernel boot default console. If you want to use a
  6415. console other than the default, set this variable in your recipe as
  6416. follows where "X" is the console number you want to use::
  6417. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  6418. The :ref:`ref-classes-syslinux` class initially sets
  6419. this variable to null but then checks for a value later.
  6420. :term:`SYSLINUX_OPTS`
  6421. Lists additional options to add to the syslinux file. You need to set
  6422. this variable in your recipe. If you want to list multiple options,
  6423. separate the options with a semicolon character (``;``).
  6424. The :ref:`ref-classes-syslinux` class uses this variable
  6425. to create a set of options.
  6426. :term:`SYSLINUX_SERIAL`
  6427. Specifies the alternate serial port or turns it off. To turn off
  6428. serial, set this variable to an empty string in your recipe. The
  6429. variable's default value is set in the
  6430. :ref:`ref-classes-syslinux` class as follows::
  6431. SYSLINUX_SERIAL ?= "0 115200"
  6432. The class checks for and uses the variable as needed.
  6433. :term:`SYSLINUX_SERIAL_TTY`
  6434. Specifies the alternate console=tty... kernel boot argument. The
  6435. variable's default value is set in the :ref:`ref-classes-syslinux`
  6436. class as follows::
  6437. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  6438. The class checks for and uses the variable as needed.
  6439. :term:`SYSLINUX_SPLASH`
  6440. An ``.LSS`` file used as the background for the VGA boot menu when
  6441. you use the boot menu. You need to set this variable in your recipe.
  6442. The :ref:`ref-classes-syslinux` class checks for this
  6443. variable and if found, the OpenEmbedded build system installs the
  6444. splash screen.
  6445. :term:`SYSROOT_DESTDIR`
  6446. Points to the temporary directory under the work directory (default
  6447. "``${``\ :term:`WORKDIR`\ ``}/sysroot-destdir``")
  6448. where the files populated into the sysroot are assembled during the
  6449. :ref:`ref-tasks-populate_sysroot` task.
  6450. :term:`SYSROOT_DIRS`
  6451. Directories that are staged into the sysroot by the
  6452. :ref:`ref-tasks-populate_sysroot` task. By
  6453. default, the following directories are staged::
  6454. SYSROOT_DIRS = " \
  6455. ${includedir} \
  6456. ${libdir} \
  6457. ${base_libdir} \
  6458. ${nonarch_base_libdir} \
  6459. ${datadir} \
  6460. /sysroot-only \
  6461. "
  6462. :term:`SYSROOT_DIRS_IGNORE`
  6463. Directories that are not staged into the sysroot by the
  6464. :ref:`ref-tasks-populate_sysroot` task. You
  6465. can use this variable to exclude certain subdirectories of
  6466. directories listed in :term:`SYSROOT_DIRS` from
  6467. staging. By default, the following directories are not staged::
  6468. SYSROOT_DIRS_IGNORE = " \
  6469. ${mandir} \
  6470. ${docdir} \
  6471. ${infodir} \
  6472. ${datadir}/X11/locale \
  6473. ${datadir}/applications \
  6474. ${datadir}/bash-completion \
  6475. ${datadir}/fonts \
  6476. ${datadir}/gtk-doc/html \
  6477. ${datadir}/installed-tests \
  6478. ${datadir}/locale \
  6479. ${datadir}/pixmaps \
  6480. ${datadir}/terminfo \
  6481. ${libdir}/${BPN}/ptest \
  6482. "
  6483. :term:`SYSROOT_DIRS_NATIVE`
  6484. Extra directories staged into the sysroot by the
  6485. :ref:`ref-tasks-populate_sysroot` task for
  6486. ``-native`` recipes, in addition to those specified in
  6487. :term:`SYSROOT_DIRS`. By default, the following
  6488. extra directories are staged::
  6489. SYSROOT_DIRS_NATIVE = " \
  6490. ${bindir} \
  6491. ${sbindir} \
  6492. ${base_bindir} \
  6493. ${base_sbindir} \
  6494. ${libexecdir} \
  6495. ${sysconfdir} \
  6496. ${localstatedir} \
  6497. "
  6498. .. note::
  6499. Programs built by ``-native`` recipes run directly from the sysroot
  6500. (:term:`STAGING_DIR_NATIVE`), which is why additional directories
  6501. containing program executables and supporting files need to be staged.
  6502. :term:`SYSROOT_PREPROCESS_FUNCS`
  6503. A list of functions to execute after files are staged into the
  6504. sysroot. These functions are usually used to apply additional
  6505. processing on the staged files, or to stage additional files.
  6506. :term:`SYSTEMD_AUTO_ENABLE`
  6507. When inheriting the :ref:`ref-classes-systemd` class,
  6508. this variable specifies whether the specified service in
  6509. :term:`SYSTEMD_SERVICE` should start
  6510. automatically or not. By default, the service is enabled to
  6511. automatically start at boot time. The default setting is in the
  6512. :ref:`ref-classes-systemd` class as follows::
  6513. SYSTEMD_AUTO_ENABLE ??= "enable"
  6514. You can disable the service by setting the variable to "disable".
  6515. :term:`SYSTEMD_BOOT_CFG`
  6516. When :term:`EFI_PROVIDER` is set to
  6517. "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the
  6518. configuration file that should be used. By default, the
  6519. :ref:`ref-classes-systemd-boot` class sets the
  6520. :term:`SYSTEMD_BOOT_CFG` as follows::
  6521. SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
  6522. For information on Systemd-boot, see the `Systemd-boot
  6523. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6524. :term:`SYSTEMD_BOOT_ENTRIES`
  6525. When :term:`EFI_PROVIDER` is set to
  6526. "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a
  6527. list of entry files (``*.conf``) to install that contain one boot
  6528. entry per file. By default, the :ref:`ref-classes-systemd-boot` class
  6529. sets the :term:`SYSTEMD_BOOT_ENTRIES` as follows::
  6530. SYSTEMD_BOOT_ENTRIES ?= ""
  6531. For information on Systemd-boot, see the `Systemd-boot
  6532. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6533. :term:`SYSTEMD_BOOT_TIMEOUT`
  6534. When :term:`EFI_PROVIDER` is set to
  6535. "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the
  6536. boot menu timeout in seconds. By default, the
  6537. :ref:`ref-classes-systemd-boot` class sets the
  6538. :term:`SYSTEMD_BOOT_TIMEOUT` as follows::
  6539. SYSTEMD_BOOT_TIMEOUT ?= "10"
  6540. For information on Systemd-boot, see the `Systemd-boot
  6541. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6542. :term:`SYSTEMD_DEFAULT_TARGET`
  6543. This variable allows to set the default unit that systemd starts at bootup.
  6544. Usually, this is either ``multi-user.target`` or ``graphical.target``.
  6545. This works by creating a ``default.target`` symbolic link to the chosen systemd
  6546. target file.
  6547. See `systemd's documentation
  6548. <https://www.freedesktop.org/software/systemd/man/systemd.special.html>`__
  6549. for details.
  6550. For example, this variable is used in the :oe_git:`core-image-minimal-xfce.bb
  6551. </meta-openembedded/tree/meta-xfce/recipes-core/images/core-image-minimal-xfce.bb>`
  6552. recipe::
  6553. SYSTEMD_DEFAULT_TARGET = "graphical.target"
  6554. :term:`SYSTEMD_PACKAGES`
  6555. When inheriting the :ref:`ref-classes-systemd` class,
  6556. this variable locates the systemd unit files when they are not found
  6557. in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES`
  6558. variable is set such that the systemd unit files are assumed to
  6559. reside in the recipes main package::
  6560. SYSTEMD_PACKAGES ?= "${PN}"
  6561. If these unit files are not in this recipe's main package, you need
  6562. to use :term:`SYSTEMD_PACKAGES` to list the package or packages in which
  6563. the build system can find the systemd unit files.
  6564. :term:`SYSTEMD_SERVICE`
  6565. When inheriting the :ref:`ref-classes-systemd` class,
  6566. this variable specifies the systemd service name for a package.
  6567. Multiple services can be specified, each one separated by a space.
  6568. When you specify this file in your recipe, use a package name
  6569. override to indicate the package to which the value applies. Here is
  6570. an example from the connman recipe::
  6571. SYSTEMD_SERVICE:${PN} = "connman.service"
  6572. The package overrides that can be specified are directly related to the value of
  6573. :term:`SYSTEMD_PACKAGES`. Overrides not included in :term:`SYSTEMD_PACKAGES`
  6574. will be silently ignored.
  6575. :term:`SYSVINIT_ENABLED_GETTYS`
  6576. When using :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  6577. specifies a space-separated list of the virtual terminals that should
  6578. run a :wikipedia:`getty <Getty_(Unix)>` (allowing login), assuming
  6579. :term:`USE_VT` is not set to "0".
  6580. The default value for :term:`SYSVINIT_ENABLED_GETTYS` is "1" (i.e. only
  6581. run a getty on the first virtual terminal).
  6582. :term:`T`
  6583. This variable points to a directory were BitBake places temporary
  6584. files, which consist mostly of task logs and scripts, when building a
  6585. particular recipe. The variable is typically set as follows::
  6586. T = "${WORKDIR}/temp"
  6587. The :term:`WORKDIR` is the directory into which
  6588. BitBake unpacks and builds the recipe. The default ``bitbake.conf``
  6589. file sets this variable.
  6590. The :term:`T` variable is not to be confused with the
  6591. :term:`TMPDIR` variable, which points to the root of
  6592. the directory tree where BitBake places the output of an entire
  6593. build.
  6594. :term:`TARGET_ARCH`
  6595. The target machine's architecture. The OpenEmbedded build system
  6596. supports many architectures. Here is an example list of architectures
  6597. supported. This list is by no means complete as the architecture is
  6598. configurable:
  6599. - arm
  6600. - i586
  6601. - x86_64
  6602. - powerpc
  6603. - powerpc64
  6604. - mips
  6605. - mipsel
  6606. For additional information on machine architectures, see the
  6607. :term:`TUNE_ARCH` variable.
  6608. :term:`TARGET_AS_ARCH`
  6609. Specifies architecture-specific assembler flags for the target
  6610. system. :term:`TARGET_AS_ARCH` is initialized from
  6611. :term:`TUNE_ASARGS` by default in the BitBake
  6612. configuration file (``meta/conf/bitbake.conf``)::
  6613. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  6614. :term:`TARGET_CC_ARCH`
  6615. Specifies architecture-specific C compiler flags for the target
  6616. system. :term:`TARGET_CC_ARCH` is initialized from
  6617. :term:`TUNE_CCARGS` by default.
  6618. .. note::
  6619. It is a common workaround to append :term:`LDFLAGS` to
  6620. :term:`TARGET_CC_ARCH` in recipes that build software for the target that
  6621. would not otherwise respect the exported :term:`LDFLAGS` variable.
  6622. :term:`TARGET_CC_KERNEL_ARCH`
  6623. This is a specific kernel compiler flag for a CPU or Application
  6624. Binary Interface (ABI) tune. The flag is used rarely and only for
  6625. cases where a userspace :term:`TUNE_CCARGS` is not
  6626. compatible with the kernel compilation. The :term:`TARGET_CC_KERNEL_ARCH`
  6627. variable allows the kernel (and associated modules) to use a
  6628. different configuration. See the
  6629. ``meta/conf/machine/include/arm/feature-arm-thumb.inc`` file in the
  6630. :term:`Source Directory` for an example.
  6631. :term:`TARGET_CFLAGS`
  6632. Specifies the flags to pass to the C compiler when building for the
  6633. target. When building in the target context,
  6634. :term:`CFLAGS` is set to the value of this variable by
  6635. default.
  6636. Additionally, the SDK's environment setup script sets the :term:`CFLAGS`
  6637. variable in the environment to the :term:`TARGET_CFLAGS` value so that
  6638. executables built using the SDK also have the flags applied.
  6639. :term:`TARGET_CPPFLAGS`
  6640. Specifies the flags to pass to the C pre-processor (i.e. to both the
  6641. C and the C++ compilers) when building for the target. When building
  6642. in the target context, :term:`CPPFLAGS` is set to the
  6643. value of this variable by default.
  6644. Additionally, the SDK's environment setup script sets the
  6645. :term:`CPPFLAGS` variable in the environment to the :term:`TARGET_CPPFLAGS`
  6646. value so that executables built using the SDK also have the flags
  6647. applied.
  6648. :term:`TARGET_CXXFLAGS`
  6649. Specifies the flags to pass to the C++ compiler when building for the
  6650. target. When building in the target context,
  6651. :term:`CXXFLAGS` is set to the value of this variable
  6652. by default.
  6653. Additionally, the SDK's environment setup script sets the
  6654. :term:`CXXFLAGS` variable in the environment to the :term:`TARGET_CXXFLAGS`
  6655. value so that executables built using the SDK also have the flags
  6656. applied.
  6657. :term:`TARGET_FPU`
  6658. Specifies the method for handling FPU code. For FPU-less targets,
  6659. which include most ARM CPUs, the variable must be set to "soft". If
  6660. not, the kernel emulation gets used, which results in a performance
  6661. penalty.
  6662. :term:`TARGET_LD_ARCH`
  6663. Specifies architecture-specific linker flags for the target system.
  6664. :term:`TARGET_LD_ARCH` is initialized from
  6665. :term:`TUNE_LDARGS` by default in the BitBake
  6666. configuration file (``meta/conf/bitbake.conf``)::
  6667. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  6668. :term:`TARGET_LDFLAGS`
  6669. Specifies the flags to pass to the linker when building for the
  6670. target. When building in the target context,
  6671. :term:`LDFLAGS` is set to the value of this variable
  6672. by default.
  6673. Additionally, the SDK's environment setup script sets the
  6674. :term:`LDFLAGS` variable in the environment to the
  6675. :term:`TARGET_LDFLAGS` value so that executables built using the SDK also
  6676. have the flags applied.
  6677. :term:`TARGET_OS`
  6678. Specifies the target's operating system. The variable can be set to
  6679. "linux" for glibc-based systems (GNU C Library) and to "linux-musl"
  6680. for musl libc. For ARM/EABI targets, the possible values are
  6681. "linux-gnueabi" and "linux-musleabi".
  6682. :term:`TARGET_PREFIX`
  6683. Specifies the prefix used for the toolchain binary target tools.
  6684. Depending on the type of recipe and the build target,
  6685. :term:`TARGET_PREFIX` is set as follows:
  6686. - For recipes building for the target machine, the value is
  6687. "${:term:`TARGET_SYS`}-".
  6688. - For native recipes, the build system sets the variable to the
  6689. value of :term:`BUILD_PREFIX`.
  6690. - For native SDK recipes (:ref:`ref-classes-nativesdk`),
  6691. the build system sets the variable to the value of :term:`SDK_PREFIX`.
  6692. :term:`TARGET_SYS`
  6693. Specifies the system, including the architecture and the operating
  6694. system, for which the build is occurring in the context of the
  6695. current recipe.
  6696. The OpenEmbedded build system automatically sets this variable based
  6697. on :term:`TARGET_ARCH`,
  6698. :term:`TARGET_VENDOR`, and
  6699. :term:`TARGET_OS` variables.
  6700. .. note::
  6701. You do not need to set the :term:`TARGET_SYS` variable yourself.
  6702. Consider these two examples:
  6703. - Given a native recipe on a 32-bit, x86 machine running Linux, the
  6704. value is "i686-linux".
  6705. - Given a recipe being built for a little-endian, MIPS target
  6706. running Linux, the value might be "mipsel-linux".
  6707. :term:`TARGET_VENDOR`
  6708. Specifies the name of the target vendor.
  6709. :term:`TCLIBC`
  6710. Specifies the GNU standard C library (``libc``) variant to use during
  6711. the build process.
  6712. You can select "glibc", "musl", "newlib", or "baremetal".
  6713. :term:`TCLIBCAPPEND`
  6714. Specifies a suffix to be appended onto the :term:`TMPDIR` value. The
  6715. suffix identifies the ``libc`` variant for building. When you are
  6716. building for multiple variants with the same :term:`Build Directory`,
  6717. this mechanism ensures that output for different ``libc`` variants is
  6718. kept separate to avoid potential conflicts.
  6719. In the ``defaultsetup.conf`` file, the default value of
  6720. :term:`TCLIBCAPPEND` is "-${TCLIBC}". However, distros such as poky,
  6721. which normally only support one ``libc`` variant, set
  6722. :term:`TCLIBCAPPEND` to "" in their distro configuration file resulting
  6723. in no suffix being applied.
  6724. :term:`TCMODE`
  6725. Specifies the toolchain selector. :term:`TCMODE` controls the
  6726. characteristics of the generated packages and images by telling the
  6727. OpenEmbedded build system which toolchain profile to use. By default,
  6728. the OpenEmbedded build system builds its own internal toolchain. The
  6729. variable's default value is "default", which uses that internal
  6730. toolchain.
  6731. .. note::
  6732. If :term:`TCMODE` is set to a value other than "default", then it is your
  6733. responsibility to ensure that the toolchain is compatible with the
  6734. default toolchain. Using older or newer versions of these
  6735. components might cause build problems. See
  6736. :doc:`Release Information </migration-guides/index>` for your
  6737. version of the Yocto Project, to find the specific components with
  6738. which the toolchain must be compatible.
  6739. The :term:`TCMODE` variable is similar to :term:`TCLIBC`,
  6740. which controls the variant of the GNU standard C library (``libc``)
  6741. used during the build process: ``glibc`` or ``musl``.
  6742. With additional layers, it is possible to use a pre-compiled external
  6743. toolchain. One example is the Sourcery G++ Toolchain. The support for
  6744. this toolchain resides in the separate Mentor Graphics
  6745. ``meta-sourcery`` layer at
  6746. https://github.com/MentorEmbedded/meta-sourcery/.
  6747. The layer's ``README`` file contains information on how to use the
  6748. Sourcery G++ Toolchain as an external toolchain. You will have to
  6749. add the layer to your ``bblayers.conf`` file and then set the
  6750. :term:`EXTERNAL_TOOLCHAIN` variable in your ``local.conf`` file to
  6751. the location of the toolchain.
  6752. The fundamentals used for this example apply to any external
  6753. toolchain. You can use ``meta-sourcery`` as a template for adding
  6754. support for other external toolchains.
  6755. In addition to toolchain configuration, you will also need a
  6756. corresponding toolchain recipe file. This recipe file needs to package
  6757. up any pre-built objects in the toolchain such as ``libgcc``,
  6758. ``libstdcc++``, any locales, and ``libc``.
  6759. :term:`TC_CXX_RUNTIME`
  6760. Specifies the C/C++ STL and runtime variant to use during
  6761. the build process. Default value is 'gnu'
  6762. You can select "gnu", "llvm", or "android".
  6763. :term:`TEMPLATECONF`
  6764. Specifies the directory used by the build system to find templates
  6765. from which to build the ``bblayers.conf`` and ``local.conf`` files.
  6766. Use this variable if you wish to customize such files, and the default
  6767. BitBake targets shown when sourcing the ``oe-init-build-env`` script.
  6768. For details, see the
  6769. :ref:`dev-manual/custom-template-configuration-directory:creating a custom template configuration directory`
  6770. section in the Yocto Project Development Tasks manual.
  6771. .. note::
  6772. You must set this variable in the external environment in order
  6773. for it to work.
  6774. :term:`TEST_EXPORT_DIR`
  6775. The location the OpenEmbedded build system uses to export tests when
  6776. the :term:`TEST_EXPORT_ONLY` variable is set
  6777. to "1".
  6778. The :term:`TEST_EXPORT_DIR` variable defaults to
  6779. ``"${TMPDIR}/testimage/${PN}"``.
  6780. :term:`TEST_EXPORT_ONLY`
  6781. Specifies to export the tests only. Set this variable to "1" if you
  6782. do not want to run the tests but you want them to be exported in a
  6783. manner that you to run them outside of the build system.
  6784. :term:`TEST_LOG_DIR`
  6785. Holds the SSH log and the boot log for QEMU machines. The
  6786. :term:`TEST_LOG_DIR` variable defaults to ``"${WORKDIR}/testimage"``.
  6787. .. note::
  6788. Actual test results reside in the task log (``log.do_testimage``),
  6789. which is in the ``${WORKDIR}/temp/`` directory.
  6790. :term:`TEST_POWERCONTROL_CMD`
  6791. For automated hardware testing, specifies the command to use to
  6792. control the power of the target machine under test. Typically, this
  6793. command would point to a script that performs the appropriate action
  6794. (e.g. interacting with a web-enabled power strip). The specified
  6795. command should expect to receive as the last argument "off", "on" or
  6796. "cycle" specifying to power off, on, or cycle (power off and then
  6797. power on) the device, respectively.
  6798. :term:`TEST_POWERCONTROL_EXTRA_ARGS`
  6799. For automated hardware testing, specifies additional arguments to
  6800. pass through to the command specified in
  6801. :term:`TEST_POWERCONTROL_CMD`. Setting
  6802. :term:`TEST_POWERCONTROL_EXTRA_ARGS` is optional. You can use it if you
  6803. wish, for example, to separate the machine-specific and
  6804. non-machine-specific parts of the arguments.
  6805. :term:`TEST_QEMUBOOT_TIMEOUT`
  6806. The time in seconds allowed for an image to boot before automated
  6807. runtime tests begin to run against an image. The default timeout
  6808. period to allow the boot process to reach the login prompt is 500
  6809. seconds. You can specify a different value in the ``local.conf``
  6810. file.
  6811. For more information on testing images, see the
  6812. ":ref:`dev-manual/runtime-testing:performing automated runtime testing`"
  6813. section in the Yocto Project Development Tasks Manual.
  6814. :term:`TEST_SERIALCONTROL_CMD`
  6815. For automated hardware testing, specifies the command to use to
  6816. connect to the serial console of the target machine under test. This
  6817. command simply needs to connect to the serial console and forward
  6818. that connection to standard input and output as any normal terminal
  6819. program does.
  6820. For example, to use the Picocom terminal program on serial device
  6821. ``/dev/ttyUSB0`` at 115200bps, you would set the variable as follows::
  6822. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  6823. :term:`TEST_SERIALCONTROL_EXTRA_ARGS`
  6824. For automated hardware testing, specifies additional arguments to
  6825. pass through to the command specified in
  6826. :term:`TEST_SERIALCONTROL_CMD`. Setting
  6827. :term:`TEST_SERIALCONTROL_EXTRA_ARGS` is optional. You can use it if you
  6828. wish, for example, to separate the machine-specific and
  6829. non-machine-specific parts of the command.
  6830. :term:`TEST_SERVER_IP`
  6831. The IP address of the build machine (host machine). This IP address
  6832. is usually automatically detected. However, if detection fails, this
  6833. variable needs to be set to the IP address of the build machine (i.e.
  6834. where the build is taking place).
  6835. .. note::
  6836. The :term:`TEST_SERVER_IP` variable is only used for a small number of
  6837. tests such as the "dnf" test suite, which needs to download packages
  6838. from ``WORKDIR/oe-rootfs-repo``.
  6839. :term:`TEST_SUITES`
  6840. An ordered list of tests (modules) to run against an image when
  6841. performing automated runtime testing.
  6842. The OpenEmbedded build system provides a core set of tests that can
  6843. be used against images.
  6844. .. note::
  6845. Currently, there is only support for running these tests under
  6846. QEMU.
  6847. Tests include ``ping``, ``ssh``, ``df`` among others. You can add
  6848. your own tests to the list of tests by appending :term:`TEST_SUITES` as
  6849. follows::
  6850. TEST_SUITES:append = " mytest"
  6851. Alternatively, you can
  6852. provide the "auto" option to have all applicable tests run against
  6853. the image::
  6854. TEST_SUITES:append = " auto"
  6855. Using this option causes the
  6856. build system to automatically run tests that are applicable to the
  6857. image. Tests that are not applicable are skipped.
  6858. The order in which tests are run is important. Tests that depend on
  6859. another test must appear later in the list than the test on which
  6860. they depend. For example, if you append the list of tests with two
  6861. tests (``test_A`` and ``test_B``) where ``test_B`` is dependent on
  6862. ``test_A``, then you must order the tests as follows::
  6863. TEST_SUITES = "test_A test_B"
  6864. For more information on testing images, see the
  6865. ":ref:`dev-manual/runtime-testing:performing automated runtime testing`"
  6866. section in the Yocto Project Development Tasks Manual.
  6867. :term:`TEST_TARGET`
  6868. Specifies the target controller to use when running tests against a
  6869. test image. The default controller to use is "qemu"::
  6870. TEST_TARGET = "qemu"
  6871. A target controller is a class that defines how an image gets
  6872. deployed on a target and how a target is started. A layer can extend
  6873. the controllers by adding a module in the layer's
  6874. ``/lib/oeqa/controllers`` directory and by inheriting the
  6875. ``BaseTarget`` class, which is an abstract class that cannot be used
  6876. as a value of :term:`TEST_TARGET`.
  6877. You can provide the following arguments with :term:`TEST_TARGET`:
  6878. - *"qemu":* Boots a QEMU image and runs the tests. See the
  6879. ":ref:`dev-manual/runtime-testing:enabling runtime tests on qemu`" section
  6880. in the Yocto Project Development Tasks Manual for more
  6881. information.
  6882. - *"simpleremote":* Runs the tests on target hardware that is
  6883. already up and running. The hardware can be on the network or it
  6884. can be a device running an image on QEMU. You must also set
  6885. :term:`TEST_TARGET_IP` when you use
  6886. "simpleremote".
  6887. .. note::
  6888. This argument is defined in
  6889. ``meta/lib/oeqa/controllers/simpleremote.py``.
  6890. For information on running tests on hardware, see the
  6891. ":ref:`dev-manual/runtime-testing:enabling runtime tests on hardware`"
  6892. section in the Yocto Project Development Tasks Manual.
  6893. :term:`TEST_TARGET_IP`
  6894. The IP address of your hardware under test. The :term:`TEST_TARGET_IP`
  6895. variable has no effect when :term:`TEST_TARGET` is
  6896. set to "qemu".
  6897. When you specify the IP address, you can also include a port. Here is
  6898. an example::
  6899. TEST_TARGET_IP = "192.168.1.4:2201"
  6900. Specifying a port is
  6901. useful when SSH is started on a non-standard port or in cases when
  6902. your hardware under test is behind a firewall or network that is not
  6903. directly accessible from your host and you need to do port address
  6904. translation.
  6905. :term:`TESTIMAGE_AUTO`
  6906. Automatically runs the series of automated tests for images when an
  6907. image is successfully built. Setting :term:`TESTIMAGE_AUTO` to "1" causes
  6908. any image that successfully builds to automatically boot under QEMU.
  6909. Using the variable also adds in dependencies so that any SDK for
  6910. which testing is requested is automatically built first.
  6911. These tests are written in Python making use of the ``unittest``
  6912. module, and the majority of them run commands on the target system
  6913. over ``ssh``. You can set this variable to "1" in your ``local.conf``
  6914. file in the :term:`Build Directory` to have the
  6915. OpenEmbedded build system automatically run these tests after an
  6916. image successfully builds:
  6917. TESTIMAGE_AUTO = "1"
  6918. For more information
  6919. on enabling, running, and writing these tests, see the
  6920. ":ref:`dev-manual/runtime-testing:performing automated runtime testing`"
  6921. section in the Yocto Project Development Tasks Manual and the
  6922. ":ref:`ref-classes-testimage`" section.
  6923. :term:`THISDIR`
  6924. The directory in which the file BitBake is currently parsing is
  6925. located. Do not manually set this variable.
  6926. :term:`TIME`
  6927. The time the build was started. Times appear using the hour, minute,
  6928. and second (HMS) format (e.g. "140159" for one minute and fifty-nine
  6929. seconds past 1400 hours).
  6930. :term:`TMPDIR`
  6931. This variable is the base directory the OpenEmbedded build system
  6932. uses for all build output and intermediate files (other than the
  6933. shared state cache). By default, the :term:`TMPDIR` variable points to
  6934. ``tmp`` within the :term:`Build Directory`.
  6935. If you want to establish this directory in a location other than the
  6936. default, you can uncomment and edit the following statement in the
  6937. ``conf/local.conf`` file in the :term:`Source Directory`::
  6938. #TMPDIR = "${TOPDIR}/tmp"
  6939. An example use for this scenario is to set :term:`TMPDIR` to a local disk,
  6940. which does not use NFS, while having the :term:`Build Directory` use NFS.
  6941. The filesystem used by :term:`TMPDIR` must have standard filesystem
  6942. semantics (i.e. mixed-case files are unique, POSIX file locking, and
  6943. persistent inodes). Due to various issues with NFS and bugs in some
  6944. implementations, NFS does not meet this minimum requirement.
  6945. Consequently, :term:`TMPDIR` cannot be on NFS.
  6946. :term:`TOOLCHAIN_HOST_TASK`
  6947. This variable lists packages the OpenEmbedded build system uses when
  6948. building an SDK, which contains a cross-development environment. The
  6949. packages specified by this variable are part of the toolchain set
  6950. that runs on the :term:`SDKMACHINE`, and each
  6951. package should usually have the prefix ``nativesdk-``. For example,
  6952. consider the following command when building an SDK::
  6953. $ bitbake -c populate_sdk imagename
  6954. In this case, a default list of packages is
  6955. set in this variable, but you can add additional packages to the
  6956. list. See the
  6957. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  6958. in the Yocto Project Application Development and the Extensible
  6959. Software Development Kit (eSDK) manual for more information.
  6960. For background information on cross-development toolchains in the
  6961. Yocto Project development environment, see the
  6962. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  6963. section in the Yocto Project Overview and Concepts Manual. For
  6964. information on setting up a cross-development environment, see the
  6965. :doc:`/sdk-manual/index` manual.
  6966. Note that this variable applies to building an SDK, not an eSDK,
  6967. in which case the :term:`TOOLCHAIN_HOST_TASK_ESDK` setting should be
  6968. used instead.
  6969. :term:`TOOLCHAIN_HOST_TASK_ESDK`
  6970. This variable allows to extend what is installed in the host
  6971. portion of an eSDK. This is similar to :term:`TOOLCHAIN_HOST_TASK`
  6972. applying to SDKs.
  6973. :term:`TOOLCHAIN_OUTPUTNAME`
  6974. This variable defines the name used for the toolchain output. The
  6975. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
  6976. the :term:`TOOLCHAIN_OUTPUTNAME` variable as follows::
  6977. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  6978. See
  6979. the :term:`SDK_NAME` and
  6980. :term:`SDK_VERSION` variables for additional
  6981. information.
  6982. :term:`TOOLCHAIN_TARGET_TASK`
  6983. This variable lists packages the OpenEmbedded build system uses when
  6984. it creates the target part of an SDK (i.e. the part built for the
  6985. target hardware), which includes libraries and headers. Use this
  6986. variable to add individual packages to the part of the SDK that runs
  6987. on the target. See the
  6988. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  6989. in the Yocto Project Application Development and the Extensible
  6990. Software Development Kit (eSDK) manual for more information.
  6991. For background information on cross-development toolchains in the
  6992. Yocto Project development environment, see the
  6993. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  6994. section in the Yocto Project Overview and Concepts Manual. For
  6995. information on setting up a cross-development environment, see the
  6996. :doc:`/sdk-manual/index` manual.
  6997. :term:`TOPDIR`
  6998. See :term:`bitbake:TOPDIR` in the BitBake manual.
  6999. :term:`TRANSLATED_TARGET_ARCH`
  7000. A sanitized version of :term:`TARGET_ARCH`. This
  7001. variable is used where the architecture is needed in a value where
  7002. underscores are not allowed, for example within package filenames. In
  7003. this case, dash characters replace any underscore characters used in
  7004. :term:`TARGET_ARCH`.
  7005. Do not edit this variable.
  7006. :term:`TUNE_ARCH`
  7007. The GNU canonical architecture for a specific architecture (i.e.
  7008. ``arm``, ``armeb``, ``mips``, ``mips64``, and so forth). BitBake uses
  7009. this value to setup configuration.
  7010. :term:`TUNE_ARCH` definitions are specific to a given architecture. The
  7011. definitions can be a single static definition, or can be dynamically
  7012. adjusted. You can see details for a given CPU family by looking at
  7013. the architecture's ``README`` file. For example, the
  7014. ``meta/conf/machine/include/mips/README`` file in the
  7015. :term:`Source Directory` provides information for
  7016. :term:`TUNE_ARCH` specific to the ``mips`` architecture.
  7017. :term:`TUNE_ARCH` is tied closely to
  7018. :term:`TARGET_ARCH`, which defines the target
  7019. machine's architecture. The BitBake configuration file
  7020. (``meta/conf/bitbake.conf``) sets :term:`TARGET_ARCH` as follows::
  7021. TARGET_ARCH = "${TUNE_ARCH}"
  7022. The following list, which is by no means complete since architectures
  7023. are configurable, shows supported machine architectures:
  7024. - arm
  7025. - i586
  7026. - x86_64
  7027. - powerpc
  7028. - powerpc64
  7029. - mips
  7030. - mipsel
  7031. :term:`TUNE_ASARGS`
  7032. Specifies architecture-specific assembler flags for the target
  7033. system. The set of flags is based on the selected tune features.
  7034. :term:`TUNE_ASARGS` is set using the tune include files, which are
  7035. typically under ``meta/conf/machine/include/`` and are influenced
  7036. through :term:`TUNE_FEATURES`. For example, the
  7037. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7038. for the x86 architecture as follows::
  7039. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  7040. .. note::
  7041. Board Support Packages (BSPs) select the tune. The selected tune,
  7042. in turn, affects the tune variables themselves (i.e. the tune can
  7043. supply its own set of flags).
  7044. :term:`TUNE_CCARGS`
  7045. Specifies architecture-specific C compiler flags for the target
  7046. system. The set of flags is based on the selected tune features.
  7047. :term:`TUNE_CCARGS` is set using the tune include files, which are
  7048. typically under ``meta/conf/machine/include/`` and are influenced
  7049. through :term:`TUNE_FEATURES`.
  7050. .. note::
  7051. Board Support Packages (BSPs) select the tune. The selected tune,
  7052. in turn, affects the tune variables themselves (i.e. the tune can
  7053. supply its own set of flags).
  7054. :term:`TUNE_FEATURES`
  7055. Features used to "tune" a compiler for optimal use given a specific
  7056. processor. The features are defined within the tune files and allow
  7057. arguments (i.e. ``TUNE_*ARGS``) to be dynamically generated based on
  7058. the features.
  7059. The OpenEmbedded build system verifies the features to be sure they
  7060. are not conflicting and that they are supported.
  7061. The BitBake configuration file (``meta/conf/bitbake.conf``) defines
  7062. :term:`TUNE_FEATURES` as follows::
  7063. TUNE_FEATURES ??= "${TUNE_FEATURES:tune-${DEFAULTTUNE}}"
  7064. See the :term:`DEFAULTTUNE` variable for more information.
  7065. :term:`TUNE_LDARGS`
  7066. Specifies architecture-specific linker flags for the target system.
  7067. The set of flags is based on the selected tune features.
  7068. :term:`TUNE_LDARGS` is set using the tune include files, which are
  7069. typically under ``meta/conf/machine/include/`` and are influenced
  7070. through :term:`TUNE_FEATURES`. For example, the
  7071. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7072. for the x86 architecture as follows::
  7073. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  7074. .. note::
  7075. Board Support Packages (BSPs) select the tune. The selected tune,
  7076. in turn, affects the tune variables themselves (i.e. the tune can
  7077. supply its own set of flags).
  7078. :term:`TUNE_PKGARCH`
  7079. The package architecture understood by the packaging system to define
  7080. the architecture, ABI, and tuning of output packages. The specific
  7081. tune is defined using the "_tune" override as follows::
  7082. TUNE_PKGARCH:tune-tune = "tune"
  7083. These tune-specific package architectures are defined in the machine
  7084. include files. Here is an example of the "core2-32" tuning as used in
  7085. the ``meta/conf/machine/include/x86/tune-core2.inc`` file::
  7086. TUNE_PKGARCH:tune-core2-32 = "core2-32"
  7087. :term:`TUNECONFLICTS[feature]`
  7088. Specifies CPU or Application Binary Interface (ABI) tuning features
  7089. that conflict with feature.
  7090. Known tuning conflicts are specified in the machine include files in
  7091. the :term:`Source Directory`. Here is an example from
  7092. the ``meta/conf/machine/include/mips/arch-mips.inc`` include file
  7093. that lists the "o32" and "n64" features as conflicting with the "n32"
  7094. feature::
  7095. TUNECONFLICTS[n32] = "o32 n64"
  7096. :term:`TUNEVALID[feature]`
  7097. Specifies a valid CPU or Application Binary Interface (ABI) tuning
  7098. feature. The specified feature is stored as a flag. Valid features
  7099. are specified in the machine include files (e.g.
  7100. ``meta/conf/machine/include/arm/arch-arm.inc``). Here is an example
  7101. from that file::
  7102. TUNEVALID[bigendian] = "Enable big-endian mode."
  7103. See the machine include files in the :term:`Source Directory`
  7104. for these features.
  7105. :term:`UBOOT_CONFIG`
  7106. Configures the :term:`UBOOT_MACHINE` and can
  7107. also define :term:`IMAGE_FSTYPES` for individual
  7108. cases.
  7109. Following is an example from the ``meta-fsl-arm`` layer. ::
  7110. UBOOT_CONFIG ??= "sd"
  7111. UBOOT_CONFIG[sd] = "mx6qsabreauto_config,sdcard"
  7112. UBOOT_CONFIG[eimnor] = "mx6qsabreauto_eimnor_config"
  7113. UBOOT_CONFIG[nand] = "mx6qsabreauto_nand_config,ubifs"
  7114. UBOOT_CONFIG[spinor] = "mx6qsabreauto_spinor_config"
  7115. In this example, "sd" is selected as the configuration of the possible four for the
  7116. :term:`UBOOT_MACHINE`. The "sd" configuration defines
  7117. "mx6qsabreauto_config" as the value for :term:`UBOOT_MACHINE`, while the
  7118. "sdcard" specifies the :term:`IMAGE_FSTYPES` to use for the U-Boot image.
  7119. For more information on how the :term:`UBOOT_CONFIG` is handled, see the
  7120. :ref:`ref-classes-uboot-config` class.
  7121. :term:`UBOOT_DTB_LOADADDRESS`
  7122. Specifies the load address for the dtb image used by U-Boot. During FIT
  7123. image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in
  7124. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7125. used in creating the dtb sections of Image Tree Source for the FIT image.
  7126. :term:`UBOOT_DTBO_LOADADDRESS`
  7127. Specifies the load address for the dtbo image used by U-Boot. During FIT
  7128. image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in
  7129. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7130. used in creating the dtbo sections of Image Tree Source for the FIT image.
  7131. :term:`UBOOT_ENTRYPOINT`
  7132. Specifies the entry point for the U-Boot image. During U-Boot image
  7133. creation, the :term:`UBOOT_ENTRYPOINT` variable is passed as a
  7134. command-line parameter to the ``uboot-mkimage`` utility.
  7135. To pass a 64 bit address for FIT image creation, you will need to set:
  7136. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7137. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7138. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7139. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7140. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7141. classes.
  7142. :term:`UBOOT_FIT_ADDRESS_CELLS`
  7143. Specifies the value of the ``#address-cells`` value for the
  7144. description of the U-Boot FIT image.
  7145. The default value is set to "1" by the :ref:`ref-classes-uboot-sign`
  7146. class, which corresponds to 32 bit addresses.
  7147. For platforms that need to set 64 bit addresses in
  7148. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  7149. set this value to "2", as two 32 bit values (cells) will be needed
  7150. to represent such addresses.
  7151. Here is an example setting "0x400000000" as a load address::
  7152. UBOOT_FIT_ADDRESS_CELLS = "2"
  7153. UBOOT_LOADADDRESS= "0x04 0x00000000"
  7154. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  7155. :term:`UBOOT_FIT_DESC`
  7156. Specifies the description string encoded into a U-Boot fitImage. The default
  7157. value is set by the :ref:`ref-classes-uboot-sign` class as follows::
  7158. UBOOT_FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  7159. :term:`UBOOT_FIT_GENERATE_KEYS`
  7160. Decides whether to generate the keys for signing the U-Boot fitImage if
  7161. they don't already exist. The keys are created in :term:`SPL_SIGN_KEYDIR`.
  7162. The default value is "0".
  7163. Enable this as follows::
  7164. UBOOT_FIT_GENERATE_KEYS = "1"
  7165. This variable is used in the :ref:`ref-classes-uboot-sign` class.
  7166. :term:`UBOOT_FIT_HASH_ALG`
  7167. Specifies the hash algorithm used in creating the U-Boot FIT Image.
  7168. It is set by default to ``sha256`` by the :ref:`ref-classes-uboot-sign`
  7169. class.
  7170. :term:`UBOOT_FIT_KEY_GENRSA_ARGS`
  7171. Arguments to ``openssl genrsa`` for generating a RSA private key for
  7172. signing the U-Boot FIT image. The default value of this variable
  7173. is set to "-F4" by the :ref:`ref-classes-uboot-sign` class.
  7174. :term:`UBOOT_FIT_KEY_REQ_ARGS`
  7175. Arguments to ``openssl req`` for generating a certificate for signing
  7176. the U-Boot FIT image. The default value is "-batch -new" by the
  7177. :ref:`ref-classes-uboot-sign` class, "batch" for
  7178. non interactive mode and "new" for generating new keys.
  7179. :term:`UBOOT_FIT_KEY_SIGN_PKCS`
  7180. Format for the public key certificate used for signing the U-Boot FIT
  7181. image. The default value is set to "x509" by the
  7182. :ref:`ref-classes-uboot-sign` class.
  7183. :term:`UBOOT_FIT_SIGN_ALG`
  7184. Specifies the signature algorithm used in creating the U-Boot FIT Image.
  7185. This variable is set by default to "rsa2048" by the
  7186. :ref:`ref-classes-uboot-sign` class.
  7187. :term:`UBOOT_FIT_SIGN_NUMBITS`
  7188. Size of the private key used in signing the U-Boot FIT image, in number
  7189. of bits. The default value for this variable is set to "2048"
  7190. by the :ref:`ref-classes-uboot-sign` class.
  7191. :term:`UBOOT_FITIMAGE_ENABLE`
  7192. This variable allows to generate a FIT image for U-Boot, which is one
  7193. of the ways to implement a verified boot process.
  7194. Its default value is "0", so set it to "1" to enable this functionality::
  7195. UBOOT_FITIMAGE_ENABLE = "1"
  7196. See the :ref:`ref-classes-uboot-sign` class for details.
  7197. :term:`UBOOT_LOADADDRESS`
  7198. Specifies the load address for the U-Boot image. During U-Boot image
  7199. creation, the :term:`UBOOT_LOADADDRESS` variable is passed as a
  7200. command-line parameter to the ``uboot-mkimage`` utility.
  7201. To pass a 64 bit address, you will also need to set:
  7202. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7203. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7204. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7205. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7206. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7207. classes.
  7208. :term:`UBOOT_LOCALVERSION`
  7209. Appends a string to the name of the local version of the U-Boot
  7210. image. For example, assuming the version of the U-Boot image built
  7211. was "2013.10", the full version string reported by U-Boot would be
  7212. "2013.10-yocto" given the following statement::
  7213. UBOOT_LOCALVERSION = "-yocto"
  7214. :term:`UBOOT_MACHINE`
  7215. Specifies the value passed on the ``make`` command line when building
  7216. a U-Boot image. The value indicates the target platform
  7217. configuration. You typically set this variable from the machine
  7218. configuration file (i.e. ``conf/machine/machine_name.conf``).
  7219. Please see the "Selection of Processor Architecture and Board Type"
  7220. section in the U-Boot README for valid values for this variable.
  7221. :term:`UBOOT_MAKE_TARGET`
  7222. Specifies the target called in the ``Makefile``. The default target
  7223. is "all".
  7224. :term:`UBOOT_MKIMAGE`
  7225. Specifies the name of the mkimage command as used by the
  7226. :ref:`ref-classes-kernel-fitimage` class to assemble
  7227. the FIT image. This can be used to substitute an alternative command, wrapper
  7228. script or function if desired. The default is "uboot-mkimage".
  7229. :term:`UBOOT_MKIMAGE_DTCOPTS`
  7230. Options for the device tree compiler passed to ``mkimage -D`` feature
  7231. while creating a FIT image with the :ref:`ref-classes-kernel-fitimage`
  7232. class. If :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then the
  7233. :ref:`ref-classes-kernel-fitimage` class will not pass the ``-D`` option
  7234. to ``mkimage``.
  7235. This variable is also used by the :ref:`ref-classes-uboot-sign` class.
  7236. :term:`UBOOT_MKIMAGE_KERNEL_TYPE`
  7237. Specifies the type argument for the kernel as passed to ``uboot-mkimage``.
  7238. The default value is "kernel".
  7239. :term:`UBOOT_MKIMAGE_SIGN`
  7240. Specifies the name of the mkimage command as used by the
  7241. :ref:`ref-classes-kernel-fitimage` class to sign
  7242. the FIT image after it has been assembled (if enabled). This can be used
  7243. to substitute an alternative command, wrapper script or function if
  7244. desired. The default is "${:term:`UBOOT_MKIMAGE`}".
  7245. :term:`UBOOT_MKIMAGE_SIGN_ARGS`
  7246. Optionally specifies additional arguments for the
  7247. :ref:`ref-classes-kernel-fitimage` class to pass to the
  7248. mkimage command when signing the FIT image.
  7249. :term:`UBOOT_RD_ENTRYPOINT`
  7250. Specifies the entrypoint for the RAM disk image. During FIT image
  7251. creation, the :term:`UBOOT_RD_ENTRYPOINT` variable is used in
  7252. :ref:`ref-classes-kernel-fitimage` class to specify the entrypoint to be
  7253. used in creating the Image Tree Source for the FIT image.
  7254. :term:`UBOOT_RD_LOADADDRESS`
  7255. Specifies the load address for the RAM disk image. During FIT image
  7256. creation, the :term:`UBOOT_RD_LOADADDRESS` variable is used in
  7257. :ref:`ref-classes-kernel-fitimage` class to specify the load address to
  7258. be used in creating the Image Tree Source for the FIT image.
  7259. :term:`UBOOT_SIGN_ENABLE`
  7260. Enable signing of FIT image. The default value is "0".
  7261. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7262. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7263. classes.
  7264. :term:`UBOOT_SIGN_KEYDIR`
  7265. Location of the directory containing the RSA key and certificate used for
  7266. signing FIT image, used by the :ref:`ref-classes-kernel-fitimage` and
  7267. :ref:`ref-classes-uboot-sign` classes.
  7268. :term:`UBOOT_SIGN_KEYNAME`
  7269. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  7270. for signing U-Boot FIT image stored in the :term:`UBOOT_SIGN_KEYDIR`
  7271. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  7272. certificate stored in the :term:`UBOOT_SIGN_KEYDIR` directory, you will
  7273. have to set :term:`UBOOT_SIGN_KEYNAME` to ``dev``.
  7274. :term:`UBOOT_SUFFIX`
  7275. Points to the generated U-Boot extension. For example, ``u-boot.sb``
  7276. has a ``.sb`` extension.
  7277. The default U-Boot extension is ``.bin``
  7278. :term:`UBOOT_TARGET`
  7279. Specifies the target used for building U-Boot. The target is passed
  7280. directly as part of the "make" command (e.g. SPL and AIS). If you do
  7281. not specifically set this variable, the OpenEmbedded build process
  7282. passes and uses "all" for the target during the U-Boot building
  7283. process.
  7284. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`
  7285. Specifies a list of options that, if reported by the configure script
  7286. as being invalid, should not generate a warning during the
  7287. :ref:`ref-tasks-configure` task. Normally, invalid
  7288. configure options are simply not passed to the configure script (e.g.
  7289. should be removed from :term:`EXTRA_OECONF` or
  7290. :term:`PACKAGECONFIG_CONFARGS`).
  7291. However, there are common options that are passed to all
  7292. configure scripts at a class level, but might not be valid for some
  7293. configure scripts. Therefore warnings about these options are useless.
  7294. For these cases, the options are added to :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`.
  7295. The configure arguments check that uses
  7296. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` is part of the
  7297. :ref:`ref-classes-insane` class and is only enabled if the
  7298. recipe inherits the :ref:`ref-classes-autotools` class.
  7299. :term:`UPDATERCPN`
  7300. For recipes inheriting the
  7301. :ref:`ref-classes-update-rc.d` class, :term:`UPDATERCPN`
  7302. specifies the package that contains the initscript that is enabled.
  7303. The default value is "${PN}". Given that almost all recipes that
  7304. install initscripts package them in the main package for the recipe,
  7305. you rarely need to set this variable in individual recipes.
  7306. :term:`UPSTREAM_CHECK_COMMITS`
  7307. You can perform a per-recipe check for what the latest upstream
  7308. source code version is by calling ``devtool latest-version recipe``. If
  7309. the recipe source code is provided from Git repositories, but
  7310. releases are not identified by Git tags, set :term:`UPSTREAM_CHECK_COMMITS`
  7311. to ``1`` in the recipe, and the OpenEmbedded build system
  7312. will compare the latest commit with the one currently specified
  7313. by the recipe (:term:`SRCREV`)::
  7314. UPSTREAM_CHECK_COMMITS = "1"
  7315. :term:`UPSTREAM_CHECK_GITTAGREGEX`
  7316. You can perform a per-recipe check for what the latest upstream
  7317. source code version is by calling ``devtool latest-version recipe``. If
  7318. the recipe source code is provided from Git repositories, the
  7319. OpenEmbedded build system determines the latest upstream version by
  7320. picking the latest tag from the list of all repository tags.
  7321. You can use the :term:`UPSTREAM_CHECK_GITTAGREGEX` variable to provide a
  7322. regular expression to filter only the relevant tags should the
  7323. default filter not work correctly::
  7324. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  7325. :term:`UPSTREAM_CHECK_REGEX`
  7326. Use the :term:`UPSTREAM_CHECK_REGEX` variable to specify a different
  7327. regular expression instead of the default one when the package
  7328. checking system is parsing the page found using
  7329. :term:`UPSTREAM_CHECK_URI`::
  7330. UPSTREAM_CHECK_REGEX = "package_regex"
  7331. :term:`UPSTREAM_CHECK_URI`
  7332. You can perform a per-recipe check for what the latest upstream
  7333. source code version is by calling ``devtool latest-version recipe``. If
  7334. the source code is provided from tarballs, the latest version is
  7335. determined by fetching the directory listing where the tarball is and
  7336. attempting to find a later tarball. When this approach does not work,
  7337. you can use :term:`UPSTREAM_CHECK_URI` to provide a different URI that
  7338. contains the link to the latest tarball::
  7339. UPSTREAM_CHECK_URI = "recipe_url"
  7340. :term:`UPSTREAM_VERSION_UNKNOWN`
  7341. You can perform a per-recipe check for what the latest upstream
  7342. source code version is by calling ``devtool latest-version recipe``.
  7343. If no combination of the :term:`UPSTREAM_CHECK_URI`, :term:`UPSTREAM_CHECK_REGEX`,
  7344. :term:`UPSTREAM_CHECK_GITTAGREGEX` and :term:`UPSTREAM_CHECK_COMMITS` variables in
  7345. the recipe allows to determine what the latest upstream version is,
  7346. you can set :term:`UPSTREAM_VERSION_UNKNOWN` to ``1`` in the recipe
  7347. to acknowledge that the check cannot be performed::
  7348. UPSTREAM_VERSION_UNKNOWN = "1"
  7349. :term:`USE_DEVFS`
  7350. Determines if ``devtmpfs`` is used for ``/dev`` population. The
  7351. default value used for :term:`USE_DEVFS` is "1" when no value is
  7352. specifically set. Typically, you would set :term:`USE_DEVFS` to "0" for a
  7353. statically populated ``/dev`` directory.
  7354. See the ":ref:`dev-manual/device-manager:selecting a device manager`" section in
  7355. the Yocto Project Development Tasks Manual for information on how to
  7356. use this variable.
  7357. :term:`USE_VT`
  7358. When using
  7359. :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  7360. determines whether or not to run a :wikipedia:`getty <Getty_(Unix)>`
  7361. on any virtual terminals in order to enable logging in through those
  7362. terminals.
  7363. The default value used for :term:`USE_VT` is "1" when no default value is
  7364. specifically set. Typically, you would set :term:`USE_VT` to "0" in the
  7365. machine configuration file for machines that do not have a graphical
  7366. display attached and therefore do not need virtual terminal
  7367. functionality.
  7368. :term:`USER_CLASSES`
  7369. A list of classes to globally inherit. These classes are used by the
  7370. OpenEmbedded build system to enable extra features.
  7371. Classes inherited using :term:`USER_CLASSES` must be located in the
  7372. ``classes-global/`` or ``classes/`` subdirectories.
  7373. The default list is set in your ``local.conf`` file::
  7374. USER_CLASSES ?= "buildstats"
  7375. For more information, see
  7376. ``meta-poky/conf/templates/default/local.conf.sample`` in the
  7377. :term:`Source Directory`.
  7378. :term:`USERADD_ERROR_DYNAMIC`
  7379. If set to ``error``, forces the OpenEmbedded build system to produce
  7380. an error if the user identification (``uid``) and group
  7381. identification (``gid``) values are not defined in any of the files
  7382. listed in :term:`USERADD_UID_TABLES` and
  7383. :term:`USERADD_GID_TABLES`. If set to
  7384. ``warn``, a warning will be issued instead.
  7385. The default behavior for the build system is to dynamically apply
  7386. ``uid`` and ``gid`` values. Consequently, the
  7387. :term:`USERADD_ERROR_DYNAMIC` variable is by default not set. If you plan
  7388. on using statically assigned ``gid`` and ``uid`` values, you should
  7389. set the :term:`USERADD_ERROR_DYNAMIC` variable in your ``local.conf``
  7390. file as follows::
  7391. USERADD_ERROR_DYNAMIC = "error"
  7392. Overriding the
  7393. default behavior implies you are going to also take steps to set
  7394. static ``uid`` and ``gid`` values through use of the
  7395. :term:`USERADDEXTENSION`,
  7396. :term:`USERADD_UID_TABLES`, and
  7397. :term:`USERADD_GID_TABLES` variables.
  7398. .. note::
  7399. There is a difference in behavior between setting
  7400. :term:`USERADD_ERROR_DYNAMIC` to ``error`` and setting it to ``warn``.
  7401. When it is set to ``warn``, the build system will report a warning for
  7402. every undefined ``uid`` and ``gid`` in any recipe. But when it is set
  7403. to ``error``, it will only report errors for recipes that are actually
  7404. built.
  7405. This saves you from having to add static IDs for recipes that you
  7406. know will never be built.
  7407. :term:`USERADD_GID_TABLES`
  7408. Specifies a password file to use for obtaining static group
  7409. identification (``gid``) values when the OpenEmbedded build system
  7410. adds a group to the system during package installation.
  7411. When applying static group identification (``gid``) values, the
  7412. OpenEmbedded build system looks in :term:`BBPATH` for a
  7413. ``files/group`` file and then applies those ``uid`` values. Set the
  7414. variable as follows in your ``local.conf`` file::
  7415. USERADD_GID_TABLES = "files/group"
  7416. .. note::
  7417. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7418. causes the build system to use static ``gid`` values.
  7419. :term:`USERADD_PACKAGES`
  7420. When inheriting the :ref:`ref-classes-useradd` class,
  7421. this variable specifies the individual packages within the recipe
  7422. that require users and/or groups to be added.
  7423. You must set this variable if the recipe inherits the class. For
  7424. example, the following enables adding a user for the main package in
  7425. a recipe::
  7426. USERADD_PACKAGES = "${PN}"
  7427. .. note::
  7428. It follows that if you are going to use the :term:`USERADD_PACKAGES`
  7429. variable, you need to set one or more of the :term:`USERADD_PARAM`,
  7430. :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables.
  7431. :term:`USERADD_PARAM`
  7432. When inheriting the :ref:`ref-classes-useradd` class,
  7433. this variable specifies for a package what parameters should pass to
  7434. the ``useradd`` command if you add a user to the system when the
  7435. package is installed.
  7436. Here is an example from the ``dbus`` recipe::
  7437. USERADD_PARAM:${PN} = "--system --home ${localstatedir}/lib/dbus \
  7438. --no-create-home --shell /bin/false \
  7439. --user-group messagebus"
  7440. For information on the
  7441. standard Linux shell command ``useradd``, see
  7442. https://linux.die.net/man/8/useradd.
  7443. :term:`USERADD_UID_TABLES`
  7444. Specifies a password file to use for obtaining static user
  7445. identification (``uid``) values when the OpenEmbedded build system
  7446. adds a user to the system during package installation.
  7447. When applying static user identification (``uid``) values, the
  7448. OpenEmbedded build system looks in :term:`BBPATH` for a
  7449. ``files/passwd`` file and then applies those ``uid`` values. Set the
  7450. variable as follows in your ``local.conf`` file::
  7451. USERADD_UID_TABLES = "files/passwd"
  7452. .. note::
  7453. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7454. causes the build system to use static ``uid`` values.
  7455. :term:`USERADDEXTENSION`
  7456. When set to "useradd-staticids", causes the OpenEmbedded build system
  7457. to base all user and group additions on a static ``passwd`` and
  7458. ``group`` files found in :term:`BBPATH`.
  7459. To use static user identification (``uid``) and group identification
  7460. (``gid``) values, set the variable as follows in your ``local.conf``
  7461. file: USERADDEXTENSION = "useradd-staticids"
  7462. .. note::
  7463. Setting this variable to use static ``uid`` and ``gid``
  7464. values causes the OpenEmbedded build system to employ the
  7465. :ref:`ref-classes-useradd` class.
  7466. If you use static ``uid`` and ``gid`` information, you must also
  7467. specify the ``files/passwd`` and ``files/group`` files by setting the
  7468. :term:`USERADD_UID_TABLES` and
  7469. :term:`USERADD_GID_TABLES` variables.
  7470. Additionally, you should also set the
  7471. :term:`USERADD_ERROR_DYNAMIC` variable.
  7472. :term:`VOLATILE_LOG_DIR`
  7473. Specifies the persistence of the target's ``/var/log`` directory,
  7474. which is used to house postinstall target log files.
  7475. By default, :term:`VOLATILE_LOG_DIR` is set to "yes", which means the
  7476. file is not persistent. You can override this setting by setting the
  7477. variable to "no" to make the log directory persistent.
  7478. :term:`VOLATILE_TMP_DIR`
  7479. Specifies the persistence of the target's ``/tmp`` directory.
  7480. By default, :term:`VOLATILE_TMP_DIR` is set to "yes", in which case
  7481. ``/tmp`` links to a directory which resides in RAM in a ``tmpfs``
  7482. filesystem.
  7483. If instead, you want the ``/tmp`` directory to be persistent, set the
  7484. variable to "no" to make it a regular directory in the root filesystem.
  7485. This supports both sysvinit and systemd based systems.
  7486. :term:`WARN_QA`
  7487. Specifies the quality assurance checks whose failures are reported as
  7488. warnings by the OpenEmbedded build system. You set this variable in
  7489. your distribution configuration file. For a list of the checks you
  7490. can control with this variable, see the
  7491. ":ref:`ref-classes-insane`" section.
  7492. :term:`WATCHDOG_TIMEOUT`
  7493. Specifies the timeout in seconds used by the ``watchdog`` recipe and
  7494. also by ``systemd`` during reboot. The default is 60 seconds.
  7495. :term:`WIRELESS_DAEMON`
  7496. For ``connman`` and ``packagegroup-base``, specifies the wireless
  7497. daemon to use. The default is "wpa-supplicant" (note that the value
  7498. uses a dash and not an underscore).
  7499. :term:`WKS_FILE`
  7500. Specifies the location of the Wic kickstart file that is used by the
  7501. OpenEmbedded build system to create a partitioned image
  7502. (``image.wic``). For information on how to create a partitioned
  7503. image, see the
  7504. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  7505. section in the Yocto Project Development Tasks Manual. For details on
  7506. the kickstart file format, see the ":doc:`/ref-manual/kickstart`" Chapter.
  7507. :term:`WKS_FILE_DEPENDS`
  7508. When placed in the recipe that builds your image, this variable lists
  7509. build-time dependencies. The :term:`WKS_FILE_DEPENDS` variable is only
  7510. applicable when Wic images are active (i.e. when
  7511. :term:`IMAGE_FSTYPES` contains entries related
  7512. to Wic). If your recipe does not create Wic images, the variable has
  7513. no effect.
  7514. The :term:`WKS_FILE_DEPENDS` variable is similar to the
  7515. :term:`DEPENDS` variable. When you use the variable in
  7516. your recipe that builds the Wic image, dependencies you list in the
  7517. :term:`WKS_FILE_DEPENDS` variable are added to the :term:`DEPENDS` variable.
  7518. With the :term:`WKS_FILE_DEPENDS` variable, you have the possibility to
  7519. specify a list of additional dependencies (e.g. native tools,
  7520. bootloaders, and so forth), that are required to build Wic images.
  7521. Following is an example::
  7522. WKS_FILE_DEPENDS = "some-native-tool"
  7523. In the
  7524. previous example, some-native-tool would be replaced with an actual
  7525. native tool on which the build would depend.
  7526. :term:`WKS_FILES`
  7527. Specifies a list of candidate Wic kickstart files to be used by the
  7528. OpenEmbedded build system to create a partitioned image. Only the
  7529. first one that is found, from left to right, will be used.
  7530. This is only useful when there are multiple ``.wks`` files that can be
  7531. used to produce an image. A typical case is when multiple layers are
  7532. used for different hardware platforms, each supplying a different
  7533. ``.wks`` file. In this case, you specify all possible ones through
  7534. :term:`WKS_FILES`.
  7535. If only one ``.wks`` file is used, set :term:`WKS_FILE` instead.
  7536. :term:`WORKDIR`
  7537. The pathname of the work directory in which the OpenEmbedded build
  7538. system builds a recipe. This directory is located within the
  7539. :term:`TMPDIR` directory structure and is specific to
  7540. the recipe being built and the system for which it is being built.
  7541. The :term:`WORKDIR` directory is defined as follows::
  7542. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  7543. The actual directory depends on several things:
  7544. - :term:`TMPDIR`: The top-level build output directory
  7545. - :term:`MULTIMACH_TARGET_SYS`: The target system identifier
  7546. - :term:`PN`: The recipe name
  7547. - :term:`EXTENDPE`: The epoch --- if :term:`PE` is not specified, which
  7548. is usually the case for most recipes, then :term:`EXTENDPE` is blank.
  7549. - :term:`PV`: The recipe version
  7550. - :term:`PR`: The recipe revision
  7551. As an example, assume a Source Directory top-level folder name
  7552. ``poky``, a default :term:`Build Directory` at ``poky/build``, and a
  7553. ``qemux86-poky-linux`` machine target system. Furthermore, suppose
  7554. your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
  7555. directory the build system uses to build the package would be as
  7556. follows::
  7557. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  7558. :term:`XSERVER`
  7559. Specifies the packages that should be installed to provide an X
  7560. server and drivers for the current machine, assuming your image
  7561. directly includes ``packagegroup-core-x11-xserver`` or, perhaps
  7562. indirectly, includes "x11-base" in
  7563. :term:`IMAGE_FEATURES`.
  7564. The default value of :term:`XSERVER`, if not specified in the machine
  7565. configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  7566. :term:`XZ_THREADS`
  7567. Specifies the number of parallel threads that should be used when
  7568. using xz compression.
  7569. By default this scales with core count, but is never set less than 2
  7570. to ensure that multi-threaded mode is always used so that the output
  7571. file contents are deterministic. Builds will work with a value of 1
  7572. but the output will differ compared to the output from the compression
  7573. generated when more than one thread is used.
  7574. On systems where many tasks run in parallel, setting a limit to this
  7575. can be helpful in controlling system resource usage.
  7576. :term:`XZ_MEMLIMIT`
  7577. Specifies the maximum memory the xz compression should use as a percentage
  7578. of system memory. If unconstrained the xz compressor can use large amounts of
  7579. memory and become problematic with parallelism elsewhere in the build.
  7580. "50%" has been found to be a good value.
  7581. :term:`ZSTD_THREADS`
  7582. Specifies the number of parallel threads that should be used when
  7583. using ZStandard compression.
  7584. By default this scales with core count, but is never set less than 2
  7585. to ensure that multi-threaded mode is always used so that the output
  7586. file contents are deterministic. Builds will work with a value of 1
  7587. but the output will differ compared to the output from the compression
  7588. generated when more than one thread is used.
  7589. On systems where many tasks run in parallel, setting a limit to this
  7590. can be helpful in controlling system resource usage.