variables.rst 382 KB

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