variables.rst 481 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. ******************
  3. Variables Glossary
  4. ******************
  5. This chapter lists common variables used in the OpenEmbedded build
  6. system and gives an overview of their function and contents.
  7. :term:`A <ABIEXTENSION>` :term:`B` :term:`C <CACHE>`
  8. :term:`D` :term:`E <EFI_PROVIDER>` :term:`F <FAKEROOT>`
  9. :term:`G <GCCPIE>` :term:`H <HGDIR>` :term:`I <ICECC_CLASS_DISABLE>`
  10. :term:`K <KARCH>` :term:`L <LABELS>` :term:`M <MACHINE>`
  11. :term:`N <NATIVELSBSTRING>` :term:`O <OBJCOPY>` :term:`P`
  12. :term:`Q <QA_EMPTY_DIRS>` :term:`R <RANLIB>` :term:`S` :term:`T`
  13. :term:`U <UBOOT_BINARY>` :term:`V <VIRTUAL-RUNTIME>`
  14. :term:`W <WARN_QA>` :term:`X <XSERVER>` :term:`Z <ZSTD_THREADS>`
  15. .. glossary::
  16. :sorted:
  17. :term:`ABIEXTENSION`
  18. Extension to the Application Binary Interface (ABI) field of the GNU
  19. canonical architecture name (e.g. "eabi").
  20. ABI extensions are set in the machine include files. For example, the
  21. ``meta/conf/machine/include/arm/arch-arm.inc`` file sets the
  22. following extension::
  23. ABIEXTENSION = "eabi"
  24. :term:`ALLOW_EMPTY`
  25. Specifies whether to produce an output package even if it is empty.
  26. By default, BitBake does not produce empty packages. This default
  27. behavior can cause issues when there is an
  28. :term:`RDEPENDS` or some other hard runtime
  29. requirement on the existence of the package.
  30. Like all package-controlling variables, you must always use them in
  31. conjunction with a package name override, as in::
  32. ALLOW_EMPTY:${PN} = "1"
  33. ALLOW_EMPTY:${PN}-dev = "1"
  34. ALLOW_EMPTY:${PN}-staticdev = "1"
  35. :term:`ALTERNATIVE`
  36. Lists commands in a package that need an alternative binary naming
  37. scheme. Sometimes the same command is provided in multiple packages.
  38. When this occurs, the OpenEmbedded build system needs to use the
  39. alternatives system to create a different binary naming scheme so the
  40. commands can co-exist.
  41. To use the variable, list out the package's commands that are also
  42. provided by another package. For example, if the ``busybox`` package
  43. has four such commands, you identify them as follows::
  44. ALTERNATIVE:busybox = "sh sed test bracket"
  45. For more information on the alternatives system, see the
  46. ":ref:`ref-classes-update-alternatives`"
  47. section.
  48. :term:`ALTERNATIVE_LINK_NAME`
  49. Used by the alternatives system to map duplicated commands to actual
  50. locations. For example, if the ``bracket`` command provided by the
  51. ``busybox`` package is duplicated through another package, you must
  52. use the :term:`ALTERNATIVE_LINK_NAME` variable to specify the actual
  53. location::
  54. ALTERNATIVE_LINK_NAME[bracket] = "/usr/bin/["
  55. In this example, the binary for the ``bracket`` command (i.e. ``[``)
  56. from the ``busybox`` package resides in ``/usr/bin/``.
  57. .. note::
  58. If :term:`ALTERNATIVE_LINK_NAME` is not defined, it defaults to ``${bindir}/name``.
  59. For more information on the alternatives system, see the
  60. ":ref:`ref-classes-update-alternatives`"
  61. section.
  62. :term:`ALTERNATIVE_PRIORITY`
  63. Used by the alternatives system to create default priorities for
  64. duplicated commands. You can use the variable to create a single
  65. default regardless of the command name or package, a default for
  66. specific duplicated commands regardless of the package, or a default
  67. for specific commands tied to particular packages. Here are the
  68. available syntax forms::
  69. ALTERNATIVE_PRIORITY = "priority"
  70. ALTERNATIVE_PRIORITY[name] = "priority"
  71. ALTERNATIVE_PRIORITY_pkg[name] = "priority"
  72. For more information on the alternatives system, see the
  73. ":ref:`ref-classes-update-alternatives`"
  74. section.
  75. :term:`ALTERNATIVE_TARGET`
  76. Used by the alternatives system to create default link locations for
  77. duplicated commands. You can use the variable to create a single
  78. default location for all duplicated commands regardless of the
  79. command name or package, a default for specific duplicated commands
  80. regardless of the package, or a default for specific commands tied to
  81. particular packages. Here are the available syntax forms::
  82. ALTERNATIVE_TARGET = "target"
  83. ALTERNATIVE_TARGET[name] = "target"
  84. ALTERNATIVE_TARGET_pkg[name] = "target"
  85. .. note::
  86. If :term:`ALTERNATIVE_TARGET` is not defined, it inherits the value
  87. from the :term:`ALTERNATIVE_LINK_NAME` variable.
  88. If :term:`ALTERNATIVE_LINK_NAME` and :term:`ALTERNATIVE_TARGET` are the
  89. same, the target for :term:`ALTERNATIVE_TARGET` has "``.{BPN}``"
  90. appended to it.
  91. Finally, if the file referenced has not been renamed, the
  92. alternatives system will rename it to avoid the need to rename
  93. alternative files in the :ref:`ref-tasks-install`
  94. task while retaining support for the command if necessary.
  95. For more information on the alternatives system, see the
  96. ":ref:`ref-classes-update-alternatives`" section.
  97. :term:`ANY_OF_DISTRO_FEATURES`
  98. When inheriting the :ref:`ref-classes-features_check`
  99. class, this variable identifies a list of distribution features where
  100. at least one must be enabled in the current configuration in order
  101. for the OpenEmbedded build system to build the recipe. In other words,
  102. if none of the features listed in :term:`ANY_OF_DISTRO_FEATURES`
  103. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  104. the recipe will be skipped, and if the build system attempts to build
  105. the recipe then an error will be triggered.
  106. :term:`APPEND`
  107. An override list of append strings for each target specified with
  108. :term:`LABELS`.
  109. See the :ref:`ref-classes-grub-efi` class for more
  110. information on how this variable is used.
  111. :term:`AR`
  112. The minimal command and arguments used to run :manpage:`ar <ar(1)>`.
  113. :term:`ARCHIVER_MODE`
  114. When used with the :ref:`ref-classes-archiver` class,
  115. determines the type of information used to create a released archive.
  116. You can use this variable to create archives of patched source,
  117. original source, configured source, and so forth by employing the
  118. following variable flags (varflags)::
  119. ARCHIVER_MODE[src] = "original" # Uses original (unpacked) source files.
  120. ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is the default.
  121. ARCHIVER_MODE[src] = "configured" # Uses configured source files.
  122. ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and do_patch.
  123. ARCHIVER_MODE[diff-exclude] ?= "file file ..." # Lists files and directories to exclude from diff.
  124. ARCHIVER_MODE[dumpdata] = "1" # Uses environment data.
  125. ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files.
  126. ARCHIVER_MODE[srpm] = "1" # Uses RPM package files.
  127. For information on how the variable works, see the
  128. ``meta/classes/archiver.bbclass`` file in the :term:`Source Directory`.
  129. :term:`AS`
  130. Minimal command and arguments needed to run the :manpage:`assembler
  131. <as(1)>`.
  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:`AUTO_LIBNAME_PKGS`
  151. When the :ref:`ref-classes-debian` class is inherited,
  152. which is the default behavior, :term:`AUTO_LIBNAME_PKGS` specifies which
  153. packages should be checked for libraries and renamed according to
  154. Debian library package naming.
  155. The default value is "${PACKAGES}", which causes the
  156. :ref:`ref-classes-debian` class to act on all packages that are
  157. explicitly generated by the recipe.
  158. :term:`AUTOREV`
  159. When :term:`SRCREV` is set to the value of this variable, it specifies to
  160. use the latest source revision in the repository. Here is an example::
  161. SRCREV = "${AUTOREV}"
  162. If you use the previous statement to retrieve the latest version of
  163. software, you need to make sure :term:`PV` contains the ``+`` sign so
  164. :term:`bitbake` includes source control information to :term:`PKGV` when
  165. packaging the recipe. For example::
  166. PV = "6.10.y+git"
  167. For more information see the
  168. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  169. section in the Yocto Project Development Tasks Manual.
  170. :term:`AUTO_SYSLINUXMENU`
  171. Enables creating an automatic menu for the syslinux bootloader. You
  172. must set this variable in your recipe. The
  173. :ref:`ref-classes-syslinux` class checks this variable.
  174. :term:`AUTOTOOLS_SCRIPT_PATH`
  175. When using the :ref:`ref-classes-autotools` class, the
  176. :term:`AUTOTOOLS_SCRIPT_PATH` variable stores the location of the
  177. different scripts used by the Autotools build system. The default
  178. value for this variable is :term:`S`.
  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/libraries: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-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-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. AZ_SAS = ""se=2021-01-01&sp=r&sv=2018-11-09&sr=c&skoid=<skoid>&sig=<signature>""
  199. For more information see Microsoft's Azure Storage documentation at
  200. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
  201. :term:`B`
  202. The directory within the :term:`Build Directory` in which the
  203. OpenEmbedded build system places generated objects during a recipe's
  204. build process. By default, this directory is the same as the
  205. :term:`S` directory, which is defined as::
  206. S = "${WORKDIR}/${BP}"
  207. You can separate the (:term:`S`) directory and the directory pointed to
  208. by the :term:`B` variable. Most Autotools-based recipes support
  209. separating these directories. The build system defaults to using
  210. separate directories for ``gcc`` and some kernel recipes.
  211. :term:`BAD_RECOMMENDATIONS`
  212. Lists "recommended-only" packages to not install. Recommended-only
  213. packages are packages installed only through the
  214. :term:`RRECOMMENDS` variable. You can prevent any
  215. of these "recommended" packages from being installed by listing them
  216. with the :term:`BAD_RECOMMENDATIONS` variable::
  217. BAD_RECOMMENDATIONS = "package_name package_name package_name ..."
  218. You can set this variable globally in your ``local.conf`` file or you
  219. can attach it to a specific image recipe by using the recipe name
  220. override::
  221. BAD_RECOMMENDATIONS:pn-target_image = "package_name"
  222. It is important to realize that if you choose to not install packages
  223. using this variable and some other packages are dependent on them
  224. (i.e. listed in a recipe's :term:`RDEPENDS`
  225. variable), the OpenEmbedded build system ignores your request and
  226. will install the packages to avoid dependency errors.
  227. This variable is supported only when using the IPK and RPM
  228. packaging backends. DEB is not supported.
  229. See the :term:`NO_RECOMMENDATIONS` and the
  230. :term:`PACKAGE_EXCLUDE` variables for related
  231. information.
  232. :term:`BAREBOX_BINARY`
  233. When using the :ref:`ref-classes-barebox` class, this variable allows you
  234. to specify a particular binary that should be deployed and installed.
  235. The barebox build system can build multiple barebox binaries at once.
  236. By default, all built binaries will be deployed and installed under their
  237. original name.
  238. Here is an example usage of this variable::
  239. BAREBOX_BINARY = "barebox-boundarydevices-imx6dl-nitrogen6x-1g.img"
  240. :term:`BAREBOX_CONFIG`
  241. When using the :ref:`ref-classes-barebox` class, this variable allows you
  242. to specify the name of the barebox defconfig to build.
  243. The name must be a defconfig file known to the barebox build environment.
  244. This variable is mainly useful for generic use cases where a dedicated
  245. configuration is not required.
  246. The :ref:`ref-classes-barebox` class itself already sets it for some QEMU
  247. machines::
  248. BAREBOX_CONFIG:qemuarm = "multi_v7_defconfig"
  249. BAREBOX_CONFIG:qemuarm64 = "multi_v8_defconfig"
  250. BAREBOX_CONFIG:qemux86-64 = "efi_defconfig"
  251. Except for these, the default value of :term:`BAREBOX_CONFIG` is empty.
  252. For more information on how to provide a barebox configuration, see the
  253. :ref:`ref-classes-barebox` class.
  254. :term:`BASE_LIB`
  255. The library directory name for the CPU or Application Binary
  256. Interface (ABI) tune. The :term:`BASE_LIB` applies only in the Multilib
  257. context. See the ":ref:`dev-manual/libraries:combining multiple versions of library files into one image`"
  258. section in the Yocto Project Development Tasks Manual for information
  259. on Multilib.
  260. The :term:`BASE_LIB` variable is defined in the machine include files in
  261. the :term:`Source Directory`. If Multilib is not
  262. being used, the value defaults to "lib".
  263. :term:`BASE_WORKDIR`
  264. Points to the base of the work directory for all recipes. The default
  265. value is "${TMPDIR}/work".
  266. :term:`BB_ALLOWED_NETWORKS`
  267. Specifies a space-delimited list of hosts that the fetcher is allowed
  268. to use to obtain the required source code. Here are
  269. considerations surrounding this variable:
  270. - This host list is only used if :term:`BB_NO_NETWORK` is either not set
  271. or set to "0".
  272. - There is limited support for wildcard matching against the beginning of
  273. host names. For example, the following setting matches
  274. ``git.gnu.org``, ``ftp.gnu.org``, and ``foo.git.gnu.org``::
  275. BB_ALLOWED_NETWORKS = "*.gnu.org"
  276. .. note::
  277. The use of the "``*``" character only works at the beginning of
  278. a host name and it must be isolated from the remainder of the
  279. host name. You cannot use the wildcard character in any other
  280. location of the name or combined with the front part of the
  281. name.
  282. For example, ``*.foo.bar`` is supported, while ``*aa.foo.bar``
  283. is not.
  284. - Mirrors not in the host list are skipped and logged in debug.
  285. - Attempts to access networks not in the host list cause a failure.
  286. Using :term:`BB_ALLOWED_NETWORKS` in conjunction with
  287. :term:`PREMIRRORS` is very useful. Adding the host
  288. you want to use to :term:`PREMIRRORS` results in the source code being
  289. fetched from an allowed location and avoids raising an error when a
  290. host that is not allowed is in a :term:`SRC_URI`
  291. statement. This is because the fetcher does not attempt to use the
  292. host listed in :term:`SRC_URI` after a successful fetch from the
  293. :term:`PREMIRRORS` occurs.
  294. :term:`BB_BASEHASH_IGNORE_VARS`
  295. See :term:`bitbake:BB_BASEHASH_IGNORE_VARS` in the BitBake manual.
  296. :term:`BB_CACHEDIR`
  297. See :term:`bitbake:BB_CACHEDIR` in the BitBake manual.
  298. :term:`BB_CHECK_SSL_CERTS`
  299. See :term:`bitbake:BB_CHECK_SSL_CERTS` in the BitBake manual.
  300. :term:`BB_CONSOLELOG`
  301. See :term:`bitbake:BB_CONSOLELOG` in the BitBake manual.
  302. :term:`BB_CURRENTTASK`
  303. See :term:`bitbake:BB_CURRENTTASK` in the BitBake manual.
  304. :term:`BB_CURRENT_MC`
  305. See :term:`bitbake:BB_CURRENT_MC` in the BitBake manual.
  306. :term:`BB_DEFAULT_TASK`
  307. See :term:`bitbake:BB_DEFAULT_TASK` in the BitBake manual.
  308. :term:`BB_DEFAULT_UMASK`
  309. See :term:`bitbake:BB_DEFAULT_UMASK` in the BitBake manual.
  310. :term:`BB_DISKMON_DIRS`
  311. Monitors disk space and available inodes during the build and allows
  312. you to control the build based on these parameters.
  313. Disk space monitoring is disabled by default. To enable monitoring,
  314. add the :term:`BB_DISKMON_DIRS` variable to your ``conf/local.conf`` file
  315. found in the :term:`Build Directory`. Use the
  316. following form:
  317. .. code-block:: none
  318. BB_DISKMON_DIRS = "action,dir,threshold [...]"
  319. where:
  320. action is:
  321. ABORT: Immediately stop the build when
  322. a threshold is broken.
  323. STOPTASKS: Stop the build after the currently
  324. executing tasks have finished when
  325. a threshold is broken.
  326. WARN: Issue a warning but continue the
  327. build when a threshold is broken.
  328. Subsequent warnings are issued as
  329. defined by the BB_DISKMON_WARNINTERVAL
  330. variable, which must be defined in
  331. the conf/local.conf file.
  332. dir is:
  333. Any directory you choose. You can specify one or
  334. more directories to monitor by separating the
  335. groupings with a space. If two directories are
  336. on the same device, only the first directory
  337. is monitored.
  338. threshold is:
  339. Either the minimum available disk space,
  340. the minimum number of free inodes, or
  341. both. You must specify at least one. To
  342. omit one or the other, simply omit the value.
  343. Specify the threshold using G, M, K for Gbytes,
  344. Mbytes, and Kbytes, respectively. If you do
  345. not specify G, M, or K, Kbytes is assumed by
  346. default. Do not use GB, MB, or KB.
  347. Here are some examples::
  348. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  349. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  350. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  351. The first example works only if you also provide the
  352. :term:`BB_DISKMON_WARNINTERVAL`
  353. variable in the ``conf/local.conf``. This example causes the build
  354. system to immediately stop when either the disk space in
  355. ``${TMPDIR}`` drops below 1 Gbyte or the available free inodes drops
  356. below 100 Kbytes. Because two directories are provided with the
  357. variable, the build system also issue a warning when the disk space
  358. in the ``${SSTATE_DIR}`` directory drops below 1 Gbyte or the number
  359. of free inodes drops below 100 Kbytes. Subsequent warnings are issued
  360. during intervals as defined by the :term:`BB_DISKMON_WARNINTERVAL`
  361. variable.
  362. The second example stops the build after all currently executing
  363. tasks complete when the minimum disk space in the ``${TMPDIR}``
  364. directory drops below 1 Gbyte. No disk monitoring occurs for the free
  365. inodes in this case.
  366. The final example immediately stops the build when the number of
  367. free inodes in the ``${TMPDIR}`` directory drops below 100 Kbytes. No
  368. disk space monitoring for the directory itself occurs in this case.
  369. :term:`BB_DISKMON_WARNINTERVAL`
  370. Defines the disk space and free inode warning intervals. To set these
  371. intervals, define the variable in your ``conf/local.conf`` file in
  372. the :term:`Build Directory`.
  373. If you are going to use the :term:`BB_DISKMON_WARNINTERVAL` variable, you
  374. must also use the :term:`BB_DISKMON_DIRS`
  375. variable and define its action as "WARN". During the build,
  376. subsequent warnings are issued each time disk space or number of free
  377. inodes further reduces by the respective interval.
  378. If you do not provide a :term:`BB_DISKMON_WARNINTERVAL` variable and you
  379. do use :term:`BB_DISKMON_DIRS` with the "WARN" action, the disk
  380. monitoring interval defaults to the following::
  381. BB_DISKMON_WARNINTERVAL = "50M,5K"
  382. When specifying the variable in your configuration file, use the
  383. following form:
  384. .. code-block:: none
  385. BB_DISKMON_WARNINTERVAL = "disk_space_interval,disk_inode_interval"
  386. where:
  387. disk_space_interval is:
  388. An interval of memory expressed in either
  389. G, M, or K for Gbytes, Mbytes, or Kbytes,
  390. respectively. You cannot use GB, MB, or KB.
  391. disk_inode_interval is:
  392. An interval of free inodes expressed in either
  393. G, M, or K for Gbytes, Mbytes, or Kbytes,
  394. respectively. You cannot use GB, MB, or KB.
  395. Here is an example::
  396. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  397. BB_DISKMON_WARNINTERVAL = "50M,5K"
  398. These variables cause the
  399. OpenEmbedded build system to issue subsequent warnings each time the
  400. available disk space further reduces by 50 Mbytes or the number of
  401. free inodes further reduces by 5 Kbytes in the ``${SSTATE_DIR}``
  402. directory. Subsequent warnings based on the interval occur each time
  403. a respective interval is reached beyond the initial warning (i.e. 1
  404. Gbytes and 100 Kbytes).
  405. :term:`BB_ENV_PASSTHROUGH`
  406. See :term:`bitbake:BB_ENV_PASSTHROUGH` in the BitBake manual.
  407. :term:`BB_ENV_PASSTHROUGH_ADDITIONS`
  408. See :term:`bitbake:BB_ENV_PASSTHROUGH_ADDITIONS` in the BitBake manual.
  409. :term:`BB_FETCH_PREMIRRORONLY`
  410. See :term:`bitbake:BB_FETCH_PREMIRRORONLY` in the BitBake manual.
  411. :term:`BB_FILENAME`
  412. See :term:`bitbake:BB_FILENAME` in the BitBake manual.
  413. :term:`BB_GENERATE_MIRROR_TARBALLS`
  414. Causes tarballs of the source control repositories (e.g. Git
  415. repositories), including metadata, to be placed in the
  416. :term:`DL_DIR` directory.
  417. For performance reasons, creating and placing tarballs of these
  418. repositories is not the default action by the OpenEmbedded build
  419. system::
  420. BB_GENERATE_MIRROR_TARBALLS = "1"
  421. Set this variable in your
  422. ``local.conf`` file in the :term:`Build Directory`.
  423. Once you have the tarballs containing your source files, you can
  424. clean up your :term:`DL_DIR` directory by deleting any Git or other
  425. source control work directories.
  426. :term:`BB_GENERATE_SHALLOW_TARBALLS`
  427. See :term:`bitbake:BB_GENERATE_SHALLOW_TARBALLS` in the BitBake manual.
  428. :term:`BB_GIT_SHALLOW`
  429. See :term:`bitbake:BB_GIT_SHALLOW` in the BitBake manual.
  430. :term:`BB_GIT_SHALLOW_DEPTH`
  431. See :term:`bitbake:BB_GIT_SHALLOW_DEPTH` in the BitBake manual.
  432. :term:`BB_HASHCHECK_FUNCTION`
  433. See :term:`bitbake:BB_HASHCHECK_FUNCTION` in the BitBake manual.
  434. :term:`BB_HASHCONFIG_IGNORE_VARS`
  435. See :term:`bitbake:BB_HASHCONFIG_IGNORE_VARS` in the BitBake manual.
  436. :term:`BB_HASHSERVE`
  437. See :term:`bitbake:BB_HASHSERVE` in the BitBake manual.
  438. :term:`BB_HASHSERVE_UPSTREAM`
  439. See :term:`bitbake:BB_HASHSERVE_UPSTREAM` in the BitBake manual.
  440. :term:`BB_INVALIDCONF`
  441. See :term:`bitbake:BB_INVALIDCONF` in the BitBake manual.
  442. :term:`BB_LOADFACTOR_MAX`
  443. The system load threshold above which BitBake will stop runnig extra
  444. tasks.
  445. :term:`BB_LOGCONFIG`
  446. See :term:`bitbake:BB_LOGCONFIG` in the BitBake manual.
  447. :term:`BB_LOGFMT`
  448. See :term:`bitbake:BB_LOGFMT` in the BitBake manual.
  449. :term:`BB_MULTI_PROVIDER_ALLOWED`
  450. See :term:`bitbake:BB_MULTI_PROVIDER_ALLOWED` in the BitBake manual.
  451. :term:`BB_NICE_LEVEL`
  452. See :term:`bitbake:BB_NICE_LEVEL` in the BitBake manual.
  453. :term:`BB_NO_NETWORK`
  454. See :term:`bitbake:BB_NO_NETWORK` in the BitBake manual.
  455. :term:`BB_NUMBER_PARSE_THREADS`
  456. See :term:`bitbake:BB_NUMBER_PARSE_THREADS` in the BitBake manual.
  457. :term:`BB_NUMBER_THREADS`
  458. The maximum number of tasks BitBake should run in parallel at any one
  459. time. The OpenEmbedded build system automatically configures this
  460. variable to be equal to the number of cores on the build system. For
  461. example, a system with a dual core processor that also uses
  462. hyper-threading causes the :term:`BB_NUMBER_THREADS` variable to default
  463. to "4".
  464. For single socket systems (i.e. one CPU), you should not have to
  465. override this variable to gain optimal parallelism during builds.
  466. However, if you have very large systems that employ multiple physical
  467. CPUs, you might want to make sure the :term:`BB_NUMBER_THREADS` variable
  468. is not set higher than "20".
  469. For more information on speeding up builds, see the
  470. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  471. section in the Yocto Project Development Tasks Manual.
  472. On the other hand, if your goal is to limit the amount of system
  473. resources consumed by BitBake tasks, setting :term:`BB_NUMBER_THREADS`
  474. to a number lower than the number of CPU threads in your machine
  475. won't be sufficient. That's because each package will still be built
  476. and installed through a number of parallel jobs specified by the
  477. :term:`PARALLEL_MAKE` variable, which is by default the number of CPU
  478. threads in your system, and is not impacted by the
  479. :term:`BB_NUMBER_THREADS` value.
  480. So, if you set :term:`BB_NUMBER_THREADS` to "1" but don't set
  481. :term:`PARALLEL_MAKE`, most of your system resources will be consumed
  482. anyway.
  483. Therefore, if you intend to reduce the load of your build system by
  484. setting :term:`BB_NUMBER_THREADS` to a relatively low value compared
  485. to the number of CPU threads on your system, you should also set
  486. :term:`PARALLEL_MAKE` to a similarly low value.
  487. An alternative to using :term:`BB_NUMBER_THREADS` to keep the usage
  488. of build system resources under control is to use the smarter
  489. :term:`BB_PRESSURE_MAX_CPU`, :term:`BB_PRESSURE_MAX_IO` or
  490. :term:`BB_PRESSURE_MAX_MEMORY` controls. They will prevent BitBake
  491. from starting new tasks as long as thresholds are exceeded. Anyway,
  492. as with :term:`BB_NUMBER_THREADS`, such controls won't prevent the
  493. tasks already being run from using all CPU threads on the system
  494. if :term:`PARALLEL_MAKE` is not set to a low value.
  495. :term:`BB_ORIGENV`
  496. See :term:`bitbake:BB_ORIGENV` in the BitBake manual.
  497. :term:`BB_PRESERVE_ENV`
  498. See :term:`bitbake:BB_PRESERVE_ENV` in the BitBake manual.
  499. :term:`BB_PRESSURE_MAX_CPU`
  500. See :term:`bitbake:BB_PRESSURE_MAX_CPU` in the BitBake manual.
  501. :term:`BB_PRESSURE_MAX_IO`
  502. See :term:`bitbake:BB_PRESSURE_MAX_IO` in the BitBake manual.
  503. :term:`BB_PRESSURE_MAX_MEMORY`
  504. See :term:`bitbake:BB_PRESSURE_MAX_MEMORY` in the BitBake manual.
  505. :term:`BB_RUNFMT`
  506. See :term:`bitbake:BB_RUNFMT` in the BitBake manual.
  507. :term:`BB_RUNTASK`
  508. See :term:`bitbake:BB_RUNTASK` in the BitBake manual.
  509. :term:`BB_SCHEDULER`
  510. See :term:`bitbake:BB_SCHEDULER` in the BitBake manual.
  511. :term:`BB_SCHEDULERS`
  512. See :term:`bitbake:BB_SCHEDULERS` in the BitBake manual.
  513. :term:`BB_SERVER_TIMEOUT`
  514. Specifies the time (in seconds) after which to unload the BitBake
  515. server due to inactivity. Set :term:`BB_SERVER_TIMEOUT` to determine how
  516. long the BitBake server stays resident between invocations.
  517. For example, the following statement in your ``local.conf`` file
  518. instructs the server to be unloaded after 20 seconds of inactivity::
  519. BB_SERVER_TIMEOUT = "20"
  520. If you want the server to never be unloaded,
  521. set :term:`BB_SERVER_TIMEOUT` to "-1".
  522. :term:`BB_SETSCENE_DEPVALID`
  523. See :term:`bitbake:BB_SETSCENE_DEPVALID` in the BitBake manual.
  524. :term:`BB_SIGNATURE_EXCLUDE_FLAGS`
  525. See :term:`bitbake:BB_SIGNATURE_EXCLUDE_FLAGS` in the BitBake manual.
  526. :term:`BB_SIGNATURE_HANDLER`
  527. See :term:`bitbake:BB_SIGNATURE_HANDLER` in the BitBake manual.
  528. :term:`BB_SRCREV_POLICY`
  529. See :term:`bitbake:BB_SRCREV_POLICY` in the BitBake manual.
  530. :term:`BB_STRICT_CHECKSUM`
  531. See :term:`bitbake:BB_STRICT_CHECKSUM` in the BitBake manual.
  532. :term:`BB_TASK_IONICE_LEVEL`
  533. See :term:`bitbake:BB_TASK_IONICE_LEVEL` in the BitBake manual.
  534. :term:`BB_TASK_NICE_LEVEL`
  535. See :term:`bitbake:BB_TASK_NICE_LEVEL` in the BitBake manual.
  536. :term:`BB_TASKHASH`
  537. See :term:`bitbake:BB_TASKHASH` in the BitBake manual.
  538. :term:`BB_USE_HOME_NPMRC`
  539. See :term:`bitbake:BB_USE_HOME_NPMRC` in the BitBake manual.
  540. :term:`BB_VERBOSE_LOGS`
  541. See :term:`bitbake:BB_VERBOSE_LOGS` in the BitBake manual.
  542. :term:`BB_WORKERCONTEXT`
  543. See :term:`bitbake:BB_WORKERCONTEXT` in the BitBake manual.
  544. :term:`BBCLASSEXTEND`
  545. Allows you to extend a recipe so that it builds variants of the
  546. software. There are common variants for recipes as "natives" like
  547. ``quilt-native``, which is a copy of Quilt built to run on the build
  548. system; "crosses" such as ``gcc-cross``, which is a compiler built to
  549. run on the build machine but produces binaries that run on the target
  550. :term:`MACHINE`; ":ref:`ref-classes-nativesdk`", which
  551. targets the SDK machine instead of :term:`MACHINE`; and "mulitlibs" in
  552. the form "``multilib:``\ multilib_name".
  553. To build a different variant of the recipe with a minimal amount of
  554. code, it usually is as simple as adding the following to your recipe::
  555. BBCLASSEXTEND =+ "native nativesdk"
  556. BBCLASSEXTEND =+ "multilib:multilib_name"
  557. .. note::
  558. Internally, the :term:`BBCLASSEXTEND` mechanism generates recipe
  559. variants by rewriting variable values and applying overrides such
  560. as ``:class-native``. For example, to generate a native version of
  561. a recipe, a :term:`DEPENDS` on "foo" is rewritten
  562. to a :term:`DEPENDS` on "foo-native".
  563. Even when using :term:`BBCLASSEXTEND`, the recipe is only parsed once.
  564. Parsing once adds some limitations. For example, it is not
  565. possible to include a different file depending on the variant,
  566. since ``include`` statements are processed when the recipe is
  567. parsed.
  568. :term:`BBDEBUG`
  569. See :term:`bitbake:BBDEBUG` in the BitBake manual.
  570. :term:`BBFILE_COLLECTIONS`
  571. Lists the names of configured layers. These names are used to find
  572. the other ``BBFILE_*`` variables. Typically, each layer will append
  573. its name to this variable in its ``conf/layer.conf`` file.
  574. :term:`BBFILE_PATTERN`
  575. Variable that expands to match files from
  576. :term:`BBFILES` in a particular layer. This variable
  577. is used in the ``conf/layer.conf`` file and must be suffixed with the
  578. name of the specific layer (e.g. ``BBFILE_PATTERN_emenlow``).
  579. :term:`BBFILE_PRIORITY`
  580. Assigns the priority for recipe files in each layer.
  581. This variable is useful in situations where the same recipe appears
  582. in more than one layer. Setting this variable allows you to
  583. prioritize a layer against other layers that contain the same recipe
  584. --- effectively letting you control the precedence for the multiple
  585. layers. The precedence established through this variable stands
  586. regardless of a recipe's version (:term:`PV` variable). For
  587. example, a layer that has a recipe with a higher :term:`PV` value but for
  588. which the :term:`BBFILE_PRIORITY` is set to have a lower precedence still
  589. has a lower precedence.
  590. A larger value for the :term:`BBFILE_PRIORITY` variable results in a
  591. higher precedence. For example, the value 6 has a higher precedence
  592. than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
  593. is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
  594. for more information. The default priority, if unspecified for a
  595. layer with no dependencies, is the lowest defined priority + 1 (or 1
  596. if no priorities are defined).
  597. .. tip::
  598. You can use the command ``bitbake-layers show-layers``
  599. to list all configured layers along with their priorities.
  600. :term:`BBFILES`
  601. A space-separated list of recipe files BitBake uses to build
  602. software.
  603. When specifying recipe files, you can pattern match using Python's
  604. `glob <https://docs.python.org/3/library/glob.html>`__ syntax.
  605. For details on the syntax, see the documentation by following the
  606. previous link.
  607. :term:`BBFILES_DYNAMIC`
  608. Activates content when identified layers are present. You identify
  609. the layers by the collections that the layers define.
  610. Use the :term:`BBFILES_DYNAMIC` variable to avoid ``.bbappend`` files
  611. whose corresponding ``.bb`` file is in a layer that attempts to
  612. modify other layers through ``.bbappend`` but does not want to
  613. introduce a hard dependency on those other layers.
  614. Use the following form for :term:`BBFILES_DYNAMIC`:
  615. ``collection_name:filename_pattern``.
  616. The following example identifies two collection names and two
  617. filename patterns::
  618. BBFILES_DYNAMIC += " \
  619. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  620. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  621. "
  622. This next example shows an error message that occurs because invalid
  623. entries are found, which cause parsing to fail:
  624. .. code-block:: none
  625. ERROR: BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:
  626. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  627. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  628. :term:`BBINCLUDED`
  629. See :term:`bitbake:BBINCLUDED` in the BitBake manual.
  630. :term:`BBINCLUDELOGS`
  631. Variable that controls how BitBake displays logs on build failure.
  632. :term:`BBINCLUDELOGS_LINES`
  633. If :term:`BBINCLUDELOGS` is set, specifies the
  634. maximum number of lines from the task log file to print when
  635. reporting a failed task. If you do not set :term:`BBINCLUDELOGS_LINES`,
  636. the entire log is printed.
  637. :term:`BBLAYERS`
  638. Lists the layers to enable during the build. This variable is defined
  639. in the ``bblayers.conf`` configuration file in the :term:`Build Directory`.
  640. Here is an example::
  641. BBLAYERS = " \
  642. /home/scottrif/poky/meta \
  643. /home/scottrif/poky/meta-poky \
  644. /home/scottrif/poky/meta-yocto-bsp \
  645. /home/scottrif/poky/meta-mykernel \
  646. "
  647. This example enables four layers, one of which is a custom,
  648. user-defined layer named ``meta-mykernel``.
  649. :term:`BBLAYERS_FETCH_DIR`
  650. See :term:`bitbake:BBLAYERS_FETCH_DIR` in the BitBake manual.
  651. :term:`BBMASK`
  652. Prevents BitBake from processing recipes and recipe append files.
  653. You can use the :term:`BBMASK` variable to "hide" these ``.bb`` and
  654. ``.bbappend`` files. BitBake ignores any recipe or recipe append
  655. files that match any of the expressions. It is as if BitBake does not
  656. see them at all. Consequently, matching files are not parsed or
  657. otherwise used by BitBake.
  658. The values you provide are passed to Python's regular expression
  659. compiler. Consequently, the syntax follows Python's Regular
  660. Expression (re) syntax. The expressions are compared against the full
  661. paths to the files. For complete syntax information, see Python's
  662. documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax.
  663. The following example uses a complete regular expression to tell
  664. BitBake to ignore all recipe and recipe append files in the
  665. ``meta-ti/recipes-misc/`` directory::
  666. BBMASK = "meta-ti/recipes-misc/"
  667. If you want to mask out multiple directories or recipes, you can
  668. specify multiple regular expression fragments. This next example
  669. masks out multiple directories and individual recipes::
  670. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  671. BBMASK += "/meta-oe/recipes-support/"
  672. BBMASK += "/meta-foo/.*/openldap"
  673. BBMASK += "opencv.*\.bbappend"
  674. BBMASK += "lzma"
  675. .. note::
  676. When specifying a directory name, use the trailing slash character
  677. to ensure you match just that directory name.
  678. :term:`BBMULTICONFIG`
  679. Specifies each additional separate configuration when you are
  680. building targets with multiple configurations. Use this variable in
  681. your ``conf/local.conf`` configuration file. Specify a
  682. multiconfigname for each configuration file you are using. For
  683. example, the following line specifies three configuration files::
  684. BBMULTICONFIG = "configA configB configC"
  685. Each configuration file you use must reside in a ``multiconfig``
  686. subdirectory of a configuration directory within a layer, or
  687. within the :term:`Build Directory` (e.g.
  688. ``build_directory/conf/multiconfig/configA.conf`` or
  689. ``mylayer/conf/multiconfig/configB.conf``).
  690. For information on how to use :term:`BBMULTICONFIG` in an environment
  691. that supports building targets with multiple configurations, see the
  692. ":ref:`dev-manual/building:building images for multiple targets using multiple configurations`"
  693. section in the Yocto Project Development Tasks Manual.
  694. :term:`BBPATH`
  695. See :term:`bitbake:BBPATH` in the BitBake manual.
  696. :term:`BBSERVER`
  697. If defined in the BitBake environment, :term:`BBSERVER` points to the
  698. BitBake remote server.
  699. Use the following format to export the variable to the BitBake
  700. environment::
  701. export BBSERVER=localhost:$port
  702. By default, :term:`BBSERVER` also appears in :term:`BB_BASEHASH_IGNORE_VARS`.
  703. Consequently, :term:`BBSERVER` is excluded from checksum and dependency
  704. data.
  705. :term:`BBTARGETS`
  706. See :term:`bitbake:BBTARGETS` in the BitBake manual.
  707. :term:`BINCONFIG`
  708. When inheriting the :ref:`ref-classes-binconfig-disabled` class, this
  709. variable specifies binary configuration scripts to disable in favor of
  710. using ``pkg-config`` to query the information. The
  711. :ref:`ref-classes-binconfig-disabled` class will modify the specified
  712. scripts to return an error so that calls to them can be easily found
  713. and replaced.
  714. To add multiple scripts, separate them by spaces. Here is an example
  715. from the ``libpng`` recipe::
  716. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  717. :term:`BINCONFIG_GLOB`
  718. When inheriting the :ref:`ref-classes-binconfig` class,
  719. this variable specifies a wildcard for configuration scripts that
  720. need editing. The scripts are edited to correct any paths that have
  721. been set up during compilation so that they are correct for use when
  722. installed into the sysroot and called by the build processes of other
  723. recipes.
  724. .. note::
  725. The :term:`BINCONFIG_GLOB` variable uses
  726. `shell globbing <https://tldp.org/LDP/abs/html/globbingref.html>`__,
  727. which is recognition and expansion of wildcards during pattern
  728. matching. Shell globbing is very similar to
  729. `fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__
  730. and `glob <https://docs.python.org/3/library/glob.html>`__.
  731. For more information on how this variable works, see
  732. ``meta/classes-recipe/binconfig.bbclass`` in the :term:`Source Directory`.
  733. You can also find general
  734. information on the class in the
  735. ":ref:`ref-classes-binconfig`" section.
  736. :term:`BITBAKE_UI`
  737. See :term:`bitbake:BITBAKE_UI` in the BitBake manual.
  738. :term:`BP`
  739. The base recipe name and version but without any special recipe name
  740. suffix (i.e. ``-native``, ``lib64-``, and so forth). :term:`BP` is
  741. comprised of the following::
  742. ${BPN}-${PV}
  743. :term:`BPN`
  744. This variable is a version of the :term:`PN` variable with
  745. common prefixes and suffixes removed, such as ``nativesdk-``,
  746. ``-cross``, ``-native``, and multilib's ``lib64-`` and ``lib32-``.
  747. The exact lists of prefixes and suffixes removed are specified by the
  748. :term:`MLPREFIX` and
  749. :term:`SPECIAL_PKGSUFFIX` variables,
  750. respectively.
  751. :term:`BUGTRACKER`
  752. Specifies a URL for an upstream bug tracking website for a recipe.
  753. The OpenEmbedded build system does not use this variable. Rather, the
  754. variable is a useful pointer in case a bug in the software being
  755. built needs to be manually reported.
  756. :term:`BUILD_AR`
  757. Specifies the architecture-specific :manpage:`archiver <ar(1)>` for the
  758. build host, and its default definition is derived in part from
  759. :term:`BUILD_PREFIX`::
  760. BUILD_AR = "${BUILD_PREFIX}ar"
  761. When building a :ref:`ref-classes-native` recipe, :term:`AR` is set to the
  762. value of this variable by default.
  763. The :term:`BUILD_AR` variable should not be set manually, and is rarely
  764. used in recipes as :term:`AR` contains the appropriate value depending on
  765. the context (native or target recipes). Exception be made for target
  766. recipes that need to use the :manpage:`archiver <ar(1)>` from the build
  767. host at some point during the build.
  768. :term:`BUILD_ARCH`
  769. Specifies the architecture of the build host (e.g. ``i686``). The
  770. OpenEmbedded build system sets the value of :term:`BUILD_ARCH` from the
  771. machine name reported by the ``uname`` command.
  772. :term:`BUILD_AS`
  773. Specifies the architecture-specific :manpage:`assembler <as(1)>` for the
  774. build host, and its default definition is derived in part from
  775. :term:`BUILD_PREFIX`::
  776. BUILD_AS = "${BUILD_PREFIX}as ${BUILD_AS_ARCH}"
  777. When building a :ref:`ref-classes-native` recipe, :term:`AS` is set to the
  778. value of this variable by default.
  779. The :term:`BUILD_AS` variable should not be set manually, and is rarely
  780. used in recipes as :term:`AS` contains the appropriate value depending on
  781. the context (native or target recipes). Exception be made for target
  782. recipes that need to use the :manpage:`assembler <as(1)>` from the build
  783. host at some point during the build.
  784. :term:`BUILD_AS_ARCH`
  785. Specifies the architecture-specific assembler flags for the build
  786. host. By default, the value of :term:`BUILD_AS_ARCH` is empty.
  787. :term:`BUILD_CC`
  788. Specifies the architecture-specific C compiler for the build host,
  789. and its default definition is derived in part from :term:`BUILD_PREFIX`
  790. and :term:`BUILD_CC_ARCH`::
  791. BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
  792. When building a :ref:`ref-classes-native` recipe, :term:`CC` is set to the
  793. value of this variable by default.
  794. The :term:`BUILD_CC` variable should not be set manually, and is rarely
  795. used in recipes as :term:`CC` contains the appropriate value depending on
  796. the context (native or target recipes). Exception be made for target
  797. recipes that need to use the compiler from the build host at some point
  798. during the build.
  799. :term:`BUILD_CC_ARCH`
  800. Specifies the architecture-specific C compiler flags for the build
  801. host. By default, the value of :term:`BUILD_CC_ARCH` is empty.
  802. :term:`BUILD_CCLD`
  803. Specifies the :manpage:`linker <ld(1)>` command to be used for the build
  804. host when the C compiler is being used as the linker, and its default
  805. definition is derived in part from :term:`BUILD_PREFIX` and
  806. :term:`BUILD_CC_ARCH`::
  807. BUILD_CCLD = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
  808. When building a :ref:`ref-classes-native` recipe, :term:`CCLD` is set to
  809. the value of this variable by default.
  810. The :term:`BUILD_CCLD` variable should not be set manually, and is rarely
  811. used in recipes as :term:`CCLD` contains the appropriate value depending on
  812. the context (native or target recipes). Exception be made for target
  813. recipes that need to use the :manpage:`linker <ld(1)>` from the build host
  814. at some point during the build.
  815. :term:`BUILD_CFLAGS`
  816. Specifies the flags to pass to the C compiler when building for the
  817. build host. When building a :ref:`ref-classes-native` recipe,
  818. :term:`CFLAGS` is set to the value of this variable by
  819. default.
  820. :term:`BUILD_CPP`
  821. Specifies the C preprocessor command (to both the C and the C++ compilers)
  822. when building for the build host, and its default definition is derived in
  823. part from :term:`BUILD_PREFIX` and :term:`BUILD_CC_ARCH`::
  824. BUILD_CPP = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH} -E"
  825. When building a :ref:`ref-classes-native` recipe, :term:`CPP` is set to
  826. the value of this variable by default.
  827. The :term:`BUILD_CPP` variable should not be set manually, and is rarely
  828. used in recipes as :term:`CPP` contains the appropriate value depending on
  829. the context (native or target recipes). Exception be made for target
  830. recipes that need to use the preprocessor from the build host at some
  831. point during the build.
  832. :term:`BUILD_CPPFLAGS`
  833. Specifies the flags to pass to the C preprocessor (i.e. to both the C
  834. and the C++ compilers) when building for the build host. When
  835. building in the ``-native`` context, :term:`CPPFLAGS`
  836. is set to the value of this variable by default.
  837. :term:`BUILD_CXX`
  838. Specifies the architecture-specific C++ compiler for the build host,
  839. and its default definition is derived in part from :term:`BUILD_PREFIX`
  840. and :term:`BUILD_CC_ARCH`::
  841. BUILD_CXX = "${CCACHE}${BUILD_PREFIX}g++ ${BUILD_CC_ARCH}"
  842. When building a :ref:`ref-classes-native` recipe, :term:`CXX` is set to
  843. the value of this variable by default.
  844. The :term:`BUILD_CXX` variable should not be set manually, and is rarely
  845. used in recipes as :term:`CXX` contains the appropriate value depending on
  846. the context (native or target recipes). Exception be made for target
  847. recipes that need to use the C++ compiler from the build host at some
  848. point during the build.
  849. :term:`BUILD_CXXFLAGS`
  850. Specifies the flags to pass to the C++ compiler when building for the
  851. build host. When building a :ref:`ref-classes-native` recipe,
  852. :term:`CXXFLAGS` is set to the value of this variable
  853. by default.
  854. :term:`BUILD_FC`
  855. Specifies the Fortran compiler command for the build host, and its default
  856. definition is derived in part from :term:`BUILD_PREFIX` and
  857. :term:`BUILD_CC_ARCH`::
  858. BUILD_FC = "${BUILD_PREFIX}gfortran ${BUILD_CC_ARCH}"
  859. When building a :ref:`ref-classes-native` recipe, :term:`FC` is set to the
  860. value of this variable by default.
  861. The :term:`BUILD_FC` variable should not be set manually, and is rarely
  862. used in recipes as :term:`FC` contains the appropriate value depending on
  863. the context (native or target recipes). Exception be made for target
  864. recipes that need to use the Fortran compiler from the build host at some
  865. point during the build.
  866. :term:`BUILD_LD`
  867. Specifies the linker command for the build host, and its default
  868. definition is derived in part from :term:`BUILD_PREFIX` and
  869. :term:`BUILD_LD_ARCH`::
  870. BUILD_LD = "${BUILD_PREFIX}ld ${BUILD_LD_ARCH}"
  871. When building a :ref:`ref-classes-native` recipe, :term:`LD` is set to the
  872. value of this variable by default.
  873. The :term:`BUILD_LD` variable should not be set manually, and is rarely
  874. used in recipes as :term:`LD` contains the appropriate value depending on
  875. the context (native or target recipes). Exception be made for target
  876. recipes that need to use the linker from the build host at some point
  877. during the build.
  878. :term:`BUILD_LD_ARCH`
  879. Specifies architecture-specific linker flags for the build host. By
  880. default, the value of :term:`BUILD_LD_ARCH` is empty.
  881. :term:`BUILD_LDFLAGS`
  882. Specifies the flags to pass to the linker when building for the build
  883. host. When building a :ref:`ref-classes-native` recipe,
  884. :term:`LDFLAGS` is set to the value of this variable
  885. by default.
  886. :term:`BUILD_NM`
  887. Specifies the architecture-specific utility to list symbols from object
  888. files for the build host, and its default definition is derived in part
  889. from :term:`BUILD_PREFIX`::
  890. BUILD_NM = "${BUILD_PREFIX}nm"
  891. When building a :ref:`ref-classes-native` recipe, :term:`NM` is set to the
  892. value of this variable by default.
  893. The :term:`BUILD_NM` variable should not be set manually, and is rarely
  894. used in recipes as :term:`NM` contains the appropriate value depending on
  895. the context (native or target recipes). Exception be made for target
  896. recipes that need to use the utility from the build host at some point
  897. during the build.
  898. :term:`BUILD_OBJCOPY`
  899. Specifies the architecture-specific utility to copy object files for the
  900. build host, and its default definition is derived in part from
  901. :term:`BUILD_PREFIX`::
  902. BUILD_OBJCOPY = "${BUILD_PREFIX}objcopy"
  903. When building a :ref:`ref-classes-native` recipe, :term:`OBJCOPY` is set
  904. to the value of this variable by default.
  905. The :term:`BUILD_OBJCOPY` variable should not be set manually, and is
  906. rarely used in recipes as :term:`OBJCOPY` contains the appropriate value
  907. depending on the context (native or target recipes). Exception be made for
  908. target recipes that need to use the utility from the build host at some
  909. point during the build.
  910. :term:`BUILD_OBJDUMP`
  911. Specifies the architecture-specific utility to display object files
  912. information for the build host, and its default definition is derived in
  913. part from :term:`BUILD_PREFIX`::
  914. BUILD_OBJDUMP = "${BUILD_PREFIX}objdump"
  915. When building a :ref:`ref-classes-native` recipe, :term:`OBJDUMP` is set
  916. to the value of this variable by default.
  917. The :term:`BUILD_OBJDUMP` variable should not be set manually, and is
  918. rarely used in recipes as :term:`OBJDUMP` contains the appropriate value
  919. depending on the context (native or target recipes). Exception be made for
  920. target recipes that need to use the utility from the build host at some
  921. point during the build.
  922. :term:`BUILD_OPTIMIZATION`
  923. Specifies the optimization flags passed to the C compiler when
  924. building for the build host or the SDK. The flags are passed through
  925. the :term:`BUILD_CFLAGS` and
  926. :term:`BUILDSDK_CFLAGS` default values.
  927. The default value of the :term:`BUILD_OPTIMIZATION` variable is "-O2
  928. -pipe".
  929. :term:`BUILD_OS`
  930. Specifies the operating system in use on the build host (e.g.
  931. "linux"). The OpenEmbedded build system sets the value of
  932. :term:`BUILD_OS` from the OS reported by the ``uname`` command --- the
  933. first word, converted to lower-case characters.
  934. :term:`BUILD_PREFIX`
  935. The toolchain binary prefix used for native recipes. The OpenEmbedded
  936. build system uses the :term:`BUILD_PREFIX` value to set the
  937. :term:`TARGET_PREFIX` when building for :ref:`ref-classes-native` recipes.
  938. :term:`BUILD_RANLIB`
  939. Specifies the architecture-specific utility to generate indexes for
  940. archives for the build host, and its default definition is derived in part
  941. from :term:`BUILD_PREFIX`::
  942. BUILD_RANLIB = "${BUILD_PREFIX}ranlib -D"
  943. When building a :ref:`ref-classes-native` recipe, :term:`RANLIB` is set to
  944. the value of this variable by default.
  945. The :term:`BUILD_RANLIB` variable should not be set manually, and is
  946. rarely used in recipes as :term:`RANLIB` contains the appropriate value
  947. depending on the context (native or target recipes). Exception be made for
  948. target recipes that need to use the utility from the build host at some
  949. point during the build.
  950. :term:`BUILD_READELF`
  951. Specifies the architecture-specific utility to display information about
  952. ELF files for the build host, and its default definition is derived in
  953. part from :term:`BUILD_PREFIX`::
  954. BUILD_READELF = "${BUILD_PREFIX}readelf"
  955. When building a :ref:`ref-classes-native` recipe, :term:`READELF` is set
  956. to the value of this variable by default.
  957. The :term:`BUILD_READELF` variable should not be set manually, and is
  958. rarely used in recipes as :term:`READELF` contains the appropriate value
  959. depending on the context (native or target recipes). Exception be made for
  960. target recipes that need to use the utility from the build host at some
  961. point during the build.
  962. :term:`BUILD_STRIP`
  963. Specifies the command to be used to strip debugging symbols from binaries
  964. produced for the build host, and its default definition is derived in part
  965. from :term:`BUILD_PREFIX`::
  966. BUILD_STRIP = "${BUILD_PREFIX}strip"
  967. When building a :ref:`ref-classes-native` recipe, :term:`STRIP` is set to
  968. the value of this variable by default.
  969. The :term:`BUILD_STRIP` variable should not be set manually, and is
  970. rarely used in recipes as :term:`STRIP` contains the appropriate value
  971. depending on the context (native or target recipes). Exception be made for
  972. target recipes that need to use the utility from the build host at some
  973. point during the build.
  974. :term:`BUILD_SYS`
  975. Specifies the system, including the architecture and the operating
  976. system, to use when building for the build host (i.e. when building
  977. :ref:`ref-classes-native` recipes).
  978. The OpenEmbedded build system automatically sets this variable based
  979. on :term:`BUILD_ARCH`,
  980. :term:`BUILD_VENDOR`, and
  981. :term:`BUILD_OS`. You do not need to set the
  982. :term:`BUILD_SYS` variable yourself.
  983. :term:`BUILD_VENDOR`
  984. Specifies the vendor name to use when building for the build host.
  985. The default value is an empty string ("").
  986. :term:`BUILDDIR`
  987. Points to the location of the :term:`Build Directory`. You can define
  988. this directory indirectly through the :ref:`structure-core-script` script
  989. by passing in a :term:`Build Directory` path when you run the script. If
  990. you run the script and do not provide a :term:`Build Directory` path, the
  991. :term:`BUILDDIR` defaults to ``build`` in the current directory.
  992. :term:`BUILDHISTORY_COMMIT`
  993. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  994. specifies whether or not to commit the build history output in a local
  995. Git repository. If set to "1", this local repository will be maintained
  996. automatically by the :ref:`ref-classes-buildhistory` class and a commit
  997. will be created on every build for changes to each top-level subdirectory
  998. of the build history output (images, packages, and sdk). If you want to
  999. track changes to build history over time, you should set this value to
  1000. "1".
  1001. By default, the :ref:`ref-classes-buildhistory` class
  1002. enables committing the buildhistory output in a local Git repository::
  1003. BUILDHISTORY_COMMIT ?= "1"
  1004. :term:`BUILDHISTORY_COMMIT_AUTHOR`
  1005. When inheriting the :ref:`ref-classes-buildhistory`
  1006. class, this variable specifies the author to use for each Git commit.
  1007. In order for the :term:`BUILDHISTORY_COMMIT_AUTHOR` variable to work, the
  1008. :term:`BUILDHISTORY_COMMIT` variable must
  1009. be set to "1".
  1010. Git requires that the value you provide for the
  1011. :term:`BUILDHISTORY_COMMIT_AUTHOR` variable takes the form of "name
  1012. email@host". Providing an email address or host that is not valid
  1013. does not produce an error.
  1014. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  1015. as follows::
  1016. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
  1017. :term:`BUILDHISTORY_DIR`
  1018. When inheriting the :ref:`ref-classes-buildhistory`
  1019. class, this variable specifies the directory in which build history
  1020. information is kept. For more information on how the variable works,
  1021. see the :ref:`ref-classes-buildhistory` class.
  1022. By default, the :ref:`ref-classes-buildhistory` class sets the directory
  1023. as follows::
  1024. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  1025. :term:`BUILDHISTORY_FEATURES`
  1026. When inheriting the :ref:`ref-classes-buildhistory`
  1027. class, this variable specifies the build history features to be
  1028. enabled. For more information on how build history works, see the
  1029. ":ref:`dev-manual/build-quality:maintaining build output quality`"
  1030. section in the Yocto Project Development Tasks Manual.
  1031. You can specify these features in the form of a space-separated list:
  1032. - *image:* Analysis of the contents of images, which includes the
  1033. list of installed packages among other things.
  1034. - *package:* Analysis of the contents of individual packages.
  1035. - *sdk:* Analysis of the contents of the software development kit
  1036. (SDK).
  1037. - *task:* Save output file signatures for
  1038. :ref:`shared state <overview-manual/concepts:shared state cache>`
  1039. (sstate) tasks.
  1040. This saves one file per task and lists the SHA-256 checksums for
  1041. each file staged (i.e. the output of the task).
  1042. By default, the :ref:`ref-classes-buildhistory` class enables the
  1043. following features::
  1044. BUILDHISTORY_FEATURES ?= "image package sdk"
  1045. :term:`BUILDHISTORY_IMAGE_FILES`
  1046. When inheriting the :ref:`ref-classes-buildhistory`
  1047. class, this variable specifies a list of paths to files copied from
  1048. the image contents into the build history directory under an
  1049. "image-files" directory in the directory for the image, so that you
  1050. can track the contents of each file. The default is to copy
  1051. ``/etc/passwd`` and ``/etc/group``, which allows you to monitor for
  1052. changes in user and group entries. You can modify the list to include
  1053. any file. Specifying an invalid path does not produce an error.
  1054. Consequently, you can include files that might not always be present.
  1055. By default, the :ref:`ref-classes-buildhistory` class provides paths to
  1056. the following files::
  1057. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  1058. :term:`BUILDHISTORY_PATH_PREFIX_STRIP`
  1059. When inheriting the :ref:`ref-classes-buildhistory`
  1060. class, this variable specifies a common path prefix that should be
  1061. stripped off the beginning of paths in the task signature list when the
  1062. ``task`` feature is active in :term:`BUILDHISTORY_FEATURES`. This can be
  1063. useful when build history is populated from multiple sources that may not
  1064. all use the same top level directory.
  1065. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  1066. as follows::
  1067. BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
  1068. In this case, no prefixes will be stripped.
  1069. :term:`BUILDHISTORY_PUSH_REPO`
  1070. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  1071. optionally specifies a remote repository to which build history pushes
  1072. Git changes. In order for :term:`BUILDHISTORY_PUSH_REPO` to work,
  1073. :term:`BUILDHISTORY_COMMIT` must be set to "1".
  1074. The repository should correspond to a remote address that specifies a
  1075. repository as understood by Git, or alternatively to a remote name
  1076. that you have set up manually using ``git remote`` within the local
  1077. repository.
  1078. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  1079. as follows::
  1080. BUILDHISTORY_PUSH_REPO ?= ""
  1081. :term:`BUILDNAME`
  1082. See :term:`bitbake:BUILDNAME` in the BitBake manual.
  1083. :term:`BUILDSDK_CFLAGS`
  1084. Specifies the flags to pass to the C compiler when building for the
  1085. SDK. When building in the ``nativesdk-`` context,
  1086. :term:`CFLAGS` is set to the value of this variable by
  1087. default.
  1088. :term:`BUILDSDK_CPPFLAGS`
  1089. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1090. C and the C++ compilers) when building for the SDK. When building in
  1091. the ``nativesdk-`` context, :term:`CPPFLAGS` is set
  1092. to the value of this variable by default.
  1093. :term:`BUILDSDK_CXXFLAGS`
  1094. Specifies the flags to pass to the C++ compiler when building for the
  1095. SDK. When building in the ``nativesdk-`` context,
  1096. :term:`CXXFLAGS` is set to the value of this variable
  1097. by default.
  1098. :term:`BUILDSDK_LDFLAGS`
  1099. Specifies the flags to pass to the linker when building for the SDK.
  1100. When building in the ``nativesdk-`` context,
  1101. :term:`LDFLAGS` is set to the value of this variable
  1102. by default.
  1103. :term:`BUILDSTATS_BASE`
  1104. Points to the location of the directory that holds build statistics
  1105. when you use and enable the :ref:`ref-classes-buildstats` class. The
  1106. :term:`BUILDSTATS_BASE` directory defaults to
  1107. ``${``\ :term:`TMPDIR`\ ``}/buildstats/``.
  1108. :term:`BUSYBOX_SPLIT_SUID`
  1109. For the BusyBox recipe, specifies whether to split the output
  1110. executable file into two parts: one for features that require
  1111. ``setuid root``, and one for the remaining features (i.e. those that
  1112. do not require ``setuid root``).
  1113. The :term:`BUSYBOX_SPLIT_SUID` variable defaults to "1", which results in
  1114. splitting the output executable file. Set the variable to "0" to get
  1115. a single output executable file.
  1116. :term:`BZRDIR`
  1117. See :term:`bitbake:BZRDIR` in the BitBake manual.
  1118. :term:`CACHE`
  1119. Specifies the directory BitBake uses to store a cache of the
  1120. :term:`Metadata` so it does not need to be parsed every time
  1121. BitBake is started.
  1122. :term:`CARGO_INSTALL_LIBRARIES`
  1123. When inheriting the :ref:`ref-classes-cargo` class, the variable
  1124. :term:`CARGO_INSTALL_LIBRARIES` can be set to a non-empty value by
  1125. individual recipes to enable the installation of the libraries the
  1126. recipe has built in ``${B}/target/${CARGO_TARGET_SUBDIR}`` (files ending
  1127. with ``.so`` or ``.rlib``). By default this variable is not defined and
  1128. libraries are not installed, to replicate the behavior of the ``cargo
  1129. install`` command.
  1130. :term:`CC`
  1131. The minimal command and arguments used to run the C compiler.
  1132. :term:`CCLD`
  1133. The minimal command and arguments used to run the linker when the C
  1134. compiler is being used as the linker.
  1135. :term:`CFLAGS`
  1136. Specifies the flags to pass to the C compiler. This variable is
  1137. exported to an environment variable and thus made visible to the
  1138. software being built during the compilation step.
  1139. Default initialization for :term:`CFLAGS` varies depending on what is
  1140. being built:
  1141. - :term:`TARGET_CFLAGS` when building for the
  1142. target
  1143. - :term:`BUILD_CFLAGS` when building for the
  1144. build host (i.e. ``-native``)
  1145. - :term:`BUILDSDK_CFLAGS` when building for
  1146. an SDK (i.e. ``nativesdk-``)
  1147. :term:`CHECKLAYER_REQUIRED_TESTS`
  1148. The :term:`CHECKLAYER_REQUIRED_TESTS` variable lists the QA tests that are
  1149. required to be enabled to pass the Yocto Project Compatible status for a
  1150. layer. It is meant to be a read-only variable and any change to the
  1151. variable may be done with the approval of the :oe_wiki:`Technical Steering
  1152. Committee (TSC) </TSC>`.
  1153. For more information on the Yocto Project Compatible status, see
  1154. the :ref:`dev-manual/layers:Making Sure Your Layer is Compatible With
  1155. Yocto Project` section of the Yocto Project Development Manual.
  1156. :term:`CLASSOVERRIDE`
  1157. An internal variable specifying the special class override that
  1158. should currently apply (e.g. "class-target", "class-native", and so
  1159. forth). The classes that use this variable (e.g.
  1160. :ref:`ref-classes-native`, :ref:`ref-classes-nativesdk`, and so forth)
  1161. set the variable to appropriate values.
  1162. .. note::
  1163. :term:`CLASSOVERRIDE` gets its default "class-target" value from the
  1164. ``bitbake.conf`` file.
  1165. As an example, the following override allows you to install extra
  1166. files, but only when building for the target::
  1167. do_install:append:class-target() {
  1168. install my-extra-file ${D}${sysconfdir}
  1169. }
  1170. Here is an example where ``FOO`` is set to
  1171. "native" when building for the build host, and to "other" when not
  1172. building for the build host::
  1173. FOO:class-native = "native"
  1174. FOO = "other"
  1175. The underlying mechanism behind :term:`CLASSOVERRIDE` is simply
  1176. that it is included in the default value of
  1177. :term:`OVERRIDES`.
  1178. :term:`CLEANBROKEN`
  1179. If set to "1" within a recipe, :term:`CLEANBROKEN` specifies that the
  1180. ``make clean`` command does not work for the software being built.
  1181. Consequently, the OpenEmbedded build system will not try to run
  1182. ``make clean`` during the :ref:`ref-tasks-configure`
  1183. task, which is the default behavior.
  1184. :term:`COMBINED_FEATURES`
  1185. Provides a list of hardware features that are enabled in both
  1186. :term:`MACHINE_FEATURES` and
  1187. :term:`DISTRO_FEATURES`. This select list of
  1188. features contains features that make sense to be controlled both at
  1189. the machine and distribution configuration level. For example, the
  1190. "bluetooth" feature requires hardware support but should also be
  1191. optional at the distribution level, in case the hardware supports
  1192. Bluetooth but you do not ever intend to use it.
  1193. :term:`COMMERCIAL_AUDIO_PLUGINS`
  1194. This variable is specific to the :yocto_git:`GStreamer recipes
  1195. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1196. It allows to build the GStreamer `"ugly"
  1197. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1198. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ audio plugins.
  1199. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1200. section for usage details.
  1201. :term:`COMMERCIAL_VIDEO_PLUGINS`
  1202. This variable is specific to the :yocto_git:`GStreamer recipes
  1203. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1204. It allows to build the GStreamer `"ugly"
  1205. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1206. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ video plugins.
  1207. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1208. section for usage details.
  1209. :term:`COMMON_LICENSE_DIR`
  1210. Points to ``meta/files/common-licenses`` in the
  1211. :term:`Source Directory`, which is where generic license
  1212. files reside.
  1213. :term:`COMPATIBLE_HOST`
  1214. A regular expression that resolves to one or more hosts (when the
  1215. recipe is native) or one or more targets (when the recipe is
  1216. non-native) with which a recipe is compatible. The regular expression
  1217. is matched against :term:`HOST_SYS`. You can use the
  1218. variable to stop recipes from being built for classes of systems with
  1219. which the recipes are not compatible. Stopping these builds is
  1220. particularly useful with kernels. The variable also helps to increase
  1221. parsing speed since the build system skips parsing recipes not
  1222. compatible with the current system.
  1223. :term:`COMPATIBLE_MACHINE`
  1224. A regular expression that resolves to one or more target machines
  1225. with which a recipe is compatible. The regular expression is matched
  1226. against :term:`MACHINEOVERRIDES`. You can use
  1227. the variable to stop recipes from being built for machines with which
  1228. the recipes are not compatible. Stopping these builds is particularly
  1229. useful with kernels. The variable also helps to increase parsing
  1230. speed since the build system skips parsing recipes not compatible
  1231. with the current machine.
  1232. If one wants to have a recipe only available for some architectures
  1233. (here ``aarch64`` and ``mips64``), the following can be used::
  1234. COMPATIBLE_MACHINE = "^$"
  1235. COMPATIBLE_MACHINE:arch64 = "^(aarch64)$"
  1236. COMPATIBLE_MACHINE:mips64 = "^(mips64)$"
  1237. The first line means "match all machines whose :term:`MACHINEOVERRIDES`
  1238. contains the empty string", which will always be none.
  1239. The second is for matching all machines whose :term:`MACHINEOVERRIDES`
  1240. contains one override which is exactly ``aarch64``.
  1241. The third is for matching all machines whose :term:`MACHINEOVERRIDES`
  1242. contains one override which is exactly ``mips64``.
  1243. The same could be achieved with::
  1244. COMPATIBLE_MACHINE = "^(aarch64|mips64)$"
  1245. .. note::
  1246. When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from
  1247. native, the recipe is always skipped. All native recipes must be
  1248. entirely target independent and should not rely on :term:`MACHINE`.
  1249. :term:`COMPLEMENTARY_GLOB`
  1250. Defines wildcards to match when installing a list of complementary
  1251. packages for all the packages explicitly (or implicitly) installed in
  1252. an image.
  1253. The :term:`COMPLEMENTARY_GLOB` variable uses Unix filename pattern matching
  1254. (`fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__),
  1255. which is similar to the Unix style pathname pattern expansion
  1256. (`glob <https://docs.python.org/3/library/glob.html>`__).
  1257. The resulting list of complementary packages is associated with an
  1258. item that can be added to
  1259. :term:`IMAGE_FEATURES`. An example usage of
  1260. this is the "dev-pkgs" item that when added to :term:`IMAGE_FEATURES`
  1261. will install -dev packages (containing headers and other development
  1262. files) for every package in the image.
  1263. To add a new feature item pointing to a wildcard, use a variable flag
  1264. to specify the feature item name and use the value to specify the
  1265. wildcard. Here is an example::
  1266. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  1267. .. note::
  1268. When installing complementary packages, recommends relationships
  1269. (set via :term:`RRECOMMENDS`) are always ignored.
  1270. :term:`COMPONENTS_DIR`
  1271. Stores sysroot components for each recipe. The OpenEmbedded build
  1272. system uses :term:`COMPONENTS_DIR` when constructing recipe-specific
  1273. sysroots for other recipes.
  1274. The default is
  1275. "``${``\ :term:`STAGING_DIR`\ ``}-components``."
  1276. (i.e.
  1277. "``${``\ :term:`TMPDIR`\ ``}/sysroots-components``").
  1278. :term:`CONF_VERSION`
  1279. Tracks the version of the local configuration file (i.e.
  1280. ``local.conf``). The value for :term:`CONF_VERSION` increments each time
  1281. ``build/conf/`` compatibility changes.
  1282. :term:`CONFFILES`
  1283. Identifies editable or configurable files that are part of a package.
  1284. If the Package Management System (PMS) is being used to update
  1285. packages on the target system, it is possible that configuration
  1286. files you have changed after the original installation and that you
  1287. now want to remain unchanged are overwritten. In other words,
  1288. editable files might exist in the package that you do not want reset
  1289. as part of the package update process. You can use the :term:`CONFFILES`
  1290. variable to list the files in the package that you wish to prevent
  1291. the PMS from overwriting during this update process.
  1292. To use the :term:`CONFFILES` variable, provide a package name override
  1293. that identifies the resulting package. Then, provide a
  1294. space-separated list of files. Here is an example::
  1295. CONFFILES:${PN} += "${sysconfdir}/file1 \
  1296. ${sysconfdir}/file2 ${sysconfdir}/file3"
  1297. There is a relationship between the :term:`CONFFILES` and :term:`FILES`
  1298. variables. The files listed within :term:`CONFFILES` must be a subset of
  1299. the files listed within :term:`FILES`. Because the configuration files
  1300. you provide with :term:`CONFFILES` are simply being identified so that
  1301. the PMS will not overwrite them, it makes sense that the files must
  1302. already be included as part of the package through the :term:`FILES`
  1303. variable.
  1304. .. note::
  1305. When specifying paths as part of the :term:`CONFFILES` variable, it is
  1306. good practice to use appropriate path variables.
  1307. For example, ``${sysconfdir}`` rather than ``/etc`` or ``${bindir}``
  1308. rather than ``/usr/bin``. You can find a list of these variables at
  1309. the top of the ``meta/conf/bitbake.conf`` file in the
  1310. :term:`Source Directory`.
  1311. :term:`CONFIG_INITRAMFS_SOURCE`
  1312. Identifies the initial RAM filesystem (:term:`Initramfs`) source files. The
  1313. OpenEmbedded build system receives and uses this kernel Kconfig
  1314. variable as an environment variable. By default, the variable is set
  1315. to null ("").
  1316. The :term:`CONFIG_INITRAMFS_SOURCE` can be either a single cpio archive
  1317. with a ``.cpio`` suffix or a space-separated list of directories and
  1318. files for building the :term:`Initramfs` image. A cpio archive should contain
  1319. a filesystem archive to be used as an :term:`Initramfs` image. Directories
  1320. should contain a filesystem layout to be included in the :term:`Initramfs`
  1321. image. Files should contain entries according to the format described
  1322. by the ``usr/gen_init_cpio`` program in the kernel tree.
  1323. If you specify multiple directories and files, the :term:`Initramfs` image
  1324. will be the aggregate of all of them.
  1325. For information on creating an :term:`Initramfs`, see the
  1326. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  1327. in the Yocto Project Development Tasks Manual.
  1328. :term:`CONFIG_SITE`
  1329. A list of files that contains ``autoconf`` test results relevant to
  1330. the current build. This variable is used by the Autotools utilities
  1331. when running ``configure``.
  1332. :term:`CONFIGURE_FLAGS`
  1333. The minimal arguments for GNU configure.
  1334. :term:`CONFIGURE_SCRIPT`
  1335. When using the :ref:`ref-classes-autotools` class, the
  1336. :term:`CONFIGURE_SCRIPT` variable stores the location of the ``configure``
  1337. script for the Autotools build system. The default definition for this
  1338. variable is::
  1339. CONFIGURE_SCRIPT ?= "${AUTOTOOLS_SCRIPT_PATH}/configure"
  1340. Where :term:`AUTOTOOLS_SCRIPT_PATH` is the location of the of the
  1341. Autotools build system scripts, which defaults to :term:`S`.
  1342. :term:`CONFLICT_DISTRO_FEATURES`
  1343. When inheriting the :ref:`ref-classes-features_check`
  1344. class, this variable identifies distribution features that would be
  1345. in conflict should the recipe be built. In other words, if the
  1346. :term:`CONFLICT_DISTRO_FEATURES` variable lists a feature that also
  1347. appears in :term:`DISTRO_FEATURES` within the current configuration, then
  1348. the recipe will be skipped, and if the build system attempts to build
  1349. the recipe then an error will be triggered.
  1350. :term:`CONVERSION_CMD`
  1351. This variable is used for storing image conversion commands.
  1352. Image conversion can convert an image into different objects like:
  1353. - Compressed version of the image
  1354. - Checksums for the image
  1355. An example of :term:`CONVERSION_CMD` from :ref:`ref-classes-image_types`
  1356. class is::
  1357. CONVERSION_CMD:lzo = "lzop -9 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
  1358. :term:`COPY_LIC_DIRS`
  1359. If set to "1" along with the
  1360. :term:`COPY_LIC_MANIFEST` variable, the
  1361. OpenEmbedded build system copies into the image the license files,
  1362. which are located in ``/usr/share/common-licenses``, for each
  1363. package. The license files are placed in directories within the image
  1364. itself during build time.
  1365. .. note::
  1366. The :term:`COPY_LIC_DIRS` does not offer a path for adding licenses for
  1367. newly installed packages to an image, which might be most suitable for
  1368. read-only filesystems that cannot be upgraded. See the
  1369. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1370. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1371. section in the Yocto Project Development Tasks Manual for
  1372. information on providing license text.
  1373. :term:`COPY_LIC_MANIFEST`
  1374. If set to "1", the OpenEmbedded build system copies the license
  1375. manifest for the image to
  1376. ``/usr/share/common-licenses/license.manifest`` within the image
  1377. itself during build time.
  1378. .. note::
  1379. The :term:`COPY_LIC_MANIFEST` does not offer a path for adding licenses for
  1380. newly installed packages to an image, which might be most suitable for
  1381. read-only filesystems that cannot be upgraded. See the
  1382. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1383. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1384. section in the Yocto Project Development Tasks Manual for
  1385. information on providing license text.
  1386. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1387. A space-separated list of licenses to exclude from the source archived by
  1388. the :ref:`ref-classes-archiver` class. In other words, if a license in a
  1389. recipe's :term:`LICENSE` value is in the value of
  1390. :term:`COPYLEFT_LICENSE_EXCLUDE`, then its source is not archived by the
  1391. class.
  1392. .. note::
  1393. The :term:`COPYLEFT_LICENSE_EXCLUDE` variable takes precedence over the
  1394. :term:`COPYLEFT_LICENSE_INCLUDE` variable.
  1395. The default value, which is "CLOSED Proprietary", for
  1396. :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the
  1397. :ref:`ref-classes-copyleft_filter` class, which
  1398. is inherited by the :ref:`ref-classes-archiver` class.
  1399. :term:`COPYLEFT_LICENSE_INCLUDE`
  1400. A space-separated list of licenses to include in the source archived
  1401. by the :ref:`ref-classes-archiver` class. In other
  1402. words, if a license in a recipe's :term:`LICENSE`
  1403. value is in the value of :term:`COPYLEFT_LICENSE_INCLUDE`, then its
  1404. source is archived by the class.
  1405. The default value is set by the :ref:`ref-classes-copyleft_filter` class,
  1406. which is inherited by the :ref:`ref-classes-archiver` class. The default
  1407. value includes "GPL*", "LGPL*", and "AGPL*".
  1408. :term:`COPYLEFT_PN_EXCLUDE`
  1409. A list of recipes to exclude in the source archived by the
  1410. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_EXCLUDE`
  1411. variable overrides the license inclusion and exclusion caused through the
  1412. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1413. variables, respectively.
  1414. The default value, which is "" indicating to not explicitly exclude
  1415. any recipes by name, for :term:`COPYLEFT_PN_EXCLUDE` is set by the
  1416. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1417. :ref:`ref-classes-archiver` class.
  1418. :term:`COPYLEFT_PN_INCLUDE`
  1419. A list of recipes to include in the source archived by the
  1420. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_INCLUDE`
  1421. variable overrides the license inclusion and exclusion caused through the
  1422. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1423. variables, respectively.
  1424. The default value, which is "" indicating to not explicitly include
  1425. any recipes by name, for :term:`COPYLEFT_PN_INCLUDE` is set by the
  1426. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1427. :ref:`ref-classes-archiver` class.
  1428. :term:`COPYLEFT_RECIPE_TYPES`
  1429. A space-separated list of recipe types to include in the source
  1430. archived by the :ref:`archiver <ref-classes-archiver>` class.
  1431. Recipe types are ``target``, :ref:`ref-classes-native`,
  1432. :ref:`ref-classes-nativesdk`, :ref:`ref-classes-cross`,
  1433. :ref:`ref-classes-crosssdk`, and :ref:`ref-classes-cross-canadian`.
  1434. The default value, which is "target*", for :term:`COPYLEFT_RECIPE_TYPES`
  1435. is set by the :ref:`ref-classes-copyleft_filter` class, which is
  1436. inherited by the :ref:`ref-classes-archiver` class.
  1437. :term:`CORE_IMAGE_EXTRA_INSTALL`
  1438. Specifies the list of packages to be added to the image. You should
  1439. only set this variable in the ``local.conf`` configuration file found
  1440. in the :term:`Build Directory`.
  1441. This variable replaces ``POKY_EXTRA_INSTALL``, which is no longer
  1442. supported.
  1443. :term:`COREBASE`
  1444. Specifies the parent directory of the OpenEmbedded-Core Metadata
  1445. layer (i.e. ``meta``).
  1446. It is an important distinction that :term:`COREBASE` points to the parent
  1447. of this layer and not the layer itself. Consider an example where you
  1448. have cloned the Poky Git repository and retained the ``poky`` name
  1449. for your local copy of the repository. In this case, :term:`COREBASE`
  1450. points to the ``poky`` folder because it is the parent directory of
  1451. the ``poky/meta`` layer.
  1452. :term:`COREBASE_FILES`
  1453. Lists files from the :term:`COREBASE` directory that
  1454. should be copied other than the layers listed in the
  1455. ``bblayers.conf`` file. The :term:`COREBASE_FILES` variable allows
  1456. to copy metadata from the OpenEmbedded build system
  1457. into the extensible SDK.
  1458. Explicitly listing files in :term:`COREBASE` is needed because it
  1459. typically contains build directories and other files that should not
  1460. normally be copied into the extensible SDK. Consequently, the value
  1461. of :term:`COREBASE_FILES` is used in order to only copy the files that
  1462. are actually needed.
  1463. :term:`CPP`
  1464. The minimal command and arguments used to run the C preprocessor.
  1465. :term:`CPPFLAGS`
  1466. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1467. C and the C++ compilers). This variable is exported to an environment
  1468. variable and thus made visible to the software being built during the
  1469. compilation step.
  1470. Default initialization for :term:`CPPFLAGS` varies depending on what is
  1471. being built:
  1472. - :term:`TARGET_CPPFLAGS` when building for
  1473. the target
  1474. - :term:`BUILD_CPPFLAGS` when building for the
  1475. build host (i.e. ``-native``)
  1476. - :term:`BUILDSDK_CPPFLAGS` when building
  1477. for an SDK (i.e. ``nativesdk-``)
  1478. :term:`CROSS_COMPILE`
  1479. The toolchain binary prefix for the target tools. The
  1480. :term:`CROSS_COMPILE` variable is the same as the
  1481. :term:`TARGET_PREFIX` variable.
  1482. .. note::
  1483. The OpenEmbedded build system sets the :term:`CROSS_COMPILE`
  1484. variable only in certain contexts (e.g. when building for kernel
  1485. and kernel module recipes).
  1486. :term:`CVE_CHECK_CREATE_MANIFEST`
  1487. Specifies whether to create a CVE manifest to place in the deploy
  1488. directory. The default is "1".
  1489. :term:`CVE_CHECK_IGNORE`
  1490. This variable is deprecated and should be replaced by :term:`CVE_STATUS`.
  1491. :term:`CVE_CHECK_MANIFEST_JSON`
  1492. Specifies the path to the CVE manifest in JSON format. See
  1493. :term:`CVE_CHECK_CREATE_MANIFEST`.
  1494. :term:`CVE_CHECK_MANIFEST_JSON_SUFFIX`
  1495. Allows to modify the JSON manifest suffix. See
  1496. :term:`CVE_CHECK_MANIFEST_JSON`.
  1497. :term:`CVE_CHECK_REPORT_PATCHED`
  1498. Specifies whether or not the :ref:`ref-classes-cve-check`
  1499. class should report patched or ignored CVEs. The default is "1", but you
  1500. may wish to set it to "0" if you do not need patched or ignored CVEs in
  1501. the logs.
  1502. :term:`CVE_CHECK_SHOW_WARNINGS`
  1503. Specifies whether or not the :ref:`ref-classes-cve-check`
  1504. class should generate warning messages on the console when unpatched
  1505. CVEs are found. The default is "1", but you may wish to set it to "0" if
  1506. you are already examining/processing the logs after the build has
  1507. completed and thus do not need the warning messages.
  1508. :term:`CVE_CHECK_SKIP_RECIPE`
  1509. The list of package names (:term:`PN`) for which
  1510. CVEs (Common Vulnerabilities and Exposures) are ignored.
  1511. :term:`CVE_DB_INCR_UPDATE_AGE_THRES`
  1512. Specifies the maximum age of the CVE database in seconds for an
  1513. incremental update (instead of a full-download). Use "0" to force a
  1514. full-download.
  1515. :term:`CVE_DB_UPDATE_INTERVAL`
  1516. Specifies the CVE database update interval in seconds, as used by
  1517. ``cve-update-db-native``. The default value is "86400" i.e. once a day
  1518. (24*60*60). If the value is set to "0" then the update will be forced
  1519. every time. Alternatively, a negative value e.g. "-1" will disable
  1520. updates entirely.
  1521. :term:`CVE_PRODUCT`
  1522. In a recipe, defines the name used to match the recipe name
  1523. against the name in the upstream `NIST CVE database <https://nvd.nist.gov/>`__.
  1524. The default is ${:term:`BPN`} (except for recipes that inherit the
  1525. :ref:`ref-classes-pypi` class where it is set based upon
  1526. :term:`PYPI_PACKAGE`). If it does not match the name in the NIST CVE
  1527. database or matches with multiple entries in the database, the default
  1528. value needs to be changed.
  1529. Here is an example from the :oe_layerindex:`Berkeley DB recipe </layerindex/recipe/544>`::
  1530. CVE_PRODUCT = "oracle_berkeley_db berkeley_db"
  1531. Sometimes the product name is not specific enough, for example
  1532. "tar" has been matching CVEs for the GNU ``tar`` package and also
  1533. the ``node-tar`` node.js extension. To avoid this problem, use the
  1534. vendor name as a prefix. The syntax for this is::
  1535. CVE_PRODUCT = "vendor:package"
  1536. :term:`CVE_STATUS`
  1537. The CVE ID which is patched or should be ignored. Here is
  1538. an example from the :oe_layerindex:`Python3 recipe</layerindex/recipe/23823>`::
  1539. CVE_STATUS[CVE-2020-15523] = "not-applicable-platform: Issue only applies on Windows"
  1540. It has the format "reason: description" and the description is optional.
  1541. The Reason is mapped to the final CVE state by mapping via
  1542. :term:`CVE_CHECK_STATUSMAP`. See :ref:`dev-manual/vulnerabilities:fixing vulnerabilities in recipes`
  1543. for details.
  1544. :term:`CVE_STATUS_GROUPS`
  1545. If there are many CVEs with the same status and reason, they can by simplified by using this
  1546. variable instead of many similar lines with :term:`CVE_STATUS`::
  1547. CVE_STATUS_GROUPS = "CVE_STATUS_WIN CVE_STATUS_PATCHED"
  1548. CVE_STATUS_WIN = "CVE-1234-0001 CVE-1234-0002"
  1549. CVE_STATUS_WIN[status] = "not-applicable-platform: Issue only applies on Windows"
  1550. CVE_STATUS_PATCHED = "CVE-1234-0003 CVE-1234-0004"
  1551. CVE_STATUS_PATCHED[status] = "fixed-version: Fixed externally"
  1552. :term:`CVE_CHECK_STATUSMAP`
  1553. Mapping variable for all possible reasons of :term:`CVE_STATUS`:
  1554. ``Patched``, ``Unpatched`` and ``Ignored``.
  1555. See :ref:`ref-classes-cve-check` or ``meta/conf/cve-check-map.conf`` for more details::
  1556. CVE_CHECK_STATUSMAP[cpe-incorrect] = "Ignored"
  1557. :term:`CVE_VERSION`
  1558. In a recipe, defines the version used to match the recipe version
  1559. against the version in the `NIST CVE database <https://nvd.nist.gov/>`__
  1560. when usign :ref:`ref-classes-cve-check`.
  1561. The default is ${:term:`PV`} but if recipes use custom version numbers
  1562. which do not map to upstream software component release versions and the versions
  1563. used in the CVE database, then this variable can be used to set the
  1564. version number for :ref:`ref-classes-cve-check`. Example::
  1565. CVE_VERSION = "2.39"
  1566. :term:`CVSDIR`
  1567. The directory in which files checked out under the CVS system are
  1568. stored.
  1569. :term:`CXX`
  1570. The minimal command and arguments used to run the C++ compiler.
  1571. :term:`CXXFLAGS`
  1572. Specifies the flags to pass to the C++ compiler. This variable is
  1573. exported to an environment variable and thus made visible to the
  1574. software being built during the compilation step.
  1575. Default initialization for :term:`CXXFLAGS` varies depending on what is
  1576. being built:
  1577. - :term:`TARGET_CXXFLAGS` when building for
  1578. the target
  1579. - :term:`BUILD_CXXFLAGS` when building for the
  1580. build host (i.e. ``-native``)
  1581. - :term:`BUILDSDK_CXXFLAGS` when building
  1582. for an SDK (i.e. ``nativesdk-``)
  1583. :term:`D`
  1584. The destination directory. The location in the :term:`Build Directory`
  1585. where components are installed by the
  1586. :ref:`ref-tasks-install` task. This location defaults
  1587. to::
  1588. ${WORKDIR}/image
  1589. .. note::
  1590. Tasks that read from or write to this directory should run under
  1591. :ref:`fakeroot <overview-manual/concepts:fakeroot and pseudo>`.
  1592. :term:`DATE`
  1593. The date the build was started. Dates appear using the year, month,
  1594. and day (YMD) format (e.g. "20150209" for February 9th, 2015).
  1595. :term:`DATETIME`
  1596. The date and time on which the current build started. The format is
  1597. suitable for timestamps.
  1598. :term:`DEBIAN_NOAUTONAME`
  1599. When the :ref:`ref-classes-debian` class is inherited,
  1600. which is the default behavior, :term:`DEBIAN_NOAUTONAME` specifies a
  1601. particular package should not be renamed according to Debian library
  1602. package naming. You must use the package name as an override when you
  1603. set this variable. Here is an example from the ``fontconfig`` recipe::
  1604. DEBIAN_NOAUTONAME:fontconfig-utils = "1"
  1605. :term:`DEBIANNAME`
  1606. When the :ref:`ref-classes-debian` class is inherited,
  1607. which is the default behavior, :term:`DEBIANNAME` allows you to override
  1608. the library name for an individual package. Overriding the library
  1609. name in these cases is rare. You must use the package name as an
  1610. override when you set this variable. Here is an example from the
  1611. ``dbus`` recipe::
  1612. DEBIANNAME:${PN} = "dbus-1"
  1613. :term:`DEBUG_BUILD`
  1614. Specifies to build packages with debugging information. This
  1615. influences the value of the :term:`SELECTED_OPTIMIZATION` variable.
  1616. :term:`DEBUG_OPTIMIZATION`
  1617. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  1618. compiling a system for debugging. This variable defaults to "-O
  1619. -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  1620. :term:`DEBUG_PREFIX_MAP`
  1621. Allows to set C compiler options, such as ``-fdebug-prefix-map``,
  1622. ``-fmacro-prefix-map``, and ``-ffile-prefix-map``, which allow to
  1623. replace build-time paths by install-time ones in the debugging sections
  1624. of binaries. This makes compiler output files location independent,
  1625. at the cost of having to pass an extra command to tell the debugger
  1626. where source files are.
  1627. This is used by the Yocto Project to guarantee
  1628. :doc:`/test-manual/reproducible-builds` even when the source code of
  1629. a package uses the ``__FILE__`` or ``assert()`` macros. See the
  1630. `reproducible-builds.org <https://reproducible-builds.org/docs/build-path/>`__
  1631. website for details.
  1632. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1633. not intended to be user-configurable.
  1634. :term:`DEFAULT_PREFERENCE`
  1635. Specifies a weak bias for recipe selection priority.
  1636. The most common usage of this is variable is to set it to "-1" within
  1637. a recipe for a development version of a piece of software. Using the
  1638. variable in this way causes the stable version of the recipe to build
  1639. by default in the absence of :term:`PREFERRED_VERSION` being used to
  1640. build the development version.
  1641. .. note::
  1642. The bias provided by :term:`DEFAULT_PREFERENCE` is weak and is overridden
  1643. by :term:`BBFILE_PRIORITY` if that variable is different between two
  1644. layers that contain different versions of the same recipe.
  1645. :term:`DEFAULT_TIMEZONE`
  1646. Specifies the time zone set in the image.
  1647. This variable causes the ``tzdata`` package to configure
  1648. ``${sysconfdir}/localtime`` accordingly. Valid values are all files
  1649. found in ``/usr/share/zoneinfo`` like ``CET`` or ``Asia/Baku``.
  1650. :term:`DEFAULTTUNE`
  1651. The default CPU and Application Binary Interface (ABI) tunings (i.e.
  1652. the "tune") used by the OpenEmbedded build system. The
  1653. :term:`DEFAULTTUNE` helps define
  1654. :term:`TUNE_FEATURES`.
  1655. The default tune is either implicitly or explicitly set by the
  1656. machine (:term:`MACHINE`). However, you can override
  1657. the setting using available tunes as defined with
  1658. :term:`AVAILTUNES`.
  1659. :term:`DEPENDS`
  1660. Lists a recipe's build-time dependencies. These are dependencies on
  1661. other recipes whose contents (e.g. headers and shared libraries) are
  1662. needed by the recipe at build time.
  1663. As an example, consider a recipe ``foo`` that contains the following
  1664. assignment::
  1665. DEPENDS = "bar"
  1666. The practical effect of the previous assignment is that all files
  1667. installed by bar will be available in the appropriate staging sysroot,
  1668. given by the :term:`STAGING_DIR* <STAGING_DIR>` variables, by the time
  1669. the :ref:`ref-tasks-configure` task for ``foo`` runs. This mechanism is
  1670. implemented by having :ref:`ref-tasks-configure` depend on the
  1671. :ref:`ref-tasks-populate_sysroot` task of each recipe listed in
  1672. :term:`DEPENDS`, through a
  1673. ``[``\ :ref:`deptask <bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]``
  1674. declaration in the :ref:`ref-classes-base` class.
  1675. .. note::
  1676. It seldom is necessary to reference, for example, :term:`STAGING_DIR_HOST`
  1677. explicitly. The standard classes and build-related variables are
  1678. configured to automatically use the appropriate staging sysroots.
  1679. As another example, :term:`DEPENDS` can also be used to add utilities
  1680. that run on the build machine during the build. For example, a recipe
  1681. that makes use of a code generator built by the recipe ``codegen``
  1682. might have the following::
  1683. DEPENDS = "codegen-native"
  1684. For more
  1685. information, see the :ref:`ref-classes-native` class and
  1686. the :term:`EXTRANATIVEPATH` variable.
  1687. .. note::
  1688. - :term:`DEPENDS` is a list of recipe names. Or, to be more precise,
  1689. it is a list of :term:`PROVIDES` names, which
  1690. usually match recipe names. Putting a package name such as
  1691. "foo-dev" in :term:`DEPENDS` does not make sense. Use "foo"
  1692. instead, as this will put files from all the packages that make
  1693. up ``foo``, which includes those from ``foo-dev``, into the
  1694. sysroot.
  1695. - One recipe having another recipe in :term:`DEPENDS` does not by
  1696. itself add any runtime dependencies between the packages
  1697. produced by the two recipes. However, as explained in the
  1698. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  1699. section in the Yocto Project Overview and Concepts Manual,
  1700. runtime dependencies will often be added automatically, meaning
  1701. :term:`DEPENDS` alone is sufficient for most recipes.
  1702. - Counterintuitively, :term:`DEPENDS` is often necessary even for
  1703. recipes that install precompiled components. For example, if
  1704. ``libfoo`` is a precompiled library that links against
  1705. ``libbar``, then linking against ``libfoo`` requires both
  1706. ``libfoo`` and ``libbar`` to be available in the sysroot.
  1707. Without a :term:`DEPENDS` from the recipe that installs ``libfoo``
  1708. to the recipe that installs ``libbar``, other recipes might
  1709. fail to link against ``libfoo``.
  1710. For information on runtime dependencies, see the :term:`RDEPENDS`
  1711. variable. You can also see the
  1712. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  1713. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`"
  1714. sections in the BitBake User Manual for additional information on tasks
  1715. and dependencies.
  1716. :term:`DEPLOY_DIR`
  1717. Points to the general area that the OpenEmbedded build system uses to
  1718. place images, packages, SDKs, and other output files that are ready
  1719. to be used outside of the build system. By default, this directory
  1720. resides within the :term:`Build Directory` as ``${TMPDIR}/deploy``.
  1721. For more information on the structure of the Build Directory, see
  1722. ":ref:`ref-manual/structure:the build directory --- ``build/```" section.
  1723. For more detail on the contents of the ``deploy`` directory, see the
  1724. ":ref:`overview-manual/concepts:images`",
  1725. ":ref:`overview-manual/concepts:package feeds`", and
  1726. ":ref:`overview-manual/concepts:application development sdk`" sections all in the
  1727. Yocto Project Overview and Concepts Manual.
  1728. :term:`DEPLOY_DIR_DEB`
  1729. Points to the area that the OpenEmbedded build system uses to place
  1730. Debian packages that are ready to be used outside of the build
  1731. system. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1732. ":ref:`ref-classes-package_deb`".
  1733. The BitBake configuration file initially defines the
  1734. :term:`DEPLOY_DIR_DEB` variable as a sub-folder of
  1735. :term:`DEPLOY_DIR`::
  1736. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  1737. The :ref:`ref-classes-package_deb` class uses the
  1738. :term:`DEPLOY_DIR_DEB` variable to make sure the
  1739. :ref:`ref-tasks-package_write_deb` task
  1740. writes Debian packages into the appropriate folder. For more
  1741. information on how packaging works, see the
  1742. ":ref:`overview-manual/concepts:package feeds`" section
  1743. in the Yocto Project Overview and Concepts Manual.
  1744. :term:`DEPLOY_DIR_IMAGE`
  1745. Points to the area that the OpenEmbedded build system uses to place
  1746. images and other associated output files that are ready to be
  1747. deployed onto the target machine. The directory is machine-specific
  1748. as it contains the ``${MACHINE}`` name. By default, this directory
  1749. resides within the :term:`Build Directory` as
  1750. ``${DEPLOY_DIR}/images/${MACHINE}/``.
  1751. It must not be used directly in recipes when deploying files. Instead,
  1752. it's only useful when a recipe needs to "read" a file already deployed
  1753. by a dependency. So, it should be filled with the contents of
  1754. :term:`DEPLOYDIR` by the :ref:`ref-classes-deploy` class or with the
  1755. contents of :term:`IMGDEPLOYDIR` by the :ref:`ref-classes-image` class.
  1756. For more information on the structure of the :term:`Build Directory`, see
  1757. ":ref:`ref-manual/structure:the build directory --- ``build/```" section.
  1758. For more detail on the contents of the ``deploy`` directory, see the
  1759. ":ref:`overview-manual/concepts:images`" and
  1760. ":ref:`overview-manual/concepts:application development sdk`" sections both in
  1761. the Yocto Project Overview and Concepts Manual.
  1762. :term:`DEPLOY_DIR_IPK`
  1763. Points to the area that the OpenEmbedded build system uses to place
  1764. IPK packages that are ready to be used outside of the build system.
  1765. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1766. ":ref:`ref-classes-package_ipk`".
  1767. The BitBake configuration file initially defines this variable as a
  1768. sub-folder of :term:`DEPLOY_DIR`::
  1769. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  1770. The :ref:`ref-classes-package_ipk` class uses the :term:`DEPLOY_DIR_IPK`
  1771. variable to make sure the :ref:`ref-tasks-package_write_ipk` task
  1772. writes IPK packages into the appropriate folder. For more information
  1773. on how packaging works, see the
  1774. ":ref:`overview-manual/concepts:package feeds`" section
  1775. in the Yocto Project Overview and Concepts Manual.
  1776. :term:`DEPLOY_DIR_RPM`
  1777. Points to the area that the OpenEmbedded build system uses to place
  1778. RPM packages that are ready to be used outside of the build system.
  1779. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1780. ":ref:`ref-classes-package_rpm`".
  1781. The BitBake configuration file initially defines this variable as a
  1782. sub-folder of :term:`DEPLOY_DIR`::
  1783. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  1784. The :ref:`ref-classes-package_rpm` class uses the
  1785. :term:`DEPLOY_DIR_RPM` variable to make sure the
  1786. :ref:`ref-tasks-package_write_rpm` task
  1787. writes RPM packages into the appropriate folder. For more information
  1788. on how packaging works, see the
  1789. ":ref:`overview-manual/concepts:package feeds`" section
  1790. in the Yocto Project Overview and Concepts Manual.
  1791. :term:`DEPLOYDIR`
  1792. When inheriting the :ref:`ref-classes-deploy` class, the
  1793. :term:`DEPLOYDIR` points to a temporary work area for deployed files that
  1794. is set in the :ref:`ref-classes-deploy` class as follows::
  1795. DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
  1796. Recipes inheriting the :ref:`ref-classes-deploy` class should copy files to be
  1797. deployed into :term:`DEPLOYDIR`, and the class will take care of copying
  1798. them into :term:`DEPLOY_DIR_IMAGE`
  1799. afterwards.
  1800. :term:`DESCRIPTION`
  1801. The package description used by package managers. If not set,
  1802. :term:`DESCRIPTION` takes the value of the :term:`SUMMARY`
  1803. variable.
  1804. :term:`DEV_PKG_DEPENDENCY`
  1805. Provides an easy way for recipes to disable or adjust the runtime recommendation
  1806. (:term:`RRECOMMENDS`) of the ``${PN}-dev`` package on the main
  1807. (``${PN}``) package.
  1808. :term:`DISABLE_STATIC`
  1809. Used in order to disable static linking by default (in order to save
  1810. space, since static libraries are often unused in embedded systems.)
  1811. The default value is " --disable-static", however it can be set to ""
  1812. in order to enable static linking if desired. Certain recipes do this
  1813. individually, and also there is a
  1814. ``meta/conf/distro/include/no-static-libs.inc`` include file that
  1815. disables static linking for a number of recipes. Some software
  1816. packages or build tools (such as CMake) have explicit support for
  1817. enabling / disabling static linking, and in those cases
  1818. :term:`DISABLE_STATIC` is not used.
  1819. :term:`DISTRO`
  1820. The short name of the distribution. For information on the long name
  1821. of the distribution, see the :term:`DISTRO_NAME`
  1822. variable.
  1823. The :term:`DISTRO` variable corresponds to a distribution configuration
  1824. file whose root name is the same as the variable's argument and whose
  1825. filename extension is ``.conf``. For example, the distribution
  1826. configuration file for the Poky distribution is named ``poky.conf``
  1827. and resides in the ``meta-poky/conf/distro`` directory of the
  1828. :term:`Source Directory`.
  1829. Within that ``poky.conf`` file, the :term:`DISTRO` variable is set as
  1830. follows::
  1831. DISTRO = "poky"
  1832. Distribution configuration files are located in a ``conf/distro``
  1833. directory within the :term:`Metadata` that contains the
  1834. distribution configuration. The value for :term:`DISTRO` must not contain
  1835. spaces, and is typically all lower-case.
  1836. .. note::
  1837. If the :term:`DISTRO` variable is blank, a set of default configurations
  1838. are used, which are specified within
  1839. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1840. :term:`DISTRO_CODENAME`
  1841. Specifies a codename for the distribution being built.
  1842. :term:`DISTRO_EXTRA_RDEPENDS`
  1843. Specifies a list of distro-specific packages to add to all images.
  1844. This variable takes effect through ``packagegroup-base`` so the
  1845. variable only really applies to the more full-featured images that
  1846. include ``packagegroup-base``. You can use this variable to keep
  1847. distro policy out of generic images. As with all other distro
  1848. variables, you set this variable in the distro ``.conf`` file.
  1849. :term:`DISTRO_EXTRA_RRECOMMENDS`
  1850. Specifies a list of distro-specific packages to add to all images if
  1851. the packages exist. The packages might not exist or be empty (e.g.
  1852. kernel modules). The list of packages are automatically installed but
  1853. you can remove them.
  1854. :term:`DISTRO_FEATURES`
  1855. The software support you want in your distribution for various
  1856. features. You define your distribution features in the distribution
  1857. configuration file.
  1858. In most cases, the presence or absence of a feature in
  1859. :term:`DISTRO_FEATURES` is translated to the appropriate option supplied
  1860. to the configure script during the
  1861. :ref:`ref-tasks-configure` task for recipes that
  1862. optionally support the feature. For example, specifying "x11" in
  1863. :term:`DISTRO_FEATURES`, causes every piece of software built for the
  1864. target that can optionally support X11 to have its X11 support
  1865. enabled.
  1866. .. note::
  1867. Just enabling :term:`DISTRO_FEATURES` alone doesn't
  1868. enable feature support for packages. Mechanisms such as making
  1869. :term:`PACKAGECONFIG` track :term:`DISTRO_FEATURES` are used
  1870. to enable/disable package features.
  1871. Two more examples are Bluetooth and NFS support. For a more complete
  1872. list of features that ships with the Yocto Project and that you can
  1873. provide with this variable, see the ":ref:`ref-features-distro`" section.
  1874. :term:`DISTRO_FEATURES_BACKFILL`
  1875. A space-separated list of features to be added to :term:`DISTRO_FEATURES`
  1876. if not also present in :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`.
  1877. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1878. not intended to be user-configurable. It is best to just reference
  1879. the variable to see which distro features are being
  1880. :ref:`backfilled <ref-features-backfill>` for all distro configurations.
  1881. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`
  1882. A space-separated list of features from :term:`DISTRO_FEATURES_BACKFILL`
  1883. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  1884. to :term:`DISTRO_FEATURES`) during the build.
  1885. This corresponds to an opt-out mechanism. When new default distro
  1886. features are introduced, distribution maintainers can review (`consider`)
  1887. them and decide to exclude them from the
  1888. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  1889. combination of :term:`DISTRO_FEATURES_BACKFILL` and
  1890. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  1891. add new default features without breaking existing distributions.
  1892. :term:`DISTRO_FEATURES_DEFAULT`
  1893. A convenience variable that gives you the default list of distro
  1894. features with the exception of any features specific to the C library
  1895. (``libc``).
  1896. When creating a custom distribution, you might find it useful to be
  1897. able to reuse the default
  1898. :term:`DISTRO_FEATURES` options without the
  1899. need to write out the full set. Here is an example that uses
  1900. :term:`DISTRO_FEATURES_DEFAULT` from a custom distro configuration file::
  1901. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} myfeature"
  1902. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1903. Specifies a list of features that if present in the target
  1904. :term:`DISTRO_FEATURES` value should be
  1905. included in :term:`DISTRO_FEATURES` when building native recipes. This
  1906. variable is used in addition to the features filtered using the
  1907. :term:`DISTRO_FEATURES_NATIVE`
  1908. variable.
  1909. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1910. Specifies a list of features that if present in the target
  1911. :term:`DISTRO_FEATURES` value should be included in
  1912. :term:`DISTRO_FEATURES` when building :ref:`ref-classes-nativesdk`
  1913. recipes. This variable is used in addition to the features filtered using
  1914. the :term:`DISTRO_FEATURES_NATIVESDK` variable.
  1915. :term:`DISTRO_FEATURES_NATIVE`
  1916. Specifies a list of features that should be included in
  1917. :term:`DISTRO_FEATURES` when building native
  1918. recipes. This variable is used in addition to the features filtered
  1919. using the
  1920. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1921. variable.
  1922. :term:`DISTRO_FEATURES_NATIVESDK`
  1923. Specifies a list of features that should be included in
  1924. :term:`DISTRO_FEATURES` when building
  1925. :ref:`ref-classes-nativesdk` recipes. This variable is used
  1926. in addition to the features filtered using the
  1927. :term:`DISTRO_FEATURES_FILTER_NATIVESDK` variable.
  1928. :term:`DISTRO_NAME`
  1929. The long name of the distribution. For information on the short name
  1930. of the distribution, see the :term:`DISTRO` variable.
  1931. The :term:`DISTRO_NAME` variable corresponds to a distribution
  1932. configuration file whose root name is the same as the variable's
  1933. argument and whose filename extension is ``.conf``. For example, the
  1934. distribution configuration file for the Poky distribution is named
  1935. ``poky.conf`` and resides in the ``meta-poky/conf/distro`` directory
  1936. of the :term:`Source Directory`.
  1937. Within that ``poky.conf`` file, the :term:`DISTRO_NAME` variable is set
  1938. as follows::
  1939. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  1940. Distribution configuration files are located in a ``conf/distro``
  1941. directory within the :term:`Metadata` that contains the
  1942. distribution configuration.
  1943. .. note::
  1944. If the :term:`DISTRO_NAME` variable is blank, a set of default
  1945. configurations are used, which are specified within
  1946. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1947. :term:`DISTRO_VERSION`
  1948. The version of the distribution.
  1949. :term:`DISTROOVERRIDES`
  1950. A colon-separated list of overrides specific to the current
  1951. distribution. By default, this list includes the value of
  1952. :term:`DISTRO`.
  1953. You can extend :term:`DISTROOVERRIDES` to add extra overrides that should
  1954. apply to the distribution.
  1955. The underlying mechanism behind :term:`DISTROOVERRIDES` is simply that it
  1956. is included in the default value of
  1957. :term:`OVERRIDES`.
  1958. Here is an example from :yocto_git:`meta-poky/conf/distro/poky-tiny.conf
  1959. </poky/tree/meta-poky/conf/distro/poky-tiny.conf>`::
  1960. DISTROOVERRIDES = "poky:poky-tiny"
  1961. :term:`DL_DIR`
  1962. The central download directory used by the build process to store
  1963. downloads. By default, :term:`DL_DIR` gets files suitable for mirroring
  1964. for everything except Git repositories. If you want tarballs of Git
  1965. repositories, use the
  1966. :term:`BB_GENERATE_MIRROR_TARBALLS`
  1967. variable.
  1968. You can set this directory by defining the :term:`DL_DIR` variable in the
  1969. ``conf/local.conf`` file. This directory is self-maintaining and you
  1970. should not have to touch it. By default, the directory is
  1971. ``downloads`` in the :term:`Build Directory`::
  1972. #DL_DIR ?= "${TOPDIR}/downloads"
  1973. To specify a different download directory,
  1974. simply remove the comment from the line and provide your directory.
  1975. During a first build, the system downloads many different source code
  1976. tarballs from various upstream projects. Downloading can take a
  1977. while, particularly if your network connection is slow. Tarballs are
  1978. all stored in the directory defined by :term:`DL_DIR` and the build
  1979. system looks there first to find source tarballs.
  1980. .. note::
  1981. When wiping and rebuilding, you can preserve this directory to
  1982. speed up this part of subsequent builds.
  1983. You can safely share this directory between multiple builds on the
  1984. same development machine. For additional information on how the build
  1985. process gets source files when working behind a firewall or proxy
  1986. server, see this specific question in the ":doc:`faq`"
  1987. chapter. You can also refer to the
  1988. ":yocto_wiki:`Working Behind a Network Proxy </Working_Behind_a_Network_Proxy>`"
  1989. Wiki page.
  1990. :term:`DOC_COMPRESS`
  1991. When inheriting the :ref:`ref-classes-compress_doc`
  1992. class, this variable sets the compression policy used when the
  1993. OpenEmbedded build system compresses manual and info pages. By
  1994. default, the compression method used is gz (gzip). Other policies
  1995. available are xz and bz2.
  1996. For information on policies and on how to use this variable, see the
  1997. comments in the ``meta/classes-recipe/compress_doc.bbclass`` file.
  1998. :term:`DT_FILES`
  1999. Space-separated list of device tree source files to compile using
  2000. a recipe that inherits the :ref:`ref-classes-devicetree` class. These
  2001. are relative to the :term:`DT_FILES_PATH`.
  2002. For convenience, both ``.dts`` and ``.dtb`` extensions can be used.
  2003. Use an empty string (default) to build all device tree sources within
  2004. the :term:`DT_FILES_PATH` directory.
  2005. :term:`DT_FILES_PATH`
  2006. When compiling out-of-tree device tree sources using a recipe that
  2007. inherits the :ref:`ref-classes-devicetree` class, this variable specifies
  2008. the path to the directory containing dts files to build.
  2009. Defaults to the :term:`S` directory.
  2010. :term:`DT_PADDING_SIZE`
  2011. When inheriting the :ref:`ref-classes-devicetree` class, this variable
  2012. specifies the size of padding appended to the device tree blob, used as
  2013. extra space typically for additional properties during boot.
  2014. :term:`EFI_ARCH`
  2015. The CPU architecture name within EFI standard. Set in
  2016. :oe_git:`meta/conf/image-uefi.conf
  2017. <openembedded-core/tree/meta/conf/image-uefi.conf>`.
  2018. :term:`EFI_PROVIDER`
  2019. When building bootable images (i.e. where ``hddimg``, ``iso``, or
  2020. ``wic.vmdk`` is in :term:`IMAGE_FSTYPES`), the
  2021. :term:`EFI_PROVIDER` variable specifies the EFI bootloader to use. The
  2022. default is "grub-efi", but "systemd-boot" can be used instead.
  2023. See the :ref:`ref-classes-systemd-boot` and :ref:`ref-classes-image-live`
  2024. classes for more information.
  2025. :term:`EFI_UKI_DIR`
  2026. The primary place for the UKI image inside the EFI System Partition.
  2027. :term:`EFI_UKI_PATH`
  2028. The path for the UKI image inside the root filesystem.
  2029. :term:`ENABLE_BINARY_LOCALE_GENERATION`
  2030. Variable that controls which locales for ``glibc`` are generated
  2031. during the build (useful if the target device has 64Mbytes of RAM or
  2032. less).
  2033. :term:`ERR_REPORT_DIR`
  2034. When used with the :ref:`ref-classes-report-error` class, specifies the
  2035. path used for storing the debug files created by the :ref:`error reporting
  2036. tool <dev-manual/error-reporting-tool:using the error reporting tool>`,
  2037. which allows you to submit build errors you encounter to a central
  2038. database. By default, the value of this variable is
  2039. ``${``\ :term:`LOG_DIR`\ ``}/error-report``.
  2040. You can set :term:`ERR_REPORT_DIR` to the path you want the error
  2041. reporting tool to store the debug files as follows in your
  2042. ``local.conf`` file::
  2043. ERR_REPORT_DIR = "path"
  2044. :term:`ERROR_QA`
  2045. Specifies the quality assurance checks whose failures are reported as
  2046. errors by the OpenEmbedded build system. You set this variable in
  2047. your distribution configuration file. For a list of the checks you
  2048. can control with this variable, see the
  2049. ":ref:`ref-classes-insane`" section.
  2050. :term:`ESDK_CLASS_INHERIT_DISABLE`
  2051. A list of classes to remove from the :term:`INHERIT`
  2052. value globally within the extensible SDK configuration. The
  2053. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class sets the
  2054. default value::
  2055. ESDK_CLASS_INHERIT_DISABLE ?= "buildhistory icecc"
  2056. Some classes are not generally applicable within the extensible SDK
  2057. context. You can use this variable to disable those classes.
  2058. For additional information on how to customize the extensible SDK's
  2059. configuration, see the
  2060. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  2061. section in the Yocto Project Application Development and the
  2062. Extensible Software Development Kit (eSDK) manual.
  2063. :term:`ESDK_LOCALCONF_ALLOW`
  2064. A list of variables allowed through from the OpenEmbedded build
  2065. system configuration into the extensible SDK configuration. By
  2066. default, the list of variables is empty and is set in the
  2067. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class.
  2068. This list overrides the variables specified using the
  2069. :term:`ESDK_LOCALCONF_REMOVE` variable as well as
  2070. other variables automatically added due to the "/" character
  2071. being found at the start of the
  2072. value, which is usually indicative of being a path and thus might not
  2073. be valid on the system where the SDK is installed.
  2074. For additional information on how to customize the extensible SDK's
  2075. configuration, see the
  2076. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  2077. section in the Yocto Project Application Development and the
  2078. Extensible Software Development Kit (eSDK) manual.
  2079. :term:`ESDK_LOCALCONF_REMOVE`
  2080. A list of variables not allowed through from the OpenEmbedded build
  2081. system configuration into the extensible SDK configuration. Usually,
  2082. these are variables that are specific to the machine on which the
  2083. build system is running and thus would be potentially problematic
  2084. within the extensible SDK.
  2085. By default, :term:`ESDK_LOCALCONF_REMOVE` is set in the
  2086. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class and
  2087. excludes the following variables:
  2088. - :term:`CONF_VERSION`
  2089. - :term:`BB_NUMBER_THREADS`
  2090. - :term:`BB_NUMBER_PARSE_THREADS`
  2091. - :term:`PARALLEL_MAKE`
  2092. - :term:`PRSERV_HOST`
  2093. - :term:`SSTATE_MIRRORS` :term:`DL_DIR`
  2094. - :term:`SSTATE_DIR` :term:`TMPDIR`
  2095. - :term:`BB_SERVER_TIMEOUT`
  2096. For additional information on how to customize the extensible SDK's
  2097. configuration, see the
  2098. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  2099. section in the Yocto Project Application Development and the
  2100. Extensible Software Development Kit (eSDK) manual.
  2101. :term:`EXCLUDE_FROM_SHLIBS`
  2102. Triggers the OpenEmbedded build system's shared libraries resolver to
  2103. exclude an entire package when scanning for shared libraries.
  2104. .. note::
  2105. The shared libraries resolver's functionality results in part from
  2106. the internal function ``package_do_shlibs``, which is part of the
  2107. :ref:`ref-tasks-package` task. You should be aware that the shared
  2108. libraries resolver might implicitly define some dependencies between
  2109. packages.
  2110. The :term:`EXCLUDE_FROM_SHLIBS` variable is similar to the
  2111. :term:`PRIVATE_LIBS` variable, which excludes a
  2112. package's particular libraries only and not the whole package.
  2113. Use the :term:`EXCLUDE_FROM_SHLIBS` variable by setting it to "1" for a
  2114. particular package::
  2115. EXCLUDE_FROM_SHLIBS = "1"
  2116. :term:`EXCLUDE_FROM_WORLD`
  2117. Directs BitBake to exclude a recipe from world builds (i.e.
  2118. ``bitbake world``). During world builds, BitBake locates, parses and
  2119. builds all recipes found in every layer exposed in the
  2120. ``bblayers.conf`` configuration file.
  2121. To exclude a recipe from a world build using this variable, set the
  2122. variable to "1" in the recipe.
  2123. .. note::
  2124. Recipes added to :term:`EXCLUDE_FROM_WORLD` may still be built during a
  2125. world build in order to satisfy dependencies of other recipes. Adding
  2126. a recipe to :term:`EXCLUDE_FROM_WORLD` only ensures that the recipe is not
  2127. explicitly added to the list of build targets in a world build.
  2128. :term:`EXTENDPE`
  2129. Used with file and pathnames to create a prefix for a recipe's
  2130. version based on the recipe's :term:`PE` value. If :term:`PE`
  2131. is set and greater than zero for a recipe, :term:`EXTENDPE` becomes that
  2132. value (e.g if :term:`PE` is equal to "1" then :term:`EXTENDPE` becomes "1").
  2133. If a recipe's :term:`PE` is not set (the default) or is equal to zero,
  2134. :term:`EXTENDPE` becomes "".
  2135. See the :term:`STAMP` variable for an example.
  2136. :term:`EXTENDPKGV`
  2137. The full package version specification as it appears on the final
  2138. packages produced by a recipe. The variable's value is normally used
  2139. to fix a runtime dependency to the exact same version of another
  2140. package in the same recipe::
  2141. RDEPENDS:${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  2142. The dependency relationships are intended to force the package
  2143. manager to upgrade these types of packages in lock-step.
  2144. :term:`EXTERNAL_KERNEL_TOOLS`
  2145. When set, the :term:`EXTERNAL_KERNEL_TOOLS` variable indicates that these
  2146. tools are not in the source tree.
  2147. When kernel tools are available in the tree, they are preferred over
  2148. any externally installed tools. Setting the :term:`EXTERNAL_KERNEL_TOOLS`
  2149. variable tells the OpenEmbedded build system to prefer the installed
  2150. external tools. See the :ref:`ref-classes-kernel-yocto` class in
  2151. ``meta/classes-recipe`` to see how the variable is used.
  2152. :term:`EXTERNAL_KERNEL_DEVICETREE`
  2153. When inheriting :ref:`ref-classes-kernel-fitimage` and a
  2154. :term:`PREFERRED_PROVIDER` for ``virtual/dtb`` set to ``devicetree``, the
  2155. variable :term:`EXTERNAL_KERNEL_DEVICETREE` can be used to specify a
  2156. directory containing one or more compiled device tree or device tree
  2157. overlays to use.
  2158. :term:`KERNEL_LOCALVERSION`
  2159. This variable allows to append a string to the version
  2160. of the kernel image. This corresponds to the ``CONFIG_LOCALVERSION``
  2161. kernel configuration parameter.
  2162. Using this variable is only useful when you are using a kernel recipe
  2163. inheriting the :ref:`ref-classes-kernel` class, and which doesn't
  2164. already set a local version. Therefore, setting this variable has no
  2165. impact on ``linux-yocto`` kernels.
  2166. :term:`EXTERNAL_TOOLCHAIN`
  2167. When you intend to use an
  2168. :ref:`external toolchain <dev-manual/external-toolchain:optionally using an external toolchain>`,
  2169. this variable allows to specify the directory where this toolchain was
  2170. installed.
  2171. :term:`EXTERNALSRC`
  2172. When inheriting the :ref:`ref-classes-externalsrc`
  2173. class, this variable points to the source tree, which is outside of
  2174. the OpenEmbedded build system. When set, this variable sets the
  2175. :term:`S` variable, which is what the OpenEmbedded build
  2176. system uses to locate unpacked recipe source code.
  2177. See the ":ref:`ref-classes-externalsrc`" section for details. You
  2178. can also find information on how to use this variable in the
  2179. ":ref:`dev-manual/building:building software from an external source`"
  2180. section in the Yocto Project Development Tasks Manual.
  2181. :term:`EXTERNALSRC_BUILD`
  2182. When inheriting the :ref:`ref-classes-externalsrc`
  2183. class, this variable points to the directory in which the recipe's
  2184. source code is built, which is outside of the OpenEmbedded build
  2185. system. When set, this variable sets the :term:`B` variable,
  2186. which is what the OpenEmbedded build system uses to locate the
  2187. :term:`Build Directory`.
  2188. See the ":ref:`ref-classes-externalsrc`" section for details. You
  2189. can also find information on how to use this variable in the
  2190. ":ref:`dev-manual/building:building software from an external source`"
  2191. section in the Yocto Project Development Tasks Manual.
  2192. :term:`EXTRA_AUTORECONF`
  2193. For recipes inheriting the :ref:`ref-classes-autotools`
  2194. class, you can use :term:`EXTRA_AUTORECONF` to specify extra options to
  2195. pass to the ``autoreconf`` command that is executed during the
  2196. :ref:`ref-tasks-configure` task.
  2197. The default value is "--exclude=autopoint".
  2198. :term:`EXTRA_IMAGE_FEATURES`
  2199. A list of additional features to include in an image. When listing
  2200. more than one feature, separate them with a space.
  2201. Typically, you configure this variable in your ``local.conf`` file,
  2202. which is found in the :term:`Build Directory`. Although you can use this
  2203. variable from within a recipe, best practices dictate that you do not.
  2204. .. note::
  2205. To enable primary features from within the image recipe, use the
  2206. :term:`IMAGE_FEATURES` variable.
  2207. Here are some examples of features you can add:
  2208. - "dbg-pkgs" --- adds -dbg packages for all installed packages including
  2209. symbol information for debugging and profiling.
  2210. - "empty-root-password" --- This feature can be used if you want to
  2211. allow root login with an empty password.
  2212. - "allow-empty-password" --- Allows Dropbear and OpenSSH to accept
  2213. logins from accounts having an empty password string.
  2214. - "allow-root-login" --- Allows Dropbear and OpenSSH to accept root logins.
  2215. - "post-install-logging" --- Enables logging postinstall script runs to
  2216. the ``/var/log/postinstall.log`` file on first boot of the image on
  2217. the target system.
  2218. - "dev-pkgs" --- adds -dev packages for all installed packages. This is
  2219. useful if you want to develop against the libraries in the image.
  2220. - "read-only-rootfs" --- creates an image whose root filesystem is
  2221. read-only. See the
  2222. ":ref:`dev-manual/read-only-rootfs:creating a read-only root filesystem`"
  2223. section in the Yocto Project Development Tasks Manual for more
  2224. information
  2225. - "tools-debug" --- adds debugging tools such as gdb and strace.
  2226. - "tools-sdk" --- adds development tools such as gcc, make,
  2227. pkgconfig and so forth.
  2228. - "tools-testapps" --- adds useful testing tools
  2229. such as ts_print, aplay, arecord and so forth.
  2230. For a complete list of image features that ships with the Yocto
  2231. Project, see the ":ref:`ref-features-image`" section.
  2232. For an example that shows how to customize your image by using this
  2233. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2234. section in the Yocto Project Development Tasks Manual.
  2235. :term:`EXTRA_IMAGECMD`
  2236. Specifies additional options for the image creation command that has
  2237. been specified in :term:`IMAGE_CMD`. When setting
  2238. this variable, use an override for the associated image type. Here is
  2239. an example::
  2240. EXTRA_IMAGECMD:ext3 ?= "-i 4096"
  2241. :term:`EXTRA_IMAGEDEPENDS`
  2242. A list of recipes to build that do not provide packages for
  2243. installing into the root filesystem.
  2244. Sometimes a recipe is required to build the final image but is not
  2245. needed in the root filesystem. You can use the :term:`EXTRA_IMAGEDEPENDS`
  2246. variable to list these recipes and thus specify the dependencies. A
  2247. typical example is a required bootloader in a machine configuration.
  2248. .. note::
  2249. To add packages to the root filesystem, see the various
  2250. :term:`RDEPENDS` and :term:`RRECOMMENDS` variables.
  2251. :term:`EXTRA_OECMAKE`
  2252. Additional `CMake <https://cmake.org/overview/>`__ options. See the
  2253. :ref:`ref-classes-cmake` class for additional information.
  2254. :term:`EXTRA_OECONF`
  2255. Additional ``configure`` script options. See
  2256. :term:`PACKAGECONFIG_CONFARGS` for
  2257. additional information on passing configure script options.
  2258. :term:`EXTRA_OEMAKE`
  2259. Additional GNU ``make`` options.
  2260. Because the :term:`EXTRA_OEMAKE` defaults to "", you need to set the
  2261. variable to specify any required GNU options.
  2262. :term:`PARALLEL_MAKE` and
  2263. :term:`PARALLEL_MAKEINST` also make use of
  2264. :term:`EXTRA_OEMAKE` to pass the required flags.
  2265. :term:`EXTRA_OESCONS`
  2266. When inheriting the :ref:`ref-classes-scons` class, this
  2267. variable specifies additional configuration options you want to pass
  2268. to the ``scons`` command line.
  2269. :term:`EXTRA_OEMESON`
  2270. Additional `Meson <https://mesonbuild.com/>`__ options. See the
  2271. :ref:`ref-classes-meson` class for additional information.
  2272. In addition to standard Meson options, such options correspond to
  2273. `Meson build options <https://mesonbuild.com/Build-options.html>`__
  2274. defined in the ``meson_options.txt`` file in the sources to build.
  2275. Here is an example::
  2276. EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled"
  2277. Note that any custom value for the Meson ``--buildtype`` option
  2278. should be set through the :term:`MESON_BUILDTYPE` variable.
  2279. :term:`EXTRA_USERS_PARAMS`
  2280. When inheriting the :ref:`ref-classes-extrausers`
  2281. class, this variable provides image level user and group operations.
  2282. This is a more global method of providing user and group
  2283. configuration as compared to using the
  2284. :ref:`ref-classes-useradd` class, which ties user and
  2285. group configurations to a specific recipe.
  2286. The set list of commands you can configure using the
  2287. :term:`EXTRA_USERS_PARAMS` is shown in the
  2288. :ref:`ref-classes-extrausers` class. These commands map to the normal
  2289. Unix commands of the same names::
  2290. # EXTRA_USERS_PARAMS = "\
  2291. # useradd -p '' tester; \
  2292. # groupadd developers; \
  2293. # userdel nobody; \
  2294. # groupdel -g video; \
  2295. # groupmod -g 1020 developers; \
  2296. # usermod -s /bin/sh tester; \
  2297. # "
  2298. Hardcoded passwords are supported via the ``-p`` parameters for
  2299. ``useradd`` or ``usermod``, but only hashed.
  2300. Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns
  2301. passwords. First on host, create the (escaped) password hash::
  2302. printf "%q" $(mkpasswd -m sha256crypt tester01)
  2303. The resulting hash is set to a variable and used in ``useradd`` command parameters::
  2304. inherit extrausers
  2305. PASSWD = "\$X\$ABC123\$A-Long-Hash"
  2306. EXTRA_USERS_PARAMS = "\
  2307. useradd -p '${PASSWD}' tester-jim; \
  2308. useradd -p '${PASSWD}' tester-sue; \
  2309. "
  2310. Finally, here is an example that sets the root password::
  2311. inherit extrausers
  2312. EXTRA_USERS_PARAMS = "\
  2313. usermod -p '${PASSWD}' root; \
  2314. "
  2315. .. note::
  2316. From a security perspective, hardcoding a default password is not
  2317. generally a good idea or even legal in some jurisdictions. It is
  2318. recommended that you do not do this if you are building a production
  2319. image.
  2320. Additionally there is a special ``passwd-expire`` command that will
  2321. cause the password for a user to be expired and thus force changing it
  2322. on first login, for example::
  2323. EXTRA_USERS_PARAMS += " useradd myuser; passwd-expire myuser;"
  2324. .. note::
  2325. At present, ``passwd-expire`` may only work for remote logins when
  2326. using OpenSSH and not dropbear as an SSH server.
  2327. :term:`EXTRANATIVEPATH`
  2328. A list of subdirectories of
  2329. ``${``\ :term:`STAGING_BINDIR_NATIVE`\ ``}``
  2330. added to the beginning of the environment variable ``PATH``. As an
  2331. example, the following prepends
  2332. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:" to
  2333. ``PATH``::
  2334. EXTRANATIVEPATH = "foo bar"
  2335. :term:`FAKEROOT`
  2336. See :term:`bitbake:FAKEROOT` in the BitBake manual.
  2337. :term:`FAKEROOTBASEENV`
  2338. See :term:`bitbake:FAKEROOTBASEENV` in the BitBake manual.
  2339. :term:`FAKEROOTCMD`
  2340. See :term:`bitbake:FAKEROOTCMD` in the BitBake manual.
  2341. :term:`FAKEROOTDIRS`
  2342. See :term:`bitbake:FAKEROOTDIRS` in the BitBake manual.
  2343. :term:`FAKEROOTENV`
  2344. See :term:`bitbake:FAKEROOTENV` in the BitBake manual.
  2345. :term:`FAKEROOTNOENV`
  2346. See :term:`bitbake:FAKEROOTNOENV` in the BitBake manual.
  2347. :term:`FC`
  2348. The minimal command and arguments used to run the Fortran compiler.
  2349. :term:`FEATURE_PACKAGES`
  2350. Defines one or more packages to include in an image when a specific
  2351. item is included in :term:`IMAGE_FEATURES`.
  2352. When setting the value, :term:`FEATURE_PACKAGES` should have the name of
  2353. the feature item as an override. Here is an example::
  2354. FEATURE_PACKAGES_widget = "package1 package2"
  2355. In this example, if "widget" were added to :term:`IMAGE_FEATURES`,
  2356. package1 and package2 would be included in the image.
  2357. .. note::
  2358. Packages installed by features defined through :term:`FEATURE_PACKAGES`
  2359. are often package groups. While similarly named, you should not
  2360. confuse the :term:`FEATURE_PACKAGES` variable with package groups, which
  2361. are discussed elsewhere in the documentation.
  2362. :term:`FEED_DEPLOYDIR_BASE_URI`
  2363. Points to the base URL of the server and location within the
  2364. document-root that provides the metadata and packages required by
  2365. OPKG to support runtime package management of IPK packages. You set
  2366. this variable in your ``local.conf`` file.
  2367. Consider the following example::
  2368. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  2369. This example assumes you are serving
  2370. your packages over HTTP and your databases are located in a directory
  2371. named ``BOARD-dir``, which is underneath your HTTP server's
  2372. document-root. In this case, the OpenEmbedded build system generates
  2373. a set of configuration files for you in your target that work with
  2374. the feed.
  2375. :term:`FETCHCMD`
  2376. See :term:`bitbake:FETCHCMD` in the BitBake manual.
  2377. :term:`FILE`
  2378. See :term:`bitbake:FILE` in the BitBake manual.
  2379. :term:`FILES`
  2380. The list of files and directories that are placed in a package. The
  2381. :term:`PACKAGES` variable lists the packages
  2382. generated by a recipe.
  2383. To use the :term:`FILES` variable, provide a package name override that
  2384. identifies the resulting package. Then, provide a space-separated
  2385. list of files or paths that identify the files you want included as
  2386. part of the resulting package. Here is an example::
  2387. FILES:${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  2388. .. note::
  2389. - When specifying files or paths, you can pattern match using
  2390. Python's
  2391. `glob <https://docs.python.org/3/library/glob.html>`__
  2392. syntax. For details on the syntax, see the documentation by
  2393. following the previous link.
  2394. - When specifying paths as part of the :term:`FILES` variable, it is
  2395. good practice to use appropriate path variables. For example,
  2396. use ``${sysconfdir}`` rather than ``/etc``, or ``${bindir}``
  2397. rather than ``/usr/bin``. You can find a list of these
  2398. variables at the top of the ``meta/conf/bitbake.conf`` file in
  2399. the :term:`Source Directory`. You will also
  2400. find the default values of the various ``FILES:*`` variables in
  2401. this file.
  2402. If some of the files you provide with the :term:`FILES` variable are
  2403. editable and you know they should not be overwritten during the
  2404. package update process by the Package Management System (PMS), you
  2405. can identify these files so that the PMS will not overwrite them. See
  2406. the :term:`CONFFILES` variable for information on
  2407. how to identify these files to the PMS.
  2408. :term:`FILES_SOLIBSDEV`
  2409. Defines the file specification to match
  2410. :term:`SOLIBSDEV`. In other words,
  2411. :term:`FILES_SOLIBSDEV` defines the full path name of the development
  2412. symbolic link (symlink) for shared libraries on the target platform.
  2413. The following statement from the ``bitbake.conf`` shows how it is
  2414. set::
  2415. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  2416. :term:`FILESEXTRAPATHS`
  2417. A colon-separated list to extend the search path the OpenEmbedded build
  2418. system uses when looking for files and patches as it processes recipes
  2419. and append files. The default directories BitBake uses when it processes
  2420. recipes are initially defined by the :term:`FILESPATH` variable. You can
  2421. extend :term:`FILESPATH` variable by using :term:`FILESEXTRAPATHS`.
  2422. Best practices dictate that you accomplish this by using
  2423. :term:`FILESEXTRAPATHS` from within a ``.bbappend`` file and that you
  2424. prepend paths as follows::
  2425. FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
  2426. In the above example, the build system first
  2427. looks for files in a directory that has the same name as the
  2428. corresponding append file.
  2429. .. note::
  2430. When extending :term:`FILESEXTRAPATHS`, be sure to use the immediate
  2431. expansion (``:=``) operator. Immediate expansion makes sure that
  2432. BitBake evaluates :term:`THISDIR` at the time the
  2433. directive is encountered rather than at some later time when
  2434. expansion might result in a directory that does not contain the
  2435. files you need.
  2436. Also, include the trailing separating colon character if you are
  2437. prepending. The trailing colon character is necessary because you
  2438. are directing BitBake to extend the path by prepending directories
  2439. to the search path.
  2440. Here is another common use::
  2441. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  2442. In this example, the build system extends the
  2443. :term:`FILESPATH` variable to include a directory named ``files`` that is
  2444. in the same directory as the corresponding append file.
  2445. This next example specifically adds three paths::
  2446. FILESEXTRAPATHS:prepend := "path_1:path_2:path_3:"
  2447. A final example shows how you can extend the search path and include
  2448. a :term:`MACHINE`-specific override, which is useful
  2449. in a BSP layer::
  2450. FILESEXTRAPATHS:prepend:intel-x86-common := "${THISDIR}/${PN}:"
  2451. The previous statement appears in the
  2452. ``linux-yocto-dev.bbappend`` file, which is found in the
  2453. :ref:`overview-manual/development-environment:yocto project source repositories` in
  2454. ``meta-intel/common/recipes-kernel/linux``. Here, the machine
  2455. override is a special :term:`PACKAGE_ARCH`
  2456. definition for multiple ``meta-intel`` machines.
  2457. .. note::
  2458. For a layer that supports a single BSP, the override could just be
  2459. the value of :term:`MACHINE`.
  2460. By prepending paths in ``.bbappend`` files, you allow multiple append
  2461. files that reside in different layers but are used for the same
  2462. recipe to correctly extend the path.
  2463. :term:`FILESOVERRIDES`
  2464. A colon-separated list to specify a subset of :term:`OVERRIDES` used by
  2465. the OpenEmbedded build system for creating :term:`FILESPATH`. The
  2466. :term:`FILESOVERRIDES` variable uses overrides to automatically extend
  2467. the :term:`FILESPATH` variable. For an example of how that works, see the
  2468. :term:`FILESPATH` variable description. Additionally, you find more
  2469. information on how overrides are handled in the
  2470. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  2471. section of the BitBake User Manual.
  2472. By default, the :term:`FILESOVERRIDES` variable is defined as::
  2473. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  2474. .. note::
  2475. Do not hand-edit the :term:`FILESOVERRIDES` variable. The values match up
  2476. with expected overrides and are used in an expected manner by the
  2477. build system.
  2478. :term:`FILESPATH`
  2479. A colon-separated list specifying the default set of directories the
  2480. OpenEmbedded build system uses when searching for patches and files.
  2481. During the build process, BitBake searches each directory in
  2482. :term:`FILESPATH` in the specified order when looking for files and
  2483. patches specified by each ``file://`` URI in a recipe's
  2484. :term:`SRC_URI` statements.
  2485. The default value for the :term:`FILESPATH` variable is defined in the
  2486. :ref:`ref-classes-base` class found in ``meta/classes-global`` in the
  2487. :term:`Source Directory`::
  2488. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  2489. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  2490. The
  2491. :term:`FILESPATH` variable is automatically extended using the overrides
  2492. from the :term:`FILESOVERRIDES` variable.
  2493. .. note::
  2494. - Do not hand-edit the :term:`FILESPATH` variable. If you want the
  2495. build system to look in directories other than the defaults,
  2496. extend the :term:`FILESPATH` variable by using the
  2497. :term:`FILESEXTRAPATHS` variable.
  2498. - Be aware that the default :term:`FILESPATH` directories do not map
  2499. to directories in custom layers where append files
  2500. (``.bbappend``) are used. If you want the build system to find
  2501. patches or files that reside with your append files, you need
  2502. to extend the :term:`FILESPATH` variable by using the
  2503. :term:`FILESEXTRAPATHS` variable.
  2504. You can take advantage of this searching behavior in useful ways. For
  2505. example, consider a case where there is the following directory structure
  2506. for general and machine-specific configurations::
  2507. files/defconfig
  2508. files/MACHINEA/defconfig
  2509. files/MACHINEB/defconfig
  2510. Also in the example, the :term:`SRC_URI` statement contains
  2511. "file://defconfig". Given this scenario, you can set
  2512. :term:`MACHINE` to "MACHINEA" and cause the build
  2513. system to use files from ``files/MACHINEA``. Set :term:`MACHINE` to
  2514. "MACHINEB" and the build system uses files from ``files/MACHINEB``.
  2515. Finally, for any machine other than "MACHINEA" and "MACHINEB", the
  2516. build system uses files from ``files/defconfig``.
  2517. You can find out more about the patching process in the
  2518. ":ref:`overview-manual/concepts:patching`" section
  2519. in the Yocto Project Overview and Concepts Manual and the
  2520. ":ref:`dev-manual/new-recipe:patching code`" section in
  2521. the Yocto Project Development Tasks Manual. See the
  2522. :ref:`ref-tasks-patch` task as well.
  2523. :term:`FILESYSTEM_PERMS_TABLES`
  2524. Allows you to define your own file permissions settings tables as part
  2525. of your configuration for the packaging process. For example, suppose
  2526. you need a consistent set of custom permissions for a set of groups
  2527. and users across an entire work project. It is best to do this in the
  2528. packages themselves but this is not always possible.
  2529. By default, the OpenEmbedded build system uses the ``fs-perms.txt``,
  2530. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` which are
  2531. located in the ``meta/files`` folder in the :term:`Source Directory`. If
  2532. you create your own permission setting table files, you should place
  2533. those in your layer.
  2534. You can override the value of :term:`FILESYSTEM_PERMS_TABLES` variable
  2535. in your distribution configuration file to point to your custom
  2536. permission table files. You can specify one or more file permissions
  2537. setting tables. The paths that you specify to these files must be defined
  2538. within the :term:`BBPATH` variable.
  2539. In order to disable the volatile log, which is enabled by default, one
  2540. can remove the ``files/fs-perms-volatile-log.txt`` value from
  2541. ``FILESYSTEM_PERMS_TABLES``. Similarly, in order to disable the volatile
  2542. tmp, one can remove the ``files/fs-perms-volatile-tmp.txt`` value.
  2543. For guidance on how to define your own file permissions settings
  2544. tables, examine the existing ``fs-perms.txt``,
  2545. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` files.
  2546. :term:`FIRMWARE_COMPRESSION`
  2547. The :term:`FIRMWARE_COMPRESSION` allows compressing the firmware provided
  2548. by the ``linux-firmware`` recipe. The default value of this variable is an
  2549. empty string (no compression), and the possible values it can take are
  2550. ``xz`` and ``zst``. This can allow significant disk space savings.
  2551. For this to work, the Linux Kernel requires the
  2552. ``CONFIG_FW_LOADER_COMPRESS_XZ`` or ``CONFIG_FW_LOADER_COMPRESS_ZSTD``
  2553. configuration options to be set.
  2554. :term:`FIT_ADDRESS_CELLS`
  2555. Specifies the value of the ``#address-cells`` value for the
  2556. description of the FIT image.
  2557. The default value is set to "1" by the :ref:`ref-classes-kernel-fitimage`
  2558. class, which corresponds to 32 bit addresses.
  2559. For platforms that need to set 64 bit addresses, for example in
  2560. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  2561. set this value to "2", as two 32 bit values (cells) will be needed
  2562. to represent such addresses.
  2563. Here is an example setting "0x400000000" as a load address::
  2564. FIT_ADDRESS_CELLS = "2"
  2565. UBOOT_LOADADDRESS= "0x04 0x00000000"
  2566. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  2567. :term:`FIT_CONF_DEFAULT_DTB`
  2568. Specifies the default device tree binary (dtb) file for a FIT image
  2569. when multiple ones are provided.
  2570. This variable is used in the :ref:`ref-classes-kernel-fitimage` class.
  2571. :term:`FIT_DESC`
  2572. Specifies the description string encoded into a FIT image. The
  2573. default value is set by the :ref:`ref-classes-kernel-fitimage` class as
  2574. follows::
  2575. FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  2576. :term:`FIT_GENERATE_KEYS`
  2577. Decides whether to generate the keys for signing the FIT image if
  2578. they don't already exist. The keys are created in
  2579. :term:`UBOOT_SIGN_KEYDIR`. The default value is set to "0"
  2580. by the :ref:`ref-classes-kernel-fitimage` class.
  2581. :term:`FIT_HASH_ALG`
  2582. Specifies the hash algorithm used in creating the FIT Image.
  2583. This variable is set by default to "sha256" by the
  2584. :ref:`ref-classes-kernel-fitimage` class.
  2585. :term:`FIT_KERNEL_COMP_ALG`
  2586. The compression algorithm to use for the kernel image inside the FIT Image.
  2587. At present, the only supported values are "gzip" (default), "lzo" or "none".
  2588. If you set this variable to anything other than "none" you may also need
  2589. to set :term:`FIT_KERNEL_COMP_ALG_EXTENSION`.
  2590. This variable is used in the :ref:`ref-classes-kernel-uboot` class.
  2591. :term:`FIT_KERNEL_COMP_ALG_EXTENSION`
  2592. File extension corresponding to :term:`FIT_KERNEL_COMP_ALG`. The default
  2593. value is set ".gz" by the :ref:`ref-classes-kernel-uboot` class. If you
  2594. set :term:`FIT_KERNEL_COMP_ALG` to "lzo", you may want to set this
  2595. variable to ".lzo".
  2596. :term:`FIT_KEY_GENRSA_ARGS`
  2597. Arguments to ``openssl genrsa`` for generating a RSA private key for
  2598. signing the FIT image. The default value is set to "-F4" by the
  2599. :ref:`ref-classes-kernel-fitimage` class.
  2600. :term:`FIT_KEY_REQ_ARGS`
  2601. Arguments to ``openssl req`` for generating a certificate for signing
  2602. the FIT image. The default value is "-batch -new" by the
  2603. :ref:`ref-classes-kernel-fitimage` class, "batch" for
  2604. non interactive mode and "new" for generating new keys.
  2605. :term:`FIT_KEY_SIGN_PKCS`
  2606. Format for the public key certificate used for signing the FIT image.
  2607. The default value is set to "x509" by the
  2608. :ref:`ref-classes-kernel-fitimage` class.
  2609. :term:`FIT_SIGN_ALG`
  2610. Specifies the signature algorithm used in creating the FIT Image.
  2611. This variable is set by default to "rsa2048" by the
  2612. :ref:`ref-classes-kernel-fitimage` class.
  2613. :term:`FIT_PAD_ALG`
  2614. Specifies the padding algorithm used in creating the FIT Image.
  2615. The default value is set to "pkcs-1.5" by the
  2616. :ref:`ref-classes-kernel-fitimage` class.
  2617. :term:`FIT_SIGN_INDIVIDUAL`
  2618. If set to "1", the :ref:`ref-classes-kernel-fitimage` class signs each
  2619. image node individually, including the kernel, DTB, RAM disk, and any
  2620. other image types present in the FIT image, in addition to signing the
  2621. configuration nodes.
  2622. This can be useful if you need to verify signatures outside of the
  2623. U-Boot boot process. By default, this variable is set to "0".
  2624. If :term:`UBOOT_SIGN_ENABLE` is set to "1" and
  2625. :term:`FIT_SIGN_INDIVIDUAL` remains at its default value of "0", only the
  2626. configuration nodes are signed. Since configuration nodes include hashes
  2627. of their referenced image nodes, the integrity of the entire FIT image is
  2628. ensured as long as the image nodes are loaded via the configuration nodes
  2629. and the hashes of the image nodes are checked. That's usually the case.
  2630. Enabling :term:`FIT_SIGN_INDIVIDUAL` typically increases complexity for
  2631. little benefit. There might be exceptions such as image nodes that are
  2632. not referenced by any configuration node or loaded directly for whatever
  2633. reason.
  2634. For most use cases, setting this variable to "0" provides sufficient
  2635. security.
  2636. For further details, refer to the official U-Boot documentation:
  2637. `U-Boot fit signature <https://docs.u-boot.org/en/latest/usage/fit/signature.html>`__
  2638. and more specifically at:
  2639. `U-Boot signed configurations <https://docs.u-boot.org/en/latest/usage/fit/signature.html#signed-configurations>`__.
  2640. Signing only the image nodes is intentionally not implemented by
  2641. :term:`OpenEmbedded-Core (OE-Core)`, as it is vulnerable to mix-and-match
  2642. attacks.
  2643. :term:`FIT_SIGN_NUMBITS`
  2644. Size of the private key used in the FIT image, in number of bits.
  2645. The default value for this variable is set to "2048"
  2646. by the :ref:`ref-classes-kernel-fitimage` class.
  2647. :term:`FIT_UBOOT_ENV`
  2648. This variable allows to add a U-Boot script as a text file to the
  2649. FIT image. Such a script can be sourced from the U-Boot shell.
  2650. When inheriting the :ref:`ref-classes-kernel-fitimage` class a
  2651. script file should be included in the :term:`SRC_URI` of the Linux
  2652. kernel recipe.
  2653. Example:
  2654. - Add a script ``boot.cmd`` to the Linux kernel recipe::
  2655. FIT_UBOOT_ENV = "boot.cmd"
  2656. SRC_URI += "file://${FIT_UBOOT_ENV}"
  2657. - Use the script file from the U-Boot shell. The name of the script in
  2658. FIT image is ``bootscr-${FIT_UBOOT_ENV}``. This example loads the FIT
  2659. image from a TFTP server::
  2660. tftp $loadaddr $fit_tftp_path
  2661. source $loadaddr#bootscr-boot.cmd
  2662. More information can be found in the official U-Boot documentation:
  2663. `U-Boot source command <https://docs.u-boot.org/en/latest/usage/cmd/source.html#fit-image.f>`__
  2664. :term:`FONT_EXTRA_RDEPENDS`
  2665. When inheriting the :ref:`ref-classes-fontcache` class,
  2666. this variable specifies the runtime dependencies for font packages.
  2667. By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils".
  2668. :term:`FONT_PACKAGES`
  2669. When inheriting the :ref:`ref-classes-fontcache` class, this variable
  2670. identifies packages containing font files that need to be cached by
  2671. Fontconfig. By default, the :ref:`ref-classes-fontcache` class assumes
  2672. that fonts are in the recipe's main package (i.e.
  2673. ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you
  2674. need are in a package other than that main package.
  2675. :term:`FORCE_RO_REMOVE`
  2676. Forces the removal of the packages listed in ``ROOTFS_RO_UNNEEDED``
  2677. during the generation of the root filesystem.
  2678. Set the variable to "1" to force the removal of these packages.
  2679. :term:`FULL_OPTIMIZATION`
  2680. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  2681. compiling an optimized system. This variable defaults to "-O2 -pipe
  2682. ${DEBUG_FLAGS}".
  2683. :term:`GCCPIE`
  2684. Enables Position Independent Executables (PIE) within the GNU C
  2685. Compiler (GCC). Enabling PIE in the GCC makes Return Oriented
  2686. Programming (ROP) attacks much more difficult to execute.
  2687. By default the ``security_flags.inc`` file enables PIE by setting the
  2688. variable as follows::
  2689. GCCPIE ?= "--enable-default-pie"
  2690. :term:`GCCVERSION`
  2691. Specifies the default version of the GNU C Compiler (GCC) used for
  2692. compilation. By default, :term:`GCCVERSION` is set to "8.x" in the
  2693. ``meta/conf/distro/include/tcmode-default.inc`` include file::
  2694. GCCVERSION ?= "8.%"
  2695. You can override this value by setting it in a
  2696. configuration file such as the ``local.conf``.
  2697. :term:`GDB`
  2698. The minimal command and arguments to run the GNU Debugger.
  2699. :term:`GIR_EXTRA_LIBS_PATH`
  2700. Allows to specify an extra search path for ``.so`` files
  2701. in GLib related recipes using GObject introspection,
  2702. and which do not compile without this setting.
  2703. See the ":ref:`dev-manual/gobject-introspection:enabling gobject introspection support`"
  2704. section for details.
  2705. :term:`GITDIR`
  2706. The directory in which a local copy of a Git repository is stored
  2707. when it is cloned.
  2708. :term:`GITHUB_BASE_URI`
  2709. When inheriting the :ref:`ref-classes-github-releases`
  2710. class, specifies the base URL for fetching releases for the github
  2711. project you wish to fetch sources from. The default value is as follows::
  2712. GITHUB_BASE_URI ?= "https://github.com/${BPN}/${BPN}/releases/"
  2713. :term:`GLIBC_GENERATE_LOCALES`
  2714. Specifies the list of GLIBC locales to generate should you not wish
  2715. to generate all LIBC locals, which can be time consuming.
  2716. .. note::
  2717. If you specifically remove the locale ``en_US.UTF-8``, you must set
  2718. :term:`IMAGE_LINGUAS` appropriately.
  2719. You can set :term:`GLIBC_GENERATE_LOCALES` in your ``local.conf`` file.
  2720. By default, all locales are generated::
  2721. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  2722. :term:`GO_IMPORT`
  2723. When inheriting the :ref:`ref-classes-go` class, this mandatory variable
  2724. sets the import path for the Go package that will be created for the code
  2725. to build. If you have a ``go.mod`` file in the source directory, this
  2726. typically matches the path in the ``module`` line in this file.
  2727. Other Go programs importing this package will use this path.
  2728. Here is an example setting from the
  2729. :yocto_git:`go-helloworld_0.1.bb </poky/tree/meta/recipes-extended/go-examples/go-helloworld_0.1.bb>`
  2730. recipe::
  2731. GO_IMPORT = "golang.org/x/example"
  2732. :term:`GO_INSTALL`
  2733. When inheriting the :ref:`ref-classes-go` class, this optional variable
  2734. specifies which packages in the sources should be compiled and
  2735. installed in the Go build space by the
  2736. `go install <https://go.dev/ref/mod#go-install>`__ command.
  2737. Here is an example setting from the
  2738. :oe_git:`crucible </meta-openembedded/tree/meta-oe/recipes-support/crucible/>`
  2739. recipe::
  2740. GO_INSTALL = "\
  2741. ${GO_IMPORT}/cmd/crucible \
  2742. ${GO_IMPORT}/cmd/habtool \
  2743. "
  2744. By default, :term:`GO_INSTALL` is defined as::
  2745. GO_INSTALL ?= "${GO_IMPORT}/..."
  2746. The ``...`` wildcard means that it will catch all
  2747. packages found in the sources.
  2748. See the :term:`GO_INSTALL_FILTEROUT` variable for
  2749. filtering out unwanted packages from the ones
  2750. found from the :term:`GO_INSTALL` value.
  2751. :term:`GO_INSTALL_FILTEROUT`
  2752. When using the Go "vendor" mechanism to bring in dependencies for a Go
  2753. package, the default :term:`GO_INSTALL` setting, which uses the ``...``
  2754. wildcard, will include the vendored packages in the build, which produces
  2755. incorrect results.
  2756. There are also some Go packages that are structured poorly, so that the
  2757. ``...`` wildcard results in building example or test code that should not
  2758. be included in the build, or could fail to build.
  2759. This optional variable allows for filtering out a subset of the sources.
  2760. It defaults to excluding everything under the ``vendor`` subdirectory
  2761. under package's main directory. This is the normal location for vendored
  2762. packages, but it can be overridden by a recipe to filter out other
  2763. subdirectories if needed.
  2764. :term:`GO_WORKDIR`
  2765. When using Go Modules, the current working directory must be the directory
  2766. containing the ``go.mod`` file, or one of its subdirectories. When the
  2767. ``go`` tool is used, it will automatically look for the ``go.mod`` file
  2768. in the Go working directory or in any parent directory, but not in
  2769. subdirectories.
  2770. When using the :ref:`ref-classes-go-mod` class to use Go modules,
  2771. the optional :term:`GO_WORKDIR` variable, defaulting to the value
  2772. of :term:`GO_IMPORT`, allows to specify a different Go working directory.
  2773. :term:`GROUPADD_PARAM`
  2774. When inheriting the :ref:`ref-classes-useradd` class,
  2775. this variable specifies for a package what parameters should be
  2776. passed to the ``groupadd`` command if you wish to add a group to the
  2777. system when the package is installed.
  2778. Here is an example from the ``dbus`` recipe::
  2779. GROUPADD_PARAM:${PN} = "-r netdev"
  2780. More than one group can be added by separating each set of different
  2781. groups' parameters with a semicolon.
  2782. Here is an example adding multiple groups from the ``useradd-example.bb``
  2783. file in the ``meta-skeleton`` layer::
  2784. GROUPADD_PARAM:${PN} = "-g 880 group1; -g 890 group2"
  2785. For information on the standard Linux shell command
  2786. ``groupadd``, see https://linux.die.net/man/8/groupadd.
  2787. :term:`GROUPMEMS_PARAM`
  2788. When inheriting the :ref:`ref-classes-useradd` class,
  2789. this variable specifies for a package what parameters should be
  2790. passed to the ``groupmems`` command if you wish to modify the members
  2791. of a group when the package is installed.
  2792. For information on the standard Linux shell command ``groupmems``,
  2793. see https://linux.die.net/man/8/groupmems.
  2794. :term:`GRUB_GFXSERIAL`
  2795. Configures the GNU GRand Unified Bootloader (GRUB) to have graphics
  2796. and serial in the boot menu. Set this variable to "1" in your
  2797. ``local.conf`` or distribution configuration file to enable graphics
  2798. and serial in the menu.
  2799. See the :ref:`ref-classes-grub-efi` class for more
  2800. information on how this variable is used.
  2801. :term:`GRUB_MKIMAGE_OPTS`
  2802. This variable controls additional options passed to the ``grub-mkimage``
  2803. command in the GNU GRand Unified Bootloader (GRUB) recipe during the
  2804. ``do_mkimage`` task.
  2805. :term:`GRUB_OPTS`
  2806. Additional options to add to the GNU GRand Unified Bootloader (GRUB)
  2807. configuration. Use a semi-colon character (``;``) to separate
  2808. multiple options.
  2809. The :term:`GRUB_OPTS` variable is optional. See the
  2810. :ref:`ref-classes-grub-efi` class for more information
  2811. on how this variable is used.
  2812. :term:`GRUB_TIMEOUT`
  2813. Specifies the timeout before executing the default ``LABEL`` in the
  2814. GNU GRand Unified Bootloader (GRUB).
  2815. The :term:`GRUB_TIMEOUT` variable is optional. See the
  2816. :ref:`ref-classes-grub-efi` class for more information
  2817. on how this variable is used.
  2818. :term:`GRUB_TITLE`
  2819. Specifies custom titles for GRUB labels defined in :term:`LABELS`. See
  2820. the :ref:`ref-classes-grub-efi` class for more information on how this
  2821. variable is used.
  2822. :term:`GTKIMMODULES_PACKAGES`
  2823. When inheriting the :ref:`ref-classes-gtk-immodules-cache` class,
  2824. this variable specifies the packages that contain the GTK+ input
  2825. method modules being installed when the modules are in packages other
  2826. than the main package.
  2827. :term:`HGDIR`
  2828. See :term:`bitbake:HGDIR` in the BitBake manual.
  2829. :term:`HOMEPAGE`
  2830. Website where more information about the software the recipe is
  2831. building can be found.
  2832. :term:`HOST_ARCH`
  2833. The name of the target architecture, which is normally the same as
  2834. :term:`TARGET_ARCH`. The OpenEmbedded build system
  2835. supports many architectures. Here is an example list of architectures
  2836. supported. This list is by no means complete as the architecture is
  2837. configurable:
  2838. - arm
  2839. - i586
  2840. - x86_64
  2841. - powerpc
  2842. - powerpc64
  2843. - mips
  2844. - mipsel
  2845. :term:`HOST_AS_ARCH`
  2846. Specifies architecture-specific assembler flags.
  2847. Default initialization for :term:`HOST_AS_ARCH` varies depending on what
  2848. is being built:
  2849. - :term:`TARGET_AS_ARCH` when building for the
  2850. target
  2851. - :term:`BUILD_AS_ARCH` when building for the build host (i.e.
  2852. ``-native``)
  2853. - :term:`SDK_AS_ARCH` when building for an SDK (i.e. ``nativesdk-``)
  2854. :term:`HOST_CC_ARCH`
  2855. Specifies architecture-specific compiler flags that are passed to the
  2856. C compiler.
  2857. Default initialization for :term:`HOST_CC_ARCH` varies depending on what
  2858. is being built:
  2859. - :term:`TARGET_CC_ARCH` when building for the
  2860. target
  2861. - :term:`BUILD_CC_ARCH` when building for the build host (i.e.
  2862. ``-native``)
  2863. - :term:`SDK_CC_ARCH` when building for an SDK (i.e. ``nativesdk-``)
  2864. :term:`HOST_LD_ARCH`
  2865. Specifies architecture-specific linker flags.
  2866. Default initialization for :term:`HOST_LD_ARCH` varies depending on what
  2867. is being built:
  2868. - :term:`TARGET_LD_ARCH` when building for the target
  2869. - :term:`BUILD_LD_ARCH` when building for the build host (i.e.
  2870. ``-native``)
  2871. - :term:`SDK_LD_ARCH` when building for an SDK (i.e. ``nativesdk-``)
  2872. :term:`HOST_OS`
  2873. Specifies the name of the target operating system, which is normally
  2874. the same as the :term:`TARGET_OS`. The variable can
  2875. be set to "linux" for ``glibc``-based systems and to "linux-musl" for
  2876. ``musl``. For ARM/EABI targets, there are also "linux-gnueabi" and
  2877. "linux-musleabi" values possible.
  2878. :term:`HOST_PREFIX`
  2879. Specifies the prefix for the cross-compile toolchain. :term:`HOST_PREFIX`
  2880. is normally the same as :term:`TARGET_PREFIX`.
  2881. :term:`HOST_SYS`
  2882. Specifies the system, including the architecture and the operating
  2883. system, for which the build is occurring in the context of the
  2884. current recipe.
  2885. The OpenEmbedded build system automatically sets this variable based
  2886. on :term:`HOST_ARCH`,
  2887. :term:`HOST_VENDOR`, and
  2888. :term:`HOST_OS` variables.
  2889. .. note::
  2890. You do not need to set the variable yourself.
  2891. Consider these two examples:
  2892. - Given a native recipe on a 32-bit x86 machine running Linux, the
  2893. value is "i686-linux".
  2894. - Given a recipe being built for a little-endian MIPS target running
  2895. Linux, the value might be "mipsel-linux".
  2896. :term:`HOST_VENDOR`
  2897. Specifies the name of the vendor. :term:`HOST_VENDOR` is normally the
  2898. same as :term:`TARGET_VENDOR`.
  2899. :term:`HOSTTOOLS`
  2900. A space-separated list (filter) of tools on the build host that
  2901. should be allowed to be called from within build tasks. Using this
  2902. filter helps reduce the possibility of host contamination. If a tool
  2903. specified in the value of :term:`HOSTTOOLS` is not found on the build
  2904. host, the OpenEmbedded build system produces an error and the build
  2905. is not started.
  2906. For additional information, see
  2907. :term:`HOSTTOOLS_NONFATAL`.
  2908. :term:`HOSTTOOLS_NONFATAL`
  2909. A space-separated list (filter) of tools on the build host that
  2910. should be allowed to be called from within build tasks. Using this
  2911. filter helps reduce the possibility of host contamination. Unlike
  2912. :term:`HOSTTOOLS`, the OpenEmbedded build system
  2913. does not produce an error if a tool specified in the value of
  2914. :term:`HOSTTOOLS_NONFATAL` is not found on the build host. Thus, you can
  2915. use :term:`HOSTTOOLS_NONFATAL` to filter optional host tools.
  2916. :term:`ICECC_CLASS_DISABLE`
  2917. Identifies user classes that you do not want the Icecream distributed
  2918. compile support to consider. This variable is used by the
  2919. :ref:`ref-classes-icecc` class. You set this variable in
  2920. your ``local.conf`` file.
  2921. When you list classes using this variable, the recipes inheriting
  2922. those classes will not benefit from distributed compilation across
  2923. remote hosts. Instead they will be built locally.
  2924. :term:`ICECC_DISABLED`
  2925. Disables or enables the ``icecc`` (Icecream) function. For more
  2926. information on this function and best practices for using this
  2927. variable, see the ":ref:`ref-classes-icecc`"
  2928. section.
  2929. Setting this variable to "1" in your ``local.conf`` disables the
  2930. function::
  2931. ICECC_DISABLED ??= "1"
  2932. To enable the function, set the variable as follows::
  2933. ICECC_DISABLED = ""
  2934. :term:`ICECC_ENV_EXEC`
  2935. Points to the ``icecc-create-env`` script that you provide. This
  2936. variable is used by the :ref:`ref-classes-icecc` class. You
  2937. set this variable in your ``local.conf`` file.
  2938. If you do not point to a script that you provide, the OpenEmbedded
  2939. build system uses the default script provided by the
  2940. :oe_git:`icecc-create-env_0.1.bb
  2941. </openembedded-core/tree/meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb>`
  2942. recipe, which is a modified version and not the one that comes with
  2943. ``icecream``.
  2944. :term:`ICECC_PARALLEL_MAKE`
  2945. Extra options passed to the ``make`` command during the
  2946. :ref:`ref-tasks-compile` task that specify parallel
  2947. compilation. This variable usually takes the form of "-j x", where x
  2948. represents the maximum number of parallel threads ``make`` can run.
  2949. .. note::
  2950. The options passed affect builds on all enabled machines on the
  2951. network, which are machines running the ``iceccd`` daemon.
  2952. If your enabled machines support multiple cores, coming up with the
  2953. maximum number of parallel threads that gives you the best
  2954. performance could take some experimentation since machine speed,
  2955. network lag, available memory, and existing machine loads can all
  2956. affect build time. Consequently, unlike the
  2957. :term:`PARALLEL_MAKE` variable, there is no
  2958. rule-of-thumb for setting :term:`ICECC_PARALLEL_MAKE` to achieve optimal
  2959. performance.
  2960. If you do not set :term:`ICECC_PARALLEL_MAKE`, the build system does not
  2961. use it (i.e. the system does not detect and assign the number of
  2962. cores as is done with :term:`PARALLEL_MAKE`).
  2963. :term:`ICECC_PATH`
  2964. The location of the ``icecc`` binary. You can set this variable in
  2965. your ``local.conf`` file. If your ``local.conf`` file does not define
  2966. this variable, the :ref:`ref-classes-icecc` class attempts
  2967. to define it by locating ``icecc`` using ``which``.
  2968. :term:`ICECC_RECIPE_DISABLE`
  2969. Identifies user recipes that you do not want the Icecream distributed
  2970. compile support to consider. This variable is used by the
  2971. :ref:`ref-classes-icecc` class. You set this variable in
  2972. your ``local.conf`` file.
  2973. When you list recipes using this variable, you are excluding them
  2974. from distributed compilation across remote hosts. Instead they will
  2975. be built locally.
  2976. :term:`ICECC_RECIPE_ENABLE`
  2977. Identifies user recipes that use an empty
  2978. :term:`PARALLEL_MAKE` variable that you want to
  2979. force remote distributed compilation on using the Icecream
  2980. distributed compile support. This variable is used by the
  2981. :ref:`ref-classes-icecc` class. You set this variable in
  2982. your ``local.conf`` file.
  2983. :term:`IMAGE_BASENAME`
  2984. The base name of image output files. This variable defaults to the
  2985. recipe name (``${``\ :term:`PN`\ ``}``).
  2986. :term:`IMAGE_BOOT_FILES`
  2987. A space-separated list of files installed into the boot partition
  2988. when preparing an image using the Wic tool with the
  2989. ``bootimg-partition`` source plugin. By default,
  2990. the files are
  2991. installed under the same name as the source files. To change the
  2992. installed name, separate it from the original name with a semi-colon
  2993. (;). Source files need to be located in
  2994. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2995. examples::
  2996. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  2997. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  2998. Alternatively, source files can be picked up using a glob pattern. In
  2999. this case, the destination file must have the same name as the base
  3000. name of the source file path. To install files into a directory
  3001. within the target location, pass its name after a semi-colon (;).
  3002. Here are two examples::
  3003. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  3004. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  3005. The first example
  3006. installs all files from ``${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles``
  3007. into the root of the target partition. The second example installs
  3008. the same files into a ``boot`` directory within the target partition.
  3009. You can find information on how to use the Wic tool in the
  3010. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  3011. section of the Yocto Project Development Tasks Manual. Reference
  3012. material for Wic is located in the
  3013. ":doc:`/ref-manual/kickstart`" chapter.
  3014. :term:`IMAGE_BUILDINFO_FILE`
  3015. When using the :ref:`ref-classes-image-buildinfo` class,
  3016. specifies the file in the image to write the build information into. The
  3017. default value is "``${sysconfdir}/buildinfo``".
  3018. :term:`IMAGE_BUILDINFO_VARS`
  3019. When using the :ref:`ref-classes-image-buildinfo` class,
  3020. specifies the list of variables to include in the `Build Configuration`
  3021. section of the output file (as a space-separated list). Defaults to
  3022. ":term:`DISTRO` :term:`DISTRO_VERSION`".
  3023. :term:`IMAGE_CLASSES`
  3024. A list of classes that all images should inherit. This is typically used
  3025. to enable functionality across all image recipes.
  3026. Classes specified in :term:`IMAGE_CLASSES` must be located in the
  3027. ``classes-recipe/`` or ``classes/`` subdirectories.
  3028. :term:`IMAGE_CMD`
  3029. Specifies the command to create the image file for a specific image
  3030. type, which corresponds to the value set in
  3031. :term:`IMAGE_FSTYPES`, (e.g. ``ext3``,
  3032. ``btrfs``, and so forth). When setting this variable, you should use
  3033. an override for the associated type. Here is an example::
  3034. IMAGE_CMD:jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
  3035. --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 \
  3036. ${EXTRA_IMAGECMD}"
  3037. You typically do not need to set this variable unless you are adding
  3038. support for a new image type. For more examples on how to set this
  3039. variable, see the :ref:`ref-classes-image_types`
  3040. class file, which is ``meta/classes-recipe/image_types.bbclass``.
  3041. :term:`IMAGE_DEVICE_TABLES`
  3042. Specifies one or more files that contain custom device tables that
  3043. are passed to the ``makedevs`` command as part of creating an image.
  3044. These files list basic device nodes that should be created under
  3045. ``/dev`` within the image. If :term:`IMAGE_DEVICE_TABLES` is not set,
  3046. ``files/device_table-minimal.txt`` is used, which is located by
  3047. :term:`BBPATH`. For details on how you should write
  3048. device table files, see ``meta/files/device_table-minimal.txt`` as an
  3049. example.
  3050. :term:`IMAGE_EFI_BOOT_FILES`
  3051. A space-separated list of files installed into the boot partition
  3052. when preparing an image using the Wic tool with the
  3053. ``bootimg-efi`` source plugin. By default,
  3054. the files are
  3055. installed under the same name as the source files. To change the
  3056. installed name, separate it from the original name with a semi-colon
  3057. (;). Source files need to be located in
  3058. :term:`DEPLOY_DIR_IMAGE`. Here are two
  3059. examples::
  3060. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE};bz2"
  3061. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE} microcode.cpio"
  3062. Alternatively, source files can be picked up using a glob pattern. In
  3063. this case, the destination file must have the same name as the base
  3064. name of the source file path. To install files into a directory
  3065. within the target location, pass its name after a semi-colon (;).
  3066. Here are two examples::
  3067. IMAGE_EFI_BOOT_FILES = "boot/loader/*"
  3068. IMAGE_EFI_BOOT_FILES = "boot/loader/*;boot/"
  3069. The first example
  3070. installs all files from ``${DEPLOY_DIR_IMAGE}/boot/loader/``
  3071. into the root of the target partition. The second example installs
  3072. the same files into a ``boot`` directory within the target partition.
  3073. You can find information on how to use the Wic tool in the
  3074. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  3075. section of the Yocto Project Development Tasks Manual. Reference
  3076. material for Wic is located in the
  3077. ":doc:`/ref-manual/kickstart`" chapter.
  3078. :term:`IMAGE_FEATURES`
  3079. The primary list of features to include in an image. Typically, you
  3080. configure this variable in an image recipe. Although you can use this
  3081. variable from your ``local.conf`` file, which is found in the
  3082. :term:`Build Directory`, best practices dictate that you do
  3083. not.
  3084. .. note::
  3085. To enable extra features from outside the image recipe, use the
  3086. :term:`EXTRA_IMAGE_FEATURES` variable.
  3087. For a list of image features that ships with the Yocto Project, see
  3088. the ":ref:`ref-features-image`" section.
  3089. For an example that shows how to customize your image by using this
  3090. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  3091. section in the Yocto Project Development Tasks Manual.
  3092. :term:`IMAGE_FSTYPES`
  3093. Specifies the formats the OpenEmbedded build system uses during the
  3094. build when creating the root filesystem. For example, setting
  3095. :term:`IMAGE_FSTYPES` as follows causes the build system to create root
  3096. filesystems using two formats: ``.ext3`` and ``.tar.bz2``::
  3097. IMAGE_FSTYPES = "ext3 tar.bz2"
  3098. For the complete list of supported image formats from which you can
  3099. choose, see :term:`IMAGE_TYPES`.
  3100. .. note::
  3101. - If an image recipe uses the "inherit image" line and you are
  3102. setting :term:`IMAGE_FSTYPES` inside the recipe, you must set
  3103. :term:`IMAGE_FSTYPES` prior to using the "inherit image" line.
  3104. - Due to the way the OpenEmbedded build system processes this
  3105. variable, you cannot update its contents by using ``:append``
  3106. or ``:prepend``. You must use the ``+=`` operator to add one or
  3107. more options to the :term:`IMAGE_FSTYPES` variable.
  3108. :term:`IMAGE_INSTALL`
  3109. Used by recipes to specify the packages to install into an image
  3110. through the :ref:`ref-classes-image` class. Use the
  3111. :term:`IMAGE_INSTALL` variable with care to avoid ordering issues.
  3112. Image recipes set :term:`IMAGE_INSTALL` to specify the packages to
  3113. install into an image through :ref:`ref-classes-image`. Additionally,
  3114. there are "helper" classes such as the :ref:`ref-classes-core-image`
  3115. class which can take lists used with :term:`IMAGE_FEATURES` and turn
  3116. them into auto-generated entries in :term:`IMAGE_INSTALL` in addition
  3117. to its default contents.
  3118. When you use this variable, it is best to use it as follows::
  3119. IMAGE_INSTALL:append = " package-name"
  3120. Be sure to include the space
  3121. between the quotation character and the start of the package name or
  3122. names.
  3123. .. note::
  3124. - When working with a
  3125. :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  3126. image, do not use the :term:`IMAGE_INSTALL` variable to specify
  3127. packages for installation. Instead, use the
  3128. :term:`PACKAGE_INSTALL` variable, which
  3129. allows the initial RAM filesystem (:term:`Initramfs`) recipe to use a
  3130. fixed set of packages and not be affected by :term:`IMAGE_INSTALL`.
  3131. For information on creating an :term:`Initramfs`, see the
  3132. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`"
  3133. section in the Yocto Project Development Tasks Manual.
  3134. - Using :term:`IMAGE_INSTALL` with the
  3135. :ref:`+= <bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>`
  3136. BitBake operator within the ``/conf/local.conf`` file or from
  3137. within an image recipe is not recommended. Use of this operator in
  3138. these ways can cause ordering issues. Since
  3139. :ref:`ref-classes-core-image` sets :term:`IMAGE_INSTALL` to a
  3140. default value using the
  3141. :ref:`?= <bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>`
  3142. operator, using a ``+=`` operation against :term:`IMAGE_INSTALL`
  3143. results in unexpected behavior when used within
  3144. ``conf/local.conf``. Furthermore, the same operation from within an
  3145. image recipe may or may not succeed depending on the specific
  3146. situation. In both these cases, the behavior is contrary to how
  3147. most users expect the ``+=`` operator to work.
  3148. :term:`IMAGE_LINGUAS`
  3149. Specifies the list of locales to install into the image during the
  3150. root filesystem construction process. The OpenEmbedded build system
  3151. automatically splits locale files, which are used for localization,
  3152. into separate packages. Setting the :term:`IMAGE_LINGUAS` variable
  3153. ensures that any locale packages that correspond to packages already
  3154. selected for installation into the image are also installed. Here is
  3155. an example::
  3156. IMAGE_LINGUAS = "pt-br de-de"
  3157. In this example, the build system ensures any Brazilian Portuguese
  3158. and German locale files that correspond to packages in the image are
  3159. installed (i.e. ``*-locale-pt-br`` and ``*-locale-de-de`` as well as
  3160. ``*-locale-pt`` and ``*-locale-de``, since some software packages
  3161. only provide locale files by language and not by country-specific
  3162. language).
  3163. See the :term:`GLIBC_GENERATE_LOCALES`
  3164. variable for information on generating GLIBC locales.
  3165. :term:`IMAGE_LINK_NAME`
  3166. The name of the output image symlink (which does not include
  3167. the version part as :term:`IMAGE_NAME` does). The default value
  3168. is derived using the :term:`IMAGE_BASENAME` and
  3169. :term:`IMAGE_MACHINE_SUFFIX` variables::
  3170. IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}"
  3171. .. note::
  3172. It is possible to set this to "" to disable symlink creation,
  3173. however, you also need to set :term:`IMAGE_NAME` to still have
  3174. a reasonable value e.g.::
  3175. IMAGE_LINK_NAME = ""
  3176. IMAGE_NAME = "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  3177. :term:`IMAGE_MACHINE_SUFFIX`
  3178. Specifies the by default machine-specific suffix for image file names
  3179. (before the extension). The default value is set as follows::
  3180. IMAGE_MACHINE_SUFFIX ??= "-${MACHINE}"
  3181. The default :term:`DEPLOY_DIR_IMAGE` already has a :term:`MACHINE`
  3182. subdirectory, so you may find it unnecessary to also include this suffix
  3183. in the name of every image file. If you prefer to remove the suffix you
  3184. can set this variable to an empty string::
  3185. IMAGE_MACHINE_SUFFIX = ""
  3186. (Not to be confused with :term:`IMAGE_NAME_SUFFIX`.)
  3187. :term:`IMAGE_MANIFEST`
  3188. The manifest file for the image. This file lists all the installed
  3189. packages that make up the image. The file contains package
  3190. information on a line-per-package basis as follows::
  3191. packagename packagearch version
  3192. The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class defines the manifest
  3193. file as follows::
  3194. IMAGE_MANIFEST ="${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
  3195. The location is
  3196. derived using the :term:`IMGDEPLOYDIR`
  3197. and :term:`IMAGE_NAME` variables. You can find
  3198. information on how the image is created in the ":ref:`overview-manual/concepts:image generation`"
  3199. section in the Yocto Project Overview and Concepts Manual.
  3200. :term:`IMAGE_NAME`
  3201. The name of the output image files minus the extension. By default
  3202. this variable is set using the :term:`IMAGE_LINK_NAME`, and
  3203. :term:`IMAGE_VERSION_SUFFIX` variables::
  3204. IMAGE_NAME ?= "${IMAGE_LINK_NAME}${IMAGE_VERSION_SUFFIX}"
  3205. :term:`IMAGE_NAME_SUFFIX`
  3206. Suffix used for the image output filename --- defaults to ``".rootfs"``
  3207. to distinguish the image file from other files created during image
  3208. building; however if this suffix is redundant or not desired you can
  3209. clear the value of this variable (set the value to ""). For example,
  3210. this is typically cleared in :term:`Initramfs` image recipes.
  3211. :term:`IMAGE_OUTPUT_MANIFEST`
  3212. When inheriting the :ref:`ref-classes-image` class directly or through the
  3213. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST`
  3214. points to a manifest ``json`` file that lists what images were created by
  3215. various image creation tasks (as defined by the :term:`IMAGE_FSTYPES`
  3216. variable). It is set in the :ref:`ref-classes-image` class as follows::
  3217. IMAGE_OUTPUT_MANIFEST = "${IMAGE_OUTPUT_MANIFEST_DIR}/manifest.json"
  3218. :term:`IMAGE_OUTPUT_MANIFEST_DIR`
  3219. When inheriting the :ref:`ref-classes-image` class directly or through the
  3220. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST_DIR` points to
  3221. a directory that stores a manifest ``json`` file that lists what
  3222. images were created by various image creation tasks (as defined by the
  3223. :term:`IMAGE_FSTYPES` variable). It is set in the :ref:`ref-classes-image`
  3224. class as follows::
  3225. IMAGE_OUTPUT_MANIFEST_DIR = "${WORKDIR}/deploy-image-output-manifest"
  3226. :term:`IMAGE_OVERHEAD_FACTOR`
  3227. Defines a multiplier that the build system applies to the initial
  3228. image size for cases when the multiplier times the returned disk
  3229. usage value for the image is greater than the sum of
  3230. :term:`IMAGE_ROOTFS_SIZE` and :term:`IMAGE_ROOTFS_EXTRA_SPACE`. The result of
  3231. the multiplier applied to the initial image size creates free disk
  3232. space in the image as overhead. By default, the build process uses a
  3233. multiplier of 1.3 for this variable. This default value results in
  3234. 30% free disk space added to the image when this method is used to
  3235. determine the final generated image size. You should be aware that
  3236. post install scripts and the package management system uses disk
  3237. space inside this overhead area. Consequently, the multiplier does
  3238. not produce an image with all the theoretical free disk space. See
  3239. :term:`IMAGE_ROOTFS_SIZE` for information on how the build system
  3240. determines the overall image size.
  3241. The default 30% free disk space typically gives the image enough room
  3242. to boot and allows for basic post installs while still leaving a
  3243. small amount of free disk space. If 30% free space is inadequate, you
  3244. can increase the default value. For example, the following setting
  3245. gives you 50% free space added to the image::
  3246. IMAGE_OVERHEAD_FACTOR = "1.5"
  3247. Alternatively, you can ensure a specific amount of free disk space is
  3248. added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3249. variable.
  3250. :term:`IMAGE_PKGTYPE`
  3251. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the
  3252. OpenEmbedded build system. The variable is defined appropriately by
  3253. the :ref:`ref-classes-package_deb`, :ref:`ref-classes-package_rpm`,
  3254. or :ref:`ref-classes-package_ipk` class.
  3255. The :ref:`ref-classes-populate-sdk-*` and :ref:`ref-classes-image`
  3256. classes use the :term:`IMAGE_PKGTYPE` for packaging up images and SDKs.
  3257. You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the
  3258. variable is set indirectly through the appropriate
  3259. :ref:`package_* <ref-classes-package>` class using the
  3260. :term:`PACKAGE_CLASSES` variable. The
  3261. OpenEmbedded build system uses the first package type (e.g. DEB, RPM,
  3262. or IPK) that appears with the variable
  3263. .. note::
  3264. Files using the ``.tar`` format are never used as a substitute
  3265. packaging format for DEB, RPM, and IPK formatted files for your image
  3266. or SDK.
  3267. :term:`IMAGE_POSTPROCESS_COMMAND`
  3268. Specifies a list of functions to call once the OpenEmbedded build
  3269. system creates the final image output files. You can specify
  3270. functions separated by spaces::
  3271. IMAGE_POSTPROCESS_COMMAND += "function"
  3272. If you need to pass the root filesystem path to a command within the
  3273. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3274. directory that becomes the root filesystem image. See the
  3275. :term:`IMAGE_ROOTFS` variable for more
  3276. information.
  3277. :term:`IMAGE_PREPROCESS_COMMAND`
  3278. Specifies a list of functions to call before the OpenEmbedded build
  3279. system creates the final image output files. You can specify
  3280. functions separated by spaces::
  3281. IMAGE_PREPROCESS_COMMAND += "function"
  3282. If you need to pass the root filesystem path to a command within the
  3283. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3284. directory that becomes the root filesystem image. See the
  3285. :term:`IMAGE_ROOTFS` variable for more
  3286. information.
  3287. :term:`IMAGE_ROOTFS`
  3288. The location of the root filesystem while it is under construction
  3289. (i.e. during the :ref:`ref-tasks-rootfs` task). This
  3290. variable is not configurable. Do not change it.
  3291. :term:`IMAGE_ROOTFS_ALIGNMENT`
  3292. Specifies the alignment for the output image file in Kbytes. If the
  3293. size of the image is not a multiple of this value, then the size is
  3294. rounded up to the nearest multiple of the value. The default value is
  3295. "1". See :term:`IMAGE_ROOTFS_SIZE` for
  3296. additional information.
  3297. :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3298. Defines additional free disk space created in the image in Kbytes. By
  3299. default, this variable is set to "0". This free disk space is added
  3300. to the image after the build system determines the image size as
  3301. described in :term:`IMAGE_ROOTFS_SIZE`.
  3302. This variable is particularly useful when you want to ensure that a
  3303. specific amount of free disk space is available on a device after an
  3304. image is installed and running. For example, to be sure 5 Gbytes of
  3305. free disk space is available, set the variable as follows::
  3306. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  3307. For example, the Yocto Project Build Appliance specifically requests
  3308. 40 Gbytes of extra space with the line::
  3309. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  3310. :term:`IMAGE_ROOTFS_MAXSIZE`
  3311. Defines the maximum allowed size of the generated image in kilobytes.
  3312. The build will fail if the generated image size exceeds this value.
  3313. The generated image size undergoes several calculation steps before being
  3314. compared to :term:`IMAGE_ROOTFS_MAXSIZE`.
  3315. In the first step, the size of the directory pointed to by :term:`IMAGE_ROOTFS`
  3316. is calculated.
  3317. In the second step, the result from the first step is multiplied
  3318. by :term:`IMAGE_OVERHEAD_FACTOR`.
  3319. In the third step, the result from the second step is compared with
  3320. :term:`IMAGE_ROOTFS_SIZE`. The larger value of these is added to
  3321. :term:`IMAGE_ROOTFS_EXTRA_SPACE`.
  3322. In the fourth step, the result from the third step is checked for
  3323. a decimal part. If it has one, it is rounded up to the next integer.
  3324. If it does not, it is simply converted into an integer.
  3325. In the fifth step, the :term:`IMAGE_ROOTFS_ALIGNMENT` is added to the result
  3326. from the fourth step and "1" is subtracted.
  3327. In the sixth step, the remainder of the division between the result
  3328. from the fifth step and :term:`IMAGE_ROOTFS_ALIGNMENT` is subtracted from the
  3329. result of the fifth step. In this way, the result from the fourth step is
  3330. rounded up to the nearest multiple of :term:`IMAGE_ROOTFS_ALIGNMENT`.
  3331. Thus, if the :term:`IMAGE_ROOTFS_MAXSIZE` is set, is compared with the result
  3332. of the above calculations and is independent of the final image type.
  3333. No default value is set for :term:`IMAGE_ROOTFS_MAXSIZE`.
  3334. It's a good idea to set this variable for images that need to fit on a limited
  3335. space (e.g. SD card, a fixed-size partition, ...).
  3336. :term:`IMAGE_ROOTFS_SIZE`
  3337. Defines the size in Kbytes for the generated image. The OpenEmbedded
  3338. build system determines the final size for the generated image using
  3339. an algorithm that takes into account the initial disk space used for
  3340. the generated image, a requested size for the image, and requested
  3341. additional free disk space to be added to the image. Programatically,
  3342. the build system determines the final size of the generated image as
  3343. follows::
  3344. if (image-du * overhead) < rootfs-size:
  3345. internal-rootfs-size = rootfs-size + xspace
  3346. else:
  3347. internal-rootfs-size = (image-du * overhead) + xspace
  3348. where:
  3349. image-du = Returned value of the du command on the image.
  3350. overhead = IMAGE_OVERHEAD_FACTOR
  3351. rootfs-size = IMAGE_ROOTFS_SIZE
  3352. internal-rootfs-size = Initial root filesystem size before any modifications.
  3353. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  3354. See the :term:`IMAGE_OVERHEAD_FACTOR`
  3355. and :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3356. variables for related information.
  3357. :term:`IMAGE_TYPEDEP`
  3358. Specifies a dependency from one image type on another. Here is an
  3359. example from the :ref:`ref-classes-image-live` class::
  3360. IMAGE_TYPEDEP:live = "ext3"
  3361. In the previous example, the variable ensures that when "live" is
  3362. listed with the :term:`IMAGE_FSTYPES` variable,
  3363. the OpenEmbedded build system produces an ``ext3`` image first since
  3364. one of the components of the live image is an ``ext3`` formatted
  3365. partition containing the root filesystem.
  3366. :term:`IMAGE_TYPES`
  3367. Specifies the complete list of supported image types by default:
  3368. - btrfs
  3369. - container
  3370. - cpio
  3371. - cpio.gz
  3372. - cpio.lz4
  3373. - cpio.lzma
  3374. - cpio.xz
  3375. - cramfs
  3376. - erofs
  3377. - erofs-lz4
  3378. - erofs-lz4hc
  3379. - ext2
  3380. - ext2.bz2
  3381. - ext2.gz
  3382. - ext2.lzma
  3383. - ext3
  3384. - ext3.gz
  3385. - ext4
  3386. - ext4.gz
  3387. - f2fs
  3388. - hddimg
  3389. - iso
  3390. - jffs2
  3391. - jffs2.sum
  3392. - multiubi
  3393. - squashfs
  3394. - squashfs-lz4
  3395. - squashfs-lzo
  3396. - squashfs-xz
  3397. - tar
  3398. - tar.bz2
  3399. - tar.gz
  3400. - tar.lz4
  3401. - tar.xz
  3402. - tar.zst
  3403. - ubi
  3404. - ubifs
  3405. - wic
  3406. - wic.bz2
  3407. - wic.gz
  3408. - wic.lzma
  3409. - wic.zst
  3410. For more information about these types of images, see
  3411. ``meta/classes-recipe/image_types*.bbclass`` in the :term:`Source Directory`.
  3412. :term:`IMAGE_VERSION_SUFFIX`
  3413. Version suffix that is part of the default :term:`IMAGE_NAME` and
  3414. :term:`KERNEL_ARTIFACT_NAME` values.
  3415. Defaults to ``"-${DATETIME}"``, however you could set this to a
  3416. version string that comes from your external build environment if
  3417. desired, and this suffix would then be used consistently across
  3418. the build artifacts.
  3419. :term:`IMGDEPLOYDIR`
  3420. When inheriting the :ref:`ref-classes-image` class directly or
  3421. through the :ref:`ref-classes-core-image` class, the
  3422. :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files
  3423. that is set in the ``image`` class as follows::
  3424. IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete"
  3425. Recipes inheriting the :ref:`ref-classes-image` class should copy
  3426. files to be deployed into :term:`IMGDEPLOYDIR`, and the class will take
  3427. care of copying them into :term:`DEPLOY_DIR_IMAGE` afterwards.
  3428. :term:`IMGMANIFESTDIR`
  3429. When inheriting the :ref:`ref-classes-image` class directly or through the
  3430. :ref:`ref-classes-core-image` class, the :term:`IMGMANIFESTDIR` setting
  3431. points to a temporary area that stores manifest ``json`` files, that list
  3432. what images were created by various images creation tasks (as defined by
  3433. the :term:`IMAGE_FSTYPES` variable). It is set in the
  3434. :ref:`ref-classes-image` class as follows::
  3435. IMGMANIFESTDIR = "${WORKDIR}/image-task-manifest"
  3436. :term:`INCOMPATIBLE_LICENSE`
  3437. Specifies a space-separated list of license names (as they would
  3438. appear in :term:`LICENSE`) that should be excluded
  3439. from the build (if set globally), or from an image (if set locally
  3440. in an image recipe).
  3441. When the variable is set globally, recipes that provide no alternatives to listed
  3442. incompatible licenses are not built. Packages that are individually
  3443. licensed with the specified incompatible licenses will be deleted.
  3444. Most of the time this does not allow a feasible build (because it becomes impossible
  3445. to satisfy build time dependencies), so the recommended way to
  3446. implement license restrictions is to set the variable in specific
  3447. image recipes where the restrictions must apply. That way there
  3448. are no build time restrictions, but the license check is still
  3449. performed when the image's filesystem is assembled from packages.
  3450. There is some support for wildcards in this variable's value,
  3451. however it is restricted to specific licenses. Currently only
  3452. these wildcards are allowed and expand as follows:
  3453. - ``AGPL-3.0*"``: ``AGPL-3.0-only``, ``AGPL-3.0-or-later``
  3454. - ``GPL-3.0*``: ``GPL-3.0-only``, ``GPL-3.0-or-later``
  3455. - ``LGPL-3.0*``: ``LGPL-3.0-only``, ``LGPL-3.0-or-later``
  3456. .. note::
  3457. This functionality is only regularly tested using the following
  3458. setting::
  3459. INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0* AGPL-3.0*"
  3460. Although you can use other settings, you might be required to
  3461. remove dependencies on (or provide alternatives to) components that
  3462. are required to produce a functional system image.
  3463. :term:`INCOMPATIBLE_LICENSE_EXCEPTIONS`
  3464. Specifies a space-separated list of package and license pairs that
  3465. are allowed to be used even if the license is specified in
  3466. :term:`INCOMPATIBLE_LICENSE`. The package and license pairs are
  3467. separated using a colon. Example::
  3468. INCOMPATIBLE_LICENSE_EXCEPTIONS = "gdbserver:GPL-3.0-only gdbserver:LGPL-3.0-only"
  3469. :term:`INHERIT`
  3470. Causes the named class or classes to be inherited globally. Anonymous
  3471. functions in the class or classes are not executed for the base
  3472. configuration and in each individual recipe. The OpenEmbedded build
  3473. system ignores changes to :term:`INHERIT` in individual recipes.
  3474. Classes inherited using :term:`INHERIT` must be located in the
  3475. ``classes-global/`` or ``classes/`` subdirectories.
  3476. For more information on :term:`INHERIT`, see the
  3477. :ref:`bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`"
  3478. section in the BitBake User Manual.
  3479. :term:`INHERIT_DISTRO`
  3480. Lists classes that will be inherited at the distribution level. It is
  3481. unlikely that you want to edit this variable.
  3482. Classes specified in :term:`INHERIT_DISTRO` must be located in the
  3483. ``classes-global/`` or ``classes/`` subdirectories.
  3484. The default value of the variable is set as follows in the
  3485. ``meta/conf/distro/defaultsetup.conf`` file::
  3486. INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool create-spdx"
  3487. :term:`INHIBIT_AUTOTOOLS_DEPS`
  3488. Prevents the :ref:`ref-classes-autotools` class from automatically adding
  3489. its default build-time dependencies.
  3490. When a recipe inherits the :ref:`ref-classes-autotools` class, several
  3491. native cross tools such as ``autoconf-native``, ``automake-native``,
  3492. ``libtool-native``, ``libtool-cross`` are added to :term:`DEPENDS` to
  3493. support the ``autotools`` build process.
  3494. To prevent the build system from adding these dependencies automatically,
  3495. set the :term:`INHIBIT_AUTOTOOLS_DEPS` variable as follows::
  3496. INHIBIT_AUTOTOOLS_DEPS = "1"
  3497. By default, the value of :term:`INHIBIT_AUTOTOOLS_DEPS` is empty. Setting
  3498. it to "0" does not disable inhibition. Only the empty string will disable
  3499. inhibition.
  3500. :term:`INHIBIT_DEFAULT_DEPS`
  3501. Prevents the default dependencies, namely the C compiler and standard
  3502. C library (libc), from being added to :term:`DEPENDS`.
  3503. This variable is usually used within recipes that do not require any
  3504. compilation using the C compiler.
  3505. Set the variable to "1" to prevent the default dependencies from
  3506. being added.
  3507. :term:`INHIBIT_DEFAULT_RUST_DEPS`
  3508. Prevents the :ref:`ref-classes-rust` class from automatically adding
  3509. its default build-time dependencies.
  3510. When a recipe inherits the :ref:`ref-classes-rust` class, several
  3511. tools such as ``rust-native`` and ``${RUSTLIB_DEP}`` (only added when cross-compiling) are added
  3512. to :term:`DEPENDS` to support the ``rust`` build process.
  3513. To prevent the build system from adding these dependencies automatically,
  3514. set the :term:`INHIBIT_DEFAULT_RUST_DEPS` variable as follows::
  3515. INHIBIT_DEFAULT_RUST_DEPS = "1"
  3516. By default, the value of :term:`INHIBIT_DEFAULT_RUST_DEPS` is empty. Setting
  3517. it to "0" does not disable inhibition. Only the empty string will disable
  3518. inhibition.
  3519. :term:`INHIBIT_PACKAGE_DEBUG_SPLIT`
  3520. Prevents the OpenEmbedded build system from splitting out debug
  3521. information during packaging. By default, the build system splits out
  3522. debugging information during the
  3523. :ref:`ref-tasks-package` task. For more information on
  3524. how debug information is split out, see the
  3525. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  3526. variable.
  3527. To prevent the build system from splitting out debug information
  3528. during packaging, set the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable as
  3529. follows::
  3530. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  3531. :term:`INHIBIT_PACKAGE_STRIP`
  3532. If set to "1", causes the build to not strip binaries in resulting
  3533. packages and prevents the ``-dbg`` package from containing the source
  3534. files.
  3535. By default, the OpenEmbedded build system strips binaries and puts
  3536. the debugging symbols into ``${``\ :term:`PN`\ ``}-dbg``.
  3537. Consequently, you should not set :term:`INHIBIT_PACKAGE_STRIP` when you
  3538. plan to debug in general.
  3539. :term:`INHIBIT_SYSROOT_STRIP`
  3540. If set to "1", causes the build to not strip binaries in the
  3541. resulting sysroot.
  3542. By default, the OpenEmbedded build system strips binaries in the
  3543. resulting sysroot. When you specifically set the
  3544. :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit
  3545. this stripping.
  3546. If you want to use this variable, include the :ref:`ref-classes-staging`
  3547. class. This class uses a ``sys_strip()`` function to test for the variable
  3548. and acts accordingly.
  3549. .. note::
  3550. Use of the :term:`INHIBIT_SYSROOT_STRIP` variable occurs in rare and
  3551. special circumstances. For example, suppose you are building
  3552. bare-metal firmware by using an external GCC toolchain. Furthermore,
  3553. even if the toolchain's binaries are strippable, there are other files
  3554. needed for the build that are not strippable.
  3555. :term:`INHIBIT_UPDATERCD_BBCLASS`
  3556. Prevents the :ref:`ref-classes-update-rc.d` class from automatically
  3557. installing and registering SysV init scripts for packages.
  3558. When a recipe inherits the :ref:`ref-classes-update-rc.d` class, init
  3559. scripts are typically installed and registered for the packages listed in
  3560. :term:`INITSCRIPT_PACKAGES`. This ensures that the relevant
  3561. services are started and stopped at the appropriate runlevels using the
  3562. traditional SysV init system.
  3563. To prevent the build system from adding these scripts and configurations
  3564. automatically, set the :term:`INHIBIT_UPDATERCD_BBCLASS` variable as follows::
  3565. INHIBIT_UPDATERCD_BBCLASS = "1"
  3566. By default, the value of :term:`INHIBIT_UPDATERCD_BBCLASS` is empty. Setting
  3567. it to "0" does not disable inhibition. Only the empty string will disable
  3568. inhibition.
  3569. :term:`INIT_MANAGER`
  3570. Specifies the system init manager to use. Available options are:
  3571. - ``sysvinit``
  3572. - ``systemd``
  3573. - ``mdev-busybox``
  3574. With ``sysvinit``, the init manager is set to
  3575. :wikipedia:`SysVinit <Init#SysV-style>`, the traditional UNIX init
  3576. system. This is the default choice in the Poky distribution, together with
  3577. the Udev device manager (see the ":ref:`device-manager`" section).
  3578. With ``systemd``, the init manager becomes :wikipedia:`systemd <Systemd>`,
  3579. which comes with the :wikipedia:`udev <Udev>` device manager.
  3580. With ``mdev-busybox``, the init manager becomes the much simpler BusyBox
  3581. init, together with the BusyBox mdev device manager. This is the simplest
  3582. and lightest solution, and probably the best choice for low-end systems
  3583. with a rather slow CPU and a limited amount of RAM.
  3584. More concretely, this is used to include
  3585. ``conf/distro/include/init-manager-${INIT_MANAGER}.inc`` into the global
  3586. configuration. You can have a look at the
  3587. :yocto_git:`meta/conf/distro/include/init-manager-*.inc </poky/tree/meta/conf/distro/include>`
  3588. files for more information, and also the ":ref:`init-manager`"
  3589. section in the Yocto Project Development Tasks Manual.
  3590. :term:`INITRAMFS_DEPLOY_DIR_IMAGE`
  3591. Indicates the deploy directory used by :ref:`ref-tasks-bundle_initramfs`
  3592. where the :term:`INITRAMFS_IMAGE` will be fetched from. This variable is
  3593. set by default to ``${DEPLOY_DIR_IMAGE}`` in the
  3594. :ref:`ref-classes-kernel` class and it's only meant to be changed when
  3595. building an :term:`Initramfs` image from a separate multiconfig via
  3596. :term:`INITRAMFS_MULTICONFIG`.
  3597. :term:`INITRAMFS_FSTYPES`
  3598. Defines the format for the output image of an initial RAM filesystem
  3599. (:term:`Initramfs`), which is used during boot. Supported formats are the
  3600. same as those supported by the
  3601. :term:`IMAGE_FSTYPES` variable.
  3602. The default value of this variable, which is set in the
  3603. ``meta/conf/bitbake.conf`` configuration file in the
  3604. :term:`Source Directory`, is "cpio.gz". The Linux kernel's
  3605. :term:`Initramfs` mechanism, as opposed to the initial RAM filesystem
  3606. :wikipedia:`initrd <Initrd>` mechanism, expects
  3607. an optionally compressed cpio archive.
  3608. :term:`INITRAMFS_IMAGE`
  3609. Specifies the :term:`PROVIDES` name of an image
  3610. recipe that is used to build an initial RAM filesystem (:term:`Initramfs`)
  3611. image. In other words, the :term:`INITRAMFS_IMAGE` variable causes an
  3612. additional recipe to be built as a dependency to whatever root
  3613. filesystem recipe you might be using (e.g. ``core-image-sato``). The
  3614. :term:`Initramfs` image recipe you provide should set
  3615. :term:`IMAGE_FSTYPES` to
  3616. :term:`INITRAMFS_FSTYPES`.
  3617. An :term:`Initramfs` image provides a temporary root filesystem used for
  3618. early system initialization (e.g. loading of modules needed to locate
  3619. and mount the "real" root filesystem).
  3620. .. note::
  3621. See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb``
  3622. recipe in the :term:`Source Directory`
  3623. for an example :term:`Initramfs` recipe. To select this sample recipe as
  3624. the one built to provide the :term:`Initramfs` image, set :term:`INITRAMFS_IMAGE`
  3625. to "core-image-minimal-initramfs".
  3626. You can also find more information by referencing the
  3627. ``meta-poky/conf/templates/default/local.conf.sample.extended``
  3628. configuration file in the Source Directory, the :ref:`ref-classes-image`
  3629. class, and the :ref:`ref-classes-kernel` class to see how to use the
  3630. :term:`INITRAMFS_IMAGE` variable.
  3631. If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no
  3632. :term:`Initramfs` image is built.
  3633. For more information, you can also see the
  3634. :term:`INITRAMFS_IMAGE_BUNDLE`
  3635. variable, which allows the generated image to be bundled inside the
  3636. kernel image. Additionally, for information on creating an :term:`Initramfs`
  3637. image, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3638. in the Yocto Project Development Tasks Manual.
  3639. :term:`INITRAMFS_IMAGE_BUNDLE`
  3640. Controls whether or not the image recipe specified by
  3641. :term:`INITRAMFS_IMAGE` is run through an
  3642. extra pass
  3643. (:ref:`ref-tasks-bundle_initramfs`) during
  3644. kernel compilation in order to build a single binary that contains
  3645. both the kernel image and the initial RAM filesystem (:term:`Initramfs`)
  3646. image. This makes use of the
  3647. :term:`CONFIG_INITRAMFS_SOURCE` kernel
  3648. feature.
  3649. .. note::
  3650. Bundling the :term:`Initramfs` with the kernel conflates the code in the
  3651. :term:`Initramfs` with the GPLv2 licensed Linux kernel binary. Thus only GPLv2
  3652. compatible software may be part of a bundled :term:`Initramfs`.
  3653. .. note::
  3654. Using an extra compilation pass to bundle the :term:`Initramfs` avoids a
  3655. circular dependency between the kernel recipe and the :term:`Initramfs`
  3656. recipe should the :term:`Initramfs` include kernel modules. Should that be
  3657. the case, the :term:`Initramfs` recipe depends on the kernel for the
  3658. kernel modules, and the kernel depends on the :term:`Initramfs` recipe
  3659. since the :term:`Initramfs` is bundled inside the kernel image.
  3660. The combined binary is deposited into the ``tmp/deploy`` directory,
  3661. which is part of the :term:`Build Directory`.
  3662. Setting the variable to "1" in a configuration file causes the
  3663. OpenEmbedded build system to generate a kernel image with the
  3664. :term:`Initramfs` specified in :term:`INITRAMFS_IMAGE` bundled within::
  3665. INITRAMFS_IMAGE_BUNDLE = "1"
  3666. By default, the :ref:`ref-classes-kernel` class sets this variable to a
  3667. null string as follows::
  3668. INITRAMFS_IMAGE_BUNDLE ?= ""
  3669. .. note::
  3670. You must set the :term:`INITRAMFS_IMAGE_BUNDLE` variable in a
  3671. configuration file. You cannot set the variable in a recipe file.
  3672. See the
  3673. :yocto_git:`local.conf.sample.extended </poky/tree/meta-poky/conf/templates/default/local.conf.sample.extended>`
  3674. file for additional information. Also, for information on creating an
  3675. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3676. in the Yocto Project Development Tasks Manual.
  3677. :term:`INITRAMFS_IMAGE_NAME`
  3678. This value needs to stay in sync with :term:`IMAGE_LINK_NAME`, but with
  3679. :term:`INITRAMFS_IMAGE` instead of :term:`IMAGE_BASENAME`. The default value
  3680. is set as follows:
  3681. INITRAMFS_IMAGE_NAME ?= "${@['${INITRAMFS_IMAGE}${IMAGE_MACHINE_SUFFIX}', ''][d.getVar('INITRAMFS_IMAGE') == '']}"
  3682. That is, if :term:`INITRAMFS_IMAGE` is set, the value of
  3683. :term:`INITRAMFS_IMAGE_NAME` will be set based upon
  3684. :term:`INITRAMFS_IMAGE` and :term:`IMAGE_MACHINE_SUFFIX`.
  3685. :term:`INITRAMFS_LINK_NAME`
  3686. The link name of the initial RAM filesystem image. This variable is
  3687. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3688. follows::
  3689. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  3690. The value of the
  3691. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3692. file, has the following value::
  3693. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3694. See the :term:`MACHINE` variable for additional
  3695. information.
  3696. :term:`INITRAMFS_MAXSIZE`
  3697. Defines the maximum allowed size of the :term:`Initramfs` image in Kbytes.
  3698. The build will fail if the :term:`Initramfs` image size exceeds this value.
  3699. The :term:`Initramfs` image size undergoes several calculation steps before
  3700. being compared to :term:`INITRAMFS_MAXSIZE`.
  3701. These steps are the same as those used for :term:`IMAGE_ROOTFS_MAXSIZE`
  3702. and are described in detail in that entry.
  3703. Thus, :term:`INITRAMFS_MAXSIZE` is compared with the result of the calculations
  3704. and is independent of the final image type (e.g. compressed).
  3705. A default value for :term:`INITRAMFS_MAXSIZE` is set in
  3706. :oe_git:`meta/conf/bitbake.conf </openembedded-core/tree/meta/conf/bitbake.conf>`.
  3707. :term:`INITRAMFS_MULTICONFIG`
  3708. Defines the multiconfig to create a multiconfig dependency to be used by
  3709. the :ref:`ref-classes-kernel` class.
  3710. This allows the kernel to bundle an :term:`INITRAMFS_IMAGE` coming from
  3711. a separate multiconfig, this is meant to be used in addition to :term:`INITRAMFS_DEPLOY_DIR_IMAGE`.
  3712. For more information on how to bundle an :term:`Initramfs` image from a separate
  3713. multiconfig see the ":ref:`dev-manual/building:Bundling an Initramfs Image From a Separate Multiconfig`"
  3714. section in the Yocto Project Development Tasks Manual.
  3715. :term:`INITRAMFS_NAME`
  3716. The base name of the initial RAM filesystem image. This variable is
  3717. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3718. follows::
  3719. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  3720. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3721. :term:`INITRD`
  3722. Indicates list of filesystem images to concatenate and use as an
  3723. initial RAM disk (``initrd``).
  3724. The :term:`INITRD` variable is an optional variable used with the
  3725. :ref:`ref-classes-image-live` class.
  3726. :term:`INITRD_IMAGE`
  3727. When building a "live" bootable image (i.e. when
  3728. :term:`IMAGE_FSTYPES` contains "live"),
  3729. :term:`INITRD_IMAGE` specifies the image recipe that should be built to
  3730. provide the initial RAM disk image. The default value is
  3731. "core-image-minimal-initramfs".
  3732. See the :ref:`ref-classes-image-live` class for more information.
  3733. :term:`INITSCRIPT_NAME`
  3734. The filename of the initialization script as installed to
  3735. ``${sysconfdir}/init.d``.
  3736. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3737. The variable is mandatory.
  3738. :term:`INITSCRIPT_PACKAGES`
  3739. A list of the packages that contain initscripts. If multiple packages
  3740. are specified, you need to append the package name to the other
  3741. ``INITSCRIPT_*`` as an override.
  3742. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3743. The variable is optional and defaults to the :term:`PN`
  3744. variable.
  3745. :term:`INITSCRIPT_PARAMS`
  3746. Specifies the options to pass to ``update-rc.d``. Here is an example::
  3747. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  3748. In this example, the script has a runlevel of 99, starts the script
  3749. in initlevels 2 and 5, and stops the script in levels 0, 1 and 6.
  3750. The variable's default value is "defaults", which is set in the
  3751. :ref:`ref-classes-update-rc.d` class.
  3752. The value in :term:`INITSCRIPT_PARAMS` is passed through to the
  3753. ``update-rc.d`` command. For more information on valid parameters,
  3754. please see the manual page: :manpage:`update-rc.d <update-rc.d(8)>`.
  3755. :term:`INSANE_SKIP`
  3756. Specifies the QA checks to skip for a specific package within a
  3757. recipe. For example, to skip the check for symbolic link ``.so``
  3758. files in the main package of a recipe, add the following to the
  3759. recipe. The package name override must be used, which in this example
  3760. is ``${PN}``::
  3761. INSANE_SKIP:${PN} += "dev-so"
  3762. See the ":ref:`ref-classes-insane`" section for a
  3763. list of the valid QA checks you can specify using this variable.
  3764. :term:`INSTALL_TIMEZONE_FILE`
  3765. By default, the ``tzdata`` recipe packages an ``/etc/timezone`` file.
  3766. Set the :term:`INSTALL_TIMEZONE_FILE` variable to "0" at the
  3767. configuration level to disable this behavior.
  3768. :term:`IPK_FEED_URIS`
  3769. When the IPK backend is in use and package management is enabled on
  3770. the target, you can use this variable to set up ``opkg`` in the
  3771. target image to point to package feeds on a nominated server. Once
  3772. the feed is established, you can perform installations or upgrades
  3773. using the package manager at runtime.
  3774. :term:`KARCH`
  3775. Defines the kernel architecture used when assembling the
  3776. configuration. Architectures supported for this release are:
  3777. - powerpc
  3778. - i386
  3779. - x86_64
  3780. - arm
  3781. - qemu
  3782. - mips
  3783. You define the :term:`KARCH` variable in the :ref:`kernel-dev/advanced:bsp descriptions`.
  3784. :term:`KBRANCH`
  3785. A regular expression used by the build process to explicitly identify
  3786. the kernel branch that is validated, patched, and configured during a
  3787. build. You must set this variable to ensure the exact kernel branch
  3788. you want is being used by the build process.
  3789. Values for this variable are set in the kernel's recipe file and the
  3790. kernel's append file. For example, if you are using the
  3791. ``linux-yocto_4.12`` kernel, the kernel recipe file is the
  3792. ``meta/recipes-kernel/linux/linux-yocto_4.12.bb`` file. :term:`KBRANCH`
  3793. is set as follows in that kernel recipe file::
  3794. KBRANCH ?= "standard/base"
  3795. This variable is also used from the kernel's append file to identify
  3796. the kernel branch specific to a particular machine or target
  3797. hardware. Continuing with the previous kernel example, the kernel's
  3798. append file is located in the
  3799. BSP layer for a given machine. For example, the append file for the
  3800. Beaglebone and generic versions of both 32 and 64-bit IA
  3801. machines (``meta-yocto-bsp``) is named
  3802. ``meta-yocto-bsp/recipes-kernel/linux/linux-yocto_6.1.bbappend``.
  3803. Here are the related statements from that append file::
  3804. KBRANCH:genericx86 = "v6.1/standard/base"
  3805. KBRANCH:genericx86-64 = "v6.1/standard/base"
  3806. KBRANCH:beaglebone-yocto = "v6.1/standard/beaglebone"
  3807. The :term:`KBRANCH` statements
  3808. identify the kernel branch to use when building for each supported
  3809. BSP.
  3810. :term:`KBUILD_DEFCONFIG`
  3811. When used with the :ref:`ref-classes-kernel-yocto`
  3812. class, specifies an "in-tree" kernel configuration file for use
  3813. during a kernel build.
  3814. Typically, when using a ``defconfig`` to configure a kernel during a
  3815. build, you place the file in your layer in the same manner as you
  3816. would place patch files and configuration fragment files (i.e.
  3817. "out-of-tree"). However, if you want to use a ``defconfig`` file that
  3818. is part of the kernel tree (i.e. "in-tree"), you can use the
  3819. :term:`KBUILD_DEFCONFIG` variable and append the
  3820. :term:`KMACHINE` variable to point to the
  3821. ``defconfig`` file.
  3822. To use the variable, set it in the append file for your kernel recipe
  3823. using the following form::
  3824. KBUILD_DEFCONFIG:<machine> ?= "defconfig_file"
  3825. Here is an example from a "raspberrypi2" :term:`MACHINE` build that uses
  3826. a ``defconfig`` file named "bcm2709_defconfig"::
  3827. KBUILD_DEFCONFIG:raspberrypi2 = "bcm2709_defconfig"
  3828. As an alternative, you can use the following within your append file::
  3829. KBUILD_DEFCONFIG:pn-linux-yocto ?= "defconfig_file"
  3830. For more
  3831. information on how to use the :term:`KBUILD_DEFCONFIG` variable, see the
  3832. ":ref:`kernel-dev/common:using an "in-tree" \`\`defconfig\`\` file`"
  3833. section in the Yocto Project Linux Kernel Development Manual.
  3834. :term:`KCONF_AUDIT_LEVEL`
  3835. When inheriting the :ref:`ref-classes-kernel-yocto` class and when the
  3836. :term:`KMETA_AUDIT` variable is set to a non-empty string, the
  3837. :term:`KCONF_AUDIT_LEVEL` variable specifies whether to report Kernel
  3838. configuration values that are different from the user-specified value. Its
  3839. value is a positive integer (default: 1):
  3840. - 0: no reporting is done.
  3841. - 1: report the problems as warnings and trigger an error if
  3842. :term:`KMETA_AUDIT_WERROR` is set.
  3843. - 2: if the :ref:`ref-tasks-kernel_configme` has failed to generate a
  3844. ``.config`` file, print the content of the ``merge_config_build.log``
  3845. file containing the errors, instead of just providing the path to
  3846. that file.
  3847. For more details see the :ref:`ref-classes-kernel-yocto` class and the
  3848. :yocto_git:`symbol_why.py </yocto-kernel-tools/tree/tools/symbol_why.py>`
  3849. script in :yocto_git:`yocto-kernel-tools </yocto-kernel-tools>`.
  3850. :term:`KCONF_BSP_AUDIT_LEVEL`
  3851. When inheriting the :ref:`ref-classes-kernel-yocto` class and when the
  3852. :term:`KMETA_AUDIT` variable is set to a non-empty string, the
  3853. :term:`KCONF_BSP_AUDIT_LEVEL` variable can be set to report:
  3854. #. User-specified Kernel configurations that did not make it into the final
  3855. Kernel configuration.
  3856. #. Configurations defined in multiple input files with differing values.
  3857. Its value is a positive integer (default: 0):
  3858. - 0: no reporting is done.
  3859. - 1: reporting of configuration options that did not make it in the
  3860. final configuration is done and is not limited to the current
  3861. architecture (``ARCH``) in use.
  3862. - 2: reporting of configuration options that did not make it in the
  3863. final configuration is done and is strictly limited to the current
  3864. architecture (``ARCH``) in use.
  3865. - 3: report the problems found when this variable equals 2, and also
  3866. report configurations options defined in multiple input files with
  3867. differing values.
  3868. For value 1, 2 and 3 an error is produced if :term:`KMETA_AUDIT_WERROR`
  3869. is set.
  3870. For more details see the :ref:`ref-classes-kernel-yocto` class and the
  3871. :yocto_git:`symbol_why.py </yocto-kernel-tools/tree/tools/symbol_why.py>`
  3872. script in :yocto_git:`yocto-kernel-tools </yocto-kernel-tools>`.
  3873. :term:`KCONFIG_MODE`
  3874. When used with the :ref:`ref-classes-kernel-yocto`
  3875. class, specifies the kernel configuration values to use for options
  3876. not specified in the provided ``defconfig`` file. Valid options are::
  3877. KCONFIG_MODE = "alldefconfig"
  3878. KCONFIG_MODE = "allnoconfig"
  3879. In ``alldefconfig`` mode the options not explicitly specified will be
  3880. assigned their Kconfig default value. In ``allnoconfig`` mode the
  3881. options not explicitly specified will be disabled in the kernel
  3882. config.
  3883. In case :term:`KCONFIG_MODE` is not set the behaviour will depend on where
  3884. the ``defconfig`` file is coming from. An "in-tree" ``defconfig`` file
  3885. will be handled in ``alldefconfig`` mode, a ``defconfig`` file placed
  3886. in ``${WORKDIR}`` through a meta-layer will be handled in
  3887. ``allnoconfig`` mode.
  3888. An "in-tree" ``defconfig`` file can be selected via the
  3889. :term:`KBUILD_DEFCONFIG` variable. :term:`KCONFIG_MODE` does not need to
  3890. be explicitly set.
  3891. A ``defconfig`` file compatible with ``allnoconfig`` mode can be
  3892. generated by copying the ``.config`` file from a working Linux kernel
  3893. build, renaming it to ``defconfig`` and placing it into the Linux
  3894. kernel ``${WORKDIR}`` through your meta-layer. :term:`KCONFIG_MODE` does
  3895. not need to be explicitly set.
  3896. A ``defconfig`` file compatible with ``alldefconfig`` mode can be
  3897. generated using the
  3898. :ref:`ref-tasks-savedefconfig`
  3899. task and placed into the Linux kernel ``${WORKDIR}`` through your
  3900. meta-layer. Explicitely set :term:`KCONFIG_MODE`::
  3901. KCONFIG_MODE = "alldefconfig"
  3902. :term:`KERNEL_ALT_IMAGETYPE`
  3903. Specifies an alternate kernel image type for creation in addition to
  3904. the kernel image type specified using the :term:`KERNEL_IMAGETYPE` and
  3905. :term:`KERNEL_IMAGETYPES` variables.
  3906. :term:`KERNEL_ARTIFACT_NAME`
  3907. Specifies the name of all of the build artifacts. You can change the
  3908. name of the artifacts by changing the :term:`KERNEL_ARTIFACT_NAME`
  3909. variable.
  3910. The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the
  3911. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file, has the
  3912. following default value::
  3913. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  3914. See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`IMAGE_MACHINE_SUFFIX`
  3915. and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
  3916. :term:`KERNEL_CLASSES`
  3917. A list of classes defining kernel image types that the
  3918. :ref:`ref-classes-kernel` class should inherit. You typically
  3919. append this variable to enable extended image types. An example is
  3920. ":ref:`ref-classes-kernel-fitimage`", which enables
  3921. FIT image support and resides in ``meta/classes-recipe/kernel-fitimage.bbclass``.
  3922. You can register custom kernel image types with the
  3923. :ref:`ref-classes-kernel` class using this variable.
  3924. :term:`KERNEL_CONSOLE`
  3925. The :term:`KERNEL_CONSOLE` variable holds the value of the ``console``
  3926. parameter of the kernel command line and can be used in places such as a
  3927. ``wks`` description file for :ref:`Wic images <dev-manual/wic:creating
  3928. partitioned images using wic>`.
  3929. The default value of this variable is extracted from the first console
  3930. device and setting in :term:`SERIAL_CONSOLES`. If nothing is found in
  3931. :term:`SERIAL_CONSOLES`, the default value is set to ``ttyS0,115200``.
  3932. For more information, see the `Kernel command-line documentation
  3933. <https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html>`__.
  3934. :term:`KERNEL_DANGLING_FEATURES_WARN_ONLY`
  3935. When kernel configuration fragments are missing for some
  3936. :term:`KERNEL_FEATURES` specified by layers or BSPs,
  3937. building and configuring the kernel stops with an error.
  3938. You can turn these errors into warnings by setting the
  3939. following in ``conf/local.conf``::
  3940. KERNEL_DANGLING_FEATURES_WARN_ONLY = "1"
  3941. You will still be warned that runtime issues may occur,
  3942. but at least the kernel configuration and build process will
  3943. be allowed to continue.
  3944. :term:`KERNEL_DEBUG_TIMESTAMPS`
  3945. If set to "1", enables timestamping functionality during building
  3946. the kernel. The default is "0" to disable this for reproducibility
  3947. reasons.
  3948. :term:`KERNEL_DEPLOY_DEPEND`
  3949. Provides a means of controlling the dependency of an image recipe
  3950. on the kernel. The default value is "virtual/kernel:do_deploy",
  3951. however for a small initramfs image or other images that do not
  3952. need the kernel, this can be set to "" in the image recipe.
  3953. :term:`KERNEL_DEVICETREE`
  3954. Specifies the name of the generated Linux kernel device tree (i.e.
  3955. the ``.dtb``) file.
  3956. .. note::
  3957. There is legacy support for specifying the full path to the device
  3958. tree. However, providing just the ``.dtb`` file is preferred.
  3959. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3960. class must be inherited.
  3961. :term:`KERNEL_DEVICETREE_BUNDLE`
  3962. When set to "1", this variable allows to bundle the Linux kernel
  3963. and the Device Tree Binary together in a single file.
  3964. This feature is currently only supported on the "arm" (32 bit)
  3965. architecture.
  3966. This variable is set to "0" by default by the
  3967. :ref:`ref-classes-kernel-devicetree` class.
  3968. :term:`KERNEL_DTB_LINK_NAME`
  3969. The link name of the kernel device tree binary (DTB). This variable
  3970. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3971. follows::
  3972. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3973. The
  3974. value of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in
  3975. the same file, has the following value::
  3976. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3977. See the :term:`MACHINE` variable for additional
  3978. information.
  3979. :term:`KERNEL_DTB_NAME`
  3980. The base name of the kernel device tree binary (DTB). This variable
  3981. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3982. follows::
  3983. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3984. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3985. :term:`KERNEL_DTBDEST`
  3986. This variable, used by the :ref:`ref-classes-kernel-devicetree`
  3987. class, allows to change the installation directory of the DTB
  3988. (Device Tree Binary) files.
  3989. It is set by default to "${KERNEL_IMAGEDEST}" by the
  3990. :ref:`ref-classes-kernel` class.
  3991. :term:`KERNEL_DTBVENDORED`
  3992. This variable, used by the :ref:`ref-classes-kernel-devicetree`,
  3993. allows to ignore vendor subdirectories when installing DTB
  3994. (Device Tree Binary) files, when it is set to "false".
  3995. To keep vendor subdirectories, set this variable to "true".
  3996. It is set by default to "false" by the :ref:`ref-classes-kernel` class.
  3997. :term:`KERNEL_DTC_FLAGS`
  3998. Specifies the ``dtc`` flags that are passed to the Linux kernel build
  3999. system when generating the device trees (via ``DTC_FLAGS`` environment
  4000. variable).
  4001. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  4002. class must be inherited.
  4003. :term:`KERNEL_EXTRA_ARGS`
  4004. Specifies additional ``make`` command-line arguments the OpenEmbedded
  4005. build system passes on when compiling the kernel.
  4006. :term:`KERNEL_FEATURES`
  4007. Includes additional kernel metadata. In the OpenEmbedded build
  4008. system, the default Board Support Packages (BSPs)
  4009. :term:`Metadata` is provided through the
  4010. :term:`KMACHINE` and :term:`KBRANCH`
  4011. variables. You can use the :term:`KERNEL_FEATURES` variable from within
  4012. the kernel recipe or kernel append file to further add metadata for
  4013. all BSPs or specific BSPs.
  4014. The metadata you add through this variable includes config fragments
  4015. and features descriptions, which usually includes patches as well as
  4016. config fragments. You typically override the :term:`KERNEL_FEATURES`
  4017. variable for a specific machine. In this way, you can provide
  4018. validated, but optional, sets of kernel configurations and features.
  4019. For example, the following example from the ``linux-yocto-rt_4.12``
  4020. kernel recipe adds "netfilter" and "taskstats" features to all BSPs
  4021. as well as "virtio" configurations to all QEMU machines. The last two
  4022. statements add specific configurations to targeted machine types::
  4023. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  4024. KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
  4025. KERNEL_FEATURES:append:qemuall = " cfg/virtio.scc"
  4026. KERNEL_FEATURES:append:qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  4027. KERNEL_FEATURES:append:qemux86-64 = " cfg/sound.scc"
  4028. :term:`KERNEL_FIT_LINK_NAME`
  4029. The link name of the kernel flattened image tree (FIT) image. This
  4030. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  4031. file as follows::
  4032. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4033. The value of the
  4034. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  4035. file, has the following value::
  4036. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4037. See the :term:`MACHINE` variable for additional
  4038. information.
  4039. :term:`KERNEL_FIT_NAME`
  4040. The base name of the kernel flattened image tree (FIT) image. This
  4041. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  4042. file as follows::
  4043. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4044. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4045. :term:`KERNEL_IMAGE_LINK_NAME`
  4046. The link name for the kernel image. This variable is set in the
  4047. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4048. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4049. The value of
  4050. the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  4051. file, has the following value::
  4052. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4053. See the :term:`MACHINE` variable for additional
  4054. information.
  4055. :term:`KERNEL_IMAGE_MAXSIZE`
  4056. Specifies the maximum size of the kernel image file in kilobytes. If
  4057. :term:`KERNEL_IMAGE_MAXSIZE` is set, the size of the kernel image file is
  4058. checked against the set value during the
  4059. :ref:`ref-tasks-sizecheck` task. The task fails if
  4060. the kernel image file is larger than the setting.
  4061. :term:`KERNEL_IMAGE_MAXSIZE` is useful for target devices that have a
  4062. limited amount of space in which the kernel image must be stored.
  4063. By default, this variable is not set, which means the size of the
  4064. kernel image is not checked.
  4065. :term:`KERNEL_IMAGE_NAME`
  4066. The base name of the kernel image. This variable is set in the
  4067. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4068. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4069. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4070. :term:`KERNEL_IMAGETYPE`
  4071. The type of kernel to build for a device, usually set by the machine
  4072. configuration files and defaults to "zImage". This variable is used
  4073. when building the kernel and is passed to ``make`` as the target to
  4074. build.
  4075. To build additional kernel image types, use :term:`KERNEL_IMAGETYPES`.
  4076. :term:`KERNEL_IMAGETYPES`
  4077. Lists additional types of kernel images to build for a device in addition
  4078. to image type specified in :term:`KERNEL_IMAGETYPE`. Usually set by the
  4079. machine configuration files.
  4080. :term:`KERNEL_MODULE_AUTOLOAD`
  4081. Lists kernel modules that need to be auto-loaded during boot.
  4082. .. note::
  4083. This variable replaces the deprecated :term:`module_autoload`
  4084. variable.
  4085. You can use the :term:`KERNEL_MODULE_AUTOLOAD` variable anywhere that it
  4086. can be recognized by the kernel recipe or by an out-of-tree kernel
  4087. module recipe (e.g. a machine configuration file, a distribution
  4088. configuration file, an append file for the recipe, or the recipe
  4089. itself).
  4090. Specify it as follows::
  4091. KERNEL_MODULE_AUTOLOAD += "module_name1 module_name2 module_name3"
  4092. Including :term:`KERNEL_MODULE_AUTOLOAD` causes the OpenEmbedded build
  4093. system to populate the ``/etc/modules-load.d/modname.conf`` file with
  4094. the list of modules to be auto-loaded on boot. The modules appear
  4095. one-per-line in the file. Here is an example of the most common use
  4096. case::
  4097. KERNEL_MODULE_AUTOLOAD += "module_name"
  4098. For information on how to populate the ``modname.conf`` file with
  4099. ``modprobe.d`` syntax lines, see the :term:`KERNEL_MODULE_PROBECONF` variable.
  4100. :term:`KERNEL_MODULE_PROBECONF`
  4101. Provides a list of modules for which the OpenEmbedded build system
  4102. expects to find ``module_conf_``\ modname values that specify
  4103. configuration for each of the modules. For information on how to
  4104. provide those module configurations, see the
  4105. :term:`module_conf_* <module_conf>` variable.
  4106. :term:`KERNEL_PACKAGE_NAME`
  4107. Specifies the base name of the kernel packages, such as "kernel"
  4108. in the kernel packages such as "kernel-modules", "kernel-image" and
  4109. "kernel-dbg".
  4110. The default value for this variable is set to "kernel" by the
  4111. :ref:`ref-classes-kernel` class.
  4112. :term:`KERNEL_PATH`
  4113. The location of the kernel sources. This variable is set to the value
  4114. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  4115. class. For information on how this variable is used, see the
  4116. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  4117. section in the Yocto Project Linux Kernel Development Manual.
  4118. To help maximize compatibility with out-of-tree drivers used to build
  4119. modules, the OpenEmbedded build system also recognizes and uses the
  4120. :term:`KERNEL_SRC` variable, which is identical to
  4121. the :term:`KERNEL_PATH` variable. Both variables are common variables
  4122. used by external Makefiles to point to the kernel source directory.
  4123. :term:`KERNEL_SRC`
  4124. The location of the kernel sources. This variable is set to the value
  4125. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  4126. class. For information on how this variable is used, see the
  4127. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  4128. section in the Yocto Project Linux Kernel Development Manual.
  4129. To help maximize compatibility with out-of-tree drivers used to build
  4130. modules, the OpenEmbedded build system also recognizes and uses the
  4131. :term:`KERNEL_PATH` variable, which is identical
  4132. to the :term:`KERNEL_SRC` variable. Both variables are common variables
  4133. used by external Makefiles to point to the kernel source directory.
  4134. :term:`KERNEL_STRIP`
  4135. Allows to specific which ``strip`` command to use to strip the kernel
  4136. binary, typically either GNU binutils ``strip`` or ``llvm-strip``.
  4137. :term:`KERNEL_VERSION`
  4138. Specifies the version of the kernel as extracted from ``version.h``
  4139. or ``utsrelease.h`` within the kernel sources. Effects of setting
  4140. this variable do not take effect until the kernel has been
  4141. configured. Consequently, attempting to refer to this variable in
  4142. contexts prior to configuration will not work.
  4143. :term:`KERNELDEPMODDEPEND`
  4144. Specifies whether the data referenced through
  4145. :term:`PKGDATA_DIR` is needed or not.
  4146. :term:`KERNELDEPMODDEPEND` does not control whether or not that data
  4147. exists, but simply whether or not it is used. If you do not need to
  4148. use the data, set the :term:`KERNELDEPMODDEPEND` variable in your
  4149. :term:`Initramfs` recipe. Setting the variable there when the data is not
  4150. needed avoids a potential dependency loop.
  4151. :term:`KFEATURE_DESCRIPTION`
  4152. Provides a short description of a configuration fragment. You use
  4153. this variable in the ``.scc`` file that describes a configuration
  4154. fragment file. Here is the variable used in a file named ``smp.scc``
  4155. to describe SMP being enabled::
  4156. define KFEATURE_DESCRIPTION "Enable SMP"
  4157. :term:`KMACHINE`
  4158. The machine as known by the kernel. Sometimes the machine name used
  4159. by the kernel does not match the machine name used by the
  4160. OpenEmbedded build system. For example, the machine name that the
  4161. OpenEmbedded build system understands as ``core2-32-intel-common``
  4162. goes by a different name in the Linux Yocto kernel. The kernel
  4163. understands that machine as ``intel-core2-32``. For cases like these,
  4164. the :term:`KMACHINE` variable maps the kernel machine name to the
  4165. OpenEmbedded build system machine name.
  4166. These mappings between different names occur in the Yocto Linux
  4167. Kernel's ``meta`` branch. As an example take a look in the
  4168. ``common/recipes-kernel/linux/linux-yocto_3.19.bbappend`` file::
  4169. LINUX_VERSION:core2-32-intel-common = "3.19.0"
  4170. COMPATIBLE_MACHINE:core2-32-intel-common = "${MACHINE}"
  4171. SRCREV_meta:core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  4172. SRCREV_machine:core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  4173. KMACHINE:core2-32-intel-common = "intel-core2-32"
  4174. KBRANCH:core2-32-intel-common = "standard/base"
  4175. KERNEL_FEATURES:append:core2-32-intel-common = " ${KERNEL_FEATURES_INTEL_COMMON}"
  4176. The :term:`KMACHINE` statement says
  4177. that the kernel understands the machine name as "intel-core2-32".
  4178. However, the OpenEmbedded build system understands the machine as
  4179. "core2-32-intel-common".
  4180. :term:`KMETA_AUDIT`
  4181. When inheriting the :ref:`ref-classes-kernel-yocto` class, the
  4182. :term:`KMETA_AUDIT` variable enables or disables auditing of Linux Kernel
  4183. configuration. The default value for this variable is "yes", and auditing
  4184. is enabled. Set this variable to an empty string to disable auditing.
  4185. :term:`KMETA_AUDIT_WERROR`
  4186. When inheriting the :ref:`ref-classes-kernel-yocto` class and when the
  4187. :term:`KMETA_AUDIT` and the :term:`KMETA_AUDIT_WERROR` variables are set
  4188. to non-empty strings, produce an error if Linux kernel configuration
  4189. problems were detected, instead of warnings only. For more details on the
  4190. Linux Kernel configuration auditing feature, see :term:`KCONF_AUDIT_LEVEL`
  4191. and :term:`KCONF_BSP_AUDIT_LEVEL`.
  4192. :term:`KTYPE`
  4193. Defines the kernel type to be used in assembling the configuration.
  4194. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  4195. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  4196. section in the
  4197. Yocto Project Linux Kernel Development Manual for more information on
  4198. kernel types.
  4199. You define the :term:`KTYPE` variable in the
  4200. :ref:`kernel-dev/advanced:bsp descriptions`. The
  4201. value you use must match the value used for the
  4202. :term:`LINUX_KERNEL_TYPE` value used by the
  4203. kernel recipe.
  4204. :term:`LABELS`
  4205. Provides a list of targets for automatic configuration.
  4206. See the :ref:`ref-classes-grub-efi` class for more
  4207. information on how this variable is used.
  4208. :term:`LAYERDEPENDS`
  4209. Lists the layers, separated by spaces, on which this recipe depends.
  4210. Optionally, you can specify a specific layer version for a dependency
  4211. by adding it to the end of the layer name. Here is an example::
  4212. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  4213. In this previous example,
  4214. version 3 of "anotherlayer" is compared against
  4215. :term:`LAYERVERSION`\ ``_anotherlayer``.
  4216. An error is produced if any dependency is missing or the version
  4217. numbers (if specified) do not match exactly. This variable is used in
  4218. the ``conf/layer.conf`` file and must be suffixed with the name of
  4219. the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
  4220. :term:`LAYERDIR`
  4221. When used inside the ``layer.conf`` configuration file, this variable
  4222. provides the path of the current layer. This variable is not
  4223. available outside of ``layer.conf`` and references are expanded
  4224. immediately when parsing of the file completes.
  4225. :term:`LAYERDIR_RE`
  4226. See :term:`bitbake:LAYERDIR_RE` in the BitBake manual.
  4227. :term:`LAYERRECOMMENDS`
  4228. Lists the layers, separated by spaces, recommended for use with this
  4229. layer.
  4230. Optionally, you can specify a specific layer version for a
  4231. recommendation by adding the version to the end of the layer name.
  4232. Here is an example::
  4233. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  4234. In this previous example, version 3 of "anotherlayer" is compared
  4235. against ``LAYERVERSION_anotherlayer``.
  4236. This variable is used in the ``conf/layer.conf`` file and must be
  4237. suffixed with the name of the specific layer (e.g.
  4238. ``LAYERRECOMMENDS_mylayer``).
  4239. :term:`LAYERSERIES_COMPAT`
  4240. See :term:`bitbake:LAYERSERIES_COMPAT` in the BitBake manual.
  4241. :term:`LAYERVERSION`
  4242. Optionally specifies the version of a layer as a single number. You
  4243. can use this within :term:`LAYERDEPENDS` for
  4244. another layer in order to depend on a specific version of the layer.
  4245. This variable is used in the ``conf/layer.conf`` file and must be
  4246. suffixed with the name of the specific layer (e.g.
  4247. ``LAYERVERSION_mylayer``).
  4248. :term:`LD`
  4249. The minimal command and arguments used to run the :manpage:`linker
  4250. <ld(1)>`.
  4251. :term:`LDFLAGS`
  4252. Specifies the flags to pass to the linker. This variable is exported
  4253. to an environment variable and thus made visible to the software
  4254. being built during the compilation step.
  4255. Default initialization for :term:`LDFLAGS` varies depending on what is
  4256. being built:
  4257. - :term:`TARGET_LDFLAGS` when building for the
  4258. target
  4259. - :term:`BUILD_LDFLAGS` when building for the
  4260. build host (i.e. ``-native``)
  4261. - :term:`BUILDSDK_LDFLAGS` when building for
  4262. an SDK (i.e. ``nativesdk-``)
  4263. :term:`LEAD_SONAME`
  4264. Specifies the lead (or primary) compiled library file (i.e. ``.so``)
  4265. that the :ref:`ref-classes-debian` class applies its
  4266. naming policy to given a recipe that packages multiple libraries.
  4267. This variable works in conjunction with the :ref:`ref-classes-debian`
  4268. class.
  4269. :term:`LIC_FILES_CHKSUM`
  4270. Checksums of the license text in the recipe source code.
  4271. This variable tracks changes in license text of the source code
  4272. files. If the license text is changed, it will trigger a build
  4273. failure, which gives the developer an opportunity to review any
  4274. license change.
  4275. This variable must be defined for all recipes (unless
  4276. :term:`LICENSE` is set to "CLOSED").
  4277. For more information, see the ":ref:`dev-manual/licenses:tracking license changes`"
  4278. section in the Yocto Project Development Tasks Manual.
  4279. :term:`LICENSE`
  4280. The list of source licenses for the recipe. Follow these rules:
  4281. - Do not use spaces within individual license names.
  4282. - Separate license names using \| (pipe) when there is a choice
  4283. between licenses.
  4284. - Separate license names using & (ampersand) when there are
  4285. multiple licenses for different parts of the source.
  4286. - You can use spaces between license names.
  4287. - For standard licenses, use the names of the files in
  4288. ``meta/files/common-licenses/`` or the
  4289. :term:`SPDXLICENSEMAP` flag names defined in
  4290. ``meta/conf/licenses.conf``.
  4291. Here are some examples::
  4292. LICENSE = "LGPL-2.1-only | GPL-3.0-only"
  4293. LICENSE = "MPL-1.0 & LGPL-2.1-only"
  4294. LICENSE = "GPL-2.0-or-later"
  4295. The first example is from the
  4296. recipes for Qt, which the user may choose to distribute under either
  4297. the LGPL version 2.1 or GPL version 3. The second example is from
  4298. Cairo where two licenses cover different parts of the source code.
  4299. The final example is from ``sysstat``, which presents a single
  4300. license.
  4301. You can also specify licenses on a per-package basis to handle
  4302. situations where components of the output have different licenses.
  4303. For example, a piece of software whose code is licensed under GPLv2
  4304. but has accompanying documentation licensed under the GNU Free
  4305. Documentation License 1.2 could be specified as follows::
  4306. LICENSE = "GFDL-1.2 & GPL-2.0-only"
  4307. LICENSE:${PN} = "GPL-2.0.only"
  4308. LICENSE:${PN}-doc = "GFDL-1.2"
  4309. :term:`LICENSE_CREATE_PACKAGE`
  4310. Setting :term:`LICENSE_CREATE_PACKAGE` to "1" causes the OpenEmbedded
  4311. build system to create an extra package (i.e.
  4312. ``${``\ :term:`PN`\ ``}-lic``) for each recipe and to add
  4313. those packages to the
  4314. :term:`RRECOMMENDS`\ ``:${PN}``.
  4315. The ``${PN}-lic`` package installs a directory in
  4316. ``/usr/share/licenses`` named ``${PN}``, which is the recipe's base
  4317. name, and installs files in that directory that contain license and
  4318. copyright information (i.e. copies of the appropriate license files
  4319. from ``meta/common-licenses`` that match the licenses specified in
  4320. the :term:`LICENSE` variable of the recipe metadata
  4321. and copies of files marked in
  4322. :term:`LIC_FILES_CHKSUM` as containing
  4323. license text).
  4324. For related information on providing license text, see the
  4325. :term:`COPY_LIC_DIRS` variable, the
  4326. :term:`COPY_LIC_MANIFEST` variable, and the
  4327. ":ref:`dev-manual/licenses:providing license text`"
  4328. section in the Yocto Project Development Tasks Manual.
  4329. :term:`LICENSE_FLAGS`
  4330. Specifies additional flags for a recipe you must allow through
  4331. :term:`LICENSE_FLAGS_ACCEPTED` in
  4332. order for the recipe to be built. When providing multiple flags,
  4333. separate them with spaces.
  4334. This value is independent of :term:`LICENSE` and is
  4335. typically used to mark recipes that might require additional licenses
  4336. in order to be used in a commercial product. For more information,
  4337. see the
  4338. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  4339. section in the Yocto Project Development Tasks Manual.
  4340. :term:`LICENSE_FLAGS_ACCEPTED`
  4341. Lists license flags that when specified in
  4342. :term:`LICENSE_FLAGS` within a recipe should not
  4343. prevent that recipe from being built. For more information, see the
  4344. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  4345. section in the Yocto Project Development Tasks Manual.
  4346. :term:`LICENSE_FLAGS_DETAILS`
  4347. Adds details about a flag in :term:`LICENSE_FLAGS`. This way,
  4348. if such a flag is not accepted through :term:`LICENSE_FLAGS_ACCEPTED`,
  4349. the error message will be more informative, containing the specified
  4350. extra details.
  4351. For example, a recipe with an EULA may set::
  4352. LICENSE_FLAGS = "FooBar-EULA"
  4353. LICENSE_FLAGS_DETAILS[FooBar-EULA] = "For further details, see https://example.com/eula."
  4354. If ``Foobar-EULA`` isn't in :term:`LICENSE_FLAGS_ACCEPTED`, the
  4355. error message is more useful::
  4356. Has a restricted license 'FooBar-EULA' which is not listed in your LICENSE_FLAGS_ACCEPTED.
  4357. For further details, see https://example.com/eula.
  4358. :term:`LICENSE_PATH`
  4359. Path to additional licenses used during the build. By default, the
  4360. OpenEmbedded build system uses :term:`COMMON_LICENSE_DIR` to define the
  4361. directory that holds common license text used during the build. The
  4362. :term:`LICENSE_PATH` variable allows you to extend that location to other
  4363. areas that have additional licenses::
  4364. LICENSE_PATH += "path-to-additional-common-licenses"
  4365. :term:`LINUX_KERNEL_TYPE`
  4366. Defines the kernel type to be used in assembling the configuration.
  4367. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  4368. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  4369. section in the
  4370. Yocto Project Linux Kernel Development Manual for more information on
  4371. kernel types.
  4372. If you do not specify a :term:`LINUX_KERNEL_TYPE`, it defaults to
  4373. "standard". Together with :term:`KMACHINE`, the
  4374. :term:`LINUX_KERNEL_TYPE` variable defines the search arguments used by
  4375. the kernel tools to find the appropriate description within the
  4376. kernel :term:`Metadata` with which to build out the sources
  4377. and configuration.
  4378. :term:`LINUX_VERSION`
  4379. The Linux version from ``kernel.org`` on which the Linux kernel image
  4380. being built using the OpenEmbedded build system is based. You define
  4381. this variable in the kernel recipe. For example, the
  4382. ``linux-yocto-3.4.bb`` kernel recipe found in
  4383. ``meta/recipes-kernel/linux`` defines the variables as follows::
  4384. LINUX_VERSION ?= "3.4.24"
  4385. The :term:`LINUX_VERSION` variable is used to define :term:`PV`
  4386. for the recipe::
  4387. PV = "${LINUX_VERSION}+git"
  4388. :term:`LINUX_VERSION_EXTENSION`
  4389. A string extension compiled into the version string of the Linux
  4390. kernel built with the OpenEmbedded build system. You define this
  4391. variable in the kernel recipe. For example, the linux-yocto kernel
  4392. recipes all define the variable as follows::
  4393. LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
  4394. Defining this variable essentially sets the Linux kernel
  4395. configuration item ``CONFIG_LOCALVERSION``, which is visible through
  4396. the ``uname`` command. Here is an example that shows the extension
  4397. assuming it was set as previously shown::
  4398. $ uname -r
  4399. 3.7.0-rc8-custom
  4400. :term:`LOG_DIR`
  4401. Specifies the directory to which the OpenEmbedded build system writes
  4402. overall log files. The default directory is ``${TMPDIR}/log``.
  4403. For the directory containing logs specific to each task, see the
  4404. :term:`T` variable.
  4405. :term:`MACHINE`
  4406. Specifies the target device for which the image is built. You define
  4407. :term:`MACHINE` in the ``local.conf`` file found in the
  4408. :term:`Build Directory`. By default, :term:`MACHINE` is set to
  4409. "qemux86", which is an x86-based architecture machine to be emulated
  4410. using QEMU::
  4411. MACHINE ?= "qemux86"
  4412. The variable corresponds to a machine configuration file of the same
  4413. name, through which machine-specific configurations are set. Thus,
  4414. when :term:`MACHINE` is set to "qemux86", the corresponding
  4415. ``qemux86.conf`` machine configuration file can be found in
  4416. the :term:`Source Directory` in
  4417. ``meta/conf/machine``.
  4418. The list of machines supported by the Yocto Project as shipped
  4419. include the following::
  4420. MACHINE ?= "qemuarm"
  4421. MACHINE ?= "qemuarm64"
  4422. MACHINE ?= "qemumips"
  4423. MACHINE ?= "qemumips64"
  4424. MACHINE ?= "qemuppc"
  4425. MACHINE ?= "qemux86"
  4426. MACHINE ?= "qemux86-64"
  4427. MACHINE ?= "genericx86"
  4428. MACHINE ?= "genericx86-64"
  4429. MACHINE ?= "beaglebone"
  4430. The last five are Yocto Project reference hardware
  4431. boards, which are provided in the ``meta-yocto-bsp`` layer.
  4432. .. note::
  4433. Adding additional Board Support Package (BSP) layers to your
  4434. configuration adds new possible settings for :term:`MACHINE`.
  4435. :term:`MACHINE_ARCH`
  4436. Specifies the name of the machine-specific architecture. This
  4437. variable is set automatically from :term:`MACHINE` or
  4438. :term:`TUNE_PKGARCH`. You should not hand-edit
  4439. the :term:`MACHINE_ARCH` variable.
  4440. :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4441. A list of required machine-specific packages to install as part of
  4442. the image being built. The build process depends on these packages
  4443. being present. Furthermore, because this is a "machine-essential"
  4444. variable, the list of packages are essential for the machine to boot.
  4445. The impact of this variable affects images based on
  4446. ``packagegroup-core-boot``, including the ``core-image-minimal``
  4447. image.
  4448. This variable is similar to the
  4449. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS` variable with the exception
  4450. that the image being built has a build dependency on the variable's
  4451. list of packages. In other words, the image will not build if a file
  4452. in this list is not found.
  4453. As an example, suppose the machine for which you are building
  4454. requires ``example-init`` to be run during boot to initialize the
  4455. hardware. In this case, you would use the following in the machine's
  4456. ``.conf`` configuration file::
  4457. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  4458. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  4459. A list of recommended machine-specific packages to install as part of
  4460. the image being built. The build process does not depend on these
  4461. packages being present. However, because this is a
  4462. "machine-essential" variable, the list of packages are essential for
  4463. the machine to boot. The impact of this variable affects images based
  4464. on ``packagegroup-core-boot``, including the ``core-image-minimal``
  4465. image.
  4466. This variable is similar to the :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4467. variable with the exception that the image being built does not have
  4468. a build dependency on the variable's list of packages. In other
  4469. words, the image will still build if a package in this list is not
  4470. found. Typically, this variable is used to handle essential kernel
  4471. modules, whose functionality may be selected to be built into the
  4472. kernel rather than as a module, in which case a package will not be
  4473. produced.
  4474. Consider an example where you have a custom kernel where a specific
  4475. touchscreen driver is required for the machine to be usable. However,
  4476. the driver can be built as a module or into the kernel depending on
  4477. the kernel configuration. If the driver is built as a module, you
  4478. want it to be installed. But, when the driver is built into the
  4479. kernel, you still want the build to succeed. This variable sets up a
  4480. "recommends" relationship so that in the latter case, the build will
  4481. not fail due to the missing package. To accomplish this, assuming the
  4482. package for the module was called ``kernel-module-ab123``, you would
  4483. use the following in the machine's ``.conf`` configuration file::
  4484. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  4485. .. note::
  4486. In this example, the ``kernel-module-ab123`` recipe needs to
  4487. explicitly set its :term:`PACKAGES` variable to ensure that BitBake
  4488. does not use the kernel recipe's :term:`PACKAGES_DYNAMIC` variable to
  4489. satisfy the dependency.
  4490. Some examples of these machine essentials are flash, screen,
  4491. keyboard, mouse, or touchscreen drivers (depending on the machine).
  4492. :term:`MACHINE_EXTRA_RDEPENDS`
  4493. A list of machine-specific packages to install as part of the image
  4494. being built that are not essential for the machine to boot. However,
  4495. the build process for more fully-featured images depends on the
  4496. packages being present.
  4497. This variable affects all images based on ``packagegroup-base``,
  4498. which does not include the ``core-image-minimal`` or
  4499. ``core-image-full-cmdline`` images.
  4500. The variable is similar to the :term:`MACHINE_EXTRA_RRECOMMENDS` variable
  4501. with the exception that the image being built has a build dependency
  4502. on the variable's list of packages. In other words, the image will
  4503. not build if a file in this list is not found.
  4504. An example is a machine that has WiFi capability but is not essential
  4505. for the machine to boot the image. However, if you are building a
  4506. more fully-featured image, you want to enable the WiFi. The package
  4507. containing the firmware for the WiFi hardware is always expected to
  4508. exist, so it is acceptable for the build process to depend upon
  4509. finding the package. In this case, assuming the package for the
  4510. firmware was called ``wifidriver-firmware``, you would use the
  4511. following in the ``.conf`` file for the machine::
  4512. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  4513. :term:`MACHINE_EXTRA_RRECOMMENDS`
  4514. A list of machine-specific packages to install as part of the image
  4515. being built that are not essential for booting the machine. The image
  4516. being built has no build dependency on this list of packages.
  4517. This variable affects only images based on ``packagegroup-base``,
  4518. which does not include the ``core-image-minimal`` or
  4519. ``core-image-full-cmdline`` images.
  4520. This variable is similar to the :term:`MACHINE_EXTRA_RDEPENDS` variable
  4521. with the exception that the image being built does not have a build
  4522. dependency on the variable's list of packages. In other words, the
  4523. image will build if a file in this list is not found.
  4524. An example is a machine that has WiFi capability but is not essential
  4525. For the machine to boot the image. However, if you are building a
  4526. more fully-featured image, you want to enable WiFi. In this case, the
  4527. package containing the WiFi kernel module will not be produced if the
  4528. WiFi driver is built into the kernel, in which case you still want
  4529. the build to succeed instead of failing as a result of the package
  4530. not being found. To accomplish this, assuming the package for the
  4531. module was called ``kernel-module-examplewifi``, you would use the
  4532. following in the ``.conf`` file for the machine::
  4533. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  4534. :term:`MACHINE_FEATURES`
  4535. Specifies the list of hardware features the
  4536. :term:`MACHINE` is capable of supporting. For related
  4537. information on enabling features, see the
  4538. :term:`DISTRO_FEATURES`,
  4539. :term:`COMBINED_FEATURES`, and
  4540. :term:`IMAGE_FEATURES` variables.
  4541. For a list of hardware features supported by the Yocto Project as
  4542. shipped, see the ":ref:`ref-features-machine`" section.
  4543. :term:`MACHINE_FEATURES_BACKFILL`
  4544. A list of space-separated features to be added to
  4545. :term:`MACHINE_FEATURES` if not also present in
  4546. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`.
  4547. This variable is set in the ``meta/conf/bitbake.conf`` file. It is not
  4548. intended to be user-configurable. It is best to just reference the
  4549. variable to see which machine features are being
  4550. :ref:`backfilled <ref-features-backfill>` for all machine configurations.
  4551. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`
  4552. A list of space-separated features from :term:`MACHINE_FEATURES_BACKFILL`
  4553. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  4554. to :term:`MACHINE_FEATURES`) during the build.
  4555. This corresponds to an opt-out mechanism. When new default machine
  4556. features are introduced, machine definition maintainers can review
  4557. (`consider`) them and decide to exclude them from the
  4558. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  4559. combination of :term:`MACHINE_FEATURES_BACKFILL` and
  4560. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  4561. add new default features without breaking existing machine definitions.
  4562. :term:`MACHINEOVERRIDES`
  4563. A colon-separated list of overrides that apply to the current
  4564. machine. By default, this list includes the value of
  4565. :term:`MACHINE`.
  4566. You can extend :term:`MACHINEOVERRIDES` to add extra overrides that
  4567. should apply to a machine. For example, all machines emulated in QEMU
  4568. (e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
  4569. ``meta/conf/machine/include/qemu.inc`` that prepends the following
  4570. override to :term:`MACHINEOVERRIDES`::
  4571. MACHINEOVERRIDES =. "qemuall:"
  4572. This
  4573. override allows variables to be overridden for all machines emulated
  4574. in QEMU, like in the following example from the ``connman-conf``
  4575. recipe::
  4576. SRC_URI:append:qemuall = " file://wired.config \
  4577. file://wired-setup \
  4578. "
  4579. The underlying mechanism behind
  4580. :term:`MACHINEOVERRIDES` is simply that it is included in the default
  4581. value of :term:`OVERRIDES`.
  4582. :term:`MAINTAINER`
  4583. The email address of the distribution maintainer.
  4584. :term:`MESON_BUILDTYPE`
  4585. Value of the Meson ``--buildtype`` argument used by the
  4586. :ref:`ref-classes-meson` class. It defaults to ``debug`` if
  4587. :term:`DEBUG_BUILD` is set to "1", and ``plain`` otherwise.
  4588. See `Meson build options <https://mesonbuild.com/Builtin-options.html>`__
  4589. for the values you could set in a recipe. Values such as ``plain``,
  4590. ``debug``, ``debugoptimized``, ``release`` and ``minsize`` allow
  4591. you to specify the inclusion of debugging symbols and the compiler
  4592. optimizations (none, performance or size).
  4593. :term:`MESON_INSTALL_TAGS`
  4594. A variable for the :ref:`ref-classes-meson` class, allowing to specify
  4595. install tags (``--tags`` argument of the ``meson install`` command).
  4596. :term:`MESON_TARGET`
  4597. A variable for the :ref:`ref-classes-meson` class, allowing to choose
  4598. a Meson target to build in :ref:`ref-tasks-compile`. Otherwise, the
  4599. default targets are built.
  4600. :term:`METADATA_BRANCH`
  4601. The branch currently checked out for the OpenEmbedded-Core layer (path
  4602. determined by :term:`COREBASE`).
  4603. :term:`METADATA_REVISION`
  4604. The revision currently checked out for the OpenEmbedded-Core layer (path
  4605. determined by :term:`COREBASE`).
  4606. :term:`MIME_XDG_PACKAGES`
  4607. The current implementation of the :ref:`ref-classes-mime-xdg`
  4608. class cannot detect ``.desktop`` files installed through absolute
  4609. symbolic links. Use this setting to make the class create post-install
  4610. and post-remove scripts for these packages anyway, to invoke the
  4611. ``update-destop-database`` command.
  4612. :term:`MIRRORS`
  4613. Specifies additional paths from which the OpenEmbedded build system
  4614. gets source code. When the build system searches for source code, it
  4615. first tries the local download directory. If that location fails, the
  4616. build system tries locations defined by
  4617. :term:`PREMIRRORS`, the upstream source, and then
  4618. locations specified by :term:`MIRRORS` in that order.
  4619. The default value for :term:`MIRRORS` is defined in the
  4620. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  4621. :term:`MLPREFIX`
  4622. Specifies a prefix has been added to :term:`PN` to create a
  4623. special version of a recipe or package (i.e. a Multilib version). The
  4624. variable is used in places where the prefix needs to be added to or
  4625. removed from a name (e.g. the :term:`BPN` variable).
  4626. :term:`MLPREFIX` gets set when a prefix has been added to :term:`PN`.
  4627. .. note::
  4628. The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation
  4629. is historical and comes from a time when ":ref:`ref-classes-nativesdk`"
  4630. was a suffix rather than a prefix on the recipe name. When
  4631. ":ref:`ref-classes-nativesdk`" was turned into a prefix, it made sense
  4632. to set :term:`MLPREFIX` for it as well.
  4633. To help understand when :term:`MLPREFIX` might be needed, consider when
  4634. :term:`BBCLASSEXTEND` is used to provide a :ref:`ref-classes-nativesdk`
  4635. version of a recipe in addition to the target version. If that recipe
  4636. declares build-time dependencies on tasks in other recipes by using
  4637. :term:`DEPENDS`, then a dependency on "foo" will automatically get
  4638. rewritten to a dependency on "nativesdk-foo". However, dependencies like
  4639. the following will not get rewritten automatically::
  4640. do_foo[depends] += "recipe:do_foo"
  4641. If you want such a dependency to also get transformed, you can do the
  4642. following::
  4643. do_foo[depends] += "${MLPREFIX}recipe:do_foo"
  4644. :term:`module_autoload`
  4645. This variable has been replaced by the :term:`KERNEL_MODULE_AUTOLOAD`
  4646. variable. You should replace all occurrences of :term:`module_autoload`
  4647. with additions to :term:`KERNEL_MODULE_AUTOLOAD`, for example::
  4648. module_autoload_rfcomm = "rfcomm"
  4649. should now be replaced with::
  4650. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  4651. See the :term:`KERNEL_MODULE_AUTOLOAD` variable for more information.
  4652. :term:`module_conf`
  4653. Specifies `modprobe.d <https://linux.die.net/man/5/modprobe.d>`__
  4654. syntax lines for inclusion in the ``/etc/modprobe.d/modname.conf``
  4655. file.
  4656. You can use this variable anywhere that it can be recognized by the
  4657. kernel recipe or out-of-tree kernel module recipe (e.g. a machine
  4658. configuration file, a distribution configuration file, an append file
  4659. for the recipe, or the recipe itself). If you use this variable, you
  4660. must also be sure to list the module name in the
  4661. :term:`KERNEL_MODULE_PROBECONF`
  4662. variable.
  4663. Here is the general syntax::
  4664. module_conf_module_name = "modprobe.d-syntax"
  4665. You must use the kernel module name override.
  4666. Run ``man modprobe.d`` in the shell to find out more information on
  4667. the exact syntax you want to provide with :term:`module_conf`.
  4668. Including :term:`module_conf` causes the OpenEmbedded build system to
  4669. populate the ``/etc/modprobe.d/modname.conf`` file with
  4670. ``modprobe.d`` syntax lines. Here is an example that adds the options
  4671. ``arg1`` and ``arg2`` to a module named ``mymodule``::
  4672. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  4673. For information on how to specify kernel modules to auto-load on
  4674. boot, see the :term:`KERNEL_MODULE_AUTOLOAD` variable.
  4675. :term:`MODULE_TARBALL_DEPLOY`
  4676. Controls creation of the ``modules-*.tgz`` file. Set this variable to
  4677. "0" to disable creation of this file, which contains all of the
  4678. kernel modules resulting from a kernel build.
  4679. :term:`MODULE_TARBALL_LINK_NAME`
  4680. The link name of the kernel module tarball. This variable is set in
  4681. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4682. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4683. The value
  4684. of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the
  4685. same file, has the following value::
  4686. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4687. See the :term:`MACHINE` variable for additional information.
  4688. :term:`MODULE_TARBALL_NAME`
  4689. The base name of the kernel module tarball. This variable is set in
  4690. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4691. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4692. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4693. :term:`MOUNT_BASE`
  4694. On non-systemd systems (where ``udev-extraconf`` is being used),
  4695. specifies the base directory for auto-mounting filesystems. The
  4696. default value is "/run/media".
  4697. :term:`MOUNT_GROUP`
  4698. On non-systemd systems (where ``udev-extraconf`` is being used),
  4699. specifies the mount group for auto-mounting filesystems. The
  4700. default value is "disk".
  4701. :term:`MULTIMACH_TARGET_SYS`
  4702. Uniquely identifies the type of the target system for which packages
  4703. are being built. This variable allows output for different types of
  4704. target systems to be put into different subdirectories of the same
  4705. output directory.
  4706. The default value of this variable is::
  4707. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  4708. Some classes (e.g. :ref:`ref-classes-cross-canadian`) modify the
  4709. :term:`MULTIMACH_TARGET_SYS` value.
  4710. See the :term:`STAMP` variable for an example. See the
  4711. :term:`STAGING_DIR_TARGET` variable for more information.
  4712. :term:`NATIVELSBSTRING`
  4713. A string identifying the host distribution. Strings consist of the
  4714. host distributor ID followed by the release, as reported by the
  4715. ``lsb_release`` tool or as read from ``/etc/lsb-release``. For
  4716. example, when running a build on Ubuntu 12.10, the value is
  4717. "Ubuntu-12.10". If this information is unable to be determined, the
  4718. value resolves to "Unknown".
  4719. This variable is used by default to isolate native shared state
  4720. packages for different distributions (e.g. to avoid problems with
  4721. ``glibc`` version incompatibilities). Additionally, the variable is
  4722. checked against
  4723. :term:`SANITY_TESTED_DISTROS` if that
  4724. variable is set.
  4725. :term:`NM`
  4726. The minimal command and arguments to run :manpage:`nm <nm(1)>`.
  4727. :term:`NO_GENERIC_LICENSE`
  4728. Avoids QA errors when you use a non-common, non-CLOSED license in a
  4729. recipe. There are packages, such as the linux-firmware package, with many
  4730. licenses that are not in any way common. Also, new licenses are added
  4731. occasionally to avoid introducing a lot of common license files,
  4732. which are only applicable to a specific package.
  4733. :term:`NO_GENERIC_LICENSE` is used to allow copying a license that does
  4734. not exist in common licenses.
  4735. The following example shows how to add :term:`NO_GENERIC_LICENSE` to a
  4736. recipe::
  4737. NO_GENERIC_LICENSE[license_name] = "license_file_in_fetched_source"
  4738. Here is an example that
  4739. uses the ``LICENSE.Abilis.txt`` file as the license from the fetched
  4740. source::
  4741. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  4742. :term:`NO_RECOMMENDATIONS`
  4743. Prevents installation of all "recommended-only" packages.
  4744. Recommended-only packages are packages installed only through the
  4745. :term:`RRECOMMENDS` variable). Setting the
  4746. :term:`NO_RECOMMENDATIONS` variable to "1" turns this feature on::
  4747. NO_RECOMMENDATIONS = "1"
  4748. You can set this variable globally in your ``local.conf`` file or you
  4749. can attach it to a specific image recipe by using the recipe name
  4750. override::
  4751. NO_RECOMMENDATIONS:pn-target_image = "1"
  4752. It is important to realize that if you choose to not install packages
  4753. using this variable and some other packages are dependent on them
  4754. (i.e. listed in a recipe's :term:`RDEPENDS`
  4755. variable), the OpenEmbedded build system ignores your request and
  4756. will install the packages to avoid dependency errors.
  4757. .. note::
  4758. Some recommended packages might be required for certain system
  4759. functionality, such as kernel modules. It is up to you to add
  4760. packages with the :term:`IMAGE_INSTALL` variable.
  4761. This variable is only supported when using the IPK and RPM
  4762. packaging backends. DEB is not supported.
  4763. See the :term:`BAD_RECOMMENDATIONS` and
  4764. the :term:`PACKAGE_EXCLUDE` variables for
  4765. related information.
  4766. :term:`NOAUTOPACKAGEDEBUG`
  4767. Disables auto package from splitting ``.debug`` files. If a recipe
  4768. requires ``FILES:${PN}-dbg`` to be set manually, the
  4769. :term:`NOAUTOPACKAGEDEBUG` can be defined allowing you to define the
  4770. content of the debug package. For example::
  4771. NOAUTOPACKAGEDEBUG = "1"
  4772. FILES:${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  4773. FILES:${PN}-dbg = "/usr/src/debug/"
  4774. FILES:${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  4775. :term:`NON_MULTILIB_RECIPES`
  4776. A list of recipes that should not be built for multilib. OE-Core's
  4777. ``multilib.conf`` file defines a reasonable starting point for this
  4778. list with::
  4779. NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"
  4780. :term:`NVD_DB_VERSION`
  4781. The :term:`NVD_DB_VERSION` variable allows choosing the CVE feed when
  4782. using the :ref:`ref-classes-cve-check` class. It can be one of:
  4783. - ``NVD2`` (default): the NVD feed with API version 2
  4784. - ``FKIE``: the `FKIE-CAD <https://github.com/fkie-cad/nvd-json-data-feeds>`__
  4785. feed reconstruction
  4786. - ``NVD1``: the NVD JSON feed (deprecated)
  4787. In case of a malformed feed name, the ``NVD2`` feed is selected and an
  4788. error is printed.
  4789. :term:`NVDCVE_API_KEY`
  4790. The NVD API key used to retrieve data from the CVE database when
  4791. using :ref:`ref-classes-cve-check`.
  4792. By default, no API key is used, which results in larger delays between API
  4793. requests and limits the number of queries to the public rate limits posted
  4794. at the `NVD developer's page <https://nvd.nist.gov/developers/start-here>`__.
  4795. NVD API keys can be requested through the
  4796. `Request an API Key <https://nvd.nist.gov/developers/request-an-api-key>`__
  4797. page. You can set this variable to the NVD API key in your ``local.conf`` file.
  4798. Example::
  4799. NVDCVE_API_KEY = "fe753&7a2-1427-347d-23ff-b2e2b7ca5f3"
  4800. :term:`OBJCOPY`
  4801. The minimal command and arguments to run :manpage:`objcopy <objcopy(1)>`.
  4802. :term:`OBJDUMP`
  4803. The minimal command and arguments to run :manpage:`objdump <objdump(1)>`.
  4804. :term:`OE_BINCONFIG_EXTRA_MANGLE`
  4805. When inheriting the :ref:`ref-classes-binconfig` class,
  4806. this variable specifies additional arguments passed to the "sed"
  4807. command. The sed command alters any paths in configuration scripts
  4808. that have been set up during compilation. Inheriting this class
  4809. results in all paths in these scripts being changed to point into the
  4810. ``sysroots/`` directory so that all builds that use the script will
  4811. use the correct directories for the cross compiling layout.
  4812. See the ``meta/classes-recipe/binconfig.bbclass`` in the
  4813. :term:`Source Directory` for details on how this class
  4814. applies these additional sed command arguments.
  4815. :term:`OECMAKE_GENERATOR`
  4816. A variable for the :ref:`ref-classes-cmake` class, allowing to choose
  4817. which back-end will be generated by CMake to build an application.
  4818. By default, this variable is set to ``Ninja``, which is faster than GNU
  4819. make, but if building is broken with Ninja, a recipe can use this
  4820. variable to use GNU make instead::
  4821. OECMAKE_GENERATOR = "Unix Makefiles"
  4822. :term:`OE_INIT_ENV_SCRIPT`
  4823. The name of the build environment setup script for the purposes of
  4824. setting up the environment within the extensible SDK. The default
  4825. value is "oe-init-build-env".
  4826. If you use a custom script to set up your build environment, set the
  4827. :term:`OE_INIT_ENV_SCRIPT` variable to its name.
  4828. :term:`OE_TERMINAL`
  4829. Controls how the OpenEmbedded build system spawns interactive
  4830. terminals on the host development system (e.g. using the BitBake
  4831. command with the ``-c devshell`` command-line option). For more
  4832. information, see the ":ref:`dev-manual/development-shell:using a development shell`" section in
  4833. the Yocto Project Development Tasks Manual.
  4834. You can use the following values for the :term:`OE_TERMINAL` variable:
  4835. - auto
  4836. - gnome
  4837. - xfce
  4838. - rxvt
  4839. - screen
  4840. - konsole
  4841. - none
  4842. :term:`OEROOT`
  4843. The directory from which the top-level build environment setup script
  4844. is sourced. The Yocto Project provides a top-level build environment
  4845. setup script: :ref:`structure-core-script`. When you run this
  4846. script, the :term:`OEROOT` variable resolves to the directory that
  4847. contains the script.
  4848. For additional information on how this variable is used, see the
  4849. initialization script.
  4850. :term:`OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS`
  4851. Set build target(s) for build reproducibility testing but activate
  4852. :ref:`shared state <overview-manual/concepts:shared state cache>` build
  4853. for most dependencies (i.e. the ones explicitly listed in DEPENDS, which
  4854. may not be all dependencies, c.f. [depends] varflags, PACKAGE_DEPENDS and
  4855. other implementations). See :doc:`/test-manual/reproducible-builds`.
  4856. :term:`OEQA_REPRODUCIBLE_TEST_PACKAGE`
  4857. Set the package manager(s) for build reproducibility testing.
  4858. See :yocto_git:`reproducible.py </poky/tree/meta/lib/oeqa/selftest/cases/reproducible.py>`
  4859. and :doc:`/test-manual/reproducible-builds`.
  4860. :term:`OEQA_REPRODUCIBLE_TEST_TARGET`
  4861. Set build target for build reproducibility testing. By default
  4862. all available recipes are compiled with "bitbake world", see also :term:`EXCLUDE_FROM_WORLD`
  4863. and :doc:`/test-manual/reproducible-builds`.
  4864. :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`
  4865. Set build targets which can be rebuilt using :ref:`shared state <overview-manual/concepts:shared state cache>`
  4866. when running build reproducibility tests. See :doc:`/test-manual/reproducible-builds`.
  4867. :term:`OLDEST_KERNEL`
  4868. Declares the oldest version of the Linux kernel that the produced
  4869. binaries must support. This variable is passed into the build of the
  4870. Embedded GNU C Library (``glibc``).
  4871. The default for this variable comes from the
  4872. ``meta/conf/bitbake.conf`` configuration file. You can override this
  4873. default by setting the variable in a custom distribution
  4874. configuration file.
  4875. :term:`OPKG_MAKE_INDEX_EXTRA_PARAMS`
  4876. Specifies extra parameters for the ``opkg-make-index`` command.
  4877. :term:`OPKGBUILDCMD`
  4878. The variable :term:`OPKGBUILDCMD` specifies the command used to build opkg
  4879. packages when using the :ref:`ref-classes-package_ipk` class. It is
  4880. defined in :ref:`ref-classes-package_ipk` as::
  4881. OPKGBUILDCMD ??= 'opkg-build -Z zstd -a "${ZSTD_DEFAULTS}"'
  4882. :term:`OVERLAYFS_ETC_DEVICE`
  4883. When the :ref:`ref-classes-overlayfs-etc` class is
  4884. inherited, specifies the device to be mounted for the read/write
  4885. layer of ``/etc``. There is no default, so you must set this if you
  4886. wish to enable :ref:`ref-classes-overlayfs-etc`, for
  4887. example, assuming ``/dev/mmcblk0p2`` was the desired device::
  4888. OVERLAYFS_ETC_DEVICE = "/dev/mmcblk0p2"
  4889. :term:`OVERLAYFS_ETC_EXPOSE_LOWER`
  4890. When the :ref:`ref-classes-overlayfs-etc` class is
  4891. inherited, if set to "1" then a read-only access to the original
  4892. ``/etc`` content will be provided as a ``lower/`` subdirectory of
  4893. :term:`OVERLAYFS_ETC_MOUNT_POINT`. The default value is "0".
  4894. :term:`OVERLAYFS_ETC_FSTYPE`
  4895. When the :ref:`ref-classes-overlayfs-etc` class is
  4896. inherited, specifies the file system type for the read/write
  4897. layer of ``/etc``. There is no default, so you must set this if you
  4898. wish to enable :ref:`ref-classes-overlayfs-etc`,
  4899. for example, assuming the file system is ext4::
  4900. OVERLAYFS_ETC_FSTYPE = "ext4"
  4901. :term:`OVERLAYFS_ETC_MOUNT_OPTIONS`
  4902. When the :ref:`ref-classes-overlayfs-etc` class is
  4903. inherited, specifies the mount options for the read-write layer.
  4904. The default value is "defaults".
  4905. :term:`OVERLAYFS_ETC_MOUNT_POINT`
  4906. When the :ref:`ref-classes-overlayfs-etc` class is
  4907. inherited, specifies the parent mount path for the filesystem layers.
  4908. There is no default, so you must set this if you wish to enable
  4909. :ref:`ref-classes-overlayfs-etc`, for example if the desired path is
  4910. "/data"::
  4911. OVERLAYFS_ETC_MOUNT_POINT = "/data"
  4912. :term:`OVERLAYFS_ETC_USE_ORIG_INIT_NAME`
  4913. When the :ref:`ref-classes-overlayfs-etc` class is inherited, controls
  4914. how the generated init will be named. For more information, see the
  4915. :ref:`ref-classes-overlayfs-etc` class documentation. The default value
  4916. is "1".
  4917. :term:`OVERLAYFS_MOUNT_POINT`
  4918. When inheriting the :ref:`ref-classes-overlayfs` class,
  4919. specifies mount point(s) to be used. For example::
  4920. OVERLAYFS_MOUNT_POINT[data] = "/data"
  4921. The assumes you have a ``data.mount`` systemd unit defined elsewhere in
  4922. your BSP (e.g. in ``systemd-machine-units`` recipe) and it is installed
  4923. into the image. For more information see :ref:`ref-classes-overlayfs`.
  4924. .. note::
  4925. Although the :ref:`ref-classes-overlayfs` class is
  4926. inherited by individual recipes, :term:`OVERLAYFS_MOUNT_POINT`
  4927. should be set in your machine configuration.
  4928. :term:`OVERLAYFS_QA_SKIP`
  4929. When inheriting the :ref:`ref-classes-overlayfs` class,
  4930. provides the ability to disable QA checks for particular overlayfs
  4931. mounts. For example::
  4932. OVERLAYFS_QA_SKIP[data] = "mount-configured"
  4933. .. note::
  4934. Although the :ref:`ref-classes-overlayfs` class is
  4935. inherited by individual recipes, :term:`OVERLAYFS_QA_SKIP`
  4936. should be set in your machine configuration.
  4937. :term:`OVERLAYFS_WRITABLE_PATHS`
  4938. When inheriting the :ref:`ref-classes-overlayfs` class,
  4939. specifies writable paths used at runtime for the recipe. For
  4940. example::
  4941. OVERLAYFS_WRITABLE_PATHS[data] = "/usr/share/my-custom-application"
  4942. :term:`OVERRIDES`
  4943. A colon-separated list of overrides that currently apply. Overrides
  4944. are a BitBake mechanism that allows variables to be selectively
  4945. overridden at the end of parsing. The set of overrides in
  4946. :term:`OVERRIDES` represents the "state" during building, which includes
  4947. the current recipe being built, the machine for which it is being
  4948. built, and so forth.
  4949. As an example, if the string "an-override" appears as an element in
  4950. the colon-separated list in :term:`OVERRIDES`, then the following
  4951. assignment will override ``FOO`` with the value "overridden" at the
  4952. end of parsing::
  4953. FOO:an-override = "overridden"
  4954. See the
  4955. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  4956. section in the BitBake User Manual for more information on the
  4957. overrides mechanism.
  4958. The default value of :term:`OVERRIDES` includes the values of the
  4959. :term:`CLASSOVERRIDE`,
  4960. :term:`MACHINEOVERRIDES`, and
  4961. :term:`DISTROOVERRIDES` variables. Another
  4962. important override included by default is ``pn-${PN}``. This override
  4963. allows variables to be set for a single recipe within configuration
  4964. (``.conf``) files. Here is an example::
  4965. FOO:pn-myrecipe = "myrecipe-specific value"
  4966. .. note::
  4967. An easy way to see what overrides apply is to search for :term:`OVERRIDES`
  4968. in the output of the ``bitbake -e`` command. See the
  4969. ":ref:`dev-manual/debugging:viewing variable values`" section in the Yocto
  4970. Project Development Tasks Manual for more information.
  4971. :term:`P`
  4972. The recipe name and version. :term:`P` is comprised of the following::
  4973. ${PN}-${PV}
  4974. :term:`P4DIR`
  4975. See :term:`bitbake:P4DIR` in the BitBake manual.
  4976. :term:`PACKAGE_ADD_METADATA`
  4977. This variable defines additional metadata to add to packages.
  4978. You may find you need to inject additional metadata into packages.
  4979. This variable allows you to do that by setting the injected data as
  4980. the value. Multiple fields can be added by splitting the content with
  4981. the literal separator "\n".
  4982. The suffixes '_IPK', '_DEB', or '_RPM' can be applied to the variable
  4983. to do package type specific settings. It can also be made package
  4984. specific by using the package name as a suffix.
  4985. You can find out more about applying this variable in the
  4986. ":ref:`dev-manual/packages:adding custom metadata to packages`"
  4987. section in the Yocto Project Development Tasks Manual.
  4988. :term:`PACKAGE_ARCH`
  4989. The architecture of the resulting package or packages.
  4990. By default, the value of this variable is set to
  4991. :term:`TUNE_PKGARCH` when building for the
  4992. target, :term:`BUILD_ARCH` when building for the
  4993. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building for the
  4994. SDK.
  4995. .. note::
  4996. See :term:`SDK_ARCH` for more information.
  4997. However, if your recipe's output packages are built specific to the
  4998. target machine rather than generally for the architecture of the
  4999. machine, you should set :term:`PACKAGE_ARCH` to the value of
  5000. :term:`MACHINE_ARCH` in the recipe as follows::
  5001. PACKAGE_ARCH = "${MACHINE_ARCH}"
  5002. :term:`PACKAGE_ARCHS`
  5003. Specifies a list of architectures compatible with the target machine.
  5004. This variable is set automatically and should not normally be
  5005. hand-edited. Entries are separated using spaces and listed in order
  5006. of priority. The default value for :term:`PACKAGE_ARCHS` is "all any
  5007. noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  5008. :term:`PACKAGE_BEFORE_PN`
  5009. Enables easily adding packages to :term:`PACKAGES` before ``${PN}`` so
  5010. that those added packages can pick up files that would normally be
  5011. included in the default package.
  5012. :term:`PACKAGE_CLASSES`
  5013. This variable, which is set in the ``local.conf`` configuration file
  5014. found in the ``conf`` folder of the
  5015. :term:`Build Directory`, specifies the package manager the
  5016. OpenEmbedded build system uses when packaging data.
  5017. You can provide one or more of the following arguments for the
  5018. variable::
  5019. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
  5020. The build system uses only the first argument in the list as the
  5021. package manager when creating your image or SDK. However, packages
  5022. will be created using any additional packaging classes you specify.
  5023. For example, if you use the following in your ``local.conf`` file::
  5024. PACKAGE_CLASSES ?= "package_ipk"
  5025. The OpenEmbedded build system uses
  5026. the IPK package manager to create your image or SDK.
  5027. For information on packaging and build performance effects as a
  5028. result of the package manager in use, see the
  5029. ":ref:`ref-classes-package`" section.
  5030. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  5031. Determines how to split up and package debug and source information
  5032. when creating debugging packages to be used with the GNU Project
  5033. Debugger (GDB). In general, based on the value of this variable,
  5034. you can combine the source and debug info in a single package,
  5035. you can break out the source into a separate package that can be
  5036. installed independently, or you can choose to not have the source
  5037. packaged at all.
  5038. The possible values of :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable:
  5039. - "``.debug``": All debugging and source info is placed in a single
  5040. ``*-dbg`` package; debug symbol files are placed next to the
  5041. binary in a ``.debug`` directory so that, if a binary is installed
  5042. into ``/bin``, the corresponding debug symbol file is installed
  5043. in ``/bin/.debug``. Source files are installed in the same ``*-dbg``
  5044. package under ``/usr/src/debug``.
  5045. - "``debug-file-directory``": As above, all debugging and source info
  5046. is placed in a single ``*-dbg`` package; debug symbol files are
  5047. placed entirely under the directory ``/usr/lib/debug`` and separated
  5048. by the path from where the binary is installed, so that if a binary
  5049. is installed in ``/bin``, the corresponding debug symbols are installed
  5050. in ``/usr/lib/debug/bin``, and so on. As above, source is installed
  5051. in the same package under ``/usr/src/debug``.
  5052. - "``debug-with-srcpkg``": Debugging info is placed in the standard
  5053. ``*-dbg`` package as with the ``.debug`` value, while source is
  5054. placed in a separate ``*-src`` package, which can be installed
  5055. independently. This is the default setting for this variable,
  5056. as defined in Poky's ``bitbake.conf`` file.
  5057. - "``debug-without-src``": The same behavior as with the ``.debug``
  5058. setting, but no source is packaged at all.
  5059. .. note::
  5060. Much of the above package splitting can be overridden via
  5061. use of the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable.
  5062. You can find out more about debugging using GDB by reading the
  5063. ":ref:`dev-manual/debugging:debugging with the gnu project debugger (gdb) remotely`" section
  5064. in the Yocto Project Development Tasks Manual.
  5065. :term:`PACKAGE_EXCLUDE`
  5066. Lists packages that should not be installed into an image. For
  5067. example::
  5068. PACKAGE_EXCLUDE = "package_name package_name package_name ..."
  5069. You can set this variable globally in your ``local.conf`` file or you
  5070. can attach it to a specific image recipe by using the recipe name
  5071. override::
  5072. PACKAGE_EXCLUDE:pn-target_image = "package_name"
  5073. If you choose to not install a package using this variable and some
  5074. other package is dependent on it (i.e. listed in a recipe's
  5075. :term:`RDEPENDS` variable), the OpenEmbedded build
  5076. system generates a fatal installation error. Because the build system
  5077. halts the process with a fatal error, you can use the variable with
  5078. an iterative development process to remove specific components from a
  5079. system.
  5080. This variable is supported only when using the IPK and RPM
  5081. packaging backends. DEB is not supported.
  5082. See the :term:`NO_RECOMMENDATIONS` and the
  5083. :term:`BAD_RECOMMENDATIONS` variables for
  5084. related information.
  5085. :term:`PACKAGE_EXCLUDE_COMPLEMENTARY`
  5086. Prevents specific packages from being installed when you are
  5087. installing complementary packages.
  5088. You might find that you want to prevent installing certain packages
  5089. when you are installing complementary packages. For example, if you
  5090. are using :term:`IMAGE_FEATURES` to install
  5091. ``dev-pkgs``, you might not want to install all packages from a
  5092. particular multilib. If you find yourself in this situation, you can
  5093. use the :term:`PACKAGE_EXCLUDE_COMPLEMENTARY` variable to specify regular
  5094. expressions to match the packages you want to exclude.
  5095. :term:`PACKAGE_EXTRA_ARCHS`
  5096. Specifies the list of architectures compatible with the device CPU.
  5097. This variable is useful when you build for several different devices
  5098. that use miscellaneous processors such as XScale and ARM926-EJS.
  5099. :term:`PACKAGE_FEED_ARCHS`
  5100. Optionally specifies the package architectures used as part of the
  5101. package feed URIs during the build. When used, the
  5102. :term:`PACKAGE_FEED_ARCHS` variable is appended to the final package feed
  5103. URI, which is constructed using the
  5104. :term:`PACKAGE_FEED_URIS` and
  5105. :term:`PACKAGE_FEED_BASE_PATHS`
  5106. variables.
  5107. .. note::
  5108. You can use the :term:`PACKAGE_FEED_ARCHS`
  5109. variable to allow specific package architectures. If you do
  5110. not need to allow specific architectures, which is a common
  5111. case, you can omit this variable. Omitting the variable results in
  5112. all available architectures for the current machine being included
  5113. into remote package feeds.
  5114. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  5115. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  5116. defined in your ``local.conf`` file::
  5117. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  5118. https://example.com/packagerepos/updates"
  5119. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  5120. PACKAGE_FEED_ARCHS = "all core2-64"
  5121. Given these settings, the resulting package feeds are as follows:
  5122. .. code-block:: none
  5123. https://example.com/packagerepos/release/rpm/all
  5124. https://example.com/packagerepos/release/rpm/core2-64
  5125. https://example.com/packagerepos/release/rpm-dev/all
  5126. https://example.com/packagerepos/release/rpm-dev/core2-64
  5127. https://example.com/packagerepos/updates/rpm/all
  5128. https://example.com/packagerepos/updates/rpm/core2-64
  5129. https://example.com/packagerepos/updates/rpm-dev/all
  5130. https://example.com/packagerepos/updates/rpm-dev/core2-64
  5131. :term:`PACKAGE_FEED_BASE_PATHS`
  5132. Specifies the base path used when constructing package feed URIs. The
  5133. :term:`PACKAGE_FEED_BASE_PATHS` variable makes up the middle portion of a
  5134. package feed URI used by the OpenEmbedded build system. The base path
  5135. lies between the :term:`PACKAGE_FEED_URIS`
  5136. and :term:`PACKAGE_FEED_ARCHS` variables.
  5137. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  5138. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  5139. defined in your ``local.conf`` file::
  5140. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  5141. https://example.com/packagerepos/updates"
  5142. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  5143. PACKAGE_FEED_ARCHS = "all core2-64"
  5144. Given these settings, the resulting package feeds are as follows:
  5145. .. code-block:: none
  5146. https://example.com/packagerepos/release/rpm/all
  5147. https://example.com/packagerepos/release/rpm/core2-64
  5148. https://example.com/packagerepos/release/rpm-dev/all
  5149. https://example.com/packagerepos/release/rpm-dev/core2-64
  5150. https://example.com/packagerepos/updates/rpm/all
  5151. https://example.com/packagerepos/updates/rpm/core2-64
  5152. https://example.com/packagerepos/updates/rpm-dev/all
  5153. https://example.com/packagerepos/updates/rpm-dev/core2-64
  5154. :term:`PACKAGE_FEED_URIS`
  5155. Specifies the front portion of the package feed URI used by the
  5156. OpenEmbedded build system. Each final package feed URI is comprised
  5157. of :term:`PACKAGE_FEED_URIS`,
  5158. :term:`PACKAGE_FEED_BASE_PATHS`, and
  5159. :term:`PACKAGE_FEED_ARCHS` variables.
  5160. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  5161. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  5162. defined in your ``local.conf`` file::
  5163. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  5164. https://example.com/packagerepos/updates"
  5165. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  5166. PACKAGE_FEED_ARCHS = "all core2-64"
  5167. Given these settings, the resulting package feeds are as follows:
  5168. .. code-block:: none
  5169. https://example.com/packagerepos/release/rpm/all
  5170. https://example.com/packagerepos/release/rpm/core2-64
  5171. https://example.com/packagerepos/release/rpm-dev/all
  5172. https://example.com/packagerepos/release/rpm-dev/core2-64
  5173. https://example.com/packagerepos/updates/rpm/all
  5174. https://example.com/packagerepos/updates/rpm/core2-64
  5175. https://example.com/packagerepos/updates/rpm-dev/all
  5176. https://example.com/packagerepos/updates/rpm-dev/core2-64
  5177. :term:`PACKAGE_INSTALL`
  5178. The final list of packages passed to the package manager for
  5179. installation into the image.
  5180. Because the package manager controls actual installation of all
  5181. packages, the list of packages passed using :term:`PACKAGE_INSTALL` is
  5182. not the final list of packages that are actually installed. This
  5183. variable is internal to the image construction code. Consequently, in
  5184. general, you should use the
  5185. :term:`IMAGE_INSTALL` variable to specify
  5186. packages for installation. The exception to this is when working with
  5187. the :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  5188. image. When working with an initial RAM filesystem (:term:`Initramfs`) image,
  5189. use the :term:`PACKAGE_INSTALL` variable. For information on creating an
  5190. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  5191. in the Yocto Project Development Tasks Manual.
  5192. :term:`PACKAGE_INSTALL_ATTEMPTONLY`
  5193. Specifies a list of packages the OpenEmbedded build system attempts
  5194. to install when creating an image. If a listed package fails to
  5195. install, the build system does not generate an error. This variable
  5196. is generally not user-defined.
  5197. :term:`PACKAGE_PREPROCESS_FUNCS`
  5198. Specifies a list of functions run to pre-process the
  5199. :term:`PKGD` directory prior to splitting the files out
  5200. to individual packages.
  5201. :term:`PACKAGE_WRITE_DEPS`
  5202. Specifies a list of dependencies for post-installation and
  5203. pre-installation scripts on native/cross tools. If your
  5204. post-installation or pre-installation script can execute at root filesystem
  5205. creation time rather than on the target but depends on a native tool
  5206. in order to execute, you need to list the tools in
  5207. :term:`PACKAGE_WRITE_DEPS`.
  5208. For information on running post-installation scripts, see the
  5209. ":ref:`dev-manual/new-recipe:post-installation scripts`"
  5210. section in the Yocto Project Development Tasks Manual.
  5211. :term:`PACKAGECONFIG`
  5212. This variable provides a means of enabling or disabling features of a
  5213. recipe on a per-recipe basis. :term:`PACKAGECONFIG` blocks are defined in
  5214. recipes when you specify features and then arguments that define
  5215. feature behaviors. Here is the basic block structure (broken over
  5216. multiple lines for readability)::
  5217. PACKAGECONFIG ??= "f1 f2 f3 ..."
  5218. PACKAGECONFIG[f1] = "\
  5219. --with-f1, \
  5220. --without-f1, \
  5221. build-deps-for-f1, \
  5222. runtime-deps-for-f1, \
  5223. runtime-recommends-for-f1, \
  5224. packageconfig-conflicts-for-f1"
  5225. PACKAGECONFIG[f2] = "\
  5226. ... and so on and so on ...
  5227. The :term:`PACKAGECONFIG` variable itself specifies a space-separated
  5228. list of the features to enable. Following the features, you can
  5229. determine the behavior of each feature by providing up to six
  5230. order-dependent arguments, which are separated by commas. You can
  5231. omit any argument you like but must retain the separating commas. The
  5232. order is important and specifies the following:
  5233. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  5234. if the feature is enabled.
  5235. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  5236. if the feature is disabled.
  5237. #. Additional build dependencies (:term:`DEPENDS`)
  5238. that should be added if the feature is enabled.
  5239. #. Additional runtime dependencies (:term:`RDEPENDS`)
  5240. that should be added if the feature is enabled.
  5241. #. Additional runtime recommendations
  5242. (:term:`RRECOMMENDS`) that should be added if
  5243. the feature is enabled.
  5244. #. Any conflicting (that is, mutually exclusive) :term:`PACKAGECONFIG`
  5245. settings for this feature.
  5246. Consider the following :term:`PACKAGECONFIG` block taken from the
  5247. ``librsvg`` recipe. In this example the feature is ``gtk``, which has
  5248. three arguments that determine the feature's behavior::
  5249. PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3"
  5250. The
  5251. ``--with-gtk3`` and ``gtk+3`` arguments apply only if the feature is
  5252. enabled. In this case, ``--with-gtk3`` is added to the configure
  5253. script argument list and ``gtk+3`` is added to :term:`DEPENDS`. On the
  5254. other hand, if the feature is disabled say through a ``.bbappend``
  5255. file in another layer, then the second argument ``--without-gtk3`` is
  5256. added to the configure script instead.
  5257. The basic :term:`PACKAGECONFIG` structure previously described holds true
  5258. regardless of whether you are creating a block or changing a block.
  5259. When creating a block, use the structure inside your recipe.
  5260. If you want to change an existing :term:`PACKAGECONFIG` block, you can do
  5261. so one of two ways:
  5262. - *Append file:* Create an append file named
  5263. ``recipename.bbappend`` in your layer and override the value of
  5264. :term:`PACKAGECONFIG`. You can either completely override the
  5265. variable::
  5266. PACKAGECONFIG = "f4 f5"
  5267. Or, you can just append the variable::
  5268. PACKAGECONFIG:append = " f4"
  5269. - *Configuration file:* This method is identical to changing the
  5270. block through an append file except you edit your ``local.conf``
  5271. or ``mydistro.conf`` file. As with append files previously
  5272. described, you can either completely override the variable::
  5273. PACKAGECONFIG:pn-recipename = "f4 f5"
  5274. Or, you can just amend the variable::
  5275. PACKAGECONFIG:append:pn-recipename = " f4"
  5276. Consider the following example of a :ref:`ref-classes-cmake` recipe with a systemd service
  5277. in which :term:`PACKAGECONFIG` is used to transform the systemd service
  5278. into a feature that can be easily enabled or disabled via :term:`PACKAGECONFIG`::
  5279. example.c
  5280. example.service
  5281. CMakeLists.txt
  5282. The ``CMakeLists.txt`` file contains::
  5283. if(WITH_SYSTEMD)
  5284. install(FILES ${PROJECT_SOURCE_DIR}/example.service DESTINATION /etc/systemd/systemd)
  5285. endif(WITH_SYSTEMD)
  5286. In order to enable the installation of ``example.service`` we need to
  5287. ensure that ``-DWITH_SYSTEMD=ON`` is passed to the ``cmake`` command
  5288. execution. Recipes that have ``CMakeLists.txt`` generally inherit the
  5289. :ref:`ref-classes-cmake` class, that runs ``cmake`` with
  5290. :term:`EXTRA_OECMAKE`, which :term:`PACKAGECONFIG_CONFARGS` will be
  5291. appended to. Now, knowing that :term:`PACKAGECONFIG_CONFARGS` is
  5292. automatically filled with either the first or second element of
  5293. :term:`PACKAGECONFIG` flag value, the recipe would be like::
  5294. inherit cmake
  5295. PACKAGECONFIG = "systemd"
  5296. PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF"
  5297. A side note to this recipe is to check if ``systemd`` is in fact the used :term:`INIT_MANAGER`
  5298. or not::
  5299. PACKAGECONFIG = "${@'systemd' if d.getVar('INIT_MANAGER') == 'systemd' else ''}"
  5300. :term:`PACKAGECONFIG_CONFARGS`
  5301. A space-separated list of configuration options generated from the
  5302. :term:`PACKAGECONFIG` setting.
  5303. Classes such as :ref:`ref-classes-autotools` and :ref:`ref-classes-cmake`
  5304. use :term:`PACKAGECONFIG_CONFARGS` to pass :term:`PACKAGECONFIG` options
  5305. to ``configure`` and ``cmake``, respectively. If you are using
  5306. :term:`PACKAGECONFIG` but not a class that handles the
  5307. :ref:`ref-tasks-configure` task, then you need to use
  5308. :term:`PACKAGECONFIG_CONFARGS` appropriately.
  5309. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY`
  5310. For recipes inheriting the :ref:`ref-classes-packagegroup` class, setting
  5311. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the
  5312. normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth)
  5313. should not be automatically created by the ``packagegroup`` recipe,
  5314. which is the default behavior.
  5315. :term:`PACKAGES`
  5316. The list of packages the recipe creates. The default value is the
  5317. following::
  5318. ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  5319. During packaging, the :ref:`ref-tasks-package` task
  5320. goes through :term:`PACKAGES` and uses the :term:`FILES`
  5321. variable corresponding to each package to assign files to the
  5322. package. If a file matches the :term:`FILES` variable for more than one
  5323. package in :term:`PACKAGES`, it will be assigned to the earliest
  5324. (leftmost) package.
  5325. Packages in the variable's list that are empty (i.e. where none of
  5326. the patterns in ``FILES:``\ pkg match any files installed by the
  5327. :ref:`ref-tasks-install` task) are not generated,
  5328. unless generation is forced through the
  5329. :term:`ALLOW_EMPTY` variable.
  5330. :term:`PACKAGES_DYNAMIC`
  5331. A promise that your recipe satisfies runtime dependencies for
  5332. optional modules that are found in other recipes.
  5333. :term:`PACKAGES_DYNAMIC` does not actually satisfy the dependencies, it
  5334. only states that they should be satisfied. For example, if a hard,
  5335. runtime dependency (:term:`RDEPENDS`) of another
  5336. package is satisfied at build time through the :term:`PACKAGES_DYNAMIC`
  5337. variable, but a package with the module name is never actually
  5338. produced, then the other package will be broken. Thus, if you attempt
  5339. to include that package in an image, you will get a dependency
  5340. failure from the packaging system during the
  5341. :ref:`ref-tasks-rootfs` task.
  5342. Typically, if there is a chance that such a situation can occur and
  5343. the package that is not created is valid without the dependency being
  5344. satisfied, then you should use :term:`RRECOMMENDS`
  5345. (a soft runtime dependency) instead of :term:`RDEPENDS`.
  5346. For an example of how to use the :term:`PACKAGES_DYNAMIC` variable when
  5347. you are splitting packages, see the
  5348. ":ref:`dev-manual/packages:handling optional module packaging`"
  5349. section in the Yocto Project Development Tasks Manual.
  5350. :term:`PACKAGESPLITFUNCS`
  5351. Specifies a list of functions run to perform additional splitting of
  5352. files into individual packages. Recipes can either prepend to this
  5353. variable or prepend to the ``populate_packages`` function in order to
  5354. perform additional package splitting. In either case, the function
  5355. should set :term:`PACKAGES`,
  5356. :term:`FILES`, :term:`RDEPENDS` and
  5357. other packaging variables appropriately in order to perform the
  5358. desired splitting.
  5359. :term:`PARALLEL_MAKE`
  5360. Extra options passed to the build tool command (``make``,
  5361. ``ninja`` or more specific build engines, like the Go language one)
  5362. during the :ref:`ref-tasks-compile` task, to specify parallel compilation
  5363. on the local build host. This variable is usually in the form "-j x",
  5364. where x represents the maximum number of parallel threads such engines
  5365. can run.
  5366. .. note::
  5367. For software compiled by ``make``, in order for :term:`PARALLEL_MAKE`
  5368. to be effective, ``make`` must be called with
  5369. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  5370. way to ensure this is to use the ``oe_runmake`` function.
  5371. By default, the OpenEmbedded build system automatically sets this
  5372. variable to be equal to the number of cores the build system uses.
  5373. .. note::
  5374. If the software being built experiences dependency issues during
  5375. the :ref:`ref-tasks-compile` task that result in race conditions, you can clear
  5376. the :term:`PARALLEL_MAKE` variable within the recipe as a workaround. For
  5377. information on addressing race conditions, see the
  5378. ":ref:`dev-manual/debugging:debugging parallel make races`"
  5379. section in the Yocto Project Development Tasks Manual.
  5380. For single socket systems (i.e. one CPU), you should not have to
  5381. override this variable to gain optimal parallelism during builds.
  5382. However, if you have very large systems that employ multiple physical
  5383. CPUs, you might want to make sure the :term:`PARALLEL_MAKE` variable is
  5384. not set higher than "-j 20".
  5385. For more information on speeding up builds, see the
  5386. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  5387. section in the Yocto Project Development Tasks Manual.
  5388. :term:`PARALLEL_MAKEINST`
  5389. Extra options passed to the build tool install command
  5390. (``make install``, ``ninja install`` or more specific ones)
  5391. during the :ref:`ref-tasks-install` task in order to specify
  5392. parallel installation. This variable defaults to the value of
  5393. :term:`PARALLEL_MAKE`.
  5394. .. note::
  5395. For software compiled by ``make``, in order for :term:`PARALLEL_MAKEINST`
  5396. to be effective, ``make`` must be called with
  5397. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  5398. way to ensure this is to use the ``oe_runmake`` function.
  5399. If the software being built experiences dependency issues during
  5400. the :ref:`ref-tasks-install` task that result in race conditions, you can
  5401. clear the :term:`PARALLEL_MAKEINST` variable within the recipe as a
  5402. workaround. For information on addressing race conditions, see the
  5403. ":ref:`dev-manual/debugging:debugging parallel make races`"
  5404. section in the Yocto Project Development Tasks Manual.
  5405. :term:`PATCHRESOLVE`
  5406. Determines the action to take when a patch fails. You can set this
  5407. variable to one of two values: "noop" and "user".
  5408. The default value of "noop" causes the build to simply fail when the
  5409. OpenEmbedded build system cannot successfully apply a patch. Setting
  5410. the value to "user" causes the build system to launch a shell and
  5411. places you in the right location so that you can manually resolve the
  5412. conflicts.
  5413. Set this variable in your ``local.conf`` file.
  5414. :term:`PATCHTOOL`
  5415. Specifies the utility used to apply patches for a recipe during the
  5416. :ref:`ref-tasks-patch` task. You can specify one of
  5417. three utilities: "patch", "quilt", or "git". The default utility used
  5418. is "quilt" except for the quilt-native recipe itself. Because the
  5419. quilt tool is not available at the time quilt-native is being
  5420. patched, it uses "patch".
  5421. If you wish to use an alternative patching tool, set the variable in
  5422. the recipe using one of the following::
  5423. PATCHTOOL = "patch"
  5424. PATCHTOOL = "quilt"
  5425. PATCHTOOL = "git"
  5426. :term:`PE`
  5427. The epoch of the recipe. By default, this variable is unset. The
  5428. variable is used to make upgrades possible when the versioning scheme
  5429. changes in some backwards incompatible way.
  5430. :term:`PE` is the default value of the :term:`PKGE` variable.
  5431. :term:`PEP517_WHEEL_PATH`
  5432. When used by recipes that inherit the :ref:`ref-classes-python_pep517`
  5433. class, denotes the path to ``dist/`` (short for distribution) where the
  5434. binary archive ``wheel`` is built.
  5435. :term:`PERSISTENT_DIR`
  5436. See :term:`bitbake:PERSISTENT_DIR` in the BitBake manual.
  5437. :term:`PF`
  5438. Specifies the recipe or package name and includes all version and
  5439. revision numbers (i.e. ``glibc-2.13-r20+svnr15508/`` and
  5440. ``bash-4.2-r1/``). This variable is comprised of the following:
  5441. ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`}
  5442. :term:`PIXBUF_PACKAGES`
  5443. When inheriting the :ref:`ref-classes-pixbufcache`
  5444. class, this variable identifies packages that contain the pixbuf
  5445. loaders used with ``gdk-pixbuf``. By default, the
  5446. :ref:`ref-classes-pixbufcache` class assumes that
  5447. the loaders are in the recipe's main package (i.e.
  5448. ``${``\ :term:`PN`\ ``}``). Use this variable if the
  5449. loaders you need are in a package other than that main package.
  5450. :term:`PKG`
  5451. The name of the resulting package created by the OpenEmbedded build
  5452. system.
  5453. .. note::
  5454. When using the :term:`PKG` variable, you must use a package name override.
  5455. For example, when the :ref:`ref-classes-debian` class renames the output
  5456. package, it does so by setting ``PKG:packagename``.
  5457. :term:`PKG_CONFIG_PATH`
  5458. The path to ``pkg-config`` files for the current build context.
  5459. ``pkg-config`` reads this variable from the environment.
  5460. :term:`PKGD`
  5461. Points to the destination directory for files to be packaged before
  5462. they are split into individual packages. This directory defaults to
  5463. the following::
  5464. ${WORKDIR}/package
  5465. Do not change this default.
  5466. :term:`PKGDATA_DIR`
  5467. Points to a shared, global-state directory that holds data generated
  5468. during the packaging process. During the packaging process, the
  5469. :ref:`ref-tasks-packagedata` task packages data
  5470. for each recipe and installs it into this temporary, shared area.
  5471. This directory defaults to the following, which you should not
  5472. change::
  5473. ${STAGING_DIR_HOST}/pkgdata
  5474. For examples of how this data is used, see the
  5475. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5476. section in the Yocto Project Overview and Concepts Manual and the
  5477. ":ref:`dev-manual/debugging:viewing package information with ``oe-pkgdata-util```"
  5478. section in the Yocto Project Development Tasks Manual. For more
  5479. information on the shared, global-state directory, see
  5480. :term:`STAGING_DIR_HOST`.
  5481. :term:`PKGDEST`
  5482. Points to the parent directory for files to be packaged after they
  5483. have been split into individual packages. This directory defaults to
  5484. the following::
  5485. ${WORKDIR}/packages-split
  5486. Under this directory, the build system creates directories for each
  5487. package specified in :term:`PACKAGES`. Do not change
  5488. this default.
  5489. :term:`PKGDESTWORK`
  5490. Points to a temporary work area where the
  5491. :ref:`ref-tasks-package` task saves package metadata.
  5492. The :term:`PKGDESTWORK` location defaults to the following::
  5493. ${WORKDIR}/pkgdata
  5494. Do not change this default.
  5495. The :ref:`ref-tasks-packagedata` task copies the
  5496. package metadata from :term:`PKGDESTWORK` to
  5497. :term:`PKGDATA_DIR` to make it available globally.
  5498. :term:`PKGE`
  5499. The epoch of the package(s) built by the recipe. By default, :term:`PKGE`
  5500. is set to :term:`PE`.
  5501. :term:`PKGR`
  5502. The revision of the package(s) built by the recipe. By default,
  5503. :term:`PKGR` is set to :term:`PR`.
  5504. :term:`PKGV`
  5505. The version of the package(s) built by the recipe. By default,
  5506. :term:`PKGV` is set to :term:`PV`.
  5507. If :term:`PV` contains the ``+`` sign, source control information will be
  5508. included in :term:`PKGV` later in the packaging phase. For more
  5509. information, see the :doc:`/dev-manual/external-scm` section of the Yocto
  5510. Project Development Tasks Manual.
  5511. .. warning::
  5512. Since source control information is included in a late stage by the
  5513. :ref:`ref-classes-package` class, it cannot be seen from the BitBake
  5514. environment with ``bitbake -e`` or ``bitbake-getvar``. Instead, after
  5515. the package is built, the version information can be retrieved with
  5516. ``oe-pkgdata-util package-info <package name>``. See the
  5517. :ref:`dev-manual/debugging:Viewing Package Information with
  5518. ``oe-pkgdata-util``` section of the Yocto Project Development Tasks
  5519. Manual for more information on ``oe-pkgdata-util``.
  5520. :term:`PN`
  5521. This variable can have two separate functions depending on the
  5522. context: a recipe name or a resulting package name.
  5523. :term:`PN` refers to a recipe name in the context of a file used by the
  5524. OpenEmbedded build system as input to create a package. The name is
  5525. normally extracted from the recipe file name. For example, if the
  5526. recipe is named ``expat_2.0.1.bb``, then the default value of :term:`PN`
  5527. will be "expat".
  5528. The variable refers to a package name in the context of a file
  5529. created or produced by the OpenEmbedded build system.
  5530. If applicable, the :term:`PN` variable also contains any special suffix
  5531. or prefix. For example, using ``bash`` to build packages for the
  5532. native machine, :term:`PN` is ``bash-native``. Using ``bash`` to build
  5533. packages for the target and for Multilib, :term:`PN` would be ``bash``
  5534. and ``lib64-bash``, respectively.
  5535. :term:`POPULATE_SDK_POST_HOST_COMMAND`
  5536. Specifies a list of functions to call once the OpenEmbedded build
  5537. system has created the host part of the SDK. You can specify
  5538. functions separated by spaces::
  5539. POPULATE_SDK_POST_HOST_COMMAND += "function"
  5540. If you need to pass the SDK path to a command within a function, you
  5541. can use ``${SDK_DIR}``, which points to the parent directory used by
  5542. the OpenEmbedded build system when creating SDK output. See the
  5543. :term:`SDK_DIR` variable for more information.
  5544. :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  5545. Specifies a list of functions to call once the OpenEmbedded build
  5546. system has created the target part of the SDK. You can specify
  5547. functions separated by spaces::
  5548. POPULATE_SDK_POST_TARGET_COMMAND += "function"
  5549. If you need to pass the SDK path to a command within a function, you
  5550. can use ``${SDK_DIR}``, which points to the parent directory used by
  5551. the OpenEmbedded build system when creating SDK output. See the
  5552. :term:`SDK_DIR` variable for more information.
  5553. :term:`PR`
  5554. The revision of the recipe. The default value for this variable is
  5555. "r0". Subsequent revisions of the recipe conventionally have the
  5556. values "r1", "r2", and so forth. When :term:`PV` increases,
  5557. :term:`PR` is conventionally reset to "r0".
  5558. .. note::
  5559. The OpenEmbedded build system does not need the aid of :term:`PR`
  5560. to know when to rebuild a recipe. The build system uses the task
  5561. :ref:`input checksums <overview-manual/concepts:checksums (signatures)>` along with the
  5562. :ref:`stamp <structure-build-tmp-stamps>` and
  5563. :ref:`overview-manual/concepts:shared state cache`
  5564. mechanisms.
  5565. The :term:`PR` variable primarily becomes significant when a package
  5566. manager dynamically installs packages on an already built image. In
  5567. this case, :term:`PR`, which is the default value of
  5568. :term:`PKGR`, helps the package manager distinguish which
  5569. package is the most recent one in cases where many packages have the
  5570. same :term:`PV` (i.e. :term:`PKGV`). A component having many packages with
  5571. the same :term:`PV` usually means that the packages all install the same
  5572. upstream version, but with later (:term:`PR`) version packages including
  5573. packaging fixes.
  5574. .. note::
  5575. :term:`PR` does not need to be increased for changes that do not change the
  5576. package contents or metadata.
  5577. Because manually managing :term:`PR` can be cumbersome and error-prone,
  5578. an automated solution exists. See the
  5579. ":ref:`dev-manual/packages:working with a pr service`" section
  5580. in the Yocto Project Development Tasks Manual for more information.
  5581. :term:`PREFERRED_PROVIDER`
  5582. If multiple recipes provide the same item, this variable determines
  5583. which recipe is preferred and thus provides the item (i.e. the
  5584. preferred provider). You should always suffix this variable with the
  5585. name of the provided item. And, you should define the variable using
  5586. the preferred recipe's name (:term:`PN`). Here is a common
  5587. example::
  5588. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  5589. In the previous example, multiple recipes are providing "virtual/kernel".
  5590. The :term:`PREFERRED_PROVIDER` variable is set with the name (:term:`PN`) of
  5591. the recipe you prefer to provide "virtual/kernel".
  5592. Here are more examples::
  5593. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  5594. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  5595. For more
  5596. information, see the ":ref:`dev-manual/new-recipe:using virtual providers`"
  5597. section in the Yocto Project Development Tasks Manual.
  5598. .. note::
  5599. If you use a ``virtual/\*`` item with :term:`PREFERRED_PROVIDER`, then any
  5600. recipe that :term:`PROVIDES` that item but is not selected (defined)
  5601. by :term:`PREFERRED_PROVIDER` is prevented from building, which is usually
  5602. desirable since this mechanism is designed to select between mutually
  5603. exclusive alternative providers.
  5604. :term:`PREFERRED_PROVIDERS`
  5605. See :term:`bitbake:PREFERRED_PROVIDERS` in the BitBake manual.
  5606. :term:`PREFERRED_RPROVIDER`
  5607. The :term:`PREFERRED_RPROVIDER` variable works like the
  5608. :term:`PREFERRED_PROVIDER` variable, but it denotes packages that provide a
  5609. *runtime* component. Runtime providers are declared in recipes that set
  5610. the :term:`RPROVIDES` variable for a specific package.
  5611. For example::
  5612. PREFERRED_RPROVIDER_virtual-x-terminal-emulator = "rxvt-unicode"
  5613. This statement sets the runtime provider for the X terminal emulator to
  5614. ``rxvt-unicode``. The ``rxvt-unicode`` package is a runtime provider of
  5615. this component because the ``rxvt-unicode`` recipe set the following
  5616. :term:`RPROVIDES` definition for the ``rxvt-unicode`` (``${PN}``)
  5617. package::
  5618. RPROVIDES:${PN} = "virtual-x-terminal-emulator"
  5619. For more information on virtual providers, see the
  5620. ":ref:`dev-manual/new-recipe:using virtual providers`" section in the
  5621. Yocto Project Development Tasks Manual.
  5622. :term:`PREFERRED_VERSION`
  5623. If there are multiple versions of a recipe available, this variable
  5624. determines which version should be given preference. You must always
  5625. suffix the variable with the :term:`PN` you want to select (`python` in
  5626. the first example below), and you should specify the :term:`PV`
  5627. accordingly (`3.4.0` in the example).
  5628. The :term:`PREFERRED_VERSION` variable supports limited wildcard use
  5629. through the "``%``" character. You can use the character to match any
  5630. number of characters, which can be useful when specifying versions
  5631. that contain long revision numbers that potentially change. Here are
  5632. two examples::
  5633. PREFERRED_VERSION_python = "3.4.0"
  5634. PREFERRED_VERSION_linux-yocto = "5.0%"
  5635. .. note::
  5636. The use of the "%" character is limited in that it only works at the end of the
  5637. string. You cannot use the wildcard character in any other
  5638. location of the string.
  5639. The specified version is matched against :term:`PV`, which does not
  5640. necessarily match the version part of the recipe's filename.
  5641. If you want to select a recipe named ``foo_git.bb`` which has :term:`PV`
  5642. set to ``1.2.3+git``, you can do so by setting ```PREFERRED_VERSION_foo``
  5643. to ``1.2.3%`` (i.e. simply setting ``PREFERRED_VERSION_foo`` to ``git``
  5644. will not work as the name of the recipe isn't used, but rather its
  5645. :term:`PV` definition).
  5646. Sometimes the :term:`PREFERRED_VERSION` variable can be set by
  5647. configuration files in a way that is hard to change. You can use
  5648. :term:`OVERRIDES` to set a machine-specific
  5649. override. Here is an example::
  5650. PREFERRED_VERSION_linux-yocto:qemux86 = "5.0%"
  5651. Although not recommended, worst case, you can also use the
  5652. "forcevariable" override, which is the strongest override possible.
  5653. Here is an example::
  5654. PREFERRED_VERSION_linux-yocto:forcevariable = "5.0%"
  5655. .. note::
  5656. The ``:forcevariable`` override is not handled specially. This override
  5657. only works because the default value of :term:`OVERRIDES` includes "forcevariable".
  5658. If a recipe with the specified version is not available, a warning
  5659. message will be shown. See :term:`REQUIRED_VERSION` if you want this
  5660. to be an error instead.
  5661. :term:`PREMIRRORS`
  5662. Specifies additional paths from which the OpenEmbedded build system
  5663. gets source code. When the build system searches for source code, it
  5664. first tries the local download directory. If that location fails, the
  5665. build system tries locations defined by :term:`PREMIRRORS`, the upstream
  5666. source, and then locations specified by
  5667. :term:`MIRRORS` in that order.
  5668. The default value for :term:`PREMIRRORS` is defined in the
  5669. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  5670. Typically, you could add a specific server for the build system to
  5671. attempt before any others by adding something like the following to
  5672. the ``local.conf`` configuration file in the
  5673. :term:`Build Directory`::
  5674. PREMIRRORS:prepend = "\
  5675. git://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5676. ftp://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5677. http://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5678. https://.*/.* &YOCTO_DL_URL;/mirror/sources/"
  5679. These changes cause the
  5680. build system to intercept Git, FTP, HTTP, and HTTPS requests and
  5681. direct them to the ``http://`` sources mirror. You can use
  5682. ``file://`` URLs to point to local directories or network shares as
  5683. well.
  5684. :term:`PRIORITY`
  5685. Indicates the importance of a package.
  5686. :term:`PRIORITY` is considered to be part of the distribution policy
  5687. because the importance of any given recipe depends on the purpose for
  5688. which the distribution is being produced. Thus, :term:`PRIORITY` is not
  5689. normally set within recipes.
  5690. You can set :term:`PRIORITY` to "required", "standard", "extra", and
  5691. "optional", which is the default.
  5692. :term:`PRIVATE_LIBS`
  5693. Specifies libraries installed within a recipe that should be ignored
  5694. by the OpenEmbedded build system's shared library resolver. This
  5695. variable is typically used when software being built by a recipe has
  5696. its own private versions of a library normally provided by another
  5697. recipe. In this case, you would not want the package containing the
  5698. private libraries to be set as a dependency on other unrelated
  5699. packages that should instead depend on the package providing the
  5700. standard version of the library.
  5701. Libraries specified in this variable should be specified by their
  5702. file name. For example, from the Firefox recipe in meta-browser::
  5703. PRIVATE_LIBS = "libmozjs.so \
  5704. libxpcom.so \
  5705. libnspr4.so \
  5706. libxul.so \
  5707. libmozalloc.so \
  5708. libplc4.so \
  5709. libplds4.so"
  5710. For more information, see the
  5711. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5712. section in the Yocto Project Overview and Concepts Manual.
  5713. :term:`PROVIDES`
  5714. A list of aliases by which a particular recipe can be known. By
  5715. default, a recipe's own :term:`PN` is implicitly already in its
  5716. :term:`PROVIDES` list and therefore does not need to mention that it
  5717. provides itself. If a recipe uses :term:`PROVIDES`, the additional
  5718. aliases are synonyms for the recipe and can be useful for satisfying
  5719. dependencies of other recipes during the build as specified by
  5720. :term:`DEPENDS`.
  5721. Consider the following example :term:`PROVIDES` statement from the recipe
  5722. file ``eudev_3.2.9.bb``::
  5723. PROVIDES += "udev"
  5724. The :term:`PROVIDES` statement
  5725. results in the "eudev" recipe also being available as simply "udev".
  5726. .. note::
  5727. A recipe's own recipe name (:term:`PN`) is always implicitly prepended
  5728. to :term:`PROVIDES`, so while using "+=" in the above example may not be
  5729. strictly necessary it is recommended to avoid confusion.
  5730. In addition to providing recipes under alternate names, the
  5731. :term:`PROVIDES` mechanism is also used to implement virtual targets. A
  5732. virtual target is a name that corresponds to some particular
  5733. functionality (e.g. a Linux kernel). Recipes that provide the
  5734. functionality in question list the virtual target in :term:`PROVIDES`.
  5735. Recipes that depend on the functionality in question can include the
  5736. virtual target in :term:`DEPENDS` to leave the choice of provider open.
  5737. Conventionally, virtual targets have names on the form
  5738. "virtual/function" (e.g. "virtual/kernel"). The slash is simply part
  5739. of the name and has no syntactical significance.
  5740. The :term:`PREFERRED_PROVIDER` variable is
  5741. used to select which particular recipe provides a virtual target.
  5742. .. note::
  5743. A corresponding mechanism for virtual runtime dependencies (packages)
  5744. exists. However, the mechanism does not depend on any special
  5745. functionality beyond ordinary variable assignments. For example,
  5746. :term:`VIRTUAL-RUNTIME_dev_manager <VIRTUAL-RUNTIME>` refers to the
  5747. package of the component that manages the ``/dev`` directory.
  5748. Setting the "preferred provider" for runtime dependencies is as
  5749. simple as using the following assignment in a configuration file::
  5750. VIRTUAL-RUNTIME_dev_manager = "udev"
  5751. :term:`PRSERV_HOST`
  5752. The network based :term:`PR` service host and port.
  5753. The ``conf/templates/default/local.conf.sample.extended`` configuration
  5754. file in the :term:`Source Directory` shows how the :term:`PRSERV_HOST`
  5755. variable is set::
  5756. PRSERV_HOST = "localhost:0"
  5757. You must
  5758. set the variable if you want to automatically start a local :ref:`PR
  5759. service <dev-manual/packages:working with a pr service>`. You can
  5760. set :term:`PRSERV_HOST` to other values to use a remote PR service.
  5761. :term:`PRSERV_UPSTREAM`
  5762. This variable can be used to specify an upstream PR server for the local
  5763. PR server to connect to, in the form of ``host:port``.
  5764. This makes it possible to implement local fixes to an upstream package.
  5765. :term:`PSEUDO_IGNORE_PATHS`
  5766. A comma-separated (without spaces) list of path prefixes that should be ignored
  5767. by pseudo when monitoring and recording file operations, in order to avoid
  5768. problems with files being written to outside of the pseudo context and
  5769. reduce pseudo's overhead. A path is ignored if it matches any prefix in the list
  5770. and can include partial directory (or file) names.
  5771. :term:`PTEST_ENABLED`
  5772. Specifies whether or not :ref:`Package
  5773. Test <test-manual/ptest:testing packages with ptest>` (ptest)
  5774. functionality is enabled when building a recipe. You should not set
  5775. this variable directly. Enabling and disabling building Package Tests
  5776. at build time should be done by adding "ptest" to (or removing it
  5777. from) :term:`DISTRO_FEATURES`.
  5778. :term:`PTEST_PYTEST_DIR`
  5779. Within the :ref:`ref-classes-ptest-python-pytest` class, the
  5780. :term:`PTEST_PYTEST_DIR` variable represents the path within the source
  5781. tree of a Python package holding the unit tests to be run with the
  5782. `pytest <https://docs.pytest.org>`__ framework. The default value for this
  5783. variable is ``tests``.
  5784. For more information, see
  5785. the :ref:`ref-classes-ptest-python-pytest` class documentation.
  5786. :term:`PV`
  5787. The version of the recipe. The version is normally extracted from the
  5788. recipe filename. For example, if the recipe is named
  5789. ``expat_2.0.1.bb``, then the default value of :term:`PV` will be "2.0.1".
  5790. :term:`PV` is generally not overridden within a recipe unless it is
  5791. building an unstable (i.e. development) version from a source code
  5792. repository (e.g. Git or Subversion).
  5793. :term:`PV` is the default value of the :term:`PKGV` variable.
  5794. :term:`PYPI_PACKAGE`
  5795. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5796. `PyPI <https://pypi.org/>`__ package name to be built. The default value
  5797. is set based upon :term:`BPN` (stripping any "python-" or "python3-"
  5798. prefix off if present), however for some packages it will need to be set
  5799. explicitly if that will not match the package name (e.g. where the
  5800. package name has a prefix, underscores, uppercase letters etc.)
  5801. :term:`PYPI_PACKAGE_EXT`
  5802. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5803. file extension to use when fetching a package from `PyPI
  5804. <https://pypi.org/>`__. Default is ``tar.gz``.
  5805. :term:`PYPI_SRC_URI`
  5806. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5807. full `pythonhosted <https://files.pythonhosted.org/>`__ URI for
  5808. fetching the package to be built. The default value is constructed
  5809. based upon :term:`PYPI_PACKAGE`, :term:`PYPI_PACKAGE_EXT`, and
  5810. :term:`PV`. Most recipes will not need to set this variable unless
  5811. they are building an unstable (i.e. development) version.
  5812. :term:`PYTHON_ABI`
  5813. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5814. class, denotes the Application Binary Interface (ABI) currently in use
  5815. for Python. By default, the ABI is "m". You do not have to set this
  5816. variable as the OpenEmbedded build system sets it for you.
  5817. The OpenEmbedded build system uses the ABI to construct directory
  5818. names used when installing the Python headers and libraries in
  5819. sysroot (e.g. ``.../python3.3m/...``).
  5820. :term:`QA_EMPTY_DIRS`
  5821. Specifies a list of directories that are expected to be empty when
  5822. packaging; if ``empty-dirs`` appears in :term:`ERROR_QA` or
  5823. :term:`WARN_QA` these will be checked and an error or warning
  5824. (respectively) will be produced.
  5825. The default :term:`QA_EMPTY_DIRS` value is set in
  5826. :ref:`insane.bbclass <ref-classes-insane>`.
  5827. :term:`QA_EMPTY_DIRS_RECOMMENDATION`
  5828. Specifies a recommendation for why a directory must be empty,
  5829. which will be included in the error message if a specific directory
  5830. is found to contain files. Must be overridden with the directory
  5831. path to match on.
  5832. If no recommendation is specified for a directory, then the default
  5833. "but it is expected to be empty" will be used.
  5834. An example message shows if files were present in '/dev'::
  5835. QA_EMPTY_DIRS_RECOMMENDATION:/dev = "but all devices must be created at runtime"
  5836. :term:`RANLIB`
  5837. The minimal command and arguments to run :manpage:`ranlib <ranlib(1)>`.
  5838. :term:`RCONFLICTS`
  5839. The list of packages that conflict with packages. Note that packages
  5840. will not be installed if conflicting packages are not first removed.
  5841. Like all package-controlling variables, you must always use them in
  5842. conjunction with a package name override. Here is an example::
  5843. RCONFLICTS:${PN} = "another_conflicting_package_name"
  5844. BitBake, which the OpenEmbedded build system uses, supports
  5845. specifying versioned dependencies. Although the syntax varies
  5846. depending on the packaging format, BitBake hides these differences
  5847. from you. Here is the general syntax to specify versions with the
  5848. :term:`RCONFLICTS` variable::
  5849. RCONFLICTS:${PN} = "package (operator version)"
  5850. For ``operator``, you can specify the following:
  5851. - =
  5852. - <
  5853. - >
  5854. - <=
  5855. - >=
  5856. For example, the following sets up a dependency on version 1.2 or
  5857. greater of the package ``foo``::
  5858. RCONFLICTS:${PN} = "foo (>= 1.2)"
  5859. :term:`RDEPENDS`
  5860. Lists runtime dependencies of a package. These dependencies are other
  5861. packages that must be installed in order for the package to function
  5862. correctly. As an example, the following assignment declares that the
  5863. package ``foo`` needs the packages ``bar`` and ``baz`` to be
  5864. installed::
  5865. RDEPENDS:foo = "bar baz"
  5866. The most common types of package
  5867. runtime dependencies are automatically detected and added. Therefore,
  5868. most recipes do not need to set :term:`RDEPENDS`. For more information,
  5869. see the
  5870. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5871. section in the Yocto Project Overview and Concepts Manual.
  5872. The practical effect of the above :term:`RDEPENDS` assignment is that
  5873. ``bar`` and ``baz`` will be declared as dependencies inside the
  5874. package ``foo`` when it is written out by one of the
  5875. :ref:`do_package_write_* <ref-tasks-package_write_deb>` tasks.
  5876. Exactly how this is done depends on which package format is used,
  5877. which is determined by
  5878. :term:`PACKAGE_CLASSES`. When the
  5879. corresponding package manager installs the package, it will know to
  5880. also install the packages on which it depends.
  5881. To ensure that the packages ``bar`` and ``baz`` get built, the
  5882. previous :term:`RDEPENDS` assignment also causes a task dependency to be
  5883. added. This dependency is from the recipe's
  5884. :ref:`ref-tasks-build` (not to be confused with
  5885. :ref:`ref-tasks-compile`) task to the
  5886. :ref:`do_package_write_* <ref-tasks-package_write_deb>` task of the recipes that build ``bar`` and
  5887. ``baz``.
  5888. The names of the packages you list within :term:`RDEPENDS` must be the
  5889. names of other packages --- they cannot be recipe names. Although
  5890. package names and recipe names usually match, the important point
  5891. here is that you are providing package names within the :term:`RDEPENDS`
  5892. variable. For an example of the default list of packages created from
  5893. a recipe, see the :term:`PACKAGES` variable.
  5894. Because the :term:`RDEPENDS` variable applies to packages being built,
  5895. you should always use the variable in a form with an attached package
  5896. name (remember that a single recipe can build multiple packages). For
  5897. example, suppose you are building a development package that depends
  5898. on the ``perl`` package. In this case, you would use the following
  5899. :term:`RDEPENDS` statement::
  5900. RDEPENDS:${PN}-dev += "perl"
  5901. In the example,
  5902. the development package depends on the ``perl`` package. Thus, the
  5903. :term:`RDEPENDS` variable has the ``${PN}-dev`` package name as part of
  5904. the variable.
  5905. .. note::
  5906. ``RDEPENDS:${PN}-dev`` includes ``${``\ :term:`PN`\ ``}``
  5907. by default. This default is set in the BitBake configuration file
  5908. (``meta/conf/bitbake.conf``). Be careful not to accidentally remove
  5909. ``${PN}`` when modifying ``RDEPENDS:${PN}-dev``. Use the "+=" operator
  5910. rather than the "=" operator.
  5911. The package names you use with :term:`RDEPENDS` must appear as they would
  5912. in the :term:`PACKAGES` variable. The :term:`PKG` variable
  5913. allows a different name to be used for the final package (e.g. the
  5914. :ref:`ref-classes-debian` class uses this to rename
  5915. packages), but this final package name cannot be used with
  5916. :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be
  5917. independent of the package format used.
  5918. BitBake, which the OpenEmbedded build system uses, supports
  5919. specifying versioned dependencies. Although the syntax varies
  5920. depending on the packaging format, BitBake hides these differences
  5921. from you. Here is the general syntax to specify versions with the
  5922. :term:`RDEPENDS` variable::
  5923. RDEPENDS:${PN} = "package (operator version)"
  5924. For ``operator``, you can specify the following:
  5925. - =
  5926. - <
  5927. - >
  5928. - <=
  5929. - >=
  5930. For version, provide the version number.
  5931. .. note::
  5932. You can use :term:`EXTENDPKGV` to provide a full package version
  5933. specification.
  5934. For example, the following sets up a dependency on version 1.2 or
  5935. greater of the package ``foo``::
  5936. RDEPENDS:${PN} = "foo (>= 1.2)"
  5937. For information on build-time dependencies, see the :term:`DEPENDS`
  5938. variable. You can also see the
  5939. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  5940. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`" sections in the
  5941. BitBake User Manual for additional information on tasks and dependencies.
  5942. :term:`READELF`
  5943. The minimal command and arguments to run :manpage:`readelf <readelf(1)>`.
  5944. :term:`RECIPE_MAINTAINER`
  5945. This variable defines the name and e-mail address of the maintainer of a
  5946. recipe. Such information can be used by human users submitted changes,
  5947. and by automated tools to send notifications, for example about
  5948. vulnerabilities or source updates.
  5949. The variable can be defined in a global distribution :oe_git:`maintainers.inc
  5950. </openembedded-core/tree/meta/conf/distro/include/maintainers.inc>` file::
  5951. meta/conf/distro/include/maintainers.inc:RECIPE_MAINTAINER:pn-sysvinit = "Ross Burton <ross.burton@arm.com>"
  5952. It can also be directly defined in a recipe,
  5953. for example in the ``libgpiod`` one::
  5954. RECIPE_MAINTAINER = "Bartosz Golaszewski <brgl@bgdev.pl>"
  5955. :term:`RECIPE_NO_UPDATE_REASON`
  5956. If a recipe should not be replaced by a more recent upstream version,
  5957. putting the reason why in this variable in a recipe allows
  5958. ``devtool check-upgrade-status`` command to display it, as explained
  5959. in the ":ref:`ref-manual/devtool-reference:checking on the upgrade status of a recipe`"
  5960. section.
  5961. :term:`RECIPE_SYSROOT`
  5962. This variable points to the directory that holds all files populated from
  5963. recipes specified in :term:`DEPENDS`. As the name indicates,
  5964. think of this variable as a custom root (``/``) for the recipe that will be
  5965. used by the compiler in order to find headers and other files needed to complete
  5966. its job.
  5967. This variable is related to :term:`STAGING_DIR_HOST` or :term:`STAGING_DIR_TARGET`
  5968. according to the type of the recipe and the build target.
  5969. To better understand this variable, consider the following examples:
  5970. - For ``#include <header.h>``, ``header.h`` should be in ``"${RECIPE_SYSROOT}/usr/include"``
  5971. - For ``-lexample``, ``libexample.so`` should be in ``"${RECIPE_SYSROOT}/lib"``
  5972. or other library sysroot directories.
  5973. The default value is ``"${WORKDIR}/recipe-sysroot"``.
  5974. Do not modify it.
  5975. :term:`RECIPE_SYSROOT_NATIVE`
  5976. This is similar to :term:`RECIPE_SYSROOT` but the populated files are from
  5977. ``-native`` recipes. This allows a recipe built for the target machine to
  5978. use ``native`` tools.
  5979. This variable is related to :term:`STAGING_DIR_NATIVE`.
  5980. The default value is ``"${WORKDIR}/recipe-sysroot-native"``.
  5981. Do not modify it.
  5982. :term:`RECIPE_UPGRADE_EXTRA_TASKS`
  5983. When upgrading a recipe with ``devtool upgrade``, the variable
  5984. :term:`RECIPE_UPGRADE_EXTRA_TASKS` specifies a space-delimited list of
  5985. tasks to run after the new sources have been unpacked.
  5986. For some recipes, after the new source has been unpacked, additional tasks
  5987. may need to be run during an upgrade. A good example of this is recipes
  5988. which inherit :ref:`ref-classes-cargo-update-recipe-crates`, where the
  5989. `do_update_crates` task needs to be run whenever Cargo.toml/Cargo.lock have
  5990. changed in the source.
  5991. :term:`REPODIR`
  5992. See :term:`bitbake:REPODIR` in the BitBake manual.
  5993. :term:`REQUIRED_DISTRO_FEATURES`
  5994. When inheriting the :ref:`ref-classes-features_check`
  5995. class, this variable identifies distribution features that must exist
  5996. in the current configuration in order for the OpenEmbedded build
  5997. system to build the recipe. In other words, if the
  5998. :term:`REQUIRED_DISTRO_FEATURES` variable lists a feature that does not
  5999. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  6000. the recipe will be skipped, and if the build system attempts to build
  6001. the recipe then an error will be triggered.
  6002. :term:`REQUIRED_VERSION`
  6003. If there are multiple versions of a recipe available, this variable
  6004. determines which version should be given preference.
  6005. :term:`REQUIRED_VERSION` works in exactly the same manner as
  6006. :term:`PREFERRED_VERSION`, except that if the specified version is not
  6007. available then an error message is shown and the build fails
  6008. immediately.
  6009. If both :term:`REQUIRED_VERSION` and :term:`PREFERRED_VERSION` are set
  6010. for the same recipe, the :term:`REQUIRED_VERSION` value applies.
  6011. :term:`RETAIN_DIRS_ALWAYS`
  6012. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  6013. space-separated recipe-specific directories to always save in a tarball
  6014. whether the recipe build has failed or not.
  6015. :term:`RETAIN_DIRS_FAILURE`
  6016. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  6017. space-separated recipe-specific directories to save in a tarball on
  6018. failure of the recipe's build.
  6019. :term:`RETAIN_DIRS_GLOBAL_ALWAYS`
  6020. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  6021. space-separated directories that are not specific to a recipe to save in a
  6022. tarball whether the build has failed or not.
  6023. :term:`RETAIN_DIRS_GLOBAL_FAILURE`
  6024. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  6025. space-separated directories that are not specific to a recipe to save in a
  6026. tarball on build failure.
  6027. :term:`RETAIN_ENABLED`
  6028. Disables the creation of a tarball of the work directory done by the
  6029. :ref:`ref-classes-retain` class. Can be set to specific recipes to disable
  6030. the class when the class was inherited globally with :term:`INHERIT`.
  6031. :term:`RETAIN_OUTDIR`
  6032. When inheriting the :ref:`ref-classes-retain` class, this variable
  6033. specifies the directory where to save the tarball of the work directory.
  6034. The default directory is ``${TMPDIR}/retain``.
  6035. :term:`RETAIN_TARBALL_SUFFIX`
  6036. When inheriting the :ref:`ref-classes-retain` class, this variable
  6037. specifies the suffix of the tarball of the work directory. The default
  6038. suffix is ``${DATETIME}.tar.gz``.
  6039. :term:`RM_WORK_EXCLUDE`
  6040. With :ref:`ref-classes-rm-work` enabled, this variable
  6041. specifies a list of recipes whose work directories should not be removed.
  6042. See the ":ref:`ref-classes-rm-work`" section for more details.
  6043. :term:`ROOT_HOME`
  6044. Defines the root home directory. By default, this directory is set as
  6045. follows in the BitBake configuration file::
  6046. ROOT_HOME ??= "/home/root"
  6047. .. note::
  6048. This default value is likely used because some embedded solutions
  6049. prefer to have a read-only root filesystem and prefer to keep
  6050. writeable data in one place.
  6051. When setting ``INIT_MANAGER = systemd``, the default will be set to::
  6052. ROOT_HOME ?= "/root"
  6053. You can also override the default by setting the variable in your distro
  6054. configuration or in the ``local.conf`` file.
  6055. :term:`ROOTFS`
  6056. Indicates a filesystem image to include as the root filesystem.
  6057. The :term:`ROOTFS` variable is an optional variable used with the
  6058. :ref:`ref-classes-image-live` class.
  6059. :term:`ROOTFS_POSTINSTALL_COMMAND`
  6060. Specifies a list of functions to call after the OpenEmbedded build
  6061. system has installed packages. You can specify functions separated by
  6062. spaces::
  6063. ROOTFS_POSTINSTALL_COMMAND += "function"
  6064. If you need to pass the root filesystem path to a command within a
  6065. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  6066. directory that becomes the root filesystem image. See the
  6067. :term:`IMAGE_ROOTFS` variable for more
  6068. information.
  6069. :term:`ROOTFS_POSTPROCESS_COMMAND`
  6070. Specifies a list of functions to call once the OpenEmbedded build
  6071. system has created the root filesystem. You can specify functions
  6072. separated by spaces::
  6073. ROOTFS_POSTPROCESS_COMMAND += "function"
  6074. If you need to pass the root filesystem path to a command within a
  6075. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  6076. directory that becomes the root filesystem image. See the
  6077. :term:`IMAGE_ROOTFS` variable for more
  6078. information.
  6079. :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  6080. Specifies a list of functions to call after the OpenEmbedded build
  6081. system has removed unnecessary packages. When runtime package
  6082. management is disabled in the image, several packages are removed
  6083. including ``base-passwd``, ``shadow``, and ``update-alternatives``.
  6084. You can specify functions separated by spaces::
  6085. ROOTFS_POSTUNINSTALL_COMMAND += "function"
  6086. If you need to pass the root filesystem path to a command within a
  6087. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  6088. directory that becomes the root filesystem image. See the
  6089. :term:`IMAGE_ROOTFS` variable for more
  6090. information.
  6091. :term:`ROOTFS_PREPROCESS_COMMAND`
  6092. Specifies a list of functions to call before the OpenEmbedded build
  6093. system has created the root filesystem. You can specify functions
  6094. separated by spaces::
  6095. ROOTFS_PREPROCESS_COMMAND += "function"
  6096. If you need to pass the root filesystem path to a command within a
  6097. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  6098. directory that becomes the root filesystem image. See the
  6099. :term:`IMAGE_ROOTFS` variable for more
  6100. information.
  6101. :term:`RPMBUILD_EXTRA_PARAMS`
  6102. Specifies extra user-defined parameters for the ``rpmbuild`` command.
  6103. :term:`RPROVIDES`
  6104. A list of package name aliases that a package also provides. These
  6105. aliases are useful for satisfying runtime dependencies of other
  6106. packages both during the build and on the target (as specified by
  6107. :term:`RDEPENDS`).
  6108. .. note::
  6109. A package's own name is implicitly already in its :term:`RPROVIDES` list.
  6110. As with all package-controlling variables, you must always use the
  6111. variable in conjunction with a package name override. Here is an
  6112. example::
  6113. RPROVIDES:${PN} = "widget-abi-2"
  6114. :term:`RRECOMMENDS`
  6115. A list of packages that extends the usability of a package being
  6116. built. The package being built does not depend on this list of
  6117. packages in order to successfully build, but rather uses them for
  6118. extended usability. To specify runtime dependencies for packages, see
  6119. the :term:`RDEPENDS` variable.
  6120. The package manager will automatically install the :term:`RRECOMMENDS`
  6121. list of packages when installing the built package. However, you can
  6122. prevent listed packages from being installed by using the
  6123. :term:`BAD_RECOMMENDATIONS`,
  6124. :term:`NO_RECOMMENDATIONS`, and
  6125. :term:`PACKAGE_EXCLUDE` variables.
  6126. Packages specified in :term:`RRECOMMENDS` need not actually be produced.
  6127. However, there must be a recipe providing each package, either
  6128. through the :term:`PACKAGES` or
  6129. :term:`PACKAGES_DYNAMIC` variables or the
  6130. :term:`RPROVIDES` variable, or an error will occur
  6131. during the build. If such a recipe does exist and the package is not
  6132. produced, the build continues without error.
  6133. Because the :term:`RRECOMMENDS` variable applies to packages being built,
  6134. you should always attach an override to the variable to specify the
  6135. particular package whose usability is being extended. For example,
  6136. suppose you are building a development package that is extended to
  6137. support wireless functionality. In this case, you would use the
  6138. following::
  6139. RRECOMMENDS:${PN}-dev += "wireless_package_name"
  6140. In the
  6141. example, the package name (``${PN}-dev``) must appear as it would in
  6142. the :term:`PACKAGES` namespace before any renaming of the output package
  6143. by classes such as :ref:`ref-classes-debian`.
  6144. BitBake, which the OpenEmbedded build system uses, supports
  6145. specifying versioned recommends. Although the syntax varies depending
  6146. on the packaging format, BitBake hides these differences from you.
  6147. Here is the general syntax to specify versions with the
  6148. :term:`RRECOMMENDS` variable::
  6149. RRECOMMENDS:${PN} = "package (operator version)"
  6150. For ``operator``, you can specify the following:
  6151. - =
  6152. - <
  6153. - >
  6154. - <=
  6155. - >=
  6156. For example, the following sets up a recommend on version 1.2 or
  6157. greater of the package ``foo``::
  6158. RRECOMMENDS:${PN} = "foo (>= 1.2)"
  6159. :term:`RREPLACES`
  6160. A list of packages replaced by a package. The package manager uses
  6161. this variable to determine which package should be installed to
  6162. replace other package(s) during an upgrade. In order to also have the
  6163. other package(s) removed at the same time, you must add the name of
  6164. the other package to the :term:`RCONFLICTS` variable.
  6165. As with all package-controlling variables, you must use this variable
  6166. in conjunction with a package name override. Here is an example::
  6167. RREPLACES:${PN} = "other_package_being_replaced"
  6168. BitBake, which the OpenEmbedded build system uses, supports
  6169. specifying versioned replacements. Although the syntax varies
  6170. depending on the packaging format, BitBake hides these differences
  6171. from you. Here is the general syntax to specify versions with the
  6172. :term:`RREPLACES` variable::
  6173. RREPLACES:${PN} = "package (operator version)"
  6174. For ``operator``, you can specify the following:
  6175. - =
  6176. - <
  6177. - >
  6178. - <=
  6179. - >=
  6180. For example, the following sets up a replacement using version 1.2
  6181. or greater of the package ``foo``::
  6182. RREPLACES:${PN} = "foo (>= 1.2)"
  6183. :term:`RSUGGESTS`
  6184. A list of additional packages that you can suggest for installation
  6185. by the package manager at the time a package is installed. Not all
  6186. package managers support this functionality.
  6187. As with all package-controlling variables, you must always use this
  6188. variable in conjunction with a package name override. Here is an
  6189. example::
  6190. RSUGGESTS:${PN} = "useful_package another_package"
  6191. :term:`RUST_CHANNEL`
  6192. Specifies which version of Rust to build - "stable", "beta" or "nightly".
  6193. The default value is "stable". Set this at your own risk, as values other
  6194. than "stable" are not guaranteed to work at a given time.
  6195. :term:`S`
  6196. The location in the :term:`Build Directory` where
  6197. unpacked recipe source code resides. By default, this directory is
  6198. ``${``\ :term:`WORKDIR`\ ``}/${``\ :term:`BPN`\ ``}-${``\ :term:`PV`\ ``}``,
  6199. where ``${BPN}`` is the base recipe name and ``${PV}`` is the recipe
  6200. version. If the source tarball extracts the code to a directory named
  6201. anything other than ``${BPN}-${PV}``, or if the source code is
  6202. fetched from an SCM such as Git or Subversion, then you must set
  6203. :term:`S` in the recipe so that the OpenEmbedded build system knows where
  6204. to find the unpacked source.
  6205. As an example, assume a :term:`Source Directory`
  6206. top-level folder named ``poky`` and a default :term:`Build Directory` at
  6207. ``poky/build``. In this case, the work directory the build system
  6208. uses to keep the unpacked recipe for ``db`` is the following::
  6209. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  6210. The unpacked source code resides in the ``db-5.1.19`` folder.
  6211. This next example assumes a Git repository. By default, Git
  6212. repositories are cloned to ``${WORKDIR}/git`` during
  6213. :ref:`ref-tasks-fetch`. Since this path is different
  6214. from the default value of :term:`S`, you must set it specifically so the
  6215. source can be located::
  6216. SRC_URI = "git://path/to/repo.git;branch=main"
  6217. S = "${WORKDIR}/git"
  6218. :term:`SANITY_REQUIRED_UTILITIES`
  6219. Specifies a list of command-line utilities that should be checked for
  6220. during the initial sanity checking process when running BitBake. If
  6221. any of the utilities are not installed on the build host, then
  6222. BitBake immediately exits with an error.
  6223. :term:`SANITY_TESTED_DISTROS`
  6224. A list of the host distribution identifiers that the build system has
  6225. been tested against. Identifiers consist of the host distributor ID
  6226. followed by the release, as reported by the ``lsb_release`` tool or
  6227. as read from ``/etc/lsb-release``. Separate the list items with
  6228. explicit newline characters (``\n``). If :term:`SANITY_TESTED_DISTROS` is
  6229. not empty and the current value of
  6230. :term:`NATIVELSBSTRING` does not appear in the
  6231. list, then the build system reports a warning that indicates the
  6232. current host distribution has not been tested as a build host.
  6233. :term:`SDK_ARCH`
  6234. The target architecture for the SDK. Typically, you do not directly
  6235. set this variable. Instead, use :term:`SDKMACHINE`.
  6236. :term:`SDK_ARCHIVE_TYPE`
  6237. Specifies the type of archive to create for the SDK. Valid values:
  6238. - ``tar.xz`` (default)
  6239. - ``tar.zst``
  6240. - ``7zip``
  6241. - ``zip``
  6242. Only one archive type can be specified.
  6243. :term:`SDK_AS_ARCH`
  6244. Specifies architecture-specific assembler flags when building
  6245. :ref:`ref-classes-nativesdk` recipes. By default, the value of
  6246. :term:`SDK_AS_ARCH` equals the one of :term:`BUILD_AS_ARCH`.
  6247. :term:`SDK_BUILDINFO_FILE`
  6248. When using the :ref:`ref-classes-image-buildinfo` class,
  6249. specifies the file in the SDK to write the build information into. The
  6250. default value is "``/buildinfo``".
  6251. :term:`SDK_CC_ARCH`
  6252. Specifies the architecture-specific C compiler flags when building
  6253. :ref:`ref-classes-nativesdk` recipes. By default, the value of
  6254. :term:`SDK_CC_ARCH` equals the one of :term:`BUILD_CC_ARCH`.
  6255. :term:`SDK_CUSTOM_TEMPLATECONF`
  6256. When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to
  6257. "1" and a ``conf/templateconf.cfg`` file exists in the :term:`Build Directory`
  6258. (:term:`TOPDIR`) then this will be copied into the SDK.
  6259. :term:`SDK_DEPLOY`
  6260. The directory set up and used by the
  6261. :ref:`populate_sdk_base <ref-classes-populate-sdk>` class to which the
  6262. SDK is deployed. The :ref:`populate_sdk_base <ref-classes-populate-sdk>`
  6263. class defines :term:`SDK_DEPLOY` as follows::
  6264. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  6265. :term:`SDK_DIR`
  6266. The parent directory used by the OpenEmbedded build system when
  6267. creating SDK output. The
  6268. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines
  6269. the variable as follows::
  6270. SDK_DIR = "${WORKDIR}/sdk"
  6271. .. note::
  6272. The :term:`SDK_DIR` directory is a temporary directory as it is part of
  6273. :term:`WORKDIR`. The final output directory is :term:`SDK_DEPLOY`.
  6274. :term:`SDK_EXT_TYPE`
  6275. Controls whether or not shared state artifacts are copied into the
  6276. extensible SDK. The default value of "full" copies all of the
  6277. required shared state artifacts into the extensible SDK. The value
  6278. "minimal" leaves these artifacts out of the SDK.
  6279. .. note::
  6280. If you set the variable to "minimal", you need to ensure
  6281. :term:`SSTATE_MIRRORS` is set in the SDK's configuration to enable the
  6282. artifacts to be fetched as needed.
  6283. :term:`SDK_HOST_MANIFEST`
  6284. The manifest file for the host part of the SDK. This file lists all
  6285. the installed packages that make up the host part of the SDK. The
  6286. file contains package information on a line-per-package basis as
  6287. follows::
  6288. packagename packagearch version
  6289. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  6290. defines the manifest file as follows::
  6291. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  6292. The location is derived using the :term:`SDK_DEPLOY` and
  6293. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  6294. :term:`SDK_INCLUDE_PKGDATA`
  6295. When set to "1", specifies to include the packagedata for all recipes
  6296. in the "world" target in the extensible SDK. Including this data
  6297. allows the ``devtool search`` command to find these recipes in search
  6298. results, as well as allows the ``devtool add`` command to map
  6299. dependencies more effectively.
  6300. .. note::
  6301. Enabling the :term:`SDK_INCLUDE_PKGDATA`
  6302. variable significantly increases build time because all of world
  6303. needs to be built. Enabling the variable also slightly increases
  6304. the size of the extensible SDK.
  6305. :term:`SDK_INCLUDE_TOOLCHAIN`
  6306. When set to "1", specifies to include the toolchain in the extensible
  6307. SDK. Including the toolchain is useful particularly when
  6308. :term:`SDK_EXT_TYPE` is set to "minimal" to keep
  6309. the SDK reasonably small but you still want to provide a usable
  6310. toolchain. For example, suppose you want to use the toolchain from an
  6311. IDE or from other tools and you do not want to perform additional
  6312. steps to install the toolchain.
  6313. The :term:`SDK_INCLUDE_TOOLCHAIN` variable defaults to "0" if
  6314. :term:`SDK_EXT_TYPE` is set to "minimal", and defaults to "1" if
  6315. :term:`SDK_EXT_TYPE` is set to "full".
  6316. :term:`SDK_LD_ARCH`
  6317. Specifies architecture-specific linker flags when building
  6318. :ref:`ref-classes-nativesdk` recipes. By default, the value of
  6319. :term:`SDK_LD_ARCH` equals the one of :term:`BUILD_LD_ARCH`.
  6320. :term:`SDK_NAME`
  6321. The base name for SDK output files. The default value (as set in
  6322. ``meta-poky/conf/distro/poky.conf``) is derived from the
  6323. :term:`DISTRO`,
  6324. :term:`TCLIBC`,
  6325. :term:`SDKMACHINE`,
  6326. :term:`IMAGE_BASENAME`,
  6327. :term:`TUNE_PKGARCH`, and
  6328. :term:`MACHINE` variables::
  6329. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
  6330. :term:`SDK_OS`
  6331. Specifies the operating system for which the SDK will be built. The
  6332. default value is the value of :term:`BUILD_OS`.
  6333. :term:`SDK_OUTPUT`
  6334. The location used by the OpenEmbedded build system when creating SDK
  6335. output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`
  6336. class defines the variable as follows::
  6337. SDK_DIR = "${WORKDIR}/sdk"
  6338. SDK_OUTPUT = "${SDK_DIR}/image"
  6339. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  6340. .. note::
  6341. The :term:`SDK_OUTPUT` directory is a temporary directory as it is part of
  6342. :term:`WORKDIR` by way of :term:`SDK_DIR`. The final output directory is
  6343. :term:`SDK_DEPLOY`.
  6344. :term:`SDK_PACKAGE_ARCHS`
  6345. Specifies a list of architectures compatible with the SDK machine.
  6346. This variable is set automatically and should not normally be
  6347. hand-edited. Entries are separated using spaces and listed in order
  6348. of priority. The default value for :term:`SDK_PACKAGE_ARCHS` is "all any
  6349. noarch ${SDK_ARCH}-${SDKPKGSUFFIX}".
  6350. :term:`SDK_POSTPROCESS_COMMAND`
  6351. Specifies a list of functions to call once the OpenEmbedded build
  6352. system creates the SDK. You can specify functions separated by
  6353. spaces:
  6354. SDK_POSTPROCESS_COMMAND += "function"
  6355. If you need to pass an SDK path to a command within a function, you
  6356. can use ``${SDK_DIR}``, which points to the parent directory used by
  6357. the OpenEmbedded build system when creating SDK output. See the
  6358. :term:`SDK_DIR` variable for more information.
  6359. :term:`SDK_PREFIX`
  6360. The toolchain binary prefix used for
  6361. :ref:`ref-classes-nativesdk` recipes. The
  6362. OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the
  6363. :term:`TARGET_PREFIX` when building
  6364. ``nativesdk`` recipes. The default value is "${SDK_SYS}-".
  6365. :term:`SDK_RECRDEP_TASKS`
  6366. A list of shared state tasks added to the extensible SDK. By default,
  6367. the following tasks are added:
  6368. - :ref:`ref-tasks-populate_lic`
  6369. - :ref:`ref-tasks-package_qa`
  6370. - :ref:`ref-tasks-populate_sysroot`
  6371. - :ref:`ref-tasks-deploy`
  6372. Despite the default value of "" for the
  6373. :term:`SDK_RECRDEP_TASKS` variable, the above four tasks are always added
  6374. to the SDK. To specify tasks beyond these four, you need to use the
  6375. :term:`SDK_RECRDEP_TASKS` variable (e.g. you are defining additional
  6376. tasks that are needed in order to build
  6377. :term:`SDK_TARGETS`).
  6378. :term:`SDK_SYS`
  6379. Specifies the system, including the architecture and the operating
  6380. system, for which the SDK will be built.
  6381. The OpenEmbedded build system automatically sets this variable based
  6382. on :term:`SDK_ARCH`,
  6383. :term:`SDK_VENDOR`, and
  6384. :term:`SDK_OS`. You do not need to set the :term:`SDK_SYS`
  6385. variable yourself.
  6386. :term:`SDK_TARGET_MANIFEST`
  6387. The manifest file for the target part of the SDK. This file lists all
  6388. the installed packages that make up the target part of the SDK. The
  6389. file contains package information on a line-per-package basis as
  6390. follows::
  6391. packagename packagearch version
  6392. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  6393. defines the manifest file as follows::
  6394. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  6395. The location is derived using the :term:`SDK_DEPLOY` and
  6396. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  6397. :term:`SDK_TARGETS`
  6398. A list of targets to install from shared state as part of the
  6399. standard or extensible SDK installation. The default value is "${PN}"
  6400. (i.e. the image from which the SDK is built).
  6401. The :term:`SDK_TARGETS` variable is an internal variable and typically
  6402. would not be changed.
  6403. :term:`SDK_TITLE`
  6404. The title to be printed when running the SDK installer. By default,
  6405. this title is based on the :term:`DISTRO_NAME` or
  6406. :term:`DISTRO` variable and is set in the
  6407. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  6408. follows::
  6409. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  6410. For the default distribution "poky",
  6411. :term:`SDK_TITLE` is set to "Poky (Yocto Project Reference Distro)".
  6412. For information on how to change this default title, see the
  6413. ":ref:`sdk-manual/appendix-customizing:changing the extensible sdk installer title`"
  6414. section in the Yocto Project Application Development and the
  6415. Extensible Software Development Kit (eSDK) manual.
  6416. :term:`SDK_TOOLCHAIN_LANGS`
  6417. Specifies programming languages to support in the SDK, as a
  6418. space-separated list. Currently supported items are ``rust`` and ``go``.
  6419. :term:`SDK_UPDATE_URL`
  6420. An optional URL for an update server for the extensible SDK. If set,
  6421. the value is used as the default update server when running
  6422. ``devtool sdk-update`` within the extensible SDK.
  6423. :term:`SDK_VENDOR`
  6424. Specifies the name of the SDK vendor.
  6425. :term:`SDK_VERSION`
  6426. Specifies the version of the SDK. The Poky distribution configuration file
  6427. (``/meta-poky/conf/distro/poky.conf``) sets the default
  6428. :term:`SDK_VERSION` as follows::
  6429. SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}"
  6430. For additional information, see the
  6431. :term:`DISTRO_VERSION` and
  6432. :term:`METADATA_REVISION` variables.
  6433. :term:`SDK_ZIP_OPTIONS`
  6434. Specifies extra options to pass to the ``zip`` command when zipping the SDK
  6435. (i.e. when :term:`SDK_ARCHIVE_TYPE` is set to "zip"). The default value is
  6436. "-y".
  6437. :term:`SDKEXTPATH`
  6438. The default installation directory for the Extensible SDK. By
  6439. default, this directory is based on the :term:`DISTRO`
  6440. variable and is set in the
  6441. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  6442. follows::
  6443. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  6444. For the
  6445. default distribution "poky", the :term:`SDKEXTPATH` is set to "poky_sdk".
  6446. For information on how to change this default directory, see the
  6447. ":ref:`sdk-manual/appendix-customizing:changing the default sdk installation directory`"
  6448. section in the Yocto Project Application Development and the
  6449. Extensible Software Development Kit (eSDK) manual.
  6450. :term:`SDKIMAGE_FEATURES`
  6451. Equivalent to :term:`IMAGE_FEATURES`. However, this variable applies to
  6452. the SDK generated from an image using the following command::
  6453. $ bitbake -c populate_sdk imagename
  6454. :term:`SDKMACHINE`
  6455. The machine for which the SDK is built. In other words, the SDK is built
  6456. such that it runs on the target you specify with the :term:`SDKMACHINE`
  6457. value. The value points to a corresponding ``.conf`` file under
  6458. ``conf/machine-sdk/`` in the enabled layers, for example ``aarch64``,
  6459. ``i586``, ``i686``, ``ppc64``, ``ppc64le``, and ``x86_64`` are
  6460. :oe_git:`available in OpenEmbedded-Core </openembedded-core/tree/meta/conf/machine-sdk>`.
  6461. The variable defaults to :term:`BUILD_ARCH` so that SDKs are built for the
  6462. architecture of the build machine.
  6463. .. note::
  6464. You cannot set the :term:`SDKMACHINE`
  6465. variable in your distribution configuration file. If you do, the
  6466. configuration will not take effect.
  6467. :term:`SDKPATH`
  6468. Defines the path used to collect the SDK components and build the
  6469. installer.
  6470. :term:`SDKPATHINSTALL`
  6471. Defines the path offered to the user for installation of the SDK that
  6472. is generated by the OpenEmbedded build system. The path appears as
  6473. the default location for installing the SDK when you run the SDK's
  6474. installation script. You can override the offered path when you run
  6475. the script.
  6476. :term:`SDKTARGETSYSROOT`
  6477. The full path to the sysroot used for cross-compilation within an SDK
  6478. as it will be when installed into the default
  6479. :term:`SDKPATHINSTALL`.
  6480. :term:`SECTION`
  6481. The section in which packages should be categorized. Package
  6482. management utilities can make use of this variable.
  6483. :term:`SELECTED_OPTIMIZATION`
  6484. Specifies the optimization flags passed to the C compiler when
  6485. building for the target. The flags are passed through the default
  6486. value of the :term:`TARGET_CFLAGS` variable.
  6487. The :term:`SELECTED_OPTIMIZATION` variable takes the value of
  6488. :term:`FULL_OPTIMIZATION` unless :term:`DEBUG_BUILD` = "1", in which
  6489. case the value of :term:`DEBUG_OPTIMIZATION` is used.
  6490. :term:`SERIAL_CONSOLES`
  6491. Defines a serial console (TTY) to enable using
  6492. :wikipedia:`getty <Getty_(Unix)>`. Provide a value that specifies the
  6493. baud rate followed by the TTY device name separated by a semicolon.
  6494. Use spaces to separate multiple devices::
  6495. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  6496. :term:`SETUPTOOLS_BUILD_ARGS`
  6497. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6498. class, this variable can be used to specify additional arguments to be
  6499. passed to ``setup.py build`` in the ``setuptools3_do_compile()`` task.
  6500. :term:`SETUPTOOLS_SETUP_PATH`
  6501. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6502. class, this variable should be used to specify the directory in which
  6503. the ``setup.py`` file is located if it is not at the root of the source
  6504. tree (as specified by :term:`S`). For example, in a recipe where the
  6505. sources are fetched from a Git repository and ``setup.py`` is in a
  6506. ``python/pythonmodule`` subdirectory, you would have this::
  6507. S = "${WORKDIR}/git"
  6508. SETUPTOOLS_SETUP_PATH = "${S}/python/pythonmodule"
  6509. :term:`SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS`
  6510. A list of recipe dependencies that should not be used to determine
  6511. signatures of tasks from one recipe when they depend on tasks from
  6512. another recipe. For example::
  6513. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  6514. In the previous example, ``intone`` depends on ``mplayer2``.
  6515. You can use the special token ``"*"`` on the left-hand side of the
  6516. dependency to match all recipes except the one on the right-hand
  6517. side. Here is an example::
  6518. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  6519. In the previous example, all recipes except ``quilt-native`` ignore
  6520. task signatures from the ``quilt-native`` recipe when determining
  6521. their task signatures.
  6522. Use of this variable is one mechanism to remove dependencies that
  6523. affect task signatures and thus force rebuilds when a recipe changes.
  6524. .. note::
  6525. If you add an inappropriate dependency for a recipe relationship,
  6526. the software might break during runtime if the interface of the
  6527. second recipe was changed after the first recipe had been built.
  6528. :term:`SIGGEN_EXCLUDERECIPES_ABISAFE`
  6529. A list of recipes that are completely stable and will never change.
  6530. The ABI for the recipes in the list are presented by output from the
  6531. tasks run to build the recipe. Use of this variable is one way to
  6532. remove dependencies from one recipe on another that affect task
  6533. signatures and thus force rebuilds when the recipe changes.
  6534. .. note::
  6535. If you add an inappropriate variable to this list, the software
  6536. might break at runtime if the interface of the recipe was changed
  6537. after the other had been built.
  6538. :term:`SIGGEN_LOCKEDSIGS`
  6539. The list of locked tasks, with the form::
  6540. SIGGEN_LOCKEDSIGS += "<package>:<task>:<signature>"
  6541. If ``<signature>`` exists for the specified ``<task>`` and ``<package>``
  6542. in the sstate cache, BitBake will use the cached output instead of
  6543. rebuilding the ``<task>``. If it does not exist, BitBake will build the
  6544. ``<task>`` and the sstate cache will be used next time.
  6545. Example::
  6546. SIGGEN_LOCKEDSIGS += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6547. You can obtain the signature of all the tasks for the recipe ``bc`` using::
  6548. bitbake -S none bc
  6549. Then you can look at files in ``build/tmp/stamps/<arch>/bc`` and look for
  6550. files like: ``<PV>.do_compile.sigdata.09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0``.
  6551. Alternatively, you can also use :doc:`bblock </dev-manual/bblock>` to
  6552. generate this line for you.
  6553. :term:`SIGGEN_LOCKEDSIGS_TASKSIG_CHECK`
  6554. Specifies the debug level of task signature check. 3 levels are supported:
  6555. * ``info``: displays a "Note" message to remind the user that a task is locked
  6556. and the current signature matches the locked one.
  6557. * ``warn``: displays a "Warning" message if a task is locked and the current
  6558. signature does not match the locked one.
  6559. * ``error``: same as warn but displays an "Error" message and aborts.
  6560. :term:`SIGGEN_LOCKEDSIGS_TYPES`
  6561. Allowed overrides for :term:`SIGGEN_LOCKEDSIGS`. This is mainly used
  6562. for architecture specific locks. A common value for
  6563. :term:`SIGGEN_LOCKEDSIGS_TYPES` is ``${PACKAGE_ARCHS}``::
  6564. SIGGEN_LOCKEDSIGS_TYPES += "${PACKAGE_ARCHS}"
  6565. SIGGEN_LOCKEDSIGS_core2-64 += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6566. SIGGEN_LOCKEDSIGS_cortexa57 += "bc:do_compile:12178eb6d55ef602a8fe638e49862fd247e07b228f0f08967697b655bfe4bb61"
  6567. Here, the ``do_compile`` task from ``bc`` will be locked only for
  6568. ``core2-64`` and ``cortexa57`` but not for other architectures such as
  6569. ``mips32r2``.
  6570. :term:`SITEINFO_BITS`
  6571. Specifies the number of bits for the target system CPU. The value
  6572. should be either "32" or "64".
  6573. :term:`SITEINFO_ENDIANNESS`
  6574. Specifies the endian byte order of the target system. The value
  6575. should be either "le" for little-endian or "be" for big-endian.
  6576. :term:`SKIP_FILEDEPS`
  6577. Enables removal of all files from the "Provides" section of an RPM
  6578. package. Removal of these files is required for packages containing
  6579. prebuilt binaries and libraries such as ``libstdc++`` and ``glibc``.
  6580. To enable file removal, set the variable to "1" in your
  6581. ``conf/local.conf`` configuration file in your:
  6582. :term:`Build Directory`::
  6583. SKIP_FILEDEPS = "1"
  6584. :term:`SKIP_RECIPE`
  6585. Used to prevent the OpenEmbedded build system from building a given
  6586. recipe. Specify the :term:`PN` value as a variable flag (``varflag``)
  6587. and provide a reason, which will be reported when attempting to
  6588. build the recipe.
  6589. To prevent a recipe from being built, use the :term:`SKIP_RECIPE`
  6590. variable in your ``local.conf`` file or distribution configuration.
  6591. Here is an example which prevents ``myrecipe`` from being built::
  6592. SKIP_RECIPE[myrecipe] = "Not supported by our organization."
  6593. :term:`SOC_FAMILY`
  6594. A colon-separated list grouping together machines based upon the same
  6595. family of SoC (System On Chip). You typically set this variable in a
  6596. common ``.inc`` file that you include in the configuration files of all
  6597. the machines.
  6598. .. note::
  6599. You must include ``conf/machine/include/soc-family.inc`` for this
  6600. variable to appear in :term:`MACHINEOVERRIDES`.
  6601. :term:`SOLIBS`
  6602. Defines the suffix for shared libraries used on the target platform.
  6603. By default, this suffix is ".so.*" for all Linux-based systems and is
  6604. defined in the ``meta/conf/bitbake.conf`` configuration file.
  6605. You will see this variable referenced in the default values of
  6606. ``FILES:${PN}``.
  6607. :term:`SOLIBSDEV`
  6608. Defines the suffix for the development symbolic link (symlink) for
  6609. shared libraries on the target platform. By default, this suffix is
  6610. ".so" for Linux-based systems and is defined in the
  6611. ``meta/conf/bitbake.conf`` configuration file.
  6612. You will see this variable referenced in the default values of
  6613. ``FILES:${PN}-dev``.
  6614. :term:`SOURCE_DATE_EPOCH`
  6615. This defines a date expressed in number of seconds since
  6616. the UNIX EPOCH (01 Jan 1970 00:00:00 UTC), which is used by
  6617. multiple build systems to force a timestamp in built binaries.
  6618. Many upstream projects already support this variable.
  6619. You will find more details in the `official specifications
  6620. <https://reproducible-builds.org/specs/source-date-epoch/>`__.
  6621. A value for each recipe is computed from the sources by
  6622. :oe_git:`meta/lib/oe/reproducible.py </openembedded-core/tree/meta/lib/oe/reproducible.py>`.
  6623. If a recipe wishes to override the default behavior, it should set its
  6624. own :term:`SOURCE_DATE_EPOCH` value::
  6625. SOURCE_DATE_EPOCH = "1613559011"
  6626. :term:`SOURCE_MIRROR_FETCH`
  6627. When you are fetching files to create a mirror of sources (i.e.
  6628. creating a source mirror), setting :term:`SOURCE_MIRROR_FETCH` to "1" in
  6629. your ``local.conf`` configuration file ensures the source for all
  6630. recipes are fetched regardless of whether or not a recipe is
  6631. compatible with the configuration. A recipe is considered
  6632. incompatible with the currently configured machine when either or
  6633. both the :term:`COMPATIBLE_MACHINE`
  6634. variable and :term:`COMPATIBLE_HOST` variables
  6635. specify compatibility with a machine other than that of the current
  6636. machine or host.
  6637. .. note::
  6638. Do not set the :term:`SOURCE_MIRROR_FETCH`
  6639. variable unless you are creating a source mirror. In other words,
  6640. do not set the variable during a normal build.
  6641. :term:`SOURCE_MIRROR_URL`
  6642. Defines your own :term:`PREMIRRORS` from which to
  6643. first fetch source before attempting to fetch from the upstream
  6644. specified in :term:`SRC_URI`.
  6645. To use this variable, you must globally inherit the
  6646. :ref:`ref-classes-own-mirrors` class and then provide
  6647. the URL to your mirrors. Here is the general syntax::
  6648. INHERIT += "own-mirrors"
  6649. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror"
  6650. .. note::
  6651. You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
  6652. .. note::
  6653. If the mirror is protected behind a username and password, the
  6654. :term:`build host` needs to be configured so the :term:`build system
  6655. <OpenEmbedded Build System>` is able to fetch from the mirror.
  6656. The recommended way to do that is by setting the following parameters
  6657. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  6658. directory)::
  6659. machine example.com
  6660. login <user>
  6661. password <password>
  6662. This file requires permissions set to ``400`` or ``600`` to prevent
  6663. other users from reading the file::
  6664. chmod 600 "$HOME/.netrc"
  6665. Another method to configure the username and password is from the URL
  6666. in :term:`SOURCE_MIRROR_URL` directly, with the ``user`` and ``pswd``
  6667. parameters::
  6668. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror;user=<user>;pswd=<password>"
  6669. :term:`SPDX_ARCHIVE_PACKAGED`
  6670. This option allows to add to :term:`SPDX` output compressed archives
  6671. of the files in the generated target packages.
  6672. Such archives are available in
  6673. ``tmp/deploy/spdx/MACHINE/packages/packagename.tar.zst``
  6674. under the :term:`Build Directory`.
  6675. Enable this option as follows::
  6676. SPDX_ARCHIVE_PACKAGED = "1"
  6677. According to our tests on release 4.1 "langdale", building
  6678. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this
  6679. option multiplied the size of the ``tmp/deploy/spdx`` directory by a
  6680. factor of 13 (+1.6 GiB for this image), compared to just using the
  6681. :ref:`ref-classes-create-spdx` class with no option.
  6682. Note that this option doesn't increase the size of :term:`SPDX`
  6683. files in ``tmp/deploy/images/MACHINE``.
  6684. :term:`SPDX_ARCHIVE_SOURCES`
  6685. This option allows to add to :term:`SPDX` output compressed archives
  6686. of the sources for packages installed on the target. It currently
  6687. only works when :term:`SPDX_INCLUDE_SOURCES` is set.
  6688. This is one way of fulfilling "source code access" license
  6689. requirements.
  6690. Such source archives are available in
  6691. ``tmp/deploy/spdx/MACHINE/recipes/recipe-packagename.tar.zst``
  6692. under the :term:`Build Directory`.
  6693. Enable this option as follows::
  6694. SPDX_INCLUDE_SOURCES = "1"
  6695. SPDX_ARCHIVE_SOURCES = "1"
  6696. According to our tests on release 4.1 "langdale", building
  6697. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6698. these options multiplied the size of the ``tmp/deploy/spdx``
  6699. directory by a factor of 11 (+1.4 GiB for this image),
  6700. compared to just using the :ref:`ref-classes-create-spdx`
  6701. class with no option.
  6702. Note that using this option only marginally increases the size
  6703. of the :term:`SPDX` output in ``tmp/deploy/images/MACHINE/``
  6704. (+ 0.07\% with the tested image), compared to just enabling
  6705. :term:`SPDX_INCLUDE_SOURCES`.
  6706. :term:`SPDX_CUSTOM_ANNOTATION_VARS`
  6707. This option allows to associate `SPDX annotations
  6708. <https://spdx.github.io/spdx-spec/v2.3/annotations/>`__ to a recipe,
  6709. using the values of variables in the recipe::
  6710. ANNOTATION1 = "First annotation for recipe"
  6711. ANNOTATION2 = "Second annotation for recipe"
  6712. SPDX_CUSTOM_ANNOTATION_VARS = "ANNOTATION1 ANNOTATION2"
  6713. This will add a new block to the recipe ``.sdpx.json`` output::
  6714. "annotations": [
  6715. {
  6716. "annotationDate": "2023-04-18T08:32:12Z",
  6717. "annotationType": "OTHER",
  6718. "annotator": "Tool: oe-spdx-creator - 1.0",
  6719. "comment": "ANNOTATION1=First annotation for recipe"
  6720. },
  6721. {
  6722. "annotationDate": "2023-04-18T08:32:12Z",
  6723. "annotationType": "OTHER",
  6724. "annotator": "Tool: oe-spdx-creator - 1.0",
  6725. "comment": "ANNOTATION2=Second annotation for recipe"
  6726. }
  6727. ],
  6728. :term:`SPDX_INCLUDE_SOURCES`
  6729. This option allows to add a description of the source files used to build
  6730. the host tools and the target packages, to the ``spdx.json`` files in
  6731. ``tmp/deploy/spdx/MACHINE/recipes/`` under the :term:`Build Directory`.
  6732. As a consequence, the ``spdx.json`` files under the ``by-namespace`` and
  6733. ``packages`` subdirectories in ``tmp/deploy/spdx/MACHINE`` are also
  6734. modified to include references to such source file descriptions.
  6735. Enable this option as follows::
  6736. SPDX_INCLUDE_SOURCES = "1"
  6737. According to our tests on release 4.1 "langdale", building
  6738. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6739. this option multiplied the total size of the ``tmp/deploy/spdx``
  6740. directory by a factor of 3 (+291 MiB for this image),
  6741. and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in
  6742. ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this
  6743. image), compared to just using the :ref:`ref-classes-create-spdx` class
  6744. with no option.
  6745. :term:`SPDX_NAMESPACE_PREFIX`
  6746. This option could be used in order to change the prefix of ``spdxDocument``
  6747. and the prefix of ``documentNamespace``. It is set by default to
  6748. ``http://spdx.org/spdxdoc``.
  6749. :term:`SPDX_PACKAGE_VERSION`
  6750. This variable controls the package version as seen in the SPDX 3.0 JSON
  6751. output (``software_packageVersion``). The default value for this variable
  6752. is :term:`PV`.
  6753. :term:`SPDX_PRETTY`
  6754. This option makes the SPDX output more human-readable, using
  6755. identation and newlines, instead of the default output in a
  6756. single line::
  6757. SPDX_PRETTY = "1"
  6758. The generated SPDX files are approximately 20% bigger, but
  6759. this option is recommended if you want to inspect the SPDX
  6760. output files with a text editor.
  6761. :term:`SPDXLICENSEMAP`
  6762. Maps commonly used license names to their SPDX counterparts found in
  6763. ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP`
  6764. mappings, see the ``meta/conf/licenses.conf`` file.
  6765. For additional information, see the :term:`LICENSE`
  6766. variable.
  6767. :term:`SPECIAL_PKGSUFFIX`
  6768. A list of prefixes for :term:`PN` used by the OpenEmbedded
  6769. build system to create variants of recipes or packages. The list
  6770. specifies the prefixes to strip off during certain circumstances such
  6771. as the generation of the :term:`BPN` variable.
  6772. :term:`SPL_BINARY`
  6773. The file type for the Secondary Program Loader (SPL). Some devices
  6774. use an SPL from which to boot (e.g. the BeagleBone development
  6775. board). For such cases, you can declare the file type of the SPL
  6776. binary in the ``u-boot.inc`` include file, which is used in the
  6777. U-Boot recipe.
  6778. The SPL file type is set to "null" by default in the ``u-boot.inc``
  6779. file as follows::
  6780. # Some versions of u-boot build an SPL (Second Program Loader) image that
  6781. # should be packaged along with the u-boot binary as well as placed in the
  6782. # deploy directory. For those versions they can set the following variables
  6783. # to allow packaging the SPL.
  6784. SPL_BINARY ?= ""
  6785. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  6786. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  6787. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  6788. The :term:`SPL_BINARY` variable helps form
  6789. various ``SPL_*`` variables used by the OpenEmbedded build system.
  6790. See the BeagleBone machine configuration example in the
  6791. ":ref:`dev-manual/layers:adding a layer using the \`\`bitbake-layers\`\` script`"
  6792. section in the Yocto Project Board Support Package Developer's Guide
  6793. for additional information.
  6794. :term:`SPL_MKIMAGE_DTCOPTS`
  6795. Options for the device tree compiler passed to ``mkimage -D`` feature
  6796. while creating a FIT image with the :ref:`ref-classes-uboot-sign`
  6797. class. If :term:`SPL_MKIMAGE_DTCOPTS` is not set then the
  6798. :ref:`ref-classes-uboot-sign` class will not pass the ``-D`` option
  6799. to ``mkimage``.
  6800. The default value is set to "" by the :ref:`ref-classes-uboot-config`
  6801. class.
  6802. :term:`SPL_SIGN_ENABLE`
  6803. Enable signing of the U-Boot FIT image. The default value is "0".
  6804. This variable is used by the :ref:`ref-classes-uboot-sign` class.
  6805. :term:`SPL_SIGN_KEYDIR`
  6806. Location of the directory containing the RSA key and certificate used for
  6807. signing the U-Boot FIT image, used by the :ref:`ref-classes-uboot-sign`
  6808. class.
  6809. :term:`SPL_SIGN_KEYNAME`
  6810. The name of keys used by the :ref:`ref-classes-uboot-sign` class
  6811. for signing U-Boot FIT image stored in the :term:`SPL_SIGN_KEYDIR`
  6812. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  6813. certificate stored in the :term:`SPL_SIGN_KEYDIR` directory, you will
  6814. have to set :term:`SPL_SIGN_KEYNAME` to ``dev``.
  6815. :term:`SPLASH`
  6816. This variable, used by the :ref:`ref-classes-image` class, allows
  6817. to choose splashscreen applications. Set it to the names of packages
  6818. for such applications to use. This variable is set by default to
  6819. ``psplash``.
  6820. :term:`SPLASH_IMAGES`
  6821. This variable, used by the ``psplash`` recipe, allows to customize
  6822. the default splashscreen image.
  6823. Specified images in PNG format are converted to ``.h`` files by the recipe,
  6824. and are included in the ``psplash`` binary, so you won't find them in
  6825. the root filesystem.
  6826. To make such a change, it is recommended to customize the
  6827. ``psplash`` recipe in a custom layer. Here is an example structure for
  6828. an ``ACME`` board::
  6829. meta-acme/recipes-core/psplash
  6830. ├── files
  6831. │   └── logo-acme.png
  6832. └── psplash_%.bbappend
  6833. And here are the contents of the ``psplash_%.bbappend`` file in
  6834. this example::
  6835. SPLASH_IMAGES = "file://logo-acme.png;outsuffix=default"
  6836. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  6837. You could even add specific configuration options for ``psplash``,
  6838. for example::
  6839. EXTRA_OECONF += "--disable-startup-msg --enable-img-fullscreen"
  6840. For information on append files, see the
  6841. ":ref:`dev-manual/layers:appending other layers metadata with your layer`"
  6842. section.
  6843. :term:`SRCREV_FORMAT`
  6844. See :term:`bitbake:SRCREV_FORMAT` in the BitBake manual.
  6845. :term:`SRC_URI`
  6846. See the BitBake manual for the initial description for this variable:
  6847. :term:`bitbake:SRC_URI`.
  6848. The following features are added by OpenEmbedded and the Yocto Project.
  6849. There are standard and recipe-specific options. Here are standard ones:
  6850. - ``apply`` --- whether to apply the patch or not. The default
  6851. action is to apply the patch.
  6852. - ``striplevel`` --- which striplevel to use when applying the
  6853. patch. The default level is 1.
  6854. - ``patchdir`` --- specifies the directory in which the patch should
  6855. be applied. The default is ``${``\ :term:`S`\ ``}``.
  6856. Here are options specific to recipes building code from a revision
  6857. control system:
  6858. - ``mindate`` --- apply the patch only if
  6859. :term:`SRCDATE` is equal to or greater than
  6860. ``mindate``.
  6861. - ``maxdate`` --- apply the patch only if :term:`SRCDATE` is not later
  6862. than ``maxdate``.
  6863. - ``minrev`` --- apply the patch only if :term:`SRCREV` is equal to or
  6864. greater than ``minrev``.
  6865. - ``maxrev`` --- apply the patch only if :term:`SRCREV` is not later
  6866. than ``maxrev``.
  6867. - ``rev`` --- apply the patch only if :term:`SRCREV` is equal to
  6868. ``rev``.
  6869. - ``notrev`` --- apply the patch only if :term:`SRCREV` is not equal to
  6870. ``rev``.
  6871. .. note::
  6872. If you want the build system to pick up files specified through
  6873. a :term:`SRC_URI` statement from your append file, you need to be
  6874. sure to extend the :term:`FILESPATH` variable by also using the
  6875. :term:`FILESEXTRAPATHS` variable from within your append file.
  6876. :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH`
  6877. By default, the OpenEmbedded build system automatically detects
  6878. whether :term:`SRC_URI` contains files that are machine-specific. If so,
  6879. the build system automatically changes :term:`PACKAGE_ARCH`. Setting this
  6880. variable to "0" disables this behavior.
  6881. :term:`SRCDATE`
  6882. The date of the source code used to build the package. This variable
  6883. applies only if the source was fetched from a Source Code Manager
  6884. (SCM).
  6885. :term:`SRCPV`
  6886. The variable :term:`SRCPV` is deprecated. It was previously used to
  6887. include source control information in :term:`PV` for :term:`bitbake` to
  6888. work correctly but this is no longer a requirement. Source control
  6889. information will be automatically included by :term:`bitbake` in the
  6890. variable :term:`PKGV` during packaging if the ``+`` sign is present in
  6891. :term:`PV`.
  6892. .. note::
  6893. The :term:`SRCPV` variable used to be defined in the
  6894. ``meta/conf/bitbake.conf`` configuration file in the :term:`Source
  6895. Directory` as follows::
  6896. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  6897. The ``get_srcrev`` function can still be used to include source control
  6898. information in variables manually.
  6899. :term:`SRCREV`
  6900. The revision of the source code used to build the package. This
  6901. variable applies to Subversion, Git, Mercurial, and Bazaar only. Note
  6902. that if you want to build a fixed revision and you want to avoid
  6903. performing a query on the remote repository every time BitBake parses
  6904. your recipe, you should specify a :term:`SRCREV` that is a full revision
  6905. identifier (e.g. the full SHA hash in git) and not just a tag.
  6906. .. note::
  6907. For information on limitations when inheriting the latest revision
  6908. of software using :term:`SRCREV`, see the :term:`AUTOREV` variable
  6909. description and the
  6910. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  6911. section, which is in the Yocto Project Development Tasks Manual.
  6912. :term:`SRCTREECOVEREDTASKS`
  6913. A list of tasks that are typically not relevant (and therefore skipped)
  6914. when building using the :ref:`ref-classes-externalsrc`
  6915. class. The default value as set in that class file is the set of tasks
  6916. that are rarely needed when using external source::
  6917. SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
  6918. The notable exception is when processing external kernel source as
  6919. defined in the :ref:`ref-classes-kernel-yocto` class file (formatted for
  6920. aesthetics)::
  6921. SRCTREECOVEREDTASKS += "\
  6922. do_validate_branches \
  6923. do_kernel_configcheck \
  6924. do_kernel_checkout \
  6925. do_fetch \
  6926. do_unpack \
  6927. do_patch \
  6928. "
  6929. See the associated :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD`
  6930. variables for more information.
  6931. :term:`SSTATE_DIR`
  6932. The directory for the shared state cache.
  6933. :term:`SSTATE_EXCLUDEDEPS_SYSROOT`
  6934. This variable allows to specify indirect dependencies to exclude
  6935. from sysroots, for example to avoid the situations when a dependency on
  6936. any ``-native`` recipe will pull in all dependencies of that recipe
  6937. in the recipe sysroot. This behaviour might not always be wanted,
  6938. for example when that ``-native`` recipe depends on build tools
  6939. that are not relevant for the current recipe.
  6940. This way, irrelevant dependencies are ignored, which could have
  6941. prevented the reuse of prebuilt artifacts stored in the Shared
  6942. State Cache.
  6943. :term:`SSTATE_EXCLUDEDEPS_SYSROOT` is evaluated as two regular
  6944. expressions of recipe and dependency to ignore. An example
  6945. is the rule in :oe_git:`meta/conf/layer.conf </openembedded-core/tree/meta/conf/layer.conf>`::
  6946. # Nothing needs to depend on libc-initial
  6947. # base-passwd/shadow-sysroot don't need their dependencies
  6948. SSTATE_EXCLUDEDEPS_SYSROOT += "\
  6949. .*->.*-initial.* \
  6950. .*(base-passwd|shadow-sysroot)->.* \
  6951. "
  6952. The ``->`` substring represents the dependency between
  6953. the two regular expressions.
  6954. :term:`SSTATE_MIRROR_ALLOW_NETWORK`
  6955. If set to "1", allows fetches from mirrors that are specified in
  6956. :term:`SSTATE_MIRRORS` to work even when
  6957. fetching from the network is disabled by setting :term:`BB_NO_NETWORK` to
  6958. "1". Using the :term:`SSTATE_MIRROR_ALLOW_NETWORK` variable is useful if
  6959. you have set :term:`SSTATE_MIRRORS` to point to an internal server for
  6960. your shared state cache, but you want to disable any other fetching
  6961. from the network.
  6962. :term:`SSTATE_MIRRORS`
  6963. Configures the OpenEmbedded build system to search other mirror
  6964. locations for prebuilt cache data objects before building out the
  6965. data. This variable works like fetcher :term:`MIRRORS`
  6966. and :term:`PREMIRRORS` and points to the cache
  6967. locations to check for the shared state (sstate) objects.
  6968. You can specify a filesystem directory or a remote URL such as HTTP
  6969. or FTP. The locations you specify need to contain the shared state
  6970. cache (sstate-cache) results from previous builds. The sstate-cache
  6971. you point to can also be from builds on other machines.
  6972. When pointing to sstate build artifacts on another machine that uses
  6973. a different GCC version for native builds, you must configure
  6974. :term:`SSTATE_MIRRORS` with a regular expression that maps local search
  6975. paths to server paths. The paths need to take into account
  6976. :term:`NATIVELSBSTRING` set by the :ref:`ref-classes-uninative` class.
  6977. For example, the following maps the local search path ``universal-4.9``
  6978. to the server-provided path server_url_sstate_path::
  6979. SSTATE_MIRRORS ?= "file://universal-4.9/(.*) https://server_url_sstate_path/universal-4.8/\1"
  6980. If a mirror uses the same structure as
  6981. :term:`SSTATE_DIR`, you need to add "PATH" at the
  6982. end as shown in the examples below. The build system substitutes the
  6983. correct path within the directory structure::
  6984. SSTATE_MIRRORS ?= "\
  6985. file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
  6986. file://.* file:///some-local-dir/sstate/PATH"
  6987. .. note::
  6988. If the mirror is protected behind a username and password, the
  6989. :term:`build host` needs to be configured so the :term:`build system
  6990. <OpenEmbedded Build System>` is able to download the sstate cache using
  6991. authentication.
  6992. The recommended way to do that is by setting the following parameters
  6993. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  6994. directory)::
  6995. machine someserver.tld
  6996. login <user>
  6997. password <password>
  6998. This file requires permissions set to ``400`` or ``600`` to prevent
  6999. other users from reading the file::
  7000. chmod 600 "$HOME/.netrc"
  7001. Another method to configure the username and password is from the
  7002. URL in :term:`SSTATE_MIRRORS` directly, with the ``user`` and ``pswd``
  7003. parameters::
  7004. SSTATE_MIRRORS ?= "\
  7005. file://.* https://someserver.tld/share/sstate/PATH;user=<user>;pswd=<password>;downloadfilename=PATH \
  7006. "
  7007. The Yocto Project actually shares the cache data objects built by its
  7008. autobuilder::
  7009. SSTATE_MIRRORS ?= "file://.* http://cdn.jsdelivr.net/yocto/sstate/all/PATH;downloadfilename=PATH"
  7010. As such binary artifacts are built for the generic QEMU machines
  7011. supported by the various Poky releases, they are less likely to be
  7012. reusable in real projects building binaries optimized for a specific
  7013. CPU family.
  7014. :term:`SSTATE_SCAN_FILES`
  7015. Controls the list of files the OpenEmbedded build system scans for
  7016. hardcoded installation paths. The variable uses a space-separated
  7017. list of filenames (not paths) with standard wildcard characters
  7018. allowed.
  7019. During a build, the OpenEmbedded build system creates a shared state
  7020. (sstate) object during the first stage of preparing the sysroots.
  7021. That object is scanned for hardcoded paths for original installation
  7022. locations. The list of files that are scanned for paths is controlled
  7023. by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files
  7024. they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather
  7025. than the variable being comprehensively set. The
  7026. :ref:`ref-classes-sstate` class specifies the default list of files.
  7027. For details on the process, see the :ref:`ref-classes-staging` class.
  7028. :term:`SSTATE_SKIP_CREATION`
  7029. The :term:`SSTATE_SKIP_CREATION` variable can be used to skip the
  7030. creation of :ref:`shared state <overview-manual/concepts:shared state cache>`
  7031. tarball files. It makes sense e.g. for image creation tasks as tarring images
  7032. and keeping them in sstate would consume a lot of disk space.
  7033. In general it is not recommended to use this variable as missing sstate
  7034. artefacts adversely impact the build, particularly for entries in the
  7035. middle of dependency chains. The case it can make sense is where the
  7036. size and time costs of the artefact are similar to just running the
  7037. tasks. This generally only applies to end artefact output like images.
  7038. The syntax to disable it for one task is::
  7039. SSTATE_SKIP_CREATION:task-image-complete = "1"
  7040. The syntax to disable it for the whole recipe is::
  7041. SSTATE_SKIP_CREATION = "1"
  7042. :term:`STAGING_BASE_LIBDIR_NATIVE`
  7043. Specifies the path to the ``/lib`` subdirectory of the sysroot
  7044. directory for the build host.
  7045. :term:`STAGING_BASELIBDIR`
  7046. Specifies the path to the ``/lib`` subdirectory of the sysroot
  7047. directory for the target for which the current recipe is being built
  7048. (:term:`STAGING_DIR_HOST`).
  7049. :term:`STAGING_BINDIR`
  7050. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  7051. directory for the target for which the current recipe is being built
  7052. (:term:`STAGING_DIR_HOST`).
  7053. :term:`STAGING_BINDIR_CROSS`
  7054. Specifies the path to the directory containing binary configuration
  7055. scripts. These scripts provide configuration information for other
  7056. software that wants to make use of libraries or include files
  7057. provided by the software associated with the script.
  7058. .. note::
  7059. This style of build configuration has been largely replaced by
  7060. ``pkg-config``. Consequently, if ``pkg-config`` is supported by the
  7061. library to which you are linking, it is recommended you use
  7062. ``pkg-config`` instead of a provided configuration script.
  7063. :term:`STAGING_BINDIR_NATIVE`
  7064. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  7065. directory for the build host.
  7066. :term:`STAGING_DATADIR`
  7067. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  7068. directory for the target for which the current recipe is being built
  7069. (:term:`STAGING_DIR_HOST`).
  7070. :term:`STAGING_DATADIR_NATIVE`
  7071. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  7072. directory for the build host.
  7073. :term:`STAGING_DIR`
  7074. Helps construct the ``recipe-sysroots`` directory, which is used
  7075. during packaging.
  7076. For information on how staging for recipe-specific sysroots occurs,
  7077. see the :ref:`ref-tasks-populate_sysroot`
  7078. task, the ":ref:`dev-manual/devtool:sharing files between recipes`"
  7079. section in the Yocto Project Development Tasks Manual, the
  7080. ":ref:`overview-manual/concepts:configuration, compilation, and staging`"
  7081. section in the Yocto Project Overview and Concepts Manual, and the
  7082. :term:`SYSROOT_DIRS` variable.
  7083. .. note::
  7084. Recipes should never write files directly under the :term:`STAGING_DIR`
  7085. directory because the OpenEmbedded build system manages the
  7086. directory automatically. Instead, files should be installed to
  7087. ``${``\ :term:`D`\ ``}`` within your recipe's :ref:`ref-tasks-install`
  7088. task and then the OpenEmbedded build system will stage a subset of
  7089. those files into the sysroot.
  7090. :term:`STAGING_DIR_HOST`
  7091. Specifies the path to the sysroot directory for the system on which
  7092. the component is built to run (the system that hosts the component).
  7093. For most recipes, this sysroot is the one in which that recipe's
  7094. :ref:`ref-tasks-populate_sysroot` task copies
  7095. files. Exceptions include ``-native`` recipes, where the
  7096. :ref:`ref-tasks-populate_sysroot` task instead uses
  7097. :term:`STAGING_DIR_NATIVE`. Depending on
  7098. the type of recipe and the build target, :term:`STAGING_DIR_HOST` can
  7099. have the following values:
  7100. - For recipes building for the target machine, the value is
  7101. "${:term:`STAGING_DIR`}/${:term:`MACHINE`}".
  7102. - For native recipes building for the build host, the value is empty
  7103. given the assumption that when building for the build host, the
  7104. build host's own directories should be used.
  7105. .. note::
  7106. ``-native`` recipes are not installed into host paths like such
  7107. as ``/usr``. Rather, these recipes are installed into
  7108. :term:`STAGING_DIR_NATIVE`. When compiling ``-native`` recipes,
  7109. standard build environment variables such as
  7110. :term:`CPPFLAGS` and
  7111. :term:`CFLAGS` are set up so that both host paths
  7112. and :term:`STAGING_DIR_NATIVE` are searched for libraries and
  7113. headers using, for example, GCC's ``-isystem`` option.
  7114. Thus, the emphasis is that the ``STAGING_DIR*`` variables
  7115. should be viewed as input variables by tasks such as
  7116. :ref:`ref-tasks-configure`,
  7117. :ref:`ref-tasks-compile`, and
  7118. :ref:`ref-tasks-install`. Having the real system
  7119. root correspond to :term:`STAGING_DIR_HOST` makes conceptual sense
  7120. for ``-native`` recipes, as they make use of host headers and
  7121. libraries.
  7122. Check :term:`RECIPE_SYSROOT` and :term:`RECIPE_SYSROOT_NATIVE`.
  7123. :term:`STAGING_DIR_NATIVE`
  7124. Specifies the path to the sysroot directory used when building
  7125. components that run on the build host itself.
  7126. The default value is ``"${RECIPE_SYSROOT_NATIVE}"``,
  7127. check :term:`RECIPE_SYSROOT_NATIVE`.
  7128. :term:`STAGING_DIR_TARGET`
  7129. Specifies the path to the sysroot used for the system for which the
  7130. component generates code. For components that do not generate code,
  7131. which is the majority, :term:`STAGING_DIR_TARGET` is set to match
  7132. :term:`STAGING_DIR_HOST`.
  7133. Some recipes build binaries that can run on the target system but those
  7134. binaries in turn generate code for another different system (e.g.
  7135. :ref:`ref-classes-cross-canadian` recipes). Using terminology from GNU,
  7136. the primary system is referred to as the "HOST" and the secondary, or
  7137. different, system is referred to as the "TARGET". Thus, the binaries
  7138. run on the "HOST" system and generate binaries for the "TARGET"
  7139. system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used
  7140. for the "HOST" system, while :term:`STAGING_DIR_TARGET` points to the
  7141. sysroot used for the "TARGET" system.
  7142. :term:`STAGING_ETCDIR_NATIVE`
  7143. Specifies the path to the ``/etc`` subdirectory of the sysroot
  7144. directory for the build host.
  7145. :term:`STAGING_EXECPREFIXDIR`
  7146. Specifies the path to the ``/usr`` subdirectory of the sysroot
  7147. directory for the target for which the current recipe is being built
  7148. (:term:`STAGING_DIR_HOST`).
  7149. :term:`STAGING_INCDIR`
  7150. Specifies the path to the ``/usr/include`` subdirectory of the
  7151. sysroot directory for the target for which the current recipe being
  7152. built (:term:`STAGING_DIR_HOST`).
  7153. :term:`STAGING_INCDIR_NATIVE`
  7154. Specifies the path to the ``/usr/include`` subdirectory of the
  7155. sysroot directory for the build host.
  7156. :term:`STAGING_KERNEL_BUILDDIR`
  7157. Points to the directory containing the kernel build artifacts.
  7158. Recipes building software that needs to access kernel build artifacts
  7159. (e.g. ``systemtap-uprobes``) can look in the directory specified with
  7160. the :term:`STAGING_KERNEL_BUILDDIR` variable to find these artifacts
  7161. after the kernel has been built.
  7162. :term:`STAGING_KERNEL_DIR`
  7163. The directory with kernel headers that are required to build
  7164. out-of-tree modules.
  7165. :term:`STAGING_LIBDIR`
  7166. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  7167. directory for the target for which the current recipe is being built
  7168. (:term:`STAGING_DIR_HOST`).
  7169. :term:`STAGING_LIBDIR_NATIVE`
  7170. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  7171. directory for the build host.
  7172. :term:`STAMP`
  7173. Specifies the base path used to create recipe stamp files. The path
  7174. to an actual stamp file is constructed by evaluating this string and
  7175. then appending additional information. Currently, the default
  7176. assignment for :term:`STAMP` as set in the ``meta/conf/bitbake.conf``
  7177. file is::
  7178. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  7179. For information on how BitBake uses stamp files to determine if a
  7180. task should be rerun, see the
  7181. ":ref:`overview-manual/concepts:stamp files and the rerunning of tasks`"
  7182. section in the Yocto Project Overview and Concepts Manual.
  7183. See :term:`STAMPS_DIR`,
  7184. :term:`MULTIMACH_TARGET_SYS`,
  7185. :term:`PN`, :term:`EXTENDPE`,
  7186. :term:`PV`, and :term:`PR` for related variable
  7187. information.
  7188. :term:`STAMPCLEAN`
  7189. See :term:`bitbake:STAMPCLEAN` in the BitBake manual.
  7190. :term:`STAMPS_DIR`
  7191. Specifies the base directory in which the OpenEmbedded build system
  7192. places stamps. The default directory is ``${TMPDIR}/stamps``.
  7193. :term:`STRIP`
  7194. The minimal command and arguments to run :manpage:`strip <strip(1)>`,
  7195. which is used to strip symbols.
  7196. :term:`SUMMARY`
  7197. The short (72 characters or less) summary of the binary package for
  7198. packaging systems such as ``opkg``, ``rpm``, or ``dpkg``. By default,
  7199. :term:`SUMMARY` is used to define the
  7200. :term:`DESCRIPTION` variable if :term:`DESCRIPTION` is
  7201. not set in the recipe.
  7202. :term:`SVNDIR`
  7203. The directory in which files checked out of a Subversion system are
  7204. stored.
  7205. :term:`SYSLINUX_DEFAULT_CONSOLE`
  7206. Specifies the kernel boot default console. If you want to use a
  7207. console other than the default, set this variable in your recipe as
  7208. follows where "X" is the console number you want to use::
  7209. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  7210. The :ref:`ref-classes-syslinux` class initially sets
  7211. this variable to null but then checks for a value later.
  7212. :term:`SYSLINUX_OPTS`
  7213. Lists additional options to add to the syslinux file. You need to set
  7214. this variable in your recipe. If you want to list multiple options,
  7215. separate the options with a semicolon character (``;``).
  7216. The :ref:`ref-classes-syslinux` class uses this variable
  7217. to create a set of options.
  7218. :term:`SYSLINUX_SERIAL`
  7219. Specifies the alternate serial port or turns it off. To turn off
  7220. serial, set this variable to an empty string in your recipe. The
  7221. variable's default value is set in the
  7222. :ref:`ref-classes-syslinux` class as follows::
  7223. SYSLINUX_SERIAL ?= "0 115200"
  7224. The class checks for and uses the variable as needed.
  7225. :term:`SYSLINUX_SERIAL_TTY`
  7226. Specifies the alternate console=tty... kernel boot argument. The
  7227. variable's default value is set in the :ref:`ref-classes-syslinux`
  7228. class as follows::
  7229. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  7230. The class checks for and uses the variable as needed.
  7231. :term:`SYSLINUX_SPLASH`
  7232. An ``.LSS`` file used as the background for the VGA boot menu when
  7233. you use the boot menu. You need to set this variable in your recipe.
  7234. The :ref:`ref-classes-syslinux` class checks for this
  7235. variable and if found, the OpenEmbedded build system installs the
  7236. splash screen.
  7237. :term:`SYSROOT_DESTDIR`
  7238. Points to the temporary directory under the work directory (default
  7239. "``${``\ :term:`WORKDIR`\ ``}/sysroot-destdir``")
  7240. where the files populated into the sysroot are assembled during the
  7241. :ref:`ref-tasks-populate_sysroot` task.
  7242. :term:`SYSROOT_DIRS`
  7243. Directories that are staged into the sysroot by the
  7244. :ref:`ref-tasks-populate_sysroot` task. By
  7245. default, the following directories are staged::
  7246. SYSROOT_DIRS = " \
  7247. ${includedir} \
  7248. ${libdir} \
  7249. ${base_libdir} \
  7250. ${nonarch_base_libdir} \
  7251. ${datadir} \
  7252. /sysroot-only \
  7253. "
  7254. Consider the following example in which you need to manipulate this variable.
  7255. Assume you have a recipe ``A`` that provides a shared library ``.so.*`` that is
  7256. installed into a custom folder other than "``${libdir}``"
  7257. or "``${base_libdir}``", let's say "``/opt/lib``".
  7258. .. note::
  7259. This is not a recommended way to deal with shared libraries, but this
  7260. is just to show the usefulness of setting :term:`SYSROOT_DIRS`.
  7261. When a recipe ``B`` :term:`DEPENDS` on ``A``, it means what is in
  7262. :term:`SYSROOT_DIRS` will be copied from :term:`D` of the recipe ``A``
  7263. into ``B``'s :term:`SYSROOT_DESTDIR` that is "``${WORKDIR}/sysroot-destdir``".
  7264. Now, since ``/opt/lib`` is not in :term:`SYSROOT_DIRS`, it will never be copied to
  7265. ``A``'s :term:`RECIPE_SYSROOT`, which is "``${WORKDIR}/recipe-sysroot``". So,
  7266. the linking process will fail.
  7267. To fix this, you need to add ``/opt/lib`` to :term:`SYSROOT_DIRS`::
  7268. SYSROOT_DIRS:append = " /opt/lib"
  7269. .. note::
  7270. Even after setting ``/opt/lib`` to :term:`SYSROOT_DIRS`, the linking process will still fail
  7271. because the linker does not know that location, since :term:`TARGET_LDFLAGS`
  7272. doesn't contain it (if your recipe is for the target). Therefore, so you should add::
  7273. TARGET_LDFLAGS:append = " -L${RECIPE_SYSROOT}/opt/lib"
  7274. :term:`SYSROOT_DIRS_IGNORE`
  7275. Directories that are not staged into the sysroot by the
  7276. :ref:`ref-tasks-populate_sysroot` task. You
  7277. can use this variable to exclude certain subdirectories of
  7278. directories listed in :term:`SYSROOT_DIRS` from
  7279. staging. By default, the following directories are not staged::
  7280. SYSROOT_DIRS_IGNORE = " \
  7281. ${mandir} \
  7282. ${docdir} \
  7283. ${infodir} \
  7284. ${datadir}/X11/locale \
  7285. ${datadir}/applications \
  7286. ${datadir}/bash-completion \
  7287. ${datadir}/fonts \
  7288. ${datadir}/gtk-doc/html \
  7289. ${datadir}/installed-tests \
  7290. ${datadir}/locale \
  7291. ${datadir}/pixmaps \
  7292. ${datadir}/terminfo \
  7293. ${libdir}/${BPN}/ptest \
  7294. "
  7295. :term:`SYSROOT_DIRS_NATIVE`
  7296. Extra directories staged into the sysroot by the
  7297. :ref:`ref-tasks-populate_sysroot` task for
  7298. ``-native`` recipes, in addition to those specified in
  7299. :term:`SYSROOT_DIRS`. By default, the following
  7300. extra directories are staged::
  7301. SYSROOT_DIRS_NATIVE = " \
  7302. ${bindir} \
  7303. ${sbindir} \
  7304. ${base_bindir} \
  7305. ${base_sbindir} \
  7306. ${libexecdir} \
  7307. ${sysconfdir} \
  7308. ${localstatedir} \
  7309. "
  7310. .. note::
  7311. Programs built by ``-native`` recipes run directly from the sysroot
  7312. (:term:`STAGING_DIR_NATIVE`), which is why additional directories
  7313. containing program executables and supporting files need to be staged.
  7314. :term:`SYSROOT_PREPROCESS_FUNCS`
  7315. A list of functions to execute after files are staged into the
  7316. sysroot. These functions are usually used to apply additional
  7317. processing on the staged files, or to stage additional files.
  7318. :term:`SYSTEMD_AUTO_ENABLE`
  7319. When inheriting the :ref:`ref-classes-systemd` class,
  7320. this variable specifies whether the specified service in
  7321. :term:`SYSTEMD_SERVICE` should start
  7322. automatically or not. By default, the service is enabled to
  7323. automatically start at boot time. The default setting is in the
  7324. :ref:`ref-classes-systemd` class as follows::
  7325. SYSTEMD_AUTO_ENABLE ??= "enable"
  7326. You can disable the service by setting the variable to "disable".
  7327. :term:`SYSTEMD_BOOT_CFG`
  7328. When :term:`EFI_PROVIDER` is set to
  7329. "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the
  7330. configuration file that should be used. By default, the
  7331. :ref:`ref-classes-systemd-boot` class sets the
  7332. :term:`SYSTEMD_BOOT_CFG` as follows::
  7333. SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
  7334. For information on Systemd-boot, see the `Systemd-boot
  7335. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  7336. :term:`SYSTEMD_BOOT_ENTRIES`
  7337. When :term:`EFI_PROVIDER` is set to
  7338. "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a
  7339. list of entry files (``*.conf``) to install that contain one boot
  7340. entry per file. By default, the :ref:`ref-classes-systemd-boot` class
  7341. sets the :term:`SYSTEMD_BOOT_ENTRIES` as follows::
  7342. SYSTEMD_BOOT_ENTRIES ?= ""
  7343. For information on Systemd-boot, see the `Systemd-boot
  7344. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  7345. :term:`SYSTEMD_BOOT_TIMEOUT`
  7346. When :term:`EFI_PROVIDER` is set to
  7347. "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the
  7348. boot menu timeout in seconds. By default, the
  7349. :ref:`ref-classes-systemd-boot` class sets the
  7350. :term:`SYSTEMD_BOOT_TIMEOUT` as follows::
  7351. SYSTEMD_BOOT_TIMEOUT ?= "10"
  7352. For information on Systemd-boot, see the `Systemd-boot
  7353. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  7354. :term:`SYSTEMD_DEFAULT_TARGET`
  7355. This variable allows to set the default unit that systemd starts at bootup.
  7356. Usually, this is either ``multi-user.target`` or ``graphical.target``.
  7357. This works by creating a ``default.target`` symbolic link to the chosen systemd
  7358. target file.
  7359. See `systemd's documentation
  7360. <https://www.freedesktop.org/software/systemd/man/systemd.special.html>`__
  7361. for details.
  7362. For example, this variable is used in the :oe_git:`core-image-minimal-xfce.bb
  7363. </meta-openembedded/tree/meta-xfce/recipes-core/images/core-image-minimal-xfce.bb>`
  7364. recipe::
  7365. SYSTEMD_DEFAULT_TARGET = "graphical.target"
  7366. :term:`SYSTEMD_PACKAGES`
  7367. When inheriting the :ref:`ref-classes-systemd` class,
  7368. this variable locates the systemd unit files when they are not found
  7369. in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES`
  7370. variable is set such that the systemd unit files are assumed to
  7371. reside in the recipes main package::
  7372. SYSTEMD_PACKAGES ?= "${PN}"
  7373. If these unit files are not in this recipe's main package, you need
  7374. to use :term:`SYSTEMD_PACKAGES` to list the package or packages in which
  7375. the build system can find the systemd unit files.
  7376. :term:`SYSTEMD_SERVICE`
  7377. When inheriting the :ref:`ref-classes-systemd` class,
  7378. this variable specifies the systemd service name for a package.
  7379. Multiple services can be specified, each one separated by a space.
  7380. When you specify this file in your recipe, use a package name
  7381. override to indicate the package to which the value applies. Here is
  7382. an example from the connman recipe::
  7383. SYSTEMD_SERVICE:${PN} = "connman.service"
  7384. The package overrides that can be specified are directly related to the value of
  7385. :term:`SYSTEMD_PACKAGES`. Overrides not included in :term:`SYSTEMD_PACKAGES`
  7386. will be silently ignored.
  7387. :term:`SYSVINIT_ENABLED_GETTYS`
  7388. When using :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  7389. specifies a space-separated list of the virtual terminals that should
  7390. run a :wikipedia:`getty <Getty_(Unix)>` (allowing login), assuming
  7391. :term:`USE_VT` is not set to "0".
  7392. The default value for :term:`SYSVINIT_ENABLED_GETTYS` is "1" (i.e. only
  7393. run a getty on the first virtual terminal).
  7394. :term:`T`
  7395. This variable points to a directory were BitBake places temporary
  7396. files, which consist mostly of task logs and scripts, when building a
  7397. particular recipe. The variable is typically set as follows::
  7398. T = "${WORKDIR}/temp"
  7399. The :term:`WORKDIR` is the directory into which
  7400. BitBake unpacks and builds the recipe. The default ``bitbake.conf``
  7401. file sets this variable.
  7402. The :term:`T` variable is not to be confused with the
  7403. :term:`TMPDIR` variable, which points to the root of
  7404. the directory tree where BitBake places the output of an entire
  7405. build.
  7406. :term:`TARGET_ARCH`
  7407. The target machine's architecture. The OpenEmbedded build system
  7408. supports many architectures. Here is an example list of architectures
  7409. supported. This list is by no means complete as the architecture is
  7410. configurable:
  7411. - arm
  7412. - i586
  7413. - x86_64
  7414. - powerpc
  7415. - powerpc64
  7416. - mips
  7417. - mipsel
  7418. For additional information on machine architectures, see the
  7419. :term:`TUNE_ARCH` variable.
  7420. :term:`TARGET_AS_ARCH`
  7421. Specifies architecture-specific assembler flags for the target
  7422. system. :term:`TARGET_AS_ARCH` is initialized from
  7423. :term:`TUNE_ASARGS` by default in the BitBake
  7424. configuration file (``meta/conf/bitbake.conf``)::
  7425. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  7426. :term:`TARGET_CC_ARCH`
  7427. Specifies architecture-specific C compiler flags for the target
  7428. system. :term:`TARGET_CC_ARCH` is initialized from
  7429. :term:`TUNE_CCARGS` by default.
  7430. .. note::
  7431. It is a common workaround to append :term:`LDFLAGS` to
  7432. :term:`TARGET_CC_ARCH` in recipes that build software for the target that
  7433. would not otherwise respect the exported :term:`LDFLAGS` variable.
  7434. :term:`TARGET_CC_KERNEL_ARCH`
  7435. This is a specific kernel compiler flag for a CPU or Application
  7436. Binary Interface (ABI) tune. The flag is used rarely and only for
  7437. cases where a userspace :term:`TUNE_CCARGS` is not
  7438. compatible with the kernel compilation. The :term:`TARGET_CC_KERNEL_ARCH`
  7439. variable allows the kernel (and associated modules) to use a
  7440. different configuration. See the
  7441. ``meta/conf/machine/include/arm/feature-arm-thumb.inc`` file in the
  7442. :term:`Source Directory` for an example.
  7443. :term:`TARGET_CFLAGS`
  7444. Specifies the flags to pass to the C compiler when building for the
  7445. target. When building in the target context,
  7446. :term:`CFLAGS` is set to the value of this variable by
  7447. default.
  7448. Additionally, the SDK's environment setup script sets the :term:`CFLAGS`
  7449. variable in the environment to the :term:`TARGET_CFLAGS` value so that
  7450. executables built using the SDK also have the flags applied.
  7451. :term:`TARGET_CPPFLAGS`
  7452. Specifies the flags to pass to the C pre-processor (i.e. to both the
  7453. C and the C++ compilers) when building for the target. When building
  7454. in the target context, :term:`CPPFLAGS` is set to the
  7455. value of this variable by default.
  7456. Additionally, the SDK's environment setup script sets the
  7457. :term:`CPPFLAGS` variable in the environment to the :term:`TARGET_CPPFLAGS`
  7458. value so that executables built using the SDK also have the flags
  7459. applied.
  7460. :term:`TARGET_CXXFLAGS`
  7461. Specifies the flags to pass to the C++ compiler when building for the
  7462. target. When building in the target context,
  7463. :term:`CXXFLAGS` is set to the value of this variable
  7464. by default.
  7465. Additionally, the SDK's environment setup script sets the
  7466. :term:`CXXFLAGS` variable in the environment to the :term:`TARGET_CXXFLAGS`
  7467. value so that executables built using the SDK also have the flags
  7468. applied.
  7469. :term:`TARGET_DBGSRC_DIR`
  7470. Specifies the target path to debug source files. The default is
  7471. ``/usr/src/debug/${PN}/${PV}``.
  7472. :term:`TARGET_FPU`
  7473. Specifies the method for handling FPU code. For FPU-less targets,
  7474. which include most ARM CPUs, the variable must be set to "soft". If
  7475. not, the kernel emulation gets used, which results in a performance
  7476. penalty.
  7477. :term:`TARGET_LD_ARCH`
  7478. Specifies architecture-specific linker flags for the target system.
  7479. :term:`TARGET_LD_ARCH` is initialized from
  7480. :term:`TUNE_LDARGS` by default in the BitBake
  7481. configuration file (``meta/conf/bitbake.conf``)::
  7482. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  7483. :term:`TARGET_LDFLAGS`
  7484. Specifies the flags to pass to the linker when building for the
  7485. target. When building in the target context,
  7486. :term:`LDFLAGS` is set to the value of this variable
  7487. by default.
  7488. Additionally, the SDK's environment setup script sets the
  7489. :term:`LDFLAGS` variable in the environment to the
  7490. :term:`TARGET_LDFLAGS` value so that executables built using the SDK also
  7491. have the flags applied.
  7492. :term:`TARGET_OS`
  7493. Specifies the target's operating system. The variable can be set to
  7494. "linux" for glibc-based systems (GNU C Library) and to "linux-musl"
  7495. for musl libc. For ARM/EABI targets, the possible values are
  7496. "linux-gnueabi" and "linux-musleabi".
  7497. :term:`TARGET_PREFIX`
  7498. Specifies the prefix used for the toolchain binary target tools.
  7499. Depending on the type of recipe and the build target,
  7500. :term:`TARGET_PREFIX` is set as follows:
  7501. - For recipes building for the target machine, the value is
  7502. "${:term:`TARGET_SYS`}-".
  7503. - For native recipes, the build system sets the variable to the
  7504. value of :term:`BUILD_PREFIX`.
  7505. - For native SDK recipes (:ref:`ref-classes-nativesdk`),
  7506. the build system sets the variable to the value of :term:`SDK_PREFIX`.
  7507. :term:`TARGET_SYS`
  7508. Specifies the system, including the architecture and the operating
  7509. system, for which the build is occurring in the context of the
  7510. current recipe.
  7511. The OpenEmbedded build system automatically sets this variable based
  7512. on :term:`TARGET_ARCH`,
  7513. :term:`TARGET_VENDOR`, and
  7514. :term:`TARGET_OS` variables.
  7515. .. note::
  7516. You do not need to set the :term:`TARGET_SYS` variable yourself.
  7517. Consider these two examples:
  7518. - Given a native recipe on a 32-bit, x86 machine running Linux, the
  7519. value is "i686-linux".
  7520. - Given a recipe being built for a little-endian, MIPS target
  7521. running Linux, the value might be "mipsel-linux".
  7522. :term:`TARGET_VENDOR`
  7523. Specifies the name of the target vendor.
  7524. :term:`TCLIBC`
  7525. Specifies the GNU standard C library (``libc``) variant to use during
  7526. the build process.
  7527. You can select "glibc", "musl", "newlib", or "baremetal".
  7528. :term:`TCMODE`
  7529. Specifies the toolchain selector. :term:`TCMODE` controls the
  7530. characteristics of the generated packages and images by telling the
  7531. OpenEmbedded build system which toolchain profile to use. By default,
  7532. the OpenEmbedded build system builds its own internal toolchain. The
  7533. variable's default value is "default", which uses that internal
  7534. toolchain.
  7535. .. note::
  7536. If :term:`TCMODE` is set to a value other than "default", then it is your
  7537. responsibility to ensure that the toolchain is compatible with the
  7538. default toolchain. Using older or newer versions of these
  7539. components might cause build problems. See
  7540. :doc:`Release Information </migration-guides/index>` for your
  7541. version of the Yocto Project, to find the specific components with
  7542. which the toolchain must be compatible.
  7543. The :term:`TCMODE` variable is similar to :term:`TCLIBC`,
  7544. which controls the variant of the GNU standard C library (``libc``)
  7545. used during the build process: ``glibc`` or ``musl``.
  7546. With additional layers, it is possible to use a pre-compiled external
  7547. toolchain. One example is the Sourcery G++ Toolchain. The support for
  7548. this toolchain resides in the separate Mentor Graphics
  7549. ``meta-sourcery`` layer at
  7550. https://github.com/MentorEmbedded/meta-sourcery/.
  7551. The layer's ``README`` file contains information on how to use the
  7552. Sourcery G++ Toolchain as an external toolchain. You will have to
  7553. add the layer to your ``bblayers.conf`` file and then set the
  7554. :term:`EXTERNAL_TOOLCHAIN` variable in your ``local.conf`` file to
  7555. the location of the toolchain.
  7556. The fundamentals used for this example apply to any external
  7557. toolchain. You can use ``meta-sourcery`` as a template for adding
  7558. support for other external toolchains.
  7559. In addition to toolchain configuration, you will also need a
  7560. corresponding toolchain recipe file. This recipe file needs to package
  7561. up any pre-built objects in the toolchain such as ``libgcc``,
  7562. ``libstdcc++``, any locales, and ``libc``.
  7563. :term:`TC_CXX_RUNTIME`
  7564. Specifies the C/C++ STL and runtime variant to use during
  7565. the build process. Default value is 'gnu'
  7566. You can select "gnu", "llvm", or "android".
  7567. :term:`TEMPLATECONF`
  7568. Specifies the directory used by the build system to find templates
  7569. from which to build the ``bblayers.conf`` and ``local.conf`` files.
  7570. Use this variable if you wish to customize such files, and the default
  7571. BitBake targets shown when sourcing the ``oe-init-build-env`` script.
  7572. For details, see the
  7573. :ref:`dev-manual/custom-template-configuration-directory:creating a custom template configuration directory`
  7574. section in the Yocto Project Development Tasks manual.
  7575. .. note::
  7576. You must set this variable in the external environment in order
  7577. for it to work.
  7578. :term:`TEST_EXPORT_DIR`
  7579. The location the OpenEmbedded build system uses to export tests when
  7580. the :term:`TEST_EXPORT_ONLY` variable is set
  7581. to "1".
  7582. The :term:`TEST_EXPORT_DIR` variable defaults to
  7583. ``"${TMPDIR}/testimage/${PN}"``.
  7584. :term:`TEST_EXPORT_ONLY`
  7585. Specifies to export the tests only. Set this variable to "1" if you
  7586. do not want to run the tests but you want them to be exported in a
  7587. manner that you to run them outside of the build system.
  7588. :term:`TEST_LOG_DIR`
  7589. Holds the SSH log and the boot log for QEMU machines. The
  7590. :term:`TEST_LOG_DIR` variable defaults to ``"${WORKDIR}/testimage"``.
  7591. .. note::
  7592. Actual test results reside in the task log (``log.do_testimage``),
  7593. which is in the ``${WORKDIR}/temp/`` directory.
  7594. :term:`TEST_POWERCONTROL_CMD`
  7595. For automated hardware testing, specifies the command to use to
  7596. control the power of the target machine under test. Typically, this
  7597. command would point to a script that performs the appropriate action
  7598. (e.g. interacting with a web-enabled power strip). The specified
  7599. command should expect to receive as the last argument "off", "on" or
  7600. "cycle" specifying to power off, on, or cycle (power off and then
  7601. power on) the device, respectively.
  7602. :term:`TEST_POWERCONTROL_EXTRA_ARGS`
  7603. For automated hardware testing, specifies additional arguments to
  7604. pass through to the command specified in
  7605. :term:`TEST_POWERCONTROL_CMD`. Setting
  7606. :term:`TEST_POWERCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7607. wish, for example, to separate the machine-specific and
  7608. non-machine-specific parts of the arguments.
  7609. :term:`TEST_QEMUBOOT_TIMEOUT`
  7610. The time in seconds allowed for an image to boot before automated
  7611. runtime tests begin to run against an image. The default timeout
  7612. period to allow the boot process to reach the login prompt is 500
  7613. seconds. You can specify a different value in the ``local.conf``
  7614. file.
  7615. For more information on testing images, see the
  7616. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7617. section in the Yocto Project Test Environment Manual.
  7618. :term:`TEST_SERIALCONTROL_CMD`
  7619. For automated hardware testing, specifies the command to use to
  7620. connect to the serial console of the target machine under test. This
  7621. command simply needs to connect to the serial console and forward
  7622. that connection to standard input and output as any normal terminal
  7623. program does.
  7624. For example, to use the Picocom terminal program on serial device
  7625. ``/dev/ttyUSB0`` at 115200bps, you would set the variable as follows::
  7626. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  7627. :term:`TEST_SERIALCONTROL_EXTRA_ARGS`
  7628. For automated hardware testing, specifies additional arguments to
  7629. pass through to the command specified in
  7630. :term:`TEST_SERIALCONTROL_CMD`. Setting
  7631. :term:`TEST_SERIALCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7632. wish, for example, to separate the machine-specific and
  7633. non-machine-specific parts of the command.
  7634. :term:`TEST_SERVER_IP`
  7635. The IP address of the build machine (host machine). This IP address
  7636. is usually automatically detected. However, if detection fails, this
  7637. variable needs to be set to the IP address of the build machine (i.e.
  7638. where the build is taking place).
  7639. .. note::
  7640. The :term:`TEST_SERVER_IP` variable is only used for a small number of
  7641. tests such as the "dnf" test suite, which needs to download packages
  7642. from ``WORKDIR/oe-rootfs-repo``.
  7643. :term:`TEST_SUITES`
  7644. An ordered list of tests (modules) to run against an image when
  7645. performing automated runtime testing.
  7646. The OpenEmbedded build system provides a core set of tests that can
  7647. be used against images.
  7648. .. note::
  7649. Currently, there is only support for running these tests under
  7650. QEMU.
  7651. Tests include ``ping``, ``ssh``, ``df`` among others. You can add
  7652. your own tests to the list of tests by appending :term:`TEST_SUITES` as
  7653. follows::
  7654. TEST_SUITES:append = " mytest"
  7655. Alternatively, you can
  7656. provide the "auto" option to have all applicable tests run against
  7657. the image::
  7658. TEST_SUITES:append = " auto"
  7659. Using this option causes the
  7660. build system to automatically run tests that are applicable to the
  7661. image. Tests that are not applicable are skipped.
  7662. The order in which tests are run is important. Tests that depend on
  7663. another test must appear later in the list than the test on which
  7664. they depend. For example, if you append the list of tests with two
  7665. tests (``test_A`` and ``test_B``) where ``test_B`` is dependent on
  7666. ``test_A``, then you must order the tests as follows::
  7667. TEST_SUITES = "test_A test_B"
  7668. For more information on testing images, see the
  7669. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7670. section in the Yocto Project Test Environment Manual.
  7671. :term:`TEST_TARGET`
  7672. Specifies the target controller to use when running tests against a
  7673. test image. The default controller to use is "qemu"::
  7674. TEST_TARGET = "qemu"
  7675. A target controller is a class that defines how an image gets
  7676. deployed on a target and how a target is started. A layer can extend
  7677. the controllers by adding a module in the layer's
  7678. ``/lib/oeqa/controllers`` directory and by inheriting the
  7679. ``BaseTarget`` class, which is an abstract class that cannot be used
  7680. as a value of :term:`TEST_TARGET`.
  7681. You can provide the following arguments with :term:`TEST_TARGET`:
  7682. - *"qemu":* Boots a QEMU image and runs the tests. See the
  7683. ":ref:`test-manual/runtime-testing:enabling runtime tests on qemu`" section
  7684. in the Yocto Project Test Environment Manual for more
  7685. information.
  7686. - *"simpleremote":* Runs the tests on target hardware that is
  7687. already up and running. The hardware can be on the network or it
  7688. can be a device running an image on QEMU. You must also set
  7689. :term:`TEST_TARGET_IP` when you use
  7690. "simpleremote".
  7691. .. note::
  7692. This argument is defined in
  7693. ``meta/lib/oeqa/controllers/simpleremote.py``.
  7694. For information on running tests on hardware, see the
  7695. ":ref:`test-manual/runtime-testing:enabling runtime tests on hardware`"
  7696. section in the Yocto Project Test Environment Manual.
  7697. :term:`TEST_TARGET_IP`
  7698. The IP address of your hardware under test. The :term:`TEST_TARGET_IP`
  7699. variable has no effect when :term:`TEST_TARGET` is
  7700. set to "qemu".
  7701. When you specify the IP address, you can also include a port. Here is
  7702. an example::
  7703. TEST_TARGET_IP = "192.168.1.4:2201"
  7704. Specifying a port is
  7705. useful when SSH is started on a non-standard port or in cases when
  7706. your hardware under test is behind a firewall or network that is not
  7707. directly accessible from your host and you need to do port address
  7708. translation.
  7709. :term:`TESTIMAGE_AUTO`
  7710. Automatically runs the series of automated tests for images when an
  7711. image is successfully built. Setting :term:`TESTIMAGE_AUTO` to "1" causes
  7712. any image that successfully builds to automatically boot under QEMU.
  7713. Using the variable also adds in dependencies so that any SDK for
  7714. which testing is requested is automatically built first.
  7715. These tests are written in Python making use of the ``unittest``
  7716. module, and the majority of them run commands on the target system
  7717. over ``ssh``. You can set this variable to "1" in your ``local.conf``
  7718. file in the :term:`Build Directory` to have the
  7719. OpenEmbedded build system automatically run these tests after an
  7720. image successfully builds:
  7721. TESTIMAGE_AUTO = "1"
  7722. For more information
  7723. on enabling, running, and writing these tests, see the
  7724. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7725. section in the Yocto Project Test Environment Manual and the
  7726. ":ref:`ref-classes-testimage`" section.
  7727. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS`
  7728. When using the :ref:`ref-classes-testimage` class, the variable
  7729. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS` lists space-separated paths on the
  7730. target to retrieve onto the host.
  7731. :term:`THISDIR`
  7732. The directory in which the file BitBake is currently parsing is
  7733. located. Do not manually set this variable.
  7734. :term:`TIME`
  7735. The time the build was started. Times appear using the hour, minute,
  7736. and second (HMS) format (e.g. "140159" for one minute and fifty-nine
  7737. seconds past 1400 hours).
  7738. :term:`TMPDIR`
  7739. This variable is the base directory the OpenEmbedded build system
  7740. uses for all build output and intermediate files (other than the
  7741. shared state cache). By default, the :term:`TMPDIR` variable points to
  7742. ``tmp`` within the :term:`Build Directory`.
  7743. If you want to establish this directory in a location other than the
  7744. default, you can uncomment and edit the following statement in the
  7745. ``conf/local.conf`` file in the :term:`Source Directory`::
  7746. #TMPDIR = "${TOPDIR}/tmp"
  7747. An example use for this scenario is to set :term:`TMPDIR` to a local disk,
  7748. which does not use NFS, while having the :term:`Build Directory` use NFS.
  7749. The filesystem used by :term:`TMPDIR` must have standard filesystem
  7750. semantics (i.e. mixed-case files are unique, POSIX file locking, and
  7751. persistent inodes). Due to various issues with NFS and bugs in some
  7752. implementations, NFS does not meet this minimum requirement.
  7753. Consequently, :term:`TMPDIR` cannot be on NFS.
  7754. :term:`TOOLCHAIN_HOST_TASK`
  7755. This variable lists packages the OpenEmbedded build system uses when
  7756. building an SDK, which contains a cross-development environment. The
  7757. packages specified by this variable are part of the toolchain set
  7758. that runs on the :term:`SDKMACHINE`, and each
  7759. package should usually have the prefix ``nativesdk-``. For example,
  7760. consider the following command when building an SDK::
  7761. $ bitbake -c populate_sdk imagename
  7762. In this case, a default list of packages is
  7763. set in this variable, but you can add additional packages to the
  7764. list. See the
  7765. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7766. in the Yocto Project Application Development and the Extensible
  7767. Software Development Kit (eSDK) manual for more information.
  7768. For background information on cross-development toolchains in the
  7769. Yocto Project development environment, see the
  7770. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7771. section in the Yocto Project Overview and Concepts Manual. For
  7772. information on setting up a cross-development environment, see the
  7773. :doc:`/sdk-manual/index` manual.
  7774. Note that this variable applies to building an SDK, not an eSDK,
  7775. in which case the :term:`TOOLCHAIN_HOST_TASK_ESDK` setting should be
  7776. used instead.
  7777. :term:`TOOLCHAIN_HOST_TASK_ESDK`
  7778. This variable allows to extend what is installed in the host
  7779. portion of an eSDK. This is similar to :term:`TOOLCHAIN_HOST_TASK`
  7780. applying to SDKs.
  7781. :term:`TOOLCHAIN_OPTIONS`
  7782. This variable holds extra options passed to the compiler and the linker
  7783. for non ``-native`` recipes as they have to point to their custom
  7784. ``sysroot`` folder pointed to by :term:`RECIPE_SYSROOT`::
  7785. TOOLCHAIN_OPTIONS = " --sysroot=${RECIPE_SYSROOT}"
  7786. Native recipes don't need this variable to be set, as they are
  7787. built for the host machine with the native compiler.
  7788. :term:`TOOLCHAIN_OUTPUTNAME`
  7789. This variable defines the name used for the toolchain output. The
  7790. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
  7791. the :term:`TOOLCHAIN_OUTPUTNAME` variable as follows::
  7792. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  7793. See
  7794. the :term:`SDK_NAME` and
  7795. :term:`SDK_VERSION` variables for additional
  7796. information.
  7797. :term:`TOOLCHAIN_TARGET_TASK`
  7798. This variable lists packages the OpenEmbedded build system uses when
  7799. it creates the target part of an SDK (i.e. the part built for the
  7800. target hardware), which includes libraries and headers. Use this
  7801. variable to add individual packages to the part of the SDK that runs
  7802. on the target. See the
  7803. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7804. in the Yocto Project Application Development and the Extensible
  7805. Software Development Kit (eSDK) manual for more information.
  7806. For background information on cross-development toolchains in the
  7807. Yocto Project development environment, see the
  7808. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7809. section in the Yocto Project Overview and Concepts Manual. For
  7810. information on setting up a cross-development environment, see the
  7811. :doc:`/sdk-manual/index` manual.
  7812. :term:`TOPDIR`
  7813. See :term:`bitbake:TOPDIR` in the BitBake manual.
  7814. :term:`TRANSLATED_TARGET_ARCH`
  7815. A sanitized version of :term:`TARGET_ARCH`. This
  7816. variable is used where the architecture is needed in a value where
  7817. underscores are not allowed, for example within package filenames. In
  7818. this case, dash characters replace any underscore characters used in
  7819. :term:`TARGET_ARCH`.
  7820. Do not edit this variable.
  7821. :term:`TUNE_ARCH`
  7822. The GNU canonical architecture for a specific architecture (i.e.
  7823. ``arm``, ``armeb``, ``mips``, ``mips64``, and so forth). BitBake uses
  7824. this value to setup configuration.
  7825. :term:`TUNE_ARCH` definitions are specific to a given architecture. The
  7826. definitions can be a single static definition, or can be dynamically
  7827. adjusted. You can see details for a given CPU family by looking at
  7828. the architecture's ``README`` file. For example, the
  7829. ``meta/conf/machine/include/mips/README`` file in the
  7830. :term:`Source Directory` provides information for
  7831. :term:`TUNE_ARCH` specific to the ``mips`` architecture.
  7832. :term:`TUNE_ARCH` is tied closely to
  7833. :term:`TARGET_ARCH`, which defines the target
  7834. machine's architecture. The BitBake configuration file
  7835. (``meta/conf/bitbake.conf``) sets :term:`TARGET_ARCH` as follows::
  7836. TARGET_ARCH = "${TUNE_ARCH}"
  7837. The following list, which is by no means complete since architectures
  7838. are configurable, shows supported machine architectures:
  7839. - arm
  7840. - i586
  7841. - x86_64
  7842. - powerpc
  7843. - powerpc64
  7844. - mips
  7845. - mipsel
  7846. :term:`TUNE_ASARGS`
  7847. Specifies architecture-specific assembler flags for the target
  7848. system. The set of flags is based on the selected tune features.
  7849. :term:`TUNE_ASARGS` is set using the tune include files, which are
  7850. typically under ``meta/conf/machine/include/`` and are influenced
  7851. through :term:`TUNE_FEATURES`. For example, the
  7852. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7853. for the x86 architecture as follows::
  7854. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  7855. .. note::
  7856. Board Support Packages (BSPs) select the tune. The selected tune,
  7857. in turn, affects the tune variables themselves (i.e. the tune can
  7858. supply its own set of flags).
  7859. :term:`TUNE_CCARGS`
  7860. Specifies architecture-specific C compiler flags for the target
  7861. system. The set of flags is based on the selected tune features.
  7862. :term:`TUNE_CCARGS` is set using the tune include files, which are
  7863. typically under ``meta/conf/machine/include/`` and are influenced
  7864. through :term:`TUNE_FEATURES`.
  7865. .. note::
  7866. Board Support Packages (BSPs) select the tune. The selected tune,
  7867. in turn, affects the tune variables themselves (i.e. the tune can
  7868. supply its own set of flags).
  7869. :term:`TUNE_FEATURES`
  7870. Features used to "tune" a compiler for optimal use given a specific
  7871. processor. The features are defined within the tune files and allow
  7872. arguments (i.e. ``TUNE_*ARGS``) to be dynamically generated based on
  7873. the features.
  7874. The OpenEmbedded build system verifies the features to be sure they
  7875. are not conflicting and that they are supported.
  7876. The BitBake configuration file (``meta/conf/bitbake.conf``) defines
  7877. :term:`TUNE_FEATURES` as follows::
  7878. TUNE_FEATURES ??= "${TUNE_FEATURES:tune-${DEFAULTTUNE}}"
  7879. See the :term:`DEFAULTTUNE` variable for more information.
  7880. :term:`TUNE_LDARGS`
  7881. Specifies architecture-specific linker flags for the target system.
  7882. The set of flags is based on the selected tune features.
  7883. :term:`TUNE_LDARGS` is set using the tune include files, which are
  7884. typically under ``meta/conf/machine/include/`` and are influenced
  7885. through :term:`TUNE_FEATURES`. For example, the
  7886. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7887. for the x86 architecture as follows::
  7888. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  7889. .. note::
  7890. Board Support Packages (BSPs) select the tune. The selected tune,
  7891. in turn, affects the tune variables themselves (i.e. the tune can
  7892. supply its own set of flags).
  7893. :term:`TUNE_PKGARCH`
  7894. The package architecture understood by the packaging system to define
  7895. the architecture, ABI, and tuning of output packages. The specific
  7896. tune is defined using the "_tune" override as follows::
  7897. TUNE_PKGARCH:tune-tune = "tune"
  7898. These tune-specific package architectures are defined in the machine
  7899. include files. Here is an example of the "core2-32" tuning as used in
  7900. the ``meta/conf/machine/include/x86/tune-core2.inc`` file::
  7901. TUNE_PKGARCH:tune-core2-32 = "core2-32"
  7902. :term:`TUNECONFLICTS[feature]`
  7903. Specifies CPU or Application Binary Interface (ABI) tuning features
  7904. that conflict with feature.
  7905. Known tuning conflicts are specified in the machine include files in
  7906. the :term:`Source Directory`. Here is an example from
  7907. the ``meta/conf/machine/include/mips/arch-mips.inc`` include file
  7908. that lists the "o32" and "n64" features as conflicting with the "n32"
  7909. feature::
  7910. TUNECONFLICTS[n32] = "o32 n64"
  7911. :term:`TUNEVALID[feature]`
  7912. Specifies a valid CPU or Application Binary Interface (ABI) tuning
  7913. feature. The specified feature is stored as a flag. Valid features
  7914. are specified in the machine include files (e.g.
  7915. ``meta/conf/machine/include/arm/arch-arm.inc``). Here is an example
  7916. from that file::
  7917. TUNEVALID[bigendian] = "Enable big-endian mode."
  7918. See the machine include files in the :term:`Source Directory`
  7919. for these features.
  7920. :term:`UBOOT_BINARY`
  7921. Specifies the name of the binary build by U-Boot.
  7922. :term:`UBOOT_CONFIG`
  7923. Configures one or more U-Boot configurations to build. Each
  7924. configuration can define the :term:`UBOOT_MACHINE` and optionally the
  7925. :term:`IMAGE_FSTYPES` and the :term:`UBOOT_BINARY`.
  7926. Here is an example from the ``meta-freescale`` layer. ::
  7927. UBOOT_CONFIG ??= "sdcard-ifc-secure-boot sdcard-ifc sdcard-qspi lpuart qspi secure-boot nor"
  7928. UBOOT_CONFIG[nor] = "ls1021atwr_nor_defconfig"
  7929. UBOOT_CONFIG[sdcard-ifc] = "ls1021atwr_sdcard_ifc_defconfig,,u-boot-with-spl-pbl.bin"
  7930. UBOOT_CONFIG[sdcard-qspi] = "ls1021atwr_sdcard_qspi_defconfig,,u-boot-with-spl-pbl.bin"
  7931. UBOOT_CONFIG[lpuart] = "ls1021atwr_nor_lpuart_defconfig"
  7932. UBOOT_CONFIG[qspi] = "ls1021atwr_qspi_defconfig"
  7933. UBOOT_CONFIG[secure-boot] = "ls1021atwr_nor_SECURE_BOOT_defconfig"
  7934. UBOOT_CONFIG[sdcard-ifc-secure-boot] = "ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
  7935. In this example, all possible seven configurations are selected. Each
  7936. configuration specifies "..._defconfig" as :term:`UBOOT_MACHINE`, and
  7937. the "sd..." configurations define an individual name for
  7938. :term:`UBOOT_BINARY`. No configuration defines a second parameter for
  7939. :term:`IMAGE_FSTYPES` to use for the U-Boot image.
  7940. For more information on how the :term:`UBOOT_CONFIG` is handled, see the
  7941. :ref:`ref-classes-uboot-config` class.
  7942. :term:`UBOOT_DTB_LOADADDRESS`
  7943. Specifies the load address for the dtb image used by U-Boot. During FIT
  7944. image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in
  7945. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7946. used in creating the dtb sections of Image Tree Source for the FIT image.
  7947. :term:`UBOOT_DTBO_LOADADDRESS`
  7948. Specifies the load address for the dtbo image used by U-Boot. During FIT
  7949. image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in
  7950. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7951. used in creating the dtbo sections of Image Tree Source for the FIT image.
  7952. :term:`UBOOT_ENTRYPOINT`
  7953. Specifies the entry point for the U-Boot image. During U-Boot image
  7954. creation, the :term:`UBOOT_ENTRYPOINT` variable is passed as a
  7955. command-line parameter to the ``uboot-mkimage`` utility.
  7956. To pass a 64 bit address for FIT image creation, you will need to set:
  7957. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7958. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7959. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7960. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7961. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7962. classes.
  7963. :term:`UBOOT_ENV`
  7964. This variable allows to add additional environment variables or a script
  7965. to be installed together with U-Boot.
  7966. This file, typically ``uEnv.txt`` or ``boot.cmd``, is installed in
  7967. ``/boot`` as well as copied to the :term:`DEPLOYDIR` directory.
  7968. For machine configurations needing one of these files a ``.bbappend``
  7969. file should include it in the :term:`SRC_URI` of the U-Boot recipe.
  7970. If the variable :term:`UBOOT_ENV_SUFFIX` is set to ``scr`` the script is
  7971. packaged as a uImage (``mkimage -T script..``) otherwise it gets
  7972. installed verbatim.
  7973. Some examples:
  7974. - Adding a script ``boot.cmd`` as a uImage to ``/boot``::
  7975. UBOOT_ENV = "boot"
  7976. UBOOT_ENV_SUFFIX = "scr"
  7977. SRC_URI += "file://${UBOOT_ENV_SRC}"
  7978. - Adding a script ``uEnv.txt`` as a plain text file to ``/boot``::
  7979. UBOOT_ENV = "uEnv"
  7980. UBOOT_ENV_SUFFIX = "txt"
  7981. SRC_URI += "file://${UBOOT_ENV_BINARY}"
  7982. :term:`UBOOT_ENV_SRC_SUFFIX`
  7983. If :term:`UBOOT_ENV_SUFFIX` is set to ``scr`` this is the suffix of the
  7984. plain text script file as it is specified in the :term:`SRC_URI` of the
  7985. U-Boot recipe. It defaults to ``cmd``.
  7986. :term:`UBOOT_ENV_SUFFIX`
  7987. If this variable is set to ``scr`` the script referred to by
  7988. :term:`UBOOT_ENV` gets packaged as a uImage before it gets installed.
  7989. The default is ``txt`` which means the script is installed as-is, with
  7990. no modification.
  7991. :term:`UBOOT_FIT_ADDRESS_CELLS`
  7992. Specifies the value of the ``#address-cells`` value for the
  7993. description of the U-Boot FIT image.
  7994. The default value is set to "1" by the :ref:`ref-classes-uboot-sign`
  7995. class, which corresponds to 32 bit addresses.
  7996. For platforms that need to set 64 bit addresses in
  7997. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  7998. set this value to "2", as two 32 bit values (cells) will be needed
  7999. to represent such addresses.
  8000. Here is an example setting "0x400000000" as a load address::
  8001. UBOOT_FIT_ADDRESS_CELLS = "2"
  8002. UBOOT_LOADADDRESS= "0x04 0x00000000"
  8003. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  8004. :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE`
  8005. `Trusted Firmware-A (TF-A) <https://www.trustedfirmware.org/projects/tf-a>`__
  8006. is a reference implementation of secure world software for Arm A-Profile
  8007. architectures (Armv8-A and Armv7-A), including an Exception Level 3 (EL3)
  8008. Secure Monitor. This variable enables the generation of a U-Boot FIT
  8009. image with a Trusted Firmware-A (TF-A) binary.
  8010. Its default value is "0", so set it to "1" to enable this functionality::
  8011. UBOOT_FIT_ARM_TRUSTED_FIRMWARE = "1"
  8012. :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE`
  8013. Specifies the path to the Trusted Firmware-A (TF-A) binary. Its default
  8014. value is "bl31.bin"::
  8015. UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?= "bl31.bin"
  8016. If a relative path is provided, the file is expected to be relative to
  8017. U-Boot's :term:`B` directory. An absolute path can be provided too,
  8018. e.g.::
  8019. UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?= "${DEPLOY_DIR_IMAGE}/bl31.bin"
  8020. If the Trusted Firmware-A (TF-A) binary is built in a separate recipe,
  8021. you must add the necessary dependency in a U-Boot ``.bbappend`` file. The
  8022. recipe name for Trusted Firmware-A (TF-A) binary is
  8023. ``trusted-firmware-a``, which comes from the
  8024. :yocto_git:`meta-arm </meta-arm>` layer::
  8025. do_compile[depends] += "trusted-firmware-a:do_deploy"
  8026. :term:`UBOOT_FIT_CONF_FIRMWARE`
  8027. Adds one image to the ``firmware`` property of the configuration node of
  8028. the U-Boot Image Tree Source (ITS). Sets the ``firmware`` property to
  8029. select the image to boot first::
  8030. UBOOT_FIT_CONF_FIRMWARE = "fwa"
  8031. If not set, the first entry in "loadables" is used to boot instead.
  8032. :term:`UBOOT_FIT_CONF_USER_LOADABLES`
  8033. Adds one or more user-defined images to the ``loadables`` property of the
  8034. configuration node of the U-Boot Image Tree Source (ITS). This variable
  8035. is handled by the local shell in the recipe so appropriate escaping
  8036. should be done, e.g. escaping quotes.::
  8037. UBOOT_FIT_CONF_USER_LOADABLES = '\"fwa\", \"fwb\"'
  8038. :term:`UBOOT_FIT_DESC`
  8039. Specifies the description string encoded into a U-Boot fitImage. The default
  8040. value is set by the :ref:`ref-classes-uboot-sign` class as follows::
  8041. UBOOT_FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  8042. :term:`UBOOT_FIT_GENERATE_KEYS`
  8043. Decides whether to generate the keys for signing the U-Boot fitImage if
  8044. they don't already exist. The keys are created in :term:`SPL_SIGN_KEYDIR`.
  8045. The default value is "0".
  8046. Enable this as follows::
  8047. UBOOT_FIT_GENERATE_KEYS = "1"
  8048. This variable is used in the :ref:`ref-classes-uboot-sign` class.
  8049. :term:`UBOOT_FIT_HASH_ALG`
  8050. Specifies the hash algorithm used in creating the U-Boot FIT Image.
  8051. It is set by default to ``sha256`` by the :ref:`ref-classes-uboot-sign`
  8052. class.
  8053. :term:`UBOOT_FIT_KEY_GENRSA_ARGS`
  8054. Arguments to ``openssl genrsa`` for generating a RSA private key for
  8055. signing the U-Boot FIT image. The default value of this variable
  8056. is set to "-F4" by the :ref:`ref-classes-uboot-sign` class.
  8057. :term:`UBOOT_FIT_KEY_REQ_ARGS`
  8058. Arguments to ``openssl req`` for generating a certificate for signing
  8059. the U-Boot FIT image. The default value is "-batch -new" by the
  8060. :ref:`ref-classes-uboot-sign` class, "batch" for
  8061. non interactive mode and "new" for generating new keys.
  8062. :term:`UBOOT_FIT_KEY_SIGN_PKCS`
  8063. Format for the public key certificate used for signing the U-Boot FIT
  8064. image. The default value is set to "x509" by the
  8065. :ref:`ref-classes-uboot-sign` class.
  8066. :term:`UBOOT_FIT_SIGN_ALG`
  8067. Specifies the signature algorithm used in creating the U-Boot FIT Image.
  8068. This variable is set by default to "rsa2048" by the
  8069. :ref:`ref-classes-uboot-sign` class.
  8070. :term:`UBOOT_FIT_SIGN_NUMBITS`
  8071. Size of the private key used in signing the U-Boot FIT image, in number
  8072. of bits. The default value for this variable is set to "2048"
  8073. by the :ref:`ref-classes-uboot-sign` class.
  8074. :term:`UBOOT_FIT_TEE`
  8075. A Trusted Execution Environment (TEE) is a secure environment for
  8076. executing code, ensuring high levels of trust in asset management within
  8077. the surrounding system. This variable enables the generation of a U-Boot
  8078. FIT image with a Trusted Execution Environment (TEE) binary.
  8079. Its default value is "0", so set it to "1" to enable this functionality::
  8080. UBOOT_FIT_TEE = "1"
  8081. :term:`UBOOT_FIT_TEE_IMAGE`
  8082. Specifies the path to the Trusted Execution Environment (TEE) binary. Its
  8083. default value is "tee-raw.bin"::
  8084. UBOOT_FIT_TEE_IMAGE ?= "tee-raw.bin"
  8085. If a relative path is provided, the file is expected to be relative to
  8086. U-Boot's :term:`B` directory. An absolute path can be provided too,
  8087. e.g.::
  8088. UBOOT_FIT_TEE_IMAGE ?= "${DEPLOY_DIR_IMAGE}/tee-raw.bin"
  8089. If the Trusted Execution Environment (TEE) binary is built in a separate
  8090. recipe, you must add the necessary dependency in a U-Boot ``.bbappend``
  8091. file. The recipe name for Trusted Execution Environment (TEE) binary is
  8092. ``optee-os``, which comes from the :yocto_git:`meta-arm </meta-arm>`
  8093. layer::
  8094. do_compile[depends] += "optee-os:do_deploy"
  8095. :term:`UBOOT_FIT_USER_SETTINGS`
  8096. Add a user-specific snippet to the U-Boot Image Tree Source (ITS). This
  8097. variable allows the user to add one or more user-defined ``/images`` node
  8098. to the U-Boot Image Tree Source (ITS). For more details, please refer to
  8099. https://fitspec.osfw.foundation/\ .
  8100. The original content of the U-Boot Image Tree Source (ITS) is as
  8101. follows::
  8102. images {
  8103. uboot {
  8104. description = "U-Boot image";
  8105. data = /incbin/("u-boot-nodtb.bin");
  8106. type = "standalone";
  8107. os = "u-boot";
  8108. arch = "";
  8109. compression = "none";
  8110. load = <0x80000000>;
  8111. entry = <0x80000000>;
  8112. };
  8113. };
  8114. Users can include their custom ITS snippet in this variable, e.g.::
  8115. UBOOT_FIT_FWA_ITS = '\
  8116. fwa {\n\
  8117. description = \"FW A\";\n\
  8118. data = /incbin/(\"fwa.bin\");\n\
  8119. type = \"firmware\";\n\
  8120. arch = \"\";\n\
  8121. os = \"\";\n\
  8122. load = <0xb2000000>;\n\
  8123. entry = <0xb2000000>;\n\
  8124. compression = \"none\";\n\
  8125. };\n\
  8126. '
  8127. UBOOT_FIT_USER_SETTINGS = "${UBOOT_FIT_FWA_ITS}"
  8128. This variable is handled by the local shell in the recipe so appropriate
  8129. escaping should be done, e.g. escaping quotes and adding newlines with
  8130. ``\n``.
  8131. The generated content of the U-Boot Image Tree Source (ITS) is as
  8132. follows::
  8133. images {
  8134. uboot {
  8135. description = "U-Boot image";
  8136. data = /incbin/("u-boot-nodtb.bin");
  8137. type = "standalone";
  8138. os = "u-boot";
  8139. arch = "";
  8140. compression = "none";
  8141. load = <0x80000000>;
  8142. entry = <0x80000000>;
  8143. };
  8144. fwa {
  8145. description = "FW A";
  8146. data = /incbin/("fwa.bin");
  8147. type = "firmware";
  8148. arch = "";
  8149. os = "";
  8150. load = <0xb2000000>;
  8151. entry = <0xb2000000>;
  8152. compression = "none";
  8153. };
  8154. };
  8155. :term:`UBOOT_FITIMAGE_ENABLE`
  8156. This variable allows to generate a FIT image for U-Boot, which is one
  8157. of the ways to implement a verified boot process.
  8158. Its default value is "0", so set it to "1" to enable this functionality::
  8159. UBOOT_FITIMAGE_ENABLE = "1"
  8160. See the :ref:`ref-classes-uboot-sign` class for details.
  8161. :term:`UBOOT_LOADADDRESS`
  8162. Specifies the load address for the U-Boot image. During U-Boot image
  8163. creation, the :term:`UBOOT_LOADADDRESS` variable is passed as a
  8164. command-line parameter to the ``uboot-mkimage`` utility.
  8165. To pass a 64 bit address, you will also need to set:
  8166. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  8167. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  8168. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  8169. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  8170. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  8171. classes.
  8172. :term:`UBOOT_LOCALVERSION`
  8173. Appends a string to the name of the local version of the U-Boot
  8174. image. For example, assuming the version of the U-Boot image built
  8175. was "2013.10", the full version string reported by U-Boot would be
  8176. "2013.10-yocto" given the following statement::
  8177. UBOOT_LOCALVERSION = "-yocto"
  8178. :term:`UBOOT_MACHINE`
  8179. Specifies the value passed on the ``make`` command line when building
  8180. a U-Boot image. The value indicates the target platform
  8181. configuration. You typically set this variable from the machine
  8182. configuration file (i.e. ``conf/machine/machine_name.conf``).
  8183. Please see the "Selection of Processor Architecture and Board Type"
  8184. section in the U-Boot README for valid values for this variable.
  8185. :term:`UBOOT_MAKE_TARGET`
  8186. Specifies the target called in the ``Makefile``. The default target
  8187. is "all".
  8188. :term:`UBOOT_MKIMAGE`
  8189. Specifies the name of the mkimage command as used by the
  8190. :ref:`ref-classes-kernel-fitimage` class to assemble
  8191. the FIT image. This can be used to substitute an alternative command, wrapper
  8192. script or function if desired. The default is "uboot-mkimage".
  8193. :term:`UBOOT_MKIMAGE_DTCOPTS`
  8194. Options for the device tree compiler passed to ``mkimage -D`` feature
  8195. while creating a FIT image with the :ref:`ref-classes-kernel-fitimage`
  8196. class. If :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then the
  8197. :ref:`ref-classes-kernel-fitimage` class will not pass the ``-D`` option
  8198. to ``mkimage``.
  8199. This variable is also used by the :ref:`ref-classes-uboot-sign` class.
  8200. :term:`UBOOT_MKIMAGE_KERNEL_TYPE`
  8201. Specifies the type argument for the kernel as passed to ``uboot-mkimage``.
  8202. The default value is "kernel".
  8203. :term:`UBOOT_MKIMAGE_SIGN`
  8204. Specifies the name of the mkimage command as used by the
  8205. :ref:`ref-classes-kernel-fitimage` class to sign
  8206. the FIT image after it has been assembled (if enabled). This can be used
  8207. to substitute an alternative command, wrapper script or function if
  8208. desired. The default is "${:term:`UBOOT_MKIMAGE`}".
  8209. :term:`UBOOT_MKIMAGE_SIGN_ARGS`
  8210. Optionally specifies additional arguments for the
  8211. :ref:`ref-classes-kernel-fitimage` class to pass to the
  8212. mkimage command when signing the FIT image.
  8213. :term:`UBOOT_RD_ENTRYPOINT`
  8214. Specifies the entrypoint for the RAM disk image. During FIT image
  8215. creation, the :term:`UBOOT_RD_ENTRYPOINT` variable is used in
  8216. :ref:`ref-classes-kernel-fitimage` class to specify the entrypoint to be
  8217. used in creating the Image Tree Source for the FIT image.
  8218. :term:`UBOOT_RD_LOADADDRESS`
  8219. Specifies the load address for the RAM disk image. During FIT image
  8220. creation, the :term:`UBOOT_RD_LOADADDRESS` variable is used in
  8221. :ref:`ref-classes-kernel-fitimage` class to specify the load address to
  8222. be used in creating the Image Tree Source for the FIT image.
  8223. :term:`UBOOT_SIGN_ENABLE`
  8224. Enable signing of FIT image. The default value is "0".
  8225. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  8226. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  8227. classes.
  8228. :term:`UBOOT_SIGN_KEYDIR`
  8229. Location of the directory containing the RSA key and certificate used for
  8230. signing FIT image, used by the :ref:`ref-classes-kernel-fitimage` and
  8231. :ref:`ref-classes-uboot-sign` classes.
  8232. :term:`UBOOT_SIGN_KEYNAME`
  8233. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  8234. for signing U-Boot FIT image stored in the :term:`UBOOT_SIGN_KEYDIR`
  8235. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  8236. certificate stored in the :term:`UBOOT_SIGN_KEYDIR` directory, you will
  8237. have to set :term:`UBOOT_SIGN_KEYNAME` to ``dev``.
  8238. :term:`UBOOT_SUFFIX`
  8239. Points to the generated U-Boot extension. For example, ``u-boot.sb``
  8240. has a ``.sb`` extension.
  8241. The default U-Boot extension is ``.bin``
  8242. :term:`UBOOT_TARGET`
  8243. Specifies the target used for building U-Boot. The target is passed
  8244. directly as part of the "make" command (e.g. SPL and AIS). If you do
  8245. not specifically set this variable, the OpenEmbedded build process
  8246. passes and uses "all" for the target during the U-Boot building
  8247. process.
  8248. :term:`UKIFY_CMD`
  8249. When inheriting the :ref:`ref-classes-uki` class,
  8250. `ukify <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__ command to build
  8251. `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  8252. Defaults to ``ukify build``.
  8253. :term:`UKI_CMDLINE`
  8254. When inheriting the :ref:`ref-classes-uki` class, the kernel command line
  8255. to use when booting the `Unified Kernel Image (UKI)
  8256. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  8257. Defaults to ``rootwait root=LABEL=root console=${KERNEL_CONSOLE}``.
  8258. :term:`UKI_CONFIG_FILE`
  8259. When inheriting the :ref:`ref-classes-uki` class, an optional config
  8260. file for the `ukify
  8261. <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__
  8262. command.
  8263. :term:`UKI_FILENAME`
  8264. When inheriting the :ref:`ref-classes-uki` class, the output file name
  8265. for the generated `Unified Kernel Image (UKI)
  8266. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  8267. Defaults to ``uki.efi``.
  8268. :term:`UKI_KERNEL_FILENAME`
  8269. When inheriting the :ref:`ref-classes-uki` class, the kernel image file
  8270. name to use as input. Defaults to :term:`KERNEL_IMAGETYPE`.
  8271. :term:`UKI_SB_CERT`
  8272. When inheriting the :ref:`ref-classes-uki` class, optional UEFI
  8273. secureboot certificate matching the private key in :term:`UKI_SB_KEY`.
  8274. :term:`UKI_SB_KEY`
  8275. When inheriting the :ref:`ref-classes-uki` class, optional UEFI
  8276. secureboot private key to sign the `Unified Kernel Image (UKI)
  8277. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  8278. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`
  8279. Specifies a list of options that, if reported by the configure script
  8280. as being invalid, should not generate a warning during the
  8281. :ref:`ref-tasks-configure` task. Normally, invalid
  8282. configure options are simply not passed to the configure script (e.g.
  8283. should be removed from :term:`EXTRA_OECONF` or
  8284. :term:`PACKAGECONFIG_CONFARGS`).
  8285. However, there are common options that are passed to all
  8286. configure scripts at a class level, but might not be valid for some
  8287. configure scripts. Therefore warnings about these options are useless.
  8288. For these cases, the options are added to :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`.
  8289. The configure arguments check that uses
  8290. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` is part of the
  8291. :ref:`ref-classes-insane` class and is only enabled if the
  8292. recipe inherits the :ref:`ref-classes-autotools` class.
  8293. :term:`UNPACKDIR`
  8294. This variable, used by the :ref:`ref-classes-base` class,
  8295. specifies where fetches sources should be unpacked by the
  8296. :ref:`ref-tasks-unpack` task.
  8297. :term:`UPDATERCPN`
  8298. For recipes inheriting the
  8299. :ref:`ref-classes-update-rc.d` class, :term:`UPDATERCPN`
  8300. specifies the package that contains the initscript that is enabled.
  8301. The default value is "${PN}". Given that almost all recipes that
  8302. install initscripts package them in the main package for the recipe,
  8303. you rarely need to set this variable in individual recipes.
  8304. :term:`UPSTREAM_CHECK_COMMITS`
  8305. You can perform a per-recipe check for what the latest upstream
  8306. source code version is by calling ``devtool latest-version recipe``. If
  8307. the recipe source code is provided from Git repositories, but
  8308. releases are not identified by Git tags, set :term:`UPSTREAM_CHECK_COMMITS`
  8309. to ``1`` in the recipe, and the OpenEmbedded build system
  8310. will compare the latest commit with the one currently specified
  8311. by the recipe (:term:`SRCREV`)::
  8312. UPSTREAM_CHECK_COMMITS = "1"
  8313. :term:`UPSTREAM_CHECK_GITTAGREGEX`
  8314. You can perform a per-recipe check for what the latest upstream
  8315. source code version is by calling ``devtool latest-version recipe``. If
  8316. the recipe source code is provided from Git repositories, the
  8317. OpenEmbedded build system determines the latest upstream version by
  8318. picking the latest tag from the list of all repository tags.
  8319. You can use the :term:`UPSTREAM_CHECK_GITTAGREGEX` variable to provide a
  8320. regular expression to filter only the relevant tags should the
  8321. default filter not work correctly::
  8322. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  8323. :term:`UPSTREAM_CHECK_REGEX`
  8324. Use the :term:`UPSTREAM_CHECK_REGEX` variable to specify a different
  8325. regular expression instead of the default one when the package
  8326. checking system is parsing the page found using
  8327. :term:`UPSTREAM_CHECK_URI`::
  8328. UPSTREAM_CHECK_REGEX = "package_regex"
  8329. :term:`UPSTREAM_CHECK_URI`
  8330. You can perform a per-recipe check for what the latest upstream
  8331. source code version is by calling ``devtool latest-version recipe``. If
  8332. the source code is provided from tarballs, the latest version is
  8333. determined by fetching the directory listing where the tarball is and
  8334. attempting to find a later tarball. When this approach does not work,
  8335. you can use :term:`UPSTREAM_CHECK_URI` to provide a different URI that
  8336. contains the link to the latest tarball::
  8337. UPSTREAM_CHECK_URI = "recipe_url"
  8338. :term:`UPSTREAM_VERSION_UNKNOWN`
  8339. You can perform a per-recipe check for what the latest upstream
  8340. source code version is by calling ``devtool latest-version recipe``.
  8341. If no combination of the :term:`UPSTREAM_CHECK_URI`, :term:`UPSTREAM_CHECK_REGEX`,
  8342. :term:`UPSTREAM_CHECK_GITTAGREGEX` and :term:`UPSTREAM_CHECK_COMMITS` variables in
  8343. the recipe allows to determine what the latest upstream version is,
  8344. you can set :term:`UPSTREAM_VERSION_UNKNOWN` to ``1`` in the recipe
  8345. to acknowledge that the check cannot be performed::
  8346. UPSTREAM_VERSION_UNKNOWN = "1"
  8347. :term:`USE_DEVFS`
  8348. Determines if ``devtmpfs`` is used for ``/dev`` population. The
  8349. default value used for :term:`USE_DEVFS` is "1" when no value is
  8350. specifically set. Typically, you would set :term:`USE_DEVFS` to "0" for a
  8351. statically populated ``/dev`` directory.
  8352. See the ":ref:`dev-manual/device-manager:selecting a device manager`" section in
  8353. the Yocto Project Development Tasks Manual for information on how to
  8354. use this variable.
  8355. :term:`USE_VT`
  8356. When using
  8357. :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  8358. determines whether or not to run a :wikipedia:`getty <Getty_(Unix)>`
  8359. on any virtual terminals in order to enable logging in through those
  8360. terminals.
  8361. The default value used for :term:`USE_VT` is "1" when no default value is
  8362. specifically set. Typically, you would set :term:`USE_VT` to "0" in the
  8363. machine configuration file for machines that do not have a graphical
  8364. display attached and therefore do not need virtual terminal
  8365. functionality.
  8366. :term:`USER_CLASSES`
  8367. A list of classes to globally inherit. These classes are used by the
  8368. OpenEmbedded build system to enable extra features.
  8369. Classes inherited using :term:`USER_CLASSES` must be located in the
  8370. ``classes-global/`` or ``classes/`` subdirectories.
  8371. The default list is set in your ``local.conf`` file::
  8372. USER_CLASSES ?= "buildstats"
  8373. For more information, see
  8374. ``meta-poky/conf/templates/default/local.conf.sample`` in the
  8375. :term:`Source Directory`.
  8376. :term:`USERADD_DEPENDS`
  8377. Specifies a list of recipes that create users / groups (via
  8378. :term:`USERADD_PARAM` / :term:`GROUPADD_PARAM`) which a recipe
  8379. depends upon. This ensures that those users / groups are available
  8380. when building a recipe.
  8381. :term:`USERADD_ERROR_DYNAMIC`
  8382. If set to ``error``, forces the OpenEmbedded build system to produce
  8383. an error if the user identification (``uid``) and group
  8384. identification (``gid``) values are not defined in any of the files
  8385. listed in :term:`USERADD_UID_TABLES` and
  8386. :term:`USERADD_GID_TABLES`. If set to
  8387. ``warn``, a warning will be issued instead.
  8388. The default behavior for the build system is to dynamically apply
  8389. ``uid`` and ``gid`` values. Consequently, the
  8390. :term:`USERADD_ERROR_DYNAMIC` variable is by default not set. If you plan
  8391. on using statically assigned ``gid`` and ``uid`` values, you should
  8392. set the :term:`USERADD_ERROR_DYNAMIC` variable in your ``local.conf``
  8393. file as follows::
  8394. USERADD_ERROR_DYNAMIC = "error"
  8395. Overriding the
  8396. default behavior implies you are going to also take steps to set
  8397. static ``uid`` and ``gid`` values through use of the
  8398. :term:`USERADDEXTENSION`,
  8399. :term:`USERADD_UID_TABLES`, and
  8400. :term:`USERADD_GID_TABLES` variables.
  8401. .. note::
  8402. There is a difference in behavior between setting
  8403. :term:`USERADD_ERROR_DYNAMIC` to ``error`` and setting it to ``warn``.
  8404. When it is set to ``warn``, the build system will report a warning for
  8405. every undefined ``uid`` and ``gid`` in any recipe. But when it is set
  8406. to ``error``, it will only report errors for recipes that are actually
  8407. built.
  8408. This saves you from having to add static IDs for recipes that you
  8409. know will never be built.
  8410. :term:`USERADD_GID_TABLES`
  8411. Specifies a password file to use for obtaining static group
  8412. identification (``gid``) values when the OpenEmbedded build system
  8413. adds a group to the system during package installation.
  8414. When applying static group identification (``gid``) values, the
  8415. OpenEmbedded build system looks in :term:`BBPATH` for a
  8416. ``files/group`` file and then applies those ``uid`` values. Set the
  8417. variable as follows in your ``local.conf`` file::
  8418. USERADD_GID_TABLES = "files/group"
  8419. .. note::
  8420. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  8421. causes the build system to use static ``gid`` values.
  8422. :term:`USERADD_PACKAGES`
  8423. When inheriting the :ref:`ref-classes-useradd` class,
  8424. this variable specifies the individual packages within the recipe
  8425. that require users and/or groups to be added.
  8426. You must set this variable if the recipe inherits the class. For
  8427. example, the following enables adding a user for the main package in
  8428. a recipe::
  8429. USERADD_PACKAGES = "${PN}"
  8430. .. note::
  8431. It follows that if you are going to use the :term:`USERADD_PACKAGES`
  8432. variable, you need to set one or more of the :term:`USERADD_PARAM`,
  8433. :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables.
  8434. :term:`USERADD_PARAM`
  8435. When inheriting the :ref:`ref-classes-useradd` class,
  8436. this variable specifies for a package what parameters should pass to
  8437. the ``useradd`` command if you add a user to the system when the
  8438. package is installed.
  8439. Here is an example from the ``dbus`` recipe::
  8440. USERADD_PARAM:${PN} = "--system --home ${localstatedir}/lib/dbus \
  8441. --no-create-home --shell /bin/false \
  8442. --user-group messagebus"
  8443. For information on the
  8444. standard Linux shell command ``useradd``, see
  8445. https://linux.die.net/man/8/useradd.
  8446. :term:`USERADD_UID_TABLES`
  8447. Specifies a password file to use for obtaining static user
  8448. identification (``uid``) values when the OpenEmbedded build system
  8449. adds a user to the system during package installation.
  8450. When applying static user identification (``uid``) values, the
  8451. OpenEmbedded build system looks in :term:`BBPATH` for a
  8452. ``files/passwd`` file and then applies those ``uid`` values. Set the
  8453. variable as follows in your ``local.conf`` file::
  8454. USERADD_UID_TABLES = "files/passwd"
  8455. .. note::
  8456. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  8457. causes the build system to use static ``uid`` values.
  8458. :term:`USERADDEXTENSION`
  8459. When set to "useradd-staticids", causes the OpenEmbedded build system
  8460. to base all user and group additions on a static ``passwd`` and
  8461. ``group`` files found in :term:`BBPATH`.
  8462. To use static user identification (``uid``) and group identification
  8463. (``gid``) values, set the variable as follows in your ``local.conf``
  8464. file: USERADDEXTENSION = "useradd-staticids"
  8465. .. note::
  8466. Setting this variable to use static ``uid`` and ``gid``
  8467. values causes the OpenEmbedded build system to employ the
  8468. :ref:`ref-classes-useradd` class.
  8469. If you use static ``uid`` and ``gid`` information, you must also
  8470. specify the ``files/passwd`` and ``files/group`` files by setting the
  8471. :term:`USERADD_UID_TABLES` and
  8472. :term:`USERADD_GID_TABLES` variables.
  8473. Additionally, you should also set the
  8474. :term:`USERADD_ERROR_DYNAMIC` variable.
  8475. :term:`VIRTUAL-RUNTIME`
  8476. :term:`VIRTUAL-RUNTIME` is a commonly used prefix for defining virtual
  8477. packages for runtime usage, typically for use in :term:`RDEPENDS`
  8478. or in image definitions.
  8479. An example is ``VIRTUAL-RUNTIME_base-utils`` that makes it possible
  8480. to either use BusyBox based utilities::
  8481. VIRTUAL-RUNTIME_base-utils = "busybox"
  8482. or their full featured implementations from GNU Coreutils
  8483. and other projects::
  8484. VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
  8485. Here are two examples using this virtual runtime package. The
  8486. first one is in :yocto_git:`initramfs-framework_1.0.bb
  8487. </poky/tree/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb?h=scarthgap>`::
  8488. RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}"
  8489. The second example is in the :yocto_git:`core-image-initramfs-boot
  8490. </poky/tree/meta/recipes-core/images/core-image-initramfs-boot.bb?h=scarthgap>`
  8491. image definition::
  8492. PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd"
  8493. :term:`WARN_QA`
  8494. Specifies the quality assurance checks whose failures are reported as
  8495. warnings by the OpenEmbedded build system. You set this variable in
  8496. your distribution configuration file. For a list of the checks you
  8497. can control with this variable, see the
  8498. ":ref:`ref-classes-insane`" section.
  8499. :term:`WATCHDOG_RUNTIME_SEC`
  8500. For the ``systemd`` recipe, this controls the value of the
  8501. ``RuntimeWatchdogSec`` option in ``/etc/systemd/system.conf``. The default
  8502. value is an empty string.
  8503. :term:`WATCHDOG_TIMEOUT`
  8504. Specifies the timeout in seconds used by the ``watchdog-config`` recipe
  8505. and also by ``systemd`` during reboot. The default is 60 seconds.
  8506. :term:`WIC_CREATE_EXTRA_ARGS`
  8507. If the :term:`IMAGE_FSTYPES` variable contains "wic", the build
  8508. will generate a
  8509. :ref:`Wic image <dev-manual/wic:creating partitioned images using wic>`
  8510. automatically when BitBake builds an image recipe. As part of
  8511. this process BitBake will invoke the "`wic create`" command. The
  8512. :term:`WIC_CREATE_EXTRA_ARGS` variable is placed at the end of this
  8513. command which allows the user to supply additional arguments.
  8514. One such useful purpose for this mechanism is to add the ``-D`` (or
  8515. ``--debug``) argument to the "`wic create`" command. This increases the
  8516. amount of debugging information written out to the Wic log during the
  8517. Wic creation process.
  8518. :term:`WIC_SECTOR_SIZE`
  8519. The variable :term:`WIC_SECTOR_SIZE` controls the sector size of Wic
  8520. images. In the background, this controls the value of the
  8521. ``PARTED_SECTOR_SIZE`` environment variable passed to the ``parted``
  8522. command-line utility, used to generated the images. The default value is
  8523. ``512``.
  8524. For more information on how to create Wic images, see the
  8525. ":ref:`dev-manual/wic:creating partitioned images using wic`" section in
  8526. the Yocto Project Development Tasks Manual.
  8527. :term:`WIRELESS_DAEMON`
  8528. For ``connman`` and ``packagegroup-base``, specifies the wireless
  8529. daemon to use. The default is "wpa-supplicant" (note that the value
  8530. uses a dash and not an underscore).
  8531. :term:`WKS_FILE`
  8532. Specifies the location of the Wic kickstart file that is used by the
  8533. OpenEmbedded build system to create a partitioned image
  8534. (``image.wic``). For information on how to create a partitioned
  8535. image, see the
  8536. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  8537. section in the Yocto Project Development Tasks Manual. For details on
  8538. the kickstart file format, see the ":doc:`/ref-manual/kickstart`" Chapter.
  8539. :term:`WKS_FILE_DEPENDS`
  8540. When placed in the recipe that builds your image, this variable lists
  8541. build-time dependencies. The :term:`WKS_FILE_DEPENDS` variable is only
  8542. applicable when Wic images are active (i.e. when
  8543. :term:`IMAGE_FSTYPES` contains entries related
  8544. to Wic). If your recipe does not create Wic images, the variable has
  8545. no effect.
  8546. The :term:`WKS_FILE_DEPENDS` variable is similar to the
  8547. :term:`DEPENDS` variable. When you use the variable in
  8548. your recipe that builds the Wic image, dependencies you list in the
  8549. :term:`WKS_FILE_DEPENDS` variable are added to the :term:`DEPENDS` variable.
  8550. With the :term:`WKS_FILE_DEPENDS` variable, you have the possibility to
  8551. specify a list of additional dependencies (e.g. native tools,
  8552. bootloaders, and so forth), that are required to build Wic images.
  8553. Here is an example::
  8554. WKS_FILE_DEPENDS = "some-native-tool"
  8555. In the
  8556. previous example, some-native-tool would be replaced with an actual
  8557. native tool on which the build would depend.
  8558. :term:`WKS_FILES`
  8559. Specifies a list of candidate Wic kickstart files to be used by the
  8560. OpenEmbedded build system to create a partitioned image. Only the
  8561. first one that is found, from left to right, will be used.
  8562. This is only useful when there are multiple ``.wks`` files that can be
  8563. used to produce an image. A typical case is when multiple layers are
  8564. used for different hardware platforms, each supplying a different
  8565. ``.wks`` file. In this case, you specify all possible ones through
  8566. :term:`WKS_FILES`.
  8567. If only one ``.wks`` file is used, set :term:`WKS_FILE` instead.
  8568. :term:`WORKDIR`
  8569. The pathname of the work directory in which the OpenEmbedded build
  8570. system builds a recipe. This directory is located within the
  8571. :term:`TMPDIR` directory structure and is specific to
  8572. the recipe being built and the system for which it is being built.
  8573. The :term:`WORKDIR` directory is defined as follows::
  8574. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  8575. The actual directory depends on several things:
  8576. - :term:`TMPDIR`: The top-level build output directory
  8577. - :term:`MULTIMACH_TARGET_SYS`: The target system identifier
  8578. - :term:`PN`: The recipe name
  8579. - :term:`EXTENDPE`: The epoch --- if :term:`PE` is not specified, which
  8580. is usually the case for most recipes, then :term:`EXTENDPE` is blank.
  8581. - :term:`PV`: The recipe version
  8582. - :term:`PR`: The recipe revision
  8583. As an example, assume a Source Directory top-level folder name
  8584. ``poky``, a default :term:`Build Directory` at ``poky/build``, and a
  8585. ``qemux86-poky-linux`` machine target system. Furthermore, suppose
  8586. your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
  8587. directory the build system uses to build the package would be as
  8588. follows::
  8589. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  8590. :term:`XSERVER`
  8591. Specifies the packages that should be installed to provide an X
  8592. server and drivers for the current machine, assuming your image
  8593. directly includes ``packagegroup-core-x11-xserver`` or, perhaps
  8594. indirectly, includes "x11-base" in
  8595. :term:`IMAGE_FEATURES`.
  8596. The default value of :term:`XSERVER`, if not specified in the machine
  8597. configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  8598. :term:`XZ_THREADS`
  8599. Specifies the number of parallel threads that should be used when
  8600. using xz compression.
  8601. By default this scales with core count, but is never set less than 2
  8602. to ensure that multi-threaded mode is always used so that the output
  8603. file contents are deterministic. Builds will work with a value of 1
  8604. but the output will differ compared to the output from the compression
  8605. generated when more than one thread is used.
  8606. On systems where many tasks run in parallel, setting a limit to this
  8607. can be helpful in controlling system resource usage.
  8608. :term:`XZ_MEMLIMIT`
  8609. Specifies the maximum memory the xz compression should use as a percentage
  8610. of system memory. If unconstrained the xz compressor can use large amounts of
  8611. memory and become problematic with parallelism elsewhere in the build.
  8612. "50%" has been found to be a good value.
  8613. :term:`ZSTD_COMPRESSION_LEVEL`
  8614. Specifies the compression level to be used with ZStandard compression
  8615. (from ``1`` to ``19``, set to ``3`` by default, following upstream choice).
  8616. Higher levels produce smaller files, but take longer to complete.
  8617. :term:`ZSTD_THREADS`
  8618. Specifies the number of parallel threads that should be used when
  8619. using ZStandard compression.
  8620. By default this scales with core count, but is never set less than 2
  8621. to ensure that multi-threaded mode is always used so that the output
  8622. file contents are deterministic. Builds will work with a value of 1
  8623. but the output will differ compared to the output from the compression
  8624. generated when more than one thread is used.
  8625. On systems where many tasks run in parallel, setting a limit to this
  8626. can be helpful in controlling system resource usage.