variables.rst 442 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336
  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 <FAKEROOT>`
  9. :term:`G <GCCPIE>` :term:`H <HGDIR>` :term:`I <ICECC_CLASS_DISABLE>`
  10. :term:`K <KARCH>` :term:`L <LABELS>` :term:`M <MACHINE>`
  11. :term:`N <NATIVELSBSTRING>` :term:`O <OBJCOPY>` :term:`P`
  12. :term:`Q <QA_EMPTY_DIRS>` :term:`R <RANLIB>` :term:`S` :term:`T`
  13. :term:`U <UBOOT_BINARY>` :term:`V <VIRTUAL-RUNTIME>`
  14. :term:`W <WARN_QA>` :term:`X <XSERVER>` :term:`Z <ZSTD_THREADS>`
  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 make sure :term:`PV` contains the ``+`` sign so
  163. :term:`bitbake` includes source control information to :term:`PKGV` when
  164. packaging the recipe. For example::
  165. PV = "6.10.y+git"
  166. For more information see the
  167. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  168. section in the Yocto Project Development Tasks Manual.
  169. :term:`AUTO_SYSLINUXMENU`
  170. Enables creating an automatic menu for the syslinux bootloader. You
  171. must set this variable in your recipe. The
  172. :ref:`ref-classes-syslinux` class checks this variable.
  173. :term:`AVAILTUNES`
  174. The list of defined CPU and Application Binary Interface (ABI)
  175. tunings (i.e. "tunes") available for use by the OpenEmbedded build
  176. system.
  177. The list simply presents the tunes that are available. Not all tunes
  178. may be compatible with a particular machine configuration, or with
  179. each other in a
  180. :ref:`Multilib <dev-manual/libraries:combining multiple versions of library files into one image>`
  181. configuration.
  182. To add a tune to the list, be sure to append it with spaces using the
  183. "+=" BitBake operator. Do not simply replace the list by using the
  184. "=" operator. See the
  185. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:basic syntax`" section in the BitBake
  186. User Manual for more information.
  187. :term:`AZ_SAS`
  188. Azure Storage Shared Access Signature, when using the
  189. :ref:`Azure Storage fetcher (az://) <bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
  190. This variable can be defined to be used by the fetcher to authenticate
  191. and gain access to non-public artifacts::
  192. AZ_SAS = ""se=2021-01-01&sp=r&sv=2018-11-09&sr=c&skoid=<skoid>&sig=<signature>""
  193. For more information see Microsoft's Azure Storage documentation at
  194. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
  195. :term:`B`
  196. The directory within the :term:`Build Directory` in which the
  197. OpenEmbedded build system places generated objects during a recipe's
  198. build process. By default, this directory is the same as the
  199. :term:`S` directory, which is defined as::
  200. S = "${WORKDIR}/${BP}"
  201. You can separate the (:term:`S`) directory and the directory pointed to
  202. by the :term:`B` variable. Most Autotools-based recipes support
  203. separating these directories. The build system defaults to using
  204. separate directories for ``gcc`` and some kernel recipes.
  205. :term:`BAD_RECOMMENDATIONS`
  206. Lists "recommended-only" packages to not install. Recommended-only
  207. packages are packages installed only through the
  208. :term:`RRECOMMENDS` variable. You can prevent any
  209. of these "recommended" packages from being installed by listing them
  210. with the :term:`BAD_RECOMMENDATIONS` variable::
  211. BAD_RECOMMENDATIONS = "package_name package_name package_name ..."
  212. You can set this variable globally in your ``local.conf`` file or you
  213. can attach it to a specific image recipe by using the recipe name
  214. override::
  215. BAD_RECOMMENDATIONS:pn-target_image = "package_name"
  216. It is important to realize that if you choose to not install packages
  217. using this variable and some other packages are dependent on them
  218. (i.e. listed in a recipe's :term:`RDEPENDS`
  219. variable), the OpenEmbedded build system ignores your request and
  220. will install the packages to avoid dependency errors.
  221. This variable is supported only when using the IPK and RPM
  222. packaging backends. DEB is not supported.
  223. See the :term:`NO_RECOMMENDATIONS` and the
  224. :term:`PACKAGE_EXCLUDE` variables for related
  225. information.
  226. :term:`BASE_LIB`
  227. The library directory name for the CPU or Application Binary
  228. Interface (ABI) tune. The :term:`BASE_LIB` applies only in the Multilib
  229. context. See the ":ref:`dev-manual/libraries:combining multiple versions of library files into one image`"
  230. section in the Yocto Project Development Tasks Manual for information
  231. on Multilib.
  232. The :term:`BASE_LIB` variable is defined in the machine include files in
  233. the :term:`Source Directory`. If Multilib is not
  234. being used, the value defaults to "lib".
  235. :term:`BASE_WORKDIR`
  236. Points to the base of the work directory for all recipes. The default
  237. value is "${TMPDIR}/work".
  238. :term:`BB_ALLOWED_NETWORKS`
  239. Specifies a space-delimited list of hosts that the fetcher is allowed
  240. to use to obtain the required source code. Here are
  241. considerations surrounding this variable:
  242. - This host list is only used if :term:`BB_NO_NETWORK` is either not set
  243. or set to "0".
  244. - There is limited support for wildcard matching against the beginning of
  245. host names. For example, the following setting matches
  246. ``git.gnu.org``, ``ftp.gnu.org``, and ``foo.git.gnu.org``::
  247. BB_ALLOWED_NETWORKS = "*.gnu.org"
  248. .. note::
  249. The use of the "``*``" character only works at the beginning of
  250. a host name and it must be isolated from the remainder of the
  251. host name. You cannot use the wildcard character in any other
  252. location of the name or combined with the front part of the
  253. name.
  254. For example, ``*.foo.bar`` is supported, while ``*aa.foo.bar``
  255. is not.
  256. - Mirrors not in the host list are skipped and logged in debug.
  257. - Attempts to access networks not in the host list cause a failure.
  258. Using :term:`BB_ALLOWED_NETWORKS` in conjunction with
  259. :term:`PREMIRRORS` is very useful. Adding the host
  260. you want to use to :term:`PREMIRRORS` results in the source code being
  261. fetched from an allowed location and avoids raising an error when a
  262. host that is not allowed is in a :term:`SRC_URI`
  263. statement. This is because the fetcher does not attempt to use the
  264. host listed in :term:`SRC_URI` after a successful fetch from the
  265. :term:`PREMIRRORS` occurs.
  266. :term:`BB_BASEHASH_IGNORE_VARS`
  267. See :term:`bitbake:BB_BASEHASH_IGNORE_VARS` in the BitBake manual.
  268. :term:`BB_CACHEDIR`
  269. See :term:`bitbake:BB_CACHEDIR` in the BitBake manual.
  270. :term:`BB_CHECK_SSL_CERTS`
  271. See :term:`bitbake:BB_CHECK_SSL_CERTS` in the BitBake manual.
  272. :term:`BB_CONSOLELOG`
  273. See :term:`bitbake:BB_CONSOLELOG` in the BitBake manual.
  274. :term:`BB_CURRENTTASK`
  275. See :term:`bitbake:BB_CURRENTTASK` in the BitBake manual.
  276. :term:`BB_DANGLINGAPPENDS_WARNONLY`
  277. Defines how BitBake handles situations where an append file
  278. (``.bbappend``) has no corresponding recipe file (``.bb``). This
  279. condition often occurs when layers get out of sync (e.g. ``oe-core``
  280. bumps a recipe version and the old recipe no longer exists and the
  281. other layer has not been updated to the new version of the recipe
  282. yet).
  283. The default fatal behavior is safest because it is the sane reaction
  284. given something is out of sync. It is important to realize when your
  285. changes are no longer being applied.
  286. You can change the default behavior by setting this variable to "1",
  287. "yes", or "true" in your ``local.conf`` file, which is located in the
  288. :term:`Build Directory`: Here is an example::
  289. BB_DANGLINGAPPENDS_WARNONLY = "1"
  290. :term:`BB_DEFAULT_TASK`
  291. See :term:`bitbake:BB_DEFAULT_TASK` in the BitBake manual.
  292. :term:`BB_DEFAULT_UMASK`
  293. See :term:`bitbake:BB_DEFAULT_UMASK` in the BitBake manual.
  294. :term:`BB_DISKMON_DIRS`
  295. Monitors disk space and available inodes during the build and allows
  296. you to control the build based on these parameters.
  297. Disk space monitoring is disabled by default. To enable monitoring,
  298. add the :term:`BB_DISKMON_DIRS` variable to your ``conf/local.conf`` file
  299. found in the :term:`Build Directory`. Use the
  300. following form:
  301. .. code-block:: none
  302. BB_DISKMON_DIRS = "action,dir,threshold [...]"
  303. where:
  304. action is:
  305. ABORT: Immediately stop the build when
  306. a threshold is broken.
  307. STOPTASKS: Stop the build after the currently
  308. executing tasks have finished when
  309. a threshold is broken.
  310. WARN: Issue a warning but continue the
  311. build when a threshold is broken.
  312. Subsequent warnings are issued as
  313. defined by the BB_DISKMON_WARNINTERVAL
  314. variable, which must be defined in
  315. the conf/local.conf file.
  316. dir is:
  317. Any directory you choose. You can specify one or
  318. more directories to monitor by separating the
  319. groupings with a space. If two directories are
  320. on the same device, only the first directory
  321. is monitored.
  322. threshold is:
  323. Either the minimum available disk space,
  324. the minimum number of free inodes, or
  325. both. You must specify at least one. To
  326. omit one or the other, simply omit the value.
  327. Specify the threshold using G, M, K for Gbytes,
  328. Mbytes, and Kbytes, respectively. If you do
  329. not specify G, M, or K, Kbytes is assumed by
  330. default. Do not use GB, MB, or KB.
  331. Here are some examples::
  332. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  333. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  334. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  335. The first example works only if you also provide the
  336. :term:`BB_DISKMON_WARNINTERVAL`
  337. variable in the ``conf/local.conf``. This example causes the build
  338. system to immediately stop when either the disk space in
  339. ``${TMPDIR}`` drops below 1 Gbyte or the available free inodes drops
  340. below 100 Kbytes. Because two directories are provided with the
  341. variable, the build system also issue a warning when the disk space
  342. in the ``${SSTATE_DIR}`` directory drops below 1 Gbyte or the number
  343. of free inodes drops below 100 Kbytes. Subsequent warnings are issued
  344. during intervals as defined by the :term:`BB_DISKMON_WARNINTERVAL`
  345. variable.
  346. The second example stops the build after all currently executing
  347. tasks complete when the minimum disk space in the ``${TMPDIR}``
  348. directory drops below 1 Gbyte. No disk monitoring occurs for the free
  349. inodes in this case.
  350. The final example immediately stops the build when the number of
  351. free inodes in the ``${TMPDIR}`` directory drops below 100 Kbytes. No
  352. disk space monitoring for the directory itself occurs in this case.
  353. :term:`BB_DISKMON_WARNINTERVAL`
  354. Defines the disk space and free inode warning intervals. To set these
  355. intervals, define the variable in your ``conf/local.conf`` file in
  356. the :term:`Build Directory`.
  357. If you are going to use the :term:`BB_DISKMON_WARNINTERVAL` variable, you
  358. must also use the :term:`BB_DISKMON_DIRS`
  359. variable and define its action as "WARN". During the build,
  360. subsequent warnings are issued each time disk space or number of free
  361. inodes further reduces by the respective interval.
  362. If you do not provide a :term:`BB_DISKMON_WARNINTERVAL` variable and you
  363. do use :term:`BB_DISKMON_DIRS` with the "WARN" action, the disk
  364. monitoring interval defaults to the following::
  365. BB_DISKMON_WARNINTERVAL = "50M,5K"
  366. When specifying the variable in your configuration file, use the
  367. following form:
  368. .. code-block:: none
  369. BB_DISKMON_WARNINTERVAL = "disk_space_interval,disk_inode_interval"
  370. where:
  371. disk_space_interval is:
  372. An interval of memory expressed in either
  373. G, M, or K for Gbytes, Mbytes, or Kbytes,
  374. respectively. You cannot use GB, MB, or KB.
  375. disk_inode_interval is:
  376. An interval of free inodes expressed in either
  377. G, M, or K for Gbytes, Mbytes, or Kbytes,
  378. respectively. You cannot use GB, MB, or KB.
  379. Here is an example::
  380. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  381. BB_DISKMON_WARNINTERVAL = "50M,5K"
  382. These variables cause the
  383. OpenEmbedded build system to issue subsequent warnings each time the
  384. available disk space further reduces by 50 Mbytes or the number of
  385. free inodes further reduces by 5 Kbytes in the ``${SSTATE_DIR}``
  386. directory. Subsequent warnings based on the interval occur each time
  387. a respective interval is reached beyond the initial warning (i.e. 1
  388. Gbytes and 100 Kbytes).
  389. :term:`BB_ENV_PASSTHROUGH`
  390. See :term:`bitbake:BB_ENV_PASSTHROUGH` in the BitBake manual.
  391. :term:`BB_ENV_PASSTHROUGH_ADDITIONS`
  392. See :term:`bitbake:BB_ENV_PASSTHROUGH_ADDITIONS` in the BitBake manual.
  393. :term:`BB_FETCH_PREMIRRORONLY`
  394. See :term:`bitbake:BB_FETCH_PREMIRRORONLY` in the BitBake manual.
  395. :term:`BB_FILENAME`
  396. See :term:`bitbake:BB_FILENAME` in the BitBake manual.
  397. :term:`BB_GENERATE_MIRROR_TARBALLS`
  398. Causes tarballs of the source control repositories (e.g. Git
  399. repositories), including metadata, to be placed in the
  400. :term:`DL_DIR` directory.
  401. For performance reasons, creating and placing tarballs of these
  402. repositories is not the default action by the OpenEmbedded build
  403. system::
  404. BB_GENERATE_MIRROR_TARBALLS = "1"
  405. Set this variable in your
  406. ``local.conf`` file in the :term:`Build Directory`.
  407. Once you have the tarballs containing your source files, you can
  408. clean up your :term:`DL_DIR` directory by deleting any Git or other
  409. source control work directories.
  410. :term:`BB_GENERATE_SHALLOW_TARBALLS`
  411. See :term:`bitbake:BB_GENERATE_SHALLOW_TARBALLS` in the BitBake manual.
  412. :term:`BB_GIT_SHALLOW`
  413. See :term:`bitbake:BB_GIT_SHALLOW` in the BitBake manual.
  414. :term:`BB_GIT_SHALLOW_DEPTH`
  415. See :term:`bitbake:BB_GIT_SHALLOW_DEPTH` in the BitBake manual.
  416. :term:`BB_HASHCHECK_FUNCTION`
  417. See :term:`bitbake:BB_HASHCHECK_FUNCTION` in the BitBake manual.
  418. :term:`BB_HASHCONFIG_IGNORE_VARS`
  419. See :term:`bitbake:BB_HASHCONFIG_IGNORE_VARS` in the BitBake manual.
  420. :term:`BB_HASHSERVE`
  421. See :term:`bitbake:BB_HASHSERVE` in the BitBake manual.
  422. :term:`BB_HASHSERVE_UPSTREAM`
  423. See :term:`bitbake:BB_HASHSERVE_UPSTREAM` in the BitBake manual.
  424. :term:`BB_INVALIDCONF`
  425. See :term:`bitbake:BB_INVALIDCONF` in the BitBake manual.
  426. :term:`BB_LOADFACTOR_MAX`
  427. The system load threshold above which BitBake will stop runnig extra
  428. tasks.
  429. :term:`BB_LOGCONFIG`
  430. See :term:`bitbake:BB_LOGCONFIG` in the BitBake manual.
  431. :term:`BB_LOGFMT`
  432. See :term:`bitbake:BB_LOGFMT` in the BitBake manual.
  433. :term:`BB_MULTI_PROVIDER_ALLOWED`
  434. See :term:`bitbake:BB_MULTI_PROVIDER_ALLOWED` in the BitBake manual.
  435. :term:`BB_NICE_LEVEL`
  436. See :term:`bitbake:BB_NICE_LEVEL` in the BitBake manual.
  437. :term:`BB_NO_NETWORK`
  438. See :term:`bitbake:BB_NO_NETWORK` in the BitBake manual.
  439. :term:`BB_NUMBER_PARSE_THREADS`
  440. See :term:`bitbake:BB_NUMBER_PARSE_THREADS` in the BitBake manual.
  441. :term:`BB_NUMBER_THREADS`
  442. The maximum number of tasks BitBake should run in parallel at any one
  443. time. The OpenEmbedded build system automatically configures this
  444. variable to be equal to the number of cores on the build system. For
  445. example, a system with a dual core processor that also uses
  446. hyper-threading causes the :term:`BB_NUMBER_THREADS` variable to default
  447. to "4".
  448. For single socket systems (i.e. one CPU), you should not have to
  449. override this variable to gain optimal parallelism during builds.
  450. However, if you have very large systems that employ multiple physical
  451. CPUs, you might want to make sure the :term:`BB_NUMBER_THREADS` variable
  452. is not set higher than "20".
  453. For more information on speeding up builds, see the
  454. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  455. section in the Yocto Project Development Tasks Manual.
  456. On the other hand, if your goal is to limit the amount of system
  457. resources consumed by BitBake tasks, setting :term:`BB_NUMBER_THREADS`
  458. to a number lower than the number of CPU threads in your machine
  459. won't be sufficient. That's because each package will still be built
  460. and installed through a number of parallel jobs specified by the
  461. :term:`PARALLEL_MAKE` variable, which is by default the number of CPU
  462. threads in your system, and is not impacted by the
  463. :term:`BB_NUMBER_THREADS` value.
  464. So, if you set :term:`BB_NUMBER_THREADS` to "1" but don't set
  465. :term:`PARALLEL_MAKE`, most of your system resources will be consumed
  466. anyway.
  467. Therefore, if you intend to reduce the load of your build system by
  468. setting :term:`BB_NUMBER_THREADS` to a relatively low value compared
  469. to the number of CPU threads on your system, you should also set
  470. :term:`PARALLEL_MAKE` to a similarly low value.
  471. An alternative to using :term:`BB_NUMBER_THREADS` to keep the usage
  472. of build system resources under control is to use the smarter
  473. :term:`BB_PRESSURE_MAX_CPU`, :term:`BB_PRESSURE_MAX_IO` or
  474. :term:`BB_PRESSURE_MAX_MEMORY` controls. They will prevent BitBake
  475. from starting new tasks as long as thresholds are exceeded. Anyway,
  476. as with :term:`BB_NUMBER_THREADS`, such controls won't prevent the
  477. tasks already being run from using all CPU threads on the system
  478. if :term:`PARALLEL_MAKE` is not set to a low value.
  479. :term:`BB_ORIGENV`
  480. See :term:`bitbake:BB_ORIGENV` in the BitBake manual.
  481. :term:`BB_PRESERVE_ENV`
  482. See :term:`bitbake:BB_PRESERVE_ENV` in the BitBake manual.
  483. :term:`BB_PRESSURE_MAX_CPU`
  484. See :term:`bitbake:BB_PRESSURE_MAX_CPU` in the BitBake manual.
  485. :term:`BB_PRESSURE_MAX_IO`
  486. See :term:`bitbake:BB_PRESSURE_MAX_IO` in the BitBake manual.
  487. :term:`BB_PRESSURE_MAX_MEMORY`
  488. See :term:`bitbake:BB_PRESSURE_MAX_MEMORY` in the BitBake manual.
  489. :term:`BB_RUNFMT`
  490. See :term:`bitbake:BB_RUNFMT` in the BitBake manual.
  491. :term:`BB_RUNTASK`
  492. See :term:`bitbake:BB_RUNTASK` in the BitBake manual.
  493. :term:`BB_SCHEDULER`
  494. See :term:`bitbake:BB_SCHEDULER` in the BitBake manual.
  495. :term:`BB_SCHEDULERS`
  496. See :term:`bitbake:BB_SCHEDULERS` in the BitBake manual.
  497. :term:`BB_SERVER_TIMEOUT`
  498. Specifies the time (in seconds) after which to unload the BitBake
  499. server due to inactivity. Set :term:`BB_SERVER_TIMEOUT` to determine how
  500. long the BitBake server stays resident between invocations.
  501. For example, the following statement in your ``local.conf`` file
  502. instructs the server to be unloaded after 20 seconds of inactivity::
  503. BB_SERVER_TIMEOUT = "20"
  504. If you want the server to never be unloaded,
  505. set :term:`BB_SERVER_TIMEOUT` to "-1".
  506. :term:`BB_SETSCENE_DEPVALID`
  507. See :term:`bitbake:BB_SETSCENE_DEPVALID` in the BitBake manual.
  508. :term:`BB_SIGNATURE_EXCLUDE_FLAGS`
  509. See :term:`bitbake:BB_SIGNATURE_EXCLUDE_FLAGS` in the BitBake manual.
  510. :term:`BB_SIGNATURE_HANDLER`
  511. See :term:`bitbake:BB_SIGNATURE_HANDLER` in the BitBake manual.
  512. :term:`BB_SRCREV_POLICY`
  513. See :term:`bitbake:BB_SRCREV_POLICY` in the BitBake manual.
  514. :term:`BB_STRICT_CHECKSUM`
  515. See :term:`bitbake:BB_STRICT_CHECKSUM` in the BitBake manual.
  516. :term:`BB_TASK_IONICE_LEVEL`
  517. See :term:`bitbake:BB_TASK_IONICE_LEVEL` in the BitBake manual.
  518. :term:`BB_TASK_NICE_LEVEL`
  519. See :term:`bitbake:BB_TASK_NICE_LEVEL` in the BitBake manual.
  520. :term:`BB_TASKHASH`
  521. See :term:`bitbake:BB_TASKHASH` in the BitBake manual.
  522. :term:`BB_VERBOSE_LOGS`
  523. See :term:`bitbake:BB_VERBOSE_LOGS` in the BitBake manual.
  524. :term:`BB_WORKERCONTEXT`
  525. See :term:`bitbake:BB_WORKERCONTEXT` in the BitBake manual.
  526. :term:`BBCLASSEXTEND`
  527. Allows you to extend a recipe so that it builds variants of the
  528. software. There are common variants for recipes as "natives" like
  529. ``quilt-native``, which is a copy of Quilt built to run on the build
  530. system; "crosses" such as ``gcc-cross``, which is a compiler built to
  531. run on the build machine but produces binaries that run on the target
  532. :term:`MACHINE`; ":ref:`ref-classes-nativesdk`", which
  533. targets the SDK machine instead of :term:`MACHINE`; and "mulitlibs" in
  534. the form "``multilib:``\ multilib_name".
  535. To build a different variant of the recipe with a minimal amount of
  536. code, it usually is as simple as adding the following to your recipe::
  537. BBCLASSEXTEND =+ "native nativesdk"
  538. BBCLASSEXTEND =+ "multilib:multilib_name"
  539. .. note::
  540. Internally, the :term:`BBCLASSEXTEND` mechanism generates recipe
  541. variants by rewriting variable values and applying overrides such
  542. as ``:class-native``. For example, to generate a native version of
  543. a recipe, a :term:`DEPENDS` on "foo" is rewritten
  544. to a :term:`DEPENDS` on "foo-native".
  545. Even when using :term:`BBCLASSEXTEND`, the recipe is only parsed once.
  546. Parsing once adds some limitations. For example, it is not
  547. possible to include a different file depending on the variant,
  548. since ``include`` statements are processed when the recipe is
  549. parsed.
  550. :term:`BBDEBUG`
  551. See :term:`bitbake:BBDEBUG` in the BitBake manual.
  552. :term:`BBFILE_COLLECTIONS`
  553. Lists the names of configured layers. These names are used to find
  554. the other ``BBFILE_*`` variables. Typically, each layer will append
  555. its name to this variable in its ``conf/layer.conf`` file.
  556. :term:`BBFILE_PATTERN`
  557. Variable that expands to match files from
  558. :term:`BBFILES` in a particular layer. This variable
  559. is used in the ``conf/layer.conf`` file and must be suffixed with the
  560. name of the specific layer (e.g. ``BBFILE_PATTERN_emenlow``).
  561. :term:`BBFILE_PRIORITY`
  562. Assigns the priority for recipe files in each layer.
  563. This variable is useful in situations where the same recipe appears
  564. in more than one layer. Setting this variable allows you to
  565. prioritize a layer against other layers that contain the same recipe
  566. --- effectively letting you control the precedence for the multiple
  567. layers. The precedence established through this variable stands
  568. regardless of a recipe's version (:term:`PV` variable). For
  569. example, a layer that has a recipe with a higher :term:`PV` value but for
  570. which the :term:`BBFILE_PRIORITY` is set to have a lower precedence still
  571. has a lower precedence.
  572. A larger value for the :term:`BBFILE_PRIORITY` variable results in a
  573. higher precedence. For example, the value 6 has a higher precedence
  574. than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
  575. is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
  576. for more information. The default priority, if unspecified for a
  577. layer with no dependencies, is the lowest defined priority + 1 (or 1
  578. if no priorities are defined).
  579. .. tip::
  580. You can use the command ``bitbake-layers show-layers``
  581. to list all configured layers along with their priorities.
  582. :term:`BBFILES`
  583. A space-separated list of recipe files BitBake uses to build
  584. software.
  585. When specifying recipe files, you can pattern match using Python's
  586. `glob <https://docs.python.org/3/library/glob.html>`__ syntax.
  587. For details on the syntax, see the documentation by following the
  588. previous link.
  589. :term:`BBFILES_DYNAMIC`
  590. Activates content when identified layers are present. You identify
  591. the layers by the collections that the layers define.
  592. Use the :term:`BBFILES_DYNAMIC` variable to avoid ``.bbappend`` files
  593. whose corresponding ``.bb`` file is in a layer that attempts to
  594. modify other layers through ``.bbappend`` but does not want to
  595. introduce a hard dependency on those other layers.
  596. Use the following form for :term:`BBFILES_DYNAMIC`:
  597. ``collection_name:filename_pattern``.
  598. The following example identifies two collection names and two
  599. filename patterns::
  600. BBFILES_DYNAMIC += " \
  601. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  602. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  603. "
  604. This next example shows an error message that occurs because invalid
  605. entries are found, which cause parsing to fail:
  606. .. code-block:: none
  607. ERROR: BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:
  608. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  609. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  610. :term:`BBINCLUDED`
  611. See :term:`bitbake:BBINCLUDED` in the BitBake manual.
  612. :term:`BBINCLUDELOGS`
  613. Variable that controls how BitBake displays logs on build failure.
  614. :term:`BBINCLUDELOGS_LINES`
  615. If :term:`BBINCLUDELOGS` is set, specifies the
  616. maximum number of lines from the task log file to print when
  617. reporting a failed task. If you do not set :term:`BBINCLUDELOGS_LINES`,
  618. the entire log is printed.
  619. :term:`BBLAYERS`
  620. Lists the layers to enable during the build. This variable is defined
  621. in the ``bblayers.conf`` configuration file in the :term:`Build Directory`.
  622. Here is an example::
  623. BBLAYERS = " \
  624. /home/scottrif/poky/meta \
  625. /home/scottrif/poky/meta-poky \
  626. /home/scottrif/poky/meta-yocto-bsp \
  627. /home/scottrif/poky/meta-mykernel \
  628. "
  629. This example enables four layers, one of which is a custom,
  630. user-defined layer named ``meta-mykernel``.
  631. :term:`BBLAYERS_FETCH_DIR`
  632. See :term:`bitbake:BBLAYERS_FETCH_DIR` in the BitBake manual.
  633. :term:`BBMASK`
  634. Prevents BitBake from processing recipes and recipe append files.
  635. You can use the :term:`BBMASK` variable to "hide" these ``.bb`` and
  636. ``.bbappend`` files. BitBake ignores any recipe or recipe append
  637. files that match any of the expressions. It is as if BitBake does not
  638. see them at all. Consequently, matching files are not parsed or
  639. otherwise used by BitBake.
  640. The values you provide are passed to Python's regular expression
  641. compiler. Consequently, the syntax follows Python's Regular
  642. Expression (re) syntax. The expressions are compared against the full
  643. paths to the files. For complete syntax information, see Python's
  644. documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax.
  645. The following example uses a complete regular expression to tell
  646. BitBake to ignore all recipe and recipe append files in the
  647. ``meta-ti/recipes-misc/`` directory::
  648. BBMASK = "meta-ti/recipes-misc/"
  649. If you want to mask out multiple directories or recipes, you can
  650. specify multiple regular expression fragments. This next example
  651. masks out multiple directories and individual recipes::
  652. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  653. BBMASK += "/meta-oe/recipes-support/"
  654. BBMASK += "/meta-foo/.*/openldap"
  655. BBMASK += "opencv.*\.bbappend"
  656. BBMASK += "lzma"
  657. .. note::
  658. When specifying a directory name, use the trailing slash character
  659. to ensure you match just that directory name.
  660. :term:`BBMULTICONFIG`
  661. Specifies each additional separate configuration when you are
  662. building targets with multiple configurations. Use this variable in
  663. your ``conf/local.conf`` configuration file. Specify a
  664. multiconfigname for each configuration file you are using. For
  665. example, the following line specifies three configuration files::
  666. BBMULTICONFIG = "configA configB configC"
  667. Each configuration file you use must reside in a ``multiconfig``
  668. subdirectory of a configuration directory within a layer, or
  669. within the :term:`Build Directory` (e.g.
  670. ``build_directory/conf/multiconfig/configA.conf`` or
  671. ``mylayer/conf/multiconfig/configB.conf``).
  672. For information on how to use :term:`BBMULTICONFIG` in an environment
  673. that supports building targets with multiple configurations, see the
  674. ":ref:`dev-manual/building:building images for multiple targets using multiple configurations`"
  675. section in the Yocto Project Development Tasks Manual.
  676. :term:`BBPATH`
  677. See :term:`bitbake:BBPATH` in the BitBake manual.
  678. :term:`BBSERVER`
  679. If defined in the BitBake environment, :term:`BBSERVER` points to the
  680. BitBake remote server.
  681. Use the following format to export the variable to the BitBake
  682. environment::
  683. export BBSERVER=localhost:$port
  684. By default, :term:`BBSERVER` also appears in :term:`BB_BASEHASH_IGNORE_VARS`.
  685. Consequently, :term:`BBSERVER` is excluded from checksum and dependency
  686. data.
  687. :term:`BBTARGETS`
  688. See :term:`bitbake:BBTARGETS` in the BitBake manual.
  689. :term:`BINCONFIG`
  690. When inheriting the :ref:`ref-classes-binconfig-disabled` class, this
  691. variable specifies binary configuration scripts to disable in favor of
  692. using ``pkg-config`` to query the information. The
  693. :ref:`ref-classes-binconfig-disabled` class will modify the specified
  694. scripts to return an error so that calls to them can be easily found
  695. and replaced.
  696. To add multiple scripts, separate them by spaces. Here is an example
  697. from the ``libpng`` recipe::
  698. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  699. :term:`BINCONFIG_GLOB`
  700. When inheriting the :ref:`ref-classes-binconfig` class,
  701. this variable specifies a wildcard for configuration scripts that
  702. need editing. The scripts are edited to correct any paths that have
  703. been set up during compilation so that they are correct for use when
  704. installed into the sysroot and called by the build processes of other
  705. recipes.
  706. .. note::
  707. The :term:`BINCONFIG_GLOB` variable uses
  708. `shell globbing <https://tldp.org/LDP/abs/html/globbingref.html>`__,
  709. which is recognition and expansion of wildcards during pattern
  710. matching. Shell globbing is very similar to
  711. `fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__
  712. and `glob <https://docs.python.org/3/library/glob.html>`__.
  713. For more information on how this variable works, see
  714. ``meta/classes-recipe/binconfig.bbclass`` in the :term:`Source Directory`.
  715. You can also find general
  716. information on the class in the
  717. ":ref:`ref-classes-binconfig`" section.
  718. :term:`BITBAKE_UI`
  719. See :term:`bitbake:BITBAKE_UI` in the BitBake manual.
  720. :term:`BP`
  721. The base recipe name and version but without any special recipe name
  722. suffix (i.e. ``-native``, ``lib64-``, and so forth). :term:`BP` is
  723. comprised of the following::
  724. ${BPN}-${PV}
  725. :term:`BPN`
  726. This variable is a version of the :term:`PN` variable with
  727. common prefixes and suffixes removed, such as ``nativesdk-``,
  728. ``-cross``, ``-native``, and multilib's ``lib64-`` and ``lib32-``.
  729. The exact lists of prefixes and suffixes removed are specified by the
  730. :term:`MLPREFIX` and
  731. :term:`SPECIAL_PKGSUFFIX` variables,
  732. respectively.
  733. :term:`BUGTRACKER`
  734. Specifies a URL for an upstream bug tracking website for a recipe.
  735. The OpenEmbedded build system does not use this variable. Rather, the
  736. variable is a useful pointer in case a bug in the software being
  737. built needs to be manually reported.
  738. :term:`BUILD_ARCH`
  739. Specifies the architecture of the build host (e.g. ``i686``). The
  740. OpenEmbedded build system sets the value of :term:`BUILD_ARCH` from the
  741. machine name reported by the ``uname`` command.
  742. :term:`BUILD_AS_ARCH`
  743. Specifies the architecture-specific assembler flags for the build
  744. host. By default, the value of :term:`BUILD_AS_ARCH` is empty.
  745. :term:`BUILD_CC_ARCH`
  746. Specifies the architecture-specific C compiler flags for the build
  747. host. By default, the value of :term:`BUILD_CC_ARCH` is empty.
  748. :term:`BUILD_CCLD`
  749. Specifies the linker command to be used for the build host when the C
  750. compiler is being used as the linker. By default, :term:`BUILD_CCLD`
  751. points to GCC and passes as arguments the value of
  752. :term:`BUILD_CC_ARCH`, assuming
  753. :term:`BUILD_CC_ARCH` is set.
  754. :term:`BUILD_CFLAGS`
  755. Specifies the flags to pass to the C compiler when building for the
  756. build host. When building in the ``-native`` context,
  757. :term:`CFLAGS` is set to the value of this variable by
  758. default.
  759. :term:`BUILD_CPPFLAGS`
  760. Specifies the flags to pass to the C preprocessor (i.e. to both the C
  761. and the C++ compilers) when building for the build host. When
  762. building in the ``-native`` context, :term:`CPPFLAGS`
  763. is set to the value of this variable by default.
  764. :term:`BUILD_CXXFLAGS`
  765. Specifies the flags to pass to the C++ compiler when building for the
  766. build host. When building in the ``-native`` context,
  767. :term:`CXXFLAGS` is set to the value of this variable
  768. by default.
  769. :term:`BUILD_FC`
  770. Specifies the Fortran compiler command for the build host. By
  771. default, :term:`BUILD_FC` points to Gfortran and passes as arguments the
  772. value of :term:`BUILD_CC_ARCH`, assuming
  773. :term:`BUILD_CC_ARCH` is set.
  774. :term:`BUILD_LD`
  775. Specifies the linker command for the build host. By default,
  776. :term:`BUILD_LD` points to the GNU linker (ld) and passes as arguments
  777. the value of :term:`BUILD_LD_ARCH`, assuming
  778. :term:`BUILD_LD_ARCH` is set.
  779. :term:`BUILD_LD_ARCH`
  780. Specifies architecture-specific linker flags for the build host. By
  781. default, the value of :term:`BUILD_LD_ARCH` is empty.
  782. :term:`BUILD_LDFLAGS`
  783. Specifies the flags to pass to the linker when building for the build
  784. host. When building in the ``-native`` context,
  785. :term:`LDFLAGS` is set to the value of this variable
  786. by default.
  787. :term:`BUILD_OPTIMIZATION`
  788. Specifies the optimization flags passed to the C compiler when
  789. building for the build host or the SDK. The flags are passed through
  790. the :term:`BUILD_CFLAGS` and
  791. :term:`BUILDSDK_CFLAGS` default values.
  792. The default value of the :term:`BUILD_OPTIMIZATION` variable is "-O2
  793. -pipe".
  794. :term:`BUILD_OS`
  795. Specifies the operating system in use on the build host (e.g.
  796. "linux"). The OpenEmbedded build system sets the value of
  797. :term:`BUILD_OS` from the OS reported by the ``uname`` command --- the
  798. first word, converted to lower-case characters.
  799. :term:`BUILD_PREFIX`
  800. The toolchain binary prefix used for native recipes. The OpenEmbedded
  801. build system uses the :term:`BUILD_PREFIX` value to set the
  802. :term:`TARGET_PREFIX` when building for :ref:`ref-classes-native` recipes.
  803. :term:`BUILD_STRIP`
  804. Specifies the command to be used to strip debugging symbols from
  805. binaries produced for the build host. By default, :term:`BUILD_STRIP`
  806. points to
  807. ``${``\ :term:`BUILD_PREFIX`\ ``}strip``.
  808. :term:`BUILD_SYS`
  809. Specifies the system, including the architecture and the operating
  810. system, to use when building for the build host (i.e. when building
  811. :ref:`ref-classes-native` recipes).
  812. The OpenEmbedded build system automatically sets this variable based
  813. on :term:`BUILD_ARCH`,
  814. :term:`BUILD_VENDOR`, and
  815. :term:`BUILD_OS`. You do not need to set the
  816. :term:`BUILD_SYS` variable yourself.
  817. :term:`BUILD_VENDOR`
  818. Specifies the vendor name to use when building for the build host.
  819. The default value is an empty string ("").
  820. :term:`BUILDDIR`
  821. Points to the location of the :term:`Build Directory`. You can define
  822. this directory indirectly through the :ref:`structure-core-script` script
  823. by passing in a :term:`Build Directory` path when you run the script. If
  824. you run the script and do not provide a :term:`Build Directory` path, the
  825. :term:`BUILDDIR` defaults to ``build`` in the current directory.
  826. :term:`BUILDHISTORY_COMMIT`
  827. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  828. specifies whether or not to commit the build history output in a local
  829. Git repository. If set to "1", this local repository will be maintained
  830. automatically by the :ref:`ref-classes-buildhistory` class and a commit
  831. will be created on every build for changes to each top-level subdirectory
  832. of the build history output (images, packages, and sdk). If you want to
  833. track changes to build history over time, you should set this value to
  834. "1".
  835. By default, the :ref:`ref-classes-buildhistory` class
  836. enables committing the buildhistory output in a local Git repository::
  837. BUILDHISTORY_COMMIT ?= "1"
  838. :term:`BUILDHISTORY_COMMIT_AUTHOR`
  839. When inheriting the :ref:`ref-classes-buildhistory`
  840. class, this variable specifies the author to use for each Git commit.
  841. In order for the :term:`BUILDHISTORY_COMMIT_AUTHOR` variable to work, the
  842. :term:`BUILDHISTORY_COMMIT` variable must
  843. be set to "1".
  844. Git requires that the value you provide for the
  845. :term:`BUILDHISTORY_COMMIT_AUTHOR` variable takes the form of "name
  846. email@host". Providing an email address or host that is not valid
  847. does not produce an error.
  848. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  849. as follows::
  850. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
  851. :term:`BUILDHISTORY_DIR`
  852. When inheriting the :ref:`ref-classes-buildhistory`
  853. class, this variable specifies the directory in which build history
  854. information is kept. For more information on how the variable works,
  855. see the :ref:`ref-classes-buildhistory` class.
  856. By default, the :ref:`ref-classes-buildhistory` class sets the directory
  857. as follows::
  858. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  859. :term:`BUILDHISTORY_FEATURES`
  860. When inheriting the :ref:`ref-classes-buildhistory`
  861. class, this variable specifies the build history features to be
  862. enabled. For more information on how build history works, see the
  863. ":ref:`dev-manual/build-quality:maintaining build output quality`"
  864. section in the Yocto Project Development Tasks Manual.
  865. You can specify these features in the form of a space-separated list:
  866. - *image:* Analysis of the contents of images, which includes the
  867. list of installed packages among other things.
  868. - *package:* Analysis of the contents of individual packages.
  869. - *sdk:* Analysis of the contents of the software development kit
  870. (SDK).
  871. - *task:* Save output file signatures for
  872. :ref:`shared state <overview-manual/concepts:shared state cache>`
  873. (sstate) tasks.
  874. This saves one file per task and lists the SHA-256 checksums for
  875. each file staged (i.e. the output of the task).
  876. By default, the :ref:`ref-classes-buildhistory` class enables the
  877. following features::
  878. BUILDHISTORY_FEATURES ?= "image package sdk"
  879. :term:`BUILDHISTORY_IMAGE_FILES`
  880. When inheriting the :ref:`ref-classes-buildhistory`
  881. class, this variable specifies a list of paths to files copied from
  882. the image contents into the build history directory under an
  883. "image-files" directory in the directory for the image, so that you
  884. can track the contents of each file. The default is to copy
  885. ``/etc/passwd`` and ``/etc/group``, which allows you to monitor for
  886. changes in user and group entries. You can modify the list to include
  887. any file. Specifying an invalid path does not produce an error.
  888. Consequently, you can include files that might not always be present.
  889. By default, the :ref:`ref-classes-buildhistory` class provides paths to
  890. the following files::
  891. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  892. :term:`BUILDHISTORY_PATH_PREFIX_STRIP`
  893. When inheriting the :ref:`ref-classes-buildhistory`
  894. class, this variable specifies a common path prefix that should be
  895. stripped off the beginning of paths in the task signature list when the
  896. ``task`` feature is active in :term:`BUILDHISTORY_FEATURES`. This can be
  897. useful when build history is populated from multiple sources that may not
  898. all use the same top level directory.
  899. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  900. as follows::
  901. BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
  902. In this case, no prefixes will be stripped.
  903. :term:`BUILDHISTORY_PUSH_REPO`
  904. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  905. optionally specifies a remote repository to which build history pushes
  906. Git changes. In order for :term:`BUILDHISTORY_PUSH_REPO` to work,
  907. :term:`BUILDHISTORY_COMMIT` must be set to "1".
  908. The repository should correspond to a remote address that specifies a
  909. repository as understood by Git, or alternatively to a remote name
  910. that you have set up manually using ``git remote`` within the local
  911. repository.
  912. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  913. as follows::
  914. BUILDHISTORY_PUSH_REPO ?= ""
  915. :term:`BUILDNAME`
  916. See :term:`bitbake:BUILDNAME` in the BitBake manual.
  917. :term:`BUILDSDK_CFLAGS`
  918. Specifies the flags to pass to the C compiler when building for the
  919. SDK. When building in the ``nativesdk-`` context,
  920. :term:`CFLAGS` is set to the value of this variable by
  921. default.
  922. :term:`BUILDSDK_CPPFLAGS`
  923. Specifies the flags to pass to the C pre-processor (i.e. to both the
  924. C and the C++ compilers) when building for the SDK. When building in
  925. the ``nativesdk-`` context, :term:`CPPFLAGS` is set
  926. to the value of this variable by default.
  927. :term:`BUILDSDK_CXXFLAGS`
  928. Specifies the flags to pass to the C++ compiler when building for the
  929. SDK. When building in the ``nativesdk-`` context,
  930. :term:`CXXFLAGS` is set to the value of this variable
  931. by default.
  932. :term:`BUILDSDK_LDFLAGS`
  933. Specifies the flags to pass to the linker when building for the SDK.
  934. When building in the ``nativesdk-`` context,
  935. :term:`LDFLAGS` is set to the value of this variable
  936. by default.
  937. :term:`BUILDSTATS_BASE`
  938. Points to the location of the directory that holds build statistics
  939. when you use and enable the :ref:`ref-classes-buildstats` class. The
  940. :term:`BUILDSTATS_BASE` directory defaults to
  941. ``${``\ :term:`TMPDIR`\ ``}/buildstats/``.
  942. :term:`BUSYBOX_SPLIT_SUID`
  943. For the BusyBox recipe, specifies whether to split the output
  944. executable file into two parts: one for features that require
  945. ``setuid root``, and one for the remaining features (i.e. those that
  946. do not require ``setuid root``).
  947. The :term:`BUSYBOX_SPLIT_SUID` variable defaults to "1", which results in
  948. splitting the output executable file. Set the variable to "0" to get
  949. a single output executable file.
  950. :term:`BZRDIR`
  951. See :term:`bitbake:BZRDIR` in the BitBake manual.
  952. :term:`CACHE`
  953. Specifies the directory BitBake uses to store a cache of the
  954. :term:`Metadata` so it does not need to be parsed every time
  955. BitBake is started.
  956. :term:`CC`
  957. The minimal command and arguments used to run the C compiler.
  958. :term:`CFLAGS`
  959. Specifies the flags to pass to the C compiler. This variable is
  960. exported to an environment variable and thus made visible to the
  961. software being built during the compilation step.
  962. Default initialization for :term:`CFLAGS` varies depending on what is
  963. being built:
  964. - :term:`TARGET_CFLAGS` when building for the
  965. target
  966. - :term:`BUILD_CFLAGS` when building for the
  967. build host (i.e. ``-native``)
  968. - :term:`BUILDSDK_CFLAGS` when building for
  969. an SDK (i.e. ``nativesdk-``)
  970. :term:`CLASSOVERRIDE`
  971. An internal variable specifying the special class override that
  972. should currently apply (e.g. "class-target", "class-native", and so
  973. forth). The classes that use this variable (e.g.
  974. :ref:`ref-classes-native`, :ref:`ref-classes-nativesdk`, and so forth)
  975. set the variable to appropriate values.
  976. .. note::
  977. :term:`CLASSOVERRIDE` gets its default "class-target" value from the
  978. ``bitbake.conf`` file.
  979. As an example, the following override allows you to install extra
  980. files, but only when building for the target::
  981. do_install:append:class-target() {
  982. install my-extra-file ${D}${sysconfdir}
  983. }
  984. Here is an example where ``FOO`` is set to
  985. "native" when building for the build host, and to "other" when not
  986. building for the build host::
  987. FOO:class-native = "native"
  988. FOO = "other"
  989. The underlying mechanism behind :term:`CLASSOVERRIDE` is simply
  990. that it is included in the default value of
  991. :term:`OVERRIDES`.
  992. :term:`CLEANBROKEN`
  993. If set to "1" within a recipe, :term:`CLEANBROKEN` specifies that the
  994. ``make clean`` command does not work for the software being built.
  995. Consequently, the OpenEmbedded build system will not try to run
  996. ``make clean`` during the :ref:`ref-tasks-configure`
  997. task, which is the default behavior.
  998. :term:`COMBINED_FEATURES`
  999. Provides a list of hardware features that are enabled in both
  1000. :term:`MACHINE_FEATURES` and
  1001. :term:`DISTRO_FEATURES`. This select list of
  1002. features contains features that make sense to be controlled both at
  1003. the machine and distribution configuration level. For example, the
  1004. "bluetooth" feature requires hardware support but should also be
  1005. optional at the distribution level, in case the hardware supports
  1006. Bluetooth but you do not ever intend to use it.
  1007. :term:`COMMERCIAL_AUDIO_PLUGINS`
  1008. This variable is specific to the :yocto_git:`GStreamer recipes
  1009. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1010. It allows to build the GStreamer `"ugly"
  1011. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1012. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ audio plugins.
  1013. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1014. section for usage details.
  1015. :term:`COMMERCIAL_VIDEO_PLUGINS`
  1016. This variable is specific to the :yocto_git:`GStreamer recipes
  1017. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1018. It allows to build the GStreamer `"ugly"
  1019. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1020. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ video plugins.
  1021. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1022. section for usage details.
  1023. :term:`COMMON_LICENSE_DIR`
  1024. Points to ``meta/files/common-licenses`` in the
  1025. :term:`Source Directory`, which is where generic license
  1026. files reside.
  1027. :term:`COMPATIBLE_HOST`
  1028. A regular expression that resolves to one or more hosts (when the
  1029. recipe is native) or one or more targets (when the recipe is
  1030. non-native) with which a recipe is compatible. The regular expression
  1031. is matched against :term:`HOST_SYS`. You can use the
  1032. variable to stop recipes from being built for classes of systems with
  1033. which the recipes are not compatible. Stopping these builds is
  1034. particularly useful with kernels. The variable also helps to increase
  1035. parsing speed since the build system skips parsing recipes not
  1036. compatible with the current system.
  1037. :term:`COMPATIBLE_MACHINE`
  1038. A regular expression that resolves to one or more target machines
  1039. with which a recipe is compatible. The regular expression is matched
  1040. against :term:`MACHINEOVERRIDES`. You can use
  1041. the variable to stop recipes from being built for machines with which
  1042. the recipes are not compatible. Stopping these builds is particularly
  1043. useful with kernels. The variable also helps to increase parsing
  1044. speed since the build system skips parsing recipes not compatible
  1045. with the current machine.
  1046. If one wants to have a recipe only available for some architectures
  1047. (here ``aarch64`` and ``mips64``), the following can be used::
  1048. COMPATIBLE_MACHINE = "^$"
  1049. COMPATIBLE_MACHINE:arch64 = "^(aarch64)$"
  1050. COMPATIBLE_MACHINE:mips64 = "^(mips64)$"
  1051. The first line means "match all machines whose :term:`MACHINEOVERRIDES`
  1052. contains the empty string", which will always be none.
  1053. The second is for matching all machines whose :term:`MACHINEOVERRIDES`
  1054. contains one override which is exactly ``aarch64``.
  1055. The third is for matching all machines whose :term:`MACHINEOVERRIDES`
  1056. contains one override which is exactly ``mips64``.
  1057. The same could be achieved with::
  1058. COMPATIBLE_MACHINE = "^(aarch64|mips64)$"
  1059. .. note::
  1060. When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from
  1061. native, the recipe is always skipped. All native recipes must be
  1062. entirely target independent and should not rely on :term:`MACHINE`.
  1063. :term:`COMPLEMENTARY_GLOB`
  1064. Defines wildcards to match when installing a list of complementary
  1065. packages for all the packages explicitly (or implicitly) installed in
  1066. an image.
  1067. The :term:`COMPLEMENTARY_GLOB` variable uses Unix filename pattern matching
  1068. (`fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__),
  1069. which is similar to the Unix style pathname pattern expansion
  1070. (`glob <https://docs.python.org/3/library/glob.html>`__).
  1071. The resulting list of complementary packages is associated with an
  1072. item that can be added to
  1073. :term:`IMAGE_FEATURES`. An example usage of
  1074. this is the "dev-pkgs" item that when added to :term:`IMAGE_FEATURES`
  1075. will install -dev packages (containing headers and other development
  1076. files) for every package in the image.
  1077. To add a new feature item pointing to a wildcard, use a variable flag
  1078. to specify the feature item name and use the value to specify the
  1079. wildcard. Here is an example::
  1080. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  1081. .. note::
  1082. When installing complementary packages, recommends relationships
  1083. (set via :term:`RRECOMMENDS`) are always ignored.
  1084. :term:`COMPONENTS_DIR`
  1085. Stores sysroot components for each recipe. The OpenEmbedded build
  1086. system uses :term:`COMPONENTS_DIR` when constructing recipe-specific
  1087. sysroots for other recipes.
  1088. The default is
  1089. "``${``\ :term:`STAGING_DIR`\ ``}-components``."
  1090. (i.e.
  1091. "``${``\ :term:`TMPDIR`\ ``}/sysroots-components``").
  1092. :term:`CONF_VERSION`
  1093. Tracks the version of the local configuration file (i.e.
  1094. ``local.conf``). The value for :term:`CONF_VERSION` increments each time
  1095. ``build/conf/`` compatibility changes.
  1096. :term:`CONFFILES`
  1097. Identifies editable or configurable files that are part of a package.
  1098. If the Package Management System (PMS) is being used to update
  1099. packages on the target system, it is possible that configuration
  1100. files you have changed after the original installation and that you
  1101. now want to remain unchanged are overwritten. In other words,
  1102. editable files might exist in the package that you do not want reset
  1103. as part of the package update process. You can use the :term:`CONFFILES`
  1104. variable to list the files in the package that you wish to prevent
  1105. the PMS from overwriting during this update process.
  1106. To use the :term:`CONFFILES` variable, provide a package name override
  1107. that identifies the resulting package. Then, provide a
  1108. space-separated list of files. Here is an example::
  1109. CONFFILES:${PN} += "${sysconfdir}/file1 \
  1110. ${sysconfdir}/file2 ${sysconfdir}/file3"
  1111. There is a relationship between the :term:`CONFFILES` and :term:`FILES`
  1112. variables. The files listed within :term:`CONFFILES` must be a subset of
  1113. the files listed within :term:`FILES`. Because the configuration files
  1114. you provide with :term:`CONFFILES` are simply being identified so that
  1115. the PMS will not overwrite them, it makes sense that the files must
  1116. already be included as part of the package through the :term:`FILES`
  1117. variable.
  1118. .. note::
  1119. When specifying paths as part of the :term:`CONFFILES` variable, it is
  1120. good practice to use appropriate path variables.
  1121. For example, ``${sysconfdir}`` rather than ``/etc`` or ``${bindir}``
  1122. rather than ``/usr/bin``. You can find a list of these variables at
  1123. the top of the ``meta/conf/bitbake.conf`` file in the
  1124. :term:`Source Directory`.
  1125. :term:`CONFIG_INITRAMFS_SOURCE`
  1126. Identifies the initial RAM filesystem (:term:`Initramfs`) source files. The
  1127. OpenEmbedded build system receives and uses this kernel Kconfig
  1128. variable as an environment variable. By default, the variable is set
  1129. to null ("").
  1130. The :term:`CONFIG_INITRAMFS_SOURCE` can be either a single cpio archive
  1131. with a ``.cpio`` suffix or a space-separated list of directories and
  1132. files for building the :term:`Initramfs` image. A cpio archive should contain
  1133. a filesystem archive to be used as an :term:`Initramfs` image. Directories
  1134. should contain a filesystem layout to be included in the :term:`Initramfs`
  1135. image. Files should contain entries according to the format described
  1136. by the ``usr/gen_init_cpio`` program in the kernel tree.
  1137. If you specify multiple directories and files, the :term:`Initramfs` image
  1138. will be the aggregate of all of them.
  1139. For information on creating an :term:`Initramfs`, see the
  1140. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  1141. in the Yocto Project Development Tasks Manual.
  1142. :term:`CONFIG_SITE`
  1143. A list of files that contains ``autoconf`` test results relevant to
  1144. the current build. This variable is used by the Autotools utilities
  1145. when running ``configure``.
  1146. :term:`CONFIGURE_FLAGS`
  1147. The minimal arguments for GNU configure.
  1148. :term:`CONFLICT_DISTRO_FEATURES`
  1149. When inheriting the :ref:`ref-classes-features_check`
  1150. class, this variable identifies distribution features that would be
  1151. in conflict should the recipe be built. In other words, if the
  1152. :term:`CONFLICT_DISTRO_FEATURES` variable lists a feature that also
  1153. appears in :term:`DISTRO_FEATURES` within the current configuration, then
  1154. the recipe will be skipped, and if the build system attempts to build
  1155. the recipe then an error will be triggered.
  1156. :term:`CONVERSION_CMD`
  1157. This variable is used for storing image conversion commands.
  1158. Image conversion can convert an image into different objects like:
  1159. - Compressed version of the image
  1160. - Checksums for the image
  1161. An example of :term:`CONVERSION_CMD` from :ref:`ref-classes-image_types`
  1162. class is::
  1163. CONVERSION_CMD:lzo = "lzop -9 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
  1164. :term:`COPY_LIC_DIRS`
  1165. If set to "1" along with the
  1166. :term:`COPY_LIC_MANIFEST` variable, the
  1167. OpenEmbedded build system copies into the image the license files,
  1168. which are located in ``/usr/share/common-licenses``, for each
  1169. package. The license files are placed in directories within the image
  1170. itself during build time.
  1171. .. note::
  1172. The :term:`COPY_LIC_DIRS` does not offer a path for adding licenses for
  1173. newly installed packages to an image, which might be most suitable for
  1174. read-only filesystems that cannot be upgraded. See the
  1175. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1176. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1177. section in the Yocto Project Development Tasks Manual for
  1178. information on providing license text.
  1179. :term:`COPY_LIC_MANIFEST`
  1180. If set to "1", the OpenEmbedded build system copies the license
  1181. manifest for the image to
  1182. ``/usr/share/common-licenses/license.manifest`` within the image
  1183. itself during build time.
  1184. .. note::
  1185. The :term:`COPY_LIC_MANIFEST` does not offer a path for adding licenses for
  1186. newly installed packages to an image, which might be most suitable for
  1187. read-only filesystems that cannot be upgraded. See the
  1188. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1189. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1190. section in the Yocto Project Development Tasks Manual for
  1191. information on providing license text.
  1192. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1193. A space-separated list of licenses to exclude from the source archived by
  1194. the :ref:`ref-classes-archiver` class. In other words, if a license in a
  1195. recipe's :term:`LICENSE` value is in the value of
  1196. :term:`COPYLEFT_LICENSE_EXCLUDE`, then its source is not archived by the
  1197. class.
  1198. .. note::
  1199. The :term:`COPYLEFT_LICENSE_EXCLUDE` variable takes precedence over the
  1200. :term:`COPYLEFT_LICENSE_INCLUDE` variable.
  1201. The default value, which is "CLOSED Proprietary", for
  1202. :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the
  1203. :ref:`ref-classes-copyleft_filter` class, which
  1204. is inherited by the :ref:`ref-classes-archiver` class.
  1205. :term:`COPYLEFT_LICENSE_INCLUDE`
  1206. A space-separated list of licenses to include in the source archived
  1207. by the :ref:`ref-classes-archiver` class. In other
  1208. words, if a license in a recipe's :term:`LICENSE`
  1209. value is in the value of :term:`COPYLEFT_LICENSE_INCLUDE`, then its
  1210. source is archived by the class.
  1211. The default value is set by the :ref:`ref-classes-copyleft_filter` class,
  1212. which is inherited by the :ref:`ref-classes-archiver` class. The default
  1213. value includes "GPL*", "LGPL*", and "AGPL*".
  1214. :term:`COPYLEFT_PN_EXCLUDE`
  1215. A list of recipes to exclude in the source archived by the
  1216. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_EXCLUDE`
  1217. variable overrides the license inclusion and exclusion caused through the
  1218. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1219. variables, respectively.
  1220. The default value, which is "" indicating to not explicitly exclude
  1221. any recipes by name, for :term:`COPYLEFT_PN_EXCLUDE` is set by the
  1222. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1223. :ref:`ref-classes-archiver` class.
  1224. :term:`COPYLEFT_PN_INCLUDE`
  1225. A list of recipes to include in the source archived by the
  1226. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_INCLUDE`
  1227. variable overrides the license inclusion and exclusion caused through the
  1228. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1229. variables, respectively.
  1230. The default value, which is "" indicating to not explicitly include
  1231. any recipes by name, for :term:`COPYLEFT_PN_INCLUDE` is set by the
  1232. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1233. :ref:`ref-classes-archiver` class.
  1234. :term:`COPYLEFT_RECIPE_TYPES`
  1235. A space-separated list of recipe types to include in the source
  1236. archived by the :ref:`archiver <ref-classes-archiver>` class.
  1237. Recipe types are ``target``, :ref:`ref-classes-native`,
  1238. :ref:`ref-classes-nativesdk`, :ref:`ref-classes-cross`,
  1239. :ref:`ref-classes-crosssdk`, and :ref:`ref-classes-cross-canadian`.
  1240. The default value, which is "target*", for :term:`COPYLEFT_RECIPE_TYPES`
  1241. is set by the :ref:`ref-classes-copyleft_filter` class, which is
  1242. inherited by the :ref:`ref-classes-archiver` class.
  1243. :term:`CORE_IMAGE_EXTRA_INSTALL`
  1244. Specifies the list of packages to be added to the image. You should
  1245. only set this variable in the ``local.conf`` configuration file found
  1246. in the :term:`Build Directory`.
  1247. This variable replaces ``POKY_EXTRA_INSTALL``, which is no longer
  1248. supported.
  1249. :term:`COREBASE`
  1250. Specifies the parent directory of the OpenEmbedded-Core Metadata
  1251. layer (i.e. ``meta``).
  1252. It is an important distinction that :term:`COREBASE` points to the parent
  1253. of this layer and not the layer itself. Consider an example where you
  1254. have cloned the Poky Git repository and retained the ``poky`` name
  1255. for your local copy of the repository. In this case, :term:`COREBASE`
  1256. points to the ``poky`` folder because it is the parent directory of
  1257. the ``poky/meta`` layer.
  1258. :term:`COREBASE_FILES`
  1259. Lists files from the :term:`COREBASE` directory that
  1260. should be copied other than the layers listed in the
  1261. ``bblayers.conf`` file. The :term:`COREBASE_FILES` variable allows
  1262. to copy metadata from the OpenEmbedded build system
  1263. into the extensible SDK.
  1264. Explicitly listing files in :term:`COREBASE` is needed because it
  1265. typically contains build directories and other files that should not
  1266. normally be copied into the extensible SDK. Consequently, the value
  1267. of :term:`COREBASE_FILES` is used in order to only copy the files that
  1268. are actually needed.
  1269. :term:`CPP`
  1270. The minimal command and arguments used to run the C preprocessor.
  1271. :term:`CPPFLAGS`
  1272. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1273. C and the C++ compilers). This variable is exported to an environment
  1274. variable and thus made visible to the software being built during the
  1275. compilation step.
  1276. Default initialization for :term:`CPPFLAGS` varies depending on what is
  1277. being built:
  1278. - :term:`TARGET_CPPFLAGS` when building for
  1279. the target
  1280. - :term:`BUILD_CPPFLAGS` when building for the
  1281. build host (i.e. ``-native``)
  1282. - :term:`BUILDSDK_CPPFLAGS` when building
  1283. for an SDK (i.e. ``nativesdk-``)
  1284. :term:`CROSS_COMPILE`
  1285. The toolchain binary prefix for the target tools. The
  1286. :term:`CROSS_COMPILE` variable is the same as the
  1287. :term:`TARGET_PREFIX` variable.
  1288. .. note::
  1289. The OpenEmbedded build system sets the :term:`CROSS_COMPILE`
  1290. variable only in certain contexts (e.g. when building for kernel
  1291. and kernel module recipes).
  1292. :term:`CVE_CHECK_CREATE_MANIFEST`
  1293. Specifies whether to create a CVE manifest to place in the deploy
  1294. directory. The default is "1".
  1295. :term:`CVE_CHECK_IGNORE`
  1296. This variable is deprecated and should be replaced by :term:`CVE_STATUS`.
  1297. :term:`CVE_CHECK_MANIFEST_JSON`
  1298. Specifies the path to the CVE manifest in JSON format. See
  1299. :term:`CVE_CHECK_CREATE_MANIFEST`.
  1300. :term:`CVE_CHECK_MANIFEST_JSON_SUFFIX`
  1301. Allows to modify the JSON manifest suffix. See
  1302. :term:`CVE_CHECK_MANIFEST_JSON`.
  1303. :term:`CVE_CHECK_REPORT_PATCHED`
  1304. Specifies whether or not the :ref:`ref-classes-cve-check`
  1305. class should report patched or ignored CVEs. The default is "1", but you
  1306. may wish to set it to "0" if you do not need patched or ignored CVEs in
  1307. the logs.
  1308. :term:`CVE_CHECK_SHOW_WARNINGS`
  1309. Specifies whether or not the :ref:`ref-classes-cve-check`
  1310. class should generate warning messages on the console when unpatched
  1311. CVEs are found. The default is "1", but you may wish to set it to "0" if
  1312. you are already examining/processing the logs after the build has
  1313. completed and thus do not need the warning messages.
  1314. :term:`CVE_CHECK_SKIP_RECIPE`
  1315. The list of package names (:term:`PN`) for which
  1316. CVEs (Common Vulnerabilities and Exposures) are ignored.
  1317. :term:`CVE_DB_INCR_UPDATE_AGE_THRES`
  1318. Specifies the maximum age of the CVE database in seconds for an
  1319. incremental update (instead of a full-download). Use "0" to force a
  1320. full-download.
  1321. :term:`CVE_DB_UPDATE_INTERVAL`
  1322. Specifies the CVE database update interval in seconds, as used by
  1323. ``cve-update-db-native``. The default value is "86400" i.e. once a day
  1324. (24*60*60). If the value is set to "0" then the update will be forced
  1325. every time. Alternatively, a negative value e.g. "-1" will disable
  1326. updates entirely.
  1327. :term:`CVE_PRODUCT`
  1328. In a recipe, defines the name used to match the recipe name
  1329. against the name in the upstream `NIST CVE database <https://nvd.nist.gov/>`__.
  1330. The default is ${:term:`BPN`} (except for recipes that inherit the
  1331. :ref:`ref-classes-pypi` class where it is set based upon
  1332. :term:`PYPI_PACKAGE`). If it does not match the name in the NIST CVE
  1333. database or matches with multiple entries in the database, the default
  1334. value needs to be changed.
  1335. Here is an example from the :oe_layerindex:`Berkeley DB recipe </layerindex/recipe/544>`::
  1336. CVE_PRODUCT = "oracle_berkeley_db berkeley_db"
  1337. Sometimes the product name is not specific enough, for example
  1338. "tar" has been matching CVEs for the GNU ``tar`` package and also
  1339. the ``node-tar`` node.js extension. To avoid this problem, use the
  1340. vendor name as a prefix. The syntax for this is::
  1341. CVE_PRODUCT = "vendor:package"
  1342. :term:`CVE_STATUS`
  1343. The CVE ID which is patched or should be ignored. Here is
  1344. an example from the :oe_layerindex:`Python3 recipe</layerindex/recipe/23823>`::
  1345. CVE_STATUS[CVE-2020-15523] = "not-applicable-platform: Issue only applies on Windows"
  1346. It has the format "reason: description" and the description is optional.
  1347. The Reason is mapped to the final CVE state by mapping via
  1348. :term:`CVE_CHECK_STATUSMAP`. See :ref:`dev-manual/vulnerabilities:fixing vulnerabilities in recipes`
  1349. for details.
  1350. :term:`CVE_STATUS_GROUPS`
  1351. If there are many CVEs with the same status and reason, they can by simplified by using this
  1352. variable instead of many similar lines with :term:`CVE_STATUS`::
  1353. CVE_STATUS_GROUPS = "CVE_STATUS_WIN CVE_STATUS_PATCHED"
  1354. CVE_STATUS_WIN = "CVE-1234-0001 CVE-1234-0002"
  1355. CVE_STATUS_WIN[status] = "not-applicable-platform: Issue only applies on Windows"
  1356. CVE_STATUS_PATCHED = "CVE-1234-0003 CVE-1234-0004"
  1357. CVE_STATUS_PATCHED[status] = "fixed-version: Fixed externally"
  1358. :term:`CVE_CHECK_STATUSMAP`
  1359. Mapping variable for all possible reasons of :term:`CVE_STATUS`:
  1360. ``Patched``, ``Unpatched`` and ``Ignored``.
  1361. See :ref:`ref-classes-cve-check` or ``meta/conf/cve-check-map.conf`` for more details::
  1362. CVE_CHECK_STATUSMAP[cpe-incorrect] = "Ignored"
  1363. :term:`CVE_VERSION`
  1364. In a recipe, defines the version used to match the recipe version
  1365. against the version in the `NIST CVE database <https://nvd.nist.gov/>`__
  1366. when usign :ref:`ref-classes-cve-check`.
  1367. The default is ${:term:`PV`} but if recipes use custom version numbers
  1368. which do not map to upstream software component release versions and the versions
  1369. used in the CVE database, then this variable can be used to set the
  1370. version number for :ref:`ref-classes-cve-check`. Example::
  1371. CVE_VERSION = "2.39"
  1372. :term:`CVSDIR`
  1373. The directory in which files checked out under the CVS system are
  1374. stored.
  1375. :term:`CXX`
  1376. The minimal command and arguments used to run the C++ compiler.
  1377. :term:`CXXFLAGS`
  1378. Specifies the flags to pass to the C++ compiler. This variable is
  1379. exported to an environment variable and thus made visible to the
  1380. software being built during the compilation step.
  1381. Default initialization for :term:`CXXFLAGS` varies depending on what is
  1382. being built:
  1383. - :term:`TARGET_CXXFLAGS` when building for
  1384. the target
  1385. - :term:`BUILD_CXXFLAGS` when building for the
  1386. build host (i.e. ``-native``)
  1387. - :term:`BUILDSDK_CXXFLAGS` when building
  1388. for an SDK (i.e. ``nativesdk-``)
  1389. :term:`D`
  1390. The destination directory. The location in the :term:`Build Directory`
  1391. where components are installed by the
  1392. :ref:`ref-tasks-install` task. This location defaults
  1393. to::
  1394. ${WORKDIR}/image
  1395. .. note::
  1396. Tasks that read from or write to this directory should run under
  1397. :ref:`fakeroot <overview-manual/concepts:fakeroot and pseudo>`.
  1398. :term:`DATE`
  1399. The date the build was started. Dates appear using the year, month,
  1400. and day (YMD) format (e.g. "20150209" for February 9th, 2015).
  1401. :term:`DATETIME`
  1402. The date and time on which the current build started. The format is
  1403. suitable for timestamps.
  1404. :term:`DEBIAN_NOAUTONAME`
  1405. When the :ref:`ref-classes-debian` class is inherited,
  1406. which is the default behavior, :term:`DEBIAN_NOAUTONAME` specifies a
  1407. particular package should not be renamed according to Debian library
  1408. package naming. You must use the package name as an override when you
  1409. set this variable. Here is an example from the ``fontconfig`` recipe::
  1410. DEBIAN_NOAUTONAME:fontconfig-utils = "1"
  1411. :term:`DEBIANNAME`
  1412. When the :ref:`ref-classes-debian` class is inherited,
  1413. which is the default behavior, :term:`DEBIANNAME` allows you to override
  1414. the library name for an individual package. Overriding the library
  1415. name in these cases is rare. You must use the package name as an
  1416. override when you set this variable. Here is an example from the
  1417. ``dbus`` recipe::
  1418. DEBIANNAME:${PN} = "dbus-1"
  1419. :term:`DEBUG_BUILD`
  1420. Specifies to build packages with debugging information. This
  1421. influences the value of the :term:`SELECTED_OPTIMIZATION` variable.
  1422. :term:`DEBUG_OPTIMIZATION`
  1423. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  1424. compiling a system for debugging. This variable defaults to "-O
  1425. -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  1426. :term:`DEBUG_PREFIX_MAP`
  1427. Allows to set C compiler options, such as ``-fdebug-prefix-map``,
  1428. ``-fmacro-prefix-map``, and ``-ffile-prefix-map``, which allow to
  1429. replace build-time paths by install-time ones in the debugging sections
  1430. of binaries. This makes compiler output files location independent,
  1431. at the cost of having to pass an extra command to tell the debugger
  1432. where source files are.
  1433. This is used by the Yocto Project to guarantee
  1434. :doc:`/test-manual/reproducible-builds` even when the source code of
  1435. a package uses the ``__FILE__`` or ``assert()`` macros. See the
  1436. `reproducible-builds.org <https://reproducible-builds.org/docs/build-path/>`__
  1437. website for details.
  1438. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1439. not intended to be user-configurable.
  1440. :term:`DEFAULT_PREFERENCE`
  1441. Specifies a weak bias for recipe selection priority.
  1442. The most common usage of this is variable is to set it to "-1" within
  1443. a recipe for a development version of a piece of software. Using the
  1444. variable in this way causes the stable version of the recipe to build
  1445. by default in the absence of :term:`PREFERRED_VERSION` being used to
  1446. build the development version.
  1447. .. note::
  1448. The bias provided by :term:`DEFAULT_PREFERENCE` is weak and is overridden
  1449. by :term:`BBFILE_PRIORITY` if that variable is different between two
  1450. layers that contain different versions of the same recipe.
  1451. :term:`DEFAULT_TIMEZONE`
  1452. Specifies the time zone set in the image.
  1453. This variable causes the ``tzdata`` package to configure
  1454. ``${sysconfdir}/localtime`` accordingly. Valid values are all files
  1455. found in ``/usr/share/zoneinfo`` like ``CET`` or ``Asia/Baku``.
  1456. :term:`DEFAULTTUNE`
  1457. The default CPU and Application Binary Interface (ABI) tunings (i.e.
  1458. the "tune") used by the OpenEmbedded build system. The
  1459. :term:`DEFAULTTUNE` helps define
  1460. :term:`TUNE_FEATURES`.
  1461. The default tune is either implicitly or explicitly set by the
  1462. machine (:term:`MACHINE`). However, you can override
  1463. the setting using available tunes as defined with
  1464. :term:`AVAILTUNES`.
  1465. :term:`DEPENDS`
  1466. Lists a recipe's build-time dependencies. These are dependencies on
  1467. other recipes whose contents (e.g. headers and shared libraries) are
  1468. needed by the recipe at build time.
  1469. As an example, consider a recipe ``foo`` that contains the following
  1470. assignment::
  1471. DEPENDS = "bar"
  1472. The practical effect of the previous assignment is that all files
  1473. installed by bar will be available in the appropriate staging sysroot,
  1474. given by the :term:`STAGING_DIR* <STAGING_DIR>` variables, by the time
  1475. the :ref:`ref-tasks-configure` task for ``foo`` runs. This mechanism is
  1476. implemented by having :ref:`ref-tasks-configure` depend on the
  1477. :ref:`ref-tasks-populate_sysroot` task of each recipe listed in
  1478. :term:`DEPENDS`, through a
  1479. ``[``\ :ref:`deptask <bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]``
  1480. declaration in the :ref:`ref-classes-base` class.
  1481. .. note::
  1482. It seldom is necessary to reference, for example, :term:`STAGING_DIR_HOST`
  1483. explicitly. The standard classes and build-related variables are
  1484. configured to automatically use the appropriate staging sysroots.
  1485. As another example, :term:`DEPENDS` can also be used to add utilities
  1486. that run on the build machine during the build. For example, a recipe
  1487. that makes use of a code generator built by the recipe ``codegen``
  1488. might have the following::
  1489. DEPENDS = "codegen-native"
  1490. For more
  1491. information, see the :ref:`ref-classes-native` class and
  1492. the :term:`EXTRANATIVEPATH` variable.
  1493. .. note::
  1494. - :term:`DEPENDS` is a list of recipe names. Or, to be more precise,
  1495. it is a list of :term:`PROVIDES` names, which
  1496. usually match recipe names. Putting a package name such as
  1497. "foo-dev" in :term:`DEPENDS` does not make sense. Use "foo"
  1498. instead, as this will put files from all the packages that make
  1499. up ``foo``, which includes those from ``foo-dev``, into the
  1500. sysroot.
  1501. - One recipe having another recipe in :term:`DEPENDS` does not by
  1502. itself add any runtime dependencies between the packages
  1503. produced by the two recipes. However, as explained in the
  1504. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  1505. section in the Yocto Project Overview and Concepts Manual,
  1506. runtime dependencies will often be added automatically, meaning
  1507. :term:`DEPENDS` alone is sufficient for most recipes.
  1508. - Counterintuitively, :term:`DEPENDS` is often necessary even for
  1509. recipes that install precompiled components. For example, if
  1510. ``libfoo`` is a precompiled library that links against
  1511. ``libbar``, then linking against ``libfoo`` requires both
  1512. ``libfoo`` and ``libbar`` to be available in the sysroot.
  1513. Without a :term:`DEPENDS` from the recipe that installs ``libfoo``
  1514. to the recipe that installs ``libbar``, other recipes might
  1515. fail to link against ``libfoo``.
  1516. For information on runtime dependencies, see the :term:`RDEPENDS`
  1517. variable. You can also see the
  1518. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  1519. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`"
  1520. sections in the BitBake User Manual for additional information on tasks
  1521. and dependencies.
  1522. :term:`DEPLOY_DIR`
  1523. Points to the general area that the OpenEmbedded build system uses to
  1524. place images, packages, SDKs, and other output files that are ready
  1525. to be used outside of the build system. By default, this directory
  1526. resides within the :term:`Build Directory` as ``${TMPDIR}/deploy``.
  1527. For more information on the structure of the Build Directory, see
  1528. ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section.
  1529. For more detail on the contents of the ``deploy`` directory, see the
  1530. ":ref:`overview-manual/concepts:images`",
  1531. ":ref:`overview-manual/concepts:package feeds`", and
  1532. ":ref:`overview-manual/concepts:application development sdk`" sections all in the
  1533. Yocto Project Overview and Concepts Manual.
  1534. :term:`DEPLOY_DIR_DEB`
  1535. Points to the area that the OpenEmbedded build system uses to place
  1536. Debian packages that are ready to be used outside of the build
  1537. system. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1538. ":ref:`ref-classes-package_deb`".
  1539. The BitBake configuration file initially defines the
  1540. :term:`DEPLOY_DIR_DEB` variable as a sub-folder of
  1541. :term:`DEPLOY_DIR`::
  1542. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  1543. The :ref:`ref-classes-package_deb` class uses the
  1544. :term:`DEPLOY_DIR_DEB` variable to make sure the
  1545. :ref:`ref-tasks-package_write_deb` task
  1546. writes Debian packages into the appropriate folder. For more
  1547. information on how packaging works, see the
  1548. ":ref:`overview-manual/concepts:package feeds`" section
  1549. in the Yocto Project Overview and Concepts Manual.
  1550. :term:`DEPLOY_DIR_IMAGE`
  1551. Points to the area that the OpenEmbedded build system uses to place
  1552. images and other associated output files that are ready to be
  1553. deployed onto the target machine. The directory is machine-specific
  1554. as it contains the ``${MACHINE}`` name. By default, this directory
  1555. resides within the :term:`Build Directory` as
  1556. ``${DEPLOY_DIR}/images/${MACHINE}/``.
  1557. It must not be used directly in recipes when deploying files. Instead,
  1558. it's only useful when a recipe needs to "read" a file already deployed
  1559. by a dependency. So, it should be filled with the contents of
  1560. :term:`DEPLOYDIR` by the :ref:`ref-classes-deploy` class or with the
  1561. contents of :term:`IMGDEPLOYDIR` by the :ref:`ref-classes-image` class.
  1562. For more information on the structure of the :term:`Build Directory`, see
  1563. ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section.
  1564. For more detail on the contents of the ``deploy`` directory, see the
  1565. ":ref:`overview-manual/concepts:images`" and
  1566. ":ref:`overview-manual/concepts:application development sdk`" sections both in
  1567. the Yocto Project Overview and Concepts Manual.
  1568. :term:`DEPLOY_DIR_IPK`
  1569. Points to the area that the OpenEmbedded build system uses to place
  1570. IPK packages that are ready to be used outside of the build system.
  1571. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1572. ":ref:`ref-classes-package_ipk`".
  1573. The BitBake configuration file initially defines this variable as a
  1574. sub-folder of :term:`DEPLOY_DIR`::
  1575. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  1576. The :ref:`ref-classes-package_ipk` class uses the :term:`DEPLOY_DIR_IPK`
  1577. variable to make sure the :ref:`ref-tasks-package_write_ipk` task
  1578. writes IPK packages into the appropriate folder. For more information
  1579. on how packaging works, see the
  1580. ":ref:`overview-manual/concepts:package feeds`" section
  1581. in the Yocto Project Overview and Concepts Manual.
  1582. :term:`DEPLOY_DIR_RPM`
  1583. Points to the area that the OpenEmbedded build system uses to place
  1584. RPM packages that are ready to be used outside of the build system.
  1585. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1586. ":ref:`ref-classes-package_rpm`".
  1587. The BitBake configuration file initially defines this variable as a
  1588. sub-folder of :term:`DEPLOY_DIR`::
  1589. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  1590. The :ref:`ref-classes-package_rpm` class uses the
  1591. :term:`DEPLOY_DIR_RPM` variable to make sure the
  1592. :ref:`ref-tasks-package_write_rpm` task
  1593. writes RPM packages into the appropriate folder. For more information
  1594. on how packaging works, see the
  1595. ":ref:`overview-manual/concepts:package feeds`" section
  1596. in the Yocto Project Overview and Concepts Manual.
  1597. :term:`DEPLOYDIR`
  1598. When inheriting the :ref:`ref-classes-deploy` class, the
  1599. :term:`DEPLOYDIR` points to a temporary work area for deployed files that
  1600. is set in the :ref:`ref-classes-deploy` class as follows::
  1601. DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
  1602. Recipes inheriting the :ref:`ref-classes-deploy` class should copy files to be
  1603. deployed into :term:`DEPLOYDIR`, and the class will take care of copying
  1604. them into :term:`DEPLOY_DIR_IMAGE`
  1605. afterwards.
  1606. :term:`DESCRIPTION`
  1607. The package description used by package managers. If not set,
  1608. :term:`DESCRIPTION` takes the value of the :term:`SUMMARY`
  1609. variable.
  1610. :term:`DEV_PKG_DEPENDENCY`
  1611. Provides an easy way for recipes to disable or adjust the runtime recommendation
  1612. (:term:`RRECOMMENDS`) of the ``${PN}-dev`` package on the main
  1613. (``${PN}``) package.
  1614. :term:`DISABLE_STATIC`
  1615. Used in order to disable static linking by default (in order to save
  1616. space, since static libraries are often unused in embedded systems.)
  1617. The default value is " --disable-static", however it can be set to ""
  1618. in order to enable static linking if desired. Certain recipes do this
  1619. individually, and also there is a
  1620. ``meta/conf/distro/include/no-static-libs.inc`` include file that
  1621. disables static linking for a number of recipes. Some software
  1622. packages or build tools (such as CMake) have explicit support for
  1623. enabling / disabling static linking, and in those cases
  1624. :term:`DISABLE_STATIC` is not used.
  1625. :term:`DISTRO`
  1626. The short name of the distribution. For information on the long name
  1627. of the distribution, see the :term:`DISTRO_NAME`
  1628. variable.
  1629. The :term:`DISTRO` variable corresponds to a distribution configuration
  1630. file whose root name is the same as the variable's argument and whose
  1631. filename extension is ``.conf``. For example, the distribution
  1632. configuration file for the Poky distribution is named ``poky.conf``
  1633. and resides in the ``meta-poky/conf/distro`` directory of the
  1634. :term:`Source Directory`.
  1635. Within that ``poky.conf`` file, the :term:`DISTRO` variable is set as
  1636. follows::
  1637. DISTRO = "poky"
  1638. Distribution configuration files are located in a ``conf/distro``
  1639. directory within the :term:`Metadata` that contains the
  1640. distribution configuration. The value for :term:`DISTRO` must not contain
  1641. spaces, and is typically all lower-case.
  1642. .. note::
  1643. If the :term:`DISTRO` variable is blank, a set of default configurations
  1644. are used, which are specified within
  1645. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1646. :term:`DISTRO_CODENAME`
  1647. Specifies a codename for the distribution being built.
  1648. :term:`DISTRO_EXTRA_RDEPENDS`
  1649. Specifies a list of distro-specific packages to add to all images.
  1650. This variable takes effect through ``packagegroup-base`` so the
  1651. variable only really applies to the more full-featured images that
  1652. include ``packagegroup-base``. You can use this variable to keep
  1653. distro policy out of generic images. As with all other distro
  1654. variables, you set this variable in the distro ``.conf`` file.
  1655. :term:`DISTRO_EXTRA_RRECOMMENDS`
  1656. Specifies a list of distro-specific packages to add to all images if
  1657. the packages exist. The packages might not exist or be empty (e.g.
  1658. kernel modules). The list of packages are automatically installed but
  1659. you can remove them.
  1660. :term:`DISTRO_FEATURES`
  1661. The software support you want in your distribution for various
  1662. features. You define your distribution features in the distribution
  1663. configuration file.
  1664. In most cases, the presence or absence of a feature in
  1665. :term:`DISTRO_FEATURES` is translated to the appropriate option supplied
  1666. to the configure script during the
  1667. :ref:`ref-tasks-configure` task for recipes that
  1668. optionally support the feature. For example, specifying "x11" in
  1669. :term:`DISTRO_FEATURES`, causes every piece of software built for the
  1670. target that can optionally support X11 to have its X11 support
  1671. enabled.
  1672. .. note::
  1673. Just enabling :term:`DISTRO_FEATURES` alone doesn't
  1674. enable feature support for packages. Mechanisms such as making
  1675. :term:`PACKAGECONFIG` track :term:`DISTRO_FEATURES` are used
  1676. to enable/disable package features.
  1677. Two more examples are Bluetooth and NFS support. For a more complete
  1678. list of features that ships with the Yocto Project and that you can
  1679. provide with this variable, see the ":ref:`ref-features-distro`" section.
  1680. :term:`DISTRO_FEATURES_BACKFILL`
  1681. A space-separated list of features to be added to :term:`DISTRO_FEATURES`
  1682. if not also present in :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`.
  1683. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1684. not intended to be user-configurable. It is best to just reference
  1685. the variable to see which distro features are being
  1686. :ref:`backfilled <ref-features-backfill>` for all distro configurations.
  1687. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`
  1688. A space-separated list of features from :term:`DISTRO_FEATURES_BACKFILL`
  1689. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  1690. to :term:`DISTRO_FEATURES`) during the build.
  1691. This corresponds to an opt-out mechanism. When new default distro
  1692. features are introduced, distribution maintainers can review (`consider`)
  1693. them and decide to exclude them from the
  1694. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  1695. combination of :term:`DISTRO_FEATURES_BACKFILL` and
  1696. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  1697. add new default features without breaking existing distributions.
  1698. :term:`DISTRO_FEATURES_DEFAULT`
  1699. A convenience variable that gives you the default list of distro
  1700. features with the exception of any features specific to the C library
  1701. (``libc``).
  1702. When creating a custom distribution, you might find it useful to be
  1703. able to reuse the default
  1704. :term:`DISTRO_FEATURES` options without the
  1705. need to write out the full set. Here is an example that uses
  1706. :term:`DISTRO_FEATURES_DEFAULT` from a custom distro configuration file::
  1707. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} myfeature"
  1708. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1709. Specifies a list of features that if present in the target
  1710. :term:`DISTRO_FEATURES` value should be
  1711. included in :term:`DISTRO_FEATURES` when building native recipes. This
  1712. variable is used in addition to the features filtered using the
  1713. :term:`DISTRO_FEATURES_NATIVE`
  1714. variable.
  1715. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1716. Specifies a list of features that if present in the target
  1717. :term:`DISTRO_FEATURES` value should be included in
  1718. :term:`DISTRO_FEATURES` when building :ref:`ref-classes-nativesdk`
  1719. recipes. This variable is used in addition to the features filtered using
  1720. the :term:`DISTRO_FEATURES_NATIVESDK` variable.
  1721. :term:`DISTRO_FEATURES_NATIVE`
  1722. Specifies a list of features that should be included in
  1723. :term:`DISTRO_FEATURES` when building native
  1724. recipes. This variable is used in addition to the features filtered
  1725. using the
  1726. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1727. variable.
  1728. :term:`DISTRO_FEATURES_NATIVESDK`
  1729. Specifies a list of features that should be included in
  1730. :term:`DISTRO_FEATURES` when building
  1731. :ref:`ref-classes-nativesdk` recipes. This variable is used
  1732. in addition to the features filtered using the
  1733. :term:`DISTRO_FEATURES_FILTER_NATIVESDK` variable.
  1734. :term:`DISTRO_NAME`
  1735. The long name of the distribution. For information on the short name
  1736. of the distribution, see the :term:`DISTRO` variable.
  1737. The :term:`DISTRO_NAME` variable corresponds to a distribution
  1738. configuration file whose root name is the same as the variable's
  1739. argument and whose filename extension is ``.conf``. For example, the
  1740. distribution configuration file for the Poky distribution is named
  1741. ``poky.conf`` and resides in the ``meta-poky/conf/distro`` directory
  1742. of the :term:`Source Directory`.
  1743. Within that ``poky.conf`` file, the :term:`DISTRO_NAME` variable is set
  1744. as follows::
  1745. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  1746. Distribution configuration files are located in a ``conf/distro``
  1747. directory within the :term:`Metadata` that contains the
  1748. distribution configuration.
  1749. .. note::
  1750. If the :term:`DISTRO_NAME` variable is blank, a set of default
  1751. configurations are used, which are specified within
  1752. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1753. :term:`DISTRO_VERSION`
  1754. The version of the distribution.
  1755. :term:`DISTROOVERRIDES`
  1756. A colon-separated list of overrides specific to the current
  1757. distribution. By default, this list includes the value of
  1758. :term:`DISTRO`.
  1759. You can extend :term:`DISTROOVERRIDES` to add extra overrides that should
  1760. apply to the distribution.
  1761. The underlying mechanism behind :term:`DISTROOVERRIDES` is simply that it
  1762. is included in the default value of
  1763. :term:`OVERRIDES`.
  1764. Here is an example from :yocto_git:`meta-poky/conf/distro/poky-tiny.conf
  1765. </poky/tree/meta-poky/conf/distro/poky-tiny.conf>`::
  1766. DISTROOVERRIDES = "poky:poky-tiny"
  1767. :term:`DL_DIR`
  1768. The central download directory used by the build process to store
  1769. downloads. By default, :term:`DL_DIR` gets files suitable for mirroring
  1770. for everything except Git repositories. If you want tarballs of Git
  1771. repositories, use the
  1772. :term:`BB_GENERATE_MIRROR_TARBALLS`
  1773. variable.
  1774. You can set this directory by defining the :term:`DL_DIR` variable in the
  1775. ``conf/local.conf`` file. This directory is self-maintaining and you
  1776. should not have to touch it. By default, the directory is
  1777. ``downloads`` in the :term:`Build Directory`::
  1778. #DL_DIR ?= "${TOPDIR}/downloads"
  1779. To specify a different download directory,
  1780. simply remove the comment from the line and provide your directory.
  1781. During a first build, the system downloads many different source code
  1782. tarballs from various upstream projects. Downloading can take a
  1783. while, particularly if your network connection is slow. Tarballs are
  1784. all stored in the directory defined by :term:`DL_DIR` and the build
  1785. system looks there first to find source tarballs.
  1786. .. note::
  1787. When wiping and rebuilding, you can preserve this directory to
  1788. speed up this part of subsequent builds.
  1789. You can safely share this directory between multiple builds on the
  1790. same development machine. For additional information on how the build
  1791. process gets source files when working behind a firewall or proxy
  1792. server, see this specific question in the ":doc:`faq`"
  1793. chapter. You can also refer to the
  1794. ":yocto_wiki:`Working Behind a Network Proxy </Working_Behind_a_Network_Proxy>`"
  1795. Wiki page.
  1796. :term:`DOC_COMPRESS`
  1797. When inheriting the :ref:`ref-classes-compress_doc`
  1798. class, this variable sets the compression policy used when the
  1799. OpenEmbedded build system compresses manual and info pages. By
  1800. default, the compression method used is gz (gzip). Other policies
  1801. available are xz and bz2.
  1802. For information on policies and on how to use this variable, see the
  1803. comments in the ``meta/classes-recipe/compress_doc.bbclass`` file.
  1804. :term:`DT_FILES`
  1805. Space-separated list of device tree source files to compile using
  1806. a recipe that inherits the :ref:`ref-classes-devicetree` class. These
  1807. are relative to the :term:`DT_FILES_PATH`.
  1808. For convenience, both ``.dts`` and ``.dtb`` extensions can be used.
  1809. Use an empty string (default) to build all device tree sources within
  1810. the :term:`DT_FILES_PATH` directory.
  1811. :term:`DT_FILES_PATH`
  1812. When compiling out-of-tree device tree sources using a recipe that
  1813. inherits the :ref:`ref-classes-devicetree` class, this variable specifies
  1814. the path to the directory containing dts files to build.
  1815. Defaults to the :term:`S` directory.
  1816. :term:`DT_PADDING_SIZE`
  1817. When inheriting the :ref:`ref-classes-devicetree` class, this variable
  1818. specifies the size of padding appended to the device tree blob, used as
  1819. extra space typically for additional properties during boot.
  1820. :term:`EFI_ARCH`
  1821. The CPU architecture name within EFI standard. Set in
  1822. :oe_git:`meta/conf/image-uefi.conf
  1823. <openembedded-core/tree/meta/conf/image-uefi.conf>`.
  1824. :term:`EFI_PROVIDER`
  1825. When building bootable images (i.e. where ``hddimg``, ``iso``, or
  1826. ``wic.vmdk`` is in :term:`IMAGE_FSTYPES`), the
  1827. :term:`EFI_PROVIDER` variable specifies the EFI bootloader to use. The
  1828. default is "grub-efi", but "systemd-boot" can be used instead.
  1829. See the :ref:`ref-classes-systemd-boot` and :ref:`ref-classes-image-live`
  1830. classes for more information.
  1831. :term:`EFI_UKI_DIR`
  1832. The primary place for the UKI image inside the EFI System Partition.
  1833. :term:`EFI_UKI_PATH`
  1834. The path for the UKI image inside the root filesystem.
  1835. :term:`ENABLE_BINARY_LOCALE_GENERATION`
  1836. Variable that controls which locales for ``glibc`` are generated
  1837. during the build (useful if the target device has 64Mbytes of RAM or
  1838. less).
  1839. :term:`ERR_REPORT_DIR`
  1840. When used with the :ref:`ref-classes-report-error` class, specifies the
  1841. path used for storing the debug files created by the :ref:`error reporting
  1842. tool <dev-manual/error-reporting-tool:using the error reporting tool>`,
  1843. which allows you to submit build errors you encounter to a central
  1844. database. By default, the value of this variable is
  1845. ``${``\ :term:`LOG_DIR`\ ``}/error-report``.
  1846. You can set :term:`ERR_REPORT_DIR` to the path you want the error
  1847. reporting tool to store the debug files as follows in your
  1848. ``local.conf`` file::
  1849. ERR_REPORT_DIR = "path"
  1850. :term:`ERROR_QA`
  1851. Specifies the quality assurance checks whose failures are reported as
  1852. errors by the OpenEmbedded build system. You set this variable in
  1853. your distribution configuration file. For a list of the checks you
  1854. can control with this variable, see the
  1855. ":ref:`ref-classes-insane`" section.
  1856. :term:`ESDK_CLASS_INHERIT_DISABLE`
  1857. A list of classes to remove from the :term:`INHERIT`
  1858. value globally within the extensible SDK configuration. The
  1859. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class sets the
  1860. default value::
  1861. ESDK_CLASS_INHERIT_DISABLE ?= "buildhistory icecc"
  1862. Some classes are not generally applicable within the extensible SDK
  1863. context. You can use this variable to disable those classes.
  1864. For additional information on how to customize the extensible SDK's
  1865. configuration, see the
  1866. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1867. section in the Yocto Project Application Development and the
  1868. Extensible Software Development Kit (eSDK) manual.
  1869. :term:`ESDK_LOCALCONF_ALLOW`
  1870. A list of variables allowed through from the OpenEmbedded build
  1871. system configuration into the extensible SDK configuration. By
  1872. default, the list of variables is empty and is set in the
  1873. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class.
  1874. This list overrides the variables specified using the
  1875. :term:`ESDK_LOCALCONF_REMOVE` variable as well as
  1876. other variables automatically added due to the "/" character
  1877. being found at the start of the
  1878. value, which is usually indicative of being a path and thus might not
  1879. be valid on the system where the SDK is installed.
  1880. For additional information on how to customize the extensible SDK's
  1881. configuration, see the
  1882. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1883. section in the Yocto Project Application Development and the
  1884. Extensible Software Development Kit (eSDK) manual.
  1885. :term:`ESDK_LOCALCONF_REMOVE`
  1886. A list of variables not allowed through from the OpenEmbedded build
  1887. system configuration into the extensible SDK configuration. Usually,
  1888. these are variables that are specific to the machine on which the
  1889. build system is running and thus would be potentially problematic
  1890. within the extensible SDK.
  1891. By default, :term:`ESDK_LOCALCONF_REMOVE` is set in the
  1892. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class and
  1893. excludes the following variables:
  1894. - :term:`CONF_VERSION`
  1895. - :term:`BB_NUMBER_THREADS`
  1896. - :term:`BB_NUMBER_PARSE_THREADS`
  1897. - :term:`PARALLEL_MAKE`
  1898. - :term:`PRSERV_HOST`
  1899. - :term:`SSTATE_MIRRORS` :term:`DL_DIR`
  1900. - :term:`SSTATE_DIR` :term:`TMPDIR`
  1901. - :term:`BB_SERVER_TIMEOUT`
  1902. For additional information on how to customize the extensible SDK's
  1903. configuration, see the
  1904. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1905. section in the Yocto Project Application Development and the
  1906. Extensible Software Development Kit (eSDK) manual.
  1907. :term:`EXCLUDE_FROM_SHLIBS`
  1908. Triggers the OpenEmbedded build system's shared libraries resolver to
  1909. exclude an entire package when scanning for shared libraries.
  1910. .. note::
  1911. The shared libraries resolver's functionality results in part from
  1912. the internal function ``package_do_shlibs``, which is part of the
  1913. :ref:`ref-tasks-package` task. You should be aware that the shared
  1914. libraries resolver might implicitly define some dependencies between
  1915. packages.
  1916. The :term:`EXCLUDE_FROM_SHLIBS` variable is similar to the
  1917. :term:`PRIVATE_LIBS` variable, which excludes a
  1918. package's particular libraries only and not the whole package.
  1919. Use the :term:`EXCLUDE_FROM_SHLIBS` variable by setting it to "1" for a
  1920. particular package::
  1921. EXCLUDE_FROM_SHLIBS = "1"
  1922. :term:`EXCLUDE_FROM_WORLD`
  1923. Directs BitBake to exclude a recipe from world builds (i.e.
  1924. ``bitbake world``). During world builds, BitBake locates, parses and
  1925. builds all recipes found in every layer exposed in the
  1926. ``bblayers.conf`` configuration file.
  1927. To exclude a recipe from a world build using this variable, set the
  1928. variable to "1" in the recipe.
  1929. .. note::
  1930. Recipes added to :term:`EXCLUDE_FROM_WORLD` may still be built during a
  1931. world build in order to satisfy dependencies of other recipes. Adding
  1932. a recipe to :term:`EXCLUDE_FROM_WORLD` only ensures that the recipe is not
  1933. explicitly added to the list of build targets in a world build.
  1934. :term:`EXTENDPE`
  1935. Used with file and pathnames to create a prefix for a recipe's
  1936. version based on the recipe's :term:`PE` value. If :term:`PE`
  1937. is set and greater than zero for a recipe, :term:`EXTENDPE` becomes that
  1938. value (e.g if :term:`PE` is equal to "1" then :term:`EXTENDPE` becomes "1").
  1939. If a recipe's :term:`PE` is not set (the default) or is equal to zero,
  1940. :term:`EXTENDPE` becomes "".
  1941. See the :term:`STAMP` variable for an example.
  1942. :term:`EXTENDPKGV`
  1943. The full package version specification as it appears on the final
  1944. packages produced by a recipe. The variable's value is normally used
  1945. to fix a runtime dependency to the exact same version of another
  1946. package in the same recipe::
  1947. RDEPENDS:${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  1948. The dependency relationships are intended to force the package
  1949. manager to upgrade these types of packages in lock-step.
  1950. :term:`EXTERNAL_KERNEL_TOOLS`
  1951. When set, the :term:`EXTERNAL_KERNEL_TOOLS` variable indicates that these
  1952. tools are not in the source tree.
  1953. When kernel tools are available in the tree, they are preferred over
  1954. any externally installed tools. Setting the :term:`EXTERNAL_KERNEL_TOOLS`
  1955. variable tells the OpenEmbedded build system to prefer the installed
  1956. external tools. See the :ref:`ref-classes-kernel-yocto` class in
  1957. ``meta/classes-recipe`` to see how the variable is used.
  1958. :term:`EXTERNAL_KERNEL_DEVICETREE`
  1959. When inheriting :ref:`ref-classes-kernel-fitimage` and a
  1960. :term:`PREFERRED_PROVIDER` for ``virtual/dtb`` set to ``devicetree``, the
  1961. variable :term:`EXTERNAL_KERNEL_DEVICETREE` can be used to specify a
  1962. directory containing one or more compiled device tree or device tree
  1963. overlays to use.
  1964. :term:`KERNEL_LOCALVERSION`
  1965. This variable allows to append a string to the version
  1966. of the kernel image. This corresponds to the ``CONFIG_LOCALVERSION``
  1967. kernel configuration parameter.
  1968. Using this variable is only useful when you are using a kernel recipe
  1969. inheriting the :ref:`ref-classes-kernel` class, and which doesn't
  1970. already set a local version. Therefore, setting this variable has no
  1971. impact on ``linux-yocto`` kernels.
  1972. :term:`EXTERNAL_TOOLCHAIN`
  1973. When you intend to use an
  1974. :ref:`external toolchain <dev-manual/external-toolchain:optionally using an external toolchain>`,
  1975. this variable allows to specify the directory where this toolchain was
  1976. installed.
  1977. :term:`EXTERNALSRC`
  1978. When inheriting the :ref:`ref-classes-externalsrc`
  1979. class, this variable points to the source tree, which is outside of
  1980. the OpenEmbedded build system. When set, this variable sets the
  1981. :term:`S` variable, which is what the OpenEmbedded build
  1982. system uses to locate unpacked recipe source code.
  1983. See the ":ref:`ref-classes-externalsrc`" section for details. You
  1984. can also find information on how to use this variable in the
  1985. ":ref:`dev-manual/building:building software from an external source`"
  1986. section in the Yocto Project Development Tasks Manual.
  1987. :term:`EXTERNALSRC_BUILD`
  1988. When inheriting the :ref:`ref-classes-externalsrc`
  1989. class, this variable points to the directory in which the recipe's
  1990. source code is built, which is outside of the OpenEmbedded build
  1991. system. When set, this variable sets the :term:`B` variable,
  1992. which is what the OpenEmbedded build system uses to locate the
  1993. :term:`Build Directory`.
  1994. See the ":ref:`ref-classes-externalsrc`" section for details. You
  1995. can also find information on how to use this variable in the
  1996. ":ref:`dev-manual/building:building software from an external source`"
  1997. section in the Yocto Project Development Tasks Manual.
  1998. :term:`EXTRA_AUTORECONF`
  1999. For recipes inheriting the :ref:`ref-classes-autotools`
  2000. class, you can use :term:`EXTRA_AUTORECONF` to specify extra options to
  2001. pass to the ``autoreconf`` command that is executed during the
  2002. :ref:`ref-tasks-configure` task.
  2003. The default value is "--exclude=autopoint".
  2004. :term:`EXTRA_IMAGE_FEATURES`
  2005. A list of additional features to include in an image. When listing
  2006. more than one feature, separate them with a space.
  2007. Typically, you configure this variable in your ``local.conf`` file,
  2008. which is found in the :term:`Build Directory`. Although you can use this
  2009. variable from within a recipe, best practices dictate that you do not.
  2010. .. note::
  2011. To enable primary features from within the image recipe, use the
  2012. :term:`IMAGE_FEATURES` variable.
  2013. Here are some examples of features you can add:
  2014. - "dbg-pkgs" --- adds -dbg packages for all installed packages including
  2015. symbol information for debugging and profiling.
  2016. - "empty-root-password" --- This feature can be used if you want to
  2017. allow root login with an empty password.
  2018. - "allow-empty-password" --- Allows Dropbear and OpenSSH to accept
  2019. logins from accounts having an empty password string.
  2020. - "allow-root-login" --- Allows Dropbear and OpenSSH to accept root logins.
  2021. - "post-install-logging" --- Enables logging postinstall script runs to
  2022. the ``/var/log/postinstall.log`` file on first boot of the image on
  2023. the target system.
  2024. - "dev-pkgs" --- adds -dev packages for all installed packages. This is
  2025. useful if you want to develop against the libraries in the image.
  2026. - "read-only-rootfs" --- creates an image whose root filesystem is
  2027. read-only. See the
  2028. ":ref:`dev-manual/read-only-rootfs:creating a read-only root filesystem`"
  2029. section in the Yocto Project Development Tasks Manual for more
  2030. information
  2031. - "tools-debug" --- adds debugging tools such as gdb and strace.
  2032. - "tools-sdk" --- adds development tools such as gcc, make,
  2033. pkgconfig and so forth.
  2034. - "tools-testapps" --- adds useful testing tools
  2035. such as ts_print, aplay, arecord and so forth.
  2036. For a complete list of image features that ships with the Yocto
  2037. Project, see the ":ref:`ref-features-image`" section.
  2038. For an example that shows how to customize your image by using this
  2039. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2040. section in the Yocto Project Development Tasks Manual.
  2041. :term:`EXTRA_IMAGECMD`
  2042. Specifies additional options for the image creation command that has
  2043. been specified in :term:`IMAGE_CMD`. When setting
  2044. this variable, use an override for the associated image type. Here is
  2045. an example::
  2046. EXTRA_IMAGECMD:ext3 ?= "-i 4096"
  2047. :term:`EXTRA_IMAGEDEPENDS`
  2048. A list of recipes to build that do not provide packages for
  2049. installing into the root filesystem.
  2050. Sometimes a recipe is required to build the final image but is not
  2051. needed in the root filesystem. You can use the :term:`EXTRA_IMAGEDEPENDS`
  2052. variable to list these recipes and thus specify the dependencies. A
  2053. typical example is a required bootloader in a machine configuration.
  2054. .. note::
  2055. To add packages to the root filesystem, see the various
  2056. :term:`RDEPENDS` and :term:`RRECOMMENDS` variables.
  2057. :term:`EXTRA_OECMAKE`
  2058. Additional `CMake <https://cmake.org/overview/>`__ options. See the
  2059. :ref:`ref-classes-cmake` class for additional information.
  2060. :term:`EXTRA_OECONF`
  2061. Additional ``configure`` script options. See
  2062. :term:`PACKAGECONFIG_CONFARGS` for
  2063. additional information on passing configure script options.
  2064. :term:`EXTRA_OEMAKE`
  2065. Additional GNU ``make`` options.
  2066. Because the :term:`EXTRA_OEMAKE` defaults to "", you need to set the
  2067. variable to specify any required GNU options.
  2068. :term:`PARALLEL_MAKE` and
  2069. :term:`PARALLEL_MAKEINST` also make use of
  2070. :term:`EXTRA_OEMAKE` to pass the required flags.
  2071. :term:`EXTRA_OESCONS`
  2072. When inheriting the :ref:`ref-classes-scons` class, this
  2073. variable specifies additional configuration options you want to pass
  2074. to the ``scons`` command line.
  2075. :term:`EXTRA_OEMESON`
  2076. Additional `Meson <https://mesonbuild.com/>`__ options. See the
  2077. :ref:`ref-classes-meson` class for additional information.
  2078. In addition to standard Meson options, such options correspond to
  2079. `Meson build options <https://mesonbuild.com/Build-options.html>`__
  2080. defined in the ``meson_options.txt`` file in the sources to build.
  2081. Here is an example::
  2082. EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled"
  2083. Note that any custom value for the Meson ``--buildtype`` option
  2084. should be set through the :term:`MESON_BUILDTYPE` variable.
  2085. :term:`EXTRA_USERS_PARAMS`
  2086. When inheriting the :ref:`ref-classes-extrausers`
  2087. class, this variable provides image level user and group operations.
  2088. This is a more global method of providing user and group
  2089. configuration as compared to using the
  2090. :ref:`ref-classes-useradd` class, which ties user and
  2091. group configurations to a specific recipe.
  2092. The set list of commands you can configure using the
  2093. :term:`EXTRA_USERS_PARAMS` is shown in the
  2094. :ref:`ref-classes-extrausers` class. These commands map to the normal
  2095. Unix commands of the same names::
  2096. # EXTRA_USERS_PARAMS = "\
  2097. # useradd -p '' tester; \
  2098. # groupadd developers; \
  2099. # userdel nobody; \
  2100. # groupdel -g video; \
  2101. # groupmod -g 1020 developers; \
  2102. # usermod -s /bin/sh tester; \
  2103. # "
  2104. Hardcoded passwords are supported via the ``-p`` parameters for
  2105. ``useradd`` or ``usermod``, but only hashed.
  2106. Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns
  2107. passwords. First on host, create the (escaped) password hash::
  2108. printf "%q" $(mkpasswd -m sha256crypt tester01)
  2109. The resulting hash is set to a variable and used in ``useradd`` command parameters::
  2110. inherit extrausers
  2111. PASSWD = "\$X\$ABC123\$A-Long-Hash"
  2112. EXTRA_USERS_PARAMS = "\
  2113. useradd -p '${PASSWD}' tester-jim; \
  2114. useradd -p '${PASSWD}' tester-sue; \
  2115. "
  2116. Finally, here is an example that sets the root password::
  2117. inherit extrausers
  2118. EXTRA_USERS_PARAMS = "\
  2119. usermod -p '${PASSWD}' root; \
  2120. "
  2121. .. note::
  2122. From a security perspective, hardcoding a default password is not
  2123. generally a good idea or even legal in some jurisdictions. It is
  2124. recommended that you do not do this if you are building a production
  2125. image.
  2126. Additionally there is a special ``passwd-expire`` command that will
  2127. cause the password for a user to be expired and thus force changing it
  2128. on first login, for example::
  2129. EXTRA_USERS_PARAMS += " useradd myuser; passwd-expire myuser;"
  2130. .. note::
  2131. At present, ``passwd-expire`` may only work for remote logins when
  2132. using OpenSSH and not dropbear as an SSH server.
  2133. :term:`EXTRANATIVEPATH`
  2134. A list of subdirectories of
  2135. ``${``\ :term:`STAGING_BINDIR_NATIVE`\ ``}``
  2136. added to the beginning of the environment variable ``PATH``. As an
  2137. example, the following prepends
  2138. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:" to
  2139. ``PATH``::
  2140. EXTRANATIVEPATH = "foo bar"
  2141. :term:`FAKEROOT`
  2142. See :term:`bitbake:FAKEROOT` in the BitBake manual.
  2143. :term:`FAKEROOTBASEENV`
  2144. See :term:`bitbake:FAKEROOTBASEENV` in the BitBake manual.
  2145. :term:`FAKEROOTCMD`
  2146. See :term:`bitbake:FAKEROOTCMD` in the BitBake manual.
  2147. :term:`FAKEROOTDIRS`
  2148. See :term:`bitbake:FAKEROOTDIRS` in the BitBake manual.
  2149. :term:`FAKEROOTENV`
  2150. See :term:`bitbake:FAKEROOTENV` in the BitBake manual.
  2151. :term:`FAKEROOTNOENV`
  2152. See :term:`bitbake:FAKEROOTNOENV` in the BitBake manual.
  2153. :term:`FEATURE_PACKAGES`
  2154. Defines one or more packages to include in an image when a specific
  2155. item is included in :term:`IMAGE_FEATURES`.
  2156. When setting the value, :term:`FEATURE_PACKAGES` should have the name of
  2157. the feature item as an override. Here is an example::
  2158. FEATURE_PACKAGES_widget = "package1 package2"
  2159. In this example, if "widget" were added to :term:`IMAGE_FEATURES`,
  2160. package1 and package2 would be included in the image.
  2161. .. note::
  2162. Packages installed by features defined through :term:`FEATURE_PACKAGES`
  2163. are often package groups. While similarly named, you should not
  2164. confuse the :term:`FEATURE_PACKAGES` variable with package groups, which
  2165. are discussed elsewhere in the documentation.
  2166. :term:`FEED_DEPLOYDIR_BASE_URI`
  2167. Points to the base URL of the server and location within the
  2168. document-root that provides the metadata and packages required by
  2169. OPKG to support runtime package management of IPK packages. You set
  2170. this variable in your ``local.conf`` file.
  2171. Consider the following example::
  2172. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  2173. This example assumes you are serving
  2174. your packages over HTTP and your databases are located in a directory
  2175. named ``BOARD-dir``, which is underneath your HTTP server's
  2176. document-root. In this case, the OpenEmbedded build system generates
  2177. a set of configuration files for you in your target that work with
  2178. the feed.
  2179. :term:`FETCHCMD`
  2180. See :term:`bitbake:FETCHCMD` in the BitBake manual.
  2181. :term:`FILE`
  2182. See :term:`bitbake:FILE` in the BitBake manual.
  2183. :term:`FILES`
  2184. The list of files and directories that are placed in a package. The
  2185. :term:`PACKAGES` variable lists the packages
  2186. generated by a recipe.
  2187. To use the :term:`FILES` variable, provide a package name override that
  2188. identifies the resulting package. Then, provide a space-separated
  2189. list of files or paths that identify the files you want included as
  2190. part of the resulting package. Here is an example::
  2191. FILES:${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  2192. .. note::
  2193. - When specifying files or paths, you can pattern match using
  2194. Python's
  2195. `glob <https://docs.python.org/3/library/glob.html>`__
  2196. syntax. For details on the syntax, see the documentation by
  2197. following the previous link.
  2198. - When specifying paths as part of the :term:`FILES` variable, it is
  2199. good practice to use appropriate path variables. For example,
  2200. use ``${sysconfdir}`` rather than ``/etc``, or ``${bindir}``
  2201. rather than ``/usr/bin``. You can find a list of these
  2202. variables at the top of the ``meta/conf/bitbake.conf`` file in
  2203. the :term:`Source Directory`. You will also
  2204. find the default values of the various ``FILES:*`` variables in
  2205. this file.
  2206. If some of the files you provide with the :term:`FILES` variable are
  2207. editable and you know they should not be overwritten during the
  2208. package update process by the Package Management System (PMS), you
  2209. can identify these files so that the PMS will not overwrite them. See
  2210. the :term:`CONFFILES` variable for information on
  2211. how to identify these files to the PMS.
  2212. :term:`FILES_SOLIBSDEV`
  2213. Defines the file specification to match
  2214. :term:`SOLIBSDEV`. In other words,
  2215. :term:`FILES_SOLIBSDEV` defines the full path name of the development
  2216. symbolic link (symlink) for shared libraries on the target platform.
  2217. The following statement from the ``bitbake.conf`` shows how it is
  2218. set::
  2219. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  2220. :term:`FILESEXTRAPATHS`
  2221. A colon-separated list to extend the search path the OpenEmbedded build
  2222. system uses when looking for files and patches as it processes recipes
  2223. and append files. The default directories BitBake uses when it processes
  2224. recipes are initially defined by the :term:`FILESPATH` variable. You can
  2225. extend :term:`FILESPATH` variable by using :term:`FILESEXTRAPATHS`.
  2226. Best practices dictate that you accomplish this by using
  2227. :term:`FILESEXTRAPATHS` from within a ``.bbappend`` file and that you
  2228. prepend paths as follows::
  2229. FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
  2230. In the above example, the build system first
  2231. looks for files in a directory that has the same name as the
  2232. corresponding append file.
  2233. .. note::
  2234. When extending :term:`FILESEXTRAPATHS`, be sure to use the immediate
  2235. expansion (``:=``) operator. Immediate expansion makes sure that
  2236. BitBake evaluates :term:`THISDIR` at the time the
  2237. directive is encountered rather than at some later time when
  2238. expansion might result in a directory that does not contain the
  2239. files you need.
  2240. Also, include the trailing separating colon character if you are
  2241. prepending. The trailing colon character is necessary because you
  2242. are directing BitBake to extend the path by prepending directories
  2243. to the search path.
  2244. Here is another common use::
  2245. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  2246. In this example, the build system extends the
  2247. :term:`FILESPATH` variable to include a directory named ``files`` that is
  2248. in the same directory as the corresponding append file.
  2249. This next example specifically adds three paths::
  2250. FILESEXTRAPATHS:prepend := "path_1:path_2:path_3:"
  2251. A final example shows how you can extend the search path and include
  2252. a :term:`MACHINE`-specific override, which is useful
  2253. in a BSP layer::
  2254. FILESEXTRAPATHS:prepend:intel-x86-common := "${THISDIR}/${PN}:"
  2255. The previous statement appears in the
  2256. ``linux-yocto-dev.bbappend`` file, which is found in the
  2257. :ref:`overview-manual/development-environment:yocto project source repositories` in
  2258. ``meta-intel/common/recipes-kernel/linux``. Here, the machine
  2259. override is a special :term:`PACKAGE_ARCH`
  2260. definition for multiple ``meta-intel`` machines.
  2261. .. note::
  2262. For a layer that supports a single BSP, the override could just be
  2263. the value of :term:`MACHINE`.
  2264. By prepending paths in ``.bbappend`` files, you allow multiple append
  2265. files that reside in different layers but are used for the same
  2266. recipe to correctly extend the path.
  2267. :term:`FILESOVERRIDES`
  2268. A colon-separated list to specify a subset of :term:`OVERRIDES` used by
  2269. the OpenEmbedded build system for creating :term:`FILESPATH`. The
  2270. :term:`FILESOVERRIDES` variable uses overrides to automatically extend
  2271. the :term:`FILESPATH` variable. For an example of how that works, see the
  2272. :term:`FILESPATH` variable description. Additionally, you find more
  2273. information on how overrides are handled in the
  2274. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  2275. section of the BitBake User Manual.
  2276. By default, the :term:`FILESOVERRIDES` variable is defined as::
  2277. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  2278. .. note::
  2279. Do not hand-edit the :term:`FILESOVERRIDES` variable. The values match up
  2280. with expected overrides and are used in an expected manner by the
  2281. build system.
  2282. :term:`FILESPATH`
  2283. A colon-separated list specifying the default set of directories the
  2284. OpenEmbedded build system uses when searching for patches and files.
  2285. During the build process, BitBake searches each directory in
  2286. :term:`FILESPATH` in the specified order when looking for files and
  2287. patches specified by each ``file://`` URI in a recipe's
  2288. :term:`SRC_URI` statements.
  2289. The default value for the :term:`FILESPATH` variable is defined in the
  2290. :ref:`ref-classes-base` class found in ``meta/classes-global`` in the
  2291. :term:`Source Directory`::
  2292. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  2293. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  2294. The
  2295. :term:`FILESPATH` variable is automatically extended using the overrides
  2296. from the :term:`FILESOVERRIDES` variable.
  2297. .. note::
  2298. - Do not hand-edit the :term:`FILESPATH` variable. If you want the
  2299. build system to look in directories other than the defaults,
  2300. extend the :term:`FILESPATH` variable by using the
  2301. :term:`FILESEXTRAPATHS` variable.
  2302. - Be aware that the default :term:`FILESPATH` directories do not map
  2303. to directories in custom layers where append files
  2304. (``.bbappend``) are used. If you want the build system to find
  2305. patches or files that reside with your append files, you need
  2306. to extend the :term:`FILESPATH` variable by using the
  2307. :term:`FILESEXTRAPATHS` variable.
  2308. You can take advantage of this searching behavior in useful ways. For
  2309. example, consider a case where there is the following directory structure
  2310. for general and machine-specific configurations::
  2311. files/defconfig
  2312. files/MACHINEA/defconfig
  2313. files/MACHINEB/defconfig
  2314. Also in the example, the :term:`SRC_URI` statement contains
  2315. "file://defconfig". Given this scenario, you can set
  2316. :term:`MACHINE` to "MACHINEA" and cause the build
  2317. system to use files from ``files/MACHINEA``. Set :term:`MACHINE` to
  2318. "MACHINEB" and the build system uses files from ``files/MACHINEB``.
  2319. Finally, for any machine other than "MACHINEA" and "MACHINEB", the
  2320. build system uses files from ``files/defconfig``.
  2321. You can find out more about the patching process in the
  2322. ":ref:`overview-manual/concepts:patching`" section
  2323. in the Yocto Project Overview and Concepts Manual and the
  2324. ":ref:`dev-manual/new-recipe:patching code`" section in
  2325. the Yocto Project Development Tasks Manual. See the
  2326. :ref:`ref-tasks-patch` task as well.
  2327. :term:`FILESYSTEM_PERMS_TABLES`
  2328. Allows you to define your own file permissions settings tables as part
  2329. of your configuration for the packaging process. For example, suppose
  2330. you need a consistent set of custom permissions for a set of groups
  2331. and users across an entire work project. It is best to do this in the
  2332. packages themselves but this is not always possible.
  2333. By default, the OpenEmbedded build system uses the ``fs-perms.txt``,
  2334. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` which are
  2335. located in the ``meta/files`` folder in the :term:`Source Directory`. If
  2336. you create your own permission setting table files, you should place
  2337. those in your layer.
  2338. You can override the value of :term:`FILESYSTEM_PERMS_TABLES` variable
  2339. in your distribution configuration file to point to your custom
  2340. permission table files. You can specify one or more file permissions
  2341. setting tables. The paths that you specify to these files must be defined
  2342. within the :term:`BBPATH` variable.
  2343. In order to disable the volatile log, which is enabled by default, one
  2344. can remove the ``files/fs-perms-volatile-log.txt`` value from
  2345. ``FILESYSTEM_PERMS_TABLES``. Similarly, in order to disable the volatile
  2346. tmp, one can remove the ``files/fs-perms-volatile-tmp.txt`` value.
  2347. For guidance on how to define your own file permissions settings
  2348. tables, examine the existing ``fs-perms.txt``,
  2349. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` files.
  2350. :term:`FIRMWARE_COMPRESSION`
  2351. The :term:`FIRMWARE_COMPRESSION` allows compressing the firmware provided
  2352. by the ``linux-firmware`` recipe. The default value of this variable is an
  2353. empty string (no compression), and the possible values it can take are
  2354. ``xz`` and ``zst``. This can allow significant disk space savings.
  2355. For this to work, the Linux Kernel requires the
  2356. ``CONFIG_FW_LOADER_COMPRESS_XZ`` or ``CONFIG_FW_LOADER_COMPRESS_ZSTD``
  2357. configuration options to be set.
  2358. :term:`FIT_ADDRESS_CELLS`
  2359. Specifies the value of the ``#address-cells`` value for the
  2360. description of the FIT image.
  2361. The default value is set to "1" by the :ref:`ref-classes-kernel-fitimage`
  2362. class, which corresponds to 32 bit addresses.
  2363. For platforms that need to set 64 bit addresses, for example in
  2364. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  2365. set this value to "2", as two 32 bit values (cells) will be needed
  2366. to represent such addresses.
  2367. Here is an example setting "0x400000000" as a load address::
  2368. FIT_ADDRESS_CELLS = "2"
  2369. UBOOT_LOADADDRESS= "0x04 0x00000000"
  2370. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  2371. :term:`FIT_CONF_DEFAULT_DTB`
  2372. Specifies the default device tree binary (dtb) file for a FIT image
  2373. when multiple ones are provided.
  2374. This variable is used in the :ref:`ref-classes-kernel-fitimage` class.
  2375. :term:`FIT_DESC`
  2376. Specifies the description string encoded into a FIT image. The
  2377. default value is set by the :ref:`ref-classes-kernel-fitimage` class as
  2378. follows::
  2379. FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  2380. :term:`FIT_GENERATE_KEYS`
  2381. Decides whether to generate the keys for signing the FIT image if
  2382. they don't already exist. The keys are created in
  2383. :term:`UBOOT_SIGN_KEYDIR`. The default value is set to "0"
  2384. by the :ref:`ref-classes-kernel-fitimage` class.
  2385. :term:`FIT_HASH_ALG`
  2386. Specifies the hash algorithm used in creating the FIT Image.
  2387. This variable is set by default to "sha256" by the
  2388. :ref:`ref-classes-kernel-fitimage` class.
  2389. :term:`FIT_KERNEL_COMP_ALG`
  2390. The compression algorithm to use for the kernel image inside the FIT Image.
  2391. At present, the only supported values are "gzip" (default), "lzo" or "none".
  2392. If you set this variable to anything other than "none" you may also need
  2393. to set :term:`FIT_KERNEL_COMP_ALG_EXTENSION`.
  2394. This variable is used in the :ref:`ref-classes-kernel-uboot` class.
  2395. :term:`FIT_KERNEL_COMP_ALG_EXTENSION`
  2396. File extension corresponding to :term:`FIT_KERNEL_COMP_ALG`. The default
  2397. value is set ".gz" by the :ref:`ref-classes-kernel-uboot` class. If you
  2398. set :term:`FIT_KERNEL_COMP_ALG` to "lzo", you may want to set this
  2399. variable to ".lzo".
  2400. :term:`FIT_KEY_GENRSA_ARGS`
  2401. Arguments to ``openssl genrsa`` for generating a RSA private key for
  2402. signing the FIT image. The default value is set to "-F4" by the
  2403. :ref:`ref-classes-kernel-fitimage` class.
  2404. :term:`FIT_KEY_REQ_ARGS`
  2405. Arguments to ``openssl req`` for generating a certificate for signing
  2406. the FIT image. The default value is "-batch -new" by the
  2407. :ref:`ref-classes-kernel-fitimage` class, "batch" for
  2408. non interactive mode and "new" for generating new keys.
  2409. :term:`FIT_KEY_SIGN_PKCS`
  2410. Format for the public key certificate used for signing the FIT image.
  2411. The default value is set to "x509" by the
  2412. :ref:`ref-classes-kernel-fitimage` class.
  2413. :term:`FIT_SIGN_ALG`
  2414. Specifies the signature algorithm used in creating the FIT Image.
  2415. This variable is set by default to "rsa2048" by the
  2416. :ref:`ref-classes-kernel-fitimage` class.
  2417. :term:`FIT_PAD_ALG`
  2418. Specifies the padding algorithm used in creating the FIT Image.
  2419. The default value is set to "pkcs-1.5" by the
  2420. :ref:`ref-classes-kernel-fitimage` class.
  2421. :term:`FIT_SIGN_INDIVIDUAL`
  2422. If set to "1", then the :ref:`ref-classes-kernel-fitimage`
  2423. class will sign the kernel, dtb and ramdisk images individually in addition
  2424. to signing the FIT image itself. This could be useful if you are
  2425. intending to verify signatures in another context than booting via
  2426. U-Boot.
  2427. This variable is set to "0" by default.
  2428. :term:`FIT_SIGN_NUMBITS`
  2429. Size of the private key used in the FIT image, in number of bits.
  2430. The default value for this variable is set to "2048"
  2431. by the :ref:`ref-classes-kernel-fitimage` class.
  2432. :term:`FONT_EXTRA_RDEPENDS`
  2433. When inheriting the :ref:`ref-classes-fontcache` class,
  2434. this variable specifies the runtime dependencies for font packages.
  2435. By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils".
  2436. :term:`FONT_PACKAGES`
  2437. When inheriting the :ref:`ref-classes-fontcache` class, this variable
  2438. identifies packages containing font files that need to be cached by
  2439. Fontconfig. By default, the :ref:`ref-classes-fontcache` class assumes
  2440. that fonts are in the recipe's main package (i.e.
  2441. ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you
  2442. need are in a package other than that main package.
  2443. :term:`FORCE_RO_REMOVE`
  2444. Forces the removal of the packages listed in ``ROOTFS_RO_UNNEEDED``
  2445. during the generation of the root filesystem.
  2446. Set the variable to "1" to force the removal of these packages.
  2447. :term:`FULL_OPTIMIZATION`
  2448. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  2449. compiling an optimized system. This variable defaults to "-O2 -pipe
  2450. ${DEBUG_FLAGS}".
  2451. :term:`GCCPIE`
  2452. Enables Position Independent Executables (PIE) within the GNU C
  2453. Compiler (GCC). Enabling PIE in the GCC makes Return Oriented
  2454. Programming (ROP) attacks much more difficult to execute.
  2455. By default the ``security_flags.inc`` file enables PIE by setting the
  2456. variable as follows::
  2457. GCCPIE ?= "--enable-default-pie"
  2458. :term:`GCCVERSION`
  2459. Specifies the default version of the GNU C Compiler (GCC) used for
  2460. compilation. By default, :term:`GCCVERSION` is set to "8.x" in the
  2461. ``meta/conf/distro/include/tcmode-default.inc`` include file::
  2462. GCCVERSION ?= "8.%"
  2463. You can override this value by setting it in a
  2464. configuration file such as the ``local.conf``.
  2465. :term:`GDB`
  2466. The minimal command and arguments to run the GNU Debugger.
  2467. :term:`GIR_EXTRA_LIBS_PATH`
  2468. Allows to specify an extra search path for ``.so`` files
  2469. in GLib related recipes using GObject introspection,
  2470. and which do not compile without this setting.
  2471. See the ":ref:`dev-manual/gobject-introspection:enabling gobject introspection support`"
  2472. section for details.
  2473. :term:`GITDIR`
  2474. The directory in which a local copy of a Git repository is stored
  2475. when it is cloned.
  2476. :term:`GITHUB_BASE_URI`
  2477. When inheriting the :ref:`ref-classes-github-releases`
  2478. class, specifies the base URL for fetching releases for the github
  2479. project you wish to fetch sources from. The default value is as follows::
  2480. GITHUB_BASE_URI ?= "https://github.com/${BPN}/${BPN}/releases/"
  2481. :term:`GLIBC_GENERATE_LOCALES`
  2482. Specifies the list of GLIBC locales to generate should you not wish
  2483. to generate all LIBC locals, which can be time consuming.
  2484. .. note::
  2485. If you specifically remove the locale ``en_US.UTF-8``, you must set
  2486. :term:`IMAGE_LINGUAS` appropriately.
  2487. You can set :term:`GLIBC_GENERATE_LOCALES` in your ``local.conf`` file.
  2488. By default, all locales are generated::
  2489. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  2490. :term:`GO_IMPORT`
  2491. When inheriting the :ref:`ref-classes-go` class, this mandatory variable
  2492. sets the import path for the Go package that will be created for the code
  2493. to build. If you have a ``go.mod`` file in the source directory, this
  2494. typically matches the path in the ``module`` line in this file.
  2495. Other Go programs importing this package will use this path.
  2496. Here is an example setting from the
  2497. :yocto_git:`go-helloworld_0.1.bb </poky/tree/meta/recipes-extended/go-examples/go-helloworld_0.1.bb>`
  2498. recipe::
  2499. GO_IMPORT = "golang.org/x/example"
  2500. :term:`GO_INSTALL`
  2501. When inheriting the :ref:`ref-classes-go` class, this optional variable
  2502. specifies which packages in the sources should be compiled and
  2503. installed in the Go build space by the
  2504. `go install <https://go.dev/ref/mod#go-install>`__ command.
  2505. Here is an example setting from the
  2506. :oe_git:`crucible </meta-openembedded/tree/meta-oe/recipes-support/crucible/>`
  2507. recipe::
  2508. GO_INSTALL = "\
  2509. ${GO_IMPORT}/cmd/crucible \
  2510. ${GO_IMPORT}/cmd/habtool \
  2511. "
  2512. By default, :term:`GO_INSTALL` is defined as::
  2513. GO_INSTALL ?= "${GO_IMPORT}/..."
  2514. The ``...`` wildcard means that it will catch all
  2515. packages found in the sources.
  2516. See the :term:`GO_INSTALL_FILTEROUT` variable for
  2517. filtering out unwanted packages from the ones
  2518. found from the :term:`GO_INSTALL` value.
  2519. :term:`GO_INSTALL_FILTEROUT`
  2520. When using the Go "vendor" mechanism to bring in dependencies for a Go
  2521. package, the default :term:`GO_INSTALL` setting, which uses the ``...``
  2522. wildcard, will include the vendored packages in the build, which produces
  2523. incorrect results.
  2524. There are also some Go packages that are structured poorly, so that the
  2525. ``...`` wildcard results in building example or test code that should not
  2526. be included in the build, or could fail to build.
  2527. This optional variable allows for filtering out a subset of the sources.
  2528. It defaults to excluding everything under the ``vendor`` subdirectory
  2529. under package's main directory. This is the normal location for vendored
  2530. packages, but it can be overridden by a recipe to filter out other
  2531. subdirectories if needed.
  2532. :term:`GO_WORKDIR`
  2533. When using Go Modules, the current working directory must be the directory
  2534. containing the ``go.mod`` file, or one of its subdirectories. When the
  2535. ``go`` tool is used, it will automatically look for the ``go.mod`` file
  2536. in the Go working directory or in any parent directory, but not in
  2537. subdirectories.
  2538. When using the :ref:`ref-classes-go-mod` class to use Go modules,
  2539. the optional :term:`GO_WORKDIR` variable, defaulting to the value
  2540. of :term:`GO_IMPORT`, allows to specify a different Go working directory.
  2541. :term:`GROUPADD_PARAM`
  2542. When inheriting the :ref:`ref-classes-useradd` class,
  2543. this variable specifies for a package what parameters should be
  2544. passed to the ``groupadd`` command if you wish to add a group to the
  2545. system when the package is installed.
  2546. Here is an example from the ``dbus`` recipe::
  2547. GROUPADD_PARAM:${PN} = "-r netdev"
  2548. More than one group can be added by separating each set of different
  2549. groups' parameters with a semicolon.
  2550. Here is an example adding multiple groups from the ``useradd-example.bb``
  2551. file in the ``meta-skeleton`` layer::
  2552. GROUPADD_PARAM:${PN} = "-g 880 group1; -g 890 group2"
  2553. For information on the standard Linux shell command
  2554. ``groupadd``, see https://linux.die.net/man/8/groupadd.
  2555. :term:`GROUPMEMS_PARAM`
  2556. When inheriting the :ref:`ref-classes-useradd` class,
  2557. this variable specifies for a package what parameters should be
  2558. passed to the ``groupmems`` command if you wish to modify the members
  2559. of a group when the package is installed.
  2560. For information on the standard Linux shell command ``groupmems``,
  2561. see https://linux.die.net/man/8/groupmems.
  2562. :term:`GRUB_GFXSERIAL`
  2563. Configures the GNU GRand Unified Bootloader (GRUB) to have graphics
  2564. and serial in the boot menu. Set this variable to "1" in your
  2565. ``local.conf`` or distribution configuration file to enable graphics
  2566. and serial in the menu.
  2567. See the :ref:`ref-classes-grub-efi` class for more
  2568. information on how this variable is used.
  2569. :term:`GRUB_OPTS`
  2570. Additional options to add to the GNU GRand Unified Bootloader (GRUB)
  2571. configuration. Use a semi-colon character (``;``) to separate
  2572. multiple options.
  2573. The :term:`GRUB_OPTS` variable is optional. See the
  2574. :ref:`ref-classes-grub-efi` class for more information
  2575. on how this variable is used.
  2576. :term:`GRUB_TIMEOUT`
  2577. Specifies the timeout before executing the default ``LABEL`` in the
  2578. GNU GRand Unified Bootloader (GRUB).
  2579. The :term:`GRUB_TIMEOUT` variable is optional. See the
  2580. :ref:`ref-classes-grub-efi` class for more information
  2581. on how this variable is used.
  2582. :term:`GTKIMMODULES_PACKAGES`
  2583. When inheriting the :ref:`ref-classes-gtk-immodules-cache` class,
  2584. this variable specifies the packages that contain the GTK+ input
  2585. method modules being installed when the modules are in packages other
  2586. than the main package.
  2587. :term:`HGDIR`
  2588. See :term:`bitbake:HGDIR` in the BitBake manual.
  2589. :term:`HOMEPAGE`
  2590. Website where more information about the software the recipe is
  2591. building can be found.
  2592. :term:`HOST_ARCH`
  2593. The name of the target architecture, which is normally the same as
  2594. :term:`TARGET_ARCH`. The OpenEmbedded build system
  2595. supports many architectures. Here is an example list of architectures
  2596. supported. This list is by no means complete as the architecture is
  2597. configurable:
  2598. - arm
  2599. - i586
  2600. - x86_64
  2601. - powerpc
  2602. - powerpc64
  2603. - mips
  2604. - mipsel
  2605. :term:`HOST_CC_ARCH`
  2606. Specifies architecture-specific compiler flags that are passed to the
  2607. C compiler.
  2608. Default initialization for :term:`HOST_CC_ARCH` varies depending on what
  2609. is being built:
  2610. - :term:`TARGET_CC_ARCH` when building for the
  2611. target
  2612. - :term:`BUILD_CC_ARCH` when building for the build host (i.e.
  2613. ``-native``)
  2614. - ``BUILDSDK_CC_ARCH`` when building for an SDK (i.e.
  2615. ``nativesdk-``)
  2616. :term:`HOST_OS`
  2617. Specifies the name of the target operating system, which is normally
  2618. the same as the :term:`TARGET_OS`. The variable can
  2619. be set to "linux" for ``glibc``-based systems and to "linux-musl" for
  2620. ``musl``. For ARM/EABI targets, there are also "linux-gnueabi" and
  2621. "linux-musleabi" values possible.
  2622. :term:`HOST_PREFIX`
  2623. Specifies the prefix for the cross-compile toolchain. :term:`HOST_PREFIX`
  2624. is normally the same as :term:`TARGET_PREFIX`.
  2625. :term:`HOST_SYS`
  2626. Specifies the system, including the architecture and the operating
  2627. system, for which the build is occurring in the context of the
  2628. current recipe.
  2629. The OpenEmbedded build system automatically sets this variable based
  2630. on :term:`HOST_ARCH`,
  2631. :term:`HOST_VENDOR`, and
  2632. :term:`HOST_OS` variables.
  2633. .. note::
  2634. You do not need to set the variable yourself.
  2635. Consider these two examples:
  2636. - Given a native recipe on a 32-bit x86 machine running Linux, the
  2637. value is "i686-linux".
  2638. - Given a recipe being built for a little-endian MIPS target running
  2639. Linux, the value might be "mipsel-linux".
  2640. :term:`HOST_VENDOR`
  2641. Specifies the name of the vendor. :term:`HOST_VENDOR` is normally the
  2642. same as :term:`TARGET_VENDOR`.
  2643. :term:`HOSTTOOLS`
  2644. A space-separated list (filter) of tools on the build host that
  2645. should be allowed to be called from within build tasks. Using this
  2646. filter helps reduce the possibility of host contamination. If a tool
  2647. specified in the value of :term:`HOSTTOOLS` is not found on the build
  2648. host, the OpenEmbedded build system produces an error and the build
  2649. is not started.
  2650. For additional information, see
  2651. :term:`HOSTTOOLS_NONFATAL`.
  2652. :term:`HOSTTOOLS_NONFATAL`
  2653. A space-separated list (filter) of tools on the build host that
  2654. should be allowed to be called from within build tasks. Using this
  2655. filter helps reduce the possibility of host contamination. Unlike
  2656. :term:`HOSTTOOLS`, the OpenEmbedded build system
  2657. does not produce an error if a tool specified in the value of
  2658. :term:`HOSTTOOLS_NONFATAL` is not found on the build host. Thus, you can
  2659. use :term:`HOSTTOOLS_NONFATAL` to filter optional host tools.
  2660. :term:`ICECC_CLASS_DISABLE`
  2661. Identifies user classes that you do not want the Icecream distributed
  2662. compile support to consider. This variable is used by the
  2663. :ref:`ref-classes-icecc` class. You set this variable in
  2664. your ``local.conf`` file.
  2665. When you list classes using this variable, the recipes inheriting
  2666. those classes will not benefit from distributed compilation across
  2667. remote hosts. Instead they will be built locally.
  2668. :term:`ICECC_DISABLED`
  2669. Disables or enables the ``icecc`` (Icecream) function. For more
  2670. information on this function and best practices for using this
  2671. variable, see the ":ref:`ref-classes-icecc`"
  2672. section.
  2673. Setting this variable to "1" in your ``local.conf`` disables the
  2674. function::
  2675. ICECC_DISABLED ??= "1"
  2676. To enable the function, set the variable as follows::
  2677. ICECC_DISABLED = ""
  2678. :term:`ICECC_ENV_EXEC`
  2679. Points to the ``icecc-create-env`` script that you provide. This
  2680. variable is used by the :ref:`ref-classes-icecc` class. You
  2681. set this variable in your ``local.conf`` file.
  2682. If you do not point to a script that you provide, the OpenEmbedded
  2683. build system uses the default script provided by the
  2684. :oe_git:`icecc-create-env_0.1.bb
  2685. </openembedded-core/tree/meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb>`
  2686. recipe, which is a modified version and not the one that comes with
  2687. ``icecream``.
  2688. :term:`ICECC_PARALLEL_MAKE`
  2689. Extra options passed to the ``make`` command during the
  2690. :ref:`ref-tasks-compile` task that specify parallel
  2691. compilation. This variable usually takes the form of "-j x", where x
  2692. represents the maximum number of parallel threads ``make`` can run.
  2693. .. note::
  2694. The options passed affect builds on all enabled machines on the
  2695. network, which are machines running the ``iceccd`` daemon.
  2696. If your enabled machines support multiple cores, coming up with the
  2697. maximum number of parallel threads that gives you the best
  2698. performance could take some experimentation since machine speed,
  2699. network lag, available memory, and existing machine loads can all
  2700. affect build time. Consequently, unlike the
  2701. :term:`PARALLEL_MAKE` variable, there is no
  2702. rule-of-thumb for setting :term:`ICECC_PARALLEL_MAKE` to achieve optimal
  2703. performance.
  2704. If you do not set :term:`ICECC_PARALLEL_MAKE`, the build system does not
  2705. use it (i.e. the system does not detect and assign the number of
  2706. cores as is done with :term:`PARALLEL_MAKE`).
  2707. :term:`ICECC_PATH`
  2708. The location of the ``icecc`` binary. You can set this variable in
  2709. your ``local.conf`` file. If your ``local.conf`` file does not define
  2710. this variable, the :ref:`ref-classes-icecc` class attempts
  2711. to define it by locating ``icecc`` using ``which``.
  2712. :term:`ICECC_RECIPE_DISABLE`
  2713. Identifies user recipes that you do not want the Icecream distributed
  2714. compile support to consider. This variable is used by the
  2715. :ref:`ref-classes-icecc` class. You set this variable in
  2716. your ``local.conf`` file.
  2717. When you list recipes using this variable, you are excluding them
  2718. from distributed compilation across remote hosts. Instead they will
  2719. be built locally.
  2720. :term:`ICECC_RECIPE_ENABLE`
  2721. Identifies user recipes that use an empty
  2722. :term:`PARALLEL_MAKE` variable that you want to
  2723. force remote distributed compilation on using the Icecream
  2724. distributed compile support. This variable is used by the
  2725. :ref:`ref-classes-icecc` class. You set this variable in
  2726. your ``local.conf`` file.
  2727. :term:`IMAGE_BASENAME`
  2728. The base name of image output files. This variable defaults to the
  2729. recipe name (``${``\ :term:`PN`\ ``}``).
  2730. :term:`IMAGE_BOOT_FILES`
  2731. A space-separated list of files installed into the boot partition
  2732. when preparing an image using the Wic tool with the
  2733. ``bootimg-partition`` source plugin. By default,
  2734. the files are
  2735. installed under the same name as the source files. To change the
  2736. installed name, separate it from the original name with a semi-colon
  2737. (;). Source files need to be located in
  2738. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2739. examples::
  2740. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  2741. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  2742. Alternatively, source files can be picked up using a glob pattern. In
  2743. this case, the destination file must have the same name as the base
  2744. name of the source file path. To install files into a directory
  2745. within the target location, pass its name after a semi-colon (;).
  2746. Here are two examples::
  2747. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  2748. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  2749. The first example
  2750. installs all files from ``${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles``
  2751. into the root of the target partition. The second example installs
  2752. the same files into a ``boot`` directory within the target partition.
  2753. You can find information on how to use the Wic tool in the
  2754. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2755. section of the Yocto Project Development Tasks Manual. Reference
  2756. material for Wic is located in the
  2757. ":doc:`/ref-manual/kickstart`" chapter.
  2758. :term:`IMAGE_BUILDINFO_FILE`
  2759. When using the :ref:`ref-classes-image-buildinfo` class,
  2760. specifies the file in the image to write the build information into. The
  2761. default value is "``${sysconfdir}/buildinfo``".
  2762. :term:`IMAGE_BUILDINFO_VARS`
  2763. When using the :ref:`ref-classes-image-buildinfo` class,
  2764. specifies the list of variables to include in the `Build Configuration`
  2765. section of the output file (as a space-separated list). Defaults to
  2766. ":term:`DISTRO` :term:`DISTRO_VERSION`".
  2767. :term:`IMAGE_CLASSES`
  2768. A list of classes that all images should inherit. This is typically used
  2769. to enable functionality across all image recipes.
  2770. Classes specified in :term:`IMAGE_CLASSES` must be located in the
  2771. ``classes-recipe/`` or ``classes/`` subdirectories.
  2772. :term:`IMAGE_CMD`
  2773. Specifies the command to create the image file for a specific image
  2774. type, which corresponds to the value set in
  2775. :term:`IMAGE_FSTYPES`, (e.g. ``ext3``,
  2776. ``btrfs``, and so forth). When setting this variable, you should use
  2777. an override for the associated type. Here is an example::
  2778. IMAGE_CMD:jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
  2779. --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 \
  2780. ${EXTRA_IMAGECMD}"
  2781. You typically do not need to set this variable unless you are adding
  2782. support for a new image type. For more examples on how to set this
  2783. variable, see the :ref:`ref-classes-image_types`
  2784. class file, which is ``meta/classes-recipe/image_types.bbclass``.
  2785. :term:`IMAGE_DEVICE_TABLES`
  2786. Specifies one or more files that contain custom device tables that
  2787. are passed to the ``makedevs`` command as part of creating an image.
  2788. These files list basic device nodes that should be created under
  2789. ``/dev`` within the image. If :term:`IMAGE_DEVICE_TABLES` is not set,
  2790. ``files/device_table-minimal.txt`` is used, which is located by
  2791. :term:`BBPATH`. For details on how you should write
  2792. device table files, see ``meta/files/device_table-minimal.txt`` as an
  2793. example.
  2794. :term:`IMAGE_EFI_BOOT_FILES`
  2795. A space-separated list of files installed into the boot partition
  2796. when preparing an image using the Wic tool with the
  2797. ``bootimg-efi`` source plugin. By default,
  2798. the files are
  2799. installed under the same name as the source files. To change the
  2800. installed name, separate it from the original name with a semi-colon
  2801. (;). Source files need to be located in
  2802. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2803. examples::
  2804. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE};bz2"
  2805. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE} microcode.cpio"
  2806. Alternatively, source files can be picked up using a glob pattern. In
  2807. this case, the destination file must have the same name as the base
  2808. name of the source file path. To install files into a directory
  2809. within the target location, pass its name after a semi-colon (;).
  2810. Here are two examples::
  2811. IMAGE_EFI_BOOT_FILES = "boot/loader/*"
  2812. IMAGE_EFI_BOOT_FILES = "boot/loader/*;boot/"
  2813. The first example
  2814. installs all files from ``${DEPLOY_DIR_IMAGE}/boot/loader/``
  2815. into the root of the target partition. The second example installs
  2816. the same files into a ``boot`` directory within the target partition.
  2817. You can find information on how to use the Wic tool in the
  2818. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2819. section of the Yocto Project Development Tasks Manual. Reference
  2820. material for Wic is located in the
  2821. ":doc:`/ref-manual/kickstart`" chapter.
  2822. :term:`IMAGE_FEATURES`
  2823. The primary list of features to include in an image. Typically, you
  2824. configure this variable in an image recipe. Although you can use this
  2825. variable from your ``local.conf`` file, which is found in the
  2826. :term:`Build Directory`, best practices dictate that you do
  2827. not.
  2828. .. note::
  2829. To enable extra features from outside the image recipe, use the
  2830. :term:`EXTRA_IMAGE_FEATURES` variable.
  2831. For a list of image features that ships with the Yocto Project, see
  2832. the ":ref:`ref-features-image`" section.
  2833. For an example that shows how to customize your image by using this
  2834. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2835. section in the Yocto Project Development Tasks Manual.
  2836. :term:`IMAGE_FSTYPES`
  2837. Specifies the formats the OpenEmbedded build system uses during the
  2838. build when creating the root filesystem. For example, setting
  2839. :term:`IMAGE_FSTYPES` as follows causes the build system to create root
  2840. filesystems using two formats: ``.ext3`` and ``.tar.bz2``::
  2841. IMAGE_FSTYPES = "ext3 tar.bz2"
  2842. For the complete list of supported image formats from which you can
  2843. choose, see :term:`IMAGE_TYPES`.
  2844. .. note::
  2845. - If an image recipe uses the "inherit image" line and you are
  2846. setting :term:`IMAGE_FSTYPES` inside the recipe, you must set
  2847. :term:`IMAGE_FSTYPES` prior to using the "inherit image" line.
  2848. - Due to the way the OpenEmbedded build system processes this
  2849. variable, you cannot update its contents by using ``:append``
  2850. or ``:prepend``. You must use the ``+=`` operator to add one or
  2851. more options to the :term:`IMAGE_FSTYPES` variable.
  2852. :term:`IMAGE_INSTALL`
  2853. Used by recipes to specify the packages to install into an image
  2854. through the :ref:`ref-classes-image` class. Use the
  2855. :term:`IMAGE_INSTALL` variable with care to avoid ordering issues.
  2856. Image recipes set :term:`IMAGE_INSTALL` to specify the packages to
  2857. install into an image through :ref:`ref-classes-image`. Additionally,
  2858. there are "helper" classes such as the :ref:`ref-classes-core-image`
  2859. class which can take lists used with :term:`IMAGE_FEATURES` and turn
  2860. them into auto-generated entries in :term:`IMAGE_INSTALL` in addition
  2861. to its default contents.
  2862. When you use this variable, it is best to use it as follows::
  2863. IMAGE_INSTALL:append = " package-name"
  2864. Be sure to include the space
  2865. between the quotation character and the start of the package name or
  2866. names.
  2867. .. note::
  2868. - When working with a
  2869. :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  2870. image, do not use the :term:`IMAGE_INSTALL` variable to specify
  2871. packages for installation. Instead, use the
  2872. :term:`PACKAGE_INSTALL` variable, which
  2873. allows the initial RAM filesystem (:term:`Initramfs`) recipe to use a
  2874. fixed set of packages and not be affected by :term:`IMAGE_INSTALL`.
  2875. For information on creating an :term:`Initramfs`, see the
  2876. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`"
  2877. section in the Yocto Project Development Tasks Manual.
  2878. - Using :term:`IMAGE_INSTALL` with the
  2879. :ref:`+= <bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>`
  2880. BitBake operator within the ``/conf/local.conf`` file or from
  2881. within an image recipe is not recommended. Use of this operator in
  2882. these ways can cause ordering issues. Since
  2883. :ref:`ref-classes-core-image` sets :term:`IMAGE_INSTALL` to a
  2884. default value using the
  2885. :ref:`?= <bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>`
  2886. operator, using a ``+=`` operation against :term:`IMAGE_INSTALL`
  2887. results in unexpected behavior when used within
  2888. ``conf/local.conf``. Furthermore, the same operation from within an
  2889. image recipe may or may not succeed depending on the specific
  2890. situation. In both these cases, the behavior is contrary to how
  2891. most users expect the ``+=`` operator to work.
  2892. :term:`IMAGE_LINGUAS`
  2893. Specifies the list of locales to install into the image during the
  2894. root filesystem construction process. The OpenEmbedded build system
  2895. automatically splits locale files, which are used for localization,
  2896. into separate packages. Setting the :term:`IMAGE_LINGUAS` variable
  2897. ensures that any locale packages that correspond to packages already
  2898. selected for installation into the image are also installed. Here is
  2899. an example::
  2900. IMAGE_LINGUAS = "pt-br de-de"
  2901. In this example, the build system ensures any Brazilian Portuguese
  2902. and German locale files that correspond to packages in the image are
  2903. installed (i.e. ``*-locale-pt-br`` and ``*-locale-de-de`` as well as
  2904. ``*-locale-pt`` and ``*-locale-de``, since some software packages
  2905. only provide locale files by language and not by country-specific
  2906. language).
  2907. See the :term:`GLIBC_GENERATE_LOCALES`
  2908. variable for information on generating GLIBC locales.
  2909. :term:`IMAGE_LINK_NAME`
  2910. The name of the output image symlink (which does not include
  2911. the version part as :term:`IMAGE_NAME` does). The default value
  2912. is derived using the :term:`IMAGE_BASENAME` and
  2913. :term:`IMAGE_MACHINE_SUFFIX` variables::
  2914. IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}"
  2915. .. note::
  2916. It is possible to set this to "" to disable symlink creation,
  2917. however, you also need to set :term:`IMAGE_NAME` to still have
  2918. a reasonable value e.g.::
  2919. IMAGE_LINK_NAME = ""
  2920. IMAGE_NAME = "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  2921. :term:`IMAGE_MACHINE_SUFFIX`
  2922. Specifies the by default machine-specific suffix for image file names
  2923. (before the extension). The default value is set as follows::
  2924. IMAGE_MACHINE_SUFFIX ??= "-${MACHINE}"
  2925. The default :term:`DEPLOY_DIR_IMAGE` already has a :term:`MACHINE`
  2926. subdirectory, so you may find it unnecessary to also include this suffix
  2927. in the name of every image file. If you prefer to remove the suffix you
  2928. can set this variable to an empty string::
  2929. IMAGE_MACHINE_SUFFIX = ""
  2930. (Not to be confused with :term:`IMAGE_NAME_SUFFIX`.)
  2931. :term:`IMAGE_MANIFEST`
  2932. The manifest file for the image. This file lists all the installed
  2933. packages that make up the image. The file contains package
  2934. information on a line-per-package basis as follows::
  2935. packagename packagearch version
  2936. The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class defines the manifest
  2937. file as follows::
  2938. IMAGE_MANIFEST ="${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
  2939. The location is
  2940. derived using the :term:`IMGDEPLOYDIR`
  2941. and :term:`IMAGE_NAME` variables. You can find
  2942. information on how the image is created in the ":ref:`overview-manual/concepts:image generation`"
  2943. section in the Yocto Project Overview and Concepts Manual.
  2944. :term:`IMAGE_NAME`
  2945. The name of the output image files minus the extension. By default
  2946. this variable is set using the :term:`IMAGE_LINK_NAME`, and
  2947. :term:`IMAGE_VERSION_SUFFIX` variables::
  2948. IMAGE_NAME ?= "${IMAGE_LINK_NAME}${IMAGE_VERSION_SUFFIX}"
  2949. :term:`IMAGE_NAME_SUFFIX`
  2950. Suffix used for the image output filename --- defaults to ``".rootfs"``
  2951. to distinguish the image file from other files created during image
  2952. building; however if this suffix is redundant or not desired you can
  2953. clear the value of this variable (set the value to ""). For example,
  2954. this is typically cleared in :term:`Initramfs` image recipes.
  2955. :term:`IMAGE_OUTPUT_MANIFEST`
  2956. When inheriting the :ref:`ref-classes-image` class directly or through the
  2957. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST`
  2958. points to a manifest ``json`` file that lists what images were created by
  2959. various image creation tasks (as defined by the :term:`IMAGE_FSTYPES`
  2960. variable). It is set in the :ref:`ref-classes-image` class as follows::
  2961. IMAGE_OUTPUT_MANIFEST = "${IMAGE_OUTPUT_MANIFEST_DIR}/manifest.json"
  2962. :term:`IMAGE_OUTPUT_MANIFEST_DIR`
  2963. When inheriting the :ref:`ref-classes-image` class directly or through the
  2964. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST_DIR` points to
  2965. a directory that stores a manifest ``json`` file that lists what
  2966. images were created by various image creation tasks (as defined by the
  2967. :term:`IMAGE_FSTYPES` variable). It is set in the :ref:`ref-classes-image`
  2968. class as follows::
  2969. IMAGE_OUTPUT_MANIFEST_DIR = "${WORKDIR}/deploy-image-output-manifest"
  2970. :term:`IMAGE_OVERHEAD_FACTOR`
  2971. Defines a multiplier that the build system applies to the initial
  2972. image size for cases when the multiplier times the returned disk
  2973. usage value for the image is greater than the sum of
  2974. :term:`IMAGE_ROOTFS_SIZE` and :term:`IMAGE_ROOTFS_EXTRA_SPACE`. The result of
  2975. the multiplier applied to the initial image size creates free disk
  2976. space in the image as overhead. By default, the build process uses a
  2977. multiplier of 1.3 for this variable. This default value results in
  2978. 30% free disk space added to the image when this method is used to
  2979. determine the final generated image size. You should be aware that
  2980. post install scripts and the package management system uses disk
  2981. space inside this overhead area. Consequently, the multiplier does
  2982. not produce an image with all the theoretical free disk space. See
  2983. :term:`IMAGE_ROOTFS_SIZE` for information on how the build system
  2984. determines the overall image size.
  2985. The default 30% free disk space typically gives the image enough room
  2986. to boot and allows for basic post installs while still leaving a
  2987. small amount of free disk space. If 30% free space is inadequate, you
  2988. can increase the default value. For example, the following setting
  2989. gives you 50% free space added to the image::
  2990. IMAGE_OVERHEAD_FACTOR = "1.5"
  2991. Alternatively, you can ensure a specific amount of free disk space is
  2992. added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2993. variable.
  2994. :term:`IMAGE_PKGTYPE`
  2995. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the
  2996. OpenEmbedded build system. The variable is defined appropriately by
  2997. the :ref:`ref-classes-package_deb`, :ref:`ref-classes-package_rpm`,
  2998. or :ref:`ref-classes-package_ipk` class.
  2999. The :ref:`ref-classes-populate-sdk-*` and :ref:`ref-classes-image`
  3000. classes use the :term:`IMAGE_PKGTYPE` for packaging up images and SDKs.
  3001. You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the
  3002. variable is set indirectly through the appropriate
  3003. :ref:`package_* <ref-classes-package>` class using the
  3004. :term:`PACKAGE_CLASSES` variable. The
  3005. OpenEmbedded build system uses the first package type (e.g. DEB, RPM,
  3006. or IPK) that appears with the variable
  3007. .. note::
  3008. Files using the ``.tar`` format are never used as a substitute
  3009. packaging format for DEB, RPM, and IPK formatted files for your image
  3010. or SDK.
  3011. :term:`IMAGE_POSTPROCESS_COMMAND`
  3012. Specifies a list of functions to call once the OpenEmbedded build
  3013. system creates the final image output files. You can specify
  3014. functions separated by spaces::
  3015. IMAGE_POSTPROCESS_COMMAND += "function"
  3016. If you need to pass the root filesystem path to a command within the
  3017. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3018. directory that becomes the root filesystem image. See the
  3019. :term:`IMAGE_ROOTFS` variable for more
  3020. information.
  3021. :term:`IMAGE_PREPROCESS_COMMAND`
  3022. Specifies a list of functions to call before the OpenEmbedded build
  3023. system creates the final image output files. You can specify
  3024. functions separated by spaces::
  3025. IMAGE_PREPROCESS_COMMAND += "function"
  3026. If you need to pass the root filesystem path to a command within the
  3027. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3028. directory that becomes the root filesystem image. See the
  3029. :term:`IMAGE_ROOTFS` variable for more
  3030. information.
  3031. :term:`IMAGE_ROOTFS`
  3032. The location of the root filesystem while it is under construction
  3033. (i.e. during the :ref:`ref-tasks-rootfs` task). This
  3034. variable is not configurable. Do not change it.
  3035. :term:`IMAGE_ROOTFS_ALIGNMENT`
  3036. Specifies the alignment for the output image file in Kbytes. If the
  3037. size of the image is not a multiple of this value, then the size is
  3038. rounded up to the nearest multiple of the value. The default value is
  3039. "1". See :term:`IMAGE_ROOTFS_SIZE` for
  3040. additional information.
  3041. :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3042. Defines additional free disk space created in the image in Kbytes. By
  3043. default, this variable is set to "0". This free disk space is added
  3044. to the image after the build system determines the image size as
  3045. described in :term:`IMAGE_ROOTFS_SIZE`.
  3046. This variable is particularly useful when you want to ensure that a
  3047. specific amount of free disk space is available on a device after an
  3048. image is installed and running. For example, to be sure 5 Gbytes of
  3049. free disk space is available, set the variable as follows::
  3050. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  3051. For example, the Yocto Project Build Appliance specifically requests
  3052. 40 Gbytes of extra space with the line::
  3053. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  3054. :term:`IMAGE_ROOTFS_SIZE`
  3055. Defines the size in Kbytes for the generated image. The OpenEmbedded
  3056. build system determines the final size for the generated image using
  3057. an algorithm that takes into account the initial disk space used for
  3058. the generated image, a requested size for the image, and requested
  3059. additional free disk space to be added to the image. Programatically,
  3060. the build system determines the final size of the generated image as
  3061. follows::
  3062. if (image-du * overhead) < rootfs-size:
  3063. internal-rootfs-size = rootfs-size + xspace
  3064. else:
  3065. internal-rootfs-size = (image-du * overhead) + xspace
  3066. where:
  3067. image-du = Returned value of the du command on the image.
  3068. overhead = IMAGE_OVERHEAD_FACTOR
  3069. rootfs-size = IMAGE_ROOTFS_SIZE
  3070. internal-rootfs-size = Initial root filesystem size before any modifications.
  3071. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  3072. See the :term:`IMAGE_OVERHEAD_FACTOR`
  3073. and :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3074. variables for related information.
  3075. :term:`IMAGE_TYPEDEP`
  3076. Specifies a dependency from one image type on another. Here is an
  3077. example from the :ref:`ref-classes-image-live` class::
  3078. IMAGE_TYPEDEP:live = "ext3"
  3079. In the previous example, the variable ensures that when "live" is
  3080. listed with the :term:`IMAGE_FSTYPES` variable,
  3081. the OpenEmbedded build system produces an ``ext3`` image first since
  3082. one of the components of the live image is an ``ext3`` formatted
  3083. partition containing the root filesystem.
  3084. :term:`IMAGE_TYPES`
  3085. Specifies the complete list of supported image types by default:
  3086. - btrfs
  3087. - container
  3088. - cpio
  3089. - cpio.gz
  3090. - cpio.lz4
  3091. - cpio.lzma
  3092. - cpio.xz
  3093. - cramfs
  3094. - erofs
  3095. - erofs-lz4
  3096. - erofs-lz4hc
  3097. - ext2
  3098. - ext2.bz2
  3099. - ext2.gz
  3100. - ext2.lzma
  3101. - ext3
  3102. - ext3.gz
  3103. - ext4
  3104. - ext4.gz
  3105. - f2fs
  3106. - hddimg
  3107. - iso
  3108. - jffs2
  3109. - jffs2.sum
  3110. - multiubi
  3111. - squashfs
  3112. - squashfs-lz4
  3113. - squashfs-lzo
  3114. - squashfs-xz
  3115. - tar
  3116. - tar.bz2
  3117. - tar.gz
  3118. - tar.lz4
  3119. - tar.xz
  3120. - tar.zst
  3121. - ubi
  3122. - ubifs
  3123. - wic
  3124. - wic.bz2
  3125. - wic.gz
  3126. - wic.lzma
  3127. - wic.zst
  3128. For more information about these types of images, see
  3129. ``meta/classes-recipe/image_types*.bbclass`` in the :term:`Source Directory`.
  3130. :term:`IMAGE_VERSION_SUFFIX`
  3131. Version suffix that is part of the default :term:`IMAGE_NAME` and
  3132. :term:`KERNEL_ARTIFACT_NAME` values.
  3133. Defaults to ``"-${DATETIME}"``, however you could set this to a
  3134. version string that comes from your external build environment if
  3135. desired, and this suffix would then be used consistently across
  3136. the build artifacts.
  3137. :term:`IMGDEPLOYDIR`
  3138. When inheriting the :ref:`ref-classes-image` class directly or
  3139. through the :ref:`ref-classes-core-image` class, the
  3140. :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files
  3141. that is set in the ``image`` class as follows::
  3142. IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete"
  3143. Recipes inheriting the :ref:`ref-classes-image` class should copy
  3144. files to be deployed into :term:`IMGDEPLOYDIR`, and the class will take
  3145. care of copying them into :term:`DEPLOY_DIR_IMAGE` afterwards.
  3146. :term:`IMGMANIFESTDIR`
  3147. When inheriting the :ref:`ref-classes-image` class directly or through the
  3148. :ref:`ref-classes-core-image` class, the :term:`IMGMANIFESTDIR` setting
  3149. points to a temporary area that stores manifest ``json`` files, that list
  3150. what images were created by various images creation tasks (as defined by
  3151. the :term:`IMAGE_FSTYPES` variable). It is set in the
  3152. :ref:`ref-classes-image` class as follows::
  3153. IMGMANIFESTDIR = "${WORKDIR}/image-task-manifest"
  3154. :term:`INCOMPATIBLE_LICENSE`
  3155. Specifies a space-separated list of license names (as they would
  3156. appear in :term:`LICENSE`) that should be excluded
  3157. from the build (if set globally), or from an image (if set locally
  3158. in an image recipe).
  3159. When the variable is set globally, recipes that provide no alternatives to listed
  3160. incompatible licenses are not built. Packages that are individually
  3161. licensed with the specified incompatible licenses will be deleted.
  3162. Most of the time this does not allow a feasible build (because it becomes impossible
  3163. to satisfy build time dependencies), so the recommended way to
  3164. implement license restrictions is to set the variable in specific
  3165. image recipes where the restrictions must apply. That way there
  3166. are no build time restrictions, but the license check is still
  3167. performed when the image's filesystem is assembled from packages.
  3168. There is some support for wildcards in this variable's value,
  3169. however it is restricted to specific licenses. Currently only
  3170. these wildcards are allowed and expand as follows:
  3171. - ``AGPL-3.0*"``: ``AGPL-3.0-only``, ``AGPL-3.0-or-later``
  3172. - ``GPL-3.0*``: ``GPL-3.0-only``, ``GPL-3.0-or-later``
  3173. - ``LGPL-3.0*``: ``LGPL-3.0-only``, ``LGPL-3.0-or-later``
  3174. .. note::
  3175. This functionality is only regularly tested using the following
  3176. setting::
  3177. INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0* AGPL-3.0*"
  3178. Although you can use other settings, you might be required to
  3179. remove dependencies on (or provide alternatives to) components that
  3180. are required to produce a functional system image.
  3181. :term:`INCOMPATIBLE_LICENSE_EXCEPTIONS`
  3182. Specifies a space-separated list of package and license pairs that
  3183. are allowed to be used even if the license is specified in
  3184. :term:`INCOMPATIBLE_LICENSE`. The package and license pairs are
  3185. separated using a colon. Example::
  3186. INCOMPATIBLE_LICENSE_EXCEPTIONS = "gdbserver:GPL-3.0-only gdbserver:LGPL-3.0-only"
  3187. :term:`INHERIT`
  3188. Causes the named class or classes to be inherited globally. Anonymous
  3189. functions in the class or classes are not executed for the base
  3190. configuration and in each individual recipe. The OpenEmbedded build
  3191. system ignores changes to :term:`INHERIT` in individual recipes.
  3192. Classes inherited using :term:`INHERIT` must be located in the
  3193. ``classes-global/`` or ``classes/`` subdirectories.
  3194. For more information on :term:`INHERIT`, see the
  3195. :ref:`bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`"
  3196. section in the BitBake User Manual.
  3197. :term:`INHERIT_DISTRO`
  3198. Lists classes that will be inherited at the distribution level. It is
  3199. unlikely that you want to edit this variable.
  3200. Classes specified in :term:`INHERIT_DISTRO` must be located in the
  3201. ``classes-global/`` or ``classes/`` subdirectories.
  3202. The default value of the variable is set as follows in the
  3203. ``meta/conf/distro/defaultsetup.conf`` file::
  3204. INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool create-spdx"
  3205. :term:`INHIBIT_DEFAULT_DEPS`
  3206. Prevents the default dependencies, namely the C compiler and standard
  3207. C library (libc), from being added to :term:`DEPENDS`.
  3208. This variable is usually used within recipes that do not require any
  3209. compilation using the C compiler.
  3210. Set the variable to "1" to prevent the default dependencies from
  3211. being added.
  3212. :term:`INHIBIT_PACKAGE_DEBUG_SPLIT`
  3213. Prevents the OpenEmbedded build system from splitting out debug
  3214. information during packaging. By default, the build system splits out
  3215. debugging information during the
  3216. :ref:`ref-tasks-package` task. For more information on
  3217. how debug information is split out, see the
  3218. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  3219. variable.
  3220. To prevent the build system from splitting out debug information
  3221. during packaging, set the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable as
  3222. follows::
  3223. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  3224. :term:`INHIBIT_PACKAGE_STRIP`
  3225. If set to "1", causes the build to not strip binaries in resulting
  3226. packages and prevents the ``-dbg`` package from containing the source
  3227. files.
  3228. By default, the OpenEmbedded build system strips binaries and puts
  3229. the debugging symbols into ``${``\ :term:`PN`\ ``}-dbg``.
  3230. Consequently, you should not set :term:`INHIBIT_PACKAGE_STRIP` when you
  3231. plan to debug in general.
  3232. :term:`INHIBIT_SYSROOT_STRIP`
  3233. If set to "1", causes the build to not strip binaries in the
  3234. resulting sysroot.
  3235. By default, the OpenEmbedded build system strips binaries in the
  3236. resulting sysroot. When you specifically set the
  3237. :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit
  3238. this stripping.
  3239. If you want to use this variable, include the :ref:`ref-classes-staging`
  3240. class. This class uses a ``sys_strip()`` function to test for the variable
  3241. and acts accordingly.
  3242. .. note::
  3243. Use of the :term:`INHIBIT_SYSROOT_STRIP` variable occurs in rare and
  3244. special circumstances. For example, suppose you are building
  3245. bare-metal firmware by using an external GCC toolchain. Furthermore,
  3246. even if the toolchain's binaries are strippable, there are other files
  3247. needed for the build that are not strippable.
  3248. :term:`INIT_MANAGER`
  3249. Specifies the system init manager to use. Available options are:
  3250. - ``sysvinit``
  3251. - ``systemd``
  3252. - ``mdev-busybox``
  3253. With ``sysvinit``, the init manager is set to
  3254. :wikipedia:`SysVinit <Init#SysV-style>`, the traditional UNIX init
  3255. system. This is the default choice in the Poky distribution, together with
  3256. the Udev device manager (see the ":ref:`device-manager`" section).
  3257. With ``systemd``, the init manager becomes :wikipedia:`systemd <Systemd>`,
  3258. which comes with the :wikipedia:`udev <Udev>` device manager.
  3259. With ``mdev-busybox``, the init manager becomes the much simpler BusyBox
  3260. init, together with the BusyBox mdev device manager. This is the simplest
  3261. and lightest solution, and probably the best choice for low-end systems
  3262. with a rather slow CPU and a limited amount of RAM.
  3263. More concretely, this is used to include
  3264. ``conf/distro/include/init-manager-${INIT_MANAGER}.inc`` into the global
  3265. configuration. You can have a look at the
  3266. :yocto_git:`meta/conf/distro/include/init-manager-*.inc </poky/tree/meta/conf/distro/include>`
  3267. files for more information, and also the ":ref:`init-manager`"
  3268. section in the Yocto Project Development Tasks Manual.
  3269. :term:`INITRAMFS_DEPLOY_DIR_IMAGE`
  3270. Indicates the deploy directory used by :ref:`ref-tasks-bundle_initramfs`
  3271. where the :term:`INITRAMFS_IMAGE` will be fetched from. This variable is
  3272. set by default to ``${DEPLOY_DIR_IMAGE}`` in the
  3273. :ref:`ref-classes-kernel` class and it's only meant to be changed when
  3274. building an :term:`Initramfs` image from a separate multiconfig via
  3275. :term:`INITRAMFS_MULTICONFIG`.
  3276. :term:`INITRAMFS_FSTYPES`
  3277. Defines the format for the output image of an initial RAM filesystem
  3278. (:term:`Initramfs`), which is used during boot. Supported formats are the
  3279. same as those supported by the
  3280. :term:`IMAGE_FSTYPES` variable.
  3281. The default value of this variable, which is set in the
  3282. ``meta/conf/bitbake.conf`` configuration file in the
  3283. :term:`Source Directory`, is "cpio.gz". The Linux kernel's
  3284. :term:`Initramfs` mechanism, as opposed to the initial RAM filesystem
  3285. :wikipedia:`initrd <Initrd>` mechanism, expects
  3286. an optionally compressed cpio archive.
  3287. :term:`INITRAMFS_IMAGE`
  3288. Specifies the :term:`PROVIDES` name of an image
  3289. recipe that is used to build an initial RAM filesystem (:term:`Initramfs`)
  3290. image. In other words, the :term:`INITRAMFS_IMAGE` variable causes an
  3291. additional recipe to be built as a dependency to whatever root
  3292. filesystem recipe you might be using (e.g. ``core-image-sato``). The
  3293. :term:`Initramfs` image recipe you provide should set
  3294. :term:`IMAGE_FSTYPES` to
  3295. :term:`INITRAMFS_FSTYPES`.
  3296. An :term:`Initramfs` image provides a temporary root filesystem used for
  3297. early system initialization (e.g. loading of modules needed to locate
  3298. and mount the "real" root filesystem).
  3299. .. note::
  3300. See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb``
  3301. recipe in the :term:`Source Directory`
  3302. for an example :term:`Initramfs` recipe. To select this sample recipe as
  3303. the one built to provide the :term:`Initramfs` image, set :term:`INITRAMFS_IMAGE`
  3304. to "core-image-minimal-initramfs".
  3305. You can also find more information by referencing the
  3306. ``meta-poky/conf/templates/default/local.conf.sample.extended``
  3307. configuration file in the Source Directory, the :ref:`ref-classes-image`
  3308. class, and the :ref:`ref-classes-kernel` class to see how to use the
  3309. :term:`INITRAMFS_IMAGE` variable.
  3310. If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no
  3311. :term:`Initramfs` image is built.
  3312. For more information, you can also see the
  3313. :term:`INITRAMFS_IMAGE_BUNDLE`
  3314. variable, which allows the generated image to be bundled inside the
  3315. kernel image. Additionally, for information on creating an :term:`Initramfs`
  3316. image, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3317. in the Yocto Project Development Tasks Manual.
  3318. :term:`INITRAMFS_IMAGE_BUNDLE`
  3319. Controls whether or not the image recipe specified by
  3320. :term:`INITRAMFS_IMAGE` is run through an
  3321. extra pass
  3322. (:ref:`ref-tasks-bundle_initramfs`) during
  3323. kernel compilation in order to build a single binary that contains
  3324. both the kernel image and the initial RAM filesystem (:term:`Initramfs`)
  3325. image. This makes use of the
  3326. :term:`CONFIG_INITRAMFS_SOURCE` kernel
  3327. feature.
  3328. .. note::
  3329. Bundling the :term:`Initramfs` with the kernel conflates the code in the
  3330. :term:`Initramfs` with the GPLv2 licensed Linux kernel binary. Thus only GPLv2
  3331. compatible software may be part of a bundled :term:`Initramfs`.
  3332. .. note::
  3333. Using an extra compilation pass to bundle the :term:`Initramfs` avoids a
  3334. circular dependency between the kernel recipe and the :term:`Initramfs`
  3335. recipe should the :term:`Initramfs` include kernel modules. Should that be
  3336. the case, the :term:`Initramfs` recipe depends on the kernel for the
  3337. kernel modules, and the kernel depends on the :term:`Initramfs` recipe
  3338. since the :term:`Initramfs` is bundled inside the kernel image.
  3339. The combined binary is deposited into the ``tmp/deploy`` directory,
  3340. which is part of the :term:`Build Directory`.
  3341. Setting the variable to "1" in a configuration file causes the
  3342. OpenEmbedded build system to generate a kernel image with the
  3343. :term:`Initramfs` specified in :term:`INITRAMFS_IMAGE` bundled within::
  3344. INITRAMFS_IMAGE_BUNDLE = "1"
  3345. By default, the :ref:`ref-classes-kernel` class sets this variable to a
  3346. null string as follows::
  3347. INITRAMFS_IMAGE_BUNDLE ?= ""
  3348. .. note::
  3349. You must set the :term:`INITRAMFS_IMAGE_BUNDLE` variable in a
  3350. configuration file. You cannot set the variable in a recipe file.
  3351. See the
  3352. :yocto_git:`local.conf.sample.extended </poky/tree/meta-poky/conf/templates/default/local.conf.sample.extended>`
  3353. file for additional information. Also, for information on creating an
  3354. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3355. in the Yocto Project Development Tasks Manual.
  3356. :term:`INITRAMFS_IMAGE_NAME`
  3357. This value needs to stay in sync with :term:`IMAGE_LINK_NAME`, but with
  3358. :term:`INITRAMFS_IMAGE` instead of :term:`IMAGE_BASENAME`. The default value
  3359. is set as follows:
  3360. INITRAMFS_IMAGE_NAME ?= "${@['${INITRAMFS_IMAGE}${IMAGE_MACHINE_SUFFIX}', ''][d.getVar('INITRAMFS_IMAGE') == '']}"
  3361. That is, if :term:`INITRAMFS_IMAGE` is set, the value of
  3362. :term:`INITRAMFS_IMAGE_NAME` will be set based upon
  3363. :term:`INITRAMFS_IMAGE` and :term:`IMAGE_MACHINE_SUFFIX`.
  3364. :term:`INITRAMFS_LINK_NAME`
  3365. The link name of the initial RAM filesystem image. This variable is
  3366. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3367. follows::
  3368. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  3369. The value of the
  3370. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3371. file, has the following value::
  3372. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3373. See the :term:`MACHINE` variable for additional
  3374. information.
  3375. :term:`INITRAMFS_MULTICONFIG`
  3376. Defines the multiconfig to create a multiconfig dependency to be used by
  3377. the :ref:`ref-classes-kernel` class.
  3378. This allows the kernel to bundle an :term:`INITRAMFS_IMAGE` coming from
  3379. a separate multiconfig, this is meant to be used in addition to :term:`INITRAMFS_DEPLOY_DIR_IMAGE`.
  3380. For more information on how to bundle an :term:`Initramfs` image from a separate
  3381. multiconfig see the ":ref:`dev-manual/building:Bundling an Initramfs Image From a Separate Multiconfig`"
  3382. section in the Yocto Project Development Tasks Manual.
  3383. :term:`INITRAMFS_NAME`
  3384. The base name of the initial RAM filesystem image. This variable is
  3385. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3386. follows::
  3387. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  3388. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3389. :term:`INITRD`
  3390. Indicates list of filesystem images to concatenate and use as an
  3391. initial RAM disk (``initrd``).
  3392. The :term:`INITRD` variable is an optional variable used with the
  3393. :ref:`ref-classes-image-live` class.
  3394. :term:`INITRD_IMAGE`
  3395. When building a "live" bootable image (i.e. when
  3396. :term:`IMAGE_FSTYPES` contains "live"),
  3397. :term:`INITRD_IMAGE` specifies the image recipe that should be built to
  3398. provide the initial RAM disk image. The default value is
  3399. "core-image-minimal-initramfs".
  3400. See the :ref:`ref-classes-image-live` class for more information.
  3401. :term:`INITSCRIPT_NAME`
  3402. The filename of the initialization script as installed to
  3403. ``${sysconfdir}/init.d``.
  3404. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3405. The variable is mandatory.
  3406. :term:`INITSCRIPT_PACKAGES`
  3407. A list of the packages that contain initscripts. If multiple packages
  3408. are specified, you need to append the package name to the other
  3409. ``INITSCRIPT_*`` as an override.
  3410. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3411. The variable is optional and defaults to the :term:`PN`
  3412. variable.
  3413. :term:`INITSCRIPT_PARAMS`
  3414. Specifies the options to pass to ``update-rc.d``. Here is an example::
  3415. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  3416. In this example, the script has a runlevel of 99, starts the script
  3417. in initlevels 2 and 5, and stops the script in levels 0, 1 and 6.
  3418. The variable's default value is "defaults", which is set in the
  3419. :ref:`ref-classes-update-rc.d` class.
  3420. The value in :term:`INITSCRIPT_PARAMS` is passed through to the
  3421. ``update-rc.d`` command. For more information on valid parameters,
  3422. please see the ``update-rc.d`` manual page at
  3423. https://manpages.debian.org/buster/init-system-helpers/update-rc.d.8.en.html
  3424. :term:`INSANE_SKIP`
  3425. Specifies the QA checks to skip for a specific package within a
  3426. recipe. For example, to skip the check for symbolic link ``.so``
  3427. files in the main package of a recipe, add the following to the
  3428. recipe. The package name override must be used, which in this example
  3429. is ``${PN}``::
  3430. INSANE_SKIP:${PN} += "dev-so"
  3431. See the ":ref:`ref-classes-insane`" section for a
  3432. list of the valid QA checks you can specify using this variable.
  3433. :term:`INSTALL_TIMEZONE_FILE`
  3434. By default, the ``tzdata`` recipe packages an ``/etc/timezone`` file.
  3435. Set the :term:`INSTALL_TIMEZONE_FILE` variable to "0" at the
  3436. configuration level to disable this behavior.
  3437. :term:`IPK_FEED_URIS`
  3438. When the IPK backend is in use and package management is enabled on
  3439. the target, you can use this variable to set up ``opkg`` in the
  3440. target image to point to package feeds on a nominated server. Once
  3441. the feed is established, you can perform installations or upgrades
  3442. using the package manager at runtime.
  3443. :term:`KARCH`
  3444. Defines the kernel architecture used when assembling the
  3445. configuration. Architectures supported for this release are:
  3446. - powerpc
  3447. - i386
  3448. - x86_64
  3449. - arm
  3450. - qemu
  3451. - mips
  3452. You define the :term:`KARCH` variable in the :ref:`kernel-dev/advanced:bsp descriptions`.
  3453. :term:`KBRANCH`
  3454. A regular expression used by the build process to explicitly identify
  3455. the kernel branch that is validated, patched, and configured during a
  3456. build. You must set this variable to ensure the exact kernel branch
  3457. you want is being used by the build process.
  3458. Values for this variable are set in the kernel's recipe file and the
  3459. kernel's append file. For example, if you are using the
  3460. ``linux-yocto_4.12`` kernel, the kernel recipe file is the
  3461. ``meta/recipes-kernel/linux/linux-yocto_4.12.bb`` file. :term:`KBRANCH`
  3462. is set as follows in that kernel recipe file::
  3463. KBRANCH ?= "standard/base"
  3464. This variable is also used from the kernel's append file to identify
  3465. the kernel branch specific to a particular machine or target
  3466. hardware. Continuing with the previous kernel example, the kernel's
  3467. append file is located in the
  3468. BSP layer for a given machine. For example, the append file for the
  3469. Beaglebone and generic versions of both 32 and 64-bit IA
  3470. machines (``meta-yocto-bsp``) is named
  3471. ``meta-yocto-bsp/recipes-kernel/linux/linux-yocto_6.1.bbappend``.
  3472. Here are the related statements from that append file::
  3473. KBRANCH:genericx86 = "v6.1/standard/base"
  3474. KBRANCH:genericx86-64 = "v6.1/standard/base"
  3475. KBRANCH:beaglebone-yocto = "v6.1/standard/beaglebone"
  3476. The :term:`KBRANCH` statements
  3477. identify the kernel branch to use when building for each supported
  3478. BSP.
  3479. :term:`KBUILD_DEFCONFIG`
  3480. When used with the :ref:`ref-classes-kernel-yocto`
  3481. class, specifies an "in-tree" kernel configuration file for use
  3482. during a kernel build.
  3483. Typically, when using a ``defconfig`` to configure a kernel during a
  3484. build, you place the file in your layer in the same manner as you
  3485. would place patch files and configuration fragment files (i.e.
  3486. "out-of-tree"). However, if you want to use a ``defconfig`` file that
  3487. is part of the kernel tree (i.e. "in-tree"), you can use the
  3488. :term:`KBUILD_DEFCONFIG` variable and append the
  3489. :term:`KMACHINE` variable to point to the
  3490. ``defconfig`` file.
  3491. To use the variable, set it in the append file for your kernel recipe
  3492. using the following form::
  3493. KBUILD_DEFCONFIG:<machine> ?= "defconfig_file"
  3494. Here is an example from a "raspberrypi2" :term:`MACHINE` build that uses
  3495. a ``defconfig`` file named "bcm2709_defconfig"::
  3496. KBUILD_DEFCONFIG:raspberrypi2 = "bcm2709_defconfig"
  3497. As an alternative, you can use the following within your append file::
  3498. KBUILD_DEFCONFIG:pn-linux-yocto ?= "defconfig_file"
  3499. For more
  3500. information on how to use the :term:`KBUILD_DEFCONFIG` variable, see the
  3501. ":ref:`kernel-dev/common:using an "in-tree" \`\`defconfig\`\` file`"
  3502. section in the Yocto Project Linux Kernel Development Manual.
  3503. :term:`KCONFIG_MODE`
  3504. When used with the :ref:`ref-classes-kernel-yocto`
  3505. class, specifies the kernel configuration values to use for options
  3506. not specified in the provided ``defconfig`` file. Valid options are::
  3507. KCONFIG_MODE = "alldefconfig"
  3508. KCONFIG_MODE = "allnoconfig"
  3509. In ``alldefconfig`` mode the options not explicitly specified will be
  3510. assigned their Kconfig default value. In ``allnoconfig`` mode the
  3511. options not explicitly specified will be disabled in the kernel
  3512. config.
  3513. In case :term:`KCONFIG_MODE` is not set the behaviour will depend on where
  3514. the ``defconfig`` file is coming from. An "in-tree" ``defconfig`` file
  3515. will be handled in ``alldefconfig`` mode, a ``defconfig`` file placed
  3516. in ``${WORKDIR}`` through a meta-layer will be handled in
  3517. ``allnoconfig`` mode.
  3518. An "in-tree" ``defconfig`` file can be selected via the
  3519. :term:`KBUILD_DEFCONFIG` variable. :term:`KCONFIG_MODE` does not need to
  3520. be explicitly set.
  3521. A ``defconfig`` file compatible with ``allnoconfig`` mode can be
  3522. generated by copying the ``.config`` file from a working Linux kernel
  3523. build, renaming it to ``defconfig`` and placing it into the Linux
  3524. kernel ``${WORKDIR}`` through your meta-layer. :term:`KCONFIG_MODE` does
  3525. not need to be explicitly set.
  3526. A ``defconfig`` file compatible with ``alldefconfig`` mode can be
  3527. generated using the
  3528. :ref:`ref-tasks-savedefconfig`
  3529. task and placed into the Linux kernel ``${WORKDIR}`` through your
  3530. meta-layer. Explicitely set :term:`KCONFIG_MODE`::
  3531. KCONFIG_MODE = "alldefconfig"
  3532. :term:`KERNEL_ALT_IMAGETYPE`
  3533. Specifies an alternate kernel image type for creation in addition to
  3534. the kernel image type specified using the :term:`KERNEL_IMAGETYPE` and
  3535. :term:`KERNEL_IMAGETYPES` variables.
  3536. :term:`KERNEL_ARTIFACT_NAME`
  3537. Specifies the name of all of the build artifacts. You can change the
  3538. name of the artifacts by changing the :term:`KERNEL_ARTIFACT_NAME`
  3539. variable.
  3540. The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the
  3541. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file, has the
  3542. following default value::
  3543. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  3544. See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`IMAGE_MACHINE_SUFFIX`
  3545. and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
  3546. :term:`KERNEL_CLASSES`
  3547. A list of classes defining kernel image types that the
  3548. :ref:`ref-classes-kernel` class should inherit. You typically
  3549. append this variable to enable extended image types. An example is
  3550. ":ref:`ref-classes-kernel-fitimage`", which enables
  3551. FIT image support and resides in ``meta/classes-recipe/kernel-fitimage.bbclass``.
  3552. You can register custom kernel image types with the
  3553. :ref:`ref-classes-kernel` class using this variable.
  3554. :term:`KERNEL_CONSOLE`
  3555. The :term:`KERNEL_CONSOLE` variable holds the value of the ``console``
  3556. parameter of the kernel command line and can be used in places such as a
  3557. ``wks`` description file for :ref:`Wic images <dev-manual/wic:creating
  3558. partitioned images using wic>`.
  3559. The default value of this variable is extracted from the first console
  3560. device and setting in :term:`SERIAL_CONSOLES`. If nothing is found in
  3561. :term:`SERIAL_CONSOLES`, the default value is set to ``ttyS0,115200``).
  3562. For more information, see the `Kernel command-line documentation
  3563. <https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html>`__.
  3564. :term:`KERNEL_DANGLING_FEATURES_WARN_ONLY`
  3565. When kernel configuration fragments are missing for some
  3566. :term:`KERNEL_FEATURES` specified by layers or BSPs,
  3567. building and configuring the kernel stops with an error.
  3568. You can turn these errors into warnings by setting the
  3569. following in ``conf/local.conf``::
  3570. KERNEL_DANGLING_FEATURES_WARN_ONLY = "1"
  3571. You will still be warned that runtime issues may occur,
  3572. but at least the kernel configuration and build process will
  3573. be allowed to continue.
  3574. :term:`KERNEL_DEBUG_TIMESTAMPS`
  3575. If set to "1", enables timestamping functionality during building
  3576. the kernel. The default is "0" to disable this for reproducibility
  3577. reasons.
  3578. :term:`KERNEL_DEPLOY_DEPEND`
  3579. Provides a means of controlling the dependency of an image recipe
  3580. on the kernel. The default value is "virtual/kernel:do_deploy",
  3581. however for a small initramfs image or other images that do not
  3582. need the kernel, this can be set to "" in the image recipe.
  3583. :term:`KERNEL_DEVICETREE`
  3584. Specifies the name of the generated Linux kernel device tree (i.e.
  3585. the ``.dtb``) file.
  3586. .. note::
  3587. There is legacy support for specifying the full path to the device
  3588. tree. However, providing just the ``.dtb`` file is preferred.
  3589. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3590. class must be inherited.
  3591. :term:`KERNEL_DEVICETREE_BUNDLE`
  3592. When set to "1", this variable allows to bundle the Linux kernel
  3593. and the Device Tree Binary together in a single file.
  3594. This feature is currently only supported on the "arm" (32 bit)
  3595. architecture.
  3596. This variable is set to "0" by default by the
  3597. :ref:`ref-classes-kernel-devicetree` class.
  3598. :term:`KERNEL_DTB_LINK_NAME`
  3599. The link name of the kernel device tree binary (DTB). This variable
  3600. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3601. follows::
  3602. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3603. The
  3604. value of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in
  3605. the same file, has the following value::
  3606. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3607. See the :term:`MACHINE` variable for additional
  3608. information.
  3609. :term:`KERNEL_DTB_NAME`
  3610. The base name of the kernel device tree binary (DTB). This variable
  3611. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3612. follows::
  3613. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3614. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3615. :term:`KERNEL_DTBDEST`
  3616. This variable, used by the :ref:`ref-classes-kernel-devicetree`
  3617. class, allows to change the installation directory of the DTB
  3618. (Device Tree Binary) files.
  3619. It is set by default to "${KERNEL_IMAGEDEST}" by the
  3620. :ref:`ref-classes-kernel` class.
  3621. :term:`KERNEL_DTBVENDORED`
  3622. This variable, used by the :ref:`ref-classes-kernel-devicetree`,
  3623. allows to ignore vendor subdirectories when installing DTB
  3624. (Device Tree Binary) files, when it is set to "false".
  3625. To keep vendor subdirectories, set this variable to "true".
  3626. It is set by default to "false" by the :ref:`ref-classes-kernel` class.
  3627. :term:`KERNEL_DTC_FLAGS`
  3628. Specifies the ``dtc`` flags that are passed to the Linux kernel build
  3629. system when generating the device trees (via ``DTC_FLAGS`` environment
  3630. variable).
  3631. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3632. class must be inherited.
  3633. :term:`KERNEL_EXTRA_ARGS`
  3634. Specifies additional ``make`` command-line arguments the OpenEmbedded
  3635. build system passes on when compiling the kernel.
  3636. :term:`KERNEL_FEATURES`
  3637. Includes additional kernel metadata. In the OpenEmbedded build
  3638. system, the default Board Support Packages (BSPs)
  3639. :term:`Metadata` is provided through the
  3640. :term:`KMACHINE` and :term:`KBRANCH`
  3641. variables. You can use the :term:`KERNEL_FEATURES` variable from within
  3642. the kernel recipe or kernel append file to further add metadata for
  3643. all BSPs or specific BSPs.
  3644. The metadata you add through this variable includes config fragments
  3645. and features descriptions, which usually includes patches as well as
  3646. config fragments. You typically override the :term:`KERNEL_FEATURES`
  3647. variable for a specific machine. In this way, you can provide
  3648. validated, but optional, sets of kernel configurations and features.
  3649. For example, the following example from the ``linux-yocto-rt_4.12``
  3650. kernel recipe adds "netfilter" and "taskstats" features to all BSPs
  3651. as well as "virtio" configurations to all QEMU machines. The last two
  3652. statements add specific configurations to targeted machine types::
  3653. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  3654. KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
  3655. KERNEL_FEATURES:append:qemuall = " cfg/virtio.scc"
  3656. KERNEL_FEATURES:append:qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  3657. KERNEL_FEATURES:append:qemux86-64 = " cfg/sound.scc"
  3658. :term:`KERNEL_FIT_LINK_NAME`
  3659. The link name of the kernel flattened image tree (FIT) image. This
  3660. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3661. file as follows::
  3662. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3663. The value of the
  3664. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3665. file, has the following value::
  3666. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3667. See the :term:`MACHINE` variable for additional
  3668. information.
  3669. :term:`KERNEL_FIT_NAME`
  3670. The base name of the kernel flattened image tree (FIT) image. This
  3671. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3672. file as follows::
  3673. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3674. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3675. :term:`KERNEL_IMAGE_LINK_NAME`
  3676. The link name for the kernel image. This variable is set in the
  3677. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3678. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3679. The value of
  3680. the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3681. file, has the following value::
  3682. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3683. See the :term:`MACHINE` variable for additional
  3684. information.
  3685. :term:`KERNEL_IMAGE_MAXSIZE`
  3686. Specifies the maximum size of the kernel image file in kilobytes. If
  3687. :term:`KERNEL_IMAGE_MAXSIZE` is set, the size of the kernel image file is
  3688. checked against the set value during the
  3689. :ref:`ref-tasks-sizecheck` task. The task fails if
  3690. the kernel image file is larger than the setting.
  3691. :term:`KERNEL_IMAGE_MAXSIZE` is useful for target devices that have a
  3692. limited amount of space in which the kernel image must be stored.
  3693. By default, this variable is not set, which means the size of the
  3694. kernel image is not checked.
  3695. :term:`KERNEL_IMAGE_NAME`
  3696. The base name of the kernel image. This variable is set in the
  3697. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3698. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3699. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3700. :term:`KERNEL_IMAGETYPE`
  3701. The type of kernel to build for a device, usually set by the machine
  3702. configuration files and defaults to "zImage". This variable is used
  3703. when building the kernel and is passed to ``make`` as the target to
  3704. build.
  3705. To build additional kernel image types, use :term:`KERNEL_IMAGETYPES`.
  3706. :term:`KERNEL_IMAGETYPES`
  3707. Lists additional types of kernel images to build for a device in addition
  3708. to image type specified in :term:`KERNEL_IMAGETYPE`. Usually set by the
  3709. machine configuration files.
  3710. :term:`KERNEL_MODULE_AUTOLOAD`
  3711. Lists kernel modules that need to be auto-loaded during boot.
  3712. .. note::
  3713. This variable replaces the deprecated :term:`module_autoload`
  3714. variable.
  3715. You can use the :term:`KERNEL_MODULE_AUTOLOAD` variable anywhere that it
  3716. can be recognized by the kernel recipe or by an out-of-tree kernel
  3717. module recipe (e.g. a machine configuration file, a distribution
  3718. configuration file, an append file for the recipe, or the recipe
  3719. itself).
  3720. Specify it as follows::
  3721. KERNEL_MODULE_AUTOLOAD += "module_name1 module_name2 module_name3"
  3722. Including :term:`KERNEL_MODULE_AUTOLOAD` causes the OpenEmbedded build
  3723. system to populate the ``/etc/modules-load.d/modname.conf`` file with
  3724. the list of modules to be auto-loaded on boot. The modules appear
  3725. one-per-line in the file. Here is an example of the most common use
  3726. case::
  3727. KERNEL_MODULE_AUTOLOAD += "module_name"
  3728. For information on how to populate the ``modname.conf`` file with
  3729. ``modprobe.d`` syntax lines, see the :term:`KERNEL_MODULE_PROBECONF` variable.
  3730. :term:`KERNEL_MODULE_PROBECONF`
  3731. Provides a list of modules for which the OpenEmbedded build system
  3732. expects to find ``module_conf_``\ modname values that specify
  3733. configuration for each of the modules. For information on how to
  3734. provide those module configurations, see the
  3735. :term:`module_conf_* <module_conf>` variable.
  3736. :term:`KERNEL_PACKAGE_NAME`
  3737. Specifies the base name of the kernel packages, such as "kernel"
  3738. in the kernel packages such as "kernel-modules", "kernel-image" and
  3739. "kernel-dbg".
  3740. The default value for this variable is set to "kernel" by the
  3741. :ref:`ref-classes-kernel` class.
  3742. :term:`KERNEL_PATH`
  3743. The location of the kernel sources. This variable is set to the value
  3744. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  3745. class. For information on how this variable is used, see the
  3746. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3747. section in the Yocto Project Linux Kernel Development Manual.
  3748. To help maximize compatibility with out-of-tree drivers used to build
  3749. modules, the OpenEmbedded build system also recognizes and uses the
  3750. :term:`KERNEL_SRC` variable, which is identical to
  3751. the :term:`KERNEL_PATH` variable. Both variables are common variables
  3752. used by external Makefiles to point to the kernel source directory.
  3753. :term:`KERNEL_SRC`
  3754. The location of the kernel sources. This variable is set to the value
  3755. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  3756. class. For information on how this variable is used, see the
  3757. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3758. section in the Yocto Project Linux Kernel Development Manual.
  3759. To help maximize compatibility with out-of-tree drivers used to build
  3760. modules, the OpenEmbedded build system also recognizes and uses the
  3761. :term:`KERNEL_PATH` variable, which is identical
  3762. to the :term:`KERNEL_SRC` variable. Both variables are common variables
  3763. used by external Makefiles to point to the kernel source directory.
  3764. :term:`KERNEL_STRIP`
  3765. Allows to specific which ``strip`` command to use to strip the kernel
  3766. binary, typically either GNU binutils ``strip`` or ``llvm-strip``.
  3767. :term:`KERNEL_VERSION`
  3768. Specifies the version of the kernel as extracted from ``version.h``
  3769. or ``utsrelease.h`` within the kernel sources. Effects of setting
  3770. this variable do not take effect until the kernel has been
  3771. configured. Consequently, attempting to refer to this variable in
  3772. contexts prior to configuration will not work.
  3773. :term:`KERNELDEPMODDEPEND`
  3774. Specifies whether the data referenced through
  3775. :term:`PKGDATA_DIR` is needed or not.
  3776. :term:`KERNELDEPMODDEPEND` does not control whether or not that data
  3777. exists, but simply whether or not it is used. If you do not need to
  3778. use the data, set the :term:`KERNELDEPMODDEPEND` variable in your
  3779. :term:`Initramfs` recipe. Setting the variable there when the data is not
  3780. needed avoids a potential dependency loop.
  3781. :term:`KFEATURE_DESCRIPTION`
  3782. Provides a short description of a configuration fragment. You use
  3783. this variable in the ``.scc`` file that describes a configuration
  3784. fragment file. Here is the variable used in a file named ``smp.scc``
  3785. to describe SMP being enabled::
  3786. define KFEATURE_DESCRIPTION "Enable SMP"
  3787. :term:`KMACHINE`
  3788. The machine as known by the kernel. Sometimes the machine name used
  3789. by the kernel does not match the machine name used by the
  3790. OpenEmbedded build system. For example, the machine name that the
  3791. OpenEmbedded build system understands as ``core2-32-intel-common``
  3792. goes by a different name in the Linux Yocto kernel. The kernel
  3793. understands that machine as ``intel-core2-32``. For cases like these,
  3794. the :term:`KMACHINE` variable maps the kernel machine name to the
  3795. OpenEmbedded build system machine name.
  3796. These mappings between different names occur in the Yocto Linux
  3797. Kernel's ``meta`` branch. As an example take a look in the
  3798. ``common/recipes-kernel/linux/linux-yocto_3.19.bbappend`` file::
  3799. LINUX_VERSION:core2-32-intel-common = "3.19.0"
  3800. COMPATIBLE_MACHINE:core2-32-intel-common = "${MACHINE}"
  3801. SRCREV_meta:core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  3802. SRCREV_machine:core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  3803. KMACHINE:core2-32-intel-common = "intel-core2-32"
  3804. KBRANCH:core2-32-intel-common = "standard/base"
  3805. KERNEL_FEATURES:append:core2-32-intel-common = " ${KERNEL_FEATURES_INTEL_COMMON}"
  3806. The :term:`KMACHINE` statement says
  3807. that the kernel understands the machine name as "intel-core2-32".
  3808. However, the OpenEmbedded build system understands the machine as
  3809. "core2-32-intel-common".
  3810. :term:`KTYPE`
  3811. Defines the kernel type to be used in assembling the configuration.
  3812. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3813. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3814. section in the
  3815. Yocto Project Linux Kernel Development Manual for more information on
  3816. kernel types.
  3817. You define the :term:`KTYPE` variable in the
  3818. :ref:`kernel-dev/advanced:bsp descriptions`. The
  3819. value you use must match the value used for the
  3820. :term:`LINUX_KERNEL_TYPE` value used by the
  3821. kernel recipe.
  3822. :term:`LABELS`
  3823. Provides a list of targets for automatic configuration.
  3824. See the :ref:`ref-classes-grub-efi` class for more
  3825. information on how this variable is used.
  3826. :term:`LAYERDEPENDS`
  3827. Lists the layers, separated by spaces, on which this recipe depends.
  3828. Optionally, you can specify a specific layer version for a dependency
  3829. by adding it to the end of the layer name. Here is an example::
  3830. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  3831. In this previous example,
  3832. version 3 of "anotherlayer" is compared against
  3833. :term:`LAYERVERSION`\ ``_anotherlayer``.
  3834. An error is produced if any dependency is missing or the version
  3835. numbers (if specified) do not match exactly. This variable is used in
  3836. the ``conf/layer.conf`` file and must be suffixed with the name of
  3837. the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
  3838. :term:`LAYERDIR`
  3839. When used inside the ``layer.conf`` configuration file, this variable
  3840. provides the path of the current layer. This variable is not
  3841. available outside of ``layer.conf`` and references are expanded
  3842. immediately when parsing of the file completes.
  3843. :term:`LAYERDIR_RE`
  3844. See :term:`bitbake:LAYERDIR_RE` in the BitBake manual.
  3845. :term:`LAYERRECOMMENDS`
  3846. Lists the layers, separated by spaces, recommended for use with this
  3847. layer.
  3848. Optionally, you can specify a specific layer version for a
  3849. recommendation by adding the version to the end of the layer name.
  3850. Here is an example::
  3851. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  3852. In this previous example, version 3 of "anotherlayer" is compared
  3853. against ``LAYERVERSION_anotherlayer``.
  3854. This variable is used in the ``conf/layer.conf`` file and must be
  3855. suffixed with the name of the specific layer (e.g.
  3856. ``LAYERRECOMMENDS_mylayer``).
  3857. :term:`LAYERSERIES_COMPAT`
  3858. See :term:`bitbake:LAYERSERIES_COMPAT` in the BitBake manual.
  3859. :term:`LAYERVERSION`
  3860. Optionally specifies the version of a layer as a single number. You
  3861. can use this within :term:`LAYERDEPENDS` for
  3862. another layer in order to depend on a specific version of the layer.
  3863. This variable is used in the ``conf/layer.conf`` file and must be
  3864. suffixed with the name of the specific layer (e.g.
  3865. ``LAYERVERSION_mylayer``).
  3866. :term:`LD`
  3867. The minimal command and arguments used to run the linker.
  3868. :term:`LDFLAGS`
  3869. Specifies the flags to pass to the linker. This variable is exported
  3870. to an environment variable and thus made visible to the software
  3871. being built during the compilation step.
  3872. Default initialization for :term:`LDFLAGS` varies depending on what is
  3873. being built:
  3874. - :term:`TARGET_LDFLAGS` when building for the
  3875. target
  3876. - :term:`BUILD_LDFLAGS` when building for the
  3877. build host (i.e. ``-native``)
  3878. - :term:`BUILDSDK_LDFLAGS` when building for
  3879. an SDK (i.e. ``nativesdk-``)
  3880. :term:`LEAD_SONAME`
  3881. Specifies the lead (or primary) compiled library file (i.e. ``.so``)
  3882. that the :ref:`ref-classes-debian` class applies its
  3883. naming policy to given a recipe that packages multiple libraries.
  3884. This variable works in conjunction with the :ref:`ref-classes-debian`
  3885. class.
  3886. :term:`LIC_FILES_CHKSUM`
  3887. Checksums of the license text in the recipe source code.
  3888. This variable tracks changes in license text of the source code
  3889. files. If the license text is changed, it will trigger a build
  3890. failure, which gives the developer an opportunity to review any
  3891. license change.
  3892. This variable must be defined for all recipes (unless
  3893. :term:`LICENSE` is set to "CLOSED").
  3894. For more information, see the ":ref:`dev-manual/licenses:tracking license changes`"
  3895. section in the Yocto Project Development Tasks Manual.
  3896. :term:`LICENSE`
  3897. The list of source licenses for the recipe. Follow these rules:
  3898. - Do not use spaces within individual license names.
  3899. - Separate license names using \| (pipe) when there is a choice
  3900. between licenses.
  3901. - Separate license names using & (ampersand) when there are
  3902. multiple licenses for different parts of the source.
  3903. - You can use spaces between license names.
  3904. - For standard licenses, use the names of the files in
  3905. ``meta/files/common-licenses/`` or the
  3906. :term:`SPDXLICENSEMAP` flag names defined in
  3907. ``meta/conf/licenses.conf``.
  3908. Here are some examples::
  3909. LICENSE = "LGPL-2.1-only | GPL-3.0-only"
  3910. LICENSE = "MPL-1.0 & LGPL-2.1-only"
  3911. LICENSE = "GPL-2.0-or-later"
  3912. The first example is from the
  3913. recipes for Qt, which the user may choose to distribute under either
  3914. the LGPL version 2.1 or GPL version 3. The second example is from
  3915. Cairo where two licenses cover different parts of the source code.
  3916. The final example is from ``sysstat``, which presents a single
  3917. license.
  3918. You can also specify licenses on a per-package basis to handle
  3919. situations where components of the output have different licenses.
  3920. For example, a piece of software whose code is licensed under GPLv2
  3921. but has accompanying documentation licensed under the GNU Free
  3922. Documentation License 1.2 could be specified as follows::
  3923. LICENSE = "GFDL-1.2 & GPL-2.0-only"
  3924. LICENSE:${PN} = "GPL-2.0.only"
  3925. LICENSE:${PN}-doc = "GFDL-1.2"
  3926. :term:`LICENSE_CREATE_PACKAGE`
  3927. Setting :term:`LICENSE_CREATE_PACKAGE` to "1" causes the OpenEmbedded
  3928. build system to create an extra package (i.e.
  3929. ``${``\ :term:`PN`\ ``}-lic``) for each recipe and to add
  3930. those packages to the
  3931. :term:`RRECOMMENDS`\ ``:${PN}``.
  3932. The ``${PN}-lic`` package installs a directory in
  3933. ``/usr/share/licenses`` named ``${PN}``, which is the recipe's base
  3934. name, and installs files in that directory that contain license and
  3935. copyright information (i.e. copies of the appropriate license files
  3936. from ``meta/common-licenses`` that match the licenses specified in
  3937. the :term:`LICENSE` variable of the recipe metadata
  3938. and copies of files marked in
  3939. :term:`LIC_FILES_CHKSUM` as containing
  3940. license text).
  3941. For related information on providing license text, see the
  3942. :term:`COPY_LIC_DIRS` variable, the
  3943. :term:`COPY_LIC_MANIFEST` variable, and the
  3944. ":ref:`dev-manual/licenses:providing license text`"
  3945. section in the Yocto Project Development Tasks Manual.
  3946. :term:`LICENSE_FLAGS`
  3947. Specifies additional flags for a recipe you must allow through
  3948. :term:`LICENSE_FLAGS_ACCEPTED` in
  3949. order for the recipe to be built. When providing multiple flags,
  3950. separate them with spaces.
  3951. This value is independent of :term:`LICENSE` and is
  3952. typically used to mark recipes that might require additional licenses
  3953. in order to be used in a commercial product. For more information,
  3954. see the
  3955. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3956. section in the Yocto Project Development Tasks Manual.
  3957. :term:`LICENSE_FLAGS_ACCEPTED`
  3958. Lists license flags that when specified in
  3959. :term:`LICENSE_FLAGS` within a recipe should not
  3960. prevent that recipe from being built. For more information, see the
  3961. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3962. section in the Yocto Project Development Tasks Manual.
  3963. :term:`LICENSE_FLAGS_DETAILS`
  3964. Adds details about a flag in :term:`LICENSE_FLAGS`. This way,
  3965. if such a flag is not accepted through :term:`LICENSE_FLAGS_ACCEPTED`,
  3966. the error message will be more informative, containing the specified
  3967. extra details.
  3968. For example, a recipe with an EULA may set::
  3969. LICENSE_FLAGS = "FooBar-EULA"
  3970. LICENSE_FLAGS_DETAILS[FooBar-EULA] = "For further details, see https://example.com/eula."
  3971. If ``Foobar-EULA`` isn't in :term:`LICENSE_FLAGS_ACCEPTED`, the
  3972. error message is more useful::
  3973. Has a restricted license 'FooBar-EULA' which is not listed in your LICENSE_FLAGS_ACCEPTED.
  3974. For further details, see https://example.com/eula.
  3975. :term:`LICENSE_PATH`
  3976. Path to additional licenses used during the build. By default, the
  3977. OpenEmbedded build system uses :term:`COMMON_LICENSE_DIR` to define the
  3978. directory that holds common license text used during the build. The
  3979. :term:`LICENSE_PATH` variable allows you to extend that location to other
  3980. areas that have additional licenses::
  3981. LICENSE_PATH += "path-to-additional-common-licenses"
  3982. :term:`LINUX_KERNEL_TYPE`
  3983. Defines the kernel type to be used in assembling the configuration.
  3984. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3985. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3986. section in the
  3987. Yocto Project Linux Kernel Development Manual for more information on
  3988. kernel types.
  3989. If you do not specify a :term:`LINUX_KERNEL_TYPE`, it defaults to
  3990. "standard". Together with :term:`KMACHINE`, the
  3991. :term:`LINUX_KERNEL_TYPE` variable defines the search arguments used by
  3992. the kernel tools to find the appropriate description within the
  3993. kernel :term:`Metadata` with which to build out the sources
  3994. and configuration.
  3995. :term:`LINUX_VERSION`
  3996. The Linux version from ``kernel.org`` on which the Linux kernel image
  3997. being built using the OpenEmbedded build system is based. You define
  3998. this variable in the kernel recipe. For example, the
  3999. ``linux-yocto-3.4.bb`` kernel recipe found in
  4000. ``meta/recipes-kernel/linux`` defines the variables as follows::
  4001. LINUX_VERSION ?= "3.4.24"
  4002. The :term:`LINUX_VERSION` variable is used to define :term:`PV`
  4003. for the recipe::
  4004. PV = "${LINUX_VERSION}+git"
  4005. :term:`LINUX_VERSION_EXTENSION`
  4006. A string extension compiled into the version string of the Linux
  4007. kernel built with the OpenEmbedded build system. You define this
  4008. variable in the kernel recipe. For example, the linux-yocto kernel
  4009. recipes all define the variable as follows::
  4010. LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
  4011. Defining this variable essentially sets the Linux kernel
  4012. configuration item ``CONFIG_LOCALVERSION``, which is visible through
  4013. the ``uname`` command. Here is an example that shows the extension
  4014. assuming it was set as previously shown::
  4015. $ uname -r
  4016. 3.7.0-rc8-custom
  4017. :term:`LOG_DIR`
  4018. Specifies the directory to which the OpenEmbedded build system writes
  4019. overall log files. The default directory is ``${TMPDIR}/log``.
  4020. For the directory containing logs specific to each task, see the
  4021. :term:`T` variable.
  4022. :term:`MACHINE`
  4023. Specifies the target device for which the image is built. You define
  4024. :term:`MACHINE` in the ``local.conf`` file found in the
  4025. :term:`Build Directory`. By default, :term:`MACHINE` is set to
  4026. "qemux86", which is an x86-based architecture machine to be emulated
  4027. using QEMU::
  4028. MACHINE ?= "qemux86"
  4029. The variable corresponds to a machine configuration file of the same
  4030. name, through which machine-specific configurations are set. Thus,
  4031. when :term:`MACHINE` is set to "qemux86", the corresponding
  4032. ``qemux86.conf`` machine configuration file can be found in
  4033. the :term:`Source Directory` in
  4034. ``meta/conf/machine``.
  4035. The list of machines supported by the Yocto Project as shipped
  4036. include the following::
  4037. MACHINE ?= "qemuarm"
  4038. MACHINE ?= "qemuarm64"
  4039. MACHINE ?= "qemumips"
  4040. MACHINE ?= "qemumips64"
  4041. MACHINE ?= "qemuppc"
  4042. MACHINE ?= "qemux86"
  4043. MACHINE ?= "qemux86-64"
  4044. MACHINE ?= "genericx86"
  4045. MACHINE ?= "genericx86-64"
  4046. MACHINE ?= "beaglebone"
  4047. The last five are Yocto Project reference hardware
  4048. boards, which are provided in the ``meta-yocto-bsp`` layer.
  4049. .. note::
  4050. Adding additional Board Support Package (BSP) layers to your
  4051. configuration adds new possible settings for :term:`MACHINE`.
  4052. :term:`MACHINE_ARCH`
  4053. Specifies the name of the machine-specific architecture. This
  4054. variable is set automatically from :term:`MACHINE` or
  4055. :term:`TUNE_PKGARCH`. You should not hand-edit
  4056. the :term:`MACHINE_ARCH` variable.
  4057. :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4058. A list of required machine-specific packages to install as part of
  4059. the image being built. The build process depends on these packages
  4060. being present. Furthermore, because this is a "machine-essential"
  4061. variable, the list of packages are essential for the machine to boot.
  4062. The impact of this variable affects images based on
  4063. ``packagegroup-core-boot``, including the ``core-image-minimal``
  4064. image.
  4065. This variable is similar to the
  4066. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS` variable with the exception
  4067. that the image being built has a build dependency on the variable's
  4068. list of packages. In other words, the image will not build if a file
  4069. in this list is not found.
  4070. As an example, suppose the machine for which you are building
  4071. requires ``example-init`` to be run during boot to initialize the
  4072. hardware. In this case, you would use the following in the machine's
  4073. ``.conf`` configuration file::
  4074. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  4075. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  4076. A list of recommended machine-specific packages to install as part of
  4077. the image being built. The build process does not depend on these
  4078. packages being present. However, because this is a
  4079. "machine-essential" variable, the list of packages are essential for
  4080. the machine to boot. The impact of this variable affects images based
  4081. on ``packagegroup-core-boot``, including the ``core-image-minimal``
  4082. image.
  4083. This variable is similar to the :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4084. variable with the exception that the image being built does not have
  4085. a build dependency on the variable's list of packages. In other
  4086. words, the image will still build if a package in this list is not
  4087. found. Typically, this variable is used to handle essential kernel
  4088. modules, whose functionality may be selected to be built into the
  4089. kernel rather than as a module, in which case a package will not be
  4090. produced.
  4091. Consider an example where you have a custom kernel where a specific
  4092. touchscreen driver is required for the machine to be usable. However,
  4093. the driver can be built as a module or into the kernel depending on
  4094. the kernel configuration. If the driver is built as a module, you
  4095. want it to be installed. But, when the driver is built into the
  4096. kernel, you still want the build to succeed. This variable sets up a
  4097. "recommends" relationship so that in the latter case, the build will
  4098. not fail due to the missing package. To accomplish this, assuming the
  4099. package for the module was called ``kernel-module-ab123``, you would
  4100. use the following in the machine's ``.conf`` configuration file::
  4101. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  4102. .. note::
  4103. In this example, the ``kernel-module-ab123`` recipe needs to
  4104. explicitly set its :term:`PACKAGES` variable to ensure that BitBake
  4105. does not use the kernel recipe's :term:`PACKAGES_DYNAMIC` variable to
  4106. satisfy the dependency.
  4107. Some examples of these machine essentials are flash, screen,
  4108. keyboard, mouse, or touchscreen drivers (depending on the machine).
  4109. :term:`MACHINE_EXTRA_RDEPENDS`
  4110. A list of machine-specific packages to install as part of the image
  4111. being built that are not essential for the machine to boot. However,
  4112. the build process for more fully-featured images depends on the
  4113. packages being present.
  4114. This variable affects all images based on ``packagegroup-base``,
  4115. which does not include the ``core-image-minimal`` or
  4116. ``core-image-full-cmdline`` images.
  4117. The variable is similar to the :term:`MACHINE_EXTRA_RRECOMMENDS` variable
  4118. with the exception that the image being built has a build dependency
  4119. on the variable's list of packages. In other words, the image will
  4120. not build if a file in this list is not found.
  4121. An example is a machine that has WiFi capability but is not essential
  4122. for the machine to boot the image. However, if you are building a
  4123. more fully-featured image, you want to enable the WiFi. The package
  4124. containing the firmware for the WiFi hardware is always expected to
  4125. exist, so it is acceptable for the build process to depend upon
  4126. finding the package. In this case, assuming the package for the
  4127. firmware was called ``wifidriver-firmware``, you would use the
  4128. following in the ``.conf`` file for the machine::
  4129. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  4130. :term:`MACHINE_EXTRA_RRECOMMENDS`
  4131. A list of machine-specific packages to install as part of the image
  4132. being built that are not essential for booting the machine. The image
  4133. being built has no build dependency on this list of packages.
  4134. This variable affects only images based on ``packagegroup-base``,
  4135. which does not include the ``core-image-minimal`` or
  4136. ``core-image-full-cmdline`` images.
  4137. This variable is similar to the :term:`MACHINE_EXTRA_RDEPENDS` variable
  4138. with the exception that the image being built does not have a build
  4139. dependency on the variable's list of packages. In other words, the
  4140. image will build if a file in this list is not found.
  4141. An example is a machine that has WiFi capability but is not essential
  4142. For the machine to boot the image. However, if you are building a
  4143. more fully-featured image, you want to enable WiFi. In this case, the
  4144. package containing the WiFi kernel module will not be produced if the
  4145. WiFi driver is built into the kernel, in which case you still want
  4146. the build to succeed instead of failing as a result of the package
  4147. not being found. To accomplish this, assuming the package for the
  4148. module was called ``kernel-module-examplewifi``, you would use the
  4149. following in the ``.conf`` file for the machine::
  4150. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  4151. :term:`MACHINE_FEATURES`
  4152. Specifies the list of hardware features the
  4153. :term:`MACHINE` is capable of supporting. For related
  4154. information on enabling features, see the
  4155. :term:`DISTRO_FEATURES`,
  4156. :term:`COMBINED_FEATURES`, and
  4157. :term:`IMAGE_FEATURES` variables.
  4158. For a list of hardware features supported by the Yocto Project as
  4159. shipped, see the ":ref:`ref-features-machine`" section.
  4160. :term:`MACHINE_FEATURES_BACKFILL`
  4161. A list of space-separated features to be added to
  4162. :term:`MACHINE_FEATURES` if not also present in
  4163. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`.
  4164. This variable is set in the ``meta/conf/bitbake.conf`` file. It is not
  4165. intended to be user-configurable. It is best to just reference the
  4166. variable to see which machine features are being
  4167. :ref:`backfilled <ref-features-backfill>` for all machine configurations.
  4168. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`
  4169. A list of space-separated features from :term:`MACHINE_FEATURES_BACKFILL`
  4170. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  4171. to :term:`MACHINE_FEATURES`) during the build.
  4172. This corresponds to an opt-out mechanism. When new default machine
  4173. features are introduced, machine definition maintainers can review
  4174. (`consider`) them and decide to exclude them from the
  4175. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  4176. combination of :term:`MACHINE_FEATURES_BACKFILL` and
  4177. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  4178. add new default features without breaking existing machine definitions.
  4179. :term:`MACHINEOVERRIDES`
  4180. A colon-separated list of overrides that apply to the current
  4181. machine. By default, this list includes the value of
  4182. :term:`MACHINE`.
  4183. You can extend :term:`MACHINEOVERRIDES` to add extra overrides that
  4184. should apply to a machine. For example, all machines emulated in QEMU
  4185. (e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
  4186. ``meta/conf/machine/include/qemu.inc`` that prepends the following
  4187. override to :term:`MACHINEOVERRIDES`::
  4188. MACHINEOVERRIDES =. "qemuall:"
  4189. This
  4190. override allows variables to be overridden for all machines emulated
  4191. in QEMU, like in the following example from the ``connman-conf``
  4192. recipe::
  4193. SRC_URI:append:qemuall = " file://wired.config \
  4194. file://wired-setup \
  4195. "
  4196. The underlying mechanism behind
  4197. :term:`MACHINEOVERRIDES` is simply that it is included in the default
  4198. value of :term:`OVERRIDES`.
  4199. :term:`MAINTAINER`
  4200. The email address of the distribution maintainer.
  4201. :term:`MESON_BUILDTYPE`
  4202. Value of the Meson ``--buildtype`` argument used by the
  4203. :ref:`ref-classes-meson` class. It defaults to ``debug`` if
  4204. :term:`DEBUG_BUILD` is set to "1", and ``plain`` otherwise.
  4205. See `Meson build options <https://mesonbuild.com/Builtin-options.html>`__
  4206. for the values you could set in a recipe. Values such as ``plain``,
  4207. ``debug``, ``debugoptimized``, ``release`` and ``minsize`` allow
  4208. you to specify the inclusion of debugging symbols and the compiler
  4209. optimizations (none, performance or size).
  4210. :term:`MESON_TARGET`
  4211. A variable for the :ref:`ref-classes-meson` class, allowing to choose
  4212. a Meson target to build in :ref:`ref-tasks-compile`. Otherwise, the
  4213. default targets are built.
  4214. :term:`METADATA_BRANCH`
  4215. The branch currently checked out for the OpenEmbedded-Core layer (path
  4216. determined by :term:`COREBASE`).
  4217. :term:`METADATA_REVISION`
  4218. The revision currently checked out for the OpenEmbedded-Core layer (path
  4219. determined by :term:`COREBASE`).
  4220. :term:`MIME_XDG_PACKAGES`
  4221. The current implementation of the :ref:`ref-classes-mime-xdg`
  4222. class cannot detect ``.desktop`` files installed through absolute
  4223. symbolic links. Use this setting to make the class create post-install
  4224. and post-remove scripts for these packages anyway, to invoke the
  4225. ``update-destop-database`` command.
  4226. :term:`MIRRORS`
  4227. Specifies additional paths from which the OpenEmbedded build system
  4228. gets source code. When the build system searches for source code, it
  4229. first tries the local download directory. If that location fails, the
  4230. build system tries locations defined by
  4231. :term:`PREMIRRORS`, the upstream source, and then
  4232. locations specified by :term:`MIRRORS` in that order.
  4233. The default value for :term:`MIRRORS` is defined in the
  4234. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  4235. :term:`MLPREFIX`
  4236. Specifies a prefix has been added to :term:`PN` to create a
  4237. special version of a recipe or package (i.e. a Multilib version). The
  4238. variable is used in places where the prefix needs to be added to or
  4239. removed from a name (e.g. the :term:`BPN` variable).
  4240. :term:`MLPREFIX` gets set when a prefix has been added to :term:`PN`.
  4241. .. note::
  4242. The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation
  4243. is historical and comes from a time when ":ref:`ref-classes-nativesdk`"
  4244. was a suffix rather than a prefix on the recipe name. When
  4245. ":ref:`ref-classes-nativesdk`" was turned into a prefix, it made sense
  4246. to set :term:`MLPREFIX` for it as well.
  4247. To help understand when :term:`MLPREFIX` might be needed, consider when
  4248. :term:`BBCLASSEXTEND` is used to provide a :ref:`ref-classes-nativesdk`
  4249. version of a recipe in addition to the target version. If that recipe
  4250. declares build-time dependencies on tasks in other recipes by using
  4251. :term:`DEPENDS`, then a dependency on "foo" will automatically get
  4252. rewritten to a dependency on "nativesdk-foo". However, dependencies like
  4253. the following will not get rewritten automatically::
  4254. do_foo[depends] += "recipe:do_foo"
  4255. If you want such a dependency to also get transformed, you can do the
  4256. following::
  4257. do_foo[depends] += "${MLPREFIX}recipe:do_foo"
  4258. :term:`module_autoload`
  4259. This variable has been replaced by the :term:`KERNEL_MODULE_AUTOLOAD`
  4260. variable. You should replace all occurrences of :term:`module_autoload`
  4261. with additions to :term:`KERNEL_MODULE_AUTOLOAD`, for example::
  4262. module_autoload_rfcomm = "rfcomm"
  4263. should now be replaced with::
  4264. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  4265. See the :term:`KERNEL_MODULE_AUTOLOAD` variable for more information.
  4266. :term:`module_conf`
  4267. Specifies `modprobe.d <https://linux.die.net/man/5/modprobe.d>`__
  4268. syntax lines for inclusion in the ``/etc/modprobe.d/modname.conf``
  4269. file.
  4270. You can use this variable anywhere that it can be recognized by the
  4271. kernel recipe or out-of-tree kernel module recipe (e.g. a machine
  4272. configuration file, a distribution configuration file, an append file
  4273. for the recipe, or the recipe itself). If you use this variable, you
  4274. must also be sure to list the module name in the
  4275. :term:`KERNEL_MODULE_PROBECONF`
  4276. variable.
  4277. Here is the general syntax::
  4278. module_conf_module_name = "modprobe.d-syntax"
  4279. You must use the kernel module name override.
  4280. Run ``man modprobe.d`` in the shell to find out more information on
  4281. the exact syntax you want to provide with :term:`module_conf`.
  4282. Including :term:`module_conf` causes the OpenEmbedded build system to
  4283. populate the ``/etc/modprobe.d/modname.conf`` file with
  4284. ``modprobe.d`` syntax lines. Here is an example that adds the options
  4285. ``arg1`` and ``arg2`` to a module named ``mymodule``::
  4286. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  4287. For information on how to specify kernel modules to auto-load on
  4288. boot, see the :term:`KERNEL_MODULE_AUTOLOAD` variable.
  4289. :term:`MODULE_TARBALL_DEPLOY`
  4290. Controls creation of the ``modules-*.tgz`` file. Set this variable to
  4291. "0" to disable creation of this file, which contains all of the
  4292. kernel modules resulting from a kernel build.
  4293. :term:`MODULE_TARBALL_LINK_NAME`
  4294. The link name of the kernel module tarball. This variable is set in
  4295. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4296. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4297. The value
  4298. of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the
  4299. same file, has the following value::
  4300. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4301. See the :term:`MACHINE` variable for additional information.
  4302. :term:`MODULE_TARBALL_NAME`
  4303. The base name of the kernel module tarball. This variable is set in
  4304. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4305. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4306. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4307. :term:`MOUNT_BASE`
  4308. On non-systemd systems (where ``udev-extraconf`` is being used),
  4309. specifies the base directory for auto-mounting filesystems. The
  4310. default value is "/run/media".
  4311. :term:`MULTIMACH_TARGET_SYS`
  4312. Uniquely identifies the type of the target system for which packages
  4313. are being built. This variable allows output for different types of
  4314. target systems to be put into different subdirectories of the same
  4315. output directory.
  4316. The default value of this variable is::
  4317. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  4318. Some classes (e.g. :ref:`ref-classes-cross-canadian`) modify the
  4319. :term:`MULTIMACH_TARGET_SYS` value.
  4320. See the :term:`STAMP` variable for an example. See the
  4321. :term:`STAGING_DIR_TARGET` variable for more information.
  4322. :term:`NATIVELSBSTRING`
  4323. A string identifying the host distribution. Strings consist of the
  4324. host distributor ID followed by the release, as reported by the
  4325. ``lsb_release`` tool or as read from ``/etc/lsb-release``. For
  4326. example, when running a build on Ubuntu 12.10, the value is
  4327. "Ubuntu-12.10". If this information is unable to be determined, the
  4328. value resolves to "Unknown".
  4329. This variable is used by default to isolate native shared state
  4330. packages for different distributions (e.g. to avoid problems with
  4331. ``glibc`` version incompatibilities). Additionally, the variable is
  4332. checked against
  4333. :term:`SANITY_TESTED_DISTROS` if that
  4334. variable is set.
  4335. :term:`NM`
  4336. The minimal command and arguments to run ``nm``.
  4337. :term:`NO_GENERIC_LICENSE`
  4338. Avoids QA errors when you use a non-common, non-CLOSED license in a
  4339. recipe. There are packages, such as the linux-firmware package, with many
  4340. licenses that are not in any way common. Also, new licenses are added
  4341. occasionally to avoid introducing a lot of common license files,
  4342. which are only applicable to a specific package.
  4343. :term:`NO_GENERIC_LICENSE` is used to allow copying a license that does
  4344. not exist in common licenses.
  4345. The following example shows how to add :term:`NO_GENERIC_LICENSE` to a
  4346. recipe::
  4347. NO_GENERIC_LICENSE[license_name] = "license_file_in_fetched_source"
  4348. Here is an example that
  4349. uses the ``LICENSE.Abilis.txt`` file as the license from the fetched
  4350. source::
  4351. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  4352. :term:`NO_RECOMMENDATIONS`
  4353. Prevents installation of all "recommended-only" packages.
  4354. Recommended-only packages are packages installed only through the
  4355. :term:`RRECOMMENDS` variable). Setting the
  4356. :term:`NO_RECOMMENDATIONS` variable to "1" turns this feature on::
  4357. NO_RECOMMENDATIONS = "1"
  4358. You can set this variable globally in your ``local.conf`` file or you
  4359. can attach it to a specific image recipe by using the recipe name
  4360. override::
  4361. NO_RECOMMENDATIONS:pn-target_image = "1"
  4362. It is important to realize that if you choose to not install packages
  4363. using this variable and some other packages are dependent on them
  4364. (i.e. listed in a recipe's :term:`RDEPENDS`
  4365. variable), the OpenEmbedded build system ignores your request and
  4366. will install the packages to avoid dependency errors.
  4367. .. note::
  4368. Some recommended packages might be required for certain system
  4369. functionality, such as kernel modules. It is up to you to add
  4370. packages with the :term:`IMAGE_INSTALL` variable.
  4371. This variable is only supported when using the IPK and RPM
  4372. packaging backends. DEB is not supported.
  4373. See the :term:`BAD_RECOMMENDATIONS` and
  4374. the :term:`PACKAGE_EXCLUDE` variables for
  4375. related information.
  4376. :term:`NOAUTOPACKAGEDEBUG`
  4377. Disables auto package from splitting ``.debug`` files. If a recipe
  4378. requires ``FILES:${PN}-dbg`` to be set manually, the
  4379. :term:`NOAUTOPACKAGEDEBUG` can be defined allowing you to define the
  4380. content of the debug package. For example::
  4381. NOAUTOPACKAGEDEBUG = "1"
  4382. FILES:${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  4383. FILES:${PN}-dbg = "/usr/src/debug/"
  4384. FILES:${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  4385. :term:`NON_MULTILIB_RECIPES`
  4386. A list of recipes that should not be built for multilib. OE-Core's
  4387. ``multilib.conf`` file defines a reasonable starting point for this
  4388. list with::
  4389. NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"
  4390. :term:`NVDCVE_API_KEY`
  4391. The NVD API key used to retrieve data from the CVE database when
  4392. using :ref:`ref-classes-cve-check`.
  4393. By default, no API key is used, which results in larger delays between API
  4394. requests and limits the number of queries to the public rate limits posted
  4395. at the `NVD developer's page <https://nvd.nist.gov/developers/start-here>`__.
  4396. NVD API keys can be requested through the
  4397. `Request an API Key <https://nvd.nist.gov/developers/request-an-api-key>`__
  4398. page. You can set this variable to the NVD API key in your ``local.conf`` file.
  4399. Example::
  4400. NVDCVE_API_KEY = "fe753&7a2-1427-347d-23ff-b2e2b7ca5f3"
  4401. :term:`OBJCOPY`
  4402. The minimal command and arguments to run ``objcopy``.
  4403. :term:`OBJDUMP`
  4404. The minimal command and arguments to run ``objdump``.
  4405. :term:`OE_BINCONFIG_EXTRA_MANGLE`
  4406. When inheriting the :ref:`ref-classes-binconfig` class,
  4407. this variable specifies additional arguments passed to the "sed"
  4408. command. The sed command alters any paths in configuration scripts
  4409. that have been set up during compilation. Inheriting this class
  4410. results in all paths in these scripts being changed to point into the
  4411. ``sysroots/`` directory so that all builds that use the script will
  4412. use the correct directories for the cross compiling layout.
  4413. See the ``meta/classes-recipe/binconfig.bbclass`` in the
  4414. :term:`Source Directory` for details on how this class
  4415. applies these additional sed command arguments.
  4416. :term:`OECMAKE_GENERATOR`
  4417. A variable for the :ref:`ref-classes-cmake` class, allowing to choose
  4418. which back-end will be generated by CMake to build an application.
  4419. By default, this variable is set to ``Ninja``, which is faster than GNU
  4420. make, but if building is broken with Ninja, a recipe can use this
  4421. variable to use GNU make instead::
  4422. OECMAKE_GENERATOR = "Unix Makefiles"
  4423. :term:`OE_IMPORTS`
  4424. An internal variable used to tell the OpenEmbedded build system what
  4425. Python modules to import for every Python function run by the system.
  4426. .. note::
  4427. Do not set this variable. It is for internal use only.
  4428. :term:`OE_INIT_ENV_SCRIPT`
  4429. The name of the build environment setup script for the purposes of
  4430. setting up the environment within the extensible SDK. The default
  4431. value is "oe-init-build-env".
  4432. If you use a custom script to set up your build environment, set the
  4433. :term:`OE_INIT_ENV_SCRIPT` variable to its name.
  4434. :term:`OE_TERMINAL`
  4435. Controls how the OpenEmbedded build system spawns interactive
  4436. terminals on the host development system (e.g. using the BitBake
  4437. command with the ``-c devshell`` command-line option). For more
  4438. information, see the ":ref:`dev-manual/development-shell:using a development shell`" section in
  4439. the Yocto Project Development Tasks Manual.
  4440. You can use the following values for the :term:`OE_TERMINAL` variable:
  4441. - auto
  4442. - gnome
  4443. - xfce
  4444. - rxvt
  4445. - screen
  4446. - konsole
  4447. - none
  4448. :term:`OEROOT`
  4449. The directory from which the top-level build environment setup script
  4450. is sourced. The Yocto Project provides a top-level build environment
  4451. setup script: :ref:`structure-core-script`. When you run this
  4452. script, the :term:`OEROOT` variable resolves to the directory that
  4453. contains the script.
  4454. For additional information on how this variable is used, see the
  4455. initialization script.
  4456. :term:`OEQA_REPRODUCIBLE_TEST_PACKAGE`
  4457. Set the package manager(s) for build reproducibility testing.
  4458. See :yocto_git:`reproducible.py </poky/tree/meta/lib/oeqa/selftest/cases/reproducible.py>`
  4459. and :doc:`/test-manual/reproducible-builds`.
  4460. :term:`OEQA_REPRODUCIBLE_TEST_TARGET`
  4461. Set build target for build reproducibility testing. By default
  4462. all available recipes are compiled with "bitbake world", see also :term:`EXCLUDE_FROM_WORLD`
  4463. and :doc:`/test-manual/reproducible-builds`.
  4464. :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`
  4465. Set build targets which can be rebuilt using :ref:`shared state <overview-manual/concepts:shared state cache>`
  4466. when running build reproducibility tests. See :doc:`/test-manual/reproducible-builds`.
  4467. :term:`OLDEST_KERNEL`
  4468. Declares the oldest version of the Linux kernel that the produced
  4469. binaries must support. This variable is passed into the build of the
  4470. Embedded GNU C Library (``glibc``).
  4471. The default for this variable comes from the
  4472. ``meta/conf/bitbake.conf`` configuration file. You can override this
  4473. default by setting the variable in a custom distribution
  4474. configuration file.
  4475. :term:`OPKG_MAKE_INDEX_EXTRA_PARAMS`
  4476. Specifies extra parameters for the ``opkg-make-index`` command.
  4477. :term:`OPKGBUILDCMD`
  4478. The variable :term:`OPKGBUILDCMD` specifies the command used to build opkg
  4479. packages when using the :ref:`ref-classes-package_ipk` class. It is
  4480. defined in :ref:`ref-classes-package_ipk` as::
  4481. OPKGBUILDCMD ??= 'opkg-build -Z zstd -a "${ZSTD_DEFAULTS}"'
  4482. :term:`OVERLAYFS_ETC_DEVICE`
  4483. When the :ref:`ref-classes-overlayfs-etc` class is
  4484. inherited, specifies the device to be mounted for the read/write
  4485. layer of ``/etc``. There is no default, so you must set this if you
  4486. wish to enable :ref:`ref-classes-overlayfs-etc`, for
  4487. example, assuming ``/dev/mmcblk0p2`` was the desired device::
  4488. OVERLAYFS_ETC_DEVICE = "/dev/mmcblk0p2"
  4489. :term:`OVERLAYFS_ETC_EXPOSE_LOWER`
  4490. When the :ref:`ref-classes-overlayfs-etc` class is
  4491. inherited, if set to "1" then a read-only access to the original
  4492. ``/etc`` content will be provided as a ``lower/`` subdirectory of
  4493. :term:`OVERLAYFS_ETC_MOUNT_POINT`. The default value is "0".
  4494. :term:`OVERLAYFS_ETC_FSTYPE`
  4495. When the :ref:`ref-classes-overlayfs-etc` class is
  4496. inherited, specifies the file system type for the read/write
  4497. layer of ``/etc``. There is no default, so you must set this if you
  4498. wish to enable :ref:`ref-classes-overlayfs-etc`,
  4499. for example, assuming the file system is ext4::
  4500. OVERLAYFS_ETC_FSTYPE = "ext4"
  4501. :term:`OVERLAYFS_ETC_MOUNT_OPTIONS`
  4502. When the :ref:`ref-classes-overlayfs-etc` class is
  4503. inherited, specifies the mount options for the read-write layer.
  4504. The default value is "defaults".
  4505. :term:`OVERLAYFS_ETC_MOUNT_POINT`
  4506. When the :ref:`ref-classes-overlayfs-etc` class is
  4507. inherited, specifies the parent mount path for the filesystem layers.
  4508. There is no default, so you must set this if you wish to enable
  4509. :ref:`ref-classes-overlayfs-etc`, for example if the desired path is
  4510. "/data"::
  4511. OVERLAYFS_ETC_MOUNT_POINT = "/data"
  4512. :term:`OVERLAYFS_ETC_USE_ORIG_INIT_NAME`
  4513. When the :ref:`ref-classes-overlayfs-etc` class is inherited, controls
  4514. how the generated init will be named. For more information, see the
  4515. :ref:`ref-classes-overlayfs-etc` class documentation. The default value
  4516. is "1".
  4517. :term:`OVERLAYFS_MOUNT_POINT`
  4518. When inheriting the :ref:`ref-classes-overlayfs` class,
  4519. specifies mount point(s) to be used. For example::
  4520. OVERLAYFS_MOUNT_POINT[data] = "/data"
  4521. The assumes you have a ``data.mount`` systemd unit defined elsewhere in
  4522. your BSP (e.g. in ``systemd-machine-units`` recipe) and it is installed
  4523. into the image. For more information see :ref:`ref-classes-overlayfs`.
  4524. .. note::
  4525. Although the :ref:`ref-classes-overlayfs` class is
  4526. inherited by individual recipes, :term:`OVERLAYFS_MOUNT_POINT`
  4527. should be set in your machine configuration.
  4528. :term:`OVERLAYFS_QA_SKIP`
  4529. When inheriting the :ref:`ref-classes-overlayfs` class,
  4530. provides the ability to disable QA checks for particular overlayfs
  4531. mounts. For example::
  4532. OVERLAYFS_QA_SKIP[data] = "mount-configured"
  4533. .. note::
  4534. Although the :ref:`ref-classes-overlayfs` class is
  4535. inherited by individual recipes, :term:`OVERLAYFS_QA_SKIP`
  4536. should be set in your machine configuration.
  4537. :term:`OVERLAYFS_WRITABLE_PATHS`
  4538. When inheriting the :ref:`ref-classes-overlayfs` class,
  4539. specifies writable paths used at runtime for the recipe. For
  4540. example::
  4541. OVERLAYFS_WRITABLE_PATHS[data] = "/usr/share/my-custom-application"
  4542. :term:`OVERRIDES`
  4543. A colon-separated list of overrides that currently apply. Overrides
  4544. are a BitBake mechanism that allows variables to be selectively
  4545. overridden at the end of parsing. The set of overrides in
  4546. :term:`OVERRIDES` represents the "state" during building, which includes
  4547. the current recipe being built, the machine for which it is being
  4548. built, and so forth.
  4549. As an example, if the string "an-override" appears as an element in
  4550. the colon-separated list in :term:`OVERRIDES`, then the following
  4551. assignment will override ``FOO`` with the value "overridden" at the
  4552. end of parsing::
  4553. FOO:an-override = "overridden"
  4554. See the
  4555. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  4556. section in the BitBake User Manual for more information on the
  4557. overrides mechanism.
  4558. The default value of :term:`OVERRIDES` includes the values of the
  4559. :term:`CLASSOVERRIDE`,
  4560. :term:`MACHINEOVERRIDES`, and
  4561. :term:`DISTROOVERRIDES` variables. Another
  4562. important override included by default is ``pn-${PN}``. This override
  4563. allows variables to be set for a single recipe within configuration
  4564. (``.conf``) files. Here is an example::
  4565. FOO:pn-myrecipe = "myrecipe-specific value"
  4566. .. note::
  4567. An easy way to see what overrides apply is to search for :term:`OVERRIDES`
  4568. in the output of the ``bitbake -e`` command. See the
  4569. ":ref:`dev-manual/debugging:viewing variable values`" section in the Yocto
  4570. Project Development Tasks Manual for more information.
  4571. :term:`P`
  4572. The recipe name and version. :term:`P` is comprised of the following::
  4573. ${PN}-${PV}
  4574. :term:`P4DIR`
  4575. See :term:`bitbake:P4DIR` in the BitBake manual.
  4576. :term:`PACKAGE_ADD_METADATA`
  4577. This variable defines additional metadata to add to packages.
  4578. You may find you need to inject additional metadata into packages.
  4579. This variable allows you to do that by setting the injected data as
  4580. the value. Multiple fields can be added by splitting the content with
  4581. the literal separator "\n".
  4582. The suffixes '_IPK', '_DEB', or '_RPM' can be applied to the variable
  4583. to do package type specific settings. It can also be made package
  4584. specific by using the package name as a suffix.
  4585. You can find out more about applying this variable in the
  4586. ":ref:`dev-manual/packages:adding custom metadata to packages`"
  4587. section in the Yocto Project Development Tasks Manual.
  4588. :term:`PACKAGE_ARCH`
  4589. The architecture of the resulting package or packages.
  4590. By default, the value of this variable is set to
  4591. :term:`TUNE_PKGARCH` when building for the
  4592. target, :term:`BUILD_ARCH` when building for the
  4593. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building for the
  4594. SDK.
  4595. .. note::
  4596. See :term:`SDK_ARCH` for more information.
  4597. However, if your recipe's output packages are built specific to the
  4598. target machine rather than generally for the architecture of the
  4599. machine, you should set :term:`PACKAGE_ARCH` to the value of
  4600. :term:`MACHINE_ARCH` in the recipe as follows::
  4601. PACKAGE_ARCH = "${MACHINE_ARCH}"
  4602. :term:`PACKAGE_ARCHS`
  4603. Specifies a list of architectures compatible with the target machine.
  4604. This variable is set automatically and should not normally be
  4605. hand-edited. Entries are separated using spaces and listed in order
  4606. of priority. The default value for :term:`PACKAGE_ARCHS` is "all any
  4607. noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  4608. :term:`PACKAGE_BEFORE_PN`
  4609. Enables easily adding packages to :term:`PACKAGES` before ``${PN}`` so
  4610. that those added packages can pick up files that would normally be
  4611. included in the default package.
  4612. :term:`PACKAGE_CLASSES`
  4613. This variable, which is set in the ``local.conf`` configuration file
  4614. found in the ``conf`` folder of the
  4615. :term:`Build Directory`, specifies the package manager the
  4616. OpenEmbedded build system uses when packaging data.
  4617. You can provide one or more of the following arguments for the
  4618. variable::
  4619. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
  4620. The build system uses only the first argument in the list as the
  4621. package manager when creating your image or SDK. However, packages
  4622. will be created using any additional packaging classes you specify.
  4623. For example, if you use the following in your ``local.conf`` file::
  4624. PACKAGE_CLASSES ?= "package_ipk"
  4625. The OpenEmbedded build system uses
  4626. the IPK package manager to create your image or SDK.
  4627. For information on packaging and build performance effects as a
  4628. result of the package manager in use, see the
  4629. ":ref:`ref-classes-package`" section.
  4630. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  4631. Determines how to split up and package debug and source information
  4632. when creating debugging packages to be used with the GNU Project
  4633. Debugger (GDB). In general, based on the value of this variable,
  4634. you can combine the source and debug info in a single package,
  4635. you can break out the source into a separate package that can be
  4636. installed independently, or you can choose to not have the source
  4637. packaged at all.
  4638. The possible values of :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable:
  4639. - "``.debug``": All debugging and source info is placed in a single
  4640. ``*-dbg`` package; debug symbol files are placed next to the
  4641. binary in a ``.debug`` directory so that, if a binary is installed
  4642. into ``/bin``, the corresponding debug symbol file is installed
  4643. in ``/bin/.debug``. Source files are installed in the same ``*-dbg``
  4644. package under ``/usr/src/debug``.
  4645. - "``debug-file-directory``": As above, all debugging and source info
  4646. is placed in a single ``*-dbg`` package; debug symbol files are
  4647. placed entirely under the directory ``/usr/lib/debug`` and separated
  4648. by the path from where the binary is installed, so that if a binary
  4649. is installed in ``/bin``, the corresponding debug symbols are installed
  4650. in ``/usr/lib/debug/bin``, and so on. As above, source is installed
  4651. in the same package under ``/usr/src/debug``.
  4652. - "``debug-with-srcpkg``": Debugging info is placed in the standard
  4653. ``*-dbg`` package as with the ``.debug`` value, while source is
  4654. placed in a separate ``*-src`` package, which can be installed
  4655. independently. This is the default setting for this variable,
  4656. as defined in Poky's ``bitbake.conf`` file.
  4657. - "``debug-without-src``": The same behavior as with the ``.debug``
  4658. setting, but no source is packaged at all.
  4659. .. note::
  4660. Much of the above package splitting can be overridden via
  4661. use of the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable.
  4662. You can find out more about debugging using GDB by reading the
  4663. ":ref:`dev-manual/debugging:debugging with the gnu project debugger (gdb) remotely`" section
  4664. in the Yocto Project Development Tasks Manual.
  4665. :term:`PACKAGE_EXCLUDE`
  4666. Lists packages that should not be installed into an image. For
  4667. example::
  4668. PACKAGE_EXCLUDE = "package_name package_name package_name ..."
  4669. You can set this variable globally in your ``local.conf`` file or you
  4670. can attach it to a specific image recipe by using the recipe name
  4671. override::
  4672. PACKAGE_EXCLUDE:pn-target_image = "package_name"
  4673. If you choose to not install a package using this variable and some
  4674. other package is dependent on it (i.e. listed in a recipe's
  4675. :term:`RDEPENDS` variable), the OpenEmbedded build
  4676. system generates a fatal installation error. Because the build system
  4677. halts the process with a fatal error, you can use the variable with
  4678. an iterative development process to remove specific components from a
  4679. system.
  4680. This variable is supported only when using the IPK and RPM
  4681. packaging backends. DEB is not supported.
  4682. See the :term:`NO_RECOMMENDATIONS` and the
  4683. :term:`BAD_RECOMMENDATIONS` variables for
  4684. related information.
  4685. :term:`PACKAGE_EXCLUDE_COMPLEMENTARY`
  4686. Prevents specific packages from being installed when you are
  4687. installing complementary packages.
  4688. You might find that you want to prevent installing certain packages
  4689. when you are installing complementary packages. For example, if you
  4690. are using :term:`IMAGE_FEATURES` to install
  4691. ``dev-pkgs``, you might not want to install all packages from a
  4692. particular multilib. If you find yourself in this situation, you can
  4693. use the :term:`PACKAGE_EXCLUDE_COMPLEMENTARY` variable to specify regular
  4694. expressions to match the packages you want to exclude.
  4695. :term:`PACKAGE_EXTRA_ARCHS`
  4696. Specifies the list of architectures compatible with the device CPU.
  4697. This variable is useful when you build for several different devices
  4698. that use miscellaneous processors such as XScale and ARM926-EJS.
  4699. :term:`PACKAGE_FEED_ARCHS`
  4700. Optionally specifies the package architectures used as part of the
  4701. package feed URIs during the build. When used, the
  4702. :term:`PACKAGE_FEED_ARCHS` variable is appended to the final package feed
  4703. URI, which is constructed using the
  4704. :term:`PACKAGE_FEED_URIS` and
  4705. :term:`PACKAGE_FEED_BASE_PATHS`
  4706. variables.
  4707. .. note::
  4708. You can use the :term:`PACKAGE_FEED_ARCHS`
  4709. variable to allow specific package architectures. If you do
  4710. not need to allow specific architectures, which is a common
  4711. case, you can omit this variable. Omitting the variable results in
  4712. all available architectures for the current machine being included
  4713. into remote package feeds.
  4714. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4715. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4716. defined in your ``local.conf`` file::
  4717. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4718. https://example.com/packagerepos/updates"
  4719. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4720. PACKAGE_FEED_ARCHS = "all core2-64"
  4721. Given these settings, the resulting package feeds are as follows:
  4722. .. code-block:: none
  4723. https://example.com/packagerepos/release/rpm/all
  4724. https://example.com/packagerepos/release/rpm/core2-64
  4725. https://example.com/packagerepos/release/rpm-dev/all
  4726. https://example.com/packagerepos/release/rpm-dev/core2-64
  4727. https://example.com/packagerepos/updates/rpm/all
  4728. https://example.com/packagerepos/updates/rpm/core2-64
  4729. https://example.com/packagerepos/updates/rpm-dev/all
  4730. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4731. :term:`PACKAGE_FEED_BASE_PATHS`
  4732. Specifies the base path used when constructing package feed URIs. The
  4733. :term:`PACKAGE_FEED_BASE_PATHS` variable makes up the middle portion of a
  4734. package feed URI used by the OpenEmbedded build system. The base path
  4735. lies between the :term:`PACKAGE_FEED_URIS`
  4736. and :term:`PACKAGE_FEED_ARCHS` variables.
  4737. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4738. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4739. defined in your ``local.conf`` file::
  4740. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4741. https://example.com/packagerepos/updates"
  4742. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4743. PACKAGE_FEED_ARCHS = "all core2-64"
  4744. Given these settings, the resulting package feeds are as follows:
  4745. .. code-block:: none
  4746. https://example.com/packagerepos/release/rpm/all
  4747. https://example.com/packagerepos/release/rpm/core2-64
  4748. https://example.com/packagerepos/release/rpm-dev/all
  4749. https://example.com/packagerepos/release/rpm-dev/core2-64
  4750. https://example.com/packagerepos/updates/rpm/all
  4751. https://example.com/packagerepos/updates/rpm/core2-64
  4752. https://example.com/packagerepos/updates/rpm-dev/all
  4753. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4754. :term:`PACKAGE_FEED_URIS`
  4755. Specifies the front portion of the package feed URI used by the
  4756. OpenEmbedded build system. Each final package feed URI is comprised
  4757. of :term:`PACKAGE_FEED_URIS`,
  4758. :term:`PACKAGE_FEED_BASE_PATHS`, and
  4759. :term:`PACKAGE_FEED_ARCHS` variables.
  4760. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4761. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4762. defined in your ``local.conf`` file::
  4763. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4764. https://example.com/packagerepos/updates"
  4765. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4766. PACKAGE_FEED_ARCHS = "all core2-64"
  4767. Given these settings, the resulting package feeds are as follows:
  4768. .. code-block:: none
  4769. https://example.com/packagerepos/release/rpm/all
  4770. https://example.com/packagerepos/release/rpm/core2-64
  4771. https://example.com/packagerepos/release/rpm-dev/all
  4772. https://example.com/packagerepos/release/rpm-dev/core2-64
  4773. https://example.com/packagerepos/updates/rpm/all
  4774. https://example.com/packagerepos/updates/rpm/core2-64
  4775. https://example.com/packagerepos/updates/rpm-dev/all
  4776. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4777. :term:`PACKAGE_INSTALL`
  4778. The final list of packages passed to the package manager for
  4779. installation into the image.
  4780. Because the package manager controls actual installation of all
  4781. packages, the list of packages passed using :term:`PACKAGE_INSTALL` is
  4782. not the final list of packages that are actually installed. This
  4783. variable is internal to the image construction code. Consequently, in
  4784. general, you should use the
  4785. :term:`IMAGE_INSTALL` variable to specify
  4786. packages for installation. The exception to this is when working with
  4787. the :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  4788. image. When working with an initial RAM filesystem (:term:`Initramfs`) image,
  4789. use the :term:`PACKAGE_INSTALL` variable. For information on creating an
  4790. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  4791. in the Yocto Project Development Tasks Manual.
  4792. :term:`PACKAGE_INSTALL_ATTEMPTONLY`
  4793. Specifies a list of packages the OpenEmbedded build system attempts
  4794. to install when creating an image. If a listed package fails to
  4795. install, the build system does not generate an error. This variable
  4796. is generally not user-defined.
  4797. :term:`PACKAGE_PREPROCESS_FUNCS`
  4798. Specifies a list of functions run to pre-process the
  4799. :term:`PKGD` directory prior to splitting the files out
  4800. to individual packages.
  4801. :term:`PACKAGE_WRITE_DEPS`
  4802. Specifies a list of dependencies for post-installation and
  4803. pre-installation scripts on native/cross tools. If your
  4804. post-installation or pre-installation script can execute at root filesystem
  4805. creation time rather than on the target but depends on a native tool
  4806. in order to execute, you need to list the tools in
  4807. :term:`PACKAGE_WRITE_DEPS`.
  4808. For information on running post-installation scripts, see the
  4809. ":ref:`dev-manual/new-recipe:post-installation scripts`"
  4810. section in the Yocto Project Development Tasks Manual.
  4811. :term:`PACKAGECONFIG`
  4812. This variable provides a means of enabling or disabling features of a
  4813. recipe on a per-recipe basis. :term:`PACKAGECONFIG` blocks are defined in
  4814. recipes when you specify features and then arguments that define
  4815. feature behaviors. Here is the basic block structure (broken over
  4816. multiple lines for readability)::
  4817. PACKAGECONFIG ??= "f1 f2 f3 ..."
  4818. PACKAGECONFIG[f1] = "\
  4819. --with-f1, \
  4820. --without-f1, \
  4821. build-deps-for-f1, \
  4822. runtime-deps-for-f1, \
  4823. runtime-recommends-for-f1, \
  4824. packageconfig-conflicts-for-f1"
  4825. PACKAGECONFIG[f2] = "\
  4826. ... and so on and so on ...
  4827. The :term:`PACKAGECONFIG` variable itself specifies a space-separated
  4828. list of the features to enable. Following the features, you can
  4829. determine the behavior of each feature by providing up to six
  4830. order-dependent arguments, which are separated by commas. You can
  4831. omit any argument you like but must retain the separating commas. The
  4832. order is important and specifies the following:
  4833. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  4834. if the feature is enabled.
  4835. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  4836. if the feature is disabled.
  4837. #. Additional build dependencies (:term:`DEPENDS`)
  4838. that should be added if the feature is enabled.
  4839. #. Additional runtime dependencies (:term:`RDEPENDS`)
  4840. that should be added if the feature is enabled.
  4841. #. Additional runtime recommendations
  4842. (:term:`RRECOMMENDS`) that should be added if
  4843. the feature is enabled.
  4844. #. Any conflicting (that is, mutually exclusive) :term:`PACKAGECONFIG`
  4845. settings for this feature.
  4846. Consider the following :term:`PACKAGECONFIG` block taken from the
  4847. ``librsvg`` recipe. In this example the feature is ``gtk``, which has
  4848. three arguments that determine the feature's behavior::
  4849. PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3"
  4850. The
  4851. ``--with-gtk3`` and ``gtk+3`` arguments apply only if the feature is
  4852. enabled. In this case, ``--with-gtk3`` is added to the configure
  4853. script argument list and ``gtk+3`` is added to :term:`DEPENDS`. On the
  4854. other hand, if the feature is disabled say through a ``.bbappend``
  4855. file in another layer, then the second argument ``--without-gtk3`` is
  4856. added to the configure script instead.
  4857. The basic :term:`PACKAGECONFIG` structure previously described holds true
  4858. regardless of whether you are creating a block or changing a block.
  4859. When creating a block, use the structure inside your recipe.
  4860. If you want to change an existing :term:`PACKAGECONFIG` block, you can do
  4861. so one of two ways:
  4862. - *Append file:* Create an append file named
  4863. ``recipename.bbappend`` in your layer and override the value of
  4864. :term:`PACKAGECONFIG`. You can either completely override the
  4865. variable::
  4866. PACKAGECONFIG = "f4 f5"
  4867. Or, you can just append the variable::
  4868. PACKAGECONFIG:append = " f4"
  4869. - *Configuration file:* This method is identical to changing the
  4870. block through an append file except you edit your ``local.conf``
  4871. or ``mydistro.conf`` file. As with append files previously
  4872. described, you can either completely override the variable::
  4873. PACKAGECONFIG:pn-recipename = "f4 f5"
  4874. Or, you can just amend the variable::
  4875. PACKAGECONFIG:append:pn-recipename = " f4"
  4876. Consider the following example of a :ref:`ref-classes-cmake` recipe with a systemd service
  4877. in which :term:`PACKAGECONFIG` is used to transform the systemd service
  4878. into a feature that can be easily enabled or disabled via :term:`PACKAGECONFIG`::
  4879. example.c
  4880. example.service
  4881. CMakeLists.txt
  4882. The ``CMakeLists.txt`` file contains::
  4883. if(WITH_SYSTEMD)
  4884. install(FILES ${PROJECT_SOURCE_DIR}/example.service DESTINATION /etc/systemd/systemd)
  4885. endif(WITH_SYSTEMD)
  4886. In order to enable the installation of ``example.service`` we need to
  4887. ensure that ``-DWITH_SYSTEMD=ON`` is passed to the ``cmake`` command
  4888. execution. Recipes that have ``CMakeLists.txt`` generally inherit the
  4889. :ref:`ref-classes-cmake` class, that runs ``cmake`` with
  4890. :term:`EXTRA_OECMAKE`, which :term:`PACKAGECONFIG_CONFARGS` will be
  4891. appended to. Now, knowing that :term:`PACKAGECONFIG_CONFARGS` is
  4892. automatically filled with either the first or second element of
  4893. :term:`PACKAGECONFIG` flag value, the recipe would be like::
  4894. inherit cmake
  4895. PACKAGECONFIG = "systemd"
  4896. PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF"
  4897. A side note to this recipe is to check if ``systemd`` is in fact the used :term:`INIT_MANAGER`
  4898. or not::
  4899. PACKAGECONFIG = "${@'systemd' if d.getVar('INIT_MANAGER') == 'systemd' else ''}"
  4900. :term:`PACKAGECONFIG_CONFARGS`
  4901. A space-separated list of configuration options generated from the
  4902. :term:`PACKAGECONFIG` setting.
  4903. Classes such as :ref:`ref-classes-autotools` and :ref:`ref-classes-cmake`
  4904. use :term:`PACKAGECONFIG_CONFARGS` to pass :term:`PACKAGECONFIG` options
  4905. to ``configure`` and ``cmake``, respectively. If you are using
  4906. :term:`PACKAGECONFIG` but not a class that handles the
  4907. :ref:`ref-tasks-configure` task, then you need to use
  4908. :term:`PACKAGECONFIG_CONFARGS` appropriately.
  4909. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY`
  4910. For recipes inheriting the :ref:`ref-classes-packagegroup` class, setting
  4911. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the
  4912. normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth)
  4913. should not be automatically created by the ``packagegroup`` recipe,
  4914. which is the default behavior.
  4915. :term:`PACKAGES`
  4916. The list of packages the recipe creates. The default value is the
  4917. following::
  4918. ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  4919. During packaging, the :ref:`ref-tasks-package` task
  4920. goes through :term:`PACKAGES` and uses the :term:`FILES`
  4921. variable corresponding to each package to assign files to the
  4922. package. If a file matches the :term:`FILES` variable for more than one
  4923. package in :term:`PACKAGES`, it will be assigned to the earliest
  4924. (leftmost) package.
  4925. Packages in the variable's list that are empty (i.e. where none of
  4926. the patterns in ``FILES:``\ pkg match any files installed by the
  4927. :ref:`ref-tasks-install` task) are not generated,
  4928. unless generation is forced through the
  4929. :term:`ALLOW_EMPTY` variable.
  4930. :term:`PACKAGES_DYNAMIC`
  4931. A promise that your recipe satisfies runtime dependencies for
  4932. optional modules that are found in other recipes.
  4933. :term:`PACKAGES_DYNAMIC` does not actually satisfy the dependencies, it
  4934. only states that they should be satisfied. For example, if a hard,
  4935. runtime dependency (:term:`RDEPENDS`) of another
  4936. package is satisfied at build time through the :term:`PACKAGES_DYNAMIC`
  4937. variable, but a package with the module name is never actually
  4938. produced, then the other package will be broken. Thus, if you attempt
  4939. to include that package in an image, you will get a dependency
  4940. failure from the packaging system during the
  4941. :ref:`ref-tasks-rootfs` task.
  4942. Typically, if there is a chance that such a situation can occur and
  4943. the package that is not created is valid without the dependency being
  4944. satisfied, then you should use :term:`RRECOMMENDS`
  4945. (a soft runtime dependency) instead of :term:`RDEPENDS`.
  4946. For an example of how to use the :term:`PACKAGES_DYNAMIC` variable when
  4947. you are splitting packages, see the
  4948. ":ref:`dev-manual/packages:handling optional module packaging`"
  4949. section in the Yocto Project Development Tasks Manual.
  4950. :term:`PACKAGESPLITFUNCS`
  4951. Specifies a list of functions run to perform additional splitting of
  4952. files into individual packages. Recipes can either prepend to this
  4953. variable or prepend to the ``populate_packages`` function in order to
  4954. perform additional package splitting. In either case, the function
  4955. should set :term:`PACKAGES`,
  4956. :term:`FILES`, :term:`RDEPENDS` and
  4957. other packaging variables appropriately in order to perform the
  4958. desired splitting.
  4959. :term:`PARALLEL_MAKE`
  4960. Extra options passed to the build tool command (``make``,
  4961. ``ninja`` or more specific build engines, like the Go language one)
  4962. during the :ref:`ref-tasks-compile` task, to specify parallel compilation
  4963. on the local build host. This variable is usually in the form "-j x",
  4964. where x represents the maximum number of parallel threads such engines
  4965. can run.
  4966. .. note::
  4967. For software compiled by ``make``, in order for :term:`PARALLEL_MAKE`
  4968. to be effective, ``make`` must be called with
  4969. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  4970. way to ensure this is to use the ``oe_runmake`` function.
  4971. By default, the OpenEmbedded build system automatically sets this
  4972. variable to be equal to the number of cores the build system uses.
  4973. .. note::
  4974. If the software being built experiences dependency issues during
  4975. the :ref:`ref-tasks-compile` task that result in race conditions, you can clear
  4976. the :term:`PARALLEL_MAKE` variable within the recipe as a workaround. For
  4977. information on addressing race conditions, see the
  4978. ":ref:`dev-manual/debugging:debugging parallel make races`"
  4979. section in the Yocto Project Development Tasks Manual.
  4980. For single socket systems (i.e. one CPU), you should not have to
  4981. override this variable to gain optimal parallelism during builds.
  4982. However, if you have very large systems that employ multiple physical
  4983. CPUs, you might want to make sure the :term:`PARALLEL_MAKE` variable is
  4984. not set higher than "-j 20".
  4985. For more information on speeding up builds, see the
  4986. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  4987. section in the Yocto Project Development Tasks Manual.
  4988. :term:`PARALLEL_MAKEINST`
  4989. Extra options passed to the build tool install command
  4990. (``make install``, ``ninja install`` or more specific ones)
  4991. during the :ref:`ref-tasks-install` task in order to specify
  4992. parallel installation. This variable defaults to the value of
  4993. :term:`PARALLEL_MAKE`.
  4994. .. note::
  4995. For software compiled by ``make``, in order for :term:`PARALLEL_MAKEINST`
  4996. to be effective, ``make`` must be called with
  4997. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  4998. way to ensure this is to use the ``oe_runmake`` function.
  4999. If the software being built experiences dependency issues during
  5000. the :ref:`ref-tasks-install` task that result in race conditions, you can
  5001. clear the :term:`PARALLEL_MAKEINST` variable within the recipe as a
  5002. workaround. For information on addressing race conditions, see the
  5003. ":ref:`dev-manual/debugging:debugging parallel make races`"
  5004. section in the Yocto Project Development Tasks Manual.
  5005. :term:`PATCHRESOLVE`
  5006. Determines the action to take when a patch fails. You can set this
  5007. variable to one of two values: "noop" and "user".
  5008. The default value of "noop" causes the build to simply fail when the
  5009. OpenEmbedded build system cannot successfully apply a patch. Setting
  5010. the value to "user" causes the build system to launch a shell and
  5011. places you in the right location so that you can manually resolve the
  5012. conflicts.
  5013. Set this variable in your ``local.conf`` file.
  5014. :term:`PATCHTOOL`
  5015. Specifies the utility used to apply patches for a recipe during the
  5016. :ref:`ref-tasks-patch` task. You can specify one of
  5017. three utilities: "patch", "quilt", or "git". The default utility used
  5018. is "quilt" except for the quilt-native recipe itself. Because the
  5019. quilt tool is not available at the time quilt-native is being
  5020. patched, it uses "patch".
  5021. If you wish to use an alternative patching tool, set the variable in
  5022. the recipe using one of the following::
  5023. PATCHTOOL = "patch"
  5024. PATCHTOOL = "quilt"
  5025. PATCHTOOL = "git"
  5026. :term:`PE`
  5027. The epoch of the recipe. By default, this variable is unset. The
  5028. variable is used to make upgrades possible when the versioning scheme
  5029. changes in some backwards incompatible way.
  5030. :term:`PE` is the default value of the :term:`PKGE` variable.
  5031. :term:`PEP517_WHEEL_PATH`
  5032. When used by recipes that inherit the :ref:`ref-classes-python_pep517`
  5033. class, denotes the path to ``dist/`` (short for distribution) where the
  5034. binary archive ``wheel`` is built.
  5035. :term:`PERSISTENT_DIR`
  5036. See :term:`bitbake:PERSISTENT_DIR` in the BitBake manual.
  5037. :term:`PF`
  5038. Specifies the recipe or package name and includes all version and
  5039. revision numbers (i.e. ``glibc-2.13-r20+svnr15508/`` and
  5040. ``bash-4.2-r1/``). This variable is comprised of the following:
  5041. ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`}
  5042. :term:`PIXBUF_PACKAGES`
  5043. When inheriting the :ref:`ref-classes-pixbufcache`
  5044. class, this variable identifies packages that contain the pixbuf
  5045. loaders used with ``gdk-pixbuf``. By default, the
  5046. :ref:`ref-classes-pixbufcache` class assumes that
  5047. the loaders are in the recipe's main package (i.e.
  5048. ``${``\ :term:`PN`\ ``}``). Use this variable if the
  5049. loaders you need are in a package other than that main package.
  5050. :term:`PKG`
  5051. The name of the resulting package created by the OpenEmbedded build
  5052. system.
  5053. .. note::
  5054. When using the :term:`PKG` variable, you must use a package name override.
  5055. For example, when the :ref:`ref-classes-debian` class renames the output
  5056. package, it does so by setting ``PKG:packagename``.
  5057. :term:`PKG_CONFIG_PATH`
  5058. The path to ``pkg-config`` files for the current build context.
  5059. ``pkg-config`` reads this variable from the environment.
  5060. :term:`PKGD`
  5061. Points to the destination directory for files to be packaged before
  5062. they are split into individual packages. This directory defaults to
  5063. the following::
  5064. ${WORKDIR}/package
  5065. Do not change this default.
  5066. :term:`PKGDATA_DIR`
  5067. Points to a shared, global-state directory that holds data generated
  5068. during the packaging process. During the packaging process, the
  5069. :ref:`ref-tasks-packagedata` task packages data
  5070. for each recipe and installs it into this temporary, shared area.
  5071. This directory defaults to the following, which you should not
  5072. change::
  5073. ${STAGING_DIR_HOST}/pkgdata
  5074. For examples of how this data is used, see the
  5075. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5076. section in the Yocto Project Overview and Concepts Manual and the
  5077. ":ref:`dev-manual/debugging:viewing package information with \`\`oe-pkgdata-util\`\``"
  5078. section in the Yocto Project Development Tasks Manual. For more
  5079. information on the shared, global-state directory, see
  5080. :term:`STAGING_DIR_HOST`.
  5081. :term:`PKGDEST`
  5082. Points to the parent directory for files to be packaged after they
  5083. have been split into individual packages. This directory defaults to
  5084. the following::
  5085. ${WORKDIR}/packages-split
  5086. Under this directory, the build system creates directories for each
  5087. package specified in :term:`PACKAGES`. Do not change
  5088. this default.
  5089. :term:`PKGDESTWORK`
  5090. Points to a temporary work area where the
  5091. :ref:`ref-tasks-package` task saves package metadata.
  5092. The :term:`PKGDESTWORK` location defaults to the following::
  5093. ${WORKDIR}/pkgdata
  5094. Do not change this default.
  5095. The :ref:`ref-tasks-packagedata` task copies the
  5096. package metadata from :term:`PKGDESTWORK` to
  5097. :term:`PKGDATA_DIR` to make it available globally.
  5098. :term:`PKGE`
  5099. The epoch of the package(s) built by the recipe. By default, :term:`PKGE`
  5100. is set to :term:`PE`.
  5101. :term:`PKGR`
  5102. The revision of the package(s) built by the recipe. By default,
  5103. :term:`PKGR` is set to :term:`PR`.
  5104. :term:`PKGV`
  5105. The version of the package(s) built by the recipe. By default,
  5106. :term:`PKGV` is set to :term:`PV`.
  5107. :term:`PN`
  5108. This variable can have two separate functions depending on the
  5109. context: a recipe name or a resulting package name.
  5110. :term:`PN` refers to a recipe name in the context of a file used by the
  5111. OpenEmbedded build system as input to create a package. The name is
  5112. normally extracted from the recipe file name. For example, if the
  5113. recipe is named ``expat_2.0.1.bb``, then the default value of :term:`PN`
  5114. will be "expat".
  5115. The variable refers to a package name in the context of a file
  5116. created or produced by the OpenEmbedded build system.
  5117. If applicable, the :term:`PN` variable also contains any special suffix
  5118. or prefix. For example, using ``bash`` to build packages for the
  5119. native machine, :term:`PN` is ``bash-native``. Using ``bash`` to build
  5120. packages for the target and for Multilib, :term:`PN` would be ``bash``
  5121. and ``lib64-bash``, respectively.
  5122. :term:`POPULATE_SDK_POST_HOST_COMMAND`
  5123. Specifies a list of functions to call once the OpenEmbedded build
  5124. system has created the host part of the SDK. You can specify
  5125. functions separated by spaces::
  5126. POPULATE_SDK_POST_HOST_COMMAND += "function"
  5127. If you need to pass the SDK path to a command within a function, you
  5128. can use ``${SDK_DIR}``, which points to the parent directory used by
  5129. the OpenEmbedded build system when creating SDK output. See the
  5130. :term:`SDK_DIR` variable for more information.
  5131. :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  5132. Specifies a list of functions to call once the OpenEmbedded build
  5133. system has created the target part of the SDK. You can specify
  5134. functions separated by spaces::
  5135. POPULATE_SDK_POST_TARGET_COMMAND += "function"
  5136. If you need to pass the SDK path to a command within a function, you
  5137. can use ``${SDK_DIR}``, which points to the parent directory used by
  5138. the OpenEmbedded build system when creating SDK output. See the
  5139. :term:`SDK_DIR` variable for more information.
  5140. :term:`PR`
  5141. The revision of the recipe. The default value for this variable is
  5142. "r0". Subsequent revisions of the recipe conventionally have the
  5143. values "r1", "r2", and so forth. When :term:`PV` increases,
  5144. :term:`PR` is conventionally reset to "r0".
  5145. .. note::
  5146. The OpenEmbedded build system does not need the aid of :term:`PR`
  5147. to know when to rebuild a recipe. The build system uses the task
  5148. :ref:`input checksums <overview-manual/concepts:checksums (signatures)>` along with the
  5149. :ref:`stamp <structure-build-tmp-stamps>` and
  5150. :ref:`overview-manual/concepts:shared state cache`
  5151. mechanisms.
  5152. The :term:`PR` variable primarily becomes significant when a package
  5153. manager dynamically installs packages on an already built image. In
  5154. this case, :term:`PR`, which is the default value of
  5155. :term:`PKGR`, helps the package manager distinguish which
  5156. package is the most recent one in cases where many packages have the
  5157. same :term:`PV` (i.e. :term:`PKGV`). A component having many packages with
  5158. the same :term:`PV` usually means that the packages all install the same
  5159. upstream version, but with later (:term:`PR`) version packages including
  5160. packaging fixes.
  5161. .. note::
  5162. :term:`PR` does not need to be increased for changes that do not change the
  5163. package contents or metadata.
  5164. Because manually managing :term:`PR` can be cumbersome and error-prone,
  5165. an automated solution exists. See the
  5166. ":ref:`dev-manual/packages:working with a pr service`" section
  5167. in the Yocto Project Development Tasks Manual for more information.
  5168. :term:`PREFERRED_PROVIDER`
  5169. If multiple recipes provide the same item, this variable determines
  5170. which recipe is preferred and thus provides the item (i.e. the
  5171. preferred provider). You should always suffix this variable with the
  5172. name of the provided item. And, you should define the variable using
  5173. the preferred recipe's name (:term:`PN`). Here is a common
  5174. example::
  5175. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  5176. In the previous example, multiple recipes are providing "virtual/kernel".
  5177. The :term:`PREFERRED_PROVIDER` variable is set with the name (:term:`PN`) of
  5178. the recipe you prefer to provide "virtual/kernel".
  5179. Here are more examples::
  5180. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  5181. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  5182. For more
  5183. information, see the ":ref:`dev-manual/new-recipe:using virtual providers`"
  5184. section in the Yocto Project Development Tasks Manual.
  5185. .. note::
  5186. If you use a ``virtual/\*`` item with :term:`PREFERRED_PROVIDER`, then any
  5187. recipe that :term:`PROVIDES` that item but is not selected (defined)
  5188. by :term:`PREFERRED_PROVIDER` is prevented from building, which is usually
  5189. desirable since this mechanism is designed to select between mutually
  5190. exclusive alternative providers.
  5191. :term:`PREFERRED_PROVIDERS`
  5192. See :term:`bitbake:PREFERRED_PROVIDERS` in the BitBake manual.
  5193. :term:`PREFERRED_VERSION`
  5194. If there are multiple versions of a recipe available, this variable
  5195. determines which version should be given preference. You must always
  5196. suffix the variable with the :term:`PN` you want to select (`python` in
  5197. the first example below), and you should specify the :term:`PV`
  5198. accordingly (`3.4.0` in the example).
  5199. The :term:`PREFERRED_VERSION` variable supports limited wildcard use
  5200. through the "``%``" character. You can use the character to match any
  5201. number of characters, which can be useful when specifying versions
  5202. that contain long revision numbers that potentially change. Here are
  5203. two examples::
  5204. PREFERRED_VERSION_python = "3.4.0"
  5205. PREFERRED_VERSION_linux-yocto = "5.0%"
  5206. .. note::
  5207. The use of the "%" character is limited in that it only works at the end of the
  5208. string. You cannot use the wildcard character in any other
  5209. location of the string.
  5210. The specified version is matched against :term:`PV`, which does not
  5211. necessarily match the version part of the recipe's filename.
  5212. If you want to select a recipe named ``foo_git.bb`` which has :term:`PV`
  5213. set to ``1.2.3+git``, you can do so by setting ```PREFERRED_VERSION_foo``
  5214. to ``1.2.3%`` (i.e. simply setting ``PREFERRED_VERSION_foo`` to ``git``
  5215. will not work as the name of the recipe isn't used, but rather its
  5216. :term:`PV` definition).
  5217. Sometimes the :term:`PREFERRED_VERSION` variable can be set by
  5218. configuration files in a way that is hard to change. You can use
  5219. :term:`OVERRIDES` to set a machine-specific
  5220. override. Here is an example::
  5221. PREFERRED_VERSION_linux-yocto:qemux86 = "5.0%"
  5222. Although not recommended, worst case, you can also use the
  5223. "forcevariable" override, which is the strongest override possible.
  5224. Here is an example::
  5225. PREFERRED_VERSION_linux-yocto:forcevariable = "5.0%"
  5226. .. note::
  5227. The ``:forcevariable`` override is not handled specially. This override
  5228. only works because the default value of :term:`OVERRIDES` includes "forcevariable".
  5229. If a recipe with the specified version is not available, a warning
  5230. message will be shown. See :term:`REQUIRED_VERSION` if you want this
  5231. to be an error instead.
  5232. :term:`PREMIRRORS`
  5233. Specifies additional paths from which the OpenEmbedded build system
  5234. gets source code. When the build system searches for source code, it
  5235. first tries the local download directory. If that location fails, the
  5236. build system tries locations defined by :term:`PREMIRRORS`, the upstream
  5237. source, and then locations specified by
  5238. :term:`MIRRORS` in that order.
  5239. The default value for :term:`PREMIRRORS` is defined in the
  5240. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  5241. Typically, you could add a specific server for the build system to
  5242. attempt before any others by adding something like the following to
  5243. the ``local.conf`` configuration file in the
  5244. :term:`Build Directory`::
  5245. PREMIRRORS:prepend = "\
  5246. git://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5247. ftp://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5248. http://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5249. https://.*/.* &YOCTO_DL_URL;/mirror/sources/"
  5250. These changes cause the
  5251. build system to intercept Git, FTP, HTTP, and HTTPS requests and
  5252. direct them to the ``http://`` sources mirror. You can use
  5253. ``file://`` URLs to point to local directories or network shares as
  5254. well.
  5255. :term:`PRIORITY`
  5256. Indicates the importance of a package.
  5257. :term:`PRIORITY` is considered to be part of the distribution policy
  5258. because the importance of any given recipe depends on the purpose for
  5259. which the distribution is being produced. Thus, :term:`PRIORITY` is not
  5260. normally set within recipes.
  5261. You can set :term:`PRIORITY` to "required", "standard", "extra", and
  5262. "optional", which is the default.
  5263. :term:`PRIVATE_LIBS`
  5264. Specifies libraries installed within a recipe that should be ignored
  5265. by the OpenEmbedded build system's shared library resolver. This
  5266. variable is typically used when software being built by a recipe has
  5267. its own private versions of a library normally provided by another
  5268. recipe. In this case, you would not want the package containing the
  5269. private libraries to be set as a dependency on other unrelated
  5270. packages that should instead depend on the package providing the
  5271. standard version of the library.
  5272. Libraries specified in this variable should be specified by their
  5273. file name. For example, from the Firefox recipe in meta-browser::
  5274. PRIVATE_LIBS = "libmozjs.so \
  5275. libxpcom.so \
  5276. libnspr4.so \
  5277. libxul.so \
  5278. libmozalloc.so \
  5279. libplc4.so \
  5280. libplds4.so"
  5281. For more information, see the
  5282. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5283. section in the Yocto Project Overview and Concepts Manual.
  5284. :term:`PROVIDES`
  5285. A list of aliases by which a particular recipe can be known. By
  5286. default, a recipe's own :term:`PN` is implicitly already in its
  5287. :term:`PROVIDES` list and therefore does not need to mention that it
  5288. provides itself. If a recipe uses :term:`PROVIDES`, the additional
  5289. aliases are synonyms for the recipe and can be useful for satisfying
  5290. dependencies of other recipes during the build as specified by
  5291. :term:`DEPENDS`.
  5292. Consider the following example :term:`PROVIDES` statement from the recipe
  5293. file ``eudev_3.2.9.bb``::
  5294. PROVIDES += "udev"
  5295. The :term:`PROVIDES` statement
  5296. results in the "eudev" recipe also being available as simply "udev".
  5297. .. note::
  5298. A recipe's own recipe name (:term:`PN`) is always implicitly prepended
  5299. to :term:`PROVIDES`, so while using "+=" in the above example may not be
  5300. strictly necessary it is recommended to avoid confusion.
  5301. In addition to providing recipes under alternate names, the
  5302. :term:`PROVIDES` mechanism is also used to implement virtual targets. A
  5303. virtual target is a name that corresponds to some particular
  5304. functionality (e.g. a Linux kernel). Recipes that provide the
  5305. functionality in question list the virtual target in :term:`PROVIDES`.
  5306. Recipes that depend on the functionality in question can include the
  5307. virtual target in :term:`DEPENDS` to leave the choice of provider open.
  5308. Conventionally, virtual targets have names on the form
  5309. "virtual/function" (e.g. "virtual/kernel"). The slash is simply part
  5310. of the name and has no syntactical significance.
  5311. The :term:`PREFERRED_PROVIDER` variable is
  5312. used to select which particular recipe provides a virtual target.
  5313. .. note::
  5314. A corresponding mechanism for virtual runtime dependencies (packages)
  5315. exists. However, the mechanism does not depend on any special
  5316. functionality beyond ordinary variable assignments. For example,
  5317. :term:`VIRTUAL-RUNTIME_dev_manager <VIRTUAL-RUNTIME>` refers to the
  5318. package of the component that manages the ``/dev`` directory.
  5319. Setting the "preferred provider" for runtime dependencies is as
  5320. simple as using the following assignment in a configuration file::
  5321. VIRTUAL-RUNTIME_dev_manager = "udev"
  5322. :term:`PRSERV_HOST`
  5323. The network based :term:`PR` service host and port.
  5324. The ``conf/templates/default/local.conf.sample.extended`` configuration
  5325. file in the :term:`Source Directory` shows how the :term:`PRSERV_HOST`
  5326. variable is set::
  5327. PRSERV_HOST = "localhost:0"
  5328. You must
  5329. set the variable if you want to automatically start a local :ref:`PR
  5330. service <dev-manual/packages:working with a pr service>`. You can
  5331. set :term:`PRSERV_HOST` to other values to use a remote PR service.
  5332. :term:`PRSERV_UPSTREAM`
  5333. This variable can be used to specify an upstream PR server for the local
  5334. PR server to connect to, in the form of ``host:port``.
  5335. This makes it possible to implement local fixes to an upstream package.
  5336. :term:`PSEUDO_IGNORE_PATHS`
  5337. A comma-separated (without spaces) list of path prefixes that should be ignored
  5338. by pseudo when monitoring and recording file operations, in order to avoid
  5339. problems with files being written to outside of the pseudo context and
  5340. reduce pseudo's overhead. A path is ignored if it matches any prefix in the list
  5341. and can include partial directory (or file) names.
  5342. :term:`PTEST_ENABLED`
  5343. Specifies whether or not :ref:`Package
  5344. Test <dev-manual/packages:testing packages with ptest>` (ptest)
  5345. functionality is enabled when building a recipe. You should not set
  5346. this variable directly. Enabling and disabling building Package Tests
  5347. at build time should be done by adding "ptest" to (or removing it
  5348. from) :term:`DISTRO_FEATURES`.
  5349. :term:`PV`
  5350. The version of the recipe. The version is normally extracted from the
  5351. recipe filename. For example, if the recipe is named
  5352. ``expat_2.0.1.bb``, then the default value of :term:`PV` will be "2.0.1".
  5353. :term:`PV` is generally not overridden within a recipe unless it is
  5354. building an unstable (i.e. development) version from a source code
  5355. repository (e.g. Git or Subversion).
  5356. :term:`PV` is the default value of the :term:`PKGV` variable.
  5357. :term:`PYPI_PACKAGE`
  5358. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5359. `PyPI <https://pypi.org/>`__ package name to be built. The default value
  5360. is set based upon :term:`BPN` (stripping any "python-" or "python3-"
  5361. prefix off if present), however for some packages it will need to be set
  5362. explicitly if that will not match the package name (e.g. where the
  5363. package name has a prefix, underscores, uppercase letters etc.)
  5364. :term:`PYPI_PACKAGE_EXT`
  5365. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5366. file extension to use when fetching a package from `PyPI
  5367. <https://pypi.org/>`__. Default is ``tar.gz``.
  5368. :term:`PYPI_SRC_URI`
  5369. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5370. full `pythonhosted <https://files.pythonhosted.org/>`__ URI for
  5371. fetching the package to be built. The default value is constructed
  5372. based upon :term:`PYPI_PACKAGE`, :term:`PYPI_PACKAGE_EXT`, and
  5373. :term:`PV`. Most recipes will not need to set this variable unless
  5374. they are building an unstable (i.e. development) version.
  5375. :term:`PYTHON_ABI`
  5376. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5377. class, denotes the Application Binary Interface (ABI) currently in use
  5378. for Python. By default, the ABI is "m". You do not have to set this
  5379. variable as the OpenEmbedded build system sets it for you.
  5380. The OpenEmbedded build system uses the ABI to construct directory
  5381. names used when installing the Python headers and libraries in
  5382. sysroot (e.g. ``.../python3.3m/...``).
  5383. :term:`QA_EMPTY_DIRS`
  5384. Specifies a list of directories that are expected to be empty when
  5385. packaging; if ``empty-dirs`` appears in :term:`ERROR_QA` or
  5386. :term:`WARN_QA` these will be checked and an error or warning
  5387. (respectively) will be produced.
  5388. The default :term:`QA_EMPTY_DIRS` value is set in
  5389. :ref:`insane.bbclass <ref-classes-insane>`.
  5390. :term:`QA_EMPTY_DIRS_RECOMMENDATION`
  5391. Specifies a recommendation for why a directory must be empty,
  5392. which will be included in the error message if a specific directory
  5393. is found to contain files. Must be overridden with the directory
  5394. path to match on.
  5395. If no recommendation is specified for a directory, then the default
  5396. "but it is expected to be empty" will be used.
  5397. An example message shows if files were present in '/dev'::
  5398. QA_EMPTY_DIRS_RECOMMENDATION:/dev = "but all devices must be created at runtime"
  5399. :term:`RANLIB`
  5400. The minimal command and arguments to run ``ranlib``.
  5401. :term:`RCONFLICTS`
  5402. The list of packages that conflict with packages. Note that packages
  5403. will not be installed if conflicting packages are not first removed.
  5404. Like all package-controlling variables, you must always use them in
  5405. conjunction with a package name override. Here is an example::
  5406. RCONFLICTS:${PN} = "another_conflicting_package_name"
  5407. BitBake, which the OpenEmbedded build system uses, supports
  5408. specifying versioned dependencies. Although the syntax varies
  5409. depending on the packaging format, BitBake hides these differences
  5410. from you. Here is the general syntax to specify versions with the
  5411. :term:`RCONFLICTS` variable::
  5412. RCONFLICTS:${PN} = "package (operator version)"
  5413. For ``operator``, you can specify the following:
  5414. - =
  5415. - <
  5416. - >
  5417. - <=
  5418. - >=
  5419. For example, the following sets up a dependency on version 1.2 or
  5420. greater of the package ``foo``::
  5421. RCONFLICTS:${PN} = "foo (>= 1.2)"
  5422. :term:`RDEPENDS`
  5423. Lists runtime dependencies of a package. These dependencies are other
  5424. packages that must be installed in order for the package to function
  5425. correctly. As an example, the following assignment declares that the
  5426. package ``foo`` needs the packages ``bar`` and ``baz`` to be
  5427. installed::
  5428. RDEPENDS:foo = "bar baz"
  5429. The most common types of package
  5430. runtime dependencies are automatically detected and added. Therefore,
  5431. most recipes do not need to set :term:`RDEPENDS`. For more information,
  5432. see the
  5433. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5434. section in the Yocto Project Overview and Concepts Manual.
  5435. The practical effect of the above :term:`RDEPENDS` assignment is that
  5436. ``bar`` and ``baz`` will be declared as dependencies inside the
  5437. package ``foo`` when it is written out by one of the
  5438. :ref:`do_package_write_* <ref-tasks-package_write_deb>` tasks.
  5439. Exactly how this is done depends on which package format is used,
  5440. which is determined by
  5441. :term:`PACKAGE_CLASSES`. When the
  5442. corresponding package manager installs the package, it will know to
  5443. also install the packages on which it depends.
  5444. To ensure that the packages ``bar`` and ``baz`` get built, the
  5445. previous :term:`RDEPENDS` assignment also causes a task dependency to be
  5446. added. This dependency is from the recipe's
  5447. :ref:`ref-tasks-build` (not to be confused with
  5448. :ref:`ref-tasks-compile`) task to the
  5449. :ref:`do_package_write_* <ref-tasks-package_write_deb>` task of the recipes that build ``bar`` and
  5450. ``baz``.
  5451. The names of the packages you list within :term:`RDEPENDS` must be the
  5452. names of other packages --- they cannot be recipe names. Although
  5453. package names and recipe names usually match, the important point
  5454. here is that you are providing package names within the :term:`RDEPENDS`
  5455. variable. For an example of the default list of packages created from
  5456. a recipe, see the :term:`PACKAGES` variable.
  5457. Because the :term:`RDEPENDS` variable applies to packages being built,
  5458. you should always use the variable in a form with an attached package
  5459. name (remember that a single recipe can build multiple packages). For
  5460. example, suppose you are building a development package that depends
  5461. on the ``perl`` package. In this case, you would use the following
  5462. :term:`RDEPENDS` statement::
  5463. RDEPENDS:${PN}-dev += "perl"
  5464. In the example,
  5465. the development package depends on the ``perl`` package. Thus, the
  5466. :term:`RDEPENDS` variable has the ``${PN}-dev`` package name as part of
  5467. the variable.
  5468. .. note::
  5469. ``RDEPENDS:${PN}-dev`` includes ``${``\ :term:`PN`\ ``}``
  5470. by default. This default is set in the BitBake configuration file
  5471. (``meta/conf/bitbake.conf``). Be careful not to accidentally remove
  5472. ``${PN}`` when modifying ``RDEPENDS:${PN}-dev``. Use the "+=" operator
  5473. rather than the "=" operator.
  5474. The package names you use with :term:`RDEPENDS` must appear as they would
  5475. in the :term:`PACKAGES` variable. The :term:`PKG` variable
  5476. allows a different name to be used for the final package (e.g. the
  5477. :ref:`ref-classes-debian` class uses this to rename
  5478. packages), but this final package name cannot be used with
  5479. :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be
  5480. independent of the package format used.
  5481. BitBake, which the OpenEmbedded build system uses, supports
  5482. specifying versioned dependencies. Although the syntax varies
  5483. depending on the packaging format, BitBake hides these differences
  5484. from you. Here is the general syntax to specify versions with the
  5485. :term:`RDEPENDS` variable::
  5486. RDEPENDS:${PN} = "package (operator version)"
  5487. For ``operator``, you can specify the following:
  5488. - =
  5489. - <
  5490. - >
  5491. - <=
  5492. - >=
  5493. For version, provide the version number.
  5494. .. note::
  5495. You can use :term:`EXTENDPKGV` to provide a full package version
  5496. specification.
  5497. For example, the following sets up a dependency on version 1.2 or
  5498. greater of the package ``foo``::
  5499. RDEPENDS:${PN} = "foo (>= 1.2)"
  5500. For information on build-time dependencies, see the :term:`DEPENDS`
  5501. variable. You can also see the
  5502. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  5503. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`" sections in the
  5504. BitBake User Manual for additional information on tasks and dependencies.
  5505. :term:`RECIPE_MAINTAINER`
  5506. This variable defines the name and e-mail address of the maintainer of a
  5507. recipe. Such information can be used by human users submitted changes,
  5508. and by automated tools to send notifications, for example about
  5509. vulnerabilities or source updates.
  5510. The variable can be defined in a global distribution :oe_git:`maintainers.inc
  5511. </openembedded-core/tree/meta/conf/distro/include/maintainers.inc>` file::
  5512. meta/conf/distro/include/maintainers.inc:RECIPE_MAINTAINER:pn-sysvinit = "Ross Burton <ross.burton@arm.com>"
  5513. It can also be directly defined in a recipe,
  5514. for example in the ``libgpiod`` one::
  5515. RECIPE_MAINTAINER = "Bartosz Golaszewski <brgl@bgdev.pl>"
  5516. :term:`RECIPE_NO_UPDATE_REASON`
  5517. If a recipe should not be replaced by a more recent upstream version,
  5518. putting the reason why in this variable in a recipe allows
  5519. ``devtool check-upgrade-status`` command to display it, as explained
  5520. in the ":ref:`ref-manual/devtool-reference:checking on the upgrade status of a recipe`"
  5521. section.
  5522. :term:`RECIPE_SYSROOT`
  5523. This variable points to the directory that holds all files populated from
  5524. recipes specified in :term:`DEPENDS`. As the name indicates,
  5525. think of this variable as a custom root (``/``) for the recipe that will be
  5526. used by the compiler in order to find headers and other files needed to complete
  5527. its job.
  5528. This variable is related to :term:`STAGING_DIR_HOST` or :term:`STAGING_DIR_TARGET`
  5529. according to the type of the recipe and the build target.
  5530. To better understand this variable, consider the following examples:
  5531. - For ``#include <header.h>``, ``header.h`` should be in ``"${RECIPE_SYSROOT}/usr/include"``
  5532. - For ``-lexample``, ``libexample.so`` should be in ``"${RECIPE_SYSROOT}/lib"``
  5533. or other library sysroot directories.
  5534. The default value is ``"${WORKDIR}/recipe-sysroot"``.
  5535. Do not modify it.
  5536. :term:`RECIPE_SYSROOT_NATIVE`
  5537. This is similar to :term:`RECIPE_SYSROOT` but the populated files are from
  5538. ``-native`` recipes. This allows a recipe built for the target machine to
  5539. use ``native`` tools.
  5540. This variable is related to :term:`STAGING_DIR_NATIVE`.
  5541. The default value is ``"${WORKDIR}/recipe-sysroot-native"``.
  5542. Do not modify it.
  5543. :term:`RECIPE_UPGRADE_EXTRA_TASKS`
  5544. When upgrading a recipe with ``devtool upgrade``, the variable
  5545. :term:`RECIPE_UPGRADE_EXTRA_TASKS` specifies a space-delimited list of
  5546. tasks to run after the new sources have been unpacked.
  5547. For some recipes, after the new source has been unpacked, additional tasks
  5548. may need to be run during an upgrade. A good example of this is recipes
  5549. which inherit :ref:`ref-classes-cargo-update-recipe-crates`, where the
  5550. `do_update_crates` task needs to be run whenever Cargo.toml/Cargo.lock have
  5551. changed in the source.
  5552. :term:`REPODIR`
  5553. See :term:`bitbake:REPODIR` in the BitBake manual.
  5554. :term:`REQUIRED_DISTRO_FEATURES`
  5555. When inheriting the :ref:`ref-classes-features_check`
  5556. class, this variable identifies distribution features that must exist
  5557. in the current configuration in order for the OpenEmbedded build
  5558. system to build the recipe. In other words, if the
  5559. :term:`REQUIRED_DISTRO_FEATURES` variable lists a feature that does not
  5560. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  5561. the recipe will be skipped, and if the build system attempts to build
  5562. the recipe then an error will be triggered.
  5563. :term:`REQUIRED_VERSION`
  5564. If there are multiple versions of a recipe available, this variable
  5565. determines which version should be given preference.
  5566. :term:`REQUIRED_VERSION` works in exactly the same manner as
  5567. :term:`PREFERRED_VERSION`, except that if the specified version is not
  5568. available then an error message is shown and the build fails
  5569. immediately.
  5570. If both :term:`REQUIRED_VERSION` and :term:`PREFERRED_VERSION` are set
  5571. for the same recipe, the :term:`REQUIRED_VERSION` value applies.
  5572. :term:`RETAIN_DIRS_ALWAYS`
  5573. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5574. space-separated recipe-specific directories to always save in a tarball
  5575. whether the recipe build has failed or not.
  5576. :term:`RETAIN_DIRS_FAILURE`
  5577. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5578. space-separated recipe-specific directories to save in a tarball on
  5579. failure of the recipe's build.
  5580. :term:`RETAIN_DIRS_GLOBAL_ALWAYS`
  5581. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5582. space-separated directories that are not specific to a recipe to save in a
  5583. tarball whether the build has failed or not.
  5584. :term:`RETAIN_DIRS_GLOBAL_FAILURE`
  5585. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5586. space-separated directories that are not specific to a recipe to save in a
  5587. tarball on build failure.
  5588. :term:`RETAIN_ENABLED`
  5589. Disables the creation of a tarball of the work directory done by the
  5590. :ref:`ref-classes-retain` class. Can be set to specific recipes to disable
  5591. the class when the class was inherited globally with :term:`INHERIT`.
  5592. :term:`RETAIN_OUTDIR`
  5593. When inheriting the :ref:`ref-classes-retain` class, this variable
  5594. specifies the directory where to save the tarball of the work directory.
  5595. The default directory is ``${TMPDIR}/retain``.
  5596. :term:`RETAIN_TARBALL_SUFFIX`
  5597. When inheriting the :ref:`ref-classes-retain` class, this variable
  5598. specifies the suffix of the tarball of the work directory. The default
  5599. suffix is ``${DATETIME}.tar.gz``.
  5600. :term:`RM_WORK_EXCLUDE`
  5601. With :ref:`ref-classes-rm-work` enabled, this variable
  5602. specifies a list of recipes whose work directories should not be removed.
  5603. See the ":ref:`ref-classes-rm-work`" section for more details.
  5604. :term:`ROOT_HOME`
  5605. Defines the root home directory. By default, this directory is set as
  5606. follows in the BitBake configuration file::
  5607. ROOT_HOME ??= "/home/root"
  5608. .. note::
  5609. This default value is likely used because some embedded solutions
  5610. prefer to have a read-only root filesystem and prefer to keep
  5611. writeable data in one place.
  5612. You can override the default by setting the variable in any layer or
  5613. in the ``local.conf`` file. Because the default is set using a "weak"
  5614. assignment (i.e. "??="), you can use either of the following forms to
  5615. define your override::
  5616. ROOT_HOME = "/root"
  5617. ROOT_HOME ?= "/root"
  5618. These
  5619. override examples use ``/root``, which is probably the most commonly
  5620. used override.
  5621. :term:`ROOTFS`
  5622. Indicates a filesystem image to include as the root filesystem.
  5623. The :term:`ROOTFS` variable is an optional variable used with the
  5624. :ref:`ref-classes-image-live` class.
  5625. :term:`ROOTFS_POSTINSTALL_COMMAND`
  5626. Specifies a list of functions to call after the OpenEmbedded build
  5627. system has installed packages. You can specify functions separated by
  5628. spaces::
  5629. ROOTFS_POSTINSTALL_COMMAND += "function"
  5630. If you need to pass the root filesystem path to a command within a
  5631. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5632. directory that becomes the root filesystem image. See the
  5633. :term:`IMAGE_ROOTFS` variable for more
  5634. information.
  5635. :term:`ROOTFS_POSTPROCESS_COMMAND`
  5636. Specifies a list of functions to call once the OpenEmbedded build
  5637. system has created the root filesystem. You can specify functions
  5638. separated by spaces::
  5639. ROOTFS_POSTPROCESS_COMMAND += "function"
  5640. If you need to pass the root filesystem path to a command within a
  5641. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5642. directory that becomes the root filesystem image. See the
  5643. :term:`IMAGE_ROOTFS` variable for more
  5644. information.
  5645. :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  5646. Specifies a list of functions to call after the OpenEmbedded build
  5647. system has removed unnecessary packages. When runtime package
  5648. management is disabled in the image, several packages are removed
  5649. including ``base-passwd``, ``shadow``, and ``update-alternatives``.
  5650. You can specify functions separated by spaces::
  5651. ROOTFS_POSTUNINSTALL_COMMAND += "function"
  5652. If you need to pass the root filesystem path to a command within a
  5653. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5654. directory that becomes the root filesystem image. See the
  5655. :term:`IMAGE_ROOTFS` variable for more
  5656. information.
  5657. :term:`ROOTFS_PREPROCESS_COMMAND`
  5658. Specifies a list of functions to call before the OpenEmbedded build
  5659. system has created the root filesystem. You can specify functions
  5660. separated by spaces::
  5661. ROOTFS_PREPROCESS_COMMAND += "function"
  5662. If you need to pass the root filesystem path to a command within a
  5663. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5664. directory that becomes the root filesystem image. See the
  5665. :term:`IMAGE_ROOTFS` variable for more
  5666. information.
  5667. :term:`RPMBUILD_EXTRA_PARAMS`
  5668. Specifies extra user-defined parameters for the ``rpmbuild`` command.
  5669. :term:`RPROVIDES`
  5670. A list of package name aliases that a package also provides. These
  5671. aliases are useful for satisfying runtime dependencies of other
  5672. packages both during the build and on the target (as specified by
  5673. :term:`RDEPENDS`).
  5674. .. note::
  5675. A package's own name is implicitly already in its :term:`RPROVIDES` list.
  5676. As with all package-controlling variables, you must always use the
  5677. variable in conjunction with a package name override. Here is an
  5678. example::
  5679. RPROVIDES:${PN} = "widget-abi-2"
  5680. :term:`RRECOMMENDS`
  5681. A list of packages that extends the usability of a package being
  5682. built. The package being built does not depend on this list of
  5683. packages in order to successfully build, but rather uses them for
  5684. extended usability. To specify runtime dependencies for packages, see
  5685. the :term:`RDEPENDS` variable.
  5686. The package manager will automatically install the :term:`RRECOMMENDS`
  5687. list of packages when installing the built package. However, you can
  5688. prevent listed packages from being installed by using the
  5689. :term:`BAD_RECOMMENDATIONS`,
  5690. :term:`NO_RECOMMENDATIONS`, and
  5691. :term:`PACKAGE_EXCLUDE` variables.
  5692. Packages specified in :term:`RRECOMMENDS` need not actually be produced.
  5693. However, there must be a recipe providing each package, either
  5694. through the :term:`PACKAGES` or
  5695. :term:`PACKAGES_DYNAMIC` variables or the
  5696. :term:`RPROVIDES` variable, or an error will occur
  5697. during the build. If such a recipe does exist and the package is not
  5698. produced, the build continues without error.
  5699. Because the :term:`RRECOMMENDS` variable applies to packages being built,
  5700. you should always attach an override to the variable to specify the
  5701. particular package whose usability is being extended. For example,
  5702. suppose you are building a development package that is extended to
  5703. support wireless functionality. In this case, you would use the
  5704. following::
  5705. RRECOMMENDS:${PN}-dev += "wireless_package_name"
  5706. In the
  5707. example, the package name (``${PN}-dev``) must appear as it would in
  5708. the :term:`PACKAGES` namespace before any renaming of the output package
  5709. by classes such as :ref:`ref-classes-debian`.
  5710. BitBake, which the OpenEmbedded build system uses, supports
  5711. specifying versioned recommends. Although the syntax varies depending
  5712. on the packaging format, BitBake hides these differences from you.
  5713. Here is the general syntax to specify versions with the
  5714. :term:`RRECOMMENDS` variable::
  5715. RRECOMMENDS:${PN} = "package (operator version)"
  5716. For ``operator``, you can specify the following:
  5717. - =
  5718. - <
  5719. - >
  5720. - <=
  5721. - >=
  5722. For example, the following sets up a recommend on version 1.2 or
  5723. greater of the package ``foo``::
  5724. RRECOMMENDS:${PN} = "foo (>= 1.2)"
  5725. :term:`RREPLACES`
  5726. A list of packages replaced by a package. The package manager uses
  5727. this variable to determine which package should be installed to
  5728. replace other package(s) during an upgrade. In order to also have the
  5729. other package(s) removed at the same time, you must add the name of
  5730. the other package to the :term:`RCONFLICTS` variable.
  5731. As with all package-controlling variables, you must use this variable
  5732. in conjunction with a package name override. Here is an example::
  5733. RREPLACES:${PN} = "other_package_being_replaced"
  5734. BitBake, which the OpenEmbedded build system uses, supports
  5735. specifying versioned replacements. Although the syntax varies
  5736. depending on the packaging format, BitBake hides these differences
  5737. from you. Here is the general syntax to specify versions with the
  5738. :term:`RREPLACES` variable::
  5739. RREPLACES:${PN} = "package (operator version)"
  5740. For ``operator``, you can specify the following:
  5741. - =
  5742. - <
  5743. - >
  5744. - <=
  5745. - >=
  5746. For example, the following sets up a replacement using version 1.2
  5747. or greater of the package ``foo``::
  5748. RREPLACES:${PN} = "foo (>= 1.2)"
  5749. :term:`RSUGGESTS`
  5750. A list of additional packages that you can suggest for installation
  5751. by the package manager at the time a package is installed. Not all
  5752. package managers support this functionality.
  5753. As with all package-controlling variables, you must always use this
  5754. variable in conjunction with a package name override. Here is an
  5755. example::
  5756. RSUGGESTS:${PN} = "useful_package another_package"
  5757. :term:`RUST_CHANNEL`
  5758. Specifies which version of Rust to build - "stable", "beta" or "nightly".
  5759. The default value is "stable". Set this at your own risk, as values other
  5760. than "stable" are not guaranteed to work at a given time.
  5761. :term:`S`
  5762. The location in the :term:`Build Directory` where
  5763. unpacked recipe source code resides. By default, this directory is
  5764. ``${``\ :term:`WORKDIR`\ ``}/${``\ :term:`BPN`\ ``}-${``\ :term:`PV`\ ``}``,
  5765. where ``${BPN}`` is the base recipe name and ``${PV}`` is the recipe
  5766. version. If the source tarball extracts the code to a directory named
  5767. anything other than ``${BPN}-${PV}``, or if the source code is
  5768. fetched from an SCM such as Git or Subversion, then you must set
  5769. :term:`S` in the recipe so that the OpenEmbedded build system knows where
  5770. to find the unpacked source.
  5771. As an example, assume a :term:`Source Directory`
  5772. top-level folder named ``poky`` and a default :term:`Build Directory` at
  5773. ``poky/build``. In this case, the work directory the build system
  5774. uses to keep the unpacked recipe for ``db`` is the following::
  5775. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  5776. The unpacked source code resides in the ``db-5.1.19`` folder.
  5777. This next example assumes a Git repository. By default, Git
  5778. repositories are cloned to ``${WORKDIR}/git`` during
  5779. :ref:`ref-tasks-fetch`. Since this path is different
  5780. from the default value of :term:`S`, you must set it specifically so the
  5781. source can be located::
  5782. SRC_URI = "git://path/to/repo.git;branch=main"
  5783. S = "${WORKDIR}/git"
  5784. :term:`SANITY_REQUIRED_UTILITIES`
  5785. Specifies a list of command-line utilities that should be checked for
  5786. during the initial sanity checking process when running BitBake. If
  5787. any of the utilities are not installed on the build host, then
  5788. BitBake immediately exits with an error.
  5789. :term:`SANITY_TESTED_DISTROS`
  5790. A list of the host distribution identifiers that the build system has
  5791. been tested against. Identifiers consist of the host distributor ID
  5792. followed by the release, as reported by the ``lsb_release`` tool or
  5793. as read from ``/etc/lsb-release``. Separate the list items with
  5794. explicit newline characters (``\n``). If :term:`SANITY_TESTED_DISTROS` is
  5795. not empty and the current value of
  5796. :term:`NATIVELSBSTRING` does not appear in the
  5797. list, then the build system reports a warning that indicates the
  5798. current host distribution has not been tested as a build host.
  5799. :term:`SDK_ARCH`
  5800. The target architecture for the SDK. Typically, you do not directly
  5801. set this variable. Instead, use :term:`SDKMACHINE`.
  5802. :term:`SDK_ARCHIVE_TYPE`
  5803. Specifies the type of archive to create for the SDK. Valid values:
  5804. - ``tar.xz`` (default)
  5805. - ``tar.zst``
  5806. - ``7zip``
  5807. - ``zip``
  5808. Only one archive type can be specified.
  5809. :term:`SDK_BUILDINFO_FILE`
  5810. When using the :ref:`ref-classes-image-buildinfo` class,
  5811. specifies the file in the SDK to write the build information into. The
  5812. default value is "``/buildinfo``".
  5813. :term:`SDK_CUSTOM_TEMPLATECONF`
  5814. When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to
  5815. "1" and a ``conf/templateconf.cfg`` file exists in the :term:`Build Directory`
  5816. (:term:`TOPDIR`) then this will be copied into the SDK.
  5817. :term:`SDK_DEPLOY`
  5818. The directory set up and used by the
  5819. :ref:`populate_sdk_base <ref-classes-populate-sdk>` class to which the
  5820. SDK is deployed. The :ref:`populate_sdk_base <ref-classes-populate-sdk>`
  5821. class defines :term:`SDK_DEPLOY` as follows::
  5822. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  5823. :term:`SDK_DIR`
  5824. The parent directory used by the OpenEmbedded build system when
  5825. creating SDK output. The
  5826. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines
  5827. the variable as follows::
  5828. SDK_DIR = "${WORKDIR}/sdk"
  5829. .. note::
  5830. The :term:`SDK_DIR` directory is a temporary directory as it is part of
  5831. :term:`WORKDIR`. The final output directory is :term:`SDK_DEPLOY`.
  5832. :term:`SDK_EXT_TYPE`
  5833. Controls whether or not shared state artifacts are copied into the
  5834. extensible SDK. The default value of "full" copies all of the
  5835. required shared state artifacts into the extensible SDK. The value
  5836. "minimal" leaves these artifacts out of the SDK.
  5837. .. note::
  5838. If you set the variable to "minimal", you need to ensure
  5839. :term:`SSTATE_MIRRORS` is set in the SDK's configuration to enable the
  5840. artifacts to be fetched as needed.
  5841. :term:`SDK_HOST_MANIFEST`
  5842. The manifest file for the host part of the SDK. This file lists all
  5843. the installed packages that make up the host part of the SDK. The
  5844. file contains package information on a line-per-package basis as
  5845. follows::
  5846. packagename packagearch version
  5847. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5848. defines the manifest file as follows::
  5849. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  5850. The location is derived using the :term:`SDK_DEPLOY` and
  5851. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5852. :term:`SDK_INCLUDE_PKGDATA`
  5853. When set to "1", specifies to include the packagedata for all recipes
  5854. in the "world" target in the extensible SDK. Including this data
  5855. allows the ``devtool search`` command to find these recipes in search
  5856. results, as well as allows the ``devtool add`` command to map
  5857. dependencies more effectively.
  5858. .. note::
  5859. Enabling the :term:`SDK_INCLUDE_PKGDATA`
  5860. variable significantly increases build time because all of world
  5861. needs to be built. Enabling the variable also slightly increases
  5862. the size of the extensible SDK.
  5863. :term:`SDK_INCLUDE_TOOLCHAIN`
  5864. When set to "1", specifies to include the toolchain in the extensible
  5865. SDK. Including the toolchain is useful particularly when
  5866. :term:`SDK_EXT_TYPE` is set to "minimal" to keep
  5867. the SDK reasonably small but you still want to provide a usable
  5868. toolchain. For example, suppose you want to use the toolchain from an
  5869. IDE or from other tools and you do not want to perform additional
  5870. steps to install the toolchain.
  5871. The :term:`SDK_INCLUDE_TOOLCHAIN` variable defaults to "0" if
  5872. :term:`SDK_EXT_TYPE` is set to "minimal", and defaults to "1" if
  5873. :term:`SDK_EXT_TYPE` is set to "full".
  5874. :term:`SDK_NAME`
  5875. The base name for SDK output files. The default value (as set in
  5876. ``meta-poky/conf/distro/poky.conf``) is derived from the
  5877. :term:`DISTRO`,
  5878. :term:`TCLIBC`,
  5879. :term:`SDKMACHINE`,
  5880. :term:`IMAGE_BASENAME`,
  5881. :term:`TUNE_PKGARCH`, and
  5882. :term:`MACHINE` variables::
  5883. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
  5884. :term:`SDK_OS`
  5885. Specifies the operating system for which the SDK will be built. The
  5886. default value is the value of :term:`BUILD_OS`.
  5887. :term:`SDK_OUTPUT`
  5888. The location used by the OpenEmbedded build system when creating SDK
  5889. output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`
  5890. class defines the variable as follows::
  5891. SDK_DIR = "${WORKDIR}/sdk"
  5892. SDK_OUTPUT = "${SDK_DIR}/image"
  5893. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  5894. .. note::
  5895. The :term:`SDK_OUTPUT` directory is a temporary directory as it is part of
  5896. :term:`WORKDIR` by way of :term:`SDK_DIR`. The final output directory is
  5897. :term:`SDK_DEPLOY`.
  5898. :term:`SDK_PACKAGE_ARCHS`
  5899. Specifies a list of architectures compatible with the SDK machine.
  5900. This variable is set automatically and should not normally be
  5901. hand-edited. Entries are separated using spaces and listed in order
  5902. of priority. The default value for :term:`SDK_PACKAGE_ARCHS` is "all any
  5903. noarch ${SDK_ARCH}-${SDKPKGSUFFIX}".
  5904. :term:`SDK_POSTPROCESS_COMMAND`
  5905. Specifies a list of functions to call once the OpenEmbedded build
  5906. system creates the SDK. You can specify functions separated by
  5907. spaces:
  5908. SDK_POSTPROCESS_COMMAND += "function"
  5909. If you need to pass an SDK path to a command within a function, you
  5910. can use ``${SDK_DIR}``, which points to the parent directory used by
  5911. the OpenEmbedded build system when creating SDK output. See the
  5912. :term:`SDK_DIR` variable for more information.
  5913. :term:`SDK_PREFIX`
  5914. The toolchain binary prefix used for
  5915. :ref:`ref-classes-nativesdk` recipes. The
  5916. OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the
  5917. :term:`TARGET_PREFIX` when building
  5918. ``nativesdk`` recipes. The default value is "${SDK_SYS}-".
  5919. :term:`SDK_RECRDEP_TASKS`
  5920. A list of shared state tasks added to the extensible SDK. By default,
  5921. the following tasks are added:
  5922. - :ref:`ref-tasks-populate_lic`
  5923. - :ref:`ref-tasks-package_qa`
  5924. - :ref:`ref-tasks-populate_sysroot`
  5925. - :ref:`ref-tasks-deploy`
  5926. Despite the default value of "" for the
  5927. :term:`SDK_RECRDEP_TASKS` variable, the above four tasks are always added
  5928. to the SDK. To specify tasks beyond these four, you need to use the
  5929. :term:`SDK_RECRDEP_TASKS` variable (e.g. you are defining additional
  5930. tasks that are needed in order to build
  5931. :term:`SDK_TARGETS`).
  5932. :term:`SDK_SYS`
  5933. Specifies the system, including the architecture and the operating
  5934. system, for which the SDK will be built.
  5935. The OpenEmbedded build system automatically sets this variable based
  5936. on :term:`SDK_ARCH`,
  5937. :term:`SDK_VENDOR`, and
  5938. :term:`SDK_OS`. You do not need to set the :term:`SDK_SYS`
  5939. variable yourself.
  5940. :term:`SDK_TARGET_MANIFEST`
  5941. The manifest file for the target part of the SDK. This file lists all
  5942. the installed packages that make up the target part of the SDK. The
  5943. file contains package information on a line-per-package basis as
  5944. follows::
  5945. packagename packagearch version
  5946. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5947. defines the manifest file as follows::
  5948. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  5949. The location is derived using the :term:`SDK_DEPLOY` and
  5950. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5951. :term:`SDK_TARGETS`
  5952. A list of targets to install from shared state as part of the
  5953. standard or extensible SDK installation. The default value is "${PN}"
  5954. (i.e. the image from which the SDK is built).
  5955. The :term:`SDK_TARGETS` variable is an internal variable and typically
  5956. would not be changed.
  5957. :term:`SDK_TITLE`
  5958. The title to be printed when running the SDK installer. By default,
  5959. this title is based on the :term:`DISTRO_NAME` or
  5960. :term:`DISTRO` variable and is set in the
  5961. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5962. follows::
  5963. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  5964. For the default distribution "poky",
  5965. :term:`SDK_TITLE` is set to "Poky (Yocto Project Reference Distro)".
  5966. For information on how to change this default title, see the
  5967. ":ref:`sdk-manual/appendix-customizing:changing the extensible sdk installer title`"
  5968. section in the Yocto Project Application Development and the
  5969. Extensible Software Development Kit (eSDK) manual.
  5970. :term:`SDK_TOOLCHAIN_LANGS`
  5971. Specifies programming languages to support in the SDK, as a
  5972. space-separated list. Currently supported items are ``rust`` and ``go``.
  5973. :term:`SDK_UPDATE_URL`
  5974. An optional URL for an update server for the extensible SDK. If set,
  5975. the value is used as the default update server when running
  5976. ``devtool sdk-update`` within the extensible SDK.
  5977. :term:`SDK_VENDOR`
  5978. Specifies the name of the SDK vendor.
  5979. :term:`SDK_VERSION`
  5980. Specifies the version of the SDK. The Poky distribution configuration file
  5981. (``/meta-poky/conf/distro/poky.conf``) sets the default
  5982. :term:`SDK_VERSION` as follows::
  5983. SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}"
  5984. For additional information, see the
  5985. :term:`DISTRO_VERSION` and
  5986. :term:`METADATA_REVISION` variables.
  5987. :term:`SDK_ZIP_OPTIONS`
  5988. Specifies extra options to pass to the ``zip`` command when zipping the SDK
  5989. (i.e. when :term:`SDK_ARCHIVE_TYPE` is set to "zip"). The default value is
  5990. "-y".
  5991. :term:`SDKEXTPATH`
  5992. The default installation directory for the Extensible SDK. By
  5993. default, this directory is based on the :term:`DISTRO`
  5994. variable and is set in the
  5995. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5996. follows::
  5997. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  5998. For the
  5999. default distribution "poky", the :term:`SDKEXTPATH` is set to "poky_sdk".
  6000. For information on how to change this default directory, see the
  6001. ":ref:`sdk-manual/appendix-customizing:changing the default sdk installation directory`"
  6002. section in the Yocto Project Application Development and the
  6003. Extensible Software Development Kit (eSDK) manual.
  6004. :term:`SDKIMAGE_FEATURES`
  6005. Equivalent to :term:`IMAGE_FEATURES`. However, this variable applies to
  6006. the SDK generated from an image using the following command::
  6007. $ bitbake -c populate_sdk imagename
  6008. :term:`SDKMACHINE`
  6009. The machine for which the SDK is built. In other words, the SDK is built
  6010. such that it runs on the target you specify with the :term:`SDKMACHINE`
  6011. value. The value points to a corresponding ``.conf`` file under
  6012. ``conf/machine-sdk/`` in the enabled layers, for example ``aarch64``,
  6013. ``i586``, ``i686``, ``ppc64``, ``ppc64le``, and ``x86_64`` are
  6014. :oe_git:`available in OpenEmbedded-Core </openembedded-core/tree/meta/conf/machine-sdk>`.
  6015. The variable defaults to :term:`BUILD_ARCH` so that SDKs are built for the
  6016. architecture of the build machine.
  6017. .. note::
  6018. You cannot set the :term:`SDKMACHINE`
  6019. variable in your distribution configuration file. If you do, the
  6020. configuration will not take effect.
  6021. :term:`SDKPATH`
  6022. Defines the path used to collect the SDK components and build the
  6023. installer.
  6024. :term:`SDKPATHINSTALL`
  6025. Defines the path offered to the user for installation of the SDK that
  6026. is generated by the OpenEmbedded build system. The path appears as
  6027. the default location for installing the SDK when you run the SDK's
  6028. installation script. You can override the offered path when you run
  6029. the script.
  6030. :term:`SDKTARGETSYSROOT`
  6031. The full path to the sysroot used for cross-compilation within an SDK
  6032. as it will be when installed into the default
  6033. :term:`SDKPATHINSTALL`.
  6034. :term:`SECTION`
  6035. The section in which packages should be categorized. Package
  6036. management utilities can make use of this variable.
  6037. :term:`SELECTED_OPTIMIZATION`
  6038. Specifies the optimization flags passed to the C compiler when
  6039. building for the target. The flags are passed through the default
  6040. value of the :term:`TARGET_CFLAGS` variable.
  6041. The :term:`SELECTED_OPTIMIZATION` variable takes the value of
  6042. :term:`FULL_OPTIMIZATION` unless :term:`DEBUG_BUILD` = "1", in which
  6043. case the value of :term:`DEBUG_OPTIMIZATION` is used.
  6044. :term:`SERIAL_CONSOLES`
  6045. Defines a serial console (TTY) to enable using
  6046. :wikipedia:`getty <Getty_(Unix)>`. Provide a value that specifies the
  6047. baud rate followed by the TTY device name separated by a semicolon.
  6048. Use spaces to separate multiple devices::
  6049. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  6050. :term:`SETUPTOOLS_BUILD_ARGS`
  6051. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6052. class, this variable can be used to specify additional arguments to be
  6053. passed to ``setup.py build`` in the ``setuptools3_do_compile()`` task.
  6054. :term:`SETUPTOOLS_SETUP_PATH`
  6055. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6056. class, this variable should be used to specify the directory in which
  6057. the ``setup.py`` file is located if it is not at the root of the source
  6058. tree (as specified by :term:`S`). For example, in a recipe where the
  6059. sources are fetched from a Git repository and ``setup.py`` is in a
  6060. ``python/pythonmodule`` subdirectory, you would have this::
  6061. S = "${WORKDIR}/git"
  6062. SETUPTOOLS_SETUP_PATH = "${S}/python/pythonmodule"
  6063. :term:`SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS`
  6064. A list of recipe dependencies that should not be used to determine
  6065. signatures of tasks from one recipe when they depend on tasks from
  6066. another recipe. For example::
  6067. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  6068. In the previous example, ``intone`` depends on ``mplayer2``.
  6069. You can use the special token ``"*"`` on the left-hand side of the
  6070. dependency to match all recipes except the one on the right-hand
  6071. side. Here is an example::
  6072. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  6073. In the previous example, all recipes except ``quilt-native`` ignore
  6074. task signatures from the ``quilt-native`` recipe when determining
  6075. their task signatures.
  6076. Use of this variable is one mechanism to remove dependencies that
  6077. affect task signatures and thus force rebuilds when a recipe changes.
  6078. .. note::
  6079. If you add an inappropriate dependency for a recipe relationship,
  6080. the software might break during runtime if the interface of the
  6081. second recipe was changed after the first recipe had been built.
  6082. :term:`SIGGEN_EXCLUDERECIPES_ABISAFE`
  6083. A list of recipes that are completely stable and will never change.
  6084. The ABI for the recipes in the list are presented by output from the
  6085. tasks run to build the recipe. Use of this variable is one way to
  6086. remove dependencies from one recipe on another that affect task
  6087. signatures and thus force rebuilds when the recipe changes.
  6088. .. note::
  6089. If you add an inappropriate variable to this list, the software
  6090. might break at runtime if the interface of the recipe was changed
  6091. after the other had been built.
  6092. :term:`SIGGEN_LOCKEDSIGS`
  6093. The list of locked tasks, with the form::
  6094. SIGGEN_LOCKEDSIGS += "<package>:<task>:<signature>"
  6095. If ``<signature>`` exists for the specified ``<task>`` and ``<package>``
  6096. in the sstate cache, BitBake will use the cached output instead of
  6097. rebuilding the ``<task>``. If it does not exist, BitBake will build the
  6098. ``<task>`` and the sstate cache will be used next time.
  6099. Example::
  6100. SIGGEN_LOCKEDSIGS += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6101. You can obtain the signature of all the tasks for the recipe ``bc`` using::
  6102. bitbake -S none bc
  6103. Then you can look at files in ``build/tmp/stamps/<arch>/bc`` and look for
  6104. files like: ``<PV>.do_compile.sigdata.09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0``.
  6105. Alternatively, you can also use :doc:`bblock </dev-manual/bblock>` to
  6106. generate this line for you.
  6107. :term:`SIGGEN_LOCKEDSIGS_TASKSIG_CHECK`
  6108. Specifies the debug level of task signature check. 3 levels are supported:
  6109. * ``info``: displays a "Note" message to remind the user that a task is locked
  6110. and the current signature matches the locked one.
  6111. * ``warn``: displays a "Warning" message if a task is locked and the current
  6112. signature does not match the locked one.
  6113. * ``error``: same as warn but displays an "Error" message and aborts.
  6114. :term:`SIGGEN_LOCKEDSIGS_TYPES`
  6115. Allowed overrides for :term:`SIGGEN_LOCKEDSIGS`. This is mainly used
  6116. for architecture specific locks. A common value for
  6117. :term:`SIGGEN_LOCKEDSIGS_TYPES` is ``${PACKAGE_ARCHS}``::
  6118. SIGGEN_LOCKEDSIGS_TYPES += "${PACKAGE_ARCHS}"
  6119. SIGGEN_LOCKEDSIGS_core2-64 += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6120. SIGGEN_LOCKEDSIGS_cortexa57 += "bc:do_compile:12178eb6d55ef602a8fe638e49862fd247e07b228f0f08967697b655bfe4bb61"
  6121. Here, the ``do_compile`` task from ``bc`` will be locked only for
  6122. ``core2-64`` and ``cortexa57`` but not for other architectures such as
  6123. ``mips32r2``.
  6124. :term:`SITEINFO_BITS`
  6125. Specifies the number of bits for the target system CPU. The value
  6126. should be either "32" or "64".
  6127. :term:`SITEINFO_ENDIANNESS`
  6128. Specifies the endian byte order of the target system. The value
  6129. should be either "le" for little-endian or "be" for big-endian.
  6130. :term:`SKIP_FILEDEPS`
  6131. Enables removal of all files from the "Provides" section of an RPM
  6132. package. Removal of these files is required for packages containing
  6133. prebuilt binaries and libraries such as ``libstdc++`` and ``glibc``.
  6134. To enable file removal, set the variable to "1" in your
  6135. ``conf/local.conf`` configuration file in your:
  6136. :term:`Build Directory`::
  6137. SKIP_FILEDEPS = "1"
  6138. :term:`SKIP_RECIPE`
  6139. Used to prevent the OpenEmbedded build system from building a given
  6140. recipe. Specify the :term:`PN` value as a variable flag (``varflag``)
  6141. and provide a reason, which will be reported when attempting to
  6142. build the recipe.
  6143. To prevent a recipe from being built, use the :term:`SKIP_RECIPE`
  6144. variable in your ``local.conf`` file or distribution configuration.
  6145. Here is an example which prevents ``myrecipe`` from being built::
  6146. SKIP_RECIPE[myrecipe] = "Not supported by our organization."
  6147. :term:`SOC_FAMILY`
  6148. A colon-separated list grouping together machines based upon the same
  6149. family of SoC (System On Chip). You typically set this variable in a
  6150. common ``.inc`` file that you include in the configuration files of all
  6151. the machines.
  6152. .. note::
  6153. You must include ``conf/machine/include/soc-family.inc`` for this
  6154. variable to appear in :term:`MACHINEOVERRIDES`.
  6155. :term:`SOLIBS`
  6156. Defines the suffix for shared libraries used on the target platform.
  6157. By default, this suffix is ".so.*" for all Linux-based systems and is
  6158. defined in the ``meta/conf/bitbake.conf`` configuration file.
  6159. You will see this variable referenced in the default values of
  6160. ``FILES:${PN}``.
  6161. :term:`SOLIBSDEV`
  6162. Defines the suffix for the development symbolic link (symlink) for
  6163. shared libraries on the target platform. By default, this suffix is
  6164. ".so" for Linux-based systems and is defined in the
  6165. ``meta/conf/bitbake.conf`` configuration file.
  6166. You will see this variable referenced in the default values of
  6167. ``FILES:${PN}-dev``.
  6168. :term:`SOURCE_DATE_EPOCH`
  6169. This defines a date expressed in number of seconds since
  6170. the UNIX EPOCH (01 Jan 1970 00:00:00 UTC), which is used by
  6171. multiple build systems to force a timestamp in built binaries.
  6172. Many upstream projects already support this variable.
  6173. You will find more details in the `official specifications
  6174. <https://reproducible-builds.org/specs/source-date-epoch/>`__.
  6175. A value for each recipe is computed from the sources by
  6176. :oe_git:`meta/lib/oe/reproducible.py </openembedded-core/tree/meta/lib/oe/reproducible.py>`.
  6177. If a recipe wishes to override the default behavior, it should set its
  6178. own :term:`SOURCE_DATE_EPOCH` value::
  6179. SOURCE_DATE_EPOCH = "1613559011"
  6180. :term:`SOURCE_MIRROR_FETCH`
  6181. When you are fetching files to create a mirror of sources (i.e.
  6182. creating a source mirror), setting :term:`SOURCE_MIRROR_FETCH` to "1" in
  6183. your ``local.conf`` configuration file ensures the source for all
  6184. recipes are fetched regardless of whether or not a recipe is
  6185. compatible with the configuration. A recipe is considered
  6186. incompatible with the currently configured machine when either or
  6187. both the :term:`COMPATIBLE_MACHINE`
  6188. variable and :term:`COMPATIBLE_HOST` variables
  6189. specify compatibility with a machine other than that of the current
  6190. machine or host.
  6191. .. note::
  6192. Do not set the :term:`SOURCE_MIRROR_FETCH`
  6193. variable unless you are creating a source mirror. In other words,
  6194. do not set the variable during a normal build.
  6195. :term:`SOURCE_MIRROR_URL`
  6196. Defines your own :term:`PREMIRRORS` from which to
  6197. first fetch source before attempting to fetch from the upstream
  6198. specified in :term:`SRC_URI`.
  6199. To use this variable, you must globally inherit the
  6200. :ref:`ref-classes-own-mirrors` class and then provide
  6201. the URL to your mirrors. Here is the general syntax::
  6202. INHERIT += "own-mirrors"
  6203. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror"
  6204. .. note::
  6205. You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
  6206. :term:`SPDX_ARCHIVE_PACKAGED`
  6207. This option allows to add to :term:`SPDX` output compressed archives
  6208. of the files in the generated target packages.
  6209. Such archives are available in
  6210. ``tmp/deploy/spdx/MACHINE/packages/packagename.tar.zst``
  6211. under the :term:`Build Directory`.
  6212. Enable this option as follows::
  6213. SPDX_ARCHIVE_PACKAGED = "1"
  6214. According to our tests on release 4.1 "langdale", building
  6215. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this
  6216. option multiplied the size of the ``tmp/deploy/spdx`` directory by a
  6217. factor of 13 (+1.6 GiB for this image), compared to just using the
  6218. :ref:`ref-classes-create-spdx` class with no option.
  6219. Note that this option doesn't increase the size of :term:`SPDX`
  6220. files in ``tmp/deploy/images/MACHINE``.
  6221. :term:`SPDX_ARCHIVE_SOURCES`
  6222. This option allows to add to :term:`SPDX` output compressed archives
  6223. of the sources for packages installed on the target. It currently
  6224. only works when :term:`SPDX_INCLUDE_SOURCES` is set.
  6225. This is one way of fulfilling "source code access" license
  6226. requirements.
  6227. Such source archives are available in
  6228. ``tmp/deploy/spdx/MACHINE/recipes/recipe-packagename.tar.zst``
  6229. under the :term:`Build Directory`.
  6230. Enable this option as follows::
  6231. SPDX_INCLUDE_SOURCES = "1"
  6232. SPDX_ARCHIVE_SOURCES = "1"
  6233. According to our tests on release 4.1 "langdale", building
  6234. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6235. these options multiplied the size of the ``tmp/deploy/spdx``
  6236. directory by a factor of 11 (+1.4 GiB for this image),
  6237. compared to just using the :ref:`ref-classes-create-spdx`
  6238. class with no option.
  6239. Note that using this option only marginally increases the size
  6240. of the :term:`SPDX` output in ``tmp/deploy/images/MACHINE/``
  6241. (+ 0.07\% with the tested image), compared to just enabling
  6242. :term:`SPDX_INCLUDE_SOURCES`.
  6243. :term:`SPDX_CUSTOM_ANNOTATION_VARS`
  6244. This option allows to associate `SPDX annotations
  6245. <https://spdx.github.io/spdx-spec/v2.3/annotations/>`__ to a recipe,
  6246. using the values of variables in the recipe::
  6247. ANNOTATION1 = "First annotation for recipe"
  6248. ANNOTATION2 = "Second annotation for recipe"
  6249. SPDX_CUSTOM_ANNOTATION_VARS = "ANNOTATION1 ANNOTATION2"
  6250. This will add a new block to the recipe ``.sdpx.json`` output::
  6251. "annotations": [
  6252. {
  6253. "annotationDate": "2023-04-18T08:32:12Z",
  6254. "annotationType": "OTHER",
  6255. "annotator": "Tool: oe-spdx-creator - 1.0",
  6256. "comment": "ANNOTATION1=First annotation for recipe"
  6257. },
  6258. {
  6259. "annotationDate": "2023-04-18T08:32:12Z",
  6260. "annotationType": "OTHER",
  6261. "annotator": "Tool: oe-spdx-creator - 1.0",
  6262. "comment": "ANNOTATION2=Second annotation for recipe"
  6263. }
  6264. ],
  6265. :term:`SPDX_INCLUDE_SOURCES`
  6266. This option allows to add a description of the source files used to build
  6267. the host tools and the target packages, to the ``spdx.json`` files in
  6268. ``tmp/deploy/spdx/MACHINE/recipes/`` under the :term:`Build Directory`.
  6269. As a consequence, the ``spdx.json`` files under the ``by-namespace`` and
  6270. ``packages`` subdirectories in ``tmp/deploy/spdx/MACHINE`` are also
  6271. modified to include references to such source file descriptions.
  6272. Enable this option as follows::
  6273. SPDX_INCLUDE_SOURCES = "1"
  6274. According to our tests on release 4.1 "langdale", building
  6275. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6276. this option multiplied the total size of the ``tmp/deploy/spdx``
  6277. directory by a factor of 3 (+291 MiB for this image),
  6278. and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in
  6279. ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this
  6280. image), compared to just using the :ref:`ref-classes-create-spdx` class
  6281. with no option.
  6282. :term:`SPDX_NAMESPACE_PREFIX`
  6283. This option could be used in order to change the prefix of ``spdxDocument``
  6284. and the prefix of ``documentNamespace``. It is set by default to
  6285. ``http://spdx.org/spdxdoc``.
  6286. :term:`SPDX_PRETTY`
  6287. This option makes the SPDX output more human-readable, using
  6288. identation and newlines, instead of the default output in a
  6289. single line::
  6290. SPDX_PRETTY = "1"
  6291. The generated SPDX files are approximately 20% bigger, but
  6292. this option is recommended if you want to inspect the SPDX
  6293. output files with a text editor.
  6294. :term:`SPDXLICENSEMAP`
  6295. Maps commonly used license names to their SPDX counterparts found in
  6296. ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP`
  6297. mappings, see the ``meta/conf/licenses.conf`` file.
  6298. For additional information, see the :term:`LICENSE`
  6299. variable.
  6300. :term:`SPECIAL_PKGSUFFIX`
  6301. A list of prefixes for :term:`PN` used by the OpenEmbedded
  6302. build system to create variants of recipes or packages. The list
  6303. specifies the prefixes to strip off during certain circumstances such
  6304. as the generation of the :term:`BPN` variable.
  6305. :term:`SPL_BINARY`
  6306. The file type for the Secondary Program Loader (SPL). Some devices
  6307. use an SPL from which to boot (e.g. the BeagleBone development
  6308. board). For such cases, you can declare the file type of the SPL
  6309. binary in the ``u-boot.inc`` include file, which is used in the
  6310. U-Boot recipe.
  6311. The SPL file type is set to "null" by default in the ``u-boot.inc``
  6312. file as follows::
  6313. # Some versions of u-boot build an SPL (Second Program Loader) image that
  6314. # should be packaged along with the u-boot binary as well as placed in the
  6315. # deploy directory. For those versions they can set the following variables
  6316. # to allow packaging the SPL.
  6317. SPL_BINARY ?= ""
  6318. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  6319. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  6320. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  6321. The :term:`SPL_BINARY` variable helps form
  6322. various ``SPL_*`` variables used by the OpenEmbedded build system.
  6323. See the BeagleBone machine configuration example in the
  6324. ":ref:`dev-manual/layers:adding a layer using the \`\`bitbake-layers\`\` script`"
  6325. section in the Yocto Project Board Support Package Developer's Guide
  6326. for additional information.
  6327. :term:`SPL_MKIMAGE_DTCOPTS`
  6328. Options for the device tree compiler passed to ``mkimage -D`` feature
  6329. while creating a FIT image with the :ref:`ref-classes-uboot-sign`
  6330. class. If :term:`SPL_MKIMAGE_DTCOPTS` is not set then the
  6331. :ref:`ref-classes-uboot-sign` class will not pass the ``-D`` option
  6332. to ``mkimage``.
  6333. The default value is set to "" by the :ref:`ref-classes-uboot-config`
  6334. class.
  6335. :term:`SPL_SIGN_ENABLE`
  6336. Enable signing of the U-Boot FIT image. The default value is "0".
  6337. This variable is used by the :ref:`ref-classes-uboot-sign` class.
  6338. :term:`SPL_SIGN_KEYDIR`
  6339. Location of the directory containing the RSA key and certificate used for
  6340. signing the U-Boot FIT image, used by the :ref:`ref-classes-uboot-sign`
  6341. class.
  6342. :term:`SPL_SIGN_KEYNAME`
  6343. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  6344. for signing U-Boot FIT image stored in the :term:`SPL_SIGN_KEYDIR`
  6345. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  6346. certificate stored in the :term:`SPL_SIGN_KEYDIR` directory, you will
  6347. have to set :term:`SPL_SIGN_KEYNAME` to ``dev``.
  6348. :term:`SPLASH`
  6349. This variable, used by the :ref:`ref-classes-image` class, allows
  6350. to choose splashscreen applications. Set it to the names of packages
  6351. for such applications to use. This variable is set by default to
  6352. ``psplash``.
  6353. :term:`SPLASH_IMAGES`
  6354. This variable, used by the ``psplash`` recipe, allows to customize
  6355. the default splashscreen image.
  6356. Specified images in PNG format are converted to ``.h`` files by the recipe,
  6357. and are included in the ``psplash`` binary, so you won't find them in
  6358. the root filesystem.
  6359. To make such a change, it is recommended to customize the
  6360. ``psplash`` recipe in a custom layer. Here is an example structure for
  6361. an ``ACME`` board::
  6362. meta-acme/recipes-core/psplash
  6363. ├── files
  6364. │   └── logo-acme.png
  6365. └── psplash_%.bbappend
  6366. And here are the contents of the ``psplash_%.bbappend`` file in
  6367. this example::
  6368. SPLASH_IMAGES = "file://logo-acme.png;outsuffix=default"
  6369. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  6370. You could even add specific configuration options for ``psplash``,
  6371. for example::
  6372. EXTRA_OECONF += "--disable-startup-msg --enable-img-fullscreen"
  6373. For information on append files, see the
  6374. ":ref:`dev-manual/layers:appending other layers metadata with your layer`"
  6375. section.
  6376. :term:`SRCREV_FORMAT`
  6377. See :term:`bitbake:SRCREV_FORMAT` in the BitBake manual.
  6378. :term:`SRC_URI`
  6379. See the BitBake manual for the initial description for this variable:
  6380. :term:`bitbake:SRC_URI`.
  6381. The following features are added by OpenEmbedded and the Yocto Project.
  6382. There are standard and recipe-specific options. Here are standard ones:
  6383. - ``apply`` --- whether to apply the patch or not. The default
  6384. action is to apply the patch.
  6385. - ``striplevel`` --- which striplevel to use when applying the
  6386. patch. The default level is 1.
  6387. - ``patchdir`` --- specifies the directory in which the patch should
  6388. be applied. The default is ``${``\ :term:`S`\ ``}``.
  6389. Here are options specific to recipes building code from a revision
  6390. control system:
  6391. - ``mindate`` --- apply the patch only if
  6392. :term:`SRCDATE` is equal to or greater than
  6393. ``mindate``.
  6394. - ``maxdate`` --- apply the patch only if :term:`SRCDATE` is not later
  6395. than ``maxdate``.
  6396. - ``minrev`` --- apply the patch only if :term:`SRCREV` is equal to or
  6397. greater than ``minrev``.
  6398. - ``maxrev`` --- apply the patch only if :term:`SRCREV` is not later
  6399. than ``maxrev``.
  6400. - ``rev`` --- apply the patch only if :term:`SRCREV` is equal to
  6401. ``rev``.
  6402. - ``notrev`` --- apply the patch only if :term:`SRCREV` is not equal to
  6403. ``rev``.
  6404. .. note::
  6405. If you want the build system to pick up files specified through
  6406. a :term:`SRC_URI` statement from your append file, you need to be
  6407. sure to extend the :term:`FILESPATH` variable by also using the
  6408. :term:`FILESEXTRAPATHS` variable from within your append file.
  6409. :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH`
  6410. By default, the OpenEmbedded build system automatically detects
  6411. whether :term:`SRC_URI` contains files that are machine-specific. If so,
  6412. the build system automatically changes :term:`PACKAGE_ARCH`. Setting this
  6413. variable to "0" disables this behavior.
  6414. :term:`SRCDATE`
  6415. The date of the source code used to build the package. This variable
  6416. applies only if the source was fetched from a Source Code Manager
  6417. (SCM).
  6418. :term:`SRCPV`
  6419. The variable :term:`SRCPV` is deprecated. It was previously used to
  6420. include source control information in :term:`PV` for :term:`bitbake` to
  6421. work correctly but this is no longer a requirement. Source control
  6422. information will be automatically included by :term:`bitbake` in the
  6423. variable :term:`PKGV` during packaging if the ``+`` sign is present in
  6424. :term:`PV`.
  6425. .. note::
  6426. The :term:`SRCPV` variable used to be defined in the
  6427. ``meta/conf/bitbake.conf`` configuration file in the :term:`Source
  6428. Directory` as follows::
  6429. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  6430. The ``get_srcrev`` function can still be used to include source control
  6431. information in variables manually.
  6432. :term:`SRCREV`
  6433. The revision of the source code used to build the package. This
  6434. variable applies to Subversion, Git, Mercurial, and Bazaar only. Note
  6435. that if you want to build a fixed revision and you want to avoid
  6436. performing a query on the remote repository every time BitBake parses
  6437. your recipe, you should specify a :term:`SRCREV` that is a full revision
  6438. identifier (e.g. the full SHA hash in git) and not just a tag.
  6439. .. note::
  6440. For information on limitations when inheriting the latest revision
  6441. of software using :term:`SRCREV`, see the :term:`AUTOREV` variable
  6442. description and the
  6443. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  6444. section, which is in the Yocto Project Development Tasks Manual.
  6445. :term:`SRCTREECOVEREDTASKS`
  6446. A list of tasks that are typically not relevant (and therefore skipped)
  6447. when building using the :ref:`ref-classes-externalsrc`
  6448. class. The default value as set in that class file is the set of tasks
  6449. that are rarely needed when using external source::
  6450. SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
  6451. The notable exception is when processing external kernel source as
  6452. defined in the :ref:`ref-classes-kernel-yocto` class file (formatted for
  6453. aesthetics)::
  6454. SRCTREECOVEREDTASKS += "\
  6455. do_validate_branches \
  6456. do_kernel_configcheck \
  6457. do_kernel_checkout \
  6458. do_fetch \
  6459. do_unpack \
  6460. do_patch \
  6461. "
  6462. See the associated :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD`
  6463. variables for more information.
  6464. :term:`SSTATE_DIR`
  6465. The directory for the shared state cache.
  6466. :term:`SSTATE_EXCLUDEDEPS_SYSROOT`
  6467. This variable allows to specify indirect dependencies to exclude
  6468. from sysroots, for example to avoid the situations when a dependency on
  6469. any ``-native`` recipe will pull in all dependencies of that recipe
  6470. in the recipe sysroot. This behaviour might not always be wanted,
  6471. for example when that ``-native`` recipe depends on build tools
  6472. that are not relevant for the current recipe.
  6473. This way, irrelevant dependencies are ignored, which could have
  6474. prevented the reuse of prebuilt artifacts stored in the Shared
  6475. State Cache.
  6476. :term:`SSTATE_EXCLUDEDEPS_SYSROOT` is evaluated as two regular
  6477. expressions of recipe and dependency to ignore. An example
  6478. is the rule in :oe_git:`meta/conf/layer.conf </openembedded-core/tree/meta/conf/layer.conf>`::
  6479. # Nothing needs to depend on libc-initial
  6480. # base-passwd/shadow-sysroot don't need their dependencies
  6481. SSTATE_EXCLUDEDEPS_SYSROOT += "\
  6482. .*->.*-initial.* \
  6483. .*(base-passwd|shadow-sysroot)->.* \
  6484. "
  6485. The ``->`` substring represents the dependency between
  6486. the two regular expressions.
  6487. :term:`SSTATE_MIRROR_ALLOW_NETWORK`
  6488. If set to "1", allows fetches from mirrors that are specified in
  6489. :term:`SSTATE_MIRRORS` to work even when
  6490. fetching from the network is disabled by setting :term:`BB_NO_NETWORK` to
  6491. "1". Using the :term:`SSTATE_MIRROR_ALLOW_NETWORK` variable is useful if
  6492. you have set :term:`SSTATE_MIRRORS` to point to an internal server for
  6493. your shared state cache, but you want to disable any other fetching
  6494. from the network.
  6495. :term:`SSTATE_MIRRORS`
  6496. Configures the OpenEmbedded build system to search other mirror
  6497. locations for prebuilt cache data objects before building out the
  6498. data. This variable works like fetcher :term:`MIRRORS`
  6499. and :term:`PREMIRRORS` and points to the cache
  6500. locations to check for the shared state (sstate) objects.
  6501. You can specify a filesystem directory or a remote URL such as HTTP
  6502. or FTP. The locations you specify need to contain the shared state
  6503. cache (sstate-cache) results from previous builds. The sstate-cache
  6504. you point to can also be from builds on other machines.
  6505. When pointing to sstate build artifacts on another machine that uses
  6506. a different GCC version for native builds, you must configure
  6507. :term:`SSTATE_MIRRORS` with a regular expression that maps local search
  6508. paths to server paths. The paths need to take into account
  6509. :term:`NATIVELSBSTRING` set by the :ref:`ref-classes-uninative` class.
  6510. For example, the following maps the local search path ``universal-4.9``
  6511. to the server-provided path server_url_sstate_path::
  6512. SSTATE_MIRRORS ?= "file://universal-4.9/(.*) https://server_url_sstate_path/universal-4.8/\1"
  6513. If a mirror uses the same structure as
  6514. :term:`SSTATE_DIR`, you need to add "PATH" at the
  6515. end as shown in the examples below. The build system substitutes the
  6516. correct path within the directory structure::
  6517. SSTATE_MIRRORS ?= "\
  6518. file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
  6519. file://.* file:///some-local-dir/sstate/PATH"
  6520. The Yocto Project actually shares the cache data objects built by its
  6521. autobuilder::
  6522. SSTATE_MIRRORS ?= "file://.* http://cdn.jsdelivr.net/yocto/sstate/all/PATH;downloadfilename=PATH"
  6523. As such binary artifacts are built for the generic QEMU machines
  6524. supported by the various Poky releases, they are less likely to be
  6525. reusable in real projects building binaries optimized for a specific
  6526. CPU family.
  6527. :term:`SSTATE_SCAN_FILES`
  6528. Controls the list of files the OpenEmbedded build system scans for
  6529. hardcoded installation paths. The variable uses a space-separated
  6530. list of filenames (not paths) with standard wildcard characters
  6531. allowed.
  6532. During a build, the OpenEmbedded build system creates a shared state
  6533. (sstate) object during the first stage of preparing the sysroots.
  6534. That object is scanned for hardcoded paths for original installation
  6535. locations. The list of files that are scanned for paths is controlled
  6536. by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files
  6537. they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather
  6538. than the variable being comprehensively set. The
  6539. :ref:`ref-classes-sstate` class specifies the default list of files.
  6540. For details on the process, see the :ref:`ref-classes-staging` class.
  6541. :term:`STAGING_BASE_LIBDIR_NATIVE`
  6542. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6543. directory for the build host.
  6544. :term:`STAGING_BASELIBDIR`
  6545. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6546. directory for the target for which the current recipe is being built
  6547. (:term:`STAGING_DIR_HOST`).
  6548. :term:`STAGING_BINDIR`
  6549. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6550. directory for the target for which the current recipe is being built
  6551. (:term:`STAGING_DIR_HOST`).
  6552. :term:`STAGING_BINDIR_CROSS`
  6553. Specifies the path to the directory containing binary configuration
  6554. scripts. These scripts provide configuration information for other
  6555. software that wants to make use of libraries or include files
  6556. provided by the software associated with the script.
  6557. .. note::
  6558. This style of build configuration has been largely replaced by
  6559. ``pkg-config``. Consequently, if ``pkg-config`` is supported by the
  6560. library to which you are linking, it is recommended you use
  6561. ``pkg-config`` instead of a provided configuration script.
  6562. :term:`STAGING_BINDIR_NATIVE`
  6563. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6564. directory for the build host.
  6565. :term:`STAGING_DATADIR`
  6566. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6567. directory for the target for which the current recipe is being built
  6568. (:term:`STAGING_DIR_HOST`).
  6569. :term:`STAGING_DATADIR_NATIVE`
  6570. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6571. directory for the build host.
  6572. :term:`STAGING_DIR`
  6573. Helps construct the ``recipe-sysroots`` directory, which is used
  6574. during packaging.
  6575. For information on how staging for recipe-specific sysroots occurs,
  6576. see the :ref:`ref-tasks-populate_sysroot`
  6577. task, the ":ref:`sdk-manual/extensible:sharing files between recipes`"
  6578. section in the Yocto Project Development Tasks Manual, the
  6579. ":ref:`overview-manual/concepts:configuration, compilation, and staging`"
  6580. section in the Yocto Project Overview and Concepts Manual, and the
  6581. :term:`SYSROOT_DIRS` variable.
  6582. .. note::
  6583. Recipes should never write files directly under the :term:`STAGING_DIR`
  6584. directory because the OpenEmbedded build system manages the
  6585. directory automatically. Instead, files should be installed to
  6586. ``${``\ :term:`D`\ ``}`` within your recipe's :ref:`ref-tasks-install`
  6587. task and then the OpenEmbedded build system will stage a subset of
  6588. those files into the sysroot.
  6589. :term:`STAGING_DIR_HOST`
  6590. Specifies the path to the sysroot directory for the system on which
  6591. the component is built to run (the system that hosts the component).
  6592. For most recipes, this sysroot is the one in which that recipe's
  6593. :ref:`ref-tasks-populate_sysroot` task copies
  6594. files. Exceptions include ``-native`` recipes, where the
  6595. :ref:`ref-tasks-populate_sysroot` task instead uses
  6596. :term:`STAGING_DIR_NATIVE`. Depending on
  6597. the type of recipe and the build target, :term:`STAGING_DIR_HOST` can
  6598. have the following values:
  6599. - For recipes building for the target machine, the value is
  6600. "${:term:`STAGING_DIR`}/${:term:`MACHINE`}".
  6601. - For native recipes building for the build host, the value is empty
  6602. given the assumption that when building for the build host, the
  6603. build host's own directories should be used.
  6604. .. note::
  6605. ``-native`` recipes are not installed into host paths like such
  6606. as ``/usr``. Rather, these recipes are installed into
  6607. :term:`STAGING_DIR_NATIVE`. When compiling ``-native`` recipes,
  6608. standard build environment variables such as
  6609. :term:`CPPFLAGS` and
  6610. :term:`CFLAGS` are set up so that both host paths
  6611. and :term:`STAGING_DIR_NATIVE` are searched for libraries and
  6612. headers using, for example, GCC's ``-isystem`` option.
  6613. Thus, the emphasis is that the ``STAGING_DIR*`` variables
  6614. should be viewed as input variables by tasks such as
  6615. :ref:`ref-tasks-configure`,
  6616. :ref:`ref-tasks-compile`, and
  6617. :ref:`ref-tasks-install`. Having the real system
  6618. root correspond to :term:`STAGING_DIR_HOST` makes conceptual sense
  6619. for ``-native`` recipes, as they make use of host headers and
  6620. libraries.
  6621. Check :term:`RECIPE_SYSROOT` and :term:`RECIPE_SYSROOT_NATIVE`.
  6622. :term:`STAGING_DIR_NATIVE`
  6623. Specifies the path to the sysroot directory used when building
  6624. components that run on the build host itself.
  6625. The default value is ``"${RECIPE_SYSROOT_NATIVE}"``,
  6626. check :term:`RECIPE_SYSROOT_NATIVE`.
  6627. :term:`STAGING_DIR_TARGET`
  6628. Specifies the path to the sysroot used for the system for which the
  6629. component generates code. For components that do not generate code,
  6630. which is the majority, :term:`STAGING_DIR_TARGET` is set to match
  6631. :term:`STAGING_DIR_HOST`.
  6632. Some recipes build binaries that can run on the target system but those
  6633. binaries in turn generate code for another different system (e.g.
  6634. :ref:`ref-classes-cross-canadian` recipes). Using terminology from GNU,
  6635. the primary system is referred to as the "HOST" and the secondary, or
  6636. different, system is referred to as the "TARGET". Thus, the binaries
  6637. run on the "HOST" system and generate binaries for the "TARGET"
  6638. system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used
  6639. for the "HOST" system, while :term:`STAGING_DIR_TARGET` points to the
  6640. sysroot used for the "TARGET" system.
  6641. :term:`STAGING_ETCDIR_NATIVE`
  6642. Specifies the path to the ``/etc`` subdirectory of the sysroot
  6643. directory for the build host.
  6644. :term:`STAGING_EXECPREFIXDIR`
  6645. Specifies the path to the ``/usr`` subdirectory of the sysroot
  6646. directory for the target for which the current recipe is being built
  6647. (:term:`STAGING_DIR_HOST`).
  6648. :term:`STAGING_INCDIR`
  6649. Specifies the path to the ``/usr/include`` subdirectory of the
  6650. sysroot directory for the target for which the current recipe being
  6651. built (:term:`STAGING_DIR_HOST`).
  6652. :term:`STAGING_INCDIR_NATIVE`
  6653. Specifies the path to the ``/usr/include`` subdirectory of the
  6654. sysroot directory for the build host.
  6655. :term:`STAGING_KERNEL_BUILDDIR`
  6656. Points to the directory containing the kernel build artifacts.
  6657. Recipes building software that needs to access kernel build artifacts
  6658. (e.g. ``systemtap-uprobes``) can look in the directory specified with
  6659. the :term:`STAGING_KERNEL_BUILDDIR` variable to find these artifacts
  6660. after the kernel has been built.
  6661. :term:`STAGING_KERNEL_DIR`
  6662. The directory with kernel headers that are required to build
  6663. out-of-tree modules.
  6664. :term:`STAGING_LIBDIR`
  6665. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6666. directory for the target for which the current recipe is being built
  6667. (:term:`STAGING_DIR_HOST`).
  6668. :term:`STAGING_LIBDIR_NATIVE`
  6669. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6670. directory for the build host.
  6671. :term:`STAMP`
  6672. Specifies the base path used to create recipe stamp files. The path
  6673. to an actual stamp file is constructed by evaluating this string and
  6674. then appending additional information. Currently, the default
  6675. assignment for :term:`STAMP` as set in the ``meta/conf/bitbake.conf``
  6676. file is::
  6677. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  6678. For information on how BitBake uses stamp files to determine if a
  6679. task should be rerun, see the
  6680. ":ref:`overview-manual/concepts:stamp files and the rerunning of tasks`"
  6681. section in the Yocto Project Overview and Concepts Manual.
  6682. See :term:`STAMPS_DIR`,
  6683. :term:`MULTIMACH_TARGET_SYS`,
  6684. :term:`PN`, :term:`EXTENDPE`,
  6685. :term:`PV`, and :term:`PR` for related variable
  6686. information.
  6687. :term:`STAMPCLEAN`
  6688. See :term:`bitbake:STAMPCLEAN` in the BitBake manual.
  6689. :term:`STAMPS_DIR`
  6690. Specifies the base directory in which the OpenEmbedded build system
  6691. places stamps. The default directory is ``${TMPDIR}/stamps``.
  6692. :term:`STRIP`
  6693. The minimal command and arguments to run ``strip``, which is used to
  6694. strip symbols.
  6695. :term:`SUMMARY`
  6696. The short (72 characters or less) summary of the binary package for
  6697. packaging systems such as ``opkg``, ``rpm``, or ``dpkg``. By default,
  6698. :term:`SUMMARY` is used to define the
  6699. :term:`DESCRIPTION` variable if :term:`DESCRIPTION` is
  6700. not set in the recipe.
  6701. :term:`SVNDIR`
  6702. The directory in which files checked out of a Subversion system are
  6703. stored.
  6704. :term:`SYSLINUX_DEFAULT_CONSOLE`
  6705. Specifies the kernel boot default console. If you want to use a
  6706. console other than the default, set this variable in your recipe as
  6707. follows where "X" is the console number you want to use::
  6708. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  6709. The :ref:`ref-classes-syslinux` class initially sets
  6710. this variable to null but then checks for a value later.
  6711. :term:`SYSLINUX_OPTS`
  6712. Lists additional options to add to the syslinux file. You need to set
  6713. this variable in your recipe. If you want to list multiple options,
  6714. separate the options with a semicolon character (``;``).
  6715. The :ref:`ref-classes-syslinux` class uses this variable
  6716. to create a set of options.
  6717. :term:`SYSLINUX_SERIAL`
  6718. Specifies the alternate serial port or turns it off. To turn off
  6719. serial, set this variable to an empty string in your recipe. The
  6720. variable's default value is set in the
  6721. :ref:`ref-classes-syslinux` class as follows::
  6722. SYSLINUX_SERIAL ?= "0 115200"
  6723. The class checks for and uses the variable as needed.
  6724. :term:`SYSLINUX_SERIAL_TTY`
  6725. Specifies the alternate console=tty... kernel boot argument. The
  6726. variable's default value is set in the :ref:`ref-classes-syslinux`
  6727. class as follows::
  6728. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  6729. The class checks for and uses the variable as needed.
  6730. :term:`SYSLINUX_SPLASH`
  6731. An ``.LSS`` file used as the background for the VGA boot menu when
  6732. you use the boot menu. You need to set this variable in your recipe.
  6733. The :ref:`ref-classes-syslinux` class checks for this
  6734. variable and if found, the OpenEmbedded build system installs the
  6735. splash screen.
  6736. :term:`SYSROOT_DESTDIR`
  6737. Points to the temporary directory under the work directory (default
  6738. "``${``\ :term:`WORKDIR`\ ``}/sysroot-destdir``")
  6739. where the files populated into the sysroot are assembled during the
  6740. :ref:`ref-tasks-populate_sysroot` task.
  6741. :term:`SYSROOT_DIRS`
  6742. Directories that are staged into the sysroot by the
  6743. :ref:`ref-tasks-populate_sysroot` task. By
  6744. default, the following directories are staged::
  6745. SYSROOT_DIRS = " \
  6746. ${includedir} \
  6747. ${libdir} \
  6748. ${base_libdir} \
  6749. ${nonarch_base_libdir} \
  6750. ${datadir} \
  6751. /sysroot-only \
  6752. "
  6753. Consider the following example in which you need to manipulate this variable.
  6754. Assume you have a recipe ``A`` that provides a shared library ``.so.*`` that is
  6755. installed into a custom folder other than "``${libdir}``"
  6756. or "``${base_libdir}``", let's say "``/opt/lib``".
  6757. .. note::
  6758. This is not a recommended way to deal with shared libraries, but this
  6759. is just to show the usefulness of setting :term:`SYSROOT_DIRS`.
  6760. When a recipe ``B`` :term:`DEPENDS` on ``A``, it means what is in
  6761. :term:`SYSROOT_DIRS` will be copied from :term:`D` of the recipe ``A``
  6762. into ``B``'s :term:`SYSROOT_DESTDIR` that is "``${WORKDIR}/sysroot-destdir``".
  6763. Now, since ``/opt/lib`` is not in :term:`SYSROOT_DIRS`, it will never be copied to
  6764. ``A``'s :term:`RECIPE_SYSROOT`, which is "``${WORKDIR}/recipe-sysroot``". So,
  6765. the linking process will fail.
  6766. To fix this, you need to add ``/opt/lib`` to :term:`SYSROOT_DIRS`::
  6767. SYSROOT_DIRS:append = " /opt/lib"
  6768. .. note::
  6769. Even after setting ``/opt/lib`` to :term:`SYSROOT_DIRS`, the linking process will still fail
  6770. because the linker does not know that location, since :term:`TARGET_LDFLAGS`
  6771. doesn't contain it (if your recipe is for the target). Therefore, so you should add::
  6772. TARGET_LDFLAGS:append = " -L${RECIPE_SYSROOT}/opt/lib"
  6773. :term:`SYSROOT_DIRS_IGNORE`
  6774. Directories that are not staged into the sysroot by the
  6775. :ref:`ref-tasks-populate_sysroot` task. You
  6776. can use this variable to exclude certain subdirectories of
  6777. directories listed in :term:`SYSROOT_DIRS` from
  6778. staging. By default, the following directories are not staged::
  6779. SYSROOT_DIRS_IGNORE = " \
  6780. ${mandir} \
  6781. ${docdir} \
  6782. ${infodir} \
  6783. ${datadir}/X11/locale \
  6784. ${datadir}/applications \
  6785. ${datadir}/bash-completion \
  6786. ${datadir}/fonts \
  6787. ${datadir}/gtk-doc/html \
  6788. ${datadir}/installed-tests \
  6789. ${datadir}/locale \
  6790. ${datadir}/pixmaps \
  6791. ${datadir}/terminfo \
  6792. ${libdir}/${BPN}/ptest \
  6793. "
  6794. :term:`SYSROOT_DIRS_NATIVE`
  6795. Extra directories staged into the sysroot by the
  6796. :ref:`ref-tasks-populate_sysroot` task for
  6797. ``-native`` recipes, in addition to those specified in
  6798. :term:`SYSROOT_DIRS`. By default, the following
  6799. extra directories are staged::
  6800. SYSROOT_DIRS_NATIVE = " \
  6801. ${bindir} \
  6802. ${sbindir} \
  6803. ${base_bindir} \
  6804. ${base_sbindir} \
  6805. ${libexecdir} \
  6806. ${sysconfdir} \
  6807. ${localstatedir} \
  6808. "
  6809. .. note::
  6810. Programs built by ``-native`` recipes run directly from the sysroot
  6811. (:term:`STAGING_DIR_NATIVE`), which is why additional directories
  6812. containing program executables and supporting files need to be staged.
  6813. :term:`SYSROOT_PREPROCESS_FUNCS`
  6814. A list of functions to execute after files are staged into the
  6815. sysroot. These functions are usually used to apply additional
  6816. processing on the staged files, or to stage additional files.
  6817. :term:`SYSTEMD_AUTO_ENABLE`
  6818. When inheriting the :ref:`ref-classes-systemd` class,
  6819. this variable specifies whether the specified service in
  6820. :term:`SYSTEMD_SERVICE` should start
  6821. automatically or not. By default, the service is enabled to
  6822. automatically start at boot time. The default setting is in the
  6823. :ref:`ref-classes-systemd` class as follows::
  6824. SYSTEMD_AUTO_ENABLE ??= "enable"
  6825. You can disable the service by setting the variable to "disable".
  6826. :term:`SYSTEMD_BOOT_CFG`
  6827. When :term:`EFI_PROVIDER` is set to
  6828. "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the
  6829. configuration file that should be used. By default, the
  6830. :ref:`ref-classes-systemd-boot` class sets the
  6831. :term:`SYSTEMD_BOOT_CFG` as follows::
  6832. SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
  6833. For information on Systemd-boot, see the `Systemd-boot
  6834. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6835. :term:`SYSTEMD_BOOT_ENTRIES`
  6836. When :term:`EFI_PROVIDER` is set to
  6837. "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a
  6838. list of entry files (``*.conf``) to install that contain one boot
  6839. entry per file. By default, the :ref:`ref-classes-systemd-boot` class
  6840. sets the :term:`SYSTEMD_BOOT_ENTRIES` as follows::
  6841. SYSTEMD_BOOT_ENTRIES ?= ""
  6842. For information on Systemd-boot, see the `Systemd-boot
  6843. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6844. :term:`SYSTEMD_BOOT_TIMEOUT`
  6845. When :term:`EFI_PROVIDER` is set to
  6846. "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the
  6847. boot menu timeout in seconds. By default, the
  6848. :ref:`ref-classes-systemd-boot` class sets the
  6849. :term:`SYSTEMD_BOOT_TIMEOUT` as follows::
  6850. SYSTEMD_BOOT_TIMEOUT ?= "10"
  6851. For information on Systemd-boot, see the `Systemd-boot
  6852. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6853. :term:`SYSTEMD_DEFAULT_TARGET`
  6854. This variable allows to set the default unit that systemd starts at bootup.
  6855. Usually, this is either ``multi-user.target`` or ``graphical.target``.
  6856. This works by creating a ``default.target`` symbolic link to the chosen systemd
  6857. target file.
  6858. See `systemd's documentation
  6859. <https://www.freedesktop.org/software/systemd/man/systemd.special.html>`__
  6860. for details.
  6861. For example, this variable is used in the :oe_git:`core-image-minimal-xfce.bb
  6862. </meta-openembedded/tree/meta-xfce/recipes-core/images/core-image-minimal-xfce.bb>`
  6863. recipe::
  6864. SYSTEMD_DEFAULT_TARGET = "graphical.target"
  6865. :term:`SYSTEMD_PACKAGES`
  6866. When inheriting the :ref:`ref-classes-systemd` class,
  6867. this variable locates the systemd unit files when they are not found
  6868. in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES`
  6869. variable is set such that the systemd unit files are assumed to
  6870. reside in the recipes main package::
  6871. SYSTEMD_PACKAGES ?= "${PN}"
  6872. If these unit files are not in this recipe's main package, you need
  6873. to use :term:`SYSTEMD_PACKAGES` to list the package or packages in which
  6874. the build system can find the systemd unit files.
  6875. :term:`SYSTEMD_SERVICE`
  6876. When inheriting the :ref:`ref-classes-systemd` class,
  6877. this variable specifies the systemd service name for a package.
  6878. Multiple services can be specified, each one separated by a space.
  6879. When you specify this file in your recipe, use a package name
  6880. override to indicate the package to which the value applies. Here is
  6881. an example from the connman recipe::
  6882. SYSTEMD_SERVICE:${PN} = "connman.service"
  6883. The package overrides that can be specified are directly related to the value of
  6884. :term:`SYSTEMD_PACKAGES`. Overrides not included in :term:`SYSTEMD_PACKAGES`
  6885. will be silently ignored.
  6886. :term:`SYSVINIT_ENABLED_GETTYS`
  6887. When using :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  6888. specifies a space-separated list of the virtual terminals that should
  6889. run a :wikipedia:`getty <Getty_(Unix)>` (allowing login), assuming
  6890. :term:`USE_VT` is not set to "0".
  6891. The default value for :term:`SYSVINIT_ENABLED_GETTYS` is "1" (i.e. only
  6892. run a getty on the first virtual terminal).
  6893. :term:`T`
  6894. This variable points to a directory were BitBake places temporary
  6895. files, which consist mostly of task logs and scripts, when building a
  6896. particular recipe. The variable is typically set as follows::
  6897. T = "${WORKDIR}/temp"
  6898. The :term:`WORKDIR` is the directory into which
  6899. BitBake unpacks and builds the recipe. The default ``bitbake.conf``
  6900. file sets this variable.
  6901. The :term:`T` variable is not to be confused with the
  6902. :term:`TMPDIR` variable, which points to the root of
  6903. the directory tree where BitBake places the output of an entire
  6904. build.
  6905. :term:`TARGET_ARCH`
  6906. The target machine's architecture. The OpenEmbedded build system
  6907. supports many architectures. Here is an example list of architectures
  6908. supported. This list is by no means complete as the architecture is
  6909. configurable:
  6910. - arm
  6911. - i586
  6912. - x86_64
  6913. - powerpc
  6914. - powerpc64
  6915. - mips
  6916. - mipsel
  6917. For additional information on machine architectures, see the
  6918. :term:`TUNE_ARCH` variable.
  6919. :term:`TARGET_AS_ARCH`
  6920. Specifies architecture-specific assembler flags for the target
  6921. system. :term:`TARGET_AS_ARCH` is initialized from
  6922. :term:`TUNE_ASARGS` by default in the BitBake
  6923. configuration file (``meta/conf/bitbake.conf``)::
  6924. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  6925. :term:`TARGET_CC_ARCH`
  6926. Specifies architecture-specific C compiler flags for the target
  6927. system. :term:`TARGET_CC_ARCH` is initialized from
  6928. :term:`TUNE_CCARGS` by default.
  6929. .. note::
  6930. It is a common workaround to append :term:`LDFLAGS` to
  6931. :term:`TARGET_CC_ARCH` in recipes that build software for the target that
  6932. would not otherwise respect the exported :term:`LDFLAGS` variable.
  6933. :term:`TARGET_CC_KERNEL_ARCH`
  6934. This is a specific kernel compiler flag for a CPU or Application
  6935. Binary Interface (ABI) tune. The flag is used rarely and only for
  6936. cases where a userspace :term:`TUNE_CCARGS` is not
  6937. compatible with the kernel compilation. The :term:`TARGET_CC_KERNEL_ARCH`
  6938. variable allows the kernel (and associated modules) to use a
  6939. different configuration. See the
  6940. ``meta/conf/machine/include/arm/feature-arm-thumb.inc`` file in the
  6941. :term:`Source Directory` for an example.
  6942. :term:`TARGET_CFLAGS`
  6943. Specifies the flags to pass to the C compiler when building for the
  6944. target. When building in the target context,
  6945. :term:`CFLAGS` is set to the value of this variable by
  6946. default.
  6947. Additionally, the SDK's environment setup script sets the :term:`CFLAGS`
  6948. variable in the environment to the :term:`TARGET_CFLAGS` value so that
  6949. executables built using the SDK also have the flags applied.
  6950. :term:`TARGET_CPPFLAGS`
  6951. Specifies the flags to pass to the C pre-processor (i.e. to both the
  6952. C and the C++ compilers) when building for the target. When building
  6953. in the target context, :term:`CPPFLAGS` is set to the
  6954. value of this variable by default.
  6955. Additionally, the SDK's environment setup script sets the
  6956. :term:`CPPFLAGS` variable in the environment to the :term:`TARGET_CPPFLAGS`
  6957. value so that executables built using the SDK also have the flags
  6958. applied.
  6959. :term:`TARGET_CXXFLAGS`
  6960. Specifies the flags to pass to the C++ compiler when building for the
  6961. target. When building in the target context,
  6962. :term:`CXXFLAGS` is set to the value of this variable
  6963. by default.
  6964. Additionally, the SDK's environment setup script sets the
  6965. :term:`CXXFLAGS` variable in the environment to the :term:`TARGET_CXXFLAGS`
  6966. value so that executables built using the SDK also have the flags
  6967. applied.
  6968. :term:`TARGET_DBGSRC_DIR`
  6969. Specifies the target path to debug source files. The default is
  6970. ``/usr/src/debug/${PN}/${PV}``.
  6971. :term:`TARGET_FPU`
  6972. Specifies the method for handling FPU code. For FPU-less targets,
  6973. which include most ARM CPUs, the variable must be set to "soft". If
  6974. not, the kernel emulation gets used, which results in a performance
  6975. penalty.
  6976. :term:`TARGET_LD_ARCH`
  6977. Specifies architecture-specific linker flags for the target system.
  6978. :term:`TARGET_LD_ARCH` is initialized from
  6979. :term:`TUNE_LDARGS` by default in the BitBake
  6980. configuration file (``meta/conf/bitbake.conf``)::
  6981. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  6982. :term:`TARGET_LDFLAGS`
  6983. Specifies the flags to pass to the linker when building for the
  6984. target. When building in the target context,
  6985. :term:`LDFLAGS` is set to the value of this variable
  6986. by default.
  6987. Additionally, the SDK's environment setup script sets the
  6988. :term:`LDFLAGS` variable in the environment to the
  6989. :term:`TARGET_LDFLAGS` value so that executables built using the SDK also
  6990. have the flags applied.
  6991. :term:`TARGET_OS`
  6992. Specifies the target's operating system. The variable can be set to
  6993. "linux" for glibc-based systems (GNU C Library) and to "linux-musl"
  6994. for musl libc. For ARM/EABI targets, the possible values are
  6995. "linux-gnueabi" and "linux-musleabi".
  6996. :term:`TARGET_PREFIX`
  6997. Specifies the prefix used for the toolchain binary target tools.
  6998. Depending on the type of recipe and the build target,
  6999. :term:`TARGET_PREFIX` is set as follows:
  7000. - For recipes building for the target machine, the value is
  7001. "${:term:`TARGET_SYS`}-".
  7002. - For native recipes, the build system sets the variable to the
  7003. value of :term:`BUILD_PREFIX`.
  7004. - For native SDK recipes (:ref:`ref-classes-nativesdk`),
  7005. the build system sets the variable to the value of :term:`SDK_PREFIX`.
  7006. :term:`TARGET_SYS`
  7007. Specifies the system, including the architecture and the operating
  7008. system, for which the build is occurring in the context of the
  7009. current recipe.
  7010. The OpenEmbedded build system automatically sets this variable based
  7011. on :term:`TARGET_ARCH`,
  7012. :term:`TARGET_VENDOR`, and
  7013. :term:`TARGET_OS` variables.
  7014. .. note::
  7015. You do not need to set the :term:`TARGET_SYS` variable yourself.
  7016. Consider these two examples:
  7017. - Given a native recipe on a 32-bit, x86 machine running Linux, the
  7018. value is "i686-linux".
  7019. - Given a recipe being built for a little-endian, MIPS target
  7020. running Linux, the value might be "mipsel-linux".
  7021. :term:`TARGET_VENDOR`
  7022. Specifies the name of the target vendor.
  7023. :term:`TCLIBC`
  7024. Specifies the GNU standard C library (``libc``) variant to use during
  7025. the build process.
  7026. You can select "glibc", "musl", "newlib", or "baremetal".
  7027. :term:`TCMODE`
  7028. Specifies the toolchain selector. :term:`TCMODE` controls the
  7029. characteristics of the generated packages and images by telling the
  7030. OpenEmbedded build system which toolchain profile to use. By default,
  7031. the OpenEmbedded build system builds its own internal toolchain. The
  7032. variable's default value is "default", which uses that internal
  7033. toolchain.
  7034. .. note::
  7035. If :term:`TCMODE` is set to a value other than "default", then it is your
  7036. responsibility to ensure that the toolchain is compatible with the
  7037. default toolchain. Using older or newer versions of these
  7038. components might cause build problems. See
  7039. :doc:`Release Information </migration-guides/index>` for your
  7040. version of the Yocto Project, to find the specific components with
  7041. which the toolchain must be compatible.
  7042. The :term:`TCMODE` variable is similar to :term:`TCLIBC`,
  7043. which controls the variant of the GNU standard C library (``libc``)
  7044. used during the build process: ``glibc`` or ``musl``.
  7045. With additional layers, it is possible to use a pre-compiled external
  7046. toolchain. One example is the Sourcery G++ Toolchain. The support for
  7047. this toolchain resides in the separate Mentor Graphics
  7048. ``meta-sourcery`` layer at
  7049. https://github.com/MentorEmbedded/meta-sourcery/.
  7050. The layer's ``README`` file contains information on how to use the
  7051. Sourcery G++ Toolchain as an external toolchain. You will have to
  7052. add the layer to your ``bblayers.conf`` file and then set the
  7053. :term:`EXTERNAL_TOOLCHAIN` variable in your ``local.conf`` file to
  7054. the location of the toolchain.
  7055. The fundamentals used for this example apply to any external
  7056. toolchain. You can use ``meta-sourcery`` as a template for adding
  7057. support for other external toolchains.
  7058. In addition to toolchain configuration, you will also need a
  7059. corresponding toolchain recipe file. This recipe file needs to package
  7060. up any pre-built objects in the toolchain such as ``libgcc``,
  7061. ``libstdcc++``, any locales, and ``libc``.
  7062. :term:`TC_CXX_RUNTIME`
  7063. Specifies the C/C++ STL and runtime variant to use during
  7064. the build process. Default value is 'gnu'
  7065. You can select "gnu", "llvm", or "android".
  7066. :term:`TEMPLATECONF`
  7067. Specifies the directory used by the build system to find templates
  7068. from which to build the ``bblayers.conf`` and ``local.conf`` files.
  7069. Use this variable if you wish to customize such files, and the default
  7070. BitBake targets shown when sourcing the ``oe-init-build-env`` script.
  7071. For details, see the
  7072. :ref:`dev-manual/custom-template-configuration-directory:creating a custom template configuration directory`
  7073. section in the Yocto Project Development Tasks manual.
  7074. .. note::
  7075. You must set this variable in the external environment in order
  7076. for it to work.
  7077. :term:`TEST_EXPORT_DIR`
  7078. The location the OpenEmbedded build system uses to export tests when
  7079. the :term:`TEST_EXPORT_ONLY` variable is set
  7080. to "1".
  7081. The :term:`TEST_EXPORT_DIR` variable defaults to
  7082. ``"${TMPDIR}/testimage/${PN}"``.
  7083. :term:`TEST_EXPORT_ONLY`
  7084. Specifies to export the tests only. Set this variable to "1" if you
  7085. do not want to run the tests but you want them to be exported in a
  7086. manner that you to run them outside of the build system.
  7087. :term:`TEST_LOG_DIR`
  7088. Holds the SSH log and the boot log for QEMU machines. The
  7089. :term:`TEST_LOG_DIR` variable defaults to ``"${WORKDIR}/testimage"``.
  7090. .. note::
  7091. Actual test results reside in the task log (``log.do_testimage``),
  7092. which is in the ``${WORKDIR}/temp/`` directory.
  7093. :term:`TEST_POWERCONTROL_CMD`
  7094. For automated hardware testing, specifies the command to use to
  7095. control the power of the target machine under test. Typically, this
  7096. command would point to a script that performs the appropriate action
  7097. (e.g. interacting with a web-enabled power strip). The specified
  7098. command should expect to receive as the last argument "off", "on" or
  7099. "cycle" specifying to power off, on, or cycle (power off and then
  7100. power on) the device, respectively.
  7101. :term:`TEST_POWERCONTROL_EXTRA_ARGS`
  7102. For automated hardware testing, specifies additional arguments to
  7103. pass through to the command specified in
  7104. :term:`TEST_POWERCONTROL_CMD`. Setting
  7105. :term:`TEST_POWERCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7106. wish, for example, to separate the machine-specific and
  7107. non-machine-specific parts of the arguments.
  7108. :term:`TEST_QEMUBOOT_TIMEOUT`
  7109. The time in seconds allowed for an image to boot before automated
  7110. runtime tests begin to run against an image. The default timeout
  7111. period to allow the boot process to reach the login prompt is 500
  7112. seconds. You can specify a different value in the ``local.conf``
  7113. file.
  7114. For more information on testing images, see the
  7115. ":ref:`dev-manual/runtime-testing:performing automated runtime testing`"
  7116. section in the Yocto Project Development Tasks Manual.
  7117. :term:`TEST_SERIALCONTROL_CMD`
  7118. For automated hardware testing, specifies the command to use to
  7119. connect to the serial console of the target machine under test. This
  7120. command simply needs to connect to the serial console and forward
  7121. that connection to standard input and output as any normal terminal
  7122. program does.
  7123. For example, to use the Picocom terminal program on serial device
  7124. ``/dev/ttyUSB0`` at 115200bps, you would set the variable as follows::
  7125. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  7126. :term:`TEST_SERIALCONTROL_EXTRA_ARGS`
  7127. For automated hardware testing, specifies additional arguments to
  7128. pass through to the command specified in
  7129. :term:`TEST_SERIALCONTROL_CMD`. Setting
  7130. :term:`TEST_SERIALCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7131. wish, for example, to separate the machine-specific and
  7132. non-machine-specific parts of the command.
  7133. :term:`TEST_SERVER_IP`
  7134. The IP address of the build machine (host machine). This IP address
  7135. is usually automatically detected. However, if detection fails, this
  7136. variable needs to be set to the IP address of the build machine (i.e.
  7137. where the build is taking place).
  7138. .. note::
  7139. The :term:`TEST_SERVER_IP` variable is only used for a small number of
  7140. tests such as the "dnf" test suite, which needs to download packages
  7141. from ``WORKDIR/oe-rootfs-repo``.
  7142. :term:`TEST_SUITES`
  7143. An ordered list of tests (modules) to run against an image when
  7144. performing automated runtime testing.
  7145. The OpenEmbedded build system provides a core set of tests that can
  7146. be used against images.
  7147. .. note::
  7148. Currently, there is only support for running these tests under
  7149. QEMU.
  7150. Tests include ``ping``, ``ssh``, ``df`` among others. You can add
  7151. your own tests to the list of tests by appending :term:`TEST_SUITES` as
  7152. follows::
  7153. TEST_SUITES:append = " mytest"
  7154. Alternatively, you can
  7155. provide the "auto" option to have all applicable tests run against
  7156. the image::
  7157. TEST_SUITES:append = " auto"
  7158. Using this option causes the
  7159. build system to automatically run tests that are applicable to the
  7160. image. Tests that are not applicable are skipped.
  7161. The order in which tests are run is important. Tests that depend on
  7162. another test must appear later in the list than the test on which
  7163. they depend. For example, if you append the list of tests with two
  7164. tests (``test_A`` and ``test_B``) where ``test_B`` is dependent on
  7165. ``test_A``, then you must order the tests as follows::
  7166. TEST_SUITES = "test_A test_B"
  7167. For more information on testing images, see the
  7168. ":ref:`dev-manual/runtime-testing:performing automated runtime testing`"
  7169. section in the Yocto Project Development Tasks Manual.
  7170. :term:`TEST_TARGET`
  7171. Specifies the target controller to use when running tests against a
  7172. test image. The default controller to use is "qemu"::
  7173. TEST_TARGET = "qemu"
  7174. A target controller is a class that defines how an image gets
  7175. deployed on a target and how a target is started. A layer can extend
  7176. the controllers by adding a module in the layer's
  7177. ``/lib/oeqa/controllers`` directory and by inheriting the
  7178. ``BaseTarget`` class, which is an abstract class that cannot be used
  7179. as a value of :term:`TEST_TARGET`.
  7180. You can provide the following arguments with :term:`TEST_TARGET`:
  7181. - *"qemu":* Boots a QEMU image and runs the tests. See the
  7182. ":ref:`dev-manual/runtime-testing:enabling runtime tests on qemu`" section
  7183. in the Yocto Project Development Tasks Manual for more
  7184. information.
  7185. - *"simpleremote":* Runs the tests on target hardware that is
  7186. already up and running. The hardware can be on the network or it
  7187. can be a device running an image on QEMU. You must also set
  7188. :term:`TEST_TARGET_IP` when you use
  7189. "simpleremote".
  7190. .. note::
  7191. This argument is defined in
  7192. ``meta/lib/oeqa/controllers/simpleremote.py``.
  7193. For information on running tests on hardware, see the
  7194. ":ref:`dev-manual/runtime-testing:enabling runtime tests on hardware`"
  7195. section in the Yocto Project Development Tasks Manual.
  7196. :term:`TEST_TARGET_IP`
  7197. The IP address of your hardware under test. The :term:`TEST_TARGET_IP`
  7198. variable has no effect when :term:`TEST_TARGET` is
  7199. set to "qemu".
  7200. When you specify the IP address, you can also include a port. Here is
  7201. an example::
  7202. TEST_TARGET_IP = "192.168.1.4:2201"
  7203. Specifying a port is
  7204. useful when SSH is started on a non-standard port or in cases when
  7205. your hardware under test is behind a firewall or network that is not
  7206. directly accessible from your host and you need to do port address
  7207. translation.
  7208. :term:`TESTIMAGE_AUTO`
  7209. Automatically runs the series of automated tests for images when an
  7210. image is successfully built. Setting :term:`TESTIMAGE_AUTO` to "1" causes
  7211. any image that successfully builds to automatically boot under QEMU.
  7212. Using the variable also adds in dependencies so that any SDK for
  7213. which testing is requested is automatically built first.
  7214. These tests are written in Python making use of the ``unittest``
  7215. module, and the majority of them run commands on the target system
  7216. over ``ssh``. You can set this variable to "1" in your ``local.conf``
  7217. file in the :term:`Build Directory` to have the
  7218. OpenEmbedded build system automatically run these tests after an
  7219. image successfully builds:
  7220. TESTIMAGE_AUTO = "1"
  7221. For more information
  7222. on enabling, running, and writing these tests, see the
  7223. ":ref:`dev-manual/runtime-testing:performing automated runtime testing`"
  7224. section in the Yocto Project Development Tasks Manual and the
  7225. ":ref:`ref-classes-testimage`" section.
  7226. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS`
  7227. When using the :ref:`ref-classes-testimage` class, the variable
  7228. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS` lists space-separated paths on the
  7229. target to retrieve onto the host.
  7230. :term:`THISDIR`
  7231. The directory in which the file BitBake is currently parsing is
  7232. located. Do not manually set this variable.
  7233. :term:`TIME`
  7234. The time the build was started. Times appear using the hour, minute,
  7235. and second (HMS) format (e.g. "140159" for one minute and fifty-nine
  7236. seconds past 1400 hours).
  7237. :term:`TMPDIR`
  7238. This variable is the base directory the OpenEmbedded build system
  7239. uses for all build output and intermediate files (other than the
  7240. shared state cache). By default, the :term:`TMPDIR` variable points to
  7241. ``tmp`` within the :term:`Build Directory`.
  7242. If you want to establish this directory in a location other than the
  7243. default, you can uncomment and edit the following statement in the
  7244. ``conf/local.conf`` file in the :term:`Source Directory`::
  7245. #TMPDIR = "${TOPDIR}/tmp"
  7246. An example use for this scenario is to set :term:`TMPDIR` to a local disk,
  7247. which does not use NFS, while having the :term:`Build Directory` use NFS.
  7248. The filesystem used by :term:`TMPDIR` must have standard filesystem
  7249. semantics (i.e. mixed-case files are unique, POSIX file locking, and
  7250. persistent inodes). Due to various issues with NFS and bugs in some
  7251. implementations, NFS does not meet this minimum requirement.
  7252. Consequently, :term:`TMPDIR` cannot be on NFS.
  7253. :term:`TOOLCHAIN_HOST_TASK`
  7254. This variable lists packages the OpenEmbedded build system uses when
  7255. building an SDK, which contains a cross-development environment. The
  7256. packages specified by this variable are part of the toolchain set
  7257. that runs on the :term:`SDKMACHINE`, and each
  7258. package should usually have the prefix ``nativesdk-``. For example,
  7259. consider the following command when building an SDK::
  7260. $ bitbake -c populate_sdk imagename
  7261. In this case, a default list of packages is
  7262. set in this variable, but you can add additional packages to the
  7263. list. See the
  7264. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7265. in the Yocto Project Application Development and the Extensible
  7266. Software Development Kit (eSDK) manual for more information.
  7267. For background information on cross-development toolchains in the
  7268. Yocto Project development environment, see the
  7269. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7270. section in the Yocto Project Overview and Concepts Manual. For
  7271. information on setting up a cross-development environment, see the
  7272. :doc:`/sdk-manual/index` manual.
  7273. Note that this variable applies to building an SDK, not an eSDK,
  7274. in which case the :term:`TOOLCHAIN_HOST_TASK_ESDK` setting should be
  7275. used instead.
  7276. :term:`TOOLCHAIN_HOST_TASK_ESDK`
  7277. This variable allows to extend what is installed in the host
  7278. portion of an eSDK. This is similar to :term:`TOOLCHAIN_HOST_TASK`
  7279. applying to SDKs.
  7280. :term:`TOOLCHAIN_OPTIONS`
  7281. This variable holds extra options passed to the compiler and the linker
  7282. for non ``-native`` recipes as they have to point to their custom
  7283. ``sysroot`` folder pointed to by :term:`RECIPE_SYSROOT`::
  7284. TOOLCHAIN_OPTIONS = " --sysroot=${RECIPE_SYSROOT}"
  7285. Native recipes don't need this variable to be set, as they are
  7286. built for the host machine with the native compiler.
  7287. :term:`TOOLCHAIN_OUTPUTNAME`
  7288. This variable defines the name used for the toolchain output. The
  7289. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
  7290. the :term:`TOOLCHAIN_OUTPUTNAME` variable as follows::
  7291. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  7292. See
  7293. the :term:`SDK_NAME` and
  7294. :term:`SDK_VERSION` variables for additional
  7295. information.
  7296. :term:`TOOLCHAIN_TARGET_TASK`
  7297. This variable lists packages the OpenEmbedded build system uses when
  7298. it creates the target part of an SDK (i.e. the part built for the
  7299. target hardware), which includes libraries and headers. Use this
  7300. variable to add individual packages to the part of the SDK that runs
  7301. on the target. See the
  7302. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7303. in the Yocto Project Application Development and the Extensible
  7304. Software Development Kit (eSDK) manual for more information.
  7305. For background information on cross-development toolchains in the
  7306. Yocto Project development environment, see the
  7307. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7308. section in the Yocto Project Overview and Concepts Manual. For
  7309. information on setting up a cross-development environment, see the
  7310. :doc:`/sdk-manual/index` manual.
  7311. :term:`TOPDIR`
  7312. See :term:`bitbake:TOPDIR` in the BitBake manual.
  7313. :term:`TRANSLATED_TARGET_ARCH`
  7314. A sanitized version of :term:`TARGET_ARCH`. This
  7315. variable is used where the architecture is needed in a value where
  7316. underscores are not allowed, for example within package filenames. In
  7317. this case, dash characters replace any underscore characters used in
  7318. :term:`TARGET_ARCH`.
  7319. Do not edit this variable.
  7320. :term:`TUNE_ARCH`
  7321. The GNU canonical architecture for a specific architecture (i.e.
  7322. ``arm``, ``armeb``, ``mips``, ``mips64``, and so forth). BitBake uses
  7323. this value to setup configuration.
  7324. :term:`TUNE_ARCH` definitions are specific to a given architecture. The
  7325. definitions can be a single static definition, or can be dynamically
  7326. adjusted. You can see details for a given CPU family by looking at
  7327. the architecture's ``README`` file. For example, the
  7328. ``meta/conf/machine/include/mips/README`` file in the
  7329. :term:`Source Directory` provides information for
  7330. :term:`TUNE_ARCH` specific to the ``mips`` architecture.
  7331. :term:`TUNE_ARCH` is tied closely to
  7332. :term:`TARGET_ARCH`, which defines the target
  7333. machine's architecture. The BitBake configuration file
  7334. (``meta/conf/bitbake.conf``) sets :term:`TARGET_ARCH` as follows::
  7335. TARGET_ARCH = "${TUNE_ARCH}"
  7336. The following list, which is by no means complete since architectures
  7337. are configurable, shows supported machine architectures:
  7338. - arm
  7339. - i586
  7340. - x86_64
  7341. - powerpc
  7342. - powerpc64
  7343. - mips
  7344. - mipsel
  7345. :term:`TUNE_ASARGS`
  7346. Specifies architecture-specific assembler flags for the target
  7347. system. The set of flags is based on the selected tune features.
  7348. :term:`TUNE_ASARGS` is set using the tune include files, which are
  7349. typically under ``meta/conf/machine/include/`` and are influenced
  7350. through :term:`TUNE_FEATURES`. For example, the
  7351. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7352. for the x86 architecture as follows::
  7353. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  7354. .. note::
  7355. Board Support Packages (BSPs) select the tune. The selected tune,
  7356. in turn, affects the tune variables themselves (i.e. the tune can
  7357. supply its own set of flags).
  7358. :term:`TUNE_CCARGS`
  7359. Specifies architecture-specific C compiler flags for the target
  7360. system. The set of flags is based on the selected tune features.
  7361. :term:`TUNE_CCARGS` is set using the tune include files, which are
  7362. typically under ``meta/conf/machine/include/`` and are influenced
  7363. through :term:`TUNE_FEATURES`.
  7364. .. note::
  7365. Board Support Packages (BSPs) select the tune. The selected tune,
  7366. in turn, affects the tune variables themselves (i.e. the tune can
  7367. supply its own set of flags).
  7368. :term:`TUNE_FEATURES`
  7369. Features used to "tune" a compiler for optimal use given a specific
  7370. processor. The features are defined within the tune files and allow
  7371. arguments (i.e. ``TUNE_*ARGS``) to be dynamically generated based on
  7372. the features.
  7373. The OpenEmbedded build system verifies the features to be sure they
  7374. are not conflicting and that they are supported.
  7375. The BitBake configuration file (``meta/conf/bitbake.conf``) defines
  7376. :term:`TUNE_FEATURES` as follows::
  7377. TUNE_FEATURES ??= "${TUNE_FEATURES:tune-${DEFAULTTUNE}}"
  7378. See the :term:`DEFAULTTUNE` variable for more information.
  7379. :term:`TUNE_LDARGS`
  7380. Specifies architecture-specific linker flags for the target system.
  7381. The set of flags is based on the selected tune features.
  7382. :term:`TUNE_LDARGS` is set using the tune include files, which are
  7383. typically under ``meta/conf/machine/include/`` and are influenced
  7384. through :term:`TUNE_FEATURES`. For example, the
  7385. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7386. for the x86 architecture as follows::
  7387. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  7388. .. note::
  7389. Board Support Packages (BSPs) select the tune. The selected tune,
  7390. in turn, affects the tune variables themselves (i.e. the tune can
  7391. supply its own set of flags).
  7392. :term:`TUNE_PKGARCH`
  7393. The package architecture understood by the packaging system to define
  7394. the architecture, ABI, and tuning of output packages. The specific
  7395. tune is defined using the "_tune" override as follows::
  7396. TUNE_PKGARCH:tune-tune = "tune"
  7397. These tune-specific package architectures are defined in the machine
  7398. include files. Here is an example of the "core2-32" tuning as used in
  7399. the ``meta/conf/machine/include/x86/tune-core2.inc`` file::
  7400. TUNE_PKGARCH:tune-core2-32 = "core2-32"
  7401. :term:`TUNECONFLICTS[feature]`
  7402. Specifies CPU or Application Binary Interface (ABI) tuning features
  7403. that conflict with feature.
  7404. Known tuning conflicts are specified in the machine include files in
  7405. the :term:`Source Directory`. Here is an example from
  7406. the ``meta/conf/machine/include/mips/arch-mips.inc`` include file
  7407. that lists the "o32" and "n64" features as conflicting with the "n32"
  7408. feature::
  7409. TUNECONFLICTS[n32] = "o32 n64"
  7410. :term:`TUNEVALID[feature]`
  7411. Specifies a valid CPU or Application Binary Interface (ABI) tuning
  7412. feature. The specified feature is stored as a flag. Valid features
  7413. are specified in the machine include files (e.g.
  7414. ``meta/conf/machine/include/arm/arch-arm.inc``). Here is an example
  7415. from that file::
  7416. TUNEVALID[bigendian] = "Enable big-endian mode."
  7417. See the machine include files in the :term:`Source Directory`
  7418. for these features.
  7419. :term:`UBOOT_BINARY`
  7420. Specifies the name of the binary build by U-Boot.
  7421. :term:`UBOOT_CONFIG`
  7422. Configures one or more U-Boot configurations to build. Each
  7423. configuration can define the :term:`UBOOT_MACHINE` and optionally the
  7424. :term:`IMAGE_FSTYPES` and the :term:`UBOOT_BINARY`.
  7425. Here is an example from the ``meta-freescale`` layer. ::
  7426. UBOOT_CONFIG ??= "sdcard-ifc-secure-boot sdcard-ifc sdcard-qspi lpuart qspi secure-boot nor"
  7427. UBOOT_CONFIG[nor] = "ls1021atwr_nor_defconfig"
  7428. UBOOT_CONFIG[sdcard-ifc] = "ls1021atwr_sdcard_ifc_defconfig,,u-boot-with-spl-pbl.bin"
  7429. UBOOT_CONFIG[sdcard-qspi] = "ls1021atwr_sdcard_qspi_defconfig,,u-boot-with-spl-pbl.bin"
  7430. UBOOT_CONFIG[lpuart] = "ls1021atwr_nor_lpuart_defconfig"
  7431. UBOOT_CONFIG[qspi] = "ls1021atwr_qspi_defconfig"
  7432. UBOOT_CONFIG[secure-boot] = "ls1021atwr_nor_SECURE_BOOT_defconfig"
  7433. UBOOT_CONFIG[sdcard-ifc-secure-boot] = "ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
  7434. In this example, all possible seven configurations are selected. Each
  7435. configuration specifies "..._defconfig" as :term:`UBOOT_MACHINE`, and
  7436. the "sd..." configurations define an individual name for
  7437. :term:`UBOOT_BINARY`. No configuration defines a second parameter for
  7438. :term:`IMAGE_FSTYPES` to use for the U-Boot image.
  7439. For more information on how the :term:`UBOOT_CONFIG` is handled, see the
  7440. :ref:`ref-classes-uboot-config` class.
  7441. :term:`UBOOT_DTB_LOADADDRESS`
  7442. Specifies the load address for the dtb image used by U-Boot. During FIT
  7443. image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in
  7444. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7445. used in creating the dtb sections of Image Tree Source for the FIT image.
  7446. :term:`UBOOT_DTBO_LOADADDRESS`
  7447. Specifies the load address for the dtbo image used by U-Boot. During FIT
  7448. image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in
  7449. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7450. used in creating the dtbo sections of Image Tree Source for the FIT image.
  7451. :term:`UBOOT_ENTRYPOINT`
  7452. Specifies the entry point for the U-Boot image. During U-Boot image
  7453. creation, the :term:`UBOOT_ENTRYPOINT` variable is passed as a
  7454. command-line parameter to the ``uboot-mkimage`` utility.
  7455. To pass a 64 bit address for FIT image creation, you will need to set:
  7456. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7457. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7458. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7459. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7460. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7461. classes.
  7462. :term:`UBOOT_FIT_ADDRESS_CELLS`
  7463. Specifies the value of the ``#address-cells`` value for the
  7464. description of the U-Boot FIT image.
  7465. The default value is set to "1" by the :ref:`ref-classes-uboot-sign`
  7466. class, which corresponds to 32 bit addresses.
  7467. For platforms that need to set 64 bit addresses in
  7468. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  7469. set this value to "2", as two 32 bit values (cells) will be needed
  7470. to represent such addresses.
  7471. Here is an example setting "0x400000000" as a load address::
  7472. UBOOT_FIT_ADDRESS_CELLS = "2"
  7473. UBOOT_LOADADDRESS= "0x04 0x00000000"
  7474. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  7475. :term:`UBOOT_FIT_DESC`
  7476. Specifies the description string encoded into a U-Boot fitImage. The default
  7477. value is set by the :ref:`ref-classes-uboot-sign` class as follows::
  7478. UBOOT_FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  7479. :term:`UBOOT_FIT_GENERATE_KEYS`
  7480. Decides whether to generate the keys for signing the U-Boot fitImage if
  7481. they don't already exist. The keys are created in :term:`SPL_SIGN_KEYDIR`.
  7482. The default value is "0".
  7483. Enable this as follows::
  7484. UBOOT_FIT_GENERATE_KEYS = "1"
  7485. This variable is used in the :ref:`ref-classes-uboot-sign` class.
  7486. :term:`UBOOT_FIT_HASH_ALG`
  7487. Specifies the hash algorithm used in creating the U-Boot FIT Image.
  7488. It is set by default to ``sha256`` by the :ref:`ref-classes-uboot-sign`
  7489. class.
  7490. :term:`UBOOT_FIT_KEY_GENRSA_ARGS`
  7491. Arguments to ``openssl genrsa`` for generating a RSA private key for
  7492. signing the U-Boot FIT image. The default value of this variable
  7493. is set to "-F4" by the :ref:`ref-classes-uboot-sign` class.
  7494. :term:`UBOOT_FIT_KEY_REQ_ARGS`
  7495. Arguments to ``openssl req`` for generating a certificate for signing
  7496. the U-Boot FIT image. The default value is "-batch -new" by the
  7497. :ref:`ref-classes-uboot-sign` class, "batch" for
  7498. non interactive mode and "new" for generating new keys.
  7499. :term:`UBOOT_FIT_KEY_SIGN_PKCS`
  7500. Format for the public key certificate used for signing the U-Boot FIT
  7501. image. The default value is set to "x509" by the
  7502. :ref:`ref-classes-uboot-sign` class.
  7503. :term:`UBOOT_FIT_SIGN_ALG`
  7504. Specifies the signature algorithm used in creating the U-Boot FIT Image.
  7505. This variable is set by default to "rsa2048" by the
  7506. :ref:`ref-classes-uboot-sign` class.
  7507. :term:`UBOOT_FIT_SIGN_NUMBITS`
  7508. Size of the private key used in signing the U-Boot FIT image, in number
  7509. of bits. The default value for this variable is set to "2048"
  7510. by the :ref:`ref-classes-uboot-sign` class.
  7511. :term:`UBOOT_FITIMAGE_ENABLE`
  7512. This variable allows to generate a FIT image for U-Boot, which is one
  7513. of the ways to implement a verified boot process.
  7514. Its default value is "0", so set it to "1" to enable this functionality::
  7515. UBOOT_FITIMAGE_ENABLE = "1"
  7516. See the :ref:`ref-classes-uboot-sign` class for details.
  7517. :term:`UBOOT_LOADADDRESS`
  7518. Specifies the load address for the U-Boot image. During U-Boot image
  7519. creation, the :term:`UBOOT_LOADADDRESS` variable is passed as a
  7520. command-line parameter to the ``uboot-mkimage`` utility.
  7521. To pass a 64 bit address, you will also need to set:
  7522. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7523. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7524. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7525. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7526. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7527. classes.
  7528. :term:`UBOOT_LOCALVERSION`
  7529. Appends a string to the name of the local version of the U-Boot
  7530. image. For example, assuming the version of the U-Boot image built
  7531. was "2013.10", the full version string reported by U-Boot would be
  7532. "2013.10-yocto" given the following statement::
  7533. UBOOT_LOCALVERSION = "-yocto"
  7534. :term:`UBOOT_MACHINE`
  7535. Specifies the value passed on the ``make`` command line when building
  7536. a U-Boot image. The value indicates the target platform
  7537. configuration. You typically set this variable from the machine
  7538. configuration file (i.e. ``conf/machine/machine_name.conf``).
  7539. Please see the "Selection of Processor Architecture and Board Type"
  7540. section in the U-Boot README for valid values for this variable.
  7541. :term:`UBOOT_MAKE_TARGET`
  7542. Specifies the target called in the ``Makefile``. The default target
  7543. is "all".
  7544. :term:`UBOOT_MKIMAGE`
  7545. Specifies the name of the mkimage command as used by the
  7546. :ref:`ref-classes-kernel-fitimage` class to assemble
  7547. the FIT image. This can be used to substitute an alternative command, wrapper
  7548. script or function if desired. The default is "uboot-mkimage".
  7549. :term:`UBOOT_MKIMAGE_DTCOPTS`
  7550. Options for the device tree compiler passed to ``mkimage -D`` feature
  7551. while creating a FIT image with the :ref:`ref-classes-kernel-fitimage`
  7552. class. If :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then the
  7553. :ref:`ref-classes-kernel-fitimage` class will not pass the ``-D`` option
  7554. to ``mkimage``.
  7555. This variable is also used by the :ref:`ref-classes-uboot-sign` class.
  7556. :term:`UBOOT_MKIMAGE_KERNEL_TYPE`
  7557. Specifies the type argument for the kernel as passed to ``uboot-mkimage``.
  7558. The default value is "kernel".
  7559. :term:`UBOOT_MKIMAGE_SIGN`
  7560. Specifies the name of the mkimage command as used by the
  7561. :ref:`ref-classes-kernel-fitimage` class to sign
  7562. the FIT image after it has been assembled (if enabled). This can be used
  7563. to substitute an alternative command, wrapper script or function if
  7564. desired. The default is "${:term:`UBOOT_MKIMAGE`}".
  7565. :term:`UBOOT_MKIMAGE_SIGN_ARGS`
  7566. Optionally specifies additional arguments for the
  7567. :ref:`ref-classes-kernel-fitimage` class to pass to the
  7568. mkimage command when signing the FIT image.
  7569. :term:`UBOOT_RD_ENTRYPOINT`
  7570. Specifies the entrypoint for the RAM disk image. During FIT image
  7571. creation, the :term:`UBOOT_RD_ENTRYPOINT` variable is used in
  7572. :ref:`ref-classes-kernel-fitimage` class to specify the entrypoint to be
  7573. used in creating the Image Tree Source for the FIT image.
  7574. :term:`UBOOT_RD_LOADADDRESS`
  7575. Specifies the load address for the RAM disk image. During FIT image
  7576. creation, the :term:`UBOOT_RD_LOADADDRESS` variable is used in
  7577. :ref:`ref-classes-kernel-fitimage` class to specify the load address to
  7578. be used in creating the Image Tree Source for the FIT image.
  7579. :term:`UBOOT_SIGN_ENABLE`
  7580. Enable signing of FIT image. The default value is "0".
  7581. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7582. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7583. classes.
  7584. :term:`UBOOT_SIGN_KEYDIR`
  7585. Location of the directory containing the RSA key and certificate used for
  7586. signing FIT image, used by the :ref:`ref-classes-kernel-fitimage` and
  7587. :ref:`ref-classes-uboot-sign` classes.
  7588. :term:`UBOOT_SIGN_KEYNAME`
  7589. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  7590. for signing U-Boot FIT image stored in the :term:`UBOOT_SIGN_KEYDIR`
  7591. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  7592. certificate stored in the :term:`UBOOT_SIGN_KEYDIR` directory, you will
  7593. have to set :term:`UBOOT_SIGN_KEYNAME` to ``dev``.
  7594. :term:`UBOOT_SUFFIX`
  7595. Points to the generated U-Boot extension. For example, ``u-boot.sb``
  7596. has a ``.sb`` extension.
  7597. The default U-Boot extension is ``.bin``
  7598. :term:`UBOOT_TARGET`
  7599. Specifies the target used for building U-Boot. The target is passed
  7600. directly as part of the "make" command (e.g. SPL and AIS). If you do
  7601. not specifically set this variable, the OpenEmbedded build process
  7602. passes and uses "all" for the target during the U-Boot building
  7603. process.
  7604. :term:`UKIFY_CMD`
  7605. When inheriting the :ref:`ref-classes-uki` class,
  7606. `ukify <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__ command to build
  7607. `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7608. Defaults to ``ukify build``.
  7609. :term:`UKI_CMDLINE`
  7610. When inheriting the :ref:`ref-classes-uki` class, the kernel command line
  7611. to use when booting the `Unified Kernel Image (UKI)
  7612. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7613. Defaults to ``rootwait root=LABEL=root console=${KERNEL_CONSOLE}``.
  7614. :term:`UKI_CONFIG_FILE`
  7615. When inheriting the :ref:`ref-classes-uki` class, an optional config
  7616. file for the `ukify
  7617. <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__
  7618. command.
  7619. :term:`UKI_FILENAME`
  7620. When inheriting the :ref:`ref-classes-uki` class, the output file name
  7621. for the generated `Unified Kernel Image (UKI)
  7622. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7623. Defaults to ``uki.efi``.
  7624. :term:`UKI_KERNEL_FILENAME`
  7625. When inheriting the :ref:`ref-classes-uki` class, the kernel image file
  7626. name to use as input. Defaults to :term:`KERNEL_IMAGETYPE`.
  7627. :term:`UKI_SB_CERT`
  7628. When inheriting the :ref:`ref-classes-uki` class, optional UEFI
  7629. secureboot certificate matching the private key in :term:`UKI_SB_KEY`.
  7630. :term:`UKI_SB_KEY`
  7631. When inheriting the :ref:`ref-classes-uki` class, optional UEFI
  7632. secureboot private key to sign the `Unified Kernel Image (UKI)
  7633. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7634. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`
  7635. Specifies a list of options that, if reported by the configure script
  7636. as being invalid, should not generate a warning during the
  7637. :ref:`ref-tasks-configure` task. Normally, invalid
  7638. configure options are simply not passed to the configure script (e.g.
  7639. should be removed from :term:`EXTRA_OECONF` or
  7640. :term:`PACKAGECONFIG_CONFARGS`).
  7641. However, there are common options that are passed to all
  7642. configure scripts at a class level, but might not be valid for some
  7643. configure scripts. Therefore warnings about these options are useless.
  7644. For these cases, the options are added to :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`.
  7645. The configure arguments check that uses
  7646. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` is part of the
  7647. :ref:`ref-classes-insane` class and is only enabled if the
  7648. recipe inherits the :ref:`ref-classes-autotools` class.
  7649. :term:`UNPACKDIR`
  7650. This variable, used by the :ref:`ref-classes-base` class,
  7651. specifies where fetches sources should be unpacked by the
  7652. :ref:`ref-tasks-unpack` task.
  7653. :term:`UPDATERCPN`
  7654. For recipes inheriting the
  7655. :ref:`ref-classes-update-rc.d` class, :term:`UPDATERCPN`
  7656. specifies the package that contains the initscript that is enabled.
  7657. The default value is "${PN}". Given that almost all recipes that
  7658. install initscripts package them in the main package for the recipe,
  7659. you rarely need to set this variable in individual recipes.
  7660. :term:`UPSTREAM_CHECK_COMMITS`
  7661. You can perform a per-recipe check for what the latest upstream
  7662. source code version is by calling ``devtool latest-version recipe``. If
  7663. the recipe source code is provided from Git repositories, but
  7664. releases are not identified by Git tags, set :term:`UPSTREAM_CHECK_COMMITS`
  7665. to ``1`` in the recipe, and the OpenEmbedded build system
  7666. will compare the latest commit with the one currently specified
  7667. by the recipe (:term:`SRCREV`)::
  7668. UPSTREAM_CHECK_COMMITS = "1"
  7669. :term:`UPSTREAM_CHECK_GITTAGREGEX`
  7670. You can perform a per-recipe check for what the latest upstream
  7671. source code version is by calling ``devtool latest-version recipe``. If
  7672. the recipe source code is provided from Git repositories, the
  7673. OpenEmbedded build system determines the latest upstream version by
  7674. picking the latest tag from the list of all repository tags.
  7675. You can use the :term:`UPSTREAM_CHECK_GITTAGREGEX` variable to provide a
  7676. regular expression to filter only the relevant tags should the
  7677. default filter not work correctly::
  7678. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  7679. :term:`UPSTREAM_CHECK_REGEX`
  7680. Use the :term:`UPSTREAM_CHECK_REGEX` variable to specify a different
  7681. regular expression instead of the default one when the package
  7682. checking system is parsing the page found using
  7683. :term:`UPSTREAM_CHECK_URI`::
  7684. UPSTREAM_CHECK_REGEX = "package_regex"
  7685. :term:`UPSTREAM_CHECK_URI`
  7686. You can perform a per-recipe check for what the latest upstream
  7687. source code version is by calling ``devtool latest-version recipe``. If
  7688. the source code is provided from tarballs, the latest version is
  7689. determined by fetching the directory listing where the tarball is and
  7690. attempting to find a later tarball. When this approach does not work,
  7691. you can use :term:`UPSTREAM_CHECK_URI` to provide a different URI that
  7692. contains the link to the latest tarball::
  7693. UPSTREAM_CHECK_URI = "recipe_url"
  7694. :term:`UPSTREAM_VERSION_UNKNOWN`
  7695. You can perform a per-recipe check for what the latest upstream
  7696. source code version is by calling ``devtool latest-version recipe``.
  7697. If no combination of the :term:`UPSTREAM_CHECK_URI`, :term:`UPSTREAM_CHECK_REGEX`,
  7698. :term:`UPSTREAM_CHECK_GITTAGREGEX` and :term:`UPSTREAM_CHECK_COMMITS` variables in
  7699. the recipe allows to determine what the latest upstream version is,
  7700. you can set :term:`UPSTREAM_VERSION_UNKNOWN` to ``1`` in the recipe
  7701. to acknowledge that the check cannot be performed::
  7702. UPSTREAM_VERSION_UNKNOWN = "1"
  7703. :term:`USE_DEVFS`
  7704. Determines if ``devtmpfs`` is used for ``/dev`` population. The
  7705. default value used for :term:`USE_DEVFS` is "1" when no value is
  7706. specifically set. Typically, you would set :term:`USE_DEVFS` to "0" for a
  7707. statically populated ``/dev`` directory.
  7708. See the ":ref:`dev-manual/device-manager:selecting a device manager`" section in
  7709. the Yocto Project Development Tasks Manual for information on how to
  7710. use this variable.
  7711. :term:`USE_VT`
  7712. When using
  7713. :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  7714. determines whether or not to run a :wikipedia:`getty <Getty_(Unix)>`
  7715. on any virtual terminals in order to enable logging in through those
  7716. terminals.
  7717. The default value used for :term:`USE_VT` is "1" when no default value is
  7718. specifically set. Typically, you would set :term:`USE_VT` to "0" in the
  7719. machine configuration file for machines that do not have a graphical
  7720. display attached and therefore do not need virtual terminal
  7721. functionality.
  7722. :term:`USER_CLASSES`
  7723. A list of classes to globally inherit. These classes are used by the
  7724. OpenEmbedded build system to enable extra features.
  7725. Classes inherited using :term:`USER_CLASSES` must be located in the
  7726. ``classes-global/`` or ``classes/`` subdirectories.
  7727. The default list is set in your ``local.conf`` file::
  7728. USER_CLASSES ?= "buildstats"
  7729. For more information, see
  7730. ``meta-poky/conf/templates/default/local.conf.sample`` in the
  7731. :term:`Source Directory`.
  7732. :term:`USERADD_DEPENDS`
  7733. Specifies a list of recipes that create users / groups (via
  7734. :term:`USERADD_PARAM` / :term:`GROUPADD_PARAM`) which a recipe
  7735. depends upon. This ensures that those users / groups are available
  7736. when building a recipe.
  7737. :term:`USERADD_ERROR_DYNAMIC`
  7738. If set to ``error``, forces the OpenEmbedded build system to produce
  7739. an error if the user identification (``uid``) and group
  7740. identification (``gid``) values are not defined in any of the files
  7741. listed in :term:`USERADD_UID_TABLES` and
  7742. :term:`USERADD_GID_TABLES`. If set to
  7743. ``warn``, a warning will be issued instead.
  7744. The default behavior for the build system is to dynamically apply
  7745. ``uid`` and ``gid`` values. Consequently, the
  7746. :term:`USERADD_ERROR_DYNAMIC` variable is by default not set. If you plan
  7747. on using statically assigned ``gid`` and ``uid`` values, you should
  7748. set the :term:`USERADD_ERROR_DYNAMIC` variable in your ``local.conf``
  7749. file as follows::
  7750. USERADD_ERROR_DYNAMIC = "error"
  7751. Overriding the
  7752. default behavior implies you are going to also take steps to set
  7753. static ``uid`` and ``gid`` values through use of the
  7754. :term:`USERADDEXTENSION`,
  7755. :term:`USERADD_UID_TABLES`, and
  7756. :term:`USERADD_GID_TABLES` variables.
  7757. .. note::
  7758. There is a difference in behavior between setting
  7759. :term:`USERADD_ERROR_DYNAMIC` to ``error`` and setting it to ``warn``.
  7760. When it is set to ``warn``, the build system will report a warning for
  7761. every undefined ``uid`` and ``gid`` in any recipe. But when it is set
  7762. to ``error``, it will only report errors for recipes that are actually
  7763. built.
  7764. This saves you from having to add static IDs for recipes that you
  7765. know will never be built.
  7766. :term:`USERADD_GID_TABLES`
  7767. Specifies a password file to use for obtaining static group
  7768. identification (``gid``) values when the OpenEmbedded build system
  7769. adds a group to the system during package installation.
  7770. When applying static group identification (``gid``) values, the
  7771. OpenEmbedded build system looks in :term:`BBPATH` for a
  7772. ``files/group`` file and then applies those ``uid`` values. Set the
  7773. variable as follows in your ``local.conf`` file::
  7774. USERADD_GID_TABLES = "files/group"
  7775. .. note::
  7776. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7777. causes the build system to use static ``gid`` values.
  7778. :term:`USERADD_PACKAGES`
  7779. When inheriting the :ref:`ref-classes-useradd` class,
  7780. this variable specifies the individual packages within the recipe
  7781. that require users and/or groups to be added.
  7782. You must set this variable if the recipe inherits the class. For
  7783. example, the following enables adding a user for the main package in
  7784. a recipe::
  7785. USERADD_PACKAGES = "${PN}"
  7786. .. note::
  7787. It follows that if you are going to use the :term:`USERADD_PACKAGES`
  7788. variable, you need to set one or more of the :term:`USERADD_PARAM`,
  7789. :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables.
  7790. :term:`USERADD_PARAM`
  7791. When inheriting the :ref:`ref-classes-useradd` class,
  7792. this variable specifies for a package what parameters should pass to
  7793. the ``useradd`` command if you add a user to the system when the
  7794. package is installed.
  7795. Here is an example from the ``dbus`` recipe::
  7796. USERADD_PARAM:${PN} = "--system --home ${localstatedir}/lib/dbus \
  7797. --no-create-home --shell /bin/false \
  7798. --user-group messagebus"
  7799. For information on the
  7800. standard Linux shell command ``useradd``, see
  7801. https://linux.die.net/man/8/useradd.
  7802. :term:`USERADD_UID_TABLES`
  7803. Specifies a password file to use for obtaining static user
  7804. identification (``uid``) values when the OpenEmbedded build system
  7805. adds a user to the system during package installation.
  7806. When applying static user identification (``uid``) values, the
  7807. OpenEmbedded build system looks in :term:`BBPATH` for a
  7808. ``files/passwd`` file and then applies those ``uid`` values. Set the
  7809. variable as follows in your ``local.conf`` file::
  7810. USERADD_UID_TABLES = "files/passwd"
  7811. .. note::
  7812. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7813. causes the build system to use static ``uid`` values.
  7814. :term:`USERADDEXTENSION`
  7815. When set to "useradd-staticids", causes the OpenEmbedded build system
  7816. to base all user and group additions on a static ``passwd`` and
  7817. ``group`` files found in :term:`BBPATH`.
  7818. To use static user identification (``uid``) and group identification
  7819. (``gid``) values, set the variable as follows in your ``local.conf``
  7820. file: USERADDEXTENSION = "useradd-staticids"
  7821. .. note::
  7822. Setting this variable to use static ``uid`` and ``gid``
  7823. values causes the OpenEmbedded build system to employ the
  7824. :ref:`ref-classes-useradd` class.
  7825. If you use static ``uid`` and ``gid`` information, you must also
  7826. specify the ``files/passwd`` and ``files/group`` files by setting the
  7827. :term:`USERADD_UID_TABLES` and
  7828. :term:`USERADD_GID_TABLES` variables.
  7829. Additionally, you should also set the
  7830. :term:`USERADD_ERROR_DYNAMIC` variable.
  7831. :term:`VIRTUAL-RUNTIME`
  7832. :term:`VIRTUAL-RUNTIME` is a commonly used prefix for defining virtual
  7833. packages for runtime usage, typically for use in :term:`RDEPENDS`
  7834. or in image definitions.
  7835. An example is ``VIRTUAL-RUNTIME_base-utils`` that makes it possible
  7836. to either use BusyBox based utilities::
  7837. VIRTUAL-RUNTIME_base-utils = "busybox"
  7838. or their full featured implementations from GNU Coreutils
  7839. and other projects::
  7840. VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
  7841. Here are two examples using this virtual runtime package. The
  7842. first one is in :yocto_git:`initramfs-framework_1.0.bb
  7843. </poky/tree/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb?h=scarthgap>`::
  7844. RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}"
  7845. The second example is in the :yocto_git:`core-image-initramfs-boot
  7846. </poky/tree/meta/recipes-core/images/core-image-initramfs-boot.bb?h=scarthgap>`
  7847. image definition::
  7848. PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd"
  7849. :term:`WARN_QA`
  7850. Specifies the quality assurance checks whose failures are reported as
  7851. warnings by the OpenEmbedded build system. You set this variable in
  7852. your distribution configuration file. For a list of the checks you
  7853. can control with this variable, see the
  7854. ":ref:`ref-classes-insane`" section.
  7855. :term:`WATCHDOG_TIMEOUT`
  7856. Specifies the timeout in seconds used by the ``watchdog`` recipe and
  7857. also by ``systemd`` during reboot. The default is 60 seconds.
  7858. :term:`WIC_SECTOR_SIZE`
  7859. The variable :term:`WIC_SECTOR_SIZE` controls the sector size of Wic
  7860. images. In the background, this controls the value of the
  7861. ``PARTED_SECTOR_SIZE`` environment variable passed to the ``parted``
  7862. command-line utility, used to generated the images. The default value is
  7863. ``512``.
  7864. For more information on how to create Wic images, see the
  7865. ":ref:`dev-manual/wic:creating partitioned images using wic`" section in
  7866. the Yocto Project Development Tasks Manual.
  7867. :term:`WIRELESS_DAEMON`
  7868. For ``connman`` and ``packagegroup-base``, specifies the wireless
  7869. daemon to use. The default is "wpa-supplicant" (note that the value
  7870. uses a dash and not an underscore).
  7871. :term:`WKS_FILE`
  7872. Specifies the location of the Wic kickstart file that is used by the
  7873. OpenEmbedded build system to create a partitioned image
  7874. (``image.wic``). For information on how to create a partitioned
  7875. image, see the
  7876. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  7877. section in the Yocto Project Development Tasks Manual. For details on
  7878. the kickstart file format, see the ":doc:`/ref-manual/kickstart`" Chapter.
  7879. :term:`WKS_FILE_DEPENDS`
  7880. When placed in the recipe that builds your image, this variable lists
  7881. build-time dependencies. The :term:`WKS_FILE_DEPENDS` variable is only
  7882. applicable when Wic images are active (i.e. when
  7883. :term:`IMAGE_FSTYPES` contains entries related
  7884. to Wic). If your recipe does not create Wic images, the variable has
  7885. no effect.
  7886. The :term:`WKS_FILE_DEPENDS` variable is similar to the
  7887. :term:`DEPENDS` variable. When you use the variable in
  7888. your recipe that builds the Wic image, dependencies you list in the
  7889. :term:`WKS_FILE_DEPENDS` variable are added to the :term:`DEPENDS` variable.
  7890. With the :term:`WKS_FILE_DEPENDS` variable, you have the possibility to
  7891. specify a list of additional dependencies (e.g. native tools,
  7892. bootloaders, and so forth), that are required to build Wic images.
  7893. Here is an example::
  7894. WKS_FILE_DEPENDS = "some-native-tool"
  7895. In the
  7896. previous example, some-native-tool would be replaced with an actual
  7897. native tool on which the build would depend.
  7898. :term:`WKS_FILES`
  7899. Specifies a list of candidate Wic kickstart files to be used by the
  7900. OpenEmbedded build system to create a partitioned image. Only the
  7901. first one that is found, from left to right, will be used.
  7902. This is only useful when there are multiple ``.wks`` files that can be
  7903. used to produce an image. A typical case is when multiple layers are
  7904. used for different hardware platforms, each supplying a different
  7905. ``.wks`` file. In this case, you specify all possible ones through
  7906. :term:`WKS_FILES`.
  7907. If only one ``.wks`` file is used, set :term:`WKS_FILE` instead.
  7908. :term:`WORKDIR`
  7909. The pathname of the work directory in which the OpenEmbedded build
  7910. system builds a recipe. This directory is located within the
  7911. :term:`TMPDIR` directory structure and is specific to
  7912. the recipe being built and the system for which it is being built.
  7913. The :term:`WORKDIR` directory is defined as follows::
  7914. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  7915. The actual directory depends on several things:
  7916. - :term:`TMPDIR`: The top-level build output directory
  7917. - :term:`MULTIMACH_TARGET_SYS`: The target system identifier
  7918. - :term:`PN`: The recipe name
  7919. - :term:`EXTENDPE`: The epoch --- if :term:`PE` is not specified, which
  7920. is usually the case for most recipes, then :term:`EXTENDPE` is blank.
  7921. - :term:`PV`: The recipe version
  7922. - :term:`PR`: The recipe revision
  7923. As an example, assume a Source Directory top-level folder name
  7924. ``poky``, a default :term:`Build Directory` at ``poky/build``, and a
  7925. ``qemux86-poky-linux`` machine target system. Furthermore, suppose
  7926. your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
  7927. directory the build system uses to build the package would be as
  7928. follows::
  7929. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  7930. :term:`XSERVER`
  7931. Specifies the packages that should be installed to provide an X
  7932. server and drivers for the current machine, assuming your image
  7933. directly includes ``packagegroup-core-x11-xserver`` or, perhaps
  7934. indirectly, includes "x11-base" in
  7935. :term:`IMAGE_FEATURES`.
  7936. The default value of :term:`XSERVER`, if not specified in the machine
  7937. configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  7938. :term:`XZ_THREADS`
  7939. Specifies the number of parallel threads that should be used when
  7940. using xz compression.
  7941. By default this scales with core count, but is never set less than 2
  7942. to ensure that multi-threaded mode is always used so that the output
  7943. file contents are deterministic. Builds will work with a value of 1
  7944. but the output will differ compared to the output from the compression
  7945. generated when more than one thread is used.
  7946. On systems where many tasks run in parallel, setting a limit to this
  7947. can be helpful in controlling system resource usage.
  7948. :term:`XZ_MEMLIMIT`
  7949. Specifies the maximum memory the xz compression should use as a percentage
  7950. of system memory. If unconstrained the xz compressor can use large amounts of
  7951. memory and become problematic with parallelism elsewhere in the build.
  7952. "50%" has been found to be a good value.
  7953. :term:`ZSTD_COMPRESSION_LEVEL`
  7954. Specifies the compression level to be used with ZStandard compression
  7955. (from ``1`` to ``19``, set to ``3`` by default, following upstream choice).
  7956. Higher levels produce smaller files, but take longer to complete.
  7957. :term:`ZSTD_THREADS`
  7958. Specifies the number of parallel threads that should be used when
  7959. using ZStandard compression.
  7960. By default this scales with core count, but is never set less than 2
  7961. to ensure that multi-threaded mode is always used so that the output
  7962. file contents are deterministic. Builds will work with a value of 1
  7963. but the output will differ compared to the output from the compression
  7964. generated when more than one thread is used.
  7965. On systems where many tasks run in parallel, setting a limit to this
  7966. can be helpful in controlling system resource usage.