variables.rst 488 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364
  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. ..
  8. check_glossary_begin
  9. :term:`A <ABIEXTENSION>` :term:`B` :term:`C <CACHE>`
  10. :term:`D` :term:`E <EFI_ARCH>` :term:`F <FAKEROOT>`
  11. :term:`G <GCCPIE>` :term:`H <HGDIR>` :term:`I <IMAGE_BASENAME>`
  12. :term:`K <KARCH>` :term:`L <LABELS>` :term:`M <MACHINE>`
  13. :term:`N <NATIVELSBSTRING>` :term:`O <OBJCOPY>` :term:`P`
  14. :term:`Q <QA_EMPTY_DIRS>` :term:`R <RANLIB>` :term:`S` :term:`T`
  15. :term:`U <UBOOT_BINARY>` :term:`V <VIRTUAL-RUNTIME>`
  16. :term:`W <WARN_QA>` :term:`X <XSERVER>` :term:`Z <ZSTD_COMPRESSION_LEVEL>`
  17. ..
  18. check_glossary_end
  19. .. glossary::
  20. :sorted:
  21. :term:`ABIEXTENSION`
  22. Extension to the Application Binary Interface (ABI) field of the GNU
  23. canonical architecture name (e.g. "eabi").
  24. ABI extensions are set in the machine include files. For example, the
  25. ``meta/conf/machine/include/arm/arch-arm.inc`` file sets the
  26. following extension::
  27. ABIEXTENSION = "eabi"
  28. :term:`ALLOW_EMPTY`
  29. Specifies whether to produce an output package even if it is empty.
  30. By default, BitBake does not produce empty packages. This default
  31. behavior can cause issues when there is an
  32. :term:`RDEPENDS` or some other hard runtime
  33. requirement on the existence of the package.
  34. Like all package-controlling variables, you must always use them in
  35. conjunction with a package name override, as in::
  36. ALLOW_EMPTY:${PN} = "1"
  37. ALLOW_EMPTY:${PN}-dev = "1"
  38. ALLOW_EMPTY:${PN}-staticdev = "1"
  39. :term:`ALTERNATIVE`
  40. Lists commands in a package that need an alternative binary naming
  41. scheme. Sometimes the same command is provided in multiple packages.
  42. When this occurs, the OpenEmbedded build system needs to use the
  43. alternatives system to create a different binary naming scheme so the
  44. commands can co-exist.
  45. To use the variable, list out the package's commands that are also
  46. provided by another package. For example, if the ``busybox`` package
  47. has four such commands, you identify them as follows::
  48. ALTERNATIVE:busybox = "sh sed test bracket"
  49. For more information on the alternatives system, see the
  50. ":ref:`ref-classes-update-alternatives`"
  51. section.
  52. :term:`ALTERNATIVE_LINK_NAME`
  53. Used by the alternatives system to map duplicated commands to actual
  54. locations. For example, if the ``bracket`` command provided by the
  55. ``busybox`` package is duplicated through another package, you must
  56. use the :term:`ALTERNATIVE_LINK_NAME` variable to specify the actual
  57. location::
  58. ALTERNATIVE_LINK_NAME[bracket] = "/usr/bin/["
  59. In this example, the binary for the ``bracket`` command (i.e. ``[``)
  60. from the ``busybox`` package resides in ``/usr/bin/``.
  61. .. note::
  62. If :term:`ALTERNATIVE_LINK_NAME` is not defined, it defaults to ``${bindir}/name``.
  63. For more information on the alternatives system, see the
  64. ":ref:`ref-classes-update-alternatives`"
  65. section.
  66. :term:`ALTERNATIVE_PRIORITY`
  67. Used by the alternatives system to create default priorities for
  68. duplicated commands. You can use the variable to create a single
  69. default regardless of the command name or package, a default for
  70. specific duplicated commands regardless of the package, or a default
  71. for specific commands tied to particular packages. Here are the
  72. available syntax forms::
  73. ALTERNATIVE_PRIORITY = "priority"
  74. ALTERNATIVE_PRIORITY[name] = "priority"
  75. ALTERNATIVE_PRIORITY_pkg[name] = "priority"
  76. For more information on the alternatives system, see the
  77. ":ref:`ref-classes-update-alternatives`"
  78. section.
  79. :term:`ALTERNATIVE_TARGET`
  80. Used by the alternatives system to create default link locations for
  81. duplicated commands. You can use the variable to create a single
  82. default location for all duplicated commands regardless of the
  83. command name or package, a default for specific duplicated commands
  84. regardless of the package, or a default for specific commands tied to
  85. particular packages. Here are the available syntax forms::
  86. ALTERNATIVE_TARGET = "target"
  87. ALTERNATIVE_TARGET[name] = "target"
  88. ALTERNATIVE_TARGET_pkg[name] = "target"
  89. .. note::
  90. If :term:`ALTERNATIVE_TARGET` is not defined, it inherits the value
  91. from the :term:`ALTERNATIVE_LINK_NAME` variable.
  92. If :term:`ALTERNATIVE_LINK_NAME` and :term:`ALTERNATIVE_TARGET` are the
  93. same, the target for :term:`ALTERNATIVE_TARGET` has "``.{BPN}``"
  94. appended to it.
  95. Finally, if the file referenced has not been renamed, the
  96. alternatives system will rename it to avoid the need to rename
  97. alternative files in the :ref:`ref-tasks-install`
  98. task while retaining support for the command if necessary.
  99. For more information on the alternatives system, see the
  100. ":ref:`ref-classes-update-alternatives`" section.
  101. :term:`ANY_OF_DISTRO_FEATURES`
  102. When inheriting the :ref:`ref-classes-features_check`
  103. class, this variable identifies a list of distribution features where
  104. at least one must be enabled in the current configuration in order
  105. for the OpenEmbedded build system to build the recipe. In other words,
  106. if none of the features listed in :term:`ANY_OF_DISTRO_FEATURES`
  107. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  108. the recipe will be skipped, and if the build system attempts to build
  109. the recipe then an error will be triggered.
  110. :term:`APPEND`
  111. An override list of append strings for each target specified with
  112. :term:`LABELS`.
  113. See the :ref:`ref-classes-grub-efi` class for more
  114. information on how this variable is used.
  115. :term:`AR`
  116. The minimal command and arguments used to run :manpage:`ar <ar(1)>`.
  117. :term:`ARCHIVER_MODE`
  118. When used with the :ref:`ref-classes-archiver` class,
  119. determines the type of information used to create a released archive.
  120. You can use this variable to create archives of patched source,
  121. original source, configured source, and so forth by employing the
  122. following variable flags (varflags)::
  123. ARCHIVER_MODE[src] = "original" # Uses original (unpacked) source files.
  124. ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is the default.
  125. ARCHIVER_MODE[src] = "configured" # Uses configured source files.
  126. ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and do_patch.
  127. ARCHIVER_MODE[diff-exclude] ?= "file file ..." # Lists files and directories to exclude from diff.
  128. ARCHIVER_MODE[dumpdata] = "1" # Uses environment data.
  129. ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files.
  130. ARCHIVER_MODE[srpm] = "1" # Uses RPM package files.
  131. For information on how the variable works, see the
  132. ``meta/classes/archiver.bbclass`` file in the :term:`Source Directory`.
  133. :term:`AS`
  134. Minimal command and arguments needed to run the :manpage:`assembler
  135. <as(1)>`.
  136. :term:`ASSUME_PROVIDED`
  137. Lists recipe names (:term:`PN` values) BitBake does not
  138. attempt to build. Instead, BitBake assumes these recipes have already
  139. been built.
  140. In OpenEmbedded-Core, :term:`ASSUME_PROVIDED` mostly specifies native
  141. tools that should not be built. An example is ``git-native``, which
  142. when specified, allows for the Git binary from the host to be used
  143. rather than building ``git-native``.
  144. :term:`ASSUME_SHLIBS`
  145. Provides additional ``shlibs`` provider mapping information, which
  146. adds to or overwrites the information provided automatically by the
  147. system. Separate multiple entries using spaces.
  148. As an example, use the following form to add an ``shlib`` provider of
  149. shlibname in packagename with the optional version::
  150. shlibname:packagename[_version]
  151. Here is an example that adds a shared library named ``libEGL.so.1``
  152. as being provided by the ``libegl-implementation`` package::
  153. ASSUME_SHLIBS = "libEGL.so.1:libegl-implementation"
  154. :term:`AUTO_LIBNAME_PKGS`
  155. When the :ref:`ref-classes-debian` class is inherited,
  156. which is the default behavior, :term:`AUTO_LIBNAME_PKGS` specifies which
  157. packages should be checked for libraries and renamed according to
  158. Debian library package naming.
  159. The default value is "${PACKAGES}", which causes the
  160. :ref:`ref-classes-debian` class to act on all packages that are
  161. explicitly generated by the recipe.
  162. :term:`AUTO_SYSLINUXMENU`
  163. Enables creating an automatic menu for the syslinux bootloader. You
  164. must set this variable in your recipe. The
  165. :ref:`ref-classes-syslinux` class checks this variable.
  166. :term:`AUTOREV`
  167. When :term:`SRCREV` is set to the value of this variable, it specifies to
  168. use the latest source revision in the repository. Here is an example::
  169. SRCREV = "${AUTOREV}"
  170. If you use the previous statement to retrieve the latest version of
  171. software, you need to make sure :term:`PV` contains the ``+`` sign so
  172. :term:`bitbake` includes source control information to :term:`PKGV` when
  173. packaging the recipe. For example::
  174. PV = "6.10.y+git"
  175. For more information see the
  176. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  177. section in the Yocto Project Development Tasks Manual.
  178. :term:`AUTOTOOLS_SCRIPT_PATH`
  179. When using the :ref:`ref-classes-autotools` class, the
  180. :term:`AUTOTOOLS_SCRIPT_PATH` variable stores the location of the
  181. different scripts used by the Autotools build system. The default
  182. value for this variable is :term:`S`.
  183. :term:`AVAILTUNES`
  184. The list of defined CPU and Application Binary Interface (ABI)
  185. tunings (i.e. "tunes") available for use by the OpenEmbedded build
  186. system.
  187. The list simply presents the tunes that are available. Not all tunes
  188. may be compatible with a particular machine configuration, or with
  189. each other in a
  190. :ref:`Multilib <dev-manual/libraries:combining multiple versions of library files into one image>`
  191. configuration.
  192. To add a tune to the list, be sure to append it with spaces using the
  193. "+=" BitBake operator. Do not simply replace the list by using the
  194. "=" operator. See the
  195. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:basic syntax`" section in the BitBake
  196. User Manual for more information.
  197. :term:`AZ_SAS`
  198. Azure Storage Shared Access Signature, when using the
  199. :ref:`Azure Storage fetcher (az://) <bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
  200. This variable can be defined to be used by the fetcher to authenticate
  201. and gain access to non-public artifacts::
  202. AZ_SAS = ""se=2021-01-01&sp=r&sv=2018-11-09&sr=c&skoid=<skoid>&sig=<signature>""
  203. For more information see Microsoft's Azure Storage documentation at
  204. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
  205. :term:`B`
  206. The directory within the :term:`Build Directory` in which the
  207. OpenEmbedded build system places generated objects during a recipe's
  208. build process. By default, this directory is the same as the
  209. :term:`S` directory, which is defined as::
  210. S = "${UNPACKDIR}/${BP}"
  211. You can separate the (:term:`S`) directory and the directory pointed to
  212. by the :term:`B` variable. Most Autotools-based recipes support
  213. separating these directories. The build system defaults to using
  214. separate directories for ``gcc`` and some kernel recipes.
  215. :term:`BAD_RECOMMENDATIONS`
  216. Lists "recommended-only" packages to not install. Recommended-only
  217. packages are packages installed only through the
  218. :term:`RRECOMMENDS` variable. You can prevent any
  219. of these "recommended" packages from being installed by listing them
  220. with the :term:`BAD_RECOMMENDATIONS` variable::
  221. BAD_RECOMMENDATIONS = "package_name package_name package_name ..."
  222. You can set this variable globally in your ``local.conf`` file or you
  223. can attach it to a specific image recipe by using the recipe name
  224. override::
  225. BAD_RECOMMENDATIONS:pn-target_image = "package_name"
  226. It is important to realize that if you choose to not install packages
  227. using this variable and some other packages are dependent on them
  228. (i.e. listed in a recipe's :term:`RDEPENDS`
  229. variable), the OpenEmbedded build system ignores your request and
  230. will install the packages to avoid dependency errors.
  231. This variable is supported only when using the IPK and RPM
  232. packaging backends. DEB is not supported.
  233. See the :term:`NO_RECOMMENDATIONS` and the
  234. :term:`PACKAGE_EXCLUDE` variables for related
  235. information.
  236. :term:`BAREBOX_BINARY`
  237. When using the :ref:`ref-classes-barebox` class, this variable allows you
  238. to specify a particular binary that should be deployed and installed.
  239. The barebox build system can build multiple barebox binaries at once.
  240. By default, all built binaries will be deployed and installed under their
  241. original name.
  242. Here is an example usage of this variable::
  243. BAREBOX_BINARY = "barebox-boundarydevices-imx6dl-nitrogen6x-1g.img"
  244. :term:`BAREBOX_CONFIG`
  245. When using the :ref:`ref-classes-barebox` class, this variable allows you
  246. to specify the name of the barebox defconfig to build.
  247. The name must be a defconfig file known to the barebox build environment.
  248. This variable is mainly useful for generic use cases where a dedicated
  249. configuration is not required.
  250. The :ref:`ref-classes-barebox` class itself already sets it for some QEMU
  251. machines::
  252. BAREBOX_CONFIG:qemuarm = "multi_v7_defconfig"
  253. BAREBOX_CONFIG:qemuarm64 = "multi_v8_defconfig"
  254. BAREBOX_CONFIG:qemux86-64 = "efi_defconfig"
  255. Except for these, the default value of :term:`BAREBOX_CONFIG` is empty.
  256. For more information on how to provide a barebox configuration, see the
  257. :ref:`ref-classes-barebox` class.
  258. :term:`BASE_LIB`
  259. The library directory name for the CPU or Application Binary
  260. Interface (ABI) tune. The :term:`BASE_LIB` applies only in the Multilib
  261. context. See the ":ref:`dev-manual/libraries:combining multiple versions of library files into one image`"
  262. section in the Yocto Project Development Tasks Manual for information
  263. on Multilib.
  264. The :term:`BASE_LIB` variable is defined in the machine include files in
  265. the :term:`Source Directory`. If Multilib is not
  266. being used, the value defaults to "lib".
  267. :term:`BASE_WORKDIR`
  268. Points to the base of the work directory for all recipes. The default
  269. value is "${TMPDIR}/work".
  270. :term:`BB_ALLOWED_NETWORKS`
  271. Specifies a space-delimited list of hosts that the fetcher is allowed
  272. to use to obtain the required source code. Here are
  273. considerations surrounding this variable:
  274. - This host list is only used if :term:`BB_NO_NETWORK` is either not set
  275. or set to "0".
  276. - There is limited support for wildcard matching against the beginning of
  277. host names. For example, the following setting matches
  278. ``git.gnu.org``, ``ftp.gnu.org``, and ``foo.git.gnu.org``::
  279. BB_ALLOWED_NETWORKS = "*.gnu.org"
  280. .. note::
  281. The use of the "``*``" character only works at the beginning of
  282. a host name and it must be isolated from the remainder of the
  283. host name. You cannot use the wildcard character in any other
  284. location of the name or combined with the front part of the
  285. name.
  286. For example, ``*.foo.bar`` is supported, while ``*aa.foo.bar``
  287. is not.
  288. - Mirrors not in the host list are skipped and logged in debug.
  289. - Attempts to access networks not in the host list cause a failure.
  290. Using :term:`BB_ALLOWED_NETWORKS` in conjunction with
  291. :term:`PREMIRRORS` is very useful. Adding the host
  292. you want to use to :term:`PREMIRRORS` results in the source code being
  293. fetched from an allowed location and avoids raising an error when a
  294. host that is not allowed is in a :term:`SRC_URI`
  295. statement. This is because the fetcher does not attempt to use the
  296. host listed in :term:`SRC_URI` after a successful fetch from the
  297. :term:`PREMIRRORS` occurs.
  298. :term:`BB_BASEHASH_IGNORE_VARS`
  299. See :term:`bitbake:BB_BASEHASH_IGNORE_VARS` in the BitBake manual.
  300. :term:`BB_CACHEDIR`
  301. See :term:`bitbake:BB_CACHEDIR` in the BitBake manual.
  302. :term:`BB_CHECK_SSL_CERTS`
  303. See :term:`bitbake:BB_CHECK_SSL_CERTS` in the BitBake manual.
  304. :term:`BB_CONF_FRAGMENT_DESCRIPTION`
  305. The :term:`BB_CONF_FRAGMENT_DESCRIPTION` variable defines the textual
  306. description of a :term:`Configuration Fragment`. For details on how to use
  307. fragments, see the :doc:`/ref-manual/fragments` section of the Yocto
  308. Project Reference Manual.
  309. :term:`BB_CONF_FRAGMENT_SUMMARY`
  310. The :term:`BB_CONF_FRAGMENT_SUMMARY` variable defines the one-line textual
  311. summary of a :term:`Configuration Fragment`. For details on how to use
  312. fragments, see the :doc:`/ref-manual/fragments` section of the Yocto
  313. Project Reference Manual.
  314. :term:`BB_CONSOLELOG`
  315. See :term:`bitbake:BB_CONSOLELOG` in the BitBake manual.
  316. :term:`BB_CURRENT_MC`
  317. See :term:`bitbake:BB_CURRENT_MC` in the BitBake manual.
  318. :term:`BB_CURRENTTASK`
  319. See :term:`bitbake:BB_CURRENTTASK` in the BitBake manual.
  320. :term:`BB_DEFAULT_TASK`
  321. See :term:`bitbake:BB_DEFAULT_TASK` in the BitBake manual.
  322. :term:`BB_DEFAULT_UMASK`
  323. See :term:`bitbake:BB_DEFAULT_UMASK` in the BitBake manual.
  324. :term:`BB_DEFER_BBCLASSES`
  325. See :term:`bitbake:BB_DEFER_BBCLASSES` in the BitBake manual.
  326. :term:`BB_DISKMON_DIRS`
  327. Monitors disk space and available inodes during the build and allows
  328. you to control the build based on these parameters.
  329. Disk space monitoring is disabled by default. To enable monitoring,
  330. add the :term:`BB_DISKMON_DIRS` variable to your ``conf/local.conf`` file
  331. found in the :term:`Build Directory`. Use the
  332. following form:
  333. .. code-block:: none
  334. BB_DISKMON_DIRS = "action,dir,threshold [...]"
  335. where:
  336. action is:
  337. ABORT: Immediately stop the build when
  338. a threshold is broken.
  339. STOPTASKS: Stop the build after the currently
  340. executing tasks have finished when
  341. a threshold is broken.
  342. WARN: Issue a warning but continue the
  343. build when a threshold is broken.
  344. Subsequent warnings are issued as
  345. defined by the BB_DISKMON_WARNINTERVAL
  346. variable, which must be defined in
  347. the conf/local.conf file.
  348. dir is:
  349. Any directory you choose. You can specify one or
  350. more directories to monitor by separating the
  351. groupings with a space. If two directories are
  352. on the same device, only the first directory
  353. is monitored.
  354. threshold is:
  355. Either the minimum available disk space,
  356. the minimum number of free inodes, or
  357. both. You must specify at least one. To
  358. omit one or the other, simply omit the value.
  359. Specify the threshold using G, M, K for Gbytes,
  360. Mbytes, and Kbytes, respectively. If you do
  361. not specify G, M, or K, Kbytes is assumed by
  362. default. Do not use GB, MB, or KB.
  363. Here are some examples::
  364. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  365. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  366. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  367. The first example works only if you also provide the
  368. :term:`BB_DISKMON_WARNINTERVAL`
  369. variable in the ``conf/local.conf``. This example causes the build
  370. system to immediately stop when either the disk space in
  371. ``${TMPDIR}`` drops below 1 Gbyte or the available free inodes drops
  372. below 100 Kbytes. Because two directories are provided with the
  373. variable, the build system also issue a warning when the disk space
  374. in the ``${SSTATE_DIR}`` directory drops below 1 Gbyte or the number
  375. of free inodes drops below 100 Kbytes. Subsequent warnings are issued
  376. during intervals as defined by the :term:`BB_DISKMON_WARNINTERVAL`
  377. variable.
  378. The second example stops the build after all currently executing
  379. tasks complete when the minimum disk space in the ``${TMPDIR}``
  380. directory drops below 1 Gbyte. No disk monitoring occurs for the free
  381. inodes in this case.
  382. The final example immediately stops the build when the number of
  383. free inodes in the ``${TMPDIR}`` directory drops below 100 Kbytes. No
  384. disk space monitoring for the directory itself occurs in this case.
  385. :term:`BB_DISKMON_WARNINTERVAL`
  386. Defines the disk space and free inode warning intervals. To set these
  387. intervals, define the variable in your ``conf/local.conf`` file in
  388. the :term:`Build Directory`.
  389. If you are going to use the :term:`BB_DISKMON_WARNINTERVAL` variable, you
  390. must also use the :term:`BB_DISKMON_DIRS`
  391. variable and define its action as "WARN". During the build,
  392. subsequent warnings are issued each time disk space or number of free
  393. inodes further reduces by the respective interval.
  394. If you do not provide a :term:`BB_DISKMON_WARNINTERVAL` variable and you
  395. do use :term:`BB_DISKMON_DIRS` with the "WARN" action, the disk
  396. monitoring interval defaults to the following::
  397. BB_DISKMON_WARNINTERVAL = "50M,5K"
  398. When specifying the variable in your configuration file, use the
  399. following form:
  400. .. code-block:: none
  401. BB_DISKMON_WARNINTERVAL = "disk_space_interval,disk_inode_interval"
  402. where:
  403. disk_space_interval is:
  404. An interval of memory expressed in either
  405. G, M, or K for Gbytes, Mbytes, or Kbytes,
  406. respectively. You cannot use GB, MB, or KB.
  407. disk_inode_interval is:
  408. An interval of free inodes expressed in either
  409. G, M, or K for Gbytes, Mbytes, or Kbytes,
  410. respectively. You cannot use GB, MB, or KB.
  411. Here is an example::
  412. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  413. BB_DISKMON_WARNINTERVAL = "50M,5K"
  414. These variables cause the
  415. OpenEmbedded build system to issue subsequent warnings each time the
  416. available disk space further reduces by 50 Mbytes or the number of
  417. free inodes further reduces by 5 Kbytes in the ``${SSTATE_DIR}``
  418. directory. Subsequent warnings based on the interval occur each time
  419. a respective interval is reached beyond the initial warning (i.e. 1
  420. Gbytes and 100 Kbytes).
  421. :term:`BB_ENV_PASSTHROUGH`
  422. See :term:`bitbake:BB_ENV_PASSTHROUGH` in the BitBake manual.
  423. :term:`BB_ENV_PASSTHROUGH_ADDITIONS`
  424. See :term:`bitbake:BB_ENV_PASSTHROUGH_ADDITIONS` in the BitBake manual.
  425. :term:`BB_FETCH_PREMIRRORONLY`
  426. See :term:`bitbake:BB_FETCH_PREMIRRORONLY` in the BitBake manual.
  427. :term:`BB_FILENAME`
  428. See :term:`bitbake:BB_FILENAME` in the BitBake manual.
  429. :term:`BB_GENERATE_MIRROR_TARBALLS`
  430. Causes tarballs of the source control repositories (e.g. Git
  431. repositories), including metadata, to be placed in the
  432. :term:`DL_DIR` directory.
  433. For performance reasons, creating and placing tarballs of these
  434. repositories is not the default action by the OpenEmbedded build
  435. system::
  436. BB_GENERATE_MIRROR_TARBALLS = "1"
  437. Set this variable in your
  438. ``local.conf`` file in the :term:`Build Directory`.
  439. Once you have the tarballs containing your source files, you can
  440. clean up your :term:`DL_DIR` directory by deleting any Git or other
  441. source control work directories.
  442. :term:`BB_GENERATE_SHALLOW_TARBALLS`
  443. See :term:`bitbake:BB_GENERATE_SHALLOW_TARBALLS` in the BitBake manual.
  444. :term:`BB_GIT_DEFAULT_DESTSUFFIX`
  445. See :term:`bitbake:BB_GIT_DEFAULT_DESTSUFFIX` in the BitBake manual.
  446. In :term:`OpenEmbedded-Core (OE-Core)`, this variable is set to
  447. :term:`BP` by default in :oe_git:`bitbake.conf
  448. </openembedded-core/tree/meta/conf/bitbake.conf>`.
  449. :term:`BB_GIT_SHALLOW`
  450. See :term:`bitbake:BB_GIT_SHALLOW` in the BitBake manual.
  451. :term:`BB_GIT_SHALLOW_DEPTH`
  452. See :term:`bitbake:BB_GIT_SHALLOW_DEPTH` in the BitBake manual.
  453. :term:`BB_HASHCHECK_FUNCTION`
  454. See :term:`bitbake:BB_HASHCHECK_FUNCTION` in the BitBake manual.
  455. :term:`BB_HASHCONFIG_IGNORE_VARS`
  456. See :term:`bitbake:BB_HASHCONFIG_IGNORE_VARS` in the BitBake manual.
  457. :term:`BB_HASHSERVE`
  458. See :term:`bitbake:BB_HASHSERVE` in the BitBake manual.
  459. :term:`BB_HASHSERVE_UPSTREAM`
  460. See :term:`bitbake:BB_HASHSERVE_UPSTREAM` in the BitBake manual.
  461. :term:`BB_INVALIDCONF`
  462. See :term:`bitbake:BB_INVALIDCONF` in the BitBake manual.
  463. :term:`BB_LOADFACTOR_MAX`
  464. The system load threshold above which :term:`BitBake` will stop running
  465. extra tasks.
  466. For more information on how to limit the resources used during builds, see
  467. the :doc:`/dev-manual/limiting-resources` section of the Yocto Project
  468. Development Tasks Manual.
  469. :term:`BB_LOGCONFIG`
  470. See :term:`bitbake:BB_LOGCONFIG` in the BitBake manual.
  471. :term:`BB_LOGFMT`
  472. See :term:`bitbake:BB_LOGFMT` in the BitBake manual.
  473. :term:`BB_MULTI_PROVIDER_ALLOWED`
  474. See :term:`bitbake:BB_MULTI_PROVIDER_ALLOWED` in the BitBake manual.
  475. :term:`BB_NICE_LEVEL`
  476. See :term:`bitbake:BB_NICE_LEVEL` in the BitBake manual.
  477. :term:`BB_NO_NETWORK`
  478. See :term:`bitbake:BB_NO_NETWORK` in the BitBake manual.
  479. :term:`BB_NUMBER_PARSE_THREADS`
  480. See :term:`bitbake:BB_NUMBER_PARSE_THREADS` in the BitBake manual.
  481. :term:`BB_NUMBER_THREADS`
  482. The maximum number of tasks BitBake should run in parallel at any one
  483. time. The OpenEmbedded build system automatically configures this
  484. variable to be equal to the number of cores on the build system. For
  485. example, a system with a dual core processor that also uses
  486. hyper-threading causes the :term:`BB_NUMBER_THREADS` variable to default
  487. to "4".
  488. For single socket systems (i.e. one CPU), you should not have to
  489. override this variable to gain optimal parallelism during builds.
  490. However, if you have very large systems that employ multiple physical
  491. CPUs, you might want to make sure the :term:`BB_NUMBER_THREADS` variable
  492. is not set higher than "20".
  493. For more information on speeding up builds, see the
  494. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  495. section in the Yocto Project Development Tasks Manual.
  496. On the other hand, if your goal is to limit the amount of system
  497. resources consumed by BitBake tasks, setting :term:`BB_NUMBER_THREADS`
  498. to a number lower than the number of CPU threads in your machine
  499. won't be sufficient. That's because each package will still be built
  500. and installed through a number of parallel jobs specified by the
  501. :term:`PARALLEL_MAKE` variable, which is by default the number of CPU
  502. threads in your system, and is not impacted by the
  503. :term:`BB_NUMBER_THREADS` value.
  504. So, if you set :term:`BB_NUMBER_THREADS` to "1" but don't set
  505. :term:`PARALLEL_MAKE`, most of your system resources will be consumed
  506. anyway.
  507. Therefore, if you intend to reduce the load of your build system by
  508. setting :term:`BB_NUMBER_THREADS` to a relatively low value compared
  509. to the number of CPU threads on your system, you should also set
  510. :term:`PARALLEL_MAKE` to a similarly low value.
  511. An alternative to using :term:`BB_NUMBER_THREADS` to keep the usage
  512. of build system resources under control is to use the smarter
  513. :term:`BB_PRESSURE_MAX_CPU`, :term:`BB_PRESSURE_MAX_IO` or
  514. :term:`BB_PRESSURE_MAX_MEMORY` controls. See the
  515. :doc:`/dev-manual/limiting-resources` section of the Yocto Project
  516. Development Tasks Manual.
  517. :term:`BB_ORIGENV`
  518. See :term:`bitbake:BB_ORIGENV` in the BitBake manual.
  519. :term:`BB_PRESERVE_ENV`
  520. See :term:`bitbake:BB_PRESERVE_ENV` in the BitBake manual.
  521. :term:`BB_PRESSURE_MAX_CPU`
  522. See :term:`bitbake:BB_PRESSURE_MAX_CPU` in the BitBake manual.
  523. For more information on how to limit the resources used during builds, see
  524. the :doc:`/dev-manual/limiting-resources` section of the Yocto Project
  525. Development Tasks Manual.
  526. :term:`BB_PRESSURE_MAX_IO`
  527. See :term:`bitbake:BB_PRESSURE_MAX_IO` in the BitBake manual.
  528. For more information on how to limit the resources used during builds, see
  529. the :doc:`/dev-manual/limiting-resources` section of the Yocto Project
  530. Development Tasks Manual.
  531. :term:`BB_PRESSURE_MAX_MEMORY`
  532. See :term:`bitbake:BB_PRESSURE_MAX_MEMORY` in the BitBake manual.
  533. For more information on how to limit the resources used during builds, see
  534. the :doc:`/dev-manual/limiting-resources` section of the Yocto Project
  535. Development Tasks Manual.
  536. :term:`BB_RUNFMT`
  537. See :term:`bitbake:BB_RUNFMT` in the BitBake manual.
  538. :term:`BB_RUNTASK`
  539. See :term:`bitbake:BB_RUNTASK` in the BitBake manual.
  540. :term:`BB_SCHEDULER`
  541. See :term:`bitbake:BB_SCHEDULER` in the BitBake manual.
  542. :term:`BB_SCHEDULERS`
  543. See :term:`bitbake:BB_SCHEDULERS` in the BitBake manual.
  544. :term:`BB_SERVER_TIMEOUT`
  545. Specifies the time (in seconds) after which to unload the BitBake
  546. server due to inactivity. Set :term:`BB_SERVER_TIMEOUT` to determine how
  547. long the BitBake server stays resident between invocations.
  548. For example, the following statement in your ``local.conf`` file
  549. instructs the server to be unloaded after 20 seconds of inactivity::
  550. BB_SERVER_TIMEOUT = "20"
  551. If you want the server to never be unloaded,
  552. set :term:`BB_SERVER_TIMEOUT` to "-1".
  553. :term:`BB_SETSCENE_DEPVALID`
  554. See :term:`bitbake:BB_SETSCENE_DEPVALID` in the BitBake manual.
  555. :term:`BB_SIGNATURE_EXCLUDE_FLAGS`
  556. See :term:`bitbake:BB_SIGNATURE_EXCLUDE_FLAGS` in the BitBake manual.
  557. :term:`BB_SIGNATURE_HANDLER`
  558. See :term:`bitbake:BB_SIGNATURE_HANDLER` in the BitBake manual.
  559. :term:`BB_SRCREV_POLICY`
  560. See :term:`bitbake:BB_SRCREV_POLICY` in the BitBake manual.
  561. :term:`BB_STRICT_CHECKSUM`
  562. See :term:`bitbake:BB_STRICT_CHECKSUM` in the BitBake manual.
  563. :term:`BB_TASK_IONICE_LEVEL`
  564. See :term:`bitbake:BB_TASK_IONICE_LEVEL` in the BitBake manual.
  565. :term:`BB_TASK_NICE_LEVEL`
  566. See :term:`bitbake:BB_TASK_NICE_LEVEL` in the BitBake manual.
  567. :term:`BB_TASKHASH`
  568. See :term:`bitbake:BB_TASKHASH` in the BitBake manual.
  569. :term:`BB_USE_HOME_NPMRC`
  570. See :term:`bitbake:BB_USE_HOME_NPMRC` in the BitBake manual.
  571. :term:`BB_VERBOSE_LOGS`
  572. See :term:`bitbake:BB_VERBOSE_LOGS` in the BitBake manual.
  573. :term:`BB_WORKERCONTEXT`
  574. See :term:`bitbake:BB_WORKERCONTEXT` in the BitBake manual.
  575. :term:`BBCLASSEXTEND`
  576. Allows you to extend a recipe so that it builds variants of the
  577. software. There are common variants for recipes as "natives" like
  578. ``quilt-native``, which is a copy of Quilt built to run on the build
  579. system; "crosses" such as ``gcc-cross``, which is a compiler built to
  580. run on the build machine but produces binaries that run on the target
  581. :term:`MACHINE`; ":ref:`ref-classes-nativesdk`", which
  582. targets the SDK machine instead of :term:`MACHINE`; and "mulitlibs" in
  583. the form "``multilib:``\ multilib_name".
  584. To build a different variant of the recipe with a minimal amount of
  585. code, it usually is as simple as adding the following to your recipe::
  586. BBCLASSEXTEND =+ "native nativesdk"
  587. BBCLASSEXTEND =+ "multilib:multilib_name"
  588. .. note::
  589. Internally, the :term:`BBCLASSEXTEND` mechanism generates recipe
  590. variants by rewriting variable values and applying overrides such
  591. as ``:class-native``. For example, to generate a native version of
  592. a recipe, a :term:`DEPENDS` on "foo" is rewritten
  593. to a :term:`DEPENDS` on "foo-native".
  594. Even when using :term:`BBCLASSEXTEND`, the recipe is only parsed once.
  595. Parsing once adds some limitations. For example, it is not
  596. possible to include a different file depending on the variant,
  597. since ``include`` statements are processed when the recipe is
  598. parsed.
  599. :term:`BBDEBUG`
  600. See :term:`bitbake:BBDEBUG` in the BitBake manual.
  601. :term:`BBFILE_COLLECTIONS`
  602. Lists the names of configured layers. These names are used to find
  603. the other ``BBFILE_*`` variables. Typically, each layer will append
  604. its name to this variable in its ``conf/layer.conf`` file.
  605. :term:`BBFILE_PATTERN`
  606. Variable that expands to match files from
  607. :term:`BBFILES` in a particular layer. This variable
  608. is used in the ``conf/layer.conf`` file and must be suffixed with the
  609. name of the specific layer (e.g. ``BBFILE_PATTERN_emenlow``).
  610. :term:`BBFILE_PRIORITY`
  611. Assigns the priority for recipe files in each layer.
  612. This variable is useful in situations where the same recipe appears
  613. in more than one layer. Setting this variable allows you to
  614. prioritize a layer against other layers that contain the same recipe
  615. --- effectively letting you control the precedence for the multiple
  616. layers. The precedence established through this variable stands
  617. regardless of a recipe's version (:term:`PV` variable). For
  618. example, a layer that has a recipe with a higher :term:`PV` value but for
  619. which the :term:`BBFILE_PRIORITY` is set to have a lower precedence still
  620. has a lower precedence.
  621. A larger value for the :term:`BBFILE_PRIORITY` variable results in a
  622. higher precedence. For example, the value 6 has a higher precedence
  623. than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
  624. is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
  625. for more information. The default priority, if unspecified for a
  626. layer with no dependencies, is the lowest defined priority + 1 (or 1
  627. if no priorities are defined).
  628. .. tip::
  629. You can use the command ``bitbake-layers show-layers``
  630. to list all configured layers along with their priorities.
  631. :term:`BBFILES`
  632. A space-separated list of recipe files BitBake uses to build
  633. software.
  634. When specifying recipe files, you can pattern match using Python's
  635. `glob <https://docs.python.org/3/library/glob.html>`__ syntax.
  636. For details on the syntax, see the documentation by following the
  637. previous link.
  638. :term:`BBFILES_DYNAMIC`
  639. Activates content when identified layers are present. You identify
  640. the layers by the collections that the layers define.
  641. Use the :term:`BBFILES_DYNAMIC` variable to avoid ``.bbappend`` files
  642. whose corresponding ``.bb`` file is in a layer that attempts to
  643. modify other layers through ``.bbappend`` but does not want to
  644. introduce a hard dependency on those other layers.
  645. Use the following form for :term:`BBFILES_DYNAMIC`:
  646. ``collection_name:filename_pattern``.
  647. The following example identifies two collection names and two
  648. filename patterns::
  649. BBFILES_DYNAMIC += " \
  650. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  651. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  652. "
  653. This next example shows an error message that occurs because invalid
  654. entries are found, which cause parsing to fail:
  655. .. code-block:: none
  656. ERROR: BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:
  657. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  658. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  659. :term:`BBINCLUDED`
  660. See :term:`bitbake:BBINCLUDED` in the BitBake manual.
  661. :term:`BBINCLUDELOGS`
  662. Variable that controls how BitBake displays logs on build failure.
  663. :term:`BBINCLUDELOGS_LINES`
  664. If :term:`BBINCLUDELOGS` is set, specifies the
  665. maximum number of lines from the task log file to print when
  666. reporting a failed task. If you do not set :term:`BBINCLUDELOGS_LINES`,
  667. the entire log is printed.
  668. :term:`BBLAYERS`
  669. Lists the layers to enable during the build. This variable is defined
  670. in the ``bblayers.conf`` configuration file in the :term:`Build Directory`.
  671. Here is an example::
  672. BBLAYERS = " \
  673. /home/scottrif/poky/meta \
  674. /home/scottrif/poky/meta-poky \
  675. /home/scottrif/poky/meta-yocto-bsp \
  676. /home/scottrif/poky/meta-mykernel \
  677. "
  678. This example enables four layers, one of which is a custom,
  679. user-defined layer named ``meta-mykernel``.
  680. :term:`BBLAYERS_FETCH_DIR`
  681. See :term:`bitbake:BBLAYERS_FETCH_DIR` in the BitBake manual.
  682. :term:`BBMASK`
  683. Prevents BitBake from processing recipes and recipe append files.
  684. You can use the :term:`BBMASK` variable to "hide" these ``.bb`` and
  685. ``.bbappend`` files. BitBake ignores any recipe or recipe append
  686. files that match any of the expressions. It is as if BitBake does not
  687. see them at all. Consequently, matching files are not parsed or
  688. otherwise used by BitBake.
  689. The values you provide are passed to Python's regular expression
  690. compiler. Consequently, the syntax follows Python's Regular
  691. Expression (re) syntax. The expressions are compared against the full
  692. paths to the files. For complete syntax information, see Python's
  693. documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax.
  694. The following example uses a complete regular expression to tell
  695. BitBake to ignore all recipe and recipe append files in the
  696. ``meta-ti/recipes-misc/`` directory::
  697. BBMASK = "meta-ti/recipes-misc/"
  698. If you want to mask out multiple directories or recipes, you can
  699. specify multiple regular expression fragments. This next example
  700. masks out multiple directories and individual recipes::
  701. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  702. BBMASK += "/meta-oe/recipes-support/"
  703. BBMASK += "/meta-foo/.*/openldap"
  704. BBMASK += "opencv.*\.bbappend"
  705. BBMASK += "lzma"
  706. .. note::
  707. When specifying a directory name, use the trailing slash character
  708. to ensure you match just that directory name.
  709. :term:`BBMULTICONFIG`
  710. Specifies each additional separate configuration when you are
  711. building targets with multiple configurations. Use this variable in
  712. your ``conf/local.conf`` configuration file. Specify a
  713. multiconfigname for each configuration file you are using. For
  714. example, the following line specifies three configuration files::
  715. BBMULTICONFIG = "configA configB configC"
  716. Each configuration file you use must reside in a ``multiconfig``
  717. subdirectory of a configuration directory within a layer, or
  718. within the :term:`Build Directory` (e.g.
  719. ``build_directory/conf/multiconfig/configA.conf`` or
  720. ``mylayer/conf/multiconfig/configB.conf``).
  721. For information on how to use :term:`BBMULTICONFIG` in an environment
  722. that supports building targets with multiple configurations, see the
  723. ":ref:`dev-manual/building:building images for multiple targets using multiple configurations`"
  724. section in the Yocto Project Development Tasks Manual.
  725. :term:`BBPATH`
  726. See :term:`bitbake:BBPATH` in the BitBake manual.
  727. :term:`BBSERVER`
  728. If defined in the BitBake environment, :term:`BBSERVER` points to the
  729. BitBake remote server.
  730. Use the following format to export the variable to the BitBake
  731. environment::
  732. export BBSERVER=localhost:$port
  733. By default, :term:`BBSERVER` also appears in :term:`BB_BASEHASH_IGNORE_VARS`.
  734. Consequently, :term:`BBSERVER` is excluded from checksum and dependency
  735. data.
  736. :term:`BBTARGETS`
  737. See :term:`bitbake:BBTARGETS` in the BitBake manual.
  738. :term:`BINCONFIG`
  739. When inheriting the :ref:`ref-classes-binconfig-disabled` class, this
  740. variable specifies binary configuration scripts to disable in favor of
  741. using ``pkg-config`` to query the information. The
  742. :ref:`ref-classes-binconfig-disabled` class will modify the specified
  743. scripts to return an error so that calls to them can be easily found
  744. and replaced.
  745. To add multiple scripts, separate them by spaces. Here is an example
  746. from the ``libpng`` recipe::
  747. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  748. :term:`BINCONFIG_GLOB`
  749. When inheriting the :ref:`ref-classes-binconfig` class,
  750. this variable specifies a wildcard for configuration scripts that
  751. need editing. The scripts are edited to correct any paths that have
  752. been set up during compilation so that they are correct for use when
  753. installed into the sysroot and called by the build processes of other
  754. recipes.
  755. .. note::
  756. The :term:`BINCONFIG_GLOB` variable uses
  757. `shell globbing <https://tldp.org/LDP/abs/html/globbingref.html>`__,
  758. which is recognition and expansion of wildcards during pattern
  759. matching. Shell globbing is very similar to
  760. `fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__
  761. and `glob <https://docs.python.org/3/library/glob.html>`__.
  762. For more information on how this variable works, see
  763. ``meta/classes-recipe/binconfig.bbclass`` in the :term:`Source Directory`.
  764. You can also find general
  765. information on the class in the
  766. ":ref:`ref-classes-binconfig`" section.
  767. :term:`BITBAKE_UI`
  768. See :term:`bitbake:BITBAKE_UI` in the BitBake manual.
  769. :term:`BP`
  770. The base recipe name and version but without any special recipe name
  771. suffix (i.e. ``-native``, ``lib64-``, and so forth). :term:`BP` is
  772. comprised of the following::
  773. ${BPN}-${PV}
  774. :term:`BPN`
  775. This variable is a version of the :term:`PN` variable with
  776. common prefixes and suffixes removed, such as ``nativesdk-``,
  777. ``-cross``, ``-native``, and multilib's ``lib64-`` and ``lib32-``.
  778. The exact lists of prefixes and suffixes removed are specified by the
  779. :term:`MLPREFIX` and
  780. :term:`SPECIAL_PKGSUFFIX` variables,
  781. respectively.
  782. :term:`BUGTRACKER`
  783. Specifies a URL for an upstream bug tracking website for a recipe.
  784. The OpenEmbedded build system does not use this variable. Rather, the
  785. variable is a useful pointer in case a bug in the software being
  786. built needs to be manually reported.
  787. :term:`BUILD_AR`
  788. Specifies the architecture-specific :manpage:`archiver <ar(1)>` for the
  789. build host, and its default definition is derived in part from
  790. :term:`BUILD_PREFIX`::
  791. BUILD_AR = "${BUILD_PREFIX}ar"
  792. When building a :ref:`ref-classes-native` recipe, :term:`AR` is set to the
  793. value of this variable by default.
  794. The :term:`BUILD_AR` variable should not be set manually, and is rarely
  795. used in recipes as :term:`AR` 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 :manpage:`archiver <ar(1)>` from the build
  798. host at some point during the build.
  799. :term:`BUILD_ARCH`
  800. Specifies the architecture of the build host (e.g. ``i686``). The
  801. OpenEmbedded build system sets the value of :term:`BUILD_ARCH` from the
  802. machine name reported by the ``uname`` command.
  803. :term:`BUILD_AS`
  804. Specifies the architecture-specific :manpage:`assembler <as(1)>` for the
  805. build host, and its default definition is derived in part from
  806. :term:`BUILD_PREFIX`::
  807. BUILD_AS = "${BUILD_PREFIX}as ${BUILD_AS_ARCH}"
  808. When building a :ref:`ref-classes-native` recipe, :term:`AS` is set to the
  809. value of this variable by default.
  810. The :term:`BUILD_AS` variable should not be set manually, and is rarely
  811. used in recipes as :term:`AS` 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:`assembler <as(1)>` from the build
  814. host at some point during the build.
  815. :term:`BUILD_AS_ARCH`
  816. Specifies the architecture-specific assembler flags for the build
  817. host. By default, the value of :term:`BUILD_AS_ARCH` is empty.
  818. :term:`BUILD_CC`
  819. Specifies the architecture-specific C compiler for the build host,
  820. and its default definition is derived in part from :term:`BUILD_PREFIX`
  821. and :term:`BUILD_CC_ARCH`::
  822. BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
  823. When building a :ref:`ref-classes-native` recipe, :term:`CC` is set to the
  824. value of this variable by default.
  825. The :term:`BUILD_CC` variable should not be set manually, and is rarely
  826. used in recipes as :term:`CC` contains the appropriate value depending on
  827. the context (native or target recipes). Exception be made for target
  828. recipes that need to use the compiler from the build host at some point
  829. during the build.
  830. :term:`BUILD_CC_ARCH`
  831. Specifies the architecture-specific C compiler flags for the build
  832. host. By default, the value of :term:`BUILD_CC_ARCH` is empty.
  833. :term:`BUILD_CCLD`
  834. Specifies the :manpage:`linker <ld(1)>` command to be used for the build
  835. host when the C compiler is being used as the linker, and its default
  836. definition is derived in part from :term:`BUILD_PREFIX` and
  837. :term:`BUILD_CC_ARCH`::
  838. BUILD_CCLD = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
  839. When building a :ref:`ref-classes-native` recipe, :term:`CCLD` is set to
  840. the value of this variable by default.
  841. The :term:`BUILD_CCLD` variable should not be set manually, and is rarely
  842. used in recipes as :term:`CCLD` contains the appropriate value depending on
  843. the context (native or target recipes). Exception be made for target
  844. recipes that need to use the :manpage:`linker <ld(1)>` from the build host
  845. at some point during the build.
  846. :term:`BUILD_CFLAGS`
  847. Specifies the flags to pass to the C compiler when building for the
  848. build host. When building a :ref:`ref-classes-native` recipe,
  849. :term:`CFLAGS` is set to the value of this variable by
  850. default.
  851. :term:`BUILD_CPP`
  852. Specifies the C preprocessor command (to both the C and the C++ compilers)
  853. when building for the build host, and its default definition is derived in
  854. part from :term:`BUILD_PREFIX` and :term:`BUILD_CC_ARCH`::
  855. BUILD_CPP = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH} -E"
  856. When building a :ref:`ref-classes-native` recipe, :term:`CPP` is set to
  857. the value of this variable by default.
  858. The :term:`BUILD_CPP` variable should not be set manually, and is rarely
  859. used in recipes as :term:`CPP` contains the appropriate value depending on
  860. the context (native or target recipes). Exception be made for target
  861. recipes that need to use the preprocessor from the build host at some
  862. point during the build.
  863. :term:`BUILD_CPPFLAGS`
  864. Specifies the flags to pass to the C preprocessor (i.e. to both the C
  865. and the C++ compilers) when building for the build host. When
  866. building in the ``-native`` context, :term:`CPPFLAGS`
  867. is set to the value of this variable by default.
  868. :term:`BUILD_CXX`
  869. Specifies the architecture-specific C++ compiler for the build host,
  870. and its default definition is derived in part from :term:`BUILD_PREFIX`
  871. and :term:`BUILD_CC_ARCH`::
  872. BUILD_CXX = "${CCACHE}${BUILD_PREFIX}g++ ${BUILD_CC_ARCH}"
  873. When building a :ref:`ref-classes-native` recipe, :term:`CXX` is set to
  874. the value of this variable by default.
  875. The :term:`BUILD_CXX` variable should not be set manually, and is rarely
  876. used in recipes as :term:`CXX` contains the appropriate value depending on
  877. the context (native or target recipes). Exception be made for target
  878. recipes that need to use the C++ compiler from the build host at some
  879. point during the build.
  880. :term:`BUILD_CXXFLAGS`
  881. Specifies the flags to pass to the C++ compiler when building for the
  882. build host. When building a :ref:`ref-classes-native` recipe,
  883. :term:`CXXFLAGS` is set to the value of this variable
  884. by default.
  885. :term:`BUILD_FC`
  886. Specifies the Fortran compiler command for the build host, and its default
  887. definition is derived in part from :term:`BUILD_PREFIX` and
  888. :term:`BUILD_CC_ARCH`::
  889. BUILD_FC = "${BUILD_PREFIX}gfortran ${BUILD_CC_ARCH}"
  890. When building a :ref:`ref-classes-native` recipe, :term:`FC` is set to the
  891. value of this variable by default.
  892. The :term:`BUILD_FC` variable should not be set manually, and is rarely
  893. used in recipes as :term:`FC` contains the appropriate value depending on
  894. the context (native or target recipes). Exception be made for target
  895. recipes that need to use the Fortran compiler from the build host at some
  896. point during the build.
  897. :term:`BUILD_LD`
  898. Specifies the linker command for the build host, and its default
  899. definition is derived in part from :term:`BUILD_PREFIX` and
  900. :term:`BUILD_LD_ARCH`::
  901. BUILD_LD = "${BUILD_PREFIX}ld ${BUILD_LD_ARCH}"
  902. When building a :ref:`ref-classes-native` recipe, :term:`LD` is set to the
  903. value of this variable by default.
  904. The :term:`BUILD_LD` variable should not be set manually, and is rarely
  905. used in recipes as :term:`LD` contains the appropriate value depending on
  906. the context (native or target recipes). Exception be made for target
  907. recipes that need to use the linker from the build host at some point
  908. during the build.
  909. :term:`BUILD_LD_ARCH`
  910. Specifies architecture-specific linker flags for the build host. By
  911. default, the value of :term:`BUILD_LD_ARCH` is empty.
  912. :term:`BUILD_LDFLAGS`
  913. Specifies the flags to pass to the linker when building for the build
  914. host. When building a :ref:`ref-classes-native` recipe,
  915. :term:`LDFLAGS` is set to the value of this variable
  916. by default.
  917. :term:`BUILD_NM`
  918. Specifies the architecture-specific utility to list symbols from object
  919. files for the build host, and its default definition is derived in part
  920. from :term:`BUILD_PREFIX`::
  921. BUILD_NM = "${BUILD_PREFIX}nm"
  922. When building a :ref:`ref-classes-native` recipe, :term:`NM` is set to the
  923. value of this variable by default.
  924. The :term:`BUILD_NM` variable should not be set manually, and is rarely
  925. used in recipes as :term:`NM` contains the appropriate value depending on
  926. the context (native or target recipes). Exception be made for target
  927. recipes that need to use the utility from the build host at some point
  928. during the build.
  929. :term:`BUILD_OBJCOPY`
  930. Specifies the architecture-specific utility to copy object files for the
  931. build host, and its default definition is derived in part from
  932. :term:`BUILD_PREFIX`::
  933. BUILD_OBJCOPY = "${BUILD_PREFIX}objcopy"
  934. When building a :ref:`ref-classes-native` recipe, :term:`OBJCOPY` is set
  935. to the value of this variable by default.
  936. The :term:`BUILD_OBJCOPY` variable should not be set manually, and is
  937. rarely used in recipes as :term:`OBJCOPY` contains the appropriate value
  938. depending on the context (native or target recipes). Exception be made for
  939. target recipes that need to use the utility from the build host at some
  940. point during the build.
  941. :term:`BUILD_OBJDUMP`
  942. Specifies the architecture-specific utility to display object files
  943. information for the build host, and its default definition is derived in
  944. part from :term:`BUILD_PREFIX`::
  945. BUILD_OBJDUMP = "${BUILD_PREFIX}objdump"
  946. When building a :ref:`ref-classes-native` recipe, :term:`OBJDUMP` is set
  947. to the value of this variable by default.
  948. The :term:`BUILD_OBJDUMP` variable should not be set manually, and is
  949. rarely used in recipes as :term:`OBJDUMP` contains the appropriate value
  950. depending on the context (native or target recipes). Exception be made for
  951. target recipes that need to use the utility from the build host at some
  952. point during the build.
  953. :term:`BUILD_OPTIMIZATION`
  954. Specifies the optimization flags passed to the C compiler when
  955. building for the build host or the SDK. The flags are passed through
  956. the :term:`BUILD_CFLAGS` and
  957. :term:`BUILDSDK_CFLAGS` default values.
  958. The default value of the :term:`BUILD_OPTIMIZATION` variable is "-O2
  959. -pipe".
  960. :term:`BUILD_OS`
  961. Specifies the operating system in use on the build host (e.g.
  962. "linux"). The OpenEmbedded build system sets the value of
  963. :term:`BUILD_OS` from the OS reported by the ``uname`` command --- the
  964. first word, converted to lower-case characters.
  965. :term:`BUILD_PREFIX`
  966. The toolchain binary prefix used for native recipes. The OpenEmbedded
  967. build system uses the :term:`BUILD_PREFIX` value to set the
  968. :term:`TARGET_PREFIX` when building for :ref:`ref-classes-native` recipes.
  969. :term:`BUILD_RANLIB`
  970. Specifies the architecture-specific utility to generate indexes for
  971. archives for the build host, and its default definition is derived in part
  972. from :term:`BUILD_PREFIX`::
  973. BUILD_RANLIB = "${BUILD_PREFIX}ranlib -D"
  974. When building a :ref:`ref-classes-native` recipe, :term:`RANLIB` is set to
  975. the value of this variable by default.
  976. The :term:`BUILD_RANLIB` variable should not be set manually, and is
  977. rarely used in recipes as :term:`RANLIB` contains the appropriate value
  978. depending on the context (native or target recipes). Exception be made for
  979. target recipes that need to use the utility from the build host at some
  980. point during the build.
  981. :term:`BUILD_READELF`
  982. Specifies the architecture-specific utility to display information about
  983. ELF files for the build host, and its default definition is derived in
  984. part from :term:`BUILD_PREFIX`::
  985. BUILD_READELF = "${BUILD_PREFIX}readelf"
  986. When building a :ref:`ref-classes-native` recipe, :term:`READELF` is set
  987. to the value of this variable by default.
  988. The :term:`BUILD_READELF` variable should not be set manually, and is
  989. rarely used in recipes as :term:`READELF` contains the appropriate value
  990. depending on the context (native or target recipes). Exception be made for
  991. target recipes that need to use the utility from the build host at some
  992. point during the build.
  993. :term:`BUILD_STRIP`
  994. Specifies the command to be used to strip debugging symbols from binaries
  995. produced for the build host, and its default definition is derived in part
  996. from :term:`BUILD_PREFIX`::
  997. BUILD_STRIP = "${BUILD_PREFIX}strip"
  998. When building a :ref:`ref-classes-native` recipe, :term:`STRIP` is set to
  999. the value of this variable by default.
  1000. The :term:`BUILD_STRIP` variable should not be set manually, and is
  1001. rarely used in recipes as :term:`STRIP` contains the appropriate value
  1002. depending on the context (native or target recipes). Exception be made for
  1003. target recipes that need to use the utility from the build host at some
  1004. point during the build.
  1005. :term:`BUILD_SYS`
  1006. Specifies the system, including the architecture and the operating
  1007. system, to use when building for the build host (i.e. when building
  1008. :ref:`ref-classes-native` recipes).
  1009. The OpenEmbedded build system automatically sets this variable based
  1010. on :term:`BUILD_ARCH`,
  1011. :term:`BUILD_VENDOR`, and
  1012. :term:`BUILD_OS`. You do not need to set the
  1013. :term:`BUILD_SYS` variable yourself.
  1014. :term:`BUILD_VENDOR`
  1015. Specifies the vendor name to use when building for the build host.
  1016. The default value is an empty string ("").
  1017. :term:`BUILDDIR`
  1018. Points to the location of the :term:`Build Directory`. You can define
  1019. this directory indirectly through the :ref:`structure-core-script` script
  1020. by passing in a :term:`Build Directory` path when you run the script. If
  1021. you run the script and do not provide a :term:`Build Directory` path, the
  1022. :term:`BUILDDIR` defaults to ``build`` in the current directory.
  1023. :term:`BUILDHISTORY_COMMIT`
  1024. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  1025. specifies whether or not to commit the build history output in a local
  1026. Git repository. If set to "1", this local repository will be maintained
  1027. automatically by the :ref:`ref-classes-buildhistory` class and a commit
  1028. will be created on every build for changes to each top-level subdirectory
  1029. of the build history output (images, packages, and sdk). If you want to
  1030. track changes to build history over time, you should set this value to
  1031. "1".
  1032. By default, the :ref:`ref-classes-buildhistory` class
  1033. enables committing the buildhistory output in a local Git repository::
  1034. BUILDHISTORY_COMMIT ?= "1"
  1035. :term:`BUILDHISTORY_COMMIT_AUTHOR`
  1036. When inheriting the :ref:`ref-classes-buildhistory`
  1037. class, this variable specifies the author to use for each Git commit.
  1038. In order for the :term:`BUILDHISTORY_COMMIT_AUTHOR` variable to work, the
  1039. :term:`BUILDHISTORY_COMMIT` variable must
  1040. be set to "1".
  1041. Git requires that the value you provide for the
  1042. :term:`BUILDHISTORY_COMMIT_AUTHOR` variable takes the form of "name
  1043. email@host". Providing an email address or host that is not valid
  1044. does not produce an error.
  1045. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  1046. as follows::
  1047. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
  1048. :term:`BUILDHISTORY_DIR`
  1049. When inheriting the :ref:`ref-classes-buildhistory`
  1050. class, this variable specifies the directory in which build history
  1051. information is kept. For more information on how the variable works,
  1052. see the :ref:`ref-classes-buildhistory` class.
  1053. By default, the :ref:`ref-classes-buildhistory` class sets the directory
  1054. as follows::
  1055. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  1056. :term:`BUILDHISTORY_FEATURES`
  1057. When inheriting the :ref:`ref-classes-buildhistory`
  1058. class, this variable specifies the build history features to be
  1059. enabled. For more information on how build history works, see the
  1060. ":ref:`dev-manual/build-quality:maintaining build output quality`"
  1061. section in the Yocto Project Development Tasks Manual.
  1062. You can specify these features in the form of a space-separated list:
  1063. - *image:* Analysis of the contents of images, which includes the
  1064. list of installed packages among other things.
  1065. - *package:* Analysis of the contents of individual packages.
  1066. - *sdk:* Analysis of the contents of the software development kit
  1067. (SDK).
  1068. - *task:* Save output file signatures for
  1069. :ref:`shared state <overview-manual/concepts:shared state cache>`
  1070. (sstate) tasks.
  1071. This saves one file per task and lists the SHA-256 checksums for
  1072. each file staged (i.e. the output of the task).
  1073. By default, the :ref:`ref-classes-buildhistory` class enables the
  1074. following features::
  1075. BUILDHISTORY_FEATURES ?= "image package sdk"
  1076. :term:`BUILDHISTORY_IMAGE_FILES`
  1077. When inheriting the :ref:`ref-classes-buildhistory`
  1078. class, this variable specifies a list of paths to files copied from
  1079. the image contents into the build history directory under an
  1080. "image-files" directory in the directory for the image, so that you
  1081. can track the contents of each file. The default is to copy
  1082. ``/etc/passwd`` and ``/etc/group``, which allows you to monitor for
  1083. changes in user and group entries. You can modify the list to include
  1084. any file. Specifying an invalid path does not produce an error.
  1085. Consequently, you can include files that might not always be present.
  1086. By default, the :ref:`ref-classes-buildhistory` class provides paths to
  1087. the following files::
  1088. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  1089. :term:`BUILDHISTORY_PATH_PREFIX_STRIP`
  1090. When inheriting the :ref:`ref-classes-buildhistory`
  1091. class, this variable specifies a common path prefix that should be
  1092. stripped off the beginning of paths in the task signature list when the
  1093. ``task`` feature is active in :term:`BUILDHISTORY_FEATURES`. This can be
  1094. useful when build history is populated from multiple sources that may not
  1095. all use the same top level directory.
  1096. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  1097. as follows::
  1098. BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
  1099. In this case, no prefixes will be stripped.
  1100. :term:`BUILDHISTORY_PUSH_REPO`
  1101. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  1102. optionally specifies a remote repository to which build history pushes
  1103. Git changes. In order for :term:`BUILDHISTORY_PUSH_REPO` to work,
  1104. :term:`BUILDHISTORY_COMMIT` must be set to "1".
  1105. The repository should correspond to a remote address that specifies a
  1106. repository as understood by Git, or alternatively to a remote name
  1107. that you have set up manually using ``git remote`` within the local
  1108. repository.
  1109. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  1110. as follows::
  1111. BUILDHISTORY_PUSH_REPO ?= ""
  1112. :term:`BUILDNAME`
  1113. See :term:`bitbake:BUILDNAME` in the BitBake manual.
  1114. :term:`BUILDSDK_CFLAGS`
  1115. Specifies the flags to pass to the C compiler when building for the
  1116. SDK. When building in the ``nativesdk-`` context,
  1117. :term:`CFLAGS` is set to the value of this variable by
  1118. default.
  1119. :term:`BUILDSDK_CPPFLAGS`
  1120. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1121. C and the C++ compilers) when building for the SDK. When building in
  1122. the ``nativesdk-`` context, :term:`CPPFLAGS` is set
  1123. to the value of this variable by default.
  1124. :term:`BUILDSDK_CXXFLAGS`
  1125. Specifies the flags to pass to the C++ compiler when building for the
  1126. SDK. When building in the ``nativesdk-`` context,
  1127. :term:`CXXFLAGS` is set to the value of this variable
  1128. by default.
  1129. :term:`BUILDSDK_LDFLAGS`
  1130. Specifies the flags to pass to the linker when building for the SDK.
  1131. When building in the ``nativesdk-`` context,
  1132. :term:`LDFLAGS` is set to the value of this variable
  1133. by default.
  1134. :term:`BUILDSTATS_BASE`
  1135. Points to the location of the directory that holds build statistics
  1136. when you use and enable the :ref:`ref-classes-buildstats` class. The
  1137. :term:`BUILDSTATS_BASE` directory defaults to
  1138. ``${``\ :term:`TMPDIR`\ ``}/buildstats/``.
  1139. :term:`BUSYBOX_SPLIT_SUID`
  1140. For the BusyBox recipe, specifies whether to split the output
  1141. executable file into two parts: one for features that require
  1142. ``setuid root``, and one for the remaining features (i.e. those that
  1143. do not require ``setuid root``).
  1144. The :term:`BUSYBOX_SPLIT_SUID` variable defaults to "1", which results in
  1145. splitting the output executable file. Set the variable to "0" to get
  1146. a single output executable file.
  1147. :term:`BZRDIR`
  1148. See :term:`bitbake:BZRDIR` in the BitBake manual.
  1149. :term:`CACHE`
  1150. Specifies the directory BitBake uses to store a cache of the
  1151. :term:`Metadata` so it does not need to be parsed every time
  1152. BitBake is started.
  1153. :term:`CARGO_INSTALL_LIBRARIES`
  1154. When inheriting the :ref:`ref-classes-cargo` class, the variable
  1155. :term:`CARGO_INSTALL_LIBRARIES` can be set to a non-empty value by
  1156. individual recipes to enable the installation of the libraries the
  1157. recipe has built in ``${B}/target/${CARGO_TARGET_SUBDIR}`` (files ending
  1158. with ``.so`` or ``.rlib``). By default this variable is not defined and
  1159. libraries are not installed, to replicate the behavior of the ``cargo
  1160. install`` command.
  1161. :term:`CC`
  1162. The minimal command and arguments used to run the C compiler.
  1163. :term:`CCLD`
  1164. The minimal command and arguments used to run the linker when the C
  1165. compiler is being used as the linker.
  1166. :term:`CFLAGS`
  1167. Specifies the flags to pass to the C compiler. This variable is
  1168. exported to an environment variable and thus made visible to the
  1169. software being built during the compilation step.
  1170. Default initialization for :term:`CFLAGS` varies depending on what is
  1171. being built:
  1172. - :term:`TARGET_CFLAGS` when building for the
  1173. target
  1174. - :term:`BUILD_CFLAGS` when building for the
  1175. build host (i.e. ``-native``)
  1176. - :term:`BUILDSDK_CFLAGS` when building for
  1177. an SDK (i.e. ``nativesdk-``)
  1178. :term:`CHECKLAYER_REQUIRED_TESTS`
  1179. The :term:`CHECKLAYER_REQUIRED_TESTS` variable lists the QA tests that are
  1180. required to be enabled to pass the Yocto Project Compatible status for a
  1181. layer. It is meant to be a read-only variable and any change to the
  1182. variable may be done with the approval of the :oe_wiki:`Technical Steering
  1183. Committee (TSC) </TSC>`.
  1184. For more information on the Yocto Project Compatible status, see
  1185. the :ref:`dev-manual/layers:Making Sure Your Layer is Compatible With
  1186. Yocto Project` section of the Yocto Project Development Manual.
  1187. :term:`CLASSOVERRIDE`
  1188. An internal variable specifying the special class override that
  1189. should currently apply (e.g. "class-target", "class-native", and so
  1190. forth). The classes that use this variable (e.g.
  1191. :ref:`ref-classes-native`, :ref:`ref-classes-nativesdk`, and so forth)
  1192. set the variable to appropriate values.
  1193. .. note::
  1194. :term:`CLASSOVERRIDE` gets its default "class-target" value from the
  1195. ``bitbake.conf`` file.
  1196. As an example, the following override allows you to install extra
  1197. files, but only when building for the target::
  1198. do_install:append:class-target() {
  1199. install my-extra-file ${D}${sysconfdir}
  1200. }
  1201. Here is an example where ``FOO`` is set to
  1202. "native" when building for the build host, and to "other" when not
  1203. building for the build host::
  1204. FOO:class-native = "native"
  1205. FOO = "other"
  1206. The underlying mechanism behind :term:`CLASSOVERRIDE` is simply
  1207. that it is included in the default value of
  1208. :term:`OVERRIDES`.
  1209. :term:`CLEANBROKEN`
  1210. If set to "1" within a recipe, :term:`CLEANBROKEN` specifies that the
  1211. ``make clean`` command does not work for the software being built.
  1212. Consequently, the OpenEmbedded build system will not try to run
  1213. ``make clean`` during the :ref:`ref-tasks-configure`
  1214. task, which is the default behavior.
  1215. :term:`COMBINED_FEATURES`
  1216. Provides a list of hardware features that are enabled in both
  1217. :term:`MACHINE_FEATURES` and
  1218. :term:`DISTRO_FEATURES`. This select list of
  1219. features contains features that make sense to be controlled both at
  1220. the machine and distribution configuration level. For example, the
  1221. "bluetooth" feature requires hardware support but should also be
  1222. optional at the distribution level, in case the hardware supports
  1223. Bluetooth but you do not ever intend to use it.
  1224. :term:`COMMERCIAL_AUDIO_PLUGINS`
  1225. This variable is specific to the :yocto_git:`GStreamer recipes
  1226. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1227. It allows to build the GStreamer `"ugly"
  1228. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1229. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ audio plugins.
  1230. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1231. section for usage details.
  1232. :term:`COMMERCIAL_VIDEO_PLUGINS`
  1233. This variable is specific to the :yocto_git:`GStreamer recipes
  1234. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1235. It allows to build the GStreamer `"ugly"
  1236. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1237. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ video plugins.
  1238. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1239. section for usage details.
  1240. :term:`COMMON_LICENSE_DIR`
  1241. Points to ``meta/files/common-licenses`` in the
  1242. :term:`Source Directory`, which is where generic license
  1243. files reside.
  1244. :term:`COMPATIBLE_HOST`
  1245. A regular expression that resolves to one or more hosts (when the
  1246. recipe is native) or one or more targets (when the recipe is
  1247. non-native) with which a recipe is compatible. The regular expression
  1248. is matched against :term:`HOST_SYS`. You can use the
  1249. variable to stop recipes from being built for classes of systems with
  1250. which the recipes are not compatible. Stopping these builds is
  1251. particularly useful with kernels. The variable also helps to increase
  1252. parsing speed since the build system skips parsing recipes not
  1253. compatible with the current system.
  1254. :term:`COMPATIBLE_MACHINE`
  1255. A regular expression that resolves to one or more target machines
  1256. with which a recipe is compatible. The regular expression is matched
  1257. against :term:`MACHINEOVERRIDES`. You can use
  1258. the variable to stop recipes from being built for machines with which
  1259. the recipes are not compatible. Stopping these builds is particularly
  1260. useful with kernels. The variable also helps to increase parsing
  1261. speed since the build system skips parsing recipes not compatible
  1262. with the current machine.
  1263. If one wants to have a recipe only available for some architectures
  1264. (here ``aarch64`` and ``mips64``), the following can be used::
  1265. COMPATIBLE_MACHINE = "^$"
  1266. COMPATIBLE_MACHINE:arch64 = "^(aarch64)$"
  1267. COMPATIBLE_MACHINE:mips64 = "^(mips64)$"
  1268. The first line means "match all machines whose :term:`MACHINEOVERRIDES`
  1269. contains the empty string", which will always be none.
  1270. The second is for matching all machines whose :term:`MACHINEOVERRIDES`
  1271. contains one override which is exactly ``aarch64``.
  1272. The third is for matching all machines whose :term:`MACHINEOVERRIDES`
  1273. contains one override which is exactly ``mips64``.
  1274. The same could be achieved with::
  1275. COMPATIBLE_MACHINE = "^(aarch64|mips64)$"
  1276. .. note::
  1277. When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from
  1278. native, the recipe is always skipped. All native recipes must be
  1279. entirely target independent and should not rely on :term:`MACHINE`.
  1280. :term:`COMPLEMENTARY_GLOB`
  1281. Defines wildcards to match when installing a list of complementary
  1282. packages for all the packages explicitly (or implicitly) installed in
  1283. an image.
  1284. The :term:`COMPLEMENTARY_GLOB` variable uses Unix filename pattern matching
  1285. (`fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__),
  1286. which is similar to the Unix style pathname pattern expansion
  1287. (`glob <https://docs.python.org/3/library/glob.html>`__).
  1288. The resulting list of complementary packages is associated with an
  1289. item that can be added to
  1290. :term:`IMAGE_FEATURES`. An example usage of
  1291. this is the "dev-pkgs" item that when added to :term:`IMAGE_FEATURES`
  1292. will install -dev packages (containing headers and other development
  1293. files) for every package in the image.
  1294. To add a new feature item pointing to a wildcard, use a variable flag
  1295. to specify the feature item name and use the value to specify the
  1296. wildcard. Here is an example::
  1297. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  1298. .. note::
  1299. When installing complementary packages, recommends relationships
  1300. (set via :term:`RRECOMMENDS`) are always ignored.
  1301. :term:`COMPONENTS_DIR`
  1302. Stores sysroot components for each recipe. The OpenEmbedded build
  1303. system uses :term:`COMPONENTS_DIR` when constructing recipe-specific
  1304. sysroots for other recipes.
  1305. The default is
  1306. "``${``\ :term:`STAGING_DIR`\ ``}-components``."
  1307. (i.e.
  1308. "``${``\ :term:`TMPDIR`\ ``}/sysroots-components``").
  1309. :term:`CONF_VERSION`
  1310. Tracks the version of the local configuration file (i.e.
  1311. ``local.conf``). The value for :term:`CONF_VERSION` increments each time
  1312. ``build/conf/`` compatibility changes.
  1313. :term:`CONFFILES`
  1314. Identifies editable or configurable files that are part of a package.
  1315. If the Package Management System (PMS) is being used to update
  1316. packages on the target system, it is possible that configuration
  1317. files you have changed after the original installation and that you
  1318. now want to remain unchanged are overwritten. In other words,
  1319. editable files might exist in the package that you do not want reset
  1320. as part of the package update process. You can use the :term:`CONFFILES`
  1321. variable to list the files in the package that you wish to prevent
  1322. the PMS from overwriting during this update process.
  1323. To use the :term:`CONFFILES` variable, provide a package name override
  1324. that identifies the resulting package. Then, provide a
  1325. space-separated list of files. Here is an example::
  1326. CONFFILES:${PN} += "${sysconfdir}/file1 \
  1327. ${sysconfdir}/file2 ${sysconfdir}/file3"
  1328. There is a relationship between the :term:`CONFFILES` and :term:`FILES`
  1329. variables. The files listed within :term:`CONFFILES` must be a subset of
  1330. the files listed within :term:`FILES`. Because the configuration files
  1331. you provide with :term:`CONFFILES` are simply being identified so that
  1332. the PMS will not overwrite them, it makes sense that the files must
  1333. already be included as part of the package through the :term:`FILES`
  1334. variable.
  1335. .. note::
  1336. When specifying paths as part of the :term:`CONFFILES` variable, it is
  1337. good practice to use appropriate path variables.
  1338. For example, ``${sysconfdir}`` rather than ``/etc`` or ``${bindir}``
  1339. rather than ``/usr/bin``. You can find a list of these variables at
  1340. the top of the ``meta/conf/bitbake.conf`` file in the
  1341. :term:`Source Directory`.
  1342. :term:`CONFIG_INITRAMFS_SOURCE`
  1343. Identifies the initial RAM filesystem (:term:`Initramfs`) source files. The
  1344. OpenEmbedded build system receives and uses this kernel Kconfig
  1345. variable as an environment variable. By default, the variable is set
  1346. to null ("").
  1347. The :term:`CONFIG_INITRAMFS_SOURCE` can be either a single cpio archive
  1348. with a ``.cpio`` suffix or a space-separated list of directories and
  1349. files for building the :term:`Initramfs` image. A cpio archive should contain
  1350. a filesystem archive to be used as an :term:`Initramfs` image. Directories
  1351. should contain a filesystem layout to be included in the :term:`Initramfs`
  1352. image. Files should contain entries according to the format described
  1353. by the ``usr/gen_init_cpio`` program in the kernel tree.
  1354. If you specify multiple directories and files, the :term:`Initramfs` image
  1355. will be the aggregate of all of them.
  1356. For information on creating an :term:`Initramfs`, see the
  1357. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  1358. in the Yocto Project Development Tasks Manual.
  1359. :term:`CONFIG_SITE`
  1360. A list of files that contains ``autoconf`` test results relevant to
  1361. the current build. This variable is used by the Autotools utilities
  1362. when running ``configure``.
  1363. :term:`CONFIGURE_FLAGS`
  1364. The minimal arguments for GNU configure.
  1365. :term:`CONFIGURE_SCRIPT`
  1366. When using the :ref:`ref-classes-autotools` class, the
  1367. :term:`CONFIGURE_SCRIPT` variable stores the location of the ``configure``
  1368. script for the Autotools build system. The default definition for this
  1369. variable is::
  1370. CONFIGURE_SCRIPT ?= "${AUTOTOOLS_SCRIPT_PATH}/configure"
  1371. Where :term:`AUTOTOOLS_SCRIPT_PATH` is the location of the of the
  1372. Autotools build system scripts, which defaults to :term:`S`.
  1373. :term:`CONFLICT_DISTRO_FEATURES`
  1374. When inheriting the :ref:`ref-classes-features_check`
  1375. class, this variable identifies distribution features that would be
  1376. in conflict should the recipe be built. In other words, if the
  1377. :term:`CONFLICT_DISTRO_FEATURES` variable lists a feature that also
  1378. appears in :term:`DISTRO_FEATURES` within the current configuration, then
  1379. the recipe will be skipped, and if the build system attempts to build
  1380. the recipe then an error will be triggered.
  1381. :term:`CONVERSION_CMD`
  1382. This variable is used for storing image conversion commands.
  1383. Image conversion can convert an image into different objects like:
  1384. - Compressed version of the image
  1385. - Checksums for the image
  1386. An example of :term:`CONVERSION_CMD` from :ref:`ref-classes-image_types`
  1387. class is::
  1388. CONVERSION_CMD:lzo = "lzop -9 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
  1389. :term:`COPY_LIC_DIRS`
  1390. If set to "1" along with the
  1391. :term:`COPY_LIC_MANIFEST` variable, the
  1392. OpenEmbedded build system copies into the image the license files,
  1393. which are located in ``/usr/share/common-licenses``, for each
  1394. package. The license files are placed in directories within the image
  1395. itself during build time.
  1396. .. note::
  1397. The :term:`COPY_LIC_DIRS` does not offer a path for adding licenses for
  1398. newly installed packages to an image, which might be most suitable for
  1399. read-only filesystems that cannot be upgraded. See the
  1400. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1401. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1402. section in the Yocto Project Development Tasks Manual for
  1403. information on providing license text.
  1404. :term:`COPY_LIC_MANIFEST`
  1405. If set to "1", the OpenEmbedded build system copies the license
  1406. manifest for the image to
  1407. ``/usr/share/common-licenses/license.manifest`` within the image
  1408. itself during build time.
  1409. .. note::
  1410. The :term:`COPY_LIC_MANIFEST` does not offer a path for adding licenses for
  1411. newly installed packages to an image, which might be most suitable for
  1412. read-only filesystems that cannot be upgraded. See the
  1413. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1414. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1415. section in the Yocto Project Development Tasks Manual for
  1416. information on providing license text.
  1417. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1418. A space-separated list of licenses to exclude from the source archived by
  1419. the :ref:`ref-classes-archiver` class. In other words, if a license in a
  1420. recipe's :term:`LICENSE` value is in the value of
  1421. :term:`COPYLEFT_LICENSE_EXCLUDE`, then its source is not archived by the
  1422. class.
  1423. .. note::
  1424. The :term:`COPYLEFT_LICENSE_EXCLUDE` variable takes precedence over the
  1425. :term:`COPYLEFT_LICENSE_INCLUDE` variable.
  1426. The default value, which is "CLOSED Proprietary", for
  1427. :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the
  1428. :ref:`ref-classes-copyleft_filter` class, which
  1429. is inherited by the :ref:`ref-classes-archiver` class.
  1430. :term:`COPYLEFT_LICENSE_INCLUDE`
  1431. A space-separated list of licenses to include in the source archived
  1432. by the :ref:`ref-classes-archiver` class. In other
  1433. words, if a license in a recipe's :term:`LICENSE`
  1434. value is in the value of :term:`COPYLEFT_LICENSE_INCLUDE`, then its
  1435. source is archived by the class.
  1436. The default value is set by the :ref:`ref-classes-copyleft_filter` class,
  1437. which is inherited by the :ref:`ref-classes-archiver` class. The default
  1438. value includes "GPL*", "LGPL*", and "AGPL*".
  1439. :term:`COPYLEFT_PN_EXCLUDE`
  1440. A list of recipes to exclude in the source archived by the
  1441. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_EXCLUDE`
  1442. variable overrides the license inclusion and exclusion caused through the
  1443. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1444. variables, respectively.
  1445. The default value, which is "" indicating to not explicitly exclude
  1446. any recipes by name, for :term:`COPYLEFT_PN_EXCLUDE` is set by the
  1447. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1448. :ref:`ref-classes-archiver` class.
  1449. :term:`COPYLEFT_PN_INCLUDE`
  1450. A list of recipes to include in the source archived by the
  1451. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_INCLUDE`
  1452. variable overrides the license inclusion and exclusion caused through the
  1453. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1454. variables, respectively.
  1455. The default value, which is "" indicating to not explicitly include
  1456. any recipes by name, for :term:`COPYLEFT_PN_INCLUDE` is set by the
  1457. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1458. :ref:`ref-classes-archiver` class.
  1459. :term:`COPYLEFT_RECIPE_TYPES`
  1460. A space-separated list of recipe types to include in the source
  1461. archived by the :ref:`archiver <ref-classes-archiver>` class.
  1462. Recipe types are ``target``, :ref:`ref-classes-native`,
  1463. :ref:`ref-classes-nativesdk`, :ref:`ref-classes-cross`,
  1464. :ref:`ref-classes-crosssdk`, and :ref:`ref-classes-cross-canadian`.
  1465. The default value, which is "target*", for :term:`COPYLEFT_RECIPE_TYPES`
  1466. is set by the :ref:`ref-classes-copyleft_filter` class, which is
  1467. inherited by the :ref:`ref-classes-archiver` class.
  1468. :term:`CORE_IMAGE_EXTRA_INSTALL`
  1469. Specifies the list of packages to be added to the image. You should
  1470. only set this variable in the ``local.conf`` configuration file found
  1471. in the :term:`Build Directory`.
  1472. This variable replaces ``POKY_EXTRA_INSTALL``, which is no longer
  1473. supported.
  1474. :term:`COREBASE`
  1475. Specifies the parent directory of the OpenEmbedded-Core Metadata
  1476. layer (i.e. ``meta``).
  1477. It is an important distinction that :term:`COREBASE` points to the parent
  1478. of this layer and not the layer itself. Consider an example where you
  1479. have cloned the Poky Git repository and retained the ``poky`` name
  1480. for your local copy of the repository. In this case, :term:`COREBASE`
  1481. points to the ``poky`` folder because it is the parent directory of
  1482. the ``poky/meta`` layer.
  1483. :term:`COREBASE_FILES`
  1484. Lists files from the :term:`COREBASE` directory that
  1485. should be copied other than the layers listed in the
  1486. ``bblayers.conf`` file. The :term:`COREBASE_FILES` variable allows
  1487. to copy metadata from the OpenEmbedded build system
  1488. into the extensible SDK.
  1489. Explicitly listing files in :term:`COREBASE` is needed because it
  1490. typically contains build directories and other files that should not
  1491. normally be copied into the extensible SDK. Consequently, the value
  1492. of :term:`COREBASE_FILES` is used in order to only copy the files that
  1493. are actually needed.
  1494. :term:`CPP`
  1495. The minimal command and arguments used to run the C preprocessor.
  1496. :term:`CPPFLAGS`
  1497. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1498. C and the C++ compilers). This variable is exported to an environment
  1499. variable and thus made visible to the software being built during the
  1500. compilation step.
  1501. Default initialization for :term:`CPPFLAGS` varies depending on what is
  1502. being built:
  1503. - :term:`TARGET_CPPFLAGS` when building for
  1504. the target
  1505. - :term:`BUILD_CPPFLAGS` when building for the
  1506. build host (i.e. ``-native``)
  1507. - :term:`BUILDSDK_CPPFLAGS` when building
  1508. for an SDK (i.e. ``nativesdk-``)
  1509. :term:`CROSS_COMPILE`
  1510. The toolchain binary prefix for the target tools. The
  1511. :term:`CROSS_COMPILE` variable is the same as the
  1512. :term:`TARGET_PREFIX` variable.
  1513. .. note::
  1514. The OpenEmbedded build system sets the :term:`CROSS_COMPILE`
  1515. variable only in certain contexts (e.g. when building for kernel
  1516. and kernel module recipes).
  1517. :term:`CVE_CHECK_CREATE_MANIFEST`
  1518. Specifies whether to create a CVE manifest to place in the deploy
  1519. directory. The default is "1".
  1520. :term:`CVE_CHECK_IGNORE`
  1521. This variable is deprecated and should be replaced by :term:`CVE_STATUS`.
  1522. :term:`CVE_CHECK_MANIFEST_JSON`
  1523. Specifies the path to the CVE manifest in JSON format. See
  1524. :term:`CVE_CHECK_CREATE_MANIFEST`.
  1525. :term:`CVE_CHECK_MANIFEST_JSON_SUFFIX`
  1526. Allows to modify the JSON manifest suffix. See
  1527. :term:`CVE_CHECK_MANIFEST_JSON`.
  1528. :term:`CVE_CHECK_REPORT_PATCHED`
  1529. Specifies whether or not the :ref:`ref-classes-cve-check`
  1530. class should report patched or ignored CVEs. The default is "1", but you
  1531. may wish to set it to "0" if you do not need patched or ignored CVEs in
  1532. the logs.
  1533. :term:`CVE_CHECK_SHOW_WARNINGS`
  1534. Specifies whether or not the :ref:`ref-classes-cve-check`
  1535. class should generate warning messages on the console when unpatched
  1536. CVEs are found. The default is "1", but you may wish to set it to "0" if
  1537. you are already examining/processing the logs after the build has
  1538. completed and thus do not need the warning messages.
  1539. :term:`CVE_CHECK_SKIP_RECIPE`
  1540. The list of package names (:term:`PN`) for which
  1541. CVEs (Common Vulnerabilities and Exposures) are ignored.
  1542. :term:`CVE_CHECK_STATUSMAP`
  1543. Mapping variable for all possible reasons of :term:`CVE_STATUS`:
  1544. ``Patched``, ``Unpatched`` and ``Ignored``.
  1545. See :ref:`ref-classes-cve-check` or ``meta/conf/cve-check-map.conf`` for more details::
  1546. CVE_CHECK_STATUSMAP[cpe-incorrect] = "Ignored"
  1547. :term:`CVE_CHECK_VEX_JUSTIFICATION`
  1548. Mapping variable for :term:`CVE_STATUS` reasons
  1549. (for example ``not-applicable-platform``) to :ref:`ref-classes-vex`
  1550. justifications. Should be set as follows::
  1551. CVE_CHECK_VEX_JUSTIFICATION[not-applicable-config] = "vulnerableCodeNotPresent"
  1552. :term:`CVE_DB_INCR_UPDATE_AGE_THRES`
  1553. Specifies the maximum age of the CVE database in seconds for an
  1554. incremental update (instead of a full-download). Use "0" to force a
  1555. full-download.
  1556. :term:`CVE_DB_UPDATE_INTERVAL`
  1557. Specifies the CVE database update interval in seconds, as used by
  1558. ``cve-update-db-native``. The default value is "86400" i.e. once a day
  1559. (24*60*60). If the value is set to "0" then the update will be forced
  1560. every time. Alternatively, a negative value e.g. "-1" will disable
  1561. updates entirely.
  1562. :term:`CVE_PRODUCT`
  1563. In a recipe, defines the name used to match the recipe name
  1564. against the name in the upstream `NIST CVE database <https://nvd.nist.gov/>`__.
  1565. The default is ${:term:`BPN`} (except for recipes that inherit the
  1566. :ref:`ref-classes-pypi` class where it is set based upon
  1567. :term:`PYPI_PACKAGE`). If it does not match the name in the NIST CVE
  1568. database or matches with multiple entries in the database, the default
  1569. value needs to be changed.
  1570. Here is an example from the :oe_layerindex:`Berkeley DB recipe </layerindex/recipe/544>`::
  1571. CVE_PRODUCT = "oracle_berkeley_db berkeley_db"
  1572. Sometimes the product name is not specific enough, for example
  1573. "tar" has been matching CVEs for the GNU ``tar`` package and also
  1574. the ``node-tar`` node.js extension. To avoid this problem, use the
  1575. vendor name as a prefix. The syntax for this is::
  1576. CVE_PRODUCT = "vendor:package"
  1577. :term:`CVE_STATUS`
  1578. The CVE ID which is patched or should be ignored. Here is
  1579. an example from the :oe_layerindex:`Python3 recipe</layerindex/recipe/23823>`::
  1580. CVE_STATUS[CVE-2020-15523] = "not-applicable-platform: Issue only applies on Windows"
  1581. It has the format "reason: description" and the description is optional.
  1582. The Reason is mapped to the final CVE state by mapping via
  1583. :term:`CVE_CHECK_STATUSMAP`. See :ref:`dev-manual/vulnerabilities:fixing vulnerabilities in recipes`
  1584. for details.
  1585. :term:`CVE_STATUS_GROUPS`
  1586. If there are many CVEs with the same status and reason, they can by simplified by using this
  1587. variable instead of many similar lines with :term:`CVE_STATUS`::
  1588. CVE_STATUS_GROUPS = "CVE_STATUS_WIN CVE_STATUS_PATCHED"
  1589. CVE_STATUS_WIN = "CVE-1234-0001 CVE-1234-0002"
  1590. CVE_STATUS_WIN[status] = "not-applicable-platform: Issue only applies on Windows"
  1591. CVE_STATUS_PATCHED = "CVE-1234-0003 CVE-1234-0004"
  1592. CVE_STATUS_PATCHED[status] = "fixed-version: Fixed externally"
  1593. :term:`CVE_VERSION`
  1594. In a recipe, defines the version used to match the recipe version
  1595. against the version in the `NIST CVE database <https://nvd.nist.gov/>`__
  1596. when usign :ref:`ref-classes-cve-check`.
  1597. The default is ${:term:`PV`} but if recipes use custom version numbers
  1598. which do not map to upstream software component release versions and the versions
  1599. used in the CVE database, then this variable can be used to set the
  1600. version number for :ref:`ref-classes-cve-check`. Example::
  1601. CVE_VERSION = "2.39"
  1602. :term:`CVSDIR`
  1603. The directory in which files checked out under the CVS system are
  1604. stored.
  1605. :term:`CXX`
  1606. The minimal command and arguments used to run the C++ compiler.
  1607. :term:`CXXFLAGS`
  1608. Specifies the flags to pass to the C++ compiler. This variable is
  1609. exported to an environment variable and thus made visible to the
  1610. software being built during the compilation step.
  1611. Default initialization for :term:`CXXFLAGS` varies depending on what is
  1612. being built:
  1613. - :term:`TARGET_CXXFLAGS` when building for
  1614. the target
  1615. - :term:`BUILD_CXXFLAGS` when building for the
  1616. build host (i.e. ``-native``)
  1617. - :term:`BUILDSDK_CXXFLAGS` when building
  1618. for an SDK (i.e. ``nativesdk-``)
  1619. :term:`D`
  1620. The destination directory. The location in the :term:`Build Directory`
  1621. where components are installed by the
  1622. :ref:`ref-tasks-install` task. This location defaults
  1623. to::
  1624. ${WORKDIR}/image
  1625. .. note::
  1626. Tasks that read from or write to this directory should run under
  1627. :ref:`fakeroot <overview-manual/concepts:fakeroot and pseudo>`.
  1628. :term:`DATE`
  1629. The date the build was started. Dates appear using the year, month,
  1630. and day (YMD) format (e.g. "20150209" for February 9th, 2015).
  1631. :term:`DATETIME`
  1632. The date and time on which the current build started. The format is
  1633. suitable for timestamps.
  1634. :term:`DEBIAN_NOAUTONAME`
  1635. When the :ref:`ref-classes-debian` class is inherited,
  1636. which is the default behavior, :term:`DEBIAN_NOAUTONAME` specifies a
  1637. particular package should not be renamed according to Debian library
  1638. package naming. You must use the package name as an override when you
  1639. set this variable. Here is an example from the ``fontconfig`` recipe::
  1640. DEBIAN_NOAUTONAME:fontconfig-utils = "1"
  1641. :term:`DEBIANNAME`
  1642. When the :ref:`ref-classes-debian` class is inherited,
  1643. which is the default behavior, :term:`DEBIANNAME` allows you to override
  1644. the library name for an individual package. Overriding the library
  1645. name in these cases is rare. You must use the package name as an
  1646. override when you set this variable. Here is an example from the
  1647. ``dbus`` recipe::
  1648. DEBIANNAME:${PN} = "dbus-1"
  1649. :term:`DEBUG_BUILD`
  1650. Specifies to build packages with debugging information. This
  1651. influences the value of the :term:`SELECTED_OPTIMIZATION` variable.
  1652. :term:`DEBUG_OPTIMIZATION`
  1653. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  1654. compiling a system for debugging. This variable defaults to "-O
  1655. -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  1656. :term:`DEBUG_PREFIX_MAP`
  1657. Allows to set C compiler options, such as ``-fdebug-prefix-map``,
  1658. ``-fmacro-prefix-map``, and ``-ffile-prefix-map``, which allow to
  1659. replace build-time paths by install-time ones in the debugging sections
  1660. of binaries. This makes compiler output files location independent,
  1661. at the cost of having to pass an extra command to tell the debugger
  1662. where source files are.
  1663. This is used by the Yocto Project to guarantee
  1664. :doc:`/test-manual/reproducible-builds` even when the source code of
  1665. a package uses the ``__FILE__`` or ``assert()`` macros. See the
  1666. `reproducible-builds.org <https://reproducible-builds.org/docs/build-path/>`__
  1667. website for details.
  1668. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1669. not intended to be user-configurable.
  1670. :term:`DEFAULT_PREFERENCE`
  1671. Specifies a weak bias for recipe selection priority.
  1672. The most common usage of this is variable is to set it to "-1" within
  1673. a recipe for a development version of a piece of software. Using the
  1674. variable in this way causes the stable version of the recipe to build
  1675. by default in the absence of :term:`PREFERRED_VERSION` being used to
  1676. build the development version.
  1677. .. note::
  1678. The bias provided by :term:`DEFAULT_PREFERENCE` is weak and is overridden
  1679. by :term:`BBFILE_PRIORITY` if that variable is different between two
  1680. layers that contain different versions of the same recipe.
  1681. :term:`DEFAULT_TIMEZONE`
  1682. Specifies the time zone set in the image.
  1683. This variable causes the ``tzdata`` package to configure
  1684. ``${sysconfdir}/localtime`` accordingly. Valid values are all files
  1685. found in ``/usr/share/zoneinfo`` like ``CET`` or ``Asia/Baku``.
  1686. :term:`DEFAULTTUNE`
  1687. The default CPU and Application Binary Interface (ABI) tunings (i.e.
  1688. the "tune") used by the OpenEmbedded build system. The
  1689. :term:`DEFAULTTUNE` helps define
  1690. :term:`TUNE_FEATURES`.
  1691. The default tune is either implicitly or explicitly set by the
  1692. machine (:term:`MACHINE`). However, you can override
  1693. the setting using available tunes as defined with
  1694. :term:`AVAILTUNES`.
  1695. :term:`DEPENDS`
  1696. Lists a recipe's build-time dependencies. These are dependencies on
  1697. other recipes whose contents (e.g. headers and shared libraries) are
  1698. needed by the recipe at build time.
  1699. As an example, consider a recipe ``foo`` that contains the following
  1700. assignment::
  1701. DEPENDS = "bar"
  1702. The practical effect of the previous assignment is that all files
  1703. installed by bar will be available in the appropriate staging sysroot,
  1704. given by the :term:`STAGING_DIR* <STAGING_DIR>` variables, by the time
  1705. the :ref:`ref-tasks-configure` task for ``foo`` runs. This mechanism is
  1706. implemented by having :ref:`ref-tasks-configure` depend on the
  1707. :ref:`ref-tasks-populate_sysroot` task of each recipe listed in
  1708. :term:`DEPENDS`, through a
  1709. ``[``\ :ref:`deptask <bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]``
  1710. declaration in the :ref:`ref-classes-base` class.
  1711. .. note::
  1712. It seldom is necessary to reference, for example, :term:`STAGING_DIR_HOST`
  1713. explicitly. The standard classes and build-related variables are
  1714. configured to automatically use the appropriate staging sysroots.
  1715. As another example, :term:`DEPENDS` can also be used to add utilities
  1716. that run on the build machine during the build. For example, a recipe
  1717. that makes use of a code generator built by the recipe ``codegen``
  1718. might have the following::
  1719. DEPENDS = "codegen-native"
  1720. For more
  1721. information, see the :ref:`ref-classes-native` class and
  1722. the :term:`EXTRANATIVEPATH` variable.
  1723. .. note::
  1724. - :term:`DEPENDS` is a list of recipe names. Or, to be more precise,
  1725. it is a list of :term:`PROVIDES` names, which
  1726. usually match recipe names. Putting a package name such as
  1727. "foo-dev" in :term:`DEPENDS` does not make sense. Use "foo"
  1728. instead, as this will put files from all the packages that make
  1729. up ``foo``, which includes those from ``foo-dev``, into the
  1730. sysroot.
  1731. - One recipe having another recipe in :term:`DEPENDS` does not by
  1732. itself add any runtime dependencies between the packages
  1733. produced by the two recipes. However, as explained in the
  1734. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  1735. section in the Yocto Project Overview and Concepts Manual,
  1736. runtime dependencies will often be added automatically, meaning
  1737. :term:`DEPENDS` alone is sufficient for most recipes.
  1738. - Counterintuitively, :term:`DEPENDS` is often necessary even for
  1739. recipes that install precompiled components. For example, if
  1740. ``libfoo`` is a precompiled library that links against
  1741. ``libbar``, then linking against ``libfoo`` requires both
  1742. ``libfoo`` and ``libbar`` to be available in the sysroot.
  1743. Without a :term:`DEPENDS` from the recipe that installs ``libfoo``
  1744. to the recipe that installs ``libbar``, other recipes might
  1745. fail to link against ``libfoo``.
  1746. For information on runtime dependencies, see the :term:`RDEPENDS`
  1747. variable. You can also see the
  1748. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  1749. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`"
  1750. sections in the BitBake User Manual for additional information on tasks
  1751. and dependencies.
  1752. :term:`DEPLOY_DIR`
  1753. Points to the general area that the OpenEmbedded build system uses to
  1754. place images, packages, SDKs, and other output files that are ready
  1755. to be used outside of the build system. By default, this directory
  1756. resides within the :term:`Build Directory` as ``${TMPDIR}/deploy``.
  1757. For more information on the structure of the Build Directory, see
  1758. ":ref:`ref-manual/structure:the build directory --- ``build/```" section.
  1759. For more detail on the contents of the ``deploy`` directory, see the
  1760. ":ref:`overview-manual/concepts:images`",
  1761. ":ref:`overview-manual/concepts:package feeds`", and
  1762. ":ref:`overview-manual/concepts:application development sdk`" sections all in the
  1763. Yocto Project Overview and Concepts Manual.
  1764. :term:`DEPLOY_DIR_DEB`
  1765. Points to the area that the OpenEmbedded build system uses to place
  1766. Debian packages that are ready to be used outside of the build
  1767. system. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1768. ":ref:`ref-classes-package_deb`".
  1769. The BitBake configuration file initially defines the
  1770. :term:`DEPLOY_DIR_DEB` variable as a sub-folder of
  1771. :term:`DEPLOY_DIR`::
  1772. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  1773. The :ref:`ref-classes-package_deb` class uses the
  1774. :term:`DEPLOY_DIR_DEB` variable to make sure the
  1775. :ref:`ref-tasks-package_write_deb` task
  1776. writes Debian packages into the appropriate folder. For more
  1777. information on how packaging works, see the
  1778. ":ref:`overview-manual/concepts:package feeds`" section
  1779. in the Yocto Project Overview and Concepts Manual.
  1780. :term:`DEPLOY_DIR_IMAGE`
  1781. Points to the area that the OpenEmbedded build system uses to place
  1782. images and other associated output files that are ready to be
  1783. deployed onto the target machine. The directory is machine-specific
  1784. as it contains the ``${MACHINE}`` name. By default, this directory
  1785. resides within the :term:`Build Directory` as
  1786. ``${DEPLOY_DIR}/images/${MACHINE}/``.
  1787. It must not be used directly in recipes when deploying files. Instead,
  1788. it's only useful when a recipe needs to "read" a file already deployed
  1789. by a dependency. So, it should be filled with the contents of
  1790. :term:`DEPLOYDIR` by the :ref:`ref-classes-deploy` class or with the
  1791. contents of :term:`IMGDEPLOYDIR` by the :ref:`ref-classes-image` class.
  1792. For more information on the structure of the :term:`Build Directory`, see
  1793. ":ref:`ref-manual/structure:the build directory --- ``build/```" section.
  1794. For more detail on the contents of the ``deploy`` directory, see the
  1795. ":ref:`overview-manual/concepts:images`" and
  1796. ":ref:`overview-manual/concepts:application development sdk`" sections both in
  1797. the Yocto Project Overview and Concepts Manual.
  1798. :term:`DEPLOY_DIR_IPK`
  1799. Points to the area that the OpenEmbedded build system uses to place
  1800. IPK packages that are ready to be used outside of the build system.
  1801. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1802. ":ref:`ref-classes-package_ipk`".
  1803. The BitBake configuration file initially defines this variable as a
  1804. sub-folder of :term:`DEPLOY_DIR`::
  1805. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  1806. The :ref:`ref-classes-package_ipk` class uses the :term:`DEPLOY_DIR_IPK`
  1807. variable to make sure the :ref:`ref-tasks-package_write_ipk` task
  1808. writes IPK packages into the appropriate folder. For more information
  1809. on how packaging works, see the
  1810. ":ref:`overview-manual/concepts:package feeds`" section
  1811. in the Yocto Project Overview and Concepts Manual.
  1812. :term:`DEPLOY_DIR_RPM`
  1813. Points to the area that the OpenEmbedded build system uses to place
  1814. RPM packages that are ready to be used outside of the build system.
  1815. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1816. ":ref:`ref-classes-package_rpm`".
  1817. The BitBake configuration file initially defines this variable as a
  1818. sub-folder of :term:`DEPLOY_DIR`::
  1819. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  1820. The :ref:`ref-classes-package_rpm` class uses the
  1821. :term:`DEPLOY_DIR_RPM` variable to make sure the
  1822. :ref:`ref-tasks-package_write_rpm` task
  1823. writes RPM packages into the appropriate folder. For more information
  1824. on how packaging works, see the
  1825. ":ref:`overview-manual/concepts:package feeds`" section
  1826. in the Yocto Project Overview and Concepts Manual.
  1827. :term:`DEPLOYDIR`
  1828. When inheriting the :ref:`ref-classes-deploy` class, the
  1829. :term:`DEPLOYDIR` points to a temporary work area for deployed files that
  1830. is set in the :ref:`ref-classes-deploy` class as follows::
  1831. DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
  1832. Recipes inheriting the :ref:`ref-classes-deploy` class should copy files to be
  1833. deployed into :term:`DEPLOYDIR`, and the class will take care of copying
  1834. them into :term:`DEPLOY_DIR_IMAGE`
  1835. afterwards.
  1836. :term:`DESCRIPTION`
  1837. The package description used by package managers. If not set,
  1838. :term:`DESCRIPTION` takes the value of the :term:`SUMMARY`
  1839. variable.
  1840. :term:`DEV_PKG_DEPENDENCY`
  1841. Provides an easy way for recipes to disable or adjust the runtime recommendation
  1842. (:term:`RRECOMMENDS`) of the ``${PN}-dev`` package on the main
  1843. (``${PN}``) package.
  1844. :term:`DISABLE_STATIC`
  1845. Used in order to disable static linking by default (in order to save
  1846. space, since static libraries are often unused in embedded systems.)
  1847. The default value is " --disable-static", however it can be set to ""
  1848. in order to enable static linking if desired. Certain recipes do this
  1849. individually, and also there is a
  1850. ``meta/conf/distro/include/no-static-libs.inc`` include file that
  1851. disables static linking for a number of recipes. Some software
  1852. packages or build tools (such as CMake) have explicit support for
  1853. enabling / disabling static linking, and in those cases
  1854. :term:`DISABLE_STATIC` is not used.
  1855. :term:`DISTRO`
  1856. The short name of the distribution. For information on the long name
  1857. of the distribution, see the :term:`DISTRO_NAME`
  1858. variable.
  1859. The :term:`DISTRO` variable corresponds to a distribution configuration
  1860. file whose root name is the same as the variable's argument and whose
  1861. filename extension is ``.conf``. For example, the distribution
  1862. configuration file for the Poky distribution is named ``poky.conf``
  1863. and resides in the ``meta-poky/conf/distro`` directory of the
  1864. :term:`Source Directory`.
  1865. Within that ``poky.conf`` file, the :term:`DISTRO` variable is set as
  1866. follows::
  1867. DISTRO = "poky"
  1868. Distribution configuration files are located in a ``conf/distro``
  1869. directory within the :term:`Metadata` that contains the
  1870. distribution configuration. The value for :term:`DISTRO` must not contain
  1871. spaces, and is typically all lower-case.
  1872. .. note::
  1873. If the :term:`DISTRO` variable is blank, a set of default configurations
  1874. are used, which are specified within
  1875. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1876. :term:`DISTRO_CODENAME`
  1877. Specifies a codename for the distribution being built.
  1878. :term:`DISTRO_EXTRA_RDEPENDS`
  1879. Specifies a list of distro-specific packages to add to all images.
  1880. This variable takes effect through ``packagegroup-base`` so the
  1881. variable only really applies to the more full-featured images that
  1882. include ``packagegroup-base``. You can use this variable to keep
  1883. distro policy out of generic images. As with all other distro
  1884. variables, you set this variable in the distro ``.conf`` file.
  1885. :term:`DISTRO_EXTRA_RRECOMMENDS`
  1886. Specifies a list of distro-specific packages to add to all images if
  1887. the packages exist. The packages might not exist or be empty (e.g.
  1888. kernel modules). The list of packages are automatically installed but
  1889. you can remove them.
  1890. :term:`DISTRO_FEATURES`
  1891. The software support you want in your distribution for various
  1892. features. You define your distribution features in the distribution
  1893. configuration file.
  1894. In most cases, the presence or absence of a feature in
  1895. :term:`DISTRO_FEATURES` is translated to the appropriate option supplied
  1896. to the configure script during the
  1897. :ref:`ref-tasks-configure` task for recipes that
  1898. optionally support the feature. For example, specifying "x11" in
  1899. :term:`DISTRO_FEATURES`, causes every piece of software built for the
  1900. target that can optionally support X11 to have its X11 support
  1901. enabled.
  1902. .. note::
  1903. Just enabling :term:`DISTRO_FEATURES` alone doesn't
  1904. enable feature support for packages. Mechanisms such as making
  1905. :term:`PACKAGECONFIG` track :term:`DISTRO_FEATURES` are used
  1906. to enable/disable package features.
  1907. Two more examples are Bluetooth and NFS support. For a more complete
  1908. list of features that ships with the Yocto Project and that you can
  1909. provide with this variable, see the ":ref:`ref-features-distro`" section.
  1910. :term:`DISTRO_FEATURES_BACKFILL`
  1911. A space-separated list of features to be added to :term:`DISTRO_FEATURES`
  1912. if not also present in :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`.
  1913. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1914. not intended to be user-configurable. It is best to just reference
  1915. the variable to see which distro features are being
  1916. :ref:`backfilled <ref-features-backfill>` for all distro configurations.
  1917. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`
  1918. A space-separated list of features from :term:`DISTRO_FEATURES_BACKFILL`
  1919. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  1920. to :term:`DISTRO_FEATURES`) during the build.
  1921. This corresponds to an opt-out mechanism. When new default distro
  1922. features are introduced, distribution maintainers can review (`consider`)
  1923. them and decide to exclude them from the
  1924. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  1925. combination of :term:`DISTRO_FEATURES_BACKFILL` and
  1926. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  1927. add new default features without breaking existing distributions.
  1928. :term:`DISTRO_FEATURES_DEFAULT`
  1929. A convenience variable that gives you the default list of distro
  1930. features with the exception of any features specific to the C library
  1931. (``libc``).
  1932. When creating a custom distribution, you might find it useful to be
  1933. able to reuse the default
  1934. :term:`DISTRO_FEATURES` options without the
  1935. need to write out the full set. Here is an example that uses
  1936. :term:`DISTRO_FEATURES_DEFAULT` from a custom distro configuration file::
  1937. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} myfeature"
  1938. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1939. Specifies a list of features that if present in the target
  1940. :term:`DISTRO_FEATURES` value should be
  1941. included in :term:`DISTRO_FEATURES` when building native recipes. This
  1942. variable is used in addition to the features filtered using the
  1943. :term:`DISTRO_FEATURES_NATIVE`
  1944. variable.
  1945. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1946. Specifies a list of features that if present in the target
  1947. :term:`DISTRO_FEATURES` value should be included in
  1948. :term:`DISTRO_FEATURES` when building :ref:`ref-classes-nativesdk`
  1949. recipes. This variable is used in addition to the features filtered using
  1950. the :term:`DISTRO_FEATURES_NATIVESDK` variable.
  1951. :term:`DISTRO_FEATURES_NATIVE`
  1952. Specifies a list of features that should be included in
  1953. :term:`DISTRO_FEATURES` when building native
  1954. recipes. This variable is used in addition to the features filtered
  1955. using the
  1956. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1957. variable.
  1958. :term:`DISTRO_FEATURES_NATIVESDK`
  1959. Specifies a list of features that should be included in
  1960. :term:`DISTRO_FEATURES` when building
  1961. :ref:`ref-classes-nativesdk` recipes. This variable is used
  1962. in addition to the features filtered using the
  1963. :term:`DISTRO_FEATURES_FILTER_NATIVESDK` variable.
  1964. :term:`DISTRO_NAME`
  1965. The long name of the distribution. For information on the short name
  1966. of the distribution, see the :term:`DISTRO` variable.
  1967. The :term:`DISTRO_NAME` variable corresponds to a distribution
  1968. configuration file whose root name is the same as the variable's
  1969. argument and whose filename extension is ``.conf``. For example, the
  1970. distribution configuration file for the Poky distribution is named
  1971. ``poky.conf`` and resides in the ``meta-poky/conf/distro`` directory
  1972. of the :term:`Source Directory`.
  1973. Within that ``poky.conf`` file, the :term:`DISTRO_NAME` variable is set
  1974. as follows::
  1975. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  1976. Distribution configuration files are located in a ``conf/distro``
  1977. directory within the :term:`Metadata` that contains the
  1978. distribution configuration.
  1979. .. note::
  1980. If the :term:`DISTRO_NAME` variable is blank, a set of default
  1981. configurations are used, which are specified within
  1982. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1983. :term:`DISTRO_VERSION`
  1984. The version of the distribution.
  1985. :term:`DISTROOVERRIDES`
  1986. A colon-separated list of overrides specific to the current
  1987. distribution. By default, this list includes the value of
  1988. :term:`DISTRO`.
  1989. You can extend :term:`DISTROOVERRIDES` to add extra overrides that should
  1990. apply to the distribution.
  1991. The underlying mechanism behind :term:`DISTROOVERRIDES` is simply that it
  1992. is included in the default value of
  1993. :term:`OVERRIDES`.
  1994. Here is an example from :yocto_git:`meta-poky/conf/distro/poky-tiny.conf
  1995. </poky/tree/meta-poky/conf/distro/poky-tiny.conf>`::
  1996. DISTROOVERRIDES = "poky:poky-tiny"
  1997. :term:`DL_DIR`
  1998. The central download directory used by the build process to store
  1999. downloads. By default, :term:`DL_DIR` gets files suitable for mirroring
  2000. for everything except Git repositories. If you want tarballs of Git
  2001. repositories, use the
  2002. :term:`BB_GENERATE_MIRROR_TARBALLS`
  2003. variable.
  2004. You can set this directory by defining the :term:`DL_DIR` variable in the
  2005. ``conf/local.conf`` file. This directory is self-maintaining and you
  2006. should not have to touch it. By default, the directory is
  2007. ``downloads`` in the :term:`Build Directory`::
  2008. #DL_DIR ?= "${TOPDIR}/downloads"
  2009. To specify a different download directory,
  2010. simply remove the comment from the line and provide your directory.
  2011. During a first build, the system downloads many different source code
  2012. tarballs from various upstream projects. Downloading can take a
  2013. while, particularly if your network connection is slow. Tarballs are
  2014. all stored in the directory defined by :term:`DL_DIR` and the build
  2015. system looks there first to find source tarballs.
  2016. .. note::
  2017. When wiping and rebuilding, you can preserve this directory to
  2018. speed up this part of subsequent builds.
  2019. You can safely share this directory between multiple builds on the
  2020. same development machine. For additional information on how the build
  2021. process gets source files when working behind a firewall or proxy
  2022. server, see this specific question in the ":doc:`/ref-manual/faq`"
  2023. chapter. You can also refer to the
  2024. ":yocto_wiki:`Working Behind a Network Proxy </Working_Behind_a_Network_Proxy>`"
  2025. Wiki page.
  2026. :term:`DOC_COMPRESS`
  2027. When inheriting the :ref:`ref-classes-compress_doc`
  2028. class, this variable sets the compression policy used when the
  2029. OpenEmbedded build system compresses manual and info pages. By
  2030. default, the compression method used is gz (gzip). Other policies
  2031. available are xz and bz2.
  2032. For information on policies and on how to use this variable, see the
  2033. comments in the ``meta/classes-recipe/compress_doc.bbclass`` file.
  2034. :term:`DT_FILES`
  2035. Space-separated list of device tree source files to compile using
  2036. a recipe that inherits the :ref:`ref-classes-devicetree` class. These
  2037. are relative to the :term:`DT_FILES_PATH`.
  2038. For convenience, both ``.dts`` and ``.dtb`` extensions can be used.
  2039. Use an empty string (default) to build all device tree sources within
  2040. the :term:`DT_FILES_PATH` directory.
  2041. :term:`DT_FILES_PATH`
  2042. When compiling out-of-tree device tree sources using a recipe that
  2043. inherits the :ref:`ref-classes-devicetree` class, this variable specifies
  2044. the path to the directory containing dts files to build.
  2045. Defaults to the :term:`S` directory.
  2046. :term:`DT_PADDING_SIZE`
  2047. When inheriting the :ref:`ref-classes-devicetree` class, this variable
  2048. specifies the size of padding appended to the device tree blob, used as
  2049. extra space typically for additional properties during boot.
  2050. :term:`EFI_ARCH`
  2051. The CPU architecture name within EFI standard. Set in
  2052. :oe_git:`meta/conf/image-uefi.conf
  2053. <openembedded-core/tree/meta/conf/image-uefi.conf>`.
  2054. :term:`EFI_PROVIDER`
  2055. When building bootable images (i.e. where ``hddimg``, ``iso``, or
  2056. ``wic.vmdk`` is in :term:`IMAGE_FSTYPES`), the
  2057. :term:`EFI_PROVIDER` variable specifies the EFI bootloader to use. The
  2058. default is "grub-efi", but "systemd-boot" can be used instead.
  2059. See the :ref:`ref-classes-systemd-boot` and :ref:`ref-classes-image-live`
  2060. classes for more information.
  2061. :term:`EFI_UKI_DIR`
  2062. The primary place for the UKI image inside the EFI System Partition.
  2063. :term:`EFI_UKI_PATH`
  2064. The path for the UKI image inside the root filesystem.
  2065. :term:`ENABLE_BINARY_LOCALE_GENERATION`
  2066. Variable that controls which locales for ``glibc`` are generated
  2067. during the build (useful if the target device has 64Mbytes of RAM or
  2068. less).
  2069. :term:`ERR_REPORT_DIR`
  2070. When used with the :ref:`ref-classes-report-error` class, specifies the
  2071. path used for storing the debug files created by the :ref:`error reporting
  2072. tool <dev-manual/error-reporting-tool:using the error reporting tool>`,
  2073. which allows you to submit build errors you encounter to a central
  2074. database. By default, the value of this variable is
  2075. ``${``\ :term:`LOG_DIR`\ ``}/error-report``.
  2076. You can set :term:`ERR_REPORT_DIR` to the path you want the error
  2077. reporting tool to store the debug files as follows in your
  2078. ``local.conf`` file::
  2079. ERR_REPORT_DIR = "path"
  2080. :term:`ERROR_QA`
  2081. Specifies the quality assurance checks whose failures are reported as
  2082. errors by the OpenEmbedded build system. You set this variable in
  2083. your distribution configuration file. For a list of the checks you
  2084. can control with this variable, see the
  2085. ":ref:`ref-classes-insane`" section.
  2086. :term:`ESDK_CLASS_INHERIT_DISABLE`
  2087. A list of classes to remove from the :term:`INHERIT`
  2088. value globally within the extensible SDK configuration. The
  2089. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class sets the
  2090. default value::
  2091. ESDK_CLASS_INHERIT_DISABLE ?= "buildhistory"
  2092. Some classes are not generally applicable within the extensible SDK
  2093. context. You can use this variable to disable those classes.
  2094. For additional information on how to customize the extensible SDK's
  2095. configuration, see the
  2096. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  2097. section in the Yocto Project Application Development and the
  2098. Extensible Software Development Kit (eSDK) manual.
  2099. :term:`ESDK_LOCALCONF_ALLOW`
  2100. A list of variables allowed through from the OpenEmbedded build
  2101. system configuration into the extensible SDK configuration. By
  2102. default, the list of variables is empty and is set in the
  2103. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class.
  2104. This list overrides the variables specified using the
  2105. :term:`ESDK_LOCALCONF_REMOVE` variable as well as
  2106. other variables automatically added due to the "/" character
  2107. being found at the start of the
  2108. value, which is usually indicative of being a path and thus might not
  2109. be valid on the system where the SDK is installed.
  2110. For additional information on how to customize the extensible SDK's
  2111. configuration, see the
  2112. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  2113. section in the Yocto Project Application Development and the
  2114. Extensible Software Development Kit (eSDK) manual.
  2115. :term:`ESDK_LOCALCONF_REMOVE`
  2116. A list of variables not allowed through from the OpenEmbedded build
  2117. system configuration into the extensible SDK configuration. Usually,
  2118. these are variables that are specific to the machine on which the
  2119. build system is running and thus would be potentially problematic
  2120. within the extensible SDK.
  2121. By default, :term:`ESDK_LOCALCONF_REMOVE` is set in the
  2122. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class and
  2123. excludes the following variables:
  2124. - :term:`CONF_VERSION`
  2125. - :term:`BB_NUMBER_THREADS`
  2126. - :term:`BB_NUMBER_PARSE_THREADS`
  2127. - :term:`PARALLEL_MAKE`
  2128. - :term:`PRSERV_HOST`
  2129. - :term:`SSTATE_MIRRORS` :term:`DL_DIR`
  2130. - :term:`SSTATE_DIR` :term:`TMPDIR`
  2131. - :term:`BB_SERVER_TIMEOUT`
  2132. For additional information on how to customize the extensible SDK's
  2133. configuration, see the
  2134. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  2135. section in the Yocto Project Application Development and the
  2136. Extensible Software Development Kit (eSDK) manual.
  2137. :term:`EXCLUDE_FROM_SHLIBS`
  2138. Triggers the OpenEmbedded build system's shared libraries resolver to
  2139. exclude an entire package when scanning for shared libraries.
  2140. .. note::
  2141. The shared libraries resolver's functionality results in part from
  2142. the internal function ``package_do_shlibs``, which is part of the
  2143. :ref:`ref-tasks-package` task. You should be aware that the shared
  2144. libraries resolver might implicitly define some dependencies between
  2145. packages.
  2146. The :term:`EXCLUDE_FROM_SHLIBS` variable is similar to the
  2147. :term:`PRIVATE_LIBS` variable, which excludes a
  2148. package's particular libraries only and not the whole package.
  2149. Use the :term:`EXCLUDE_FROM_SHLIBS` variable by setting it to "1" for a
  2150. particular package::
  2151. EXCLUDE_FROM_SHLIBS = "1"
  2152. :term:`EXCLUDE_FROM_WORLD`
  2153. Directs BitBake to exclude a recipe from world builds (i.e.
  2154. ``bitbake world``). During world builds, BitBake locates, parses and
  2155. builds all recipes found in every layer exposed in the
  2156. ``bblayers.conf`` configuration file.
  2157. To exclude a recipe from a world build using this variable, set the
  2158. variable to "1" in the recipe.
  2159. .. note::
  2160. Recipes added to :term:`EXCLUDE_FROM_WORLD` may still be built during a
  2161. world build in order to satisfy dependencies of other recipes. Adding
  2162. a recipe to :term:`EXCLUDE_FROM_WORLD` only ensures that the recipe is not
  2163. explicitly added to the list of build targets in a world build.
  2164. :term:`EXTENDPE`
  2165. Used with file and pathnames to create a prefix for a recipe's
  2166. version based on the recipe's :term:`PE` value. If :term:`PE`
  2167. is set and greater than zero for a recipe, :term:`EXTENDPE` becomes that
  2168. value (e.g if :term:`PE` is equal to "1" then :term:`EXTENDPE` becomes "1").
  2169. If a recipe's :term:`PE` is not set (the default) or is equal to zero,
  2170. :term:`EXTENDPE` becomes "".
  2171. See the :term:`STAMP` variable for an example.
  2172. :term:`EXTENDPKGV`
  2173. The full package version specification as it appears on the final
  2174. packages produced by a recipe. The variable's value is normally used
  2175. to fix a runtime dependency to the exact same version of another
  2176. package in the same recipe::
  2177. RDEPENDS:${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  2178. The dependency relationships are intended to force the package
  2179. manager to upgrade these types of packages in lock-step.
  2180. :term:`EXTERNAL_KERNEL_DEVICETREE`
  2181. When inheriting :ref:`ref-classes-kernel-fit-image` and a
  2182. :term:`PREFERRED_PROVIDER` for ``virtual/dtb`` set to ``devicetree``, the
  2183. variable :term:`EXTERNAL_KERNEL_DEVICETREE` can be used to specify a
  2184. directory containing one or more compiled device tree or device tree
  2185. overlays to use.
  2186. :term:`EXTERNAL_KERNEL_TOOLS`
  2187. When set, the :term:`EXTERNAL_KERNEL_TOOLS` variable indicates that these
  2188. tools are not in the source tree.
  2189. When kernel tools are available in the tree, they are preferred over
  2190. any externally installed tools. Setting the :term:`EXTERNAL_KERNEL_TOOLS`
  2191. variable tells the OpenEmbedded build system to prefer the installed
  2192. external tools. See the :ref:`ref-classes-kernel-yocto` class in
  2193. ``meta/classes-recipe`` to see how the variable is used.
  2194. :term:`EXTERNAL_TOOLCHAIN`
  2195. When you intend to use an
  2196. :ref:`external toolchain <dev-manual/external-toolchain:optionally using an external toolchain>`,
  2197. this variable allows to specify the directory where this toolchain was
  2198. installed.
  2199. :term:`EXTERNALSRC`
  2200. When inheriting the :ref:`ref-classes-externalsrc`
  2201. class, this variable points to the source tree, which is outside of
  2202. the OpenEmbedded build system. When set, this variable sets the
  2203. :term:`S` variable, which is what the OpenEmbedded build
  2204. system uses to locate unpacked recipe source code.
  2205. See the ":ref:`ref-classes-externalsrc`" section for details. You
  2206. can also find information on how to use this variable in the
  2207. ":ref:`dev-manual/building:building software from an external source`"
  2208. section in the Yocto Project Development Tasks Manual.
  2209. :term:`EXTERNALSRC_BUILD`
  2210. When inheriting the :ref:`ref-classes-externalsrc`
  2211. class, this variable points to the directory in which the recipe's
  2212. source code is built, which is outside of the OpenEmbedded build
  2213. system. When set, this variable sets the :term:`B` variable,
  2214. which is what the OpenEmbedded build system uses to locate the
  2215. :term:`Build Directory`.
  2216. See the ":ref:`ref-classes-externalsrc`" section for details. You
  2217. can also find information on how to use this variable in the
  2218. ":ref:`dev-manual/building:building software from an external source`"
  2219. section in the Yocto Project Development Tasks Manual.
  2220. :term:`EXTRA_AUTORECONF`
  2221. For recipes inheriting the :ref:`ref-classes-autotools`
  2222. class, you can use :term:`EXTRA_AUTORECONF` to specify extra options to
  2223. pass to the ``autoreconf`` command that is executed during the
  2224. :ref:`ref-tasks-configure` task.
  2225. The default value is "--exclude=autopoint".
  2226. :term:`EXTRA_IMAGE_FEATURES`
  2227. A list of additional features to include in an image. When listing
  2228. more than one feature, separate them with a space.
  2229. Typically, you configure this variable in your ``local.conf`` file,
  2230. which is found in the :term:`Build Directory`. Although you can use this
  2231. variable from within a recipe, best practices dictate that you do not.
  2232. .. note::
  2233. To enable primary features from within the image recipe, use the
  2234. :term:`IMAGE_FEATURES` variable.
  2235. Here are some examples of features you can add:
  2236. - "dbg-pkgs" --- adds -dbg packages for all installed packages including
  2237. symbol information for debugging and profiling.
  2238. - "empty-root-password" --- This feature can be used if you want to
  2239. allow root login with an empty password.
  2240. - "allow-empty-password" --- Allows Dropbear and OpenSSH to accept
  2241. logins from accounts having an empty password string.
  2242. - "allow-root-login" --- Allows Dropbear and OpenSSH to accept root logins.
  2243. - "post-install-logging" --- Enables logging postinstall script runs to
  2244. the ``/var/log/postinstall.log`` file on first boot of the image on
  2245. the target system.
  2246. - "dev-pkgs" --- adds -dev packages for all installed packages. This is
  2247. useful if you want to develop against the libraries in the image.
  2248. - "read-only-rootfs" --- creates an image whose root filesystem is
  2249. read-only. See the
  2250. ":ref:`dev-manual/read-only-rootfs:creating a read-only root filesystem`"
  2251. section in the Yocto Project Development Tasks Manual for more
  2252. information
  2253. - "tools-debug" --- adds debugging tools such as gdb and strace.
  2254. - "tools-sdk" --- adds development tools such as gcc, make,
  2255. pkgconfig and so forth.
  2256. - "tools-testapps" --- adds useful testing tools
  2257. such as ts_print, aplay, arecord and so forth.
  2258. For a complete list of image features that ships with the Yocto
  2259. Project, see the ":ref:`ref-features-image`" section.
  2260. For an example that shows how to customize your image by using this
  2261. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2262. section in the Yocto Project Development Tasks Manual.
  2263. :term:`EXTRA_IMAGECMD`
  2264. Specifies additional options for the image creation command that has
  2265. been specified in :term:`IMAGE_CMD`. When setting
  2266. this variable, use an override for the associated image type. Here is
  2267. an example::
  2268. EXTRA_IMAGECMD:ext3 ?= "-i 4096"
  2269. :term:`EXTRA_IMAGEDEPENDS`
  2270. A list of recipes to build that do not provide packages for
  2271. installing into the root filesystem.
  2272. Sometimes a recipe is required to build the final image but is not
  2273. needed in the root filesystem. You can use the :term:`EXTRA_IMAGEDEPENDS`
  2274. variable to list these recipes and thus specify the dependencies. A
  2275. typical example is a required bootloader in a machine configuration.
  2276. .. note::
  2277. To add packages to the root filesystem, see the various
  2278. :term:`RDEPENDS` and :term:`RRECOMMENDS` variables.
  2279. :term:`EXTRA_OECMAKE`
  2280. Additional `CMake <https://cmake.org/overview/>`__ options. See the
  2281. :ref:`ref-classes-cmake` class for additional information.
  2282. :term:`EXTRA_OECONF`
  2283. Additional ``configure`` script options. See
  2284. :term:`PACKAGECONFIG_CONFARGS` for
  2285. additional information on passing configure script options.
  2286. :term:`EXTRA_OEMAKE`
  2287. Additional GNU ``make`` options.
  2288. Because the :term:`EXTRA_OEMAKE` defaults to "", you need to set the
  2289. variable to specify any required GNU options.
  2290. :term:`PARALLEL_MAKE` and
  2291. :term:`PARALLEL_MAKEINST` also make use of
  2292. :term:`EXTRA_OEMAKE` to pass the required flags.
  2293. :term:`EXTRA_OEMESON`
  2294. Additional `Meson <https://mesonbuild.com/>`__ options. See the
  2295. :ref:`ref-classes-meson` class for additional information.
  2296. In addition to standard Meson options, such options correspond to
  2297. `Meson build options <https://mesonbuild.com/Build-options.html>`__
  2298. defined in the ``meson_options.txt`` file in the sources to build.
  2299. Here is an example::
  2300. EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled"
  2301. Note that any custom value for the Meson ``--buildtype`` option
  2302. should be set through the :term:`MESON_BUILDTYPE` variable.
  2303. :term:`EXTRA_OESCONS`
  2304. When inheriting the :ref:`ref-classes-scons` class, this
  2305. variable specifies additional configuration options you want to pass
  2306. to the ``scons`` command line.
  2307. :term:`EXTRA_USERS_PARAMS`
  2308. When inheriting the :ref:`ref-classes-extrausers`
  2309. class, this variable provides image level user and group operations.
  2310. This is a more global method of providing user and group
  2311. configuration as compared to using the
  2312. :ref:`ref-classes-useradd` class, which ties user and
  2313. group configurations to a specific recipe.
  2314. The set list of commands you can configure using the
  2315. :term:`EXTRA_USERS_PARAMS` is shown in the
  2316. :ref:`ref-classes-extrausers` class. These commands map to the normal
  2317. Unix commands of the same names::
  2318. # EXTRA_USERS_PARAMS = "\
  2319. # useradd -p '' tester; \
  2320. # groupadd developers; \
  2321. # userdel nobody; \
  2322. # groupdel -g video; \
  2323. # groupmod -g 1020 developers; \
  2324. # usermod -s /bin/sh tester; \
  2325. # "
  2326. Hardcoded passwords are supported via the ``-p`` parameters for
  2327. ``useradd`` or ``usermod``, but only hashed.
  2328. Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns
  2329. passwords. First on host, create the (escaped) password hash::
  2330. printf "%q" $(mkpasswd -m sha256crypt tester01)
  2331. The resulting hash is set to a variable and used in ``useradd`` command parameters::
  2332. inherit extrausers
  2333. PASSWD = "\$X\$ABC123\$A-Long-Hash"
  2334. EXTRA_USERS_PARAMS = "\
  2335. useradd -p '${PASSWD}' tester-jim; \
  2336. useradd -p '${PASSWD}' tester-sue; \
  2337. "
  2338. Finally, here is an example that sets the root password::
  2339. inherit extrausers
  2340. EXTRA_USERS_PARAMS = "\
  2341. usermod -p '${PASSWD}' root; \
  2342. "
  2343. .. note::
  2344. From a security perspective, hardcoding a default password is not
  2345. generally a good idea or even legal in some jurisdictions. It is
  2346. recommended that you do not do this if you are building a production
  2347. image.
  2348. Additionally there is a special ``passwd-expire`` command that will
  2349. cause the password for a user to be expired and thus force changing it
  2350. on first login, for example::
  2351. EXTRA_USERS_PARAMS += " useradd myuser; passwd-expire myuser;"
  2352. .. note::
  2353. At present, ``passwd-expire`` may only work for remote logins when
  2354. using OpenSSH and not dropbear as an SSH server.
  2355. :term:`EXTRANATIVEPATH`
  2356. A list of subdirectories of
  2357. ``${``\ :term:`STAGING_BINDIR_NATIVE`\ ``}``
  2358. added to the beginning of the environment variable ``PATH``. As an
  2359. example, the following prepends
  2360. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:" to
  2361. ``PATH``::
  2362. EXTRANATIVEPATH = "foo bar"
  2363. :term:`FAKEROOT`
  2364. See :term:`bitbake:FAKEROOT` in the BitBake manual.
  2365. :term:`FAKEROOTBASEENV`
  2366. See :term:`bitbake:FAKEROOTBASEENV` in the BitBake manual.
  2367. :term:`FAKEROOTCMD`
  2368. See :term:`bitbake:FAKEROOTCMD` in the BitBake manual.
  2369. :term:`FAKEROOTDIRS`
  2370. See :term:`bitbake:FAKEROOTDIRS` in the BitBake manual.
  2371. :term:`FAKEROOTENV`
  2372. See :term:`bitbake:FAKEROOTENV` in the BitBake manual.
  2373. :term:`FAKEROOTNOENV`
  2374. See :term:`bitbake:FAKEROOTNOENV` in the BitBake manual.
  2375. :term:`FC`
  2376. The minimal command and arguments used to run the Fortran compiler.
  2377. :term:`FEATURE_PACKAGES`
  2378. Defines one or more packages to include in an image when a specific
  2379. item is included in :term:`IMAGE_FEATURES`.
  2380. When setting the value, :term:`FEATURE_PACKAGES` should have the name of
  2381. the feature item as an override. Here is an example::
  2382. FEATURE_PACKAGES_widget = "package1 package2"
  2383. In this example, if "widget" were added to :term:`IMAGE_FEATURES`,
  2384. package1 and package2 would be included in the image.
  2385. .. note::
  2386. Packages installed by features defined through :term:`FEATURE_PACKAGES`
  2387. are often package groups. While similarly named, you should not
  2388. confuse the :term:`FEATURE_PACKAGES` variable with package groups, which
  2389. are discussed elsewhere in the documentation.
  2390. :term:`FEED_DEPLOYDIR_BASE_URI`
  2391. Points to the base URL of the server and location within the
  2392. document-root that provides the metadata and packages required by
  2393. OPKG to support runtime package management of IPK packages. You set
  2394. this variable in your ``local.conf`` file.
  2395. Consider the following example::
  2396. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  2397. This example assumes you are serving
  2398. your packages over HTTP and your databases are located in a directory
  2399. named ``BOARD-dir``, which is underneath your HTTP server's
  2400. document-root. In this case, the OpenEmbedded build system generates
  2401. a set of configuration files for you in your target that work with
  2402. the feed.
  2403. :term:`FETCHCMD`
  2404. See :term:`bitbake:FETCHCMD` in the BitBake manual.
  2405. :term:`FILE`
  2406. See :term:`bitbake:FILE` in the BitBake manual.
  2407. :term:`FILES`
  2408. The list of files and directories that are placed in a package. The
  2409. :term:`PACKAGES` variable lists the packages
  2410. generated by a recipe.
  2411. To use the :term:`FILES` variable, provide a package name override that
  2412. identifies the resulting package. Then, provide a space-separated
  2413. list of files or paths that identify the files you want included as
  2414. part of the resulting package. Here is an example::
  2415. FILES:${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  2416. .. note::
  2417. - When specifying files or paths, you can pattern match using
  2418. Python's
  2419. `glob <https://docs.python.org/3/library/glob.html>`__
  2420. syntax. For details on the syntax, see the documentation by
  2421. following the previous link.
  2422. - When specifying paths as part of the :term:`FILES` variable, it is
  2423. good practice to use appropriate path variables. For example,
  2424. use ``${sysconfdir}`` rather than ``/etc``, or ``${bindir}``
  2425. rather than ``/usr/bin``. You can find a list of these
  2426. variables at the top of the ``meta/conf/bitbake.conf`` file in
  2427. the :term:`Source Directory`. You will also
  2428. find the default values of the various ``FILES:*`` variables in
  2429. this file.
  2430. If some of the files you provide with the :term:`FILES` variable are
  2431. editable and you know they should not be overwritten during the
  2432. package update process by the Package Management System (PMS), you
  2433. can identify these files so that the PMS will not overwrite them. See
  2434. the :term:`CONFFILES` variable for information on
  2435. how to identify these files to the PMS.
  2436. :term:`FILES_SOLIBSDEV`
  2437. Defines the file specification to match
  2438. :term:`SOLIBSDEV`. In other words,
  2439. :term:`FILES_SOLIBSDEV` defines the full path name of the development
  2440. symbolic link (symlink) for shared libraries on the target platform.
  2441. The following statement from the ``bitbake.conf`` shows how it is
  2442. set::
  2443. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  2444. :term:`FILESEXTRAPATHS`
  2445. A colon-separated list to extend the search path the OpenEmbedded build
  2446. system uses when looking for files and patches as it processes recipes
  2447. and append files. The default directories BitBake uses when it processes
  2448. recipes are initially defined by the :term:`FILESPATH` variable. You can
  2449. extend :term:`FILESPATH` variable by using :term:`FILESEXTRAPATHS`.
  2450. Best practices dictate that you accomplish this by using
  2451. :term:`FILESEXTRAPATHS` from within a ``.bbappend`` file and that you
  2452. prepend paths as follows::
  2453. FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
  2454. In the above example, the build system first
  2455. looks for files in a directory that has the same name as the
  2456. corresponding append file.
  2457. .. note::
  2458. When extending :term:`FILESEXTRAPATHS`, be sure to use the immediate
  2459. expansion (``:=``) operator. Immediate expansion makes sure that
  2460. BitBake evaluates :term:`THISDIR` at the time the
  2461. directive is encountered rather than at some later time when
  2462. expansion might result in a directory that does not contain the
  2463. files you need.
  2464. Also, include the trailing separating colon character if you are
  2465. prepending. The trailing colon character is necessary because you
  2466. are directing BitBake to extend the path by prepending directories
  2467. to the search path.
  2468. Here is another common use::
  2469. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  2470. In this example, the build system extends the
  2471. :term:`FILESPATH` variable to include a directory named ``files`` that is
  2472. in the same directory as the corresponding append file.
  2473. This next example specifically adds three paths::
  2474. FILESEXTRAPATHS:prepend := "path_1:path_2:path_3:"
  2475. A final example shows how you can extend the search path and include
  2476. a :term:`MACHINE`-specific override, which is useful
  2477. in a BSP layer::
  2478. FILESEXTRAPATHS:prepend:intel-x86-common := "${THISDIR}/${PN}:"
  2479. The previous statement appears in the
  2480. ``linux-yocto-dev.bbappend`` file, which is found in the
  2481. :ref:`overview-manual/development-environment:yocto project source repositories` in
  2482. ``meta-intel/common/recipes-kernel/linux``. Here, the machine
  2483. override is a special :term:`PACKAGE_ARCH`
  2484. definition for multiple ``meta-intel`` machines.
  2485. .. note::
  2486. For a layer that supports a single BSP, the override could just be
  2487. the value of :term:`MACHINE`.
  2488. By prepending paths in ``.bbappend`` files, you allow multiple append
  2489. files that reside in different layers but are used for the same
  2490. recipe to correctly extend the path.
  2491. :term:`FILESOVERRIDES`
  2492. A colon-separated list to specify a subset of :term:`OVERRIDES` used by
  2493. the OpenEmbedded build system for creating :term:`FILESPATH`. The
  2494. :term:`FILESOVERRIDES` variable uses overrides to automatically extend
  2495. the :term:`FILESPATH` variable. For an example of how that works, see the
  2496. :term:`FILESPATH` variable description. Additionally, you find more
  2497. information on how overrides are handled in the
  2498. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  2499. section of the BitBake User Manual.
  2500. By default, the :term:`FILESOVERRIDES` variable is defined as::
  2501. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  2502. .. note::
  2503. Do not hand-edit the :term:`FILESOVERRIDES` variable. The values match up
  2504. with expected overrides and are used in an expected manner by the
  2505. build system.
  2506. :term:`FILESPATH`
  2507. A colon-separated list specifying the default set of directories the
  2508. OpenEmbedded build system uses when searching for patches and files.
  2509. During the build process, BitBake searches each directory in
  2510. :term:`FILESPATH` in the specified order when looking for files and
  2511. patches specified by each ``file://`` URI in a recipe's
  2512. :term:`SRC_URI` statements.
  2513. The default value for the :term:`FILESPATH` variable is defined in the
  2514. :ref:`ref-classes-base` class found in ``meta/classes-global`` in the
  2515. :term:`Source Directory`::
  2516. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  2517. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  2518. The
  2519. :term:`FILESPATH` variable is automatically extended using the overrides
  2520. from the :term:`FILESOVERRIDES` variable.
  2521. .. note::
  2522. - Do not hand-edit the :term:`FILESPATH` variable. If you want the
  2523. build system to look in directories other than the defaults,
  2524. extend the :term:`FILESPATH` variable by using the
  2525. :term:`FILESEXTRAPATHS` variable.
  2526. - Be aware that the default :term:`FILESPATH` directories do not map
  2527. to directories in custom layers where append files
  2528. (``.bbappend``) are used. If you want the build system to find
  2529. patches or files that reside with your append files, you need
  2530. to extend the :term:`FILESPATH` variable by using the
  2531. :term:`FILESEXTRAPATHS` variable.
  2532. You can take advantage of this searching behavior in useful ways. For
  2533. example, consider a case where there is the following directory structure
  2534. for general and machine-specific configurations::
  2535. files/defconfig
  2536. files/MACHINEA/defconfig
  2537. files/MACHINEB/defconfig
  2538. Also in the example, the :term:`SRC_URI` statement contains
  2539. "file://defconfig". Given this scenario, you can set
  2540. :term:`MACHINE` to "MACHINEA" and cause the build
  2541. system to use files from ``files/MACHINEA``. Set :term:`MACHINE` to
  2542. "MACHINEB" and the build system uses files from ``files/MACHINEB``.
  2543. Finally, for any machine other than "MACHINEA" and "MACHINEB", the
  2544. build system uses files from ``files/defconfig``.
  2545. You can find out more about the patching process in the
  2546. ":ref:`overview-manual/concepts:patching`" section
  2547. in the Yocto Project Overview and Concepts Manual and the
  2548. ":ref:`dev-manual/new-recipe:patching code`" section in
  2549. the Yocto Project Development Tasks Manual. See the
  2550. :ref:`ref-tasks-patch` task as well.
  2551. :term:`FILESYSTEM_PERMS_TABLES`
  2552. Allows you to define your own file permissions settings tables as part
  2553. of your configuration for the packaging process. For example, suppose
  2554. you need a consistent set of custom permissions for a set of groups
  2555. and users across an entire work project. It is best to do this in the
  2556. packages themselves but this is not always possible.
  2557. By default, the OpenEmbedded build system uses the ``fs-perms.txt``,
  2558. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` which are
  2559. located in the ``meta/files`` folder in the :term:`Source Directory`. If
  2560. you create your own permission setting table files, you should place
  2561. those in your layer.
  2562. You can override the value of :term:`FILESYSTEM_PERMS_TABLES` variable
  2563. in your distribution configuration file to point to your custom
  2564. permission table files. You can specify one or more file permissions
  2565. setting tables. The paths that you specify to these files must be defined
  2566. within the :term:`BBPATH` variable.
  2567. In order to disable the volatile log, which is enabled by default, one
  2568. can remove the ``files/fs-perms-volatile-log.txt`` value from
  2569. ``FILESYSTEM_PERMS_TABLES``. Similarly, in order to disable the volatile
  2570. tmp, one can remove the ``files/fs-perms-volatile-tmp.txt`` value.
  2571. For guidance on how to define your own file permissions settings
  2572. tables, examine the existing ``fs-perms.txt``,
  2573. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` files.
  2574. :term:`FIRMWARE_COMPRESSION`
  2575. The :term:`FIRMWARE_COMPRESSION` allows compressing the firmware provided
  2576. by the ``linux-firmware`` recipe. The default value of this variable is an
  2577. empty string (no compression), and the possible values it can take are
  2578. ``xz`` and ``zst``. This can allow significant disk space savings.
  2579. For this to work, the Linux Kernel requires the
  2580. ``CONFIG_FW_LOADER_COMPRESS_XZ`` or ``CONFIG_FW_LOADER_COMPRESS_ZSTD``
  2581. configuration options to be set.
  2582. :term:`FIT_ADDRESS_CELLS`
  2583. Specifies the value of the ``#address-cells`` value for the
  2584. description of the FIT image.
  2585. The default value is set to "1" by the :ref:`ref-classes-kernel-fit-image`
  2586. class, which corresponds to 32 bit addresses.
  2587. For platforms that need to set 64 bit addresses, for example in
  2588. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  2589. set this value to "2", as two 32 bit values (cells) will be needed
  2590. to represent such addresses.
  2591. Here is an example setting "0x400000000" as a load address::
  2592. FIT_ADDRESS_CELLS = "2"
  2593. UBOOT_LOADADDRESS = "0x04 0x00000000"
  2594. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  2595. :term:`FIT_CONF_DEFAULT_DTB`
  2596. Specifies the default device tree binary (dtb) file for a FIT image
  2597. when multiple ones are provided.
  2598. This variable is used in the :ref:`ref-classes-kernel-fit-image` class.
  2599. :term:`FIT_CONF_PREFIX`
  2600. When using the :ref:`ref-classes-kernel-fit-image`, this is the prefix
  2601. used for creating FIT configuration nodes. Its default value is "conf-".
  2602. :term:`FIT_DESC`
  2603. Specifies the description string encoded into a FIT image. The
  2604. default value is set by the :ref:`ref-classes-kernel-fit-image` class as
  2605. follows::
  2606. FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  2607. :term:`FIT_GENERATE_KEYS`
  2608. Decides whether to generate the keys for signing the FIT image if
  2609. they don't already exist. The keys are created in
  2610. :term:`UBOOT_SIGN_KEYDIR`. The default value is set to "0"
  2611. by the :ref:`ref-classes-kernel-fit-image` class.
  2612. :term:`FIT_HASH_ALG`
  2613. Specifies the hash algorithm used in creating the FIT Image.
  2614. This variable is set by default to "sha256" by the
  2615. :ref:`ref-classes-kernel-fit-image` class.
  2616. :term:`FIT_KERNEL_COMP_ALG`
  2617. The compression algorithm to use for the kernel image inside the FIT Image.
  2618. At present, the only supported values are "gzip" (default), "lzo" or "none".
  2619. If you set this variable to anything other than "none" you may also need
  2620. to set :term:`FIT_KERNEL_COMP_ALG_EXTENSION`.
  2621. This variable is used in the :ref:`ref-classes-kernel-uboot` class.
  2622. :term:`FIT_KERNEL_COMP_ALG_EXTENSION`
  2623. File extension corresponding to :term:`FIT_KERNEL_COMP_ALG`. The default
  2624. value is set ".gz" by the :ref:`ref-classes-kernel-uboot` class. If you
  2625. set :term:`FIT_KERNEL_COMP_ALG` to "lzo", you may want to set this
  2626. variable to ".lzo".
  2627. :term:`FIT_KEY_GENRSA_ARGS`
  2628. Arguments to ``openssl genrsa`` for generating a RSA private key for
  2629. signing the FIT image. The default value is set to "-F4" by the
  2630. :ref:`ref-classes-kernel-fit-image` class.
  2631. :term:`FIT_KEY_REQ_ARGS`
  2632. Arguments to ``openssl req`` for generating a certificate for signing
  2633. the FIT image. The default value is "-batch -new" by the
  2634. :ref:`ref-classes-kernel-fit-image` class, "batch" for
  2635. non interactive mode and "new" for generating new keys.
  2636. :term:`FIT_KEY_SIGN_PKCS`
  2637. Format for the public key certificate used for signing the FIT image.
  2638. The default value is set to "x509" by the
  2639. :ref:`ref-classes-kernel-fit-image` class.
  2640. :term:`FIT_PAD_ALG`
  2641. Specifies the padding algorithm used in creating the FIT Image.
  2642. The default value is set to "pkcs-1.5" by the
  2643. :ref:`ref-classes-kernel-fit-image` class.
  2644. :term:`FIT_SIGN_ALG`
  2645. Specifies the signature algorithm used in creating the FIT Image.
  2646. This variable is set by default to "rsa2048" by the
  2647. :ref:`ref-classes-kernel-fit-image` class.
  2648. :term:`FIT_SIGN_INDIVIDUAL`
  2649. If set to "1", the :ref:`ref-classes-kernel-fit-image` class signs each
  2650. image node individually, including the kernel, DTB, RAM disk, and any
  2651. other image types present in the FIT image, in addition to signing the
  2652. configuration nodes.
  2653. This can be useful if you need to verify signatures outside of the
  2654. U-Boot boot process. By default, this variable is set to "0".
  2655. If :term:`UBOOT_SIGN_ENABLE` is set to "1" and
  2656. :term:`FIT_SIGN_INDIVIDUAL` remains at its default value of "0", only the
  2657. configuration nodes are signed. Since configuration nodes include hashes
  2658. of their referenced image nodes, the integrity of the entire FIT image is
  2659. ensured as long as the image nodes are loaded via the configuration nodes
  2660. and the hashes of the image nodes are checked. That's usually the case.
  2661. Enabling :term:`FIT_SIGN_INDIVIDUAL` typically increases complexity for
  2662. little benefit. There might be exceptions such as image nodes that are
  2663. not referenced by any configuration node or loaded directly for whatever
  2664. reason.
  2665. For most use cases, setting this variable to "0" provides sufficient
  2666. security.
  2667. For further details, refer to the official U-Boot documentation:
  2668. `U-Boot fit signature <https://docs.u-boot.org/en/latest/usage/fit/signature.html>`__
  2669. and more specifically at:
  2670. `U-Boot signed configurations <https://docs.u-boot.org/en/latest/usage/fit/signature.html#signed-configurations>`__.
  2671. Signing only the image nodes is intentionally not implemented by
  2672. :term:`OpenEmbedded-Core (OE-Core)`, as it is vulnerable to mix-and-match
  2673. attacks.
  2674. :term:`FIT_SIGN_NUMBITS`
  2675. Size of the private key used in the FIT image, in number of bits.
  2676. The default value for this variable is set to "2048"
  2677. by the :ref:`ref-classes-kernel-fit-image` class.
  2678. :term:`FIT_UBOOT_ENV`
  2679. This variable allows to add a U-Boot script as a text file to the
  2680. FIT image. Such a script can be sourced from the U-Boot shell.
  2681. When inheriting the :ref:`ref-classes-kernel-fit-image` class a
  2682. script file should be included in the :term:`SRC_URI` of the Linux
  2683. kernel recipe.
  2684. Example:
  2685. - Add a script ``boot.cmd`` to the Linux kernel recipe::
  2686. FIT_UBOOT_ENV = "boot.cmd"
  2687. SRC_URI += "file://${FIT_UBOOT_ENV}"
  2688. - Use the script file from the U-Boot shell. The name of the script in
  2689. FIT image is ``bootscr-${FIT_UBOOT_ENV}``. This example loads the FIT
  2690. image from a TFTP server::
  2691. tftp $loadaddr $fit_tftp_path
  2692. source $loadaddr#bootscr-boot.cmd
  2693. More information can be found in the official U-Boot documentation:
  2694. `U-Boot source command <https://docs.u-boot.org/en/latest/usage/cmd/source.html#fit-image.f>`__
  2695. :term:`FONT_EXTRA_RDEPENDS`
  2696. When inheriting the :ref:`ref-classes-fontcache` class,
  2697. this variable specifies the runtime dependencies for font packages.
  2698. By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils".
  2699. :term:`FONT_PACKAGES`
  2700. When inheriting the :ref:`ref-classes-fontcache` class, this variable
  2701. identifies packages containing font files that need to be cached by
  2702. Fontconfig. By default, the :ref:`ref-classes-fontcache` class assumes
  2703. that fonts are in the recipe's main package (i.e.
  2704. ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you
  2705. need are in a package other than that main package.
  2706. :term:`FORCE_RO_REMOVE`
  2707. Forces the removal of the packages listed in ``ROOTFS_RO_UNNEEDED``
  2708. during the generation of the root filesystem.
  2709. Set the variable to "1" to force the removal of these packages.
  2710. :term:`FULL_OPTIMIZATION`
  2711. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  2712. compiling an optimized system. This variable defaults to "-O2 -pipe
  2713. ${DEBUG_FLAGS}".
  2714. :term:`GCCPIE`
  2715. Enables Position Independent Executables (PIE) within the GNU C
  2716. Compiler (GCC). Enabling PIE in the GCC makes Return Oriented
  2717. Programming (ROP) attacks much more difficult to execute.
  2718. By default the ``security_flags.inc`` file enables PIE by setting the
  2719. variable as follows::
  2720. GCCPIE ?= "--enable-default-pie"
  2721. :term:`GCCVERSION`
  2722. Specifies the default version of the GNU C Compiler (GCC) used for
  2723. compilation. By default, :term:`GCCVERSION` is set to "8.x" in the
  2724. ``meta/conf/distro/include/tcmode-default.inc`` include file::
  2725. GCCVERSION ?= "8.%"
  2726. You can override this value by setting it in a
  2727. configuration file such as the ``local.conf``.
  2728. :term:`GDB`
  2729. The minimal command and arguments to run the GNU Debugger.
  2730. :term:`GIR_EXTRA_LIBS_PATH`
  2731. Allows to specify an extra search path for ``.so`` files
  2732. in GLib related recipes using GObject introspection,
  2733. and which do not compile without this setting.
  2734. See the ":ref:`dev-manual/gobject-introspection:enabling gobject introspection support`"
  2735. section for details.
  2736. :term:`GITDIR`
  2737. The directory in which a local copy of a Git repository is stored
  2738. when it is cloned.
  2739. :term:`GITHUB_BASE_URI`
  2740. When inheriting the :ref:`ref-classes-github-releases`
  2741. class, specifies the base URL for fetching releases for the github
  2742. project you wish to fetch sources from. The default value is as follows::
  2743. GITHUB_BASE_URI ?= "https://github.com/${BPN}/${BPN}/releases/"
  2744. :term:`GLIBC_GENERATE_LOCALES`
  2745. Specifies the list of GLIBC locales to generate should you not wish
  2746. to generate all LIBC locals, which can be time consuming.
  2747. .. note::
  2748. If you specifically remove the locale ``en_US.UTF-8``, you must set
  2749. :term:`IMAGE_LINGUAS` appropriately.
  2750. You can set :term:`GLIBC_GENERATE_LOCALES` in your ``local.conf`` file.
  2751. By default, all locales are generated::
  2752. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  2753. :term:`GO_IMPORT`
  2754. When inheriting the :ref:`ref-classes-go` class, this mandatory variable
  2755. sets the import path for the Go package that will be created for the code
  2756. to build. If you have a ``go.mod`` file in the source directory, this
  2757. typically matches the path in the ``module`` line in this file.
  2758. Other Go programs importing this package will use this path.
  2759. Here is an example setting from the
  2760. :yocto_git:`go-helloworld_0.1.bb </poky/tree/meta/recipes-extended/go-examples/go-helloworld_0.1.bb>`
  2761. recipe::
  2762. GO_IMPORT = "golang.org/x/example"
  2763. :term:`GO_INSTALL`
  2764. When inheriting the :ref:`ref-classes-go` class, this optional variable
  2765. specifies which packages in the sources should be compiled and
  2766. installed in the Go build space by the
  2767. `go install <https://go.dev/ref/mod#go-install>`__ command.
  2768. Here is an example setting from the
  2769. :oe_git:`crucible </meta-openembedded/tree/meta-oe/recipes-support/crucible/>`
  2770. recipe::
  2771. GO_INSTALL = "\
  2772. ${GO_IMPORT}/cmd/crucible \
  2773. ${GO_IMPORT}/cmd/habtool \
  2774. "
  2775. By default, :term:`GO_INSTALL` is defined as::
  2776. GO_INSTALL ?= "${GO_IMPORT}/..."
  2777. The ``...`` wildcard means that it will catch all
  2778. packages found in the sources.
  2779. See the :term:`GO_INSTALL_FILTEROUT` variable for
  2780. filtering out unwanted packages from the ones
  2781. found from the :term:`GO_INSTALL` value.
  2782. :term:`GO_INSTALL_FILTEROUT`
  2783. When using the Go "vendor" mechanism to bring in dependencies for a Go
  2784. package, the default :term:`GO_INSTALL` setting, which uses the ``...``
  2785. wildcard, will include the vendored packages in the build, which produces
  2786. incorrect results.
  2787. There are also some Go packages that are structured poorly, so that the
  2788. ``...`` wildcard results in building example or test code that should not
  2789. be included in the build, or could fail to build.
  2790. This optional variable allows for filtering out a subset of the sources.
  2791. It defaults to excluding everything under the ``vendor`` subdirectory
  2792. under package's main directory. This is the normal location for vendored
  2793. packages, but it can be overridden by a recipe to filter out other
  2794. subdirectories if needed.
  2795. :term:`GO_WORKDIR`
  2796. When using Go Modules, the current working directory must be the directory
  2797. containing the ``go.mod`` file, or one of its subdirectories. When the
  2798. ``go`` tool is used, it will automatically look for the ``go.mod`` file
  2799. in the Go working directory or in any parent directory, but not in
  2800. subdirectories.
  2801. When using the :ref:`ref-classes-go-mod` class to use Go modules,
  2802. the optional :term:`GO_WORKDIR` variable, defaulting to the value
  2803. of :term:`GO_IMPORT`, allows to specify a different Go working directory.
  2804. :term:`GROUPADD_PARAM`
  2805. When inheriting the :ref:`ref-classes-useradd` class,
  2806. this variable specifies for a package what parameters should be
  2807. passed to the ``groupadd`` command if you wish to add a group to the
  2808. system when the package is installed.
  2809. Here is an example from the ``dbus`` recipe::
  2810. GROUPADD_PARAM:${PN} = "-r netdev"
  2811. More than one group can be added by separating each set of different
  2812. groups' parameters with a semicolon.
  2813. Here is an example adding multiple groups from the ``useradd-example.bb``
  2814. file in the ``meta-skeleton`` layer::
  2815. GROUPADD_PARAM:${PN} = "-g 880 group1; -g 890 group2"
  2816. For information on the standard Linux shell command
  2817. ``groupadd``, see https://linux.die.net/man/8/groupadd.
  2818. :term:`GROUPMEMS_PARAM`
  2819. When inheriting the :ref:`ref-classes-useradd` class,
  2820. this variable specifies for a package what parameters should be
  2821. passed to the ``groupmems`` command if you wish to modify the members
  2822. of a group when the package is installed.
  2823. For information on the standard Linux shell command ``groupmems``,
  2824. see https://linux.die.net/man/8/groupmems.
  2825. :term:`GRUB_GFXSERIAL`
  2826. Configures the GNU GRand Unified Bootloader (GRUB) to have graphics
  2827. and serial in the boot menu. Set this variable to "1" in your
  2828. ``local.conf`` or distribution configuration file to enable graphics
  2829. and serial in the menu.
  2830. See the :ref:`ref-classes-grub-efi` class for more
  2831. information on how this variable is used.
  2832. :term:`GRUB_MKIMAGE_OPTS`
  2833. This variable controls additional options passed to the ``grub-mkimage``
  2834. command in the GNU GRand Unified Bootloader (GRUB) recipe during the
  2835. ``do_mkimage`` task.
  2836. :term:`GRUB_OPTS`
  2837. Additional options to add to the GNU GRand Unified Bootloader (GRUB)
  2838. configuration. Use a semi-colon character (``;``) to separate
  2839. multiple options.
  2840. The :term:`GRUB_OPTS` variable is optional. See the
  2841. :ref:`ref-classes-grub-efi` class for more information
  2842. on how this variable is used.
  2843. :term:`GRUB_TIMEOUT`
  2844. Specifies the timeout before executing the default ``LABEL`` in the
  2845. GNU GRand Unified Bootloader (GRUB).
  2846. The :term:`GRUB_TIMEOUT` variable is optional. See the
  2847. :ref:`ref-classes-grub-efi` class for more information
  2848. on how this variable is used.
  2849. :term:`GRUB_TITLE`
  2850. Specifies custom titles for GRUB labels defined in :term:`LABELS`. See
  2851. the :ref:`ref-classes-grub-efi` class for more information on how this
  2852. variable is used.
  2853. :term:`GTKIMMODULES_PACKAGES`
  2854. When inheriting the :ref:`ref-classes-gtk-immodules-cache` class,
  2855. this variable specifies the packages that contain the GTK+ input
  2856. method modules being installed when the modules are in packages other
  2857. than the main package.
  2858. :term:`HGDIR`
  2859. See :term:`bitbake:HGDIR` in the BitBake manual.
  2860. :term:`HOMEPAGE`
  2861. Website where more information about the software the recipe is
  2862. building can be found.
  2863. :term:`HOST_ARCH`
  2864. The name of the target architecture, which is normally the same as
  2865. :term:`TARGET_ARCH`. The OpenEmbedded build system
  2866. supports many architectures. Here is an example list of architectures
  2867. supported. This list is by no means complete as the architecture is
  2868. configurable:
  2869. - arm
  2870. - i586
  2871. - x86_64
  2872. - powerpc
  2873. - powerpc64
  2874. - mips
  2875. - mipsel
  2876. :term:`HOST_AS_ARCH`
  2877. Specifies architecture-specific assembler flags.
  2878. Default initialization for :term:`HOST_AS_ARCH` varies depending on what
  2879. is being built:
  2880. - :term:`TARGET_AS_ARCH` when building for the
  2881. target
  2882. - :term:`BUILD_AS_ARCH` when building for the build host (i.e.
  2883. ``-native``)
  2884. - :term:`SDK_AS_ARCH` when building for an SDK (i.e. ``nativesdk-``)
  2885. :term:`HOST_CC_ARCH`
  2886. Specifies architecture-specific compiler flags that are passed to the
  2887. C compiler.
  2888. Default initialization for :term:`HOST_CC_ARCH` varies depending on what
  2889. is being built:
  2890. - :term:`TARGET_CC_ARCH` when building for the
  2891. target
  2892. - :term:`BUILD_CC_ARCH` when building for the build host (i.e.
  2893. ``-native``)
  2894. - :term:`SDK_CC_ARCH` when building for an SDK (i.e. ``nativesdk-``)
  2895. :term:`HOST_LD_ARCH`
  2896. Specifies architecture-specific linker flags.
  2897. Default initialization for :term:`HOST_LD_ARCH` varies depending on what
  2898. is being built:
  2899. - :term:`TARGET_LD_ARCH` when building for the target
  2900. - :term:`BUILD_LD_ARCH` when building for the build host (i.e.
  2901. ``-native``)
  2902. - :term:`SDK_LD_ARCH` when building for an SDK (i.e. ``nativesdk-``)
  2903. :term:`HOST_OS`
  2904. Specifies the name of the target operating system, which is normally
  2905. the same as the :term:`TARGET_OS`. The variable can
  2906. be set to "linux" for ``glibc``-based systems and to "linux-musl" for
  2907. ``musl``. For ARM/EABI targets, there are also "linux-gnueabi" and
  2908. "linux-musleabi" values possible.
  2909. :term:`HOST_PREFIX`
  2910. Specifies the prefix for the cross-compile toolchain. :term:`HOST_PREFIX`
  2911. is normally the same as :term:`TARGET_PREFIX`.
  2912. :term:`HOST_SYS`
  2913. Specifies the system, including the architecture and the operating
  2914. system, for which the build is occurring in the context of the
  2915. current recipe.
  2916. The OpenEmbedded build system automatically sets this variable based
  2917. on :term:`HOST_ARCH`,
  2918. :term:`HOST_VENDOR`, and
  2919. :term:`HOST_OS` variables.
  2920. .. note::
  2921. You do not need to set the variable yourself.
  2922. Consider these two examples:
  2923. - Given a native recipe on a 32-bit x86 machine running Linux, the
  2924. value is "i686-linux".
  2925. - Given a recipe being built for a little-endian MIPS target running
  2926. Linux, the value might be "mipsel-linux".
  2927. :term:`HOST_VENDOR`
  2928. Specifies the name of the vendor. :term:`HOST_VENDOR` is normally the
  2929. same as :term:`TARGET_VENDOR`.
  2930. :term:`HOSTTOOLS`
  2931. A space-separated list (filter) of tools on the build host that
  2932. should be allowed to be called from within build tasks. Using this
  2933. filter helps reduce the possibility of host contamination. If a tool
  2934. specified in the value of :term:`HOSTTOOLS` is not found on the build
  2935. host, the OpenEmbedded build system produces an error and the build
  2936. is not started.
  2937. For additional information, see
  2938. :term:`HOSTTOOLS_NONFATAL`.
  2939. :term:`HOSTTOOLS_NONFATAL`
  2940. A space-separated list (filter) of tools on the build host that
  2941. should be allowed to be called from within build tasks. Using this
  2942. filter helps reduce the possibility of host contamination. Unlike
  2943. :term:`HOSTTOOLS`, the OpenEmbedded build system
  2944. does not produce an error if a tool specified in the value of
  2945. :term:`HOSTTOOLS_NONFATAL` is not found on the build host. Thus, you can
  2946. use :term:`HOSTTOOLS_NONFATAL` to filter optional host tools.
  2947. :term:`IMAGE_BASENAME`
  2948. The base name of image output files. This variable defaults to the
  2949. recipe name (``${``\ :term:`PN`\ ``}``).
  2950. :term:`IMAGE_BOOT_FILES`
  2951. A space-separated list of files installed into the boot partition
  2952. when preparing an image using the Wic tool with the
  2953. ``bootimg_partition`` source plugin. By default,
  2954. the files are
  2955. installed under the same name as the source files. To change the
  2956. installed name, separate it from the original name with a semi-colon
  2957. (;). Source files need to be located in
  2958. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2959. examples::
  2960. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  2961. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  2962. Alternatively, source files can be picked up using a glob pattern. In
  2963. this case, the destination file must have the same name as the base
  2964. name of the source file path. To install files into a directory
  2965. within the target location, pass its name after a semi-colon (;).
  2966. Here are two examples::
  2967. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  2968. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  2969. The first example
  2970. installs all files from ``${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles``
  2971. into the root of the target partition. The second example installs
  2972. the same files into a ``boot`` directory within the target partition.
  2973. You can find information on how to use the Wic tool in the
  2974. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2975. section of the Yocto Project Development Tasks Manual. Reference
  2976. material for Wic is located in the
  2977. ":doc:`/ref-manual/kickstart`" chapter.
  2978. :term:`IMAGE_BUILDINFO_FILE`
  2979. When using the :ref:`ref-classes-image-buildinfo` class,
  2980. specifies the file in the image to write the build information into. The
  2981. default value is "``${sysconfdir}/buildinfo``".
  2982. :term:`IMAGE_BUILDINFO_VARS`
  2983. When using the :ref:`ref-classes-image-buildinfo` class,
  2984. specifies the list of variables to include in the `Build Configuration`
  2985. section of the output file (as a space-separated list). Defaults to
  2986. ":term:`DISTRO` :term:`DISTRO_VERSION`".
  2987. :term:`IMAGE_CLASSES`
  2988. A list of classes that all images should inherit. This is typically used
  2989. to enable functionality across all image recipes.
  2990. Classes specified in :term:`IMAGE_CLASSES` must be located in the
  2991. ``classes-recipe/`` or ``classes/`` subdirectories.
  2992. :term:`IMAGE_CMD`
  2993. Specifies the command to create the image file for a specific image
  2994. type, which corresponds to the value set in
  2995. :term:`IMAGE_FSTYPES`, (e.g. ``ext3``,
  2996. ``btrfs``, and so forth). When setting this variable, you should use
  2997. an override for the associated type. Here is an example::
  2998. IMAGE_CMD:jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
  2999. --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 \
  3000. ${EXTRA_IMAGECMD}"
  3001. You typically do not need to set this variable unless you are adding
  3002. support for a new image type. For more examples on how to set this
  3003. variable, see the :ref:`ref-classes-image_types`
  3004. class file, which is ``meta/classes-recipe/image_types.bbclass``.
  3005. :term:`IMAGE_DEVICE_TABLES`
  3006. Specifies one or more files that contain custom device tables that
  3007. are passed to the ``makedevs`` command as part of creating an image.
  3008. These files list basic device nodes that should be created under
  3009. ``/dev`` within the image. If :term:`IMAGE_DEVICE_TABLES` is not set,
  3010. ``files/device_table-minimal.txt`` is used, which is located by
  3011. :term:`BBPATH`. For details on how you should write
  3012. device table files, see ``meta/files/device_table-minimal.txt`` as an
  3013. example.
  3014. :term:`IMAGE_EFI_BOOT_FILES`
  3015. A space-separated list of files installed into the boot partition
  3016. when preparing an image using the Wic tool with the
  3017. ``bootimg_efi`` source plugin. By default,
  3018. the files are
  3019. installed under the same name as the source files. To change the
  3020. installed name, separate it from the original name with a semi-colon
  3021. (;). Source files need to be located in
  3022. :term:`DEPLOY_DIR_IMAGE`. Here are two
  3023. examples::
  3024. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE};bz2"
  3025. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE} microcode.cpio"
  3026. Alternatively, source files can be picked up using a glob pattern. In
  3027. this case, the destination file must have the same name as the base
  3028. name of the source file path. To install files into a directory
  3029. within the target location, pass its name after a semi-colon (;).
  3030. Here are two examples::
  3031. IMAGE_EFI_BOOT_FILES = "boot/loader/*"
  3032. IMAGE_EFI_BOOT_FILES = "boot/loader/*;boot/"
  3033. The first example
  3034. installs all files from ``${DEPLOY_DIR_IMAGE}/boot/loader/``
  3035. into the root of the target partition. The second example installs
  3036. the same files into a ``boot`` directory within the target partition.
  3037. You can find information on how to use the Wic tool in the
  3038. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  3039. section of the Yocto Project Development Tasks Manual. Reference
  3040. material for Wic is located in the
  3041. ":doc:`/ref-manual/kickstart`" chapter.
  3042. :term:`IMAGE_FEATURES`
  3043. The primary list of features to include in an image. Typically, you
  3044. configure this variable in an image recipe. Although you can use this
  3045. variable from your ``local.conf`` file, which is found in the
  3046. :term:`Build Directory`, best practices dictate that you do
  3047. not.
  3048. .. note::
  3049. To enable extra features from outside the image recipe, use the
  3050. :term:`EXTRA_IMAGE_FEATURES` variable.
  3051. For a list of image features that ships with the Yocto Project, see
  3052. the ":ref:`ref-features-image`" section.
  3053. For an example that shows how to customize your image by using this
  3054. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  3055. section in the Yocto Project Development Tasks Manual.
  3056. :term:`IMAGE_FSTYPES`
  3057. Specifies the formats the OpenEmbedded build system uses during the
  3058. build when creating the root filesystem. For example, setting
  3059. :term:`IMAGE_FSTYPES` as follows causes the build system to create root
  3060. filesystems using two formats: ``.ext3`` and ``.tar.bz2``::
  3061. IMAGE_FSTYPES = "ext3 tar.bz2"
  3062. For the complete list of supported image formats from which you can
  3063. choose, see :term:`IMAGE_TYPES`.
  3064. .. note::
  3065. - If an image recipe uses the "inherit image" line and you are
  3066. setting :term:`IMAGE_FSTYPES` inside the recipe, you must set
  3067. :term:`IMAGE_FSTYPES` prior to using the "inherit image" line.
  3068. - Due to the way the OpenEmbedded build system processes this
  3069. variable, you cannot update its contents by using ``:append``
  3070. or ``:prepend``. You must use the ``+=`` operator to add one or
  3071. more options to the :term:`IMAGE_FSTYPES` variable.
  3072. :term:`IMAGE_INSTALL`
  3073. Used by recipes to specify the packages to install into an image
  3074. through the :ref:`ref-classes-image` class. Use the
  3075. :term:`IMAGE_INSTALL` variable with care to avoid ordering issues.
  3076. Image recipes set :term:`IMAGE_INSTALL` to specify the packages to
  3077. install into an image through :ref:`ref-classes-image`. Additionally,
  3078. there are "helper" classes such as the :ref:`ref-classes-core-image`
  3079. class which can take lists used with :term:`IMAGE_FEATURES` and turn
  3080. them into auto-generated entries in :term:`IMAGE_INSTALL` in addition
  3081. to its default contents.
  3082. When you use this variable, it is best to use it as follows::
  3083. IMAGE_INSTALL:append = " package-name"
  3084. Be sure to include the space
  3085. between the quotation character and the start of the package name or
  3086. names.
  3087. .. note::
  3088. - When working with a
  3089. :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  3090. image, do not use the :term:`IMAGE_INSTALL` variable to specify
  3091. packages for installation. Instead, use the
  3092. :term:`PACKAGE_INSTALL` variable, which
  3093. allows the initial RAM filesystem (:term:`Initramfs`) recipe to use a
  3094. fixed set of packages and not be affected by :term:`IMAGE_INSTALL`.
  3095. For information on creating an :term:`Initramfs`, see the
  3096. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`"
  3097. section in the Yocto Project Development Tasks Manual.
  3098. - Using :term:`IMAGE_INSTALL` with the
  3099. :ref:`+= <bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>`
  3100. BitBake operator within the ``/conf/local.conf`` file or from
  3101. within an image recipe is not recommended. Use of this operator in
  3102. these ways can cause ordering issues. Since
  3103. :ref:`ref-classes-core-image` sets :term:`IMAGE_INSTALL` to a
  3104. default value using the
  3105. :ref:`?= <bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>`
  3106. operator, using a ``+=`` operation against :term:`IMAGE_INSTALL`
  3107. results in unexpected behavior when used within
  3108. ``conf/local.conf``. Furthermore, the same operation from within an
  3109. image recipe may or may not succeed depending on the specific
  3110. situation. In both these cases, the behavior is contrary to how
  3111. most users expect the ``+=`` operator to work.
  3112. :term:`IMAGE_LINGUAS`
  3113. Specifies the list of locales to install into the image during the
  3114. root filesystem construction process. The OpenEmbedded build system
  3115. automatically splits locale files, which are used for localization,
  3116. into separate packages. Setting the :term:`IMAGE_LINGUAS` variable
  3117. ensures that any locale packages that correspond to packages already
  3118. selected for installation into the image are also installed. Here is
  3119. an example::
  3120. IMAGE_LINGUAS = "pt-br de-de"
  3121. In this example, the build system ensures any Brazilian Portuguese
  3122. and German locale files that correspond to packages in the image are
  3123. installed (i.e. ``*-locale-pt-br`` and ``*-locale-de-de`` as well as
  3124. ``*-locale-pt`` and ``*-locale-de``, since some software packages
  3125. only provide locale files by language and not by country-specific
  3126. language).
  3127. See the :term:`GLIBC_GENERATE_LOCALES`
  3128. variable for information on generating GLIBC locales.
  3129. :term:`IMAGE_LINK_NAME`
  3130. The name of the output image symlink (which does not include
  3131. the version part as :term:`IMAGE_NAME` does). The default value
  3132. is derived using the :term:`IMAGE_BASENAME` and
  3133. :term:`IMAGE_MACHINE_SUFFIX` variables::
  3134. IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}"
  3135. .. note::
  3136. It is possible to set this to "" to disable symlink creation,
  3137. however, you also need to set :term:`IMAGE_NAME` to still have
  3138. a reasonable value e.g.::
  3139. IMAGE_LINK_NAME = ""
  3140. IMAGE_NAME = "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  3141. :term:`IMAGE_MACHINE_SUFFIX`
  3142. Specifies the by default machine-specific suffix for image file names
  3143. (before the extension). The default value is set as follows::
  3144. IMAGE_MACHINE_SUFFIX ??= "-${MACHINE}"
  3145. The default :term:`DEPLOY_DIR_IMAGE` already has a :term:`MACHINE`
  3146. subdirectory, so you may find it unnecessary to also include this suffix
  3147. in the name of every image file. If you prefer to remove the suffix you
  3148. can set this variable to an empty string::
  3149. IMAGE_MACHINE_SUFFIX = ""
  3150. (Not to be confused with :term:`IMAGE_NAME_SUFFIX`.)
  3151. :term:`IMAGE_MANIFEST`
  3152. The manifest file for the image. This file lists all the installed
  3153. packages that make up the image. The file contains package
  3154. information on a line-per-package basis as follows::
  3155. packagename packagearch version
  3156. The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class defines the manifest
  3157. file as follows::
  3158. IMAGE_MANIFEST = "${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
  3159. The location is
  3160. derived using the :term:`IMGDEPLOYDIR`
  3161. and :term:`IMAGE_NAME` variables. You can find
  3162. information on how the image is created in the ":ref:`overview-manual/concepts:image generation`"
  3163. section in the Yocto Project Overview and Concepts Manual.
  3164. :term:`IMAGE_NAME`
  3165. The name of the output image files minus the extension. By default
  3166. this variable is set using the :term:`IMAGE_LINK_NAME`, and
  3167. :term:`IMAGE_VERSION_SUFFIX` variables::
  3168. IMAGE_NAME ?= "${IMAGE_LINK_NAME}${IMAGE_VERSION_SUFFIX}"
  3169. :term:`IMAGE_NAME_SUFFIX`
  3170. Suffix used for the image output filename --- defaults to ``".rootfs"``
  3171. to distinguish the image file from other files created during image
  3172. building; however if this suffix is redundant or not desired you can
  3173. clear the value of this variable (set the value to ""). For example,
  3174. this is typically cleared in :term:`Initramfs` image recipes.
  3175. :term:`IMAGE_OUTPUT_MANIFEST`
  3176. When inheriting the :ref:`ref-classes-image` class directly or through the
  3177. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST`
  3178. points to a manifest ``json`` file that lists what images were created by
  3179. various image creation tasks (as defined by the :term:`IMAGE_FSTYPES`
  3180. variable). It is set in the :ref:`ref-classes-image` class as follows::
  3181. IMAGE_OUTPUT_MANIFEST = "${IMAGE_OUTPUT_MANIFEST_DIR}/manifest.json"
  3182. :term:`IMAGE_OUTPUT_MANIFEST_DIR`
  3183. When inheriting the :ref:`ref-classes-image` class directly or through the
  3184. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST_DIR` points to
  3185. a directory that stores a manifest ``json`` file that lists what
  3186. images were created by various image creation tasks (as defined by the
  3187. :term:`IMAGE_FSTYPES` variable). It is set in the :ref:`ref-classes-image`
  3188. class as follows::
  3189. IMAGE_OUTPUT_MANIFEST_DIR = "${WORKDIR}/deploy-image-output-manifest"
  3190. :term:`IMAGE_OVERHEAD_FACTOR`
  3191. Defines a multiplier that the build system applies to the initial
  3192. image size for cases when the multiplier times the returned disk
  3193. usage value for the image is greater than the sum of
  3194. :term:`IMAGE_ROOTFS_SIZE` and :term:`IMAGE_ROOTFS_EXTRA_SPACE`. The result of
  3195. the multiplier applied to the initial image size creates free disk
  3196. space in the image as overhead. By default, the build process uses a
  3197. multiplier of 1.3 for this variable. This default value results in
  3198. 30% free disk space added to the image when this method is used to
  3199. determine the final generated image size. You should be aware that
  3200. post install scripts and the package management system uses disk
  3201. space inside this overhead area. Consequently, the multiplier does
  3202. not produce an image with all the theoretical free disk space. See
  3203. :term:`IMAGE_ROOTFS_SIZE` for information on how the build system
  3204. determines the overall image size.
  3205. The default 30% free disk space typically gives the image enough room
  3206. to boot and allows for basic post installs while still leaving a
  3207. small amount of free disk space. If 30% free space is inadequate, you
  3208. can increase the default value. For example, the following setting
  3209. gives you 50% free space added to the image::
  3210. IMAGE_OVERHEAD_FACTOR = "1.5"
  3211. Alternatively, you can ensure a specific amount of free disk space is
  3212. added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3213. variable.
  3214. When using Wic tool, beware that a second overhead factor is also applied.
  3215. This overhead value is defined by the ``--overhead-factor`` option, which
  3216. defaults to "1.3" when omitted. See the
  3217. :ref:`ref-manual/kickstart:command: part or partition` chapter in
  3218. :doc:`/ref-manual/kickstart` for details.
  3219. :term:`IMAGE_PKGTYPE`
  3220. Defines the package type (i.e. DEB, RPM or IPK) used by the
  3221. OpenEmbedded build system. The variable is defined appropriately by
  3222. one of the :ref:`ref-classes-package_deb`, :ref:`ref-classes-package_rpm`,
  3223. or :ref:`ref-classes-package_ipk` classes.
  3224. The :ref:`ref-classes-populate-sdk-*` and :ref:`ref-classes-image`
  3225. classes use the :term:`IMAGE_PKGTYPE` for packaging images and SDKs.
  3226. You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the
  3227. variable is set indirectly through the appropriate
  3228. :ref:`package_* <ref-classes-package>` class using the
  3229. :term:`PACKAGE_CLASSES` variable. The
  3230. OpenEmbedded build system uses the first package type (e.g. DEB, RPM,
  3231. or IPK) that appears with the variable
  3232. :term:`IMAGE_POSTPROCESS_COMMAND`
  3233. Specifies a list of functions to call once the OpenEmbedded build
  3234. system creates the final image output files. You can specify
  3235. functions separated by spaces::
  3236. IMAGE_POSTPROCESS_COMMAND += "function"
  3237. If you need to pass the root filesystem path to a command within the
  3238. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3239. directory that becomes the root filesystem image. See the
  3240. :term:`IMAGE_ROOTFS` variable for more
  3241. information.
  3242. :term:`IMAGE_PREPROCESS_COMMAND`
  3243. Specifies a list of functions to call before the OpenEmbedded build
  3244. system creates the final image output files. You can specify
  3245. functions separated by spaces::
  3246. IMAGE_PREPROCESS_COMMAND += "function"
  3247. If you need to pass the root filesystem path to a command within the
  3248. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3249. directory that becomes the root filesystem image. See the
  3250. :term:`IMAGE_ROOTFS` variable for more
  3251. information.
  3252. :term:`IMAGE_ROOTFS`
  3253. The location of the root filesystem while it is under construction
  3254. (i.e. during the :ref:`ref-tasks-rootfs` task). This
  3255. variable is not configurable. Do not change it.
  3256. :term:`IMAGE_ROOTFS_ALIGNMENT`
  3257. Specifies the alignment for the output image file in Kbytes. If the
  3258. size of the image is not a multiple of this value, then the size is
  3259. rounded up to the nearest multiple of the value. The default value is
  3260. "1". See :term:`IMAGE_ROOTFS_SIZE` for
  3261. additional information.
  3262. :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3263. Defines additional free disk space created in the image in Kbytes. By
  3264. default, this variable is set to "0". This free disk space is added
  3265. to the image after the build system determines the image size as
  3266. described in :term:`IMAGE_ROOTFS_SIZE`.
  3267. This variable is particularly useful when you want to ensure that a
  3268. specific amount of free disk space is available on a device after an
  3269. image is installed and running. For example, to be sure 5 Gbytes of
  3270. free disk space is available, set the variable as follows::
  3271. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  3272. For example, the Yocto Project Build Appliance specifically requests
  3273. 40 Gbytes of extra space with the line::
  3274. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  3275. :term:`IMAGE_ROOTFS_MAXSIZE`
  3276. Defines the maximum allowed size of the generated image in kilobytes.
  3277. The build will fail if the generated image size exceeds this value.
  3278. The generated image size undergoes several calculation steps before being
  3279. compared to :term:`IMAGE_ROOTFS_MAXSIZE`.
  3280. In the first step, the size of the directory pointed to by :term:`IMAGE_ROOTFS`
  3281. is calculated.
  3282. In the second step, the result from the first step is multiplied
  3283. by :term:`IMAGE_OVERHEAD_FACTOR`.
  3284. In the third step, the result from the second step is compared with
  3285. :term:`IMAGE_ROOTFS_SIZE`. The larger value of these is added to
  3286. :term:`IMAGE_ROOTFS_EXTRA_SPACE`.
  3287. In the fourth step, the result from the third step is checked for
  3288. a decimal part. If it has one, it is rounded up to the next integer.
  3289. If it does not, it is simply converted into an integer.
  3290. In the fifth step, the :term:`IMAGE_ROOTFS_ALIGNMENT` is added to the result
  3291. from the fourth step and "1" is subtracted.
  3292. In the sixth step, the remainder of the division between the result
  3293. from the fifth step and :term:`IMAGE_ROOTFS_ALIGNMENT` is subtracted from the
  3294. result of the fifth step. In this way, the result from the fourth step is
  3295. rounded up to the nearest multiple of :term:`IMAGE_ROOTFS_ALIGNMENT`.
  3296. Thus, if the :term:`IMAGE_ROOTFS_MAXSIZE` is set, is compared with the result
  3297. of the above calculations and is independent of the final image type.
  3298. No default value is set for :term:`IMAGE_ROOTFS_MAXSIZE`.
  3299. It's a good idea to set this variable for images that need to fit on a limited
  3300. space (e.g. SD card, a fixed-size partition, ...).
  3301. :term:`IMAGE_ROOTFS_SIZE`
  3302. Defines the size in Kbytes for the generated image. The OpenEmbedded
  3303. build system determines the final size for the generated image using
  3304. an algorithm that takes into account the initial disk space used for
  3305. the generated image, a requested size for the image, and requested
  3306. additional free disk space to be added to the image. Programatically,
  3307. the build system determines the final size of the generated image as
  3308. follows::
  3309. if (image-du * overhead) < rootfs-size:
  3310. internal-rootfs-size = rootfs-size + xspace
  3311. else:
  3312. internal-rootfs-size = (image-du * overhead) + xspace
  3313. where:
  3314. image-du = Returned value of the du command on the image.
  3315. overhead = IMAGE_OVERHEAD_FACTOR
  3316. rootfs-size = IMAGE_ROOTFS_SIZE
  3317. internal-rootfs-size = Initial root filesystem size before any modifications.
  3318. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  3319. See the :term:`IMAGE_OVERHEAD_FACTOR`
  3320. and :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3321. variables for related information.
  3322. :term:`IMAGE_TYPEDEP`
  3323. Specifies a dependency from one image type on another. Here is an
  3324. example from the :ref:`ref-classes-image-live` class::
  3325. IMAGE_TYPEDEP:live = "ext3"
  3326. In the previous example, the variable ensures that when "live" is
  3327. listed with the :term:`IMAGE_FSTYPES` variable,
  3328. the OpenEmbedded build system produces an ``ext3`` image first since
  3329. one of the components of the live image is an ``ext3`` formatted
  3330. partition containing the root filesystem.
  3331. :term:`IMAGE_TYPES`
  3332. Specifies the complete list of supported image types by default:
  3333. - btrfs
  3334. - container
  3335. - cpio
  3336. - cpio.gz
  3337. - cpio.lz4
  3338. - cpio.lzma
  3339. - cpio.xz
  3340. - cramfs
  3341. - erofs
  3342. - erofs-lz4
  3343. - erofs-lz4hc
  3344. - ext2
  3345. - ext2.bz2
  3346. - ext2.gz
  3347. - ext2.lzma
  3348. - ext3
  3349. - ext3.gz
  3350. - ext4
  3351. - ext4.gz
  3352. - f2fs
  3353. - hddimg
  3354. - iso
  3355. - jffs2
  3356. - jffs2.sum
  3357. - multiubi
  3358. - squashfs
  3359. - squashfs-lz4
  3360. - squashfs-lzo
  3361. - squashfs-xz
  3362. - tar
  3363. - tar.bz2
  3364. - tar.gz
  3365. - tar.lz4
  3366. - tar.xz
  3367. - tar.zst
  3368. - ubi
  3369. - ubifs
  3370. - wic
  3371. - wic.bz2
  3372. - wic.gz
  3373. - wic.lzma
  3374. - wic.zst
  3375. For more information about these types of images, see
  3376. ``meta/classes-recipe/image_types*.bbclass`` in the :term:`Source Directory`.
  3377. :term:`IMAGE_VERSION_SUFFIX`
  3378. Version suffix that is part of the default :term:`IMAGE_NAME` and
  3379. :term:`KERNEL_ARTIFACT_NAME` values.
  3380. Defaults to ``"-${DATETIME}"``, however you could set this to a
  3381. version string that comes from your external build environment if
  3382. desired, and this suffix would then be used consistently across
  3383. the build artifacts.
  3384. :term:`IMGDEPLOYDIR`
  3385. When inheriting the :ref:`ref-classes-image` class directly or
  3386. through the :ref:`ref-classes-core-image` class, the
  3387. :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files
  3388. that is set in the ``image`` class as follows::
  3389. IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete"
  3390. Recipes inheriting the :ref:`ref-classes-image` class should copy
  3391. files to be deployed into :term:`IMGDEPLOYDIR`, and the class will take
  3392. care of copying them into :term:`DEPLOY_DIR_IMAGE` afterwards.
  3393. :term:`IMGMANIFESTDIR`
  3394. When inheriting the :ref:`ref-classes-image` class directly or through the
  3395. :ref:`ref-classes-core-image` class, the :term:`IMGMANIFESTDIR` setting
  3396. points to a temporary area that stores manifest ``json`` files, that list
  3397. what images were created by various images creation tasks (as defined by
  3398. the :term:`IMAGE_FSTYPES` variable). It is set in the
  3399. :ref:`ref-classes-image` class as follows::
  3400. IMGMANIFESTDIR = "${WORKDIR}/image-task-manifest"
  3401. :term:`INCOMPATIBLE_LICENSE`
  3402. Specifies a space-separated list of license names (as they would
  3403. appear in :term:`LICENSE`) that should be excluded
  3404. from the build (if set globally), or from an image (if set locally
  3405. in an image recipe).
  3406. When the variable is set globally, recipes that provide no alternatives to listed
  3407. incompatible licenses are not built. Packages that are individually
  3408. licensed with the specified incompatible licenses will be deleted.
  3409. Most of the time this does not allow a feasible build (because it becomes impossible
  3410. to satisfy build time dependencies), so the recommended way to
  3411. implement license restrictions is to set the variable in specific
  3412. image recipes where the restrictions must apply. That way there
  3413. are no build time restrictions, but the license check is still
  3414. performed when the image's filesystem is assembled from packages.
  3415. There is some support for wildcards in this variable's value,
  3416. however it is restricted to specific licenses. Currently only
  3417. these wildcards are allowed and expand as follows:
  3418. - ``AGPL-3.0*"``: ``AGPL-3.0-only``, ``AGPL-3.0-or-later``
  3419. - ``GPL-3.0*``: ``GPL-3.0-only``, ``GPL-3.0-or-later``
  3420. - ``LGPL-3.0*``: ``LGPL-3.0-only``, ``LGPL-3.0-or-later``
  3421. .. note::
  3422. This functionality is only regularly tested using the following
  3423. setting::
  3424. INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0* AGPL-3.0*"
  3425. Although you can use other settings, you might be required to
  3426. remove dependencies on (or provide alternatives to) components that
  3427. are required to produce a functional system image.
  3428. :term:`INCOMPATIBLE_LICENSE_EXCEPTIONS`
  3429. Specifies a space-separated list of package and license pairs that
  3430. are allowed to be used even if the license is specified in
  3431. :term:`INCOMPATIBLE_LICENSE`. The package and license pairs are
  3432. separated using a colon. Example::
  3433. INCOMPATIBLE_LICENSE_EXCEPTIONS = "gdbserver:GPL-3.0-only gdbserver:LGPL-3.0-only"
  3434. :term:`INHERIT`
  3435. Causes the named class or classes to be inherited globally. Anonymous
  3436. functions in the class or classes are not executed for the base
  3437. configuration and in each individual recipe. The OpenEmbedded build
  3438. system ignores changes to :term:`INHERIT` in individual recipes.
  3439. Classes inherited using :term:`INHERIT` must be located in the
  3440. ``classes-global/`` or ``classes/`` subdirectories.
  3441. For more information on :term:`INHERIT`, see the
  3442. :ref:`bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`"
  3443. section in the BitBake User Manual.
  3444. :term:`INHERIT_DISTRO`
  3445. Lists classes that will be inherited at the distribution level. It is
  3446. unlikely that you want to edit this variable.
  3447. Classes specified in :term:`INHERIT_DISTRO` must be located in the
  3448. ``classes-global/`` or ``classes/`` subdirectories.
  3449. The default value of the variable is set as follows in the
  3450. ``meta/conf/distro/defaultsetup.conf`` file::
  3451. INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool create-spdx"
  3452. :term:`INHIBIT_AUTOTOOLS_DEPS`
  3453. Prevents the :ref:`ref-classes-autotools` class from automatically adding
  3454. its default build-time dependencies.
  3455. When a recipe inherits the :ref:`ref-classes-autotools` class, several
  3456. native cross tools such as ``autoconf-native``, ``automake-native``,
  3457. ``libtool-native``, ``libtool-cross`` are added to :term:`DEPENDS` to
  3458. support the ``autotools`` build process.
  3459. To prevent the build system from adding these dependencies automatically,
  3460. set the :term:`INHIBIT_AUTOTOOLS_DEPS` variable as follows::
  3461. INHIBIT_AUTOTOOLS_DEPS = "1"
  3462. By default, the value of :term:`INHIBIT_AUTOTOOLS_DEPS` is empty. Setting
  3463. it to "0" does not disable inhibition. Only the empty string will disable
  3464. inhibition.
  3465. :term:`INHIBIT_DEFAULT_DEPS`
  3466. Prevents the default dependencies, namely the C compiler and standard
  3467. C library (libc), from being added to :term:`DEPENDS`.
  3468. This variable is usually used within recipes that do not require any
  3469. compilation using the C compiler.
  3470. Set the variable to "1" to prevent the default dependencies from
  3471. being added.
  3472. :term:`INHIBIT_DEFAULT_RUST_DEPS`
  3473. Prevents the :ref:`ref-classes-rust` class from automatically adding
  3474. its default build-time dependencies.
  3475. When a recipe inherits the :ref:`ref-classes-rust` class, several
  3476. tools such as ``rust-native`` and ``${RUSTLIB_DEP}`` (only added when cross-compiling) are added
  3477. to :term:`DEPENDS` to support the ``rust`` build process.
  3478. To prevent the build system from adding these dependencies automatically,
  3479. set the :term:`INHIBIT_DEFAULT_RUST_DEPS` variable as follows::
  3480. INHIBIT_DEFAULT_RUST_DEPS = "1"
  3481. By default, the value of :term:`INHIBIT_DEFAULT_RUST_DEPS` is empty. Setting
  3482. it to "0" does not disable inhibition. Only the empty string will disable
  3483. inhibition.
  3484. :term:`INHIBIT_PACKAGE_DEBUG_SPLIT`
  3485. Prevents the OpenEmbedded build system from splitting out debug
  3486. information during packaging. By default, the build system splits out
  3487. debugging information during the
  3488. :ref:`ref-tasks-package` task. For more information on
  3489. how debug information is split out, see the
  3490. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  3491. variable.
  3492. To prevent the build system from splitting out debug information
  3493. during packaging, set the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable as
  3494. follows::
  3495. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  3496. :term:`INHIBIT_PACKAGE_STRIP`
  3497. If set to "1", causes the build to not strip binaries in resulting
  3498. packages and prevents the ``-dbg`` package from containing the source
  3499. files.
  3500. By default, the OpenEmbedded build system strips binaries and puts
  3501. the debugging symbols into ``${``\ :term:`PN`\ ``}-dbg``.
  3502. Consequently, you should not set :term:`INHIBIT_PACKAGE_STRIP` when you
  3503. plan to debug in general.
  3504. :term:`INHIBIT_SYSROOT_STRIP`
  3505. If set to "1", causes the build to not strip binaries in the
  3506. resulting sysroot.
  3507. By default, the OpenEmbedded build system strips binaries in the
  3508. resulting sysroot. When you specifically set the
  3509. :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit
  3510. this stripping.
  3511. If you want to use this variable, include the :ref:`ref-classes-staging`
  3512. class. This class uses a ``sys_strip()`` function to test for the variable
  3513. and acts accordingly.
  3514. .. note::
  3515. Use of the :term:`INHIBIT_SYSROOT_STRIP` variable occurs in rare and
  3516. special circumstances. For example, suppose you are building
  3517. bare-metal firmware by using an external GCC toolchain. Furthermore,
  3518. even if the toolchain's binaries are strippable, there are other files
  3519. needed for the build that are not strippable.
  3520. :term:`INHIBIT_UPDATERCD_BBCLASS`
  3521. Prevents the :ref:`ref-classes-update-rc.d` class from automatically
  3522. installing and registering SysV init scripts for packages.
  3523. When a recipe inherits the :ref:`ref-classes-update-rc.d` class, init
  3524. scripts are typically installed and registered for the packages listed in
  3525. :term:`INITSCRIPT_PACKAGES`. This ensures that the relevant
  3526. services are started and stopped at the appropriate runlevels using the
  3527. traditional SysV init system.
  3528. To prevent the build system from adding these scripts and configurations
  3529. automatically, set the :term:`INHIBIT_UPDATERCD_BBCLASS` variable as follows::
  3530. INHIBIT_UPDATERCD_BBCLASS = "1"
  3531. By default, the value of :term:`INHIBIT_UPDATERCD_BBCLASS` is empty. Setting
  3532. it to "0" does not disable inhibition. Only the empty string will disable
  3533. inhibition.
  3534. :term:`INIT_MANAGER`
  3535. Specifies the system init manager to use. Available options are:
  3536. - ``sysvinit``
  3537. - ``systemd``
  3538. - ``mdev-busybox``
  3539. With ``sysvinit``, the init manager is set to
  3540. :wikipedia:`SysVinit <Init#SysV-style>`, the traditional UNIX init
  3541. system. This is the default choice in the Poky distribution, together with
  3542. the Udev device manager (see the ":ref:`device-manager`" section).
  3543. With ``systemd``, the init manager becomes :wikipedia:`systemd <Systemd>`,
  3544. which comes with the :wikipedia:`udev <Udev>` device manager.
  3545. With ``mdev-busybox``, the init manager becomes the much simpler BusyBox
  3546. init, together with the BusyBox mdev device manager. This is the simplest
  3547. and lightest solution, and probably the best choice for low-end systems
  3548. with a rather slow CPU and a limited amount of RAM.
  3549. More concretely, this is used to include
  3550. ``conf/distro/include/init-manager-${INIT_MANAGER}.inc`` into the global
  3551. configuration. You can have a look at the
  3552. :yocto_git:`meta/conf/distro/include/init-manager-*.inc </poky/tree/meta/conf/distro/include>`
  3553. files for more information, and also the ":ref:`init-manager`"
  3554. section in the Yocto Project Development Tasks Manual.
  3555. :term:`INITRAMFS_DEPLOY_DIR_IMAGE`
  3556. Indicates the deploy directory used by :ref:`ref-tasks-bundle_initramfs`
  3557. where the :term:`INITRAMFS_IMAGE` will be fetched from. This variable is
  3558. set by default to ``${DEPLOY_DIR_IMAGE}`` in the
  3559. :ref:`ref-classes-kernel` class and it's only meant to be changed when
  3560. building an :term:`Initramfs` image from a separate multiconfig via
  3561. :term:`INITRAMFS_MULTICONFIG`.
  3562. :term:`INITRAMFS_FSTYPES`
  3563. Defines the format for the output image of an initial RAM filesystem
  3564. (:term:`Initramfs`), which is used during boot. Supported formats are the
  3565. same as those supported by the
  3566. :term:`IMAGE_FSTYPES` variable.
  3567. The default value of this variable, which is set in the
  3568. ``meta/conf/bitbake.conf`` configuration file in the
  3569. :term:`Source Directory`, is "cpio.gz". The Linux kernel's
  3570. :term:`Initramfs` mechanism, as opposed to the initial RAM filesystem
  3571. :wikipedia:`initrd <Initrd>` mechanism, expects
  3572. an optionally compressed cpio archive.
  3573. :term:`INITRAMFS_IMAGE`
  3574. Specifies the :term:`PROVIDES` name of an image
  3575. recipe that is used to build an initial RAM filesystem (:term:`Initramfs`)
  3576. image. In other words, the :term:`INITRAMFS_IMAGE` variable causes an
  3577. additional recipe to be built as a dependency to whatever root
  3578. filesystem recipe you might be using (e.g. ``core-image-sato``). The
  3579. :term:`Initramfs` image recipe you provide should set
  3580. :term:`IMAGE_FSTYPES` to
  3581. :term:`INITRAMFS_FSTYPES`.
  3582. An :term:`Initramfs` image provides a temporary root filesystem used for
  3583. early system initialization (e.g. loading of modules needed to locate
  3584. and mount the "real" root filesystem).
  3585. .. note::
  3586. See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb``
  3587. recipe in the :term:`Source Directory`
  3588. for an example :term:`Initramfs` recipe. To select this sample recipe as
  3589. the one built to provide the :term:`Initramfs` image, set :term:`INITRAMFS_IMAGE`
  3590. to "core-image-minimal-initramfs".
  3591. You can also find more information by referencing the
  3592. ``meta-poky/conf/templates/default/local.conf.sample.extended``
  3593. configuration file in the Source Directory, the :ref:`ref-classes-image`
  3594. class, and the :ref:`ref-classes-kernel` class to see how to use the
  3595. :term:`INITRAMFS_IMAGE` variable.
  3596. If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no
  3597. :term:`Initramfs` image is built.
  3598. For more information, you can also see the
  3599. :term:`INITRAMFS_IMAGE_BUNDLE`
  3600. variable, which allows the generated image to be bundled inside the
  3601. kernel image. Additionally, for information on creating an :term:`Initramfs`
  3602. image, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3603. in the Yocto Project Development Tasks Manual.
  3604. :term:`INITRAMFS_IMAGE_BUNDLE`
  3605. Controls whether or not the image recipe specified by
  3606. :term:`INITRAMFS_IMAGE` is run through an
  3607. extra pass
  3608. (:ref:`ref-tasks-bundle_initramfs`) during
  3609. kernel compilation in order to build a single binary that contains
  3610. both the kernel image and the initial RAM filesystem (:term:`Initramfs`)
  3611. image. This makes use of the
  3612. :term:`CONFIG_INITRAMFS_SOURCE` kernel
  3613. feature.
  3614. .. note::
  3615. Bundling the :term:`Initramfs` with the kernel conflates the code in the
  3616. :term:`Initramfs` with the GPLv2 licensed Linux kernel binary. Thus only GPLv2
  3617. compatible software may be part of a bundled :term:`Initramfs`.
  3618. .. note::
  3619. Using an extra compilation pass to bundle the :term:`Initramfs` avoids a
  3620. circular dependency between the kernel recipe and the :term:`Initramfs`
  3621. recipe should the :term:`Initramfs` include kernel modules. Should that be
  3622. the case, the :term:`Initramfs` recipe depends on the kernel for the
  3623. kernel modules, and the kernel depends on the :term:`Initramfs` recipe
  3624. since the :term:`Initramfs` is bundled inside the kernel image.
  3625. The combined binary is deposited into the ``tmp/deploy`` directory,
  3626. which is part of the :term:`Build Directory`.
  3627. Setting the variable to "1" in a configuration file causes the
  3628. OpenEmbedded build system to generate a kernel image with the
  3629. :term:`Initramfs` specified in :term:`INITRAMFS_IMAGE` bundled within::
  3630. INITRAMFS_IMAGE_BUNDLE = "1"
  3631. By default, the :ref:`ref-classes-kernel` class sets this variable to a
  3632. null string as follows::
  3633. INITRAMFS_IMAGE_BUNDLE ?= ""
  3634. .. note::
  3635. You must set the :term:`INITRAMFS_IMAGE_BUNDLE` variable in a
  3636. configuration file. You cannot set the variable in a recipe file.
  3637. See the
  3638. :yocto_git:`local.conf.sample.extended </poky/tree/meta-poky/conf/templates/default/local.conf.sample.extended>`
  3639. file for additional information. Also, for information on creating an
  3640. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3641. in the Yocto Project Development Tasks Manual.
  3642. :term:`INITRAMFS_IMAGE_NAME`
  3643. This value needs to stay in sync with :term:`IMAGE_LINK_NAME`, but with
  3644. :term:`INITRAMFS_IMAGE` instead of :term:`IMAGE_BASENAME`. The default value
  3645. is set as follows:
  3646. INITRAMFS_IMAGE_NAME ?= "${@['${INITRAMFS_IMAGE}${IMAGE_MACHINE_SUFFIX}', ''][d.getVar('INITRAMFS_IMAGE') == '']}"
  3647. That is, if :term:`INITRAMFS_IMAGE` is set, the value of
  3648. :term:`INITRAMFS_IMAGE_NAME` will be set based upon
  3649. :term:`INITRAMFS_IMAGE` and :term:`IMAGE_MACHINE_SUFFIX`.
  3650. :term:`INITRAMFS_LINK_NAME`
  3651. The link name of the initial RAM filesystem image. This variable is
  3652. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3653. follows::
  3654. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  3655. The value of the
  3656. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3657. file, has the following value::
  3658. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3659. See the :term:`MACHINE` variable for additional
  3660. information.
  3661. :term:`INITRAMFS_MAXSIZE`
  3662. Defines the maximum allowed size of the :term:`Initramfs` image in Kbytes.
  3663. The build will fail if the :term:`Initramfs` image size exceeds this value.
  3664. The :term:`Initramfs` image size undergoes several calculation steps before
  3665. being compared to :term:`INITRAMFS_MAXSIZE`.
  3666. These steps are the same as those used for :term:`IMAGE_ROOTFS_MAXSIZE`
  3667. and are described in detail in that entry.
  3668. Thus, :term:`INITRAMFS_MAXSIZE` is compared with the result of the calculations
  3669. and is independent of the final image type (e.g. compressed).
  3670. A default value for :term:`INITRAMFS_MAXSIZE` is set in
  3671. :oe_git:`meta/conf/bitbake.conf </openembedded-core/tree/meta/conf/bitbake.conf>`.
  3672. :term:`INITRAMFS_MULTICONFIG`
  3673. Defines the multiconfig to create a multiconfig dependency to be used by
  3674. the :ref:`ref-classes-kernel` class.
  3675. This allows the kernel to bundle an :term:`INITRAMFS_IMAGE` coming from
  3676. a separate multiconfig, this is meant to be used in addition to :term:`INITRAMFS_DEPLOY_DIR_IMAGE`.
  3677. For more information on how to bundle an :term:`Initramfs` image from a separate
  3678. multiconfig see the ":ref:`dev-manual/building:Bundling an Initramfs Image From a Separate Multiconfig`"
  3679. section in the Yocto Project Development Tasks Manual.
  3680. :term:`INITRAMFS_NAME`
  3681. The base name of the initial RAM filesystem image. This variable is
  3682. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3683. follows::
  3684. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  3685. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3686. :term:`INITRD`
  3687. Indicates list of filesystem images to concatenate and use as an
  3688. initial RAM disk (``initrd``).
  3689. The :term:`INITRD` variable is an optional variable used with the
  3690. :ref:`ref-classes-image-live` class.
  3691. :term:`INITRD_IMAGE`
  3692. When building a "live" bootable image (i.e. when
  3693. :term:`IMAGE_FSTYPES` contains "live"),
  3694. :term:`INITRD_IMAGE` specifies the image recipe that should be built to
  3695. provide the initial RAM disk image. The default value is
  3696. "core-image-minimal-initramfs".
  3697. See the :ref:`ref-classes-image-live` class for more information.
  3698. :term:`INITSCRIPT_NAME`
  3699. The filename of the initialization script as installed to
  3700. ``${sysconfdir}/init.d``.
  3701. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3702. The variable is mandatory.
  3703. :term:`INITSCRIPT_PACKAGES`
  3704. A list of the packages that contain initscripts. If multiple packages
  3705. are specified, you need to append the package name to the other
  3706. ``INITSCRIPT_*`` as an override.
  3707. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3708. The variable is optional and defaults to the :term:`PN`
  3709. variable.
  3710. :term:`INITSCRIPT_PARAMS`
  3711. Specifies the options to pass to ``update-rc.d``. Here is an example::
  3712. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  3713. In this example, the script has a runlevel of 99, starts the script
  3714. in initlevels 2 and 5, and stops the script in levels 0, 1 and 6.
  3715. The variable's default value is "defaults", which is set in the
  3716. :ref:`ref-classes-update-rc.d` class.
  3717. The value in :term:`INITSCRIPT_PARAMS` is passed through to the
  3718. ``update-rc.d`` command. For more information on valid parameters,
  3719. please see the manual page: :manpage:`update-rc.d <update-rc.d(8)>`.
  3720. :term:`INSANE_SKIP`
  3721. Specifies the QA checks to skip for a specific package within a
  3722. recipe. For example, to skip the check for symbolic link ``.so``
  3723. files in the main package of a recipe, add the following to the
  3724. recipe. The package name override must be used, which in this example
  3725. is ``${PN}``::
  3726. INSANE_SKIP:${PN} += "dev-so"
  3727. See the ":ref:`ref-classes-insane`" section for a
  3728. list of the valid QA checks you can specify using this variable.
  3729. :term:`INSTALL_TIMEZONE_FILE`
  3730. By default, the ``tzdata`` recipe packages an ``/etc/timezone`` file.
  3731. Set the :term:`INSTALL_TIMEZONE_FILE` variable to "0" at the
  3732. configuration level to disable this behavior.
  3733. :term:`IPK_FEED_URIS`
  3734. When the IPK backend is in use and package management is enabled on
  3735. the target, you can use this variable to set up ``opkg`` in the
  3736. target image to point to package feeds on a nominated server. Once
  3737. the feed is established, you can perform installations or upgrades
  3738. using the package manager at runtime.
  3739. :term:`KARCH`
  3740. Defines the kernel architecture used when assembling the
  3741. configuration. Architectures supported for this release are:
  3742. - powerpc
  3743. - i386
  3744. - x86_64
  3745. - arm
  3746. - qemu
  3747. - mips
  3748. You define the :term:`KARCH` variable in the :ref:`kernel-dev/advanced:bsp descriptions`.
  3749. :term:`KBRANCH`
  3750. A regular expression used by the build process to explicitly identify
  3751. the kernel branch that is validated, patched, and configured during a
  3752. build. You must set this variable to ensure the exact kernel branch
  3753. you want is being used by the build process.
  3754. Values for this variable are set in the kernel's recipe file and the
  3755. kernel's append file. For example, if you are using the
  3756. ``linux-yocto_4.12`` kernel, the kernel recipe file is the
  3757. ``meta/recipes-kernel/linux/linux-yocto_4.12.bb`` file. :term:`KBRANCH`
  3758. is set as follows in that kernel recipe file::
  3759. KBRANCH ?= "standard/base"
  3760. This variable is also used from the kernel's append file to identify
  3761. the kernel branch specific to a particular machine or target
  3762. hardware. Continuing with the previous kernel example, the kernel's
  3763. append file is located in the
  3764. BSP layer for a given machine. For example, the append file for the
  3765. Beaglebone and generic versions of both 32 and 64-bit IA
  3766. machines (``meta-yocto-bsp``) is named
  3767. ``meta-yocto-bsp/recipes-kernel/linux/linux-yocto_6.1.bbappend``.
  3768. Here are the related statements from that append file::
  3769. KBRANCH:genericx86 = "v6.1/standard/base"
  3770. KBRANCH:genericx86-64 = "v6.1/standard/base"
  3771. KBRANCH:beaglebone-yocto = "v6.1/standard/beaglebone"
  3772. The :term:`KBRANCH` statements
  3773. identify the kernel branch to use when building for each supported
  3774. BSP.
  3775. :term:`KBUILD_DEFCONFIG`
  3776. When used with the :ref:`ref-classes-kernel-yocto`
  3777. class, specifies an "in-tree" kernel configuration file for use
  3778. during a kernel build.
  3779. Typically, when using a ``defconfig`` to configure a kernel during a
  3780. build, you place the file in your layer in the same manner as you
  3781. would place patch files and configuration fragment files (i.e.
  3782. "out-of-tree"). However, if you want to use a ``defconfig`` file that
  3783. is part of the kernel tree (i.e. "in-tree"), you can use the
  3784. :term:`KBUILD_DEFCONFIG` variable to point to the
  3785. ``defconfig`` file.
  3786. To use the variable, set it in the append file for your kernel recipe
  3787. using the following form::
  3788. KBUILD_DEFCONFIG:<machine> ?= "defconfig_file"
  3789. Here is an example from a "raspberrypi2" :term:`MACHINE` build that uses
  3790. a ``defconfig`` file named "bcm2709_defconfig"::
  3791. KBUILD_DEFCONFIG:raspberrypi2 = "bcm2709_defconfig"
  3792. As an alternative, you can use the following within your append file::
  3793. KBUILD_DEFCONFIG:pn-linux-yocto ?= "defconfig_file"
  3794. For more
  3795. information on how to use the :term:`KBUILD_DEFCONFIG` variable, see the
  3796. ":ref:`kernel-dev/common:using an "in-tree" \`\`defconfig\`\` file`"
  3797. section in the Yocto Project Linux Kernel Development Manual.
  3798. :term:`KCONF_AUDIT_LEVEL`
  3799. When inheriting the :ref:`ref-classes-kernel-yocto` class and when the
  3800. :term:`KMETA_AUDIT` variable is set to a non-empty string, the
  3801. :term:`KCONF_AUDIT_LEVEL` variable specifies whether to report Kernel
  3802. configuration values that are different from the user-specified value. Its
  3803. value is a positive integer (default: 1):
  3804. - 0: no reporting is done.
  3805. - 1: report the problems as warnings and trigger an error if
  3806. :term:`KMETA_AUDIT_WERROR` is set.
  3807. - 2: if the :ref:`ref-tasks-kernel_configme` has failed to generate a
  3808. ``.config`` file, print the content of the ``merge_config_build.log``
  3809. file containing the errors, instead of just providing the path to
  3810. that file.
  3811. For more details see the :ref:`ref-classes-kernel-yocto` class and the
  3812. :yocto_git:`symbol_why.py </yocto-kernel-tools/tree/tools/symbol_why.py>`
  3813. script in :yocto_git:`yocto-kernel-tools </yocto-kernel-tools>`.
  3814. :term:`KCONF_BSP_AUDIT_LEVEL`
  3815. When inheriting the :ref:`ref-classes-kernel-yocto` class and when the
  3816. :term:`KMETA_AUDIT` variable is set to a non-empty string, the
  3817. :term:`KCONF_BSP_AUDIT_LEVEL` variable can be set to report:
  3818. #. User-specified Kernel configurations that did not make it into the final
  3819. Kernel configuration.
  3820. #. Configurations defined in multiple input files with differing values.
  3821. Its value is a positive integer (default: 0):
  3822. - 0: no reporting is done.
  3823. - 1: reporting of configuration options that did not make it in the
  3824. final configuration is done and is not limited to the current
  3825. architecture (``ARCH``) in use.
  3826. - 2: reporting of configuration options that did not make it in the
  3827. final configuration is done and is strictly limited to the current
  3828. architecture (``ARCH``) in use.
  3829. - 3: report the problems found when this variable equals 2, and also
  3830. report configurations options defined in multiple input files with
  3831. differing values.
  3832. For value 1, 2 and 3 an error is produced if :term:`KMETA_AUDIT_WERROR`
  3833. is set.
  3834. For more details see the :ref:`ref-classes-kernel-yocto` class and the
  3835. :yocto_git:`symbol_why.py </yocto-kernel-tools/tree/tools/symbol_why.py>`
  3836. script in :yocto_git:`yocto-kernel-tools </yocto-kernel-tools>`.
  3837. :term:`KCONFIG_MODE`
  3838. When used with the :ref:`ref-classes-kernel-yocto`
  3839. class, specifies the kernel configuration values to use for options
  3840. not specified in the provided ``defconfig`` file. Valid options are::
  3841. KCONFIG_MODE = "alldefconfig"
  3842. KCONFIG_MODE = "allnoconfig"
  3843. In ``alldefconfig`` mode the options not explicitly specified will be
  3844. assigned their Kconfig default value. In ``allnoconfig`` mode the
  3845. options not explicitly specified will be disabled in the kernel
  3846. config.
  3847. In case :term:`KCONFIG_MODE` is not set the ``defconfig`` file
  3848. will be handled in ``allnoconfig`` mode.
  3849. A ``defconfig`` file compatible with ``allnoconfig`` mode can be
  3850. generated by copying the ``.config`` file from a working Linux kernel
  3851. build, renaming it to ``defconfig`` and placing it into the Linux
  3852. kernel ``${WORKDIR}`` through your meta-layer. :term:`KCONFIG_MODE` does
  3853. not need to be explicitly set.
  3854. A ``defconfig`` file compatible with ``alldefconfig`` mode can be
  3855. generated using the
  3856. :ref:`ref-tasks-savedefconfig`
  3857. task and placed into the Linux kernel ``${WORKDIR}`` through your
  3858. meta-layer. Explicitely set :term:`KCONFIG_MODE`::
  3859. KCONFIG_MODE = "alldefconfig"
  3860. :term:`KERNEL_ALT_IMAGETYPE`
  3861. Specifies an alternate kernel image type for creation in addition to
  3862. the kernel image type specified using the :term:`KERNEL_IMAGETYPE` and
  3863. :term:`KERNEL_IMAGETYPES` variables.
  3864. :term:`KERNEL_ARTIFACT_NAME`
  3865. Specifies the name of all of the build artifacts. You can change the
  3866. name of the artifacts by changing the :term:`KERNEL_ARTIFACT_NAME`
  3867. variable.
  3868. The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the
  3869. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file, has the
  3870. following default value::
  3871. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  3872. See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`IMAGE_MACHINE_SUFFIX`
  3873. and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
  3874. :term:`KERNEL_CLASSES`
  3875. A list of classes defining kernel image types that the
  3876. :ref:`ref-classes-kernel` class should inherit. You typically
  3877. append this variable to enable extended image types.
  3878. You can register custom kernel image types with the
  3879. :ref:`ref-classes-kernel` class using this variable.
  3880. :term:`KERNEL_CONSOLE`
  3881. The :term:`KERNEL_CONSOLE` variable holds the value of the ``console``
  3882. parameter of the kernel command line and can be used in places such as a
  3883. ``wks`` description file for :ref:`Wic images <dev-manual/wic:creating
  3884. partitioned images using wic>`.
  3885. The default value of this variable is extracted from the first console
  3886. device and setting in :term:`SERIAL_CONSOLES`. If nothing is found in
  3887. :term:`SERIAL_CONSOLES`, the default value is set to ``ttyS0,115200``.
  3888. For more information, see the `Kernel command-line documentation
  3889. <https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html>`__.
  3890. :term:`KERNEL_DANGLING_FEATURES_WARN_ONLY`
  3891. When kernel configuration fragments are missing for some
  3892. :term:`KERNEL_FEATURES` specified by layers or BSPs,
  3893. building and configuring the kernel stops with an error.
  3894. You can turn these errors into warnings by setting the
  3895. following in ``conf/local.conf``::
  3896. KERNEL_DANGLING_FEATURES_WARN_ONLY = "1"
  3897. You will still be warned that runtime issues may occur,
  3898. but at least the kernel configuration and build process will
  3899. be allowed to continue.
  3900. :term:`KERNEL_DEBUG_TIMESTAMPS`
  3901. If set to "1", enables timestamping functionality during building
  3902. the kernel. The default is "0" to disable this for reproducibility
  3903. reasons.
  3904. :term:`KERNEL_DEPLOY_DEPEND`
  3905. Provides a means of controlling the dependency of an image recipe
  3906. on the kernel. The default value is "virtual/kernel:do_deploy",
  3907. however for a small initramfs image or other images that do not
  3908. need the kernel, this can be set to "" in the image recipe.
  3909. :term:`KERNEL_DEVICETREE`
  3910. Specifies the name of the generated Linux kernel device tree (i.e.
  3911. the ``.dtb``) file.
  3912. .. note::
  3913. There is legacy support for specifying the full path to the device
  3914. tree. However, providing just the ``.dtb`` file is preferred.
  3915. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3916. class must be inherited.
  3917. :term:`KERNEL_DEVICETREE_BUNDLE`
  3918. When set to "1", this variable allows to bundle the Linux kernel
  3919. and the Device Tree Binary together in a single file.
  3920. This feature is currently only supported on the "arm" (32 bit)
  3921. architecture.
  3922. This variable is set to "0" by default by the
  3923. :ref:`ref-classes-kernel-devicetree` class.
  3924. :term:`KERNEL_DTB_LINK_NAME`
  3925. The link name of the kernel device tree binary (DTB). This variable
  3926. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3927. follows::
  3928. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3929. The
  3930. value of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in
  3931. the same file, has the following value::
  3932. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3933. See the :term:`MACHINE` variable for additional
  3934. information.
  3935. :term:`KERNEL_DTB_NAME`
  3936. The base name of the kernel device tree binary (DTB). This variable
  3937. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3938. follows::
  3939. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3940. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3941. :term:`KERNEL_DTBDEST`
  3942. This variable, used by the :ref:`ref-classes-kernel-devicetree`
  3943. class, allows to change the installation directory of the DTB
  3944. (Device Tree Binary) files.
  3945. It is set by default to "${KERNEL_IMAGEDEST}" by the
  3946. :ref:`ref-classes-kernel` class.
  3947. :term:`KERNEL_DTBVENDORED`
  3948. This variable, used by the :ref:`ref-classes-kernel-devicetree`,
  3949. allows to ignore vendor subdirectories when installing DTB
  3950. (Device Tree Binary) files, when it is set to "false".
  3951. To keep vendor subdirectories, set this variable to "true".
  3952. It is set by default to "false" by the :ref:`ref-classes-kernel` class.
  3953. :term:`KERNEL_DTC_FLAGS`
  3954. Specifies the ``dtc`` flags that are passed to the Linux kernel build
  3955. system when generating the device trees (via ``DTC_FLAGS`` environment
  3956. variable).
  3957. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3958. class must be inherited.
  3959. :term:`KERNEL_EXTRA_ARGS`
  3960. Specifies additional ``make`` command-line arguments the OpenEmbedded
  3961. build system passes on when compiling the kernel.
  3962. :term:`KERNEL_FEATURES`
  3963. Includes additional kernel metadata. In the OpenEmbedded build
  3964. system, the default Board Support Packages (BSPs)
  3965. :term:`Metadata` is provided through the
  3966. :term:`KMACHINE` and :term:`KBRANCH`
  3967. variables. You can use the :term:`KERNEL_FEATURES` variable from within
  3968. the kernel recipe or kernel append file to further add metadata for
  3969. all BSPs or specific BSPs.
  3970. The metadata you add through this variable includes config fragments
  3971. and features descriptions, which usually includes patches as well as
  3972. config fragments. You typically override the :term:`KERNEL_FEATURES`
  3973. variable for a specific machine. In this way, you can provide
  3974. validated, but optional, sets of kernel configurations and features.
  3975. For example, the following example from the ``linux-yocto-rt_4.12``
  3976. kernel recipe adds "netfilter" and "taskstats" features to all BSPs
  3977. as well as "virtio" configurations to all QEMU machines. The last two
  3978. statements add specific configurations to targeted machine types::
  3979. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  3980. KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
  3981. KERNEL_FEATURES:append:qemuall = " cfg/virtio.scc"
  3982. KERNEL_FEATURES:append:qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  3983. KERNEL_FEATURES:append:qemux86-64 = " cfg/sound.scc"
  3984. :term:`KERNEL_FIT_LINK_NAME`
  3985. The link name of the kernel flattened image tree (FIT) image. This
  3986. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3987. file as follows::
  3988. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3989. The value of the
  3990. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3991. file, has the following value::
  3992. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3993. See the :term:`MACHINE` variable for additional
  3994. information.
  3995. :term:`KERNEL_FIT_NAME`
  3996. The base name of the kernel flattened image tree (FIT) image. This
  3997. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3998. file as follows::
  3999. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4000. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4001. :term:`KERNEL_IMAGE_LINK_NAME`
  4002. The link name for the kernel image. This variable is set in the
  4003. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4004. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4005. The value of
  4006. the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  4007. file, has the following value::
  4008. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4009. See the :term:`MACHINE` variable for additional
  4010. information.
  4011. :term:`KERNEL_IMAGE_MAXSIZE`
  4012. Specifies the maximum size of the kernel image file in kilobytes. If
  4013. :term:`KERNEL_IMAGE_MAXSIZE` is set, the size of the kernel image file is
  4014. checked against the set value during the
  4015. :ref:`ref-tasks-sizecheck` task. The task fails if
  4016. the kernel image file is larger than the setting.
  4017. :term:`KERNEL_IMAGE_MAXSIZE` is useful for target devices that have a
  4018. limited amount of space in which the kernel image must be stored.
  4019. By default, this variable is not set, which means the size of the
  4020. kernel image is not checked.
  4021. :term:`KERNEL_IMAGE_NAME`
  4022. The base name of the kernel image. This variable is set in the
  4023. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4024. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4025. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4026. :term:`KERNEL_IMAGETYPE`
  4027. The type of kernel to build for a device, usually set by the machine
  4028. configuration files and defaults to "zImage". This variable is used
  4029. when building the kernel and is passed to ``make`` as the target to
  4030. build.
  4031. To build additional kernel image types, use :term:`KERNEL_IMAGETYPES`.
  4032. :term:`KERNEL_IMAGETYPES`
  4033. Lists additional types of kernel images to build for a device in addition
  4034. to image type specified in :term:`KERNEL_IMAGETYPE`. Usually set by the
  4035. machine configuration files.
  4036. :term:`KERNEL_LOCALVERSION`
  4037. This variable allows to append a string to the version
  4038. of the kernel image. This corresponds to the ``CONFIG_LOCALVERSION``
  4039. kernel configuration parameter.
  4040. Using this variable is only useful when you are using a kernel recipe
  4041. inheriting the :ref:`ref-classes-kernel` class, and which doesn't
  4042. already set a local version. Therefore, setting this variable has no
  4043. impact on ``linux-yocto`` kernels.
  4044. :term:`KERNEL_MODULE_AUTOLOAD`
  4045. Lists kernel modules that need to be auto-loaded during boot.
  4046. .. note::
  4047. This variable replaces the deprecated :term:`module_autoload`
  4048. variable.
  4049. You can use the :term:`KERNEL_MODULE_AUTOLOAD` variable anywhere that it
  4050. can be recognized by the kernel recipe or by an out-of-tree kernel
  4051. module recipe (e.g. a machine configuration file, a distribution
  4052. configuration file, an append file for the recipe, or the recipe
  4053. itself).
  4054. Specify it as follows::
  4055. KERNEL_MODULE_AUTOLOAD += "module_name1 module_name2 module_name3"
  4056. Including :term:`KERNEL_MODULE_AUTOLOAD` causes the OpenEmbedded build
  4057. system to populate the ``/etc/modules-load.d/modname.conf`` file with
  4058. the list of modules to be auto-loaded on boot. The modules appear
  4059. one-per-line in the file. Here is an example of the most common use
  4060. case::
  4061. KERNEL_MODULE_AUTOLOAD += "module_name"
  4062. For information on how to populate the ``modname.conf`` file with
  4063. ``modprobe.d`` syntax lines, see the :term:`KERNEL_MODULE_PROBECONF` variable.
  4064. :term:`KERNEL_MODULE_PROBECONF`
  4065. Provides a list of modules for which the OpenEmbedded build system
  4066. expects to find ``module_conf_``\ modname values that specify
  4067. configuration for each of the modules. For information on how to
  4068. provide those module configurations, see the
  4069. :term:`module_conf_* <module_conf>` variable.
  4070. :term:`KERNEL_PACKAGE_NAME`
  4071. Specifies the base name of the kernel packages, such as "kernel"
  4072. in the kernel packages such as "kernel-modules", "kernel-image" and
  4073. "kernel-dbg".
  4074. The default value for this variable is set to "kernel" by the
  4075. :ref:`ref-classes-kernel` class.
  4076. :term:`KERNEL_PATH`
  4077. The location of the kernel sources. This variable is set to the value
  4078. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  4079. class. For information on how this variable is used, see the
  4080. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  4081. section in the Yocto Project Linux Kernel Development Manual.
  4082. To help maximize compatibility with out-of-tree drivers used to build
  4083. modules, the OpenEmbedded build system also recognizes and uses the
  4084. :term:`KERNEL_SRC` variable, which is identical to
  4085. the :term:`KERNEL_PATH` variable. Both variables are common variables
  4086. used by external Makefiles to point to the kernel source directory.
  4087. :term:`KERNEL_SPLIT_MODULES`
  4088. When inheriting the :ref:`ref-classes-kernel-module-split` class, this
  4089. variable controls whether kernel modules are split into separate packages
  4090. or bundled into a single package.
  4091. For some use cases, a monolithic kernel module package
  4092. :term:`KERNEL_PACKAGE_NAME` that contains all modules built from the
  4093. kernel sources may be preferred to speed up the installation.
  4094. By default, this variable is set to ``1``, resulting in one package per
  4095. module. Setting it to any other value will generate a single monolithic
  4096. package containing all kernel modules.
  4097. .. note::
  4098. If :term:`KERNEL_SPLIT_MODULES` is set to 0, it is still possible to
  4099. install all kernel modules at once by adding ``kernel-modules`` (assuming
  4100. :term:`KERNEL_PACKAGE_NAME` is ``kernel-modules``) to :term:`IMAGE_INSTALL`.
  4101. The way it works is that a placeholder "kernel-modules" package will be
  4102. created and will depend on every other individual kernel module packages.
  4103. :term:`KERNEL_SRC`
  4104. The location of the kernel sources. This variable is set to the value
  4105. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  4106. class. For information on how this variable is used, see the
  4107. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  4108. section in the Yocto Project Linux Kernel Development Manual.
  4109. To help maximize compatibility with out-of-tree drivers used to build
  4110. modules, the OpenEmbedded build system also recognizes and uses the
  4111. :term:`KERNEL_PATH` variable, which is identical
  4112. to the :term:`KERNEL_SRC` variable. Both variables are common variables
  4113. used by external Makefiles to point to the kernel source directory.
  4114. :term:`KERNEL_STRIP`
  4115. Allows to specific which ``strip`` command to use to strip the kernel
  4116. binary, typically either GNU binutils ``strip`` or ``llvm-strip``.
  4117. :term:`KERNEL_VERSION`
  4118. Specifies the version of the kernel as extracted from ``version.h``
  4119. or ``utsrelease.h`` within the kernel sources. Effects of setting
  4120. this variable do not take effect until the kernel has been
  4121. configured. Consequently, attempting to refer to this variable in
  4122. contexts prior to configuration will not work.
  4123. :term:`KERNELDEPMODDEPEND`
  4124. Specifies whether the data referenced through
  4125. :term:`PKGDATA_DIR` is needed or not.
  4126. :term:`KERNELDEPMODDEPEND` does not control whether or not that data
  4127. exists, but simply whether or not it is used. If you do not need to
  4128. use the data, set the :term:`KERNELDEPMODDEPEND` variable in your
  4129. :term:`Initramfs` recipe. Setting the variable there when the data is not
  4130. needed avoids a potential dependency loop.
  4131. :term:`KFEATURE_DESCRIPTION`
  4132. Provides a short description of a configuration fragment. You use
  4133. this variable in the ``.scc`` file that describes a configuration
  4134. fragment file. Here is the variable used in a file named ``smp.scc``
  4135. to describe SMP being enabled::
  4136. define KFEATURE_DESCRIPTION "Enable SMP"
  4137. :term:`KMACHINE`
  4138. The machine as known by the kernel. Sometimes the machine name used
  4139. by the kernel does not match the machine name used by the
  4140. OpenEmbedded build system. For example, the machine name that the
  4141. OpenEmbedded build system understands as ``core2-32-intel-common``
  4142. goes by a different name in the Linux Yocto kernel. The kernel
  4143. understands that machine as ``intel-core2-32``. For cases like these,
  4144. the :term:`KMACHINE` variable maps the kernel machine name to the
  4145. OpenEmbedded build system machine name.
  4146. These mappings between different names occur in the Yocto Linux
  4147. Kernel's ``meta`` branch. As an example take a look in the
  4148. ``common/recipes-kernel/linux/linux-yocto_3.19.bbappend`` file::
  4149. LINUX_VERSION:core2-32-intel-common = "3.19.0"
  4150. COMPATIBLE_MACHINE:core2-32-intel-common = "${MACHINE}"
  4151. SRCREV_meta:core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  4152. SRCREV_machine:core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  4153. KMACHINE:core2-32-intel-common = "intel-core2-32"
  4154. KBRANCH:core2-32-intel-common = "standard/base"
  4155. KERNEL_FEATURES:append:core2-32-intel-common = " ${KERNEL_FEATURES_INTEL_COMMON}"
  4156. The :term:`KMACHINE` statement says
  4157. that the kernel understands the machine name as "intel-core2-32".
  4158. However, the OpenEmbedded build system understands the machine as
  4159. "core2-32-intel-common".
  4160. :term:`KMETA_AUDIT`
  4161. When inheriting the :ref:`ref-classes-kernel-yocto` class, the
  4162. :term:`KMETA_AUDIT` variable enables or disables auditing of Linux Kernel
  4163. configuration. The default value for this variable is "yes", and auditing
  4164. is enabled. Set this variable to an empty string to disable auditing.
  4165. :term:`KMETA_AUDIT_WERROR`
  4166. When inheriting the :ref:`ref-classes-kernel-yocto` class and when the
  4167. :term:`KMETA_AUDIT` and the :term:`KMETA_AUDIT_WERROR` variables are set
  4168. to non-empty strings, produce an error if Linux kernel configuration
  4169. problems were detected, instead of warnings only. For more details on the
  4170. Linux Kernel configuration auditing feature, see :term:`KCONF_AUDIT_LEVEL`
  4171. and :term:`KCONF_BSP_AUDIT_LEVEL`.
  4172. :term:`KMETA_CONFIG_FEATURES`
  4173. The :term:`KMETA_CONFIG_FEATURES` variable defines features enabled for the
  4174. :ref:`ref-classes-kernel-yocto` class. The following list of features are
  4175. supported:
  4176. - ``prefer-modules``: prefer a kernel configuration to be set as ``m``
  4177. instead of the default value ``y`` if the kernel configuration was
  4178. defined as follows::
  4179. CONFIG_FOO=y # OVERRIDE:$MODULE_OR_Y
  4180. The default value of this variable is an empty string.
  4181. :term:`KTYPE`
  4182. Defines the kernel type to be used in assembling the configuration.
  4183. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  4184. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  4185. section in the
  4186. Yocto Project Linux Kernel Development Manual for more information on
  4187. kernel types.
  4188. You define the :term:`KTYPE` variable in the
  4189. :ref:`kernel-dev/advanced:bsp descriptions`. The
  4190. value you use must match the value used for the
  4191. :term:`LINUX_KERNEL_TYPE` value used by the
  4192. kernel recipe.
  4193. :term:`LABELS`
  4194. Provides a list of targets for automatic configuration.
  4195. See the :ref:`ref-classes-grub-efi` class for more
  4196. information on how this variable is used.
  4197. :term:`LAYERDEPENDS`
  4198. Lists the layers, separated by spaces, on which this recipe depends.
  4199. Optionally, you can specify a specific layer version for a dependency
  4200. by adding it to the end of the layer name. Here is an example::
  4201. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  4202. In this previous example,
  4203. version 3 of "anotherlayer" is compared against
  4204. :term:`LAYERVERSION`\ ``_anotherlayer``.
  4205. An error is produced if any dependency is missing or the version
  4206. numbers (if specified) do not match exactly. This variable is used in
  4207. the ``conf/layer.conf`` file and must be suffixed with the name of
  4208. the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
  4209. :term:`LAYERDIR`
  4210. When used inside the ``layer.conf`` configuration file, this variable
  4211. provides the path of the current layer. This variable is not
  4212. available outside of ``layer.conf`` and references are expanded
  4213. immediately when parsing of the file completes.
  4214. :term:`LAYERDIR_RE`
  4215. See :term:`bitbake:LAYERDIR_RE` in the BitBake manual.
  4216. :term:`LAYERRECOMMENDS`
  4217. Lists the layers, separated by spaces, recommended for use with this
  4218. layer.
  4219. Optionally, you can specify a specific layer version for a
  4220. recommendation by adding the version to the end of the layer name.
  4221. Here is an example::
  4222. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  4223. In this previous example, version 3 of "anotherlayer" is compared
  4224. against ``LAYERVERSION_anotherlayer``.
  4225. This variable is used in the ``conf/layer.conf`` file and must be
  4226. suffixed with the name of the specific layer (e.g.
  4227. ``LAYERRECOMMENDS_mylayer``).
  4228. :term:`LAYERSERIES_COMPAT`
  4229. See :term:`bitbake:LAYERSERIES_COMPAT` in the BitBake manual.
  4230. :term:`LAYERVERSION`
  4231. Optionally specifies the version of a layer as a single number. You
  4232. can use this within :term:`LAYERDEPENDS` for
  4233. another layer in order to depend on a specific version of the layer.
  4234. This variable is used in the ``conf/layer.conf`` file and must be
  4235. suffixed with the name of the specific layer (e.g.
  4236. ``LAYERVERSION_mylayer``).
  4237. :term:`LD`
  4238. The minimal command and arguments used to run the :manpage:`linker
  4239. <ld(1)>`.
  4240. :term:`LDFLAGS`
  4241. Specifies the flags to pass to the linker. This variable is exported
  4242. to an environment variable and thus made visible to the software
  4243. being built during the compilation step.
  4244. Default initialization for :term:`LDFLAGS` varies depending on what is
  4245. being built:
  4246. - :term:`TARGET_LDFLAGS` when building for the
  4247. target
  4248. - :term:`BUILD_LDFLAGS` when building for the
  4249. build host (i.e. ``-native``)
  4250. - :term:`BUILDSDK_LDFLAGS` when building for
  4251. an SDK (i.e. ``nativesdk-``)
  4252. :term:`LEAD_SONAME`
  4253. Specifies the lead (or primary) compiled library file (i.e. ``.so``)
  4254. that the :ref:`ref-classes-debian` class applies its
  4255. naming policy to given a recipe that packages multiple libraries.
  4256. This variable works in conjunction with the :ref:`ref-classes-debian`
  4257. class.
  4258. :term:`LIC_FILES_CHKSUM`
  4259. Checksums of the license text in the recipe source code.
  4260. This variable tracks changes in license text of the source code
  4261. files. If the license text is changed, it will trigger a build
  4262. failure, which gives the developer an opportunity to review any
  4263. license change.
  4264. This variable must be defined for all recipes (unless
  4265. :term:`LICENSE` is set to "CLOSED").
  4266. For more information, see the ":ref:`dev-manual/licenses:tracking license changes`"
  4267. section in the Yocto Project Development Tasks Manual.
  4268. :term:`LICENSE`
  4269. The list of source licenses for the recipe. Follow these rules:
  4270. - Do not use spaces within individual license names.
  4271. - Separate license names using \| (pipe) when there is a choice
  4272. between licenses.
  4273. - Separate license names using & (ampersand) when there are
  4274. multiple licenses for different parts of the source.
  4275. - You can use spaces between license names.
  4276. - For standard licenses, use the names of the files in
  4277. ``meta/files/common-licenses/`` or the
  4278. :term:`SPDXLICENSEMAP` flag names defined in
  4279. ``meta/conf/licenses.conf``.
  4280. Here are some examples::
  4281. LICENSE = "LGPL-2.1-only | GPL-3.0-only"
  4282. LICENSE = "MPL-1.0 & LGPL-2.1-only"
  4283. LICENSE = "GPL-2.0-or-later"
  4284. The first example is from the
  4285. recipes for Qt, which the user may choose to distribute under either
  4286. the LGPL version 2.1 or GPL version 3. The second example is from
  4287. Cairo where two licenses cover different parts of the source code.
  4288. The final example is from ``sysstat``, which presents a single
  4289. license.
  4290. You can also specify licenses on a per-package basis to handle
  4291. situations where components of the output have different licenses.
  4292. For example, a piece of software whose code is licensed under GPLv2
  4293. but has accompanying documentation licensed under the GNU Free
  4294. Documentation License 1.2 could be specified as follows::
  4295. LICENSE = "GFDL-1.2 & GPL-2.0-only"
  4296. LICENSE:${PN} = "GPL-2.0.only"
  4297. LICENSE:${PN}-doc = "GFDL-1.2"
  4298. :term:`LICENSE_CREATE_PACKAGE`
  4299. Setting :term:`LICENSE_CREATE_PACKAGE` to "1" causes the OpenEmbedded
  4300. build system to create an extra package (i.e.
  4301. ``${``\ :term:`PN`\ ``}-lic``) for each recipe and to add
  4302. those packages to the
  4303. :term:`RRECOMMENDS`\ ``:${PN}``.
  4304. The ``${PN}-lic`` package installs a directory in
  4305. ``/usr/share/licenses`` named ``${PN}``, which is the recipe's base
  4306. name, and installs files in that directory that contain license and
  4307. copyright information (i.e. copies of the appropriate license files
  4308. from ``meta/common-licenses`` that match the licenses specified in
  4309. the :term:`LICENSE` variable of the recipe metadata
  4310. and copies of files marked in
  4311. :term:`LIC_FILES_CHKSUM` as containing
  4312. license text).
  4313. For related information on providing license text, see the
  4314. :term:`COPY_LIC_DIRS` variable, the
  4315. :term:`COPY_LIC_MANIFEST` variable, and the
  4316. ":ref:`dev-manual/licenses:providing license text`"
  4317. section in the Yocto Project Development Tasks Manual.
  4318. :term:`LICENSE_FLAGS`
  4319. Specifies additional flags for a recipe you must allow through
  4320. :term:`LICENSE_FLAGS_ACCEPTED` in
  4321. order for the recipe to be built. When providing multiple flags,
  4322. separate them with spaces.
  4323. This value is independent of :term:`LICENSE` and is
  4324. typically used to mark recipes that might require additional licenses
  4325. in order to be used in a commercial product. For more information,
  4326. see the
  4327. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  4328. section in the Yocto Project Development Tasks Manual.
  4329. :term:`LICENSE_FLAGS_ACCEPTED`
  4330. Lists license flags that when specified in
  4331. :term:`LICENSE_FLAGS` within a recipe should not
  4332. prevent that recipe from being built. For more information, see the
  4333. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  4334. section in the Yocto Project Development Tasks Manual.
  4335. :term:`LICENSE_FLAGS_DETAILS`
  4336. Adds details about a flag in :term:`LICENSE_FLAGS`. This way,
  4337. if such a flag is not accepted through :term:`LICENSE_FLAGS_ACCEPTED`,
  4338. the error message will be more informative, containing the specified
  4339. extra details.
  4340. For example, a recipe with an EULA may set::
  4341. LICENSE_FLAGS = "FooBar-EULA"
  4342. LICENSE_FLAGS_DETAILS[FooBar-EULA] = "For further details, see https://example.com/eula."
  4343. If ``Foobar-EULA`` isn't in :term:`LICENSE_FLAGS_ACCEPTED`, the
  4344. error message is more useful::
  4345. Has a restricted license 'FooBar-EULA' which is not listed in your LICENSE_FLAGS_ACCEPTED.
  4346. For further details, see https://example.com/eula.
  4347. :term:`LICENSE_PATH`
  4348. Path to additional licenses used during the build. By default, the
  4349. OpenEmbedded build system uses :term:`COMMON_LICENSE_DIR` to define the
  4350. directory that holds common license text used during the build. The
  4351. :term:`LICENSE_PATH` variable allows you to extend that location to other
  4352. areas that have additional licenses::
  4353. LICENSE_PATH += "path-to-additional-common-licenses"
  4354. :term:`LINUX_KERNEL_TYPE`
  4355. Defines the kernel type to be used in assembling the configuration.
  4356. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  4357. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  4358. section in the
  4359. Yocto Project Linux Kernel Development Manual for more information on
  4360. kernel types.
  4361. If you do not specify a :term:`LINUX_KERNEL_TYPE`, it defaults to
  4362. "standard". Together with :term:`KMACHINE`, the
  4363. :term:`LINUX_KERNEL_TYPE` variable defines the search arguments used by
  4364. the kernel tools to find the appropriate description within the
  4365. kernel :term:`Metadata` with which to build out the sources
  4366. and configuration.
  4367. :term:`LINUX_VERSION`
  4368. The Linux version from ``kernel.org`` on which the Linux kernel image
  4369. being built using the OpenEmbedded build system is based. You define
  4370. this variable in the kernel recipe. For example, the
  4371. ``linux-yocto-3.4.bb`` kernel recipe found in
  4372. ``meta/recipes-kernel/linux`` defines the variables as follows::
  4373. LINUX_VERSION ?= "3.4.24"
  4374. The :term:`LINUX_VERSION` variable is used to define :term:`PV`
  4375. for the recipe::
  4376. PV = "${LINUX_VERSION}+git"
  4377. :term:`LINUX_VERSION_EXTENSION`
  4378. A string extension compiled into the version string of the Linux
  4379. kernel built with the OpenEmbedded build system. You define this
  4380. variable in the kernel recipe. For example, the linux-yocto kernel
  4381. recipes all define the variable as follows::
  4382. LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
  4383. Defining this variable essentially sets the Linux kernel
  4384. configuration item ``CONFIG_LOCALVERSION``, which is visible through
  4385. the ``uname`` command. Here is an example that shows the extension
  4386. assuming it was set as previously shown::
  4387. $ uname -r
  4388. 3.7.0-rc8-custom
  4389. :term:`LOG_DIR`
  4390. Specifies the directory to which the OpenEmbedded build system writes
  4391. overall log files. The default directory is ``${TMPDIR}/log``.
  4392. For the directory containing logs specific to each task, see the
  4393. :term:`T` variable.
  4394. :term:`MACHINE`
  4395. Specifies the target device for which the image is built. You define
  4396. :term:`MACHINE` in the ``local.conf`` file found in the
  4397. :term:`Build Directory`. By default, :term:`MACHINE` is set to
  4398. "qemux86", which is an x86-based architecture machine to be emulated
  4399. using QEMU::
  4400. MACHINE ?= "qemux86"
  4401. The variable corresponds to a machine configuration file of the same
  4402. name, through which machine-specific configurations are set. Thus,
  4403. when :term:`MACHINE` is set to "qemux86", the corresponding
  4404. ``qemux86.conf`` machine configuration file can be found in
  4405. the :term:`Source Directory` in
  4406. ``meta/conf/machine``.
  4407. The list of machines supported by the Yocto Project as shipped
  4408. include the following::
  4409. MACHINE ?= "qemuarm"
  4410. MACHINE ?= "qemuarm64"
  4411. MACHINE ?= "qemumips"
  4412. MACHINE ?= "qemumips64"
  4413. MACHINE ?= "qemuppc"
  4414. MACHINE ?= "qemux86"
  4415. MACHINE ?= "qemux86-64"
  4416. MACHINE ?= "genericx86"
  4417. MACHINE ?= "genericx86-64"
  4418. MACHINE ?= "beaglebone"
  4419. The last five are Yocto Project reference hardware
  4420. boards, which are provided in the ``meta-yocto-bsp`` layer.
  4421. .. note::
  4422. Adding additional Board Support Package (BSP) layers to your
  4423. configuration adds new possible settings for :term:`MACHINE`.
  4424. :term:`MACHINE_ARCH`
  4425. Specifies the name of the machine-specific architecture. This
  4426. variable is set automatically from :term:`MACHINE` or
  4427. :term:`TUNE_PKGARCH`. You should not hand-edit
  4428. the :term:`MACHINE_ARCH` variable.
  4429. :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4430. A list of required machine-specific packages to install as part of
  4431. the image being built. The build process depends on these packages
  4432. being present. Furthermore, because this is a "machine-essential"
  4433. variable, the list of packages are essential for the machine to boot.
  4434. The impact of this variable affects images based on
  4435. ``packagegroup-core-boot``, including the ``core-image-minimal``
  4436. image.
  4437. This variable is similar to the
  4438. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS` variable with the exception
  4439. that the image being built has a build dependency on the variable's
  4440. list of packages. In other words, the image will not build if a file
  4441. in this list is not found.
  4442. As an example, suppose the machine for which you are building
  4443. requires ``example-init`` to be run during boot to initialize the
  4444. hardware. In this case, you would use the following in the machine's
  4445. ``.conf`` configuration file::
  4446. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  4447. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  4448. A list of recommended machine-specific packages to install as part of
  4449. the image being built. The build process does not depend on these
  4450. packages being present. However, because this is a
  4451. "machine-essential" variable, the list of packages are essential for
  4452. the machine to boot. The impact of this variable affects images based
  4453. on ``packagegroup-core-boot``, including the ``core-image-minimal``
  4454. image.
  4455. This variable is similar to the :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4456. variable with the exception that the image being built does not have
  4457. a build dependency on the variable's list of packages. In other
  4458. words, the image will still build if a package in this list is not
  4459. found. Typically, this variable is used to handle essential kernel
  4460. modules, whose functionality may be selected to be built into the
  4461. kernel rather than as a module, in which case a package will not be
  4462. produced.
  4463. Consider an example where you have a custom kernel where a specific
  4464. touchscreen driver is required for the machine to be usable. However,
  4465. the driver can be built as a module or into the kernel depending on
  4466. the kernel configuration. If the driver is built as a module, you
  4467. want it to be installed. But, when the driver is built into the
  4468. kernel, you still want the build to succeed. This variable sets up a
  4469. "recommends" relationship so that in the latter case, the build will
  4470. not fail due to the missing package. To accomplish this, assuming the
  4471. package for the module was called ``kernel-module-ab123``, you would
  4472. use the following in the machine's ``.conf`` configuration file::
  4473. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  4474. .. note::
  4475. In this example, the ``kernel-module-ab123`` recipe needs to
  4476. explicitly set its :term:`PACKAGES` variable to ensure that BitBake
  4477. does not use the kernel recipe's :term:`PACKAGES_DYNAMIC` variable to
  4478. satisfy the dependency.
  4479. Some examples of these machine essentials are flash, screen,
  4480. keyboard, mouse, or touchscreen drivers (depending on the machine).
  4481. :term:`MACHINE_EXTRA_RDEPENDS`
  4482. A list of machine-specific packages to install as part of the image
  4483. being built that are not essential for the machine to boot. However,
  4484. the build process for more fully-featured images depends on the
  4485. packages being present.
  4486. This variable affects all images based on ``packagegroup-base``,
  4487. which does not include the ``core-image-minimal`` or
  4488. ``core-image-full-cmdline`` images.
  4489. The variable is similar to the :term:`MACHINE_EXTRA_RRECOMMENDS` variable
  4490. with the exception that the image being built has a build dependency
  4491. on the variable's list of packages. In other words, the image will
  4492. not build if a file in this list is not found.
  4493. An example is a machine that has WiFi capability but is not essential
  4494. for the machine to boot the image. However, if you are building a
  4495. more fully-featured image, you want to enable the WiFi. The package
  4496. containing the firmware for the WiFi hardware is always expected to
  4497. exist, so it is acceptable for the build process to depend upon
  4498. finding the package. In this case, assuming the package for the
  4499. firmware was called ``wifidriver-firmware``, you would use the
  4500. following in the ``.conf`` file for the machine::
  4501. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  4502. :term:`MACHINE_EXTRA_RRECOMMENDS`
  4503. A list of machine-specific packages to install as part of the image
  4504. being built that are not essential for booting the machine. The image
  4505. being built has no build dependency on this list of packages.
  4506. This variable affects only images based on ``packagegroup-base``,
  4507. which does not include the ``core-image-minimal`` or
  4508. ``core-image-full-cmdline`` images.
  4509. This variable is similar to the :term:`MACHINE_EXTRA_RDEPENDS` variable
  4510. with the exception that the image being built does not have a build
  4511. dependency on the variable's list of packages. In other words, the
  4512. image will build if a file in this list is not found.
  4513. An example is a machine that has WiFi capability but is not essential
  4514. For the machine to boot the image. However, if you are building a
  4515. more fully-featured image, you want to enable WiFi. In this case, the
  4516. package containing the WiFi kernel module will not be produced if the
  4517. WiFi driver is built into the kernel, in which case you still want
  4518. the build to succeed instead of failing as a result of the package
  4519. not being found. To accomplish this, assuming the package for the
  4520. module was called ``kernel-module-examplewifi``, you would use the
  4521. following in the ``.conf`` file for the machine::
  4522. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  4523. :term:`MACHINE_FEATURES`
  4524. Specifies the list of hardware features the
  4525. :term:`MACHINE` is capable of supporting. For related
  4526. information on enabling features, see the
  4527. :term:`DISTRO_FEATURES`,
  4528. :term:`COMBINED_FEATURES`, and
  4529. :term:`IMAGE_FEATURES` variables.
  4530. For a list of hardware features supported by the Yocto Project as
  4531. shipped, see the ":ref:`ref-features-machine`" section.
  4532. :term:`MACHINE_FEATURES_BACKFILL`
  4533. A list of space-separated features to be added to
  4534. :term:`MACHINE_FEATURES` if not also present in
  4535. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`.
  4536. This variable is set in the ``meta/conf/bitbake.conf`` file. It is not
  4537. intended to be user-configurable. It is best to just reference the
  4538. variable to see which machine features are being
  4539. :ref:`backfilled <ref-features-backfill>` for all machine configurations.
  4540. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`
  4541. A list of space-separated features from :term:`MACHINE_FEATURES_BACKFILL`
  4542. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  4543. to :term:`MACHINE_FEATURES`) during the build.
  4544. This corresponds to an opt-out mechanism. When new default machine
  4545. features are introduced, machine definition maintainers can review
  4546. (`consider`) them and decide to exclude them from the
  4547. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  4548. combination of :term:`MACHINE_FEATURES_BACKFILL` and
  4549. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  4550. add new default features without breaking existing machine definitions.
  4551. :term:`MACHINEOVERRIDES`
  4552. A colon-separated list of overrides that apply to the current
  4553. machine. By default, this list includes the value of
  4554. :term:`MACHINE`.
  4555. You can extend :term:`MACHINEOVERRIDES` to add extra overrides that
  4556. should apply to a machine. For example, all machines emulated in QEMU
  4557. (e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
  4558. ``meta/conf/machine/include/qemu.inc`` that prepends the following
  4559. override to :term:`MACHINEOVERRIDES`::
  4560. MACHINEOVERRIDES =. "qemuall:"
  4561. This
  4562. override allows variables to be overridden for all machines emulated
  4563. in QEMU, like in the following example from the ``connman-conf``
  4564. recipe::
  4565. SRC_URI:append:qemuall = " file://wired.config \
  4566. file://wired-setup \
  4567. "
  4568. The underlying mechanism behind
  4569. :term:`MACHINEOVERRIDES` is simply that it is included in the default
  4570. value of :term:`OVERRIDES`.
  4571. :term:`MAINTAINER`
  4572. The email address of the distribution maintainer.
  4573. :term:`MESON_BUILDTYPE`
  4574. Value of the Meson ``--buildtype`` argument used by the
  4575. :ref:`ref-classes-meson` class. It defaults to ``debug`` if
  4576. :term:`DEBUG_BUILD` is set to "1", and ``plain`` otherwise.
  4577. See `Meson build options <https://mesonbuild.com/Builtin-options.html>`__
  4578. for the values you could set in a recipe. Values such as ``plain``,
  4579. ``debug``, ``debugoptimized``, ``release`` and ``minsize`` allow
  4580. you to specify the inclusion of debugging symbols and the compiler
  4581. optimizations (none, performance or size).
  4582. :term:`MESON_INSTALL_TAGS`
  4583. A variable for the :ref:`ref-classes-meson` class, allowing to specify
  4584. install tags (``--tags`` argument of the ``meson install`` command).
  4585. :term:`MESON_TARGET`
  4586. A variable for the :ref:`ref-classes-meson` class, allowing to choose
  4587. a Meson target to build in :ref:`ref-tasks-compile`. Otherwise, the
  4588. default targets are built.
  4589. :term:`METADATA_BRANCH`
  4590. The branch currently checked out for the OpenEmbedded-Core layer (path
  4591. determined by :term:`COREBASE`).
  4592. :term:`METADATA_REVISION`
  4593. The revision currently checked out for the OpenEmbedded-Core layer (path
  4594. determined by :term:`COREBASE`).
  4595. :term:`MIME_XDG_PACKAGES`
  4596. The current implementation of the :ref:`ref-classes-mime-xdg`
  4597. class cannot detect ``.desktop`` files installed through absolute
  4598. symbolic links. Use this setting to make the class create post-install
  4599. and post-remove scripts for these packages anyway, to invoke the
  4600. ``update-destop-database`` command.
  4601. :term:`MIRRORS`
  4602. Specifies additional paths from which the OpenEmbedded build system
  4603. gets source code. When the build system searches for source code, it
  4604. first tries the local download directory. If that location fails, the
  4605. build system tries locations defined by
  4606. :term:`PREMIRRORS`, the upstream source, and then
  4607. locations specified by :term:`MIRRORS` in that order.
  4608. The default value for :term:`MIRRORS` is defined in the
  4609. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  4610. :term:`MLPREFIX`
  4611. Specifies a prefix has been added to :term:`PN` to create a
  4612. special version of a recipe or package (i.e. a Multilib version). The
  4613. variable is used in places where the prefix needs to be added to or
  4614. removed from a name (e.g. the :term:`BPN` variable).
  4615. :term:`MLPREFIX` gets set when a prefix has been added to :term:`PN`.
  4616. .. note::
  4617. The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation
  4618. is historical and comes from a time when ":ref:`ref-classes-nativesdk`"
  4619. was a suffix rather than a prefix on the recipe name. When
  4620. ":ref:`ref-classes-nativesdk`" was turned into a prefix, it made sense
  4621. to set :term:`MLPREFIX` for it as well.
  4622. To help understand when :term:`MLPREFIX` might be needed, consider when
  4623. :term:`BBCLASSEXTEND` is used to provide a :ref:`ref-classes-nativesdk`
  4624. version of a recipe in addition to the target version. If that recipe
  4625. declares build-time dependencies on tasks in other recipes by using
  4626. :term:`DEPENDS`, then a dependency on "foo" will automatically get
  4627. rewritten to a dependency on "nativesdk-foo". However, dependencies like
  4628. the following will not get rewritten automatically::
  4629. do_foo[depends] += "recipe:do_foo"
  4630. If you want such a dependency to also get transformed, you can do the
  4631. following::
  4632. do_foo[depends] += "${MLPREFIX}recipe:do_foo"
  4633. :term:`module_autoload`
  4634. This variable has been replaced by the :term:`KERNEL_MODULE_AUTOLOAD`
  4635. variable. You should replace all occurrences of :term:`module_autoload`
  4636. with additions to :term:`KERNEL_MODULE_AUTOLOAD`, for example::
  4637. module_autoload_rfcomm = "rfcomm"
  4638. should now be replaced with::
  4639. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  4640. See the :term:`KERNEL_MODULE_AUTOLOAD` variable for more information.
  4641. :term:`module_conf`
  4642. Specifies `modprobe.d <https://linux.die.net/man/5/modprobe.d>`__
  4643. syntax lines for inclusion in the ``/etc/modprobe.d/modname.conf``
  4644. file.
  4645. You can use this variable anywhere that it can be recognized by the
  4646. kernel recipe or out-of-tree kernel module recipe (e.g. a machine
  4647. configuration file, a distribution configuration file, an append file
  4648. for the recipe, or the recipe itself). If you use this variable, you
  4649. must also be sure to list the module name in the
  4650. :term:`KERNEL_MODULE_PROBECONF`
  4651. variable.
  4652. Here is the general syntax::
  4653. module_conf_module_name = "modprobe.d-syntax"
  4654. You must use the kernel module name override.
  4655. Run ``man modprobe.d`` in the shell to find out more information on
  4656. the exact syntax you want to provide with :term:`module_conf`.
  4657. Including :term:`module_conf` causes the OpenEmbedded build system to
  4658. populate the ``/etc/modprobe.d/modname.conf`` file with
  4659. ``modprobe.d`` syntax lines. Here is an example that adds the options
  4660. ``arg1`` and ``arg2`` to a module named ``mymodule``::
  4661. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  4662. For information on how to specify kernel modules to auto-load on
  4663. boot, see the :term:`KERNEL_MODULE_AUTOLOAD` variable.
  4664. :term:`MODULE_TARBALL_DEPLOY`
  4665. Controls creation of the ``modules-*.tgz`` file. Set this variable to
  4666. "0" to disable creation of this file, which contains all of the
  4667. kernel modules resulting from a kernel build.
  4668. :term:`MODULE_TARBALL_LINK_NAME`
  4669. The link name of the kernel module tarball. This variable is set in
  4670. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4671. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4672. The value
  4673. of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the
  4674. same file, has the following value::
  4675. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4676. See the :term:`MACHINE` variable for additional information.
  4677. :term:`MODULE_TARBALL_NAME`
  4678. The base name of the kernel module tarball. This variable is set in
  4679. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4680. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4681. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4682. :term:`MOUNT_BASE`
  4683. On non-systemd systems (where ``udev-extraconf`` is being used),
  4684. specifies the base directory for auto-mounting filesystems. The
  4685. default value is "/run/media".
  4686. :term:`MOUNT_GROUP`
  4687. On non-systemd systems (where ``udev-extraconf`` is being used),
  4688. specifies the mount group for auto-mounting filesystems. The
  4689. default value is "disk".
  4690. :term:`MULTIMACH_TARGET_SYS`
  4691. Uniquely identifies the type of the target system for which packages
  4692. are being built. This variable allows output for different types of
  4693. target systems to be put into different subdirectories of the same
  4694. output directory.
  4695. The default value of this variable is::
  4696. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  4697. Some classes (e.g. :ref:`ref-classes-cross-canadian`) modify the
  4698. :term:`MULTIMACH_TARGET_SYS` value.
  4699. See the :term:`STAMP` variable for an example. See the
  4700. :term:`STAGING_DIR_TARGET` variable for more information.
  4701. :term:`NATIVELSBSTRING`
  4702. A string identifying the host distribution. Strings consist of the
  4703. host distributor ID followed by the release, as reported by the
  4704. ``lsb_release`` tool or as read from ``/etc/lsb-release``. For
  4705. example, when running a build on Ubuntu 12.10, the value is
  4706. "Ubuntu-12.10". If this information is unable to be determined, the
  4707. value resolves to "Unknown".
  4708. This variable is used by default to isolate native shared state
  4709. packages for different distributions (e.g. to avoid problems with
  4710. ``glibc`` version incompatibilities). Additionally, the variable is
  4711. checked against
  4712. :term:`SANITY_TESTED_DISTROS` if that
  4713. variable is set.
  4714. :term:`NM`
  4715. The minimal command and arguments to run :manpage:`nm <nm(1)>`.
  4716. :term:`NO_GENERIC_LICENSE`
  4717. Avoids QA errors when you use a non-common, non-CLOSED license in a
  4718. recipe. There are packages, such as the linux-firmware package, with many
  4719. licenses that are not in any way common. Also, new licenses are added
  4720. occasionally to avoid introducing a lot of common license files,
  4721. which are only applicable to a specific package.
  4722. :term:`NO_GENERIC_LICENSE` is used to allow copying a license that does
  4723. not exist in common licenses.
  4724. The following example shows how to add :term:`NO_GENERIC_LICENSE` to a
  4725. recipe::
  4726. NO_GENERIC_LICENSE[license_name] = "license_file_in_fetched_source"
  4727. Here is an example that
  4728. uses the ``LICENSE.Abilis.txt`` file as the license from the fetched
  4729. source::
  4730. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  4731. :term:`NO_RECOMMENDATIONS`
  4732. Prevents installation of all "recommended-only" packages.
  4733. Recommended-only packages are packages installed only through the
  4734. :term:`RRECOMMENDS` variable). Setting the
  4735. :term:`NO_RECOMMENDATIONS` variable to "1" turns this feature on::
  4736. NO_RECOMMENDATIONS = "1"
  4737. You can set this variable globally in your ``local.conf`` file or you
  4738. can attach it to a specific image recipe by using the recipe name
  4739. override::
  4740. NO_RECOMMENDATIONS:pn-target_image = "1"
  4741. It is important to realize that if you choose to not install packages
  4742. using this variable and some other packages are dependent on them
  4743. (i.e. listed in a recipe's :term:`RDEPENDS`
  4744. variable), the OpenEmbedded build system ignores your request and
  4745. will install the packages to avoid dependency errors.
  4746. .. note::
  4747. Some recommended packages might be required for certain system
  4748. functionality, such as kernel modules. It is up to you to add
  4749. packages with the :term:`IMAGE_INSTALL` variable.
  4750. This variable is only supported when using the IPK and RPM
  4751. packaging backends. DEB is not supported.
  4752. See the :term:`BAD_RECOMMENDATIONS` and
  4753. the :term:`PACKAGE_EXCLUDE` variables for
  4754. related information.
  4755. :term:`NOAUTOPACKAGEDEBUG`
  4756. Disables auto package from splitting ``.debug`` files. If a recipe
  4757. requires ``FILES:${PN}-dbg`` to be set manually, the
  4758. :term:`NOAUTOPACKAGEDEBUG` can be defined allowing you to define the
  4759. content of the debug package. For example::
  4760. NOAUTOPACKAGEDEBUG = "1"
  4761. FILES:${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  4762. FILES:${PN}-dbg = "/usr/src/debug/"
  4763. FILES:${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  4764. :term:`NON_MULTILIB_RECIPES`
  4765. A list of recipes that should not be built for multilib. OE-Core's
  4766. ``multilib.conf`` file defines a reasonable starting point for this
  4767. list with::
  4768. NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"
  4769. :term:`NVD_DB_VERSION`
  4770. The :term:`NVD_DB_VERSION` variable allows choosing the CVE feed when
  4771. using the :ref:`ref-classes-cve-check` class. It can be one of:
  4772. - ``NVD2`` (default): the NVD feed with API version 2
  4773. - ``FKIE``: the `FKIE-CAD <https://github.com/fkie-cad/nvd-json-data-feeds>`__
  4774. feed reconstruction
  4775. - ``NVD1``: the NVD JSON feed (deprecated)
  4776. In case of a malformed feed name, the ``NVD2`` feed is selected and an
  4777. error is printed.
  4778. :term:`NVDCVE_API_KEY`
  4779. The NVD API key used to retrieve data from the CVE database when
  4780. using :ref:`ref-classes-cve-check`.
  4781. By default, no API key is used, which results in larger delays between API
  4782. requests and limits the number of queries to the public rate limits posted
  4783. at the `NVD developer's page <https://nvd.nist.gov/developers/start-here>`__.
  4784. NVD API keys can be requested through the
  4785. `Request an API Key <https://nvd.nist.gov/developers/request-an-api-key>`__
  4786. page. You can set this variable to the NVD API key in your ``local.conf`` file.
  4787. Example::
  4788. NVDCVE_API_KEY = "fe753&7a2-1427-347d-23ff-b2e2b7ca5f3"
  4789. :term:`OBJCOPY`
  4790. The minimal command and arguments to run :manpage:`objcopy <objcopy(1)>`.
  4791. :term:`OBJDUMP`
  4792. The minimal command and arguments to run :manpage:`objdump <objdump(1)>`.
  4793. :term:`OE_BINCONFIG_EXTRA_MANGLE`
  4794. When inheriting the :ref:`ref-classes-binconfig` class,
  4795. this variable specifies additional arguments passed to the "sed"
  4796. command. The sed command alters any paths in configuration scripts
  4797. that have been set up during compilation. Inheriting this class
  4798. results in all paths in these scripts being changed to point into the
  4799. ``sysroots/`` directory so that all builds that use the script will
  4800. use the correct directories for the cross compiling layout.
  4801. See the ``meta/classes-recipe/binconfig.bbclass`` in the
  4802. :term:`Source Directory` for details on how this class
  4803. applies these additional sed command arguments.
  4804. :term:`OE_FRAGMENTS`
  4805. The :term:`OE_FRAGMENTS` variable holds the list of :term:`Configuration
  4806. Fragments <Configuration Fragment>` currently enabled for the build. For
  4807. details on how to use fragments, see the :doc:`/ref-manual/fragments`
  4808. section of the Yocto Project Reference Manual.
  4809. :term:`OE_FRAGMENTS_BUILTIN`
  4810. The :term:`OE_FRAGMENTS_BUILTIN` variable holds the list of
  4811. :term:`Built-in Fragments <Built-in Fragment>` available for being set with
  4812. :oe_git:`bitbake-config-build </bitbake/tree/bin/bitbake-config-build>`.
  4813. For details on how to use fragments, see the :doc:`/ref-manual/fragments`
  4814. section of the Yocto Project Reference Manual.
  4815. :term:`OE_FRAGMENTS_METADATA_VARS`
  4816. The :term:`OE_FRAGMENTS_METADATA_VARS` variable holds the list of
  4817. variables that are required to set in a standard :term:`Configuration
  4818. Fragment` file. In :term:`OpenEmbedded-Core (OE-Core)`, these variables
  4819. are :term:`BB_CONF_FRAGMENT_SUMMARY` and
  4820. :term:`BB_CONF_FRAGMENT_DESCRIPTION`.
  4821. :term:`OE_FRAGMENTS_PREFIX`
  4822. The :term:`OE_FRAGMENTS_PREFIX` variable defines the prefix where
  4823. :term:`BitBake` tries to locate :term:`Configuration Fragments
  4824. <Configuration Fragment>` in :term:`layers <Layer>`. For details on how to
  4825. use fragments, see the :doc:`/ref-manual/fragments` section of the Yocto
  4826. Project Reference Manual.
  4827. :term:`OE_INIT_ENV_SCRIPT`
  4828. The name of the build environment setup script for the purposes of
  4829. setting up the environment within the extensible SDK. The default
  4830. value is "oe-init-build-env".
  4831. If you use a custom script to set up your build environment, set the
  4832. :term:`OE_INIT_ENV_SCRIPT` variable to its name.
  4833. :term:`OE_SHARED_UMASK`
  4834. The :term:`OE_SHARED_UMASK` variable contains the :manpage:`umask`
  4835. definition for shared files (for example files in :term:`SSTATE_DIR` or
  4836. :term:`DL_DIR`).
  4837. :term:`OE_TERMINAL`
  4838. Controls how the OpenEmbedded build system spawns interactive
  4839. terminals on the host development system (e.g. using the BitBake
  4840. command with the ``-c devshell`` command-line option). For more
  4841. information, see the ":ref:`dev-manual/development-shell:using a development shell`" section in
  4842. the Yocto Project Development Tasks Manual.
  4843. You can use the following values for the :term:`OE_TERMINAL` variable:
  4844. - auto
  4845. - gnome
  4846. - xfce
  4847. - rxvt
  4848. - screen
  4849. - konsole
  4850. - none
  4851. :term:`OECMAKE_GENERATOR`
  4852. A variable for the :ref:`ref-classes-cmake` class, allowing to choose
  4853. which back-end will be generated by CMake to build an application.
  4854. By default, this variable is set to ``Ninja``, which is faster than GNU
  4855. make, but if building is broken with Ninja, a recipe can use this
  4856. variable to use GNU make instead::
  4857. OECMAKE_GENERATOR = "Unix Makefiles"
  4858. :term:`OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS`
  4859. Set build target(s) for build reproducibility testing but activate
  4860. :ref:`shared state <overview-manual/concepts:shared state cache>` build
  4861. for most dependencies (i.e. the ones explicitly listed in DEPENDS, which
  4862. may not be all dependencies, c.f. [depends] varflags, PACKAGE_DEPENDS and
  4863. other implementations). See :doc:`/test-manual/reproducible-builds`.
  4864. :term:`OEQA_REPRODUCIBLE_TEST_PACKAGE`
  4865. Set the package manager(s) for build reproducibility testing.
  4866. See :yocto_git:`reproducible.py </poky/tree/meta/lib/oeqa/selftest/cases/reproducible.py>`
  4867. and :doc:`/test-manual/reproducible-builds`.
  4868. :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`
  4869. Set build targets which can be rebuilt using :ref:`shared state <overview-manual/concepts:shared state cache>`
  4870. when running build reproducibility tests. See :doc:`/test-manual/reproducible-builds`.
  4871. :term:`OEQA_REPRODUCIBLE_TEST_TARGET`
  4872. Set build target for build reproducibility testing. By default
  4873. all available recipes are compiled with "bitbake world", see also :term:`EXCLUDE_FROM_WORLD`
  4874. and :doc:`/test-manual/reproducible-builds`.
  4875. :term:`OEROOT`
  4876. The directory from which the top-level build environment setup script
  4877. is sourced. The Yocto Project provides a top-level build environment
  4878. setup script: :ref:`structure-core-script`. When you run this
  4879. script, the :term:`OEROOT` variable resolves to the directory that
  4880. contains the script.
  4881. For additional information on how this variable is used, see the
  4882. initialization script.
  4883. :term:`OLDEST_KERNEL`
  4884. Declares the oldest version of the Linux kernel that the produced
  4885. binaries must support. This variable is passed into the build of the
  4886. Embedded GNU C Library (``glibc``).
  4887. The default for this variable comes from the
  4888. ``meta/conf/bitbake.conf`` configuration file. You can override this
  4889. default by setting the variable in a custom distribution
  4890. configuration file.
  4891. :term:`OPKG_MAKE_INDEX_EXTRA_PARAMS`
  4892. Specifies extra parameters for the ``opkg-make-index`` command.
  4893. :term:`OPKGBUILDCMD`
  4894. The variable :term:`OPKGBUILDCMD` specifies the command used to build opkg
  4895. packages when using the :ref:`ref-classes-package_ipk` class. It is
  4896. defined in :ref:`ref-classes-package_ipk` as::
  4897. OPKGBUILDCMD ??= 'opkg-build -Z zstd -a "${ZSTD_DEFAULTS}"'
  4898. :term:`OVERLAYFS_ETC_DEVICE`
  4899. When the :ref:`ref-classes-overlayfs-etc` class is
  4900. inherited, specifies the device to be mounted for the read/write
  4901. layer of ``/etc``. There is no default, so you must set this if you
  4902. wish to enable :ref:`ref-classes-overlayfs-etc`, for
  4903. example, assuming ``/dev/mmcblk0p2`` was the desired device::
  4904. OVERLAYFS_ETC_DEVICE = "/dev/mmcblk0p2"
  4905. :term:`OVERLAYFS_ETC_EXPOSE_LOWER`
  4906. When the :ref:`ref-classes-overlayfs-etc` class is
  4907. inherited, if set to "1" then a read-only access to the original
  4908. ``/etc`` content will be provided as a ``lower/`` subdirectory of
  4909. :term:`OVERLAYFS_ETC_MOUNT_POINT`. The default value is "0".
  4910. :term:`OVERLAYFS_ETC_FSTYPE`
  4911. When the :ref:`ref-classes-overlayfs-etc` class is
  4912. inherited, specifies the file system type for the read/write
  4913. layer of ``/etc``. There is no default, so you must set this if you
  4914. wish to enable :ref:`ref-classes-overlayfs-etc`,
  4915. for example, assuming the file system is ext4::
  4916. OVERLAYFS_ETC_FSTYPE = "ext4"
  4917. :term:`OVERLAYFS_ETC_MOUNT_OPTIONS`
  4918. When the :ref:`ref-classes-overlayfs-etc` class is
  4919. inherited, specifies the mount options for the read-write layer.
  4920. The default value is "defaults".
  4921. :term:`OVERLAYFS_ETC_MOUNT_POINT`
  4922. When the :ref:`ref-classes-overlayfs-etc` class is
  4923. inherited, specifies the parent mount path for the filesystem layers.
  4924. There is no default, so you must set this if you wish to enable
  4925. :ref:`ref-classes-overlayfs-etc`, for example if the desired path is
  4926. "/data"::
  4927. OVERLAYFS_ETC_MOUNT_POINT = "/data"
  4928. :term:`OVERLAYFS_ETC_USE_ORIG_INIT_NAME`
  4929. When the :ref:`ref-classes-overlayfs-etc` class is inherited, controls
  4930. how the generated init will be named. For more information, see the
  4931. :ref:`ref-classes-overlayfs-etc` class documentation. The default value
  4932. is "1".
  4933. :term:`OVERLAYFS_MOUNT_POINT`
  4934. When inheriting the :ref:`ref-classes-overlayfs` class,
  4935. specifies mount point(s) to be used. For example::
  4936. OVERLAYFS_MOUNT_POINT[data] = "/data"
  4937. The assumes you have a ``data.mount`` systemd unit defined elsewhere in
  4938. your BSP (e.g. in ``systemd-machine-units`` recipe) and it is installed
  4939. into the image. For more information see :ref:`ref-classes-overlayfs`.
  4940. .. note::
  4941. Although the :ref:`ref-classes-overlayfs` class is
  4942. inherited by individual recipes, :term:`OVERLAYFS_MOUNT_POINT`
  4943. should be set in your machine configuration.
  4944. :term:`OVERLAYFS_QA_SKIP`
  4945. When inheriting the :ref:`ref-classes-overlayfs` class,
  4946. provides the ability to disable QA checks for particular overlayfs
  4947. mounts. For example::
  4948. OVERLAYFS_QA_SKIP[data] = "mount-configured"
  4949. .. note::
  4950. Although the :ref:`ref-classes-overlayfs` class is
  4951. inherited by individual recipes, :term:`OVERLAYFS_QA_SKIP`
  4952. should be set in your machine configuration.
  4953. :term:`OVERLAYFS_WRITABLE_PATHS`
  4954. When inheriting the :ref:`ref-classes-overlayfs` class,
  4955. specifies writable paths used at runtime for the recipe. For
  4956. example::
  4957. OVERLAYFS_WRITABLE_PATHS[data] = "/usr/share/my-custom-application"
  4958. :term:`OVERRIDES`
  4959. A colon-separated list of overrides that currently apply. Overrides
  4960. are a BitBake mechanism that allows variables to be selectively
  4961. overridden at the end of parsing. The set of overrides in
  4962. :term:`OVERRIDES` represents the "state" during building, which includes
  4963. the current recipe being built, the machine for which it is being
  4964. built, and so forth.
  4965. As an example, if the string "an-override" appears as an element in
  4966. the colon-separated list in :term:`OVERRIDES`, then the following
  4967. assignment will override ``FOO`` with the value "overridden" at the
  4968. end of parsing::
  4969. FOO:an-override = "overridden"
  4970. See the
  4971. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  4972. section in the BitBake User Manual for more information on the
  4973. overrides mechanism.
  4974. The default value of :term:`OVERRIDES` includes the values of the
  4975. :term:`CLASSOVERRIDE`,
  4976. :term:`MACHINEOVERRIDES`, and
  4977. :term:`DISTROOVERRIDES` variables. Another
  4978. important override included by default is ``pn-${PN}``. This override
  4979. allows variables to be set for a single recipe within configuration
  4980. (``.conf``) files. Here is an example::
  4981. FOO:pn-myrecipe = "myrecipe-specific value"
  4982. .. note::
  4983. An easy way to see what overrides apply is to search for :term:`OVERRIDES`
  4984. in the output of the ``bitbake -e`` command. See the
  4985. ":ref:`dev-manual/debugging:viewing variable values`" section in the Yocto
  4986. Project Development Tasks Manual for more information.
  4987. :term:`P`
  4988. The recipe name and version. :term:`P` is comprised of the following::
  4989. ${PN}-${PV}
  4990. :term:`P4DIR`
  4991. See :term:`bitbake:P4DIR` in the BitBake manual.
  4992. :term:`PACKAGE_ADD_METADATA`
  4993. This variable defines additional metadata to add to packages.
  4994. You may find you need to inject additional metadata into packages.
  4995. This variable allows you to do that by setting the injected data as
  4996. the value. Multiple fields can be added by splitting the content with
  4997. the literal separator "\n".
  4998. The suffixes '_IPK', '_DEB', or '_RPM' can be applied to the variable
  4999. to do package type specific settings. It can also be made package
  5000. specific by using the package name as a suffix.
  5001. You can find out more about applying this variable in the
  5002. ":ref:`dev-manual/packages:adding custom metadata to packages`"
  5003. section in the Yocto Project Development Tasks Manual.
  5004. :term:`PACKAGE_ARCH`
  5005. The architecture of the resulting package or packages.
  5006. By default, the value of this variable is set to
  5007. :term:`TUNE_PKGARCH` when building for the
  5008. target, :term:`BUILD_ARCH` when building for the
  5009. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building for the
  5010. SDK.
  5011. .. note::
  5012. See :term:`SDK_ARCH` for more information.
  5013. However, if your recipe's output packages are built specific to the
  5014. target machine rather than generally for the architecture of the
  5015. machine, you should set :term:`PACKAGE_ARCH` to the value of
  5016. :term:`MACHINE_ARCH` in the recipe as follows::
  5017. PACKAGE_ARCH = "${MACHINE_ARCH}"
  5018. :term:`PACKAGE_ARCHS`
  5019. Specifies a list of architectures compatible with the target machine.
  5020. This variable is set automatically and should not normally be
  5021. hand-edited. Entries are separated using spaces and listed in order
  5022. of priority. The default value for :term:`PACKAGE_ARCHS` is "all any
  5023. noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  5024. :term:`PACKAGE_BEFORE_PN`
  5025. Enables easily adding packages to :term:`PACKAGES` before ``${PN}`` so
  5026. that those added packages can pick up files that would normally be
  5027. included in the default package.
  5028. :term:`PACKAGE_CLASSES`
  5029. This variable, which is set in the ``local.conf`` configuration file
  5030. found in the ``conf`` folder of the
  5031. :term:`Build Directory`, specifies the package manager the
  5032. OpenEmbedded build system uses when packaging data.
  5033. You can provide one or more of the following arguments for the
  5034. variable::
  5035. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
  5036. The build system uses only the first argument in the list as the
  5037. package manager when creating your image or SDK. However, packages
  5038. will be created using any additional packaging classes you specify.
  5039. For example, if you use the following in your ``local.conf`` file::
  5040. PACKAGE_CLASSES ?= "package_ipk"
  5041. The OpenEmbedded build system uses
  5042. the IPK package manager to create your image or SDK.
  5043. For information on packaging and build performance effects as a
  5044. result of the package manager in use, see the
  5045. ":ref:`ref-classes-package`" section.
  5046. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  5047. Determines how to split up and package debug and source information
  5048. when creating debugging packages to be used with the GNU Project
  5049. Debugger (GDB). In general, based on the value of this variable,
  5050. you can combine the source and debug info in a single package,
  5051. you can break out the source into a separate package that can be
  5052. installed independently, or you can choose to not have the source
  5053. packaged at all.
  5054. The possible values of :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable:
  5055. - "``.debug``": All debugging and source info is placed in a single
  5056. ``*-dbg`` package; debug symbol files are placed next to the
  5057. binary in a ``.debug`` directory so that, if a binary is installed
  5058. into ``/bin``, the corresponding debug symbol file is installed
  5059. in ``/bin/.debug``. Source files are installed in the same ``*-dbg``
  5060. package under ``/usr/src/debug``.
  5061. - "``debug-file-directory``": As above, all debugging and source info
  5062. is placed in a single ``*-dbg`` package; debug symbol files are
  5063. placed entirely under the directory ``/usr/lib/debug`` and separated
  5064. by the path from where the binary is installed, so that if a binary
  5065. is installed in ``/bin``, the corresponding debug symbols are installed
  5066. in ``/usr/lib/debug/bin``, and so on. As above, source is installed
  5067. in the same package under ``/usr/src/debug``.
  5068. - "``debug-with-srcpkg``": Debugging info is placed in the standard
  5069. ``*-dbg`` package as with the ``.debug`` value, while source is
  5070. placed in a separate ``*-src`` package, which can be installed
  5071. independently. This is the default setting for this variable,
  5072. as defined in Poky's ``bitbake.conf`` file.
  5073. - "``debug-without-src``": The same behavior as with the ``.debug``
  5074. setting, but no source is packaged at all.
  5075. .. note::
  5076. Much of the above package splitting can be overridden via
  5077. use of the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable.
  5078. You can find out more about debugging using GDB by reading the
  5079. ":ref:`dev-manual/debugging:debugging with the gnu project debugger (gdb) remotely`" section
  5080. in the Yocto Project Development Tasks Manual.
  5081. :term:`PACKAGE_EXCLUDE`
  5082. Lists packages that should not be installed into an image. For
  5083. example::
  5084. PACKAGE_EXCLUDE = "package_name package_name package_name ..."
  5085. You can set this variable globally in your ``local.conf`` file or you
  5086. can attach it to a specific image recipe by using the recipe name
  5087. override::
  5088. PACKAGE_EXCLUDE:pn-target_image = "package_name"
  5089. If you choose to not install a package using this variable and some
  5090. other package is dependent on it (i.e. listed in a recipe's
  5091. :term:`RDEPENDS` variable), the OpenEmbedded build
  5092. system generates a fatal installation error. Because the build system
  5093. halts the process with a fatal error, you can use the variable with
  5094. an iterative development process to remove specific components from a
  5095. system.
  5096. This variable is supported only when using the IPK and RPM
  5097. packaging backends. DEB is not supported.
  5098. See the :term:`NO_RECOMMENDATIONS` and the
  5099. :term:`BAD_RECOMMENDATIONS` variables for
  5100. related information.
  5101. :term:`PACKAGE_EXCLUDE_COMPLEMENTARY`
  5102. Prevents specific packages from being installed when you are
  5103. installing complementary packages.
  5104. You might find that you want to prevent installing certain packages
  5105. when you are installing complementary packages. For example, if you
  5106. are using :term:`IMAGE_FEATURES` to install
  5107. ``dev-pkgs``, you might not want to install all packages from a
  5108. particular multilib. If you find yourself in this situation, you can
  5109. use the :term:`PACKAGE_EXCLUDE_COMPLEMENTARY` variable to specify regular
  5110. expressions to match the packages you want to exclude.
  5111. :term:`PACKAGE_EXTRA_ARCHS`
  5112. Specifies the list of architectures compatible with the device CPU.
  5113. This variable is useful when you build for several different devices
  5114. that use miscellaneous processors such as XScale and ARM926-EJS.
  5115. :term:`PACKAGE_FEED_ARCHS`
  5116. Optionally specifies the package architectures used as part of the
  5117. package feed URIs during the build. When used, the
  5118. :term:`PACKAGE_FEED_ARCHS` variable is appended to the final package feed
  5119. URI, which is constructed using the
  5120. :term:`PACKAGE_FEED_URIS` and
  5121. :term:`PACKAGE_FEED_BASE_PATHS`
  5122. variables.
  5123. .. note::
  5124. You can use the :term:`PACKAGE_FEED_ARCHS`
  5125. variable to allow specific package architectures. If you do
  5126. not need to allow specific architectures, which is a common
  5127. case, you can omit this variable. Omitting the variable results in
  5128. all available architectures for the current machine being included
  5129. into remote package feeds.
  5130. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  5131. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  5132. defined in your ``local.conf`` file::
  5133. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  5134. https://example.com/packagerepos/updates"
  5135. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  5136. PACKAGE_FEED_ARCHS = "all core2-64"
  5137. Given these settings, the resulting package feeds are as follows:
  5138. .. code-block:: none
  5139. https://example.com/packagerepos/release/rpm/all
  5140. https://example.com/packagerepos/release/rpm/core2-64
  5141. https://example.com/packagerepos/release/rpm-dev/all
  5142. https://example.com/packagerepos/release/rpm-dev/core2-64
  5143. https://example.com/packagerepos/updates/rpm/all
  5144. https://example.com/packagerepos/updates/rpm/core2-64
  5145. https://example.com/packagerepos/updates/rpm-dev/all
  5146. https://example.com/packagerepos/updates/rpm-dev/core2-64
  5147. :term:`PACKAGE_FEED_BASE_PATHS`
  5148. Specifies the base path used when constructing package feed URIs. The
  5149. :term:`PACKAGE_FEED_BASE_PATHS` variable makes up the middle portion of a
  5150. package feed URI used by the OpenEmbedded build system. The base path
  5151. lies between the :term:`PACKAGE_FEED_URIS`
  5152. and :term:`PACKAGE_FEED_ARCHS` variables.
  5153. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  5154. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  5155. defined in your ``local.conf`` file::
  5156. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  5157. https://example.com/packagerepos/updates"
  5158. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  5159. PACKAGE_FEED_ARCHS = "all core2-64"
  5160. Given these settings, the resulting package feeds are as follows:
  5161. .. code-block:: none
  5162. https://example.com/packagerepos/release/rpm/all
  5163. https://example.com/packagerepos/release/rpm/core2-64
  5164. https://example.com/packagerepos/release/rpm-dev/all
  5165. https://example.com/packagerepos/release/rpm-dev/core2-64
  5166. https://example.com/packagerepos/updates/rpm/all
  5167. https://example.com/packagerepos/updates/rpm/core2-64
  5168. https://example.com/packagerepos/updates/rpm-dev/all
  5169. https://example.com/packagerepos/updates/rpm-dev/core2-64
  5170. :term:`PACKAGE_FEED_URIS`
  5171. Specifies the front portion of the package feed URI used by the
  5172. OpenEmbedded build system. Each final package feed URI is comprised
  5173. of :term:`PACKAGE_FEED_URIS`,
  5174. :term:`PACKAGE_FEED_BASE_PATHS`, and
  5175. :term:`PACKAGE_FEED_ARCHS` variables.
  5176. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  5177. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  5178. defined in your ``local.conf`` file::
  5179. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  5180. https://example.com/packagerepos/updates"
  5181. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  5182. PACKAGE_FEED_ARCHS = "all core2-64"
  5183. Given these settings, the resulting package feeds are as follows:
  5184. .. code-block:: none
  5185. https://example.com/packagerepos/release/rpm/all
  5186. https://example.com/packagerepos/release/rpm/core2-64
  5187. https://example.com/packagerepos/release/rpm-dev/all
  5188. https://example.com/packagerepos/release/rpm-dev/core2-64
  5189. https://example.com/packagerepos/updates/rpm/all
  5190. https://example.com/packagerepos/updates/rpm/core2-64
  5191. https://example.com/packagerepos/updates/rpm-dev/all
  5192. https://example.com/packagerepos/updates/rpm-dev/core2-64
  5193. :term:`PACKAGE_INSTALL`
  5194. The final list of packages passed to the package manager for
  5195. installation into the image.
  5196. Because the package manager controls actual installation of all
  5197. packages, the list of packages passed using :term:`PACKAGE_INSTALL` is
  5198. not the final list of packages that are actually installed. This
  5199. variable is internal to the image construction code. Consequently, in
  5200. general, you should use the
  5201. :term:`IMAGE_INSTALL` variable to specify
  5202. packages for installation. The exception to this is when working with
  5203. the :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  5204. image. When working with an initial RAM filesystem (:term:`Initramfs`) image,
  5205. use the :term:`PACKAGE_INSTALL` variable. For information on creating an
  5206. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  5207. in the Yocto Project Development Tasks Manual.
  5208. :term:`PACKAGE_INSTALL_ATTEMPTONLY`
  5209. Specifies a list of packages the OpenEmbedded build system attempts
  5210. to install when creating an image. If a listed package fails to
  5211. install, the build system does not generate an error. This variable
  5212. is generally not user-defined.
  5213. :term:`PACKAGE_PREPROCESS_FUNCS`
  5214. Specifies a list of functions run to pre-process the
  5215. :term:`PKGD` directory prior to splitting the files out
  5216. to individual packages.
  5217. :term:`PACKAGE_WRITE_DEPS`
  5218. Specifies a list of dependencies for post-installation and
  5219. pre-installation scripts on native/cross tools. If your
  5220. post-installation or pre-installation script can execute at root filesystem
  5221. creation time rather than on the target but depends on a native tool
  5222. in order to execute, you need to list the tools in
  5223. :term:`PACKAGE_WRITE_DEPS`.
  5224. For information on running post-installation scripts, see the
  5225. ":ref:`dev-manual/new-recipe:post-installation scripts`"
  5226. section in the Yocto Project Development Tasks Manual.
  5227. :term:`PACKAGECONFIG`
  5228. This variable provides a means of enabling or disabling features of a
  5229. recipe on a per-recipe basis. :term:`PACKAGECONFIG` blocks are defined in
  5230. recipes when you specify features and then arguments that define
  5231. feature behaviors. Here is the basic block structure (broken over
  5232. multiple lines for readability)::
  5233. PACKAGECONFIG ??= "f1 f2 f3 ..."
  5234. PACKAGECONFIG[f1] = "\
  5235. --with-f1, \
  5236. --without-f1, \
  5237. build-deps-for-f1, \
  5238. runtime-deps-for-f1, \
  5239. runtime-recommends-for-f1, \
  5240. packageconfig-conflicts-for-f1"
  5241. PACKAGECONFIG[f2] = "\
  5242. ... and so on and so on ...
  5243. The :term:`PACKAGECONFIG` variable itself specifies a space-separated
  5244. list of the features to enable. Following the features, you can
  5245. determine the behavior of each feature by providing up to six
  5246. order-dependent arguments, which are separated by commas. You can
  5247. omit any argument you like but must retain the separating commas. The
  5248. order is important and specifies the following:
  5249. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  5250. if the feature is enabled.
  5251. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  5252. if the feature is disabled.
  5253. #. Additional build dependencies (:term:`DEPENDS`)
  5254. that should be added if the feature is enabled.
  5255. #. Additional runtime dependencies (:term:`RDEPENDS`)
  5256. that should be added if the feature is enabled.
  5257. #. Additional runtime recommendations
  5258. (:term:`RRECOMMENDS`) that should be added if
  5259. the feature is enabled.
  5260. #. Any conflicting (that is, mutually exclusive) :term:`PACKAGECONFIG`
  5261. settings for this feature.
  5262. Consider the following :term:`PACKAGECONFIG` block taken from the
  5263. ``librsvg`` recipe. In this example the feature is ``gtk``, which has
  5264. three arguments that determine the feature's behavior::
  5265. PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3"
  5266. The
  5267. ``--with-gtk3`` and ``gtk+3`` arguments apply only if the feature is
  5268. enabled. In this case, ``--with-gtk3`` is added to the configure
  5269. script argument list and ``gtk+3`` is added to :term:`DEPENDS`. On the
  5270. other hand, if the feature is disabled say through a ``.bbappend``
  5271. file in another layer, then the second argument ``--without-gtk3`` is
  5272. added to the configure script instead.
  5273. The basic :term:`PACKAGECONFIG` structure previously described holds true
  5274. regardless of whether you are creating a block or changing a block.
  5275. When creating a block, use the structure inside your recipe.
  5276. If you want to change an existing :term:`PACKAGECONFIG` block, you can do
  5277. so one of two ways:
  5278. - *Append file:* Create an append file named
  5279. ``recipename.bbappend`` in your layer and override the value of
  5280. :term:`PACKAGECONFIG`. You can either completely override the
  5281. variable::
  5282. PACKAGECONFIG = "f4 f5"
  5283. Or, you can just append the variable::
  5284. PACKAGECONFIG:append = " f4"
  5285. - *Configuration file:* This method is identical to changing the
  5286. block through an append file except you edit your ``local.conf``
  5287. or ``mydistro.conf`` file. As with append files previously
  5288. described, you can either completely override the variable::
  5289. PACKAGECONFIG:pn-recipename = "f4 f5"
  5290. Or, you can just amend the variable::
  5291. PACKAGECONFIG:append:pn-recipename = " f4"
  5292. Consider the following example of a :ref:`ref-classes-cmake` recipe with a systemd service
  5293. in which :term:`PACKAGECONFIG` is used to transform the systemd service
  5294. into a feature that can be easily enabled or disabled via :term:`PACKAGECONFIG`::
  5295. example.c
  5296. example.service
  5297. CMakeLists.txt
  5298. The ``CMakeLists.txt`` file contains::
  5299. if(WITH_SYSTEMD)
  5300. install(FILES ${PROJECT_SOURCE_DIR}/example.service DESTINATION /etc/systemd/systemd)
  5301. endif(WITH_SYSTEMD)
  5302. In order to enable the installation of ``example.service`` we need to
  5303. ensure that ``-DWITH_SYSTEMD=ON`` is passed to the ``cmake`` command
  5304. execution. Recipes that have ``CMakeLists.txt`` generally inherit the
  5305. :ref:`ref-classes-cmake` class, that runs ``cmake`` with
  5306. :term:`EXTRA_OECMAKE`, which :term:`PACKAGECONFIG_CONFARGS` will be
  5307. appended to. Now, knowing that :term:`PACKAGECONFIG_CONFARGS` is
  5308. automatically filled with either the first or second element of
  5309. :term:`PACKAGECONFIG` flag value, the recipe would be like::
  5310. inherit cmake
  5311. PACKAGECONFIG = "systemd"
  5312. PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF"
  5313. A side note to this recipe is to check if ``systemd`` is in fact the used :term:`INIT_MANAGER`
  5314. or not::
  5315. PACKAGECONFIG = "${@'systemd' if d.getVar('INIT_MANAGER') == 'systemd' else ''}"
  5316. :term:`PACKAGECONFIG_CONFARGS`
  5317. A space-separated list of configuration options generated from the
  5318. :term:`PACKAGECONFIG` setting.
  5319. Classes such as :ref:`ref-classes-autotools` and :ref:`ref-classes-cmake`
  5320. use :term:`PACKAGECONFIG_CONFARGS` to pass :term:`PACKAGECONFIG` options
  5321. to ``configure`` and ``cmake``, respectively. If you are using
  5322. :term:`PACKAGECONFIG` but not a class that handles the
  5323. :ref:`ref-tasks-configure` task, then you need to use
  5324. :term:`PACKAGECONFIG_CONFARGS` appropriately.
  5325. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY`
  5326. For recipes inheriting the :ref:`ref-classes-packagegroup` class, setting
  5327. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the
  5328. normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth)
  5329. should not be automatically created by the ``packagegroup`` recipe,
  5330. which is the default behavior.
  5331. :term:`PACKAGES`
  5332. The list of packages the recipe creates. The default value is the
  5333. following::
  5334. ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  5335. During packaging, the :ref:`ref-tasks-package` task
  5336. goes through :term:`PACKAGES` and uses the :term:`FILES`
  5337. variable corresponding to each package to assign files to the
  5338. package. If a file matches the :term:`FILES` variable for more than one
  5339. package in :term:`PACKAGES`, it will be assigned to the earliest
  5340. (leftmost) package.
  5341. Packages in the variable's list that are empty (i.e. where none of
  5342. the patterns in ``FILES:``\ pkg match any files installed by the
  5343. :ref:`ref-tasks-install` task) are not generated,
  5344. unless generation is forced through the
  5345. :term:`ALLOW_EMPTY` variable.
  5346. :term:`PACKAGES_DYNAMIC`
  5347. A promise that your recipe satisfies runtime dependencies for
  5348. optional modules that are found in other recipes.
  5349. :term:`PACKAGES_DYNAMIC` does not actually satisfy the dependencies, it
  5350. only states that they should be satisfied. For example, if a hard,
  5351. runtime dependency (:term:`RDEPENDS`) of another
  5352. package is satisfied at build time through the :term:`PACKAGES_DYNAMIC`
  5353. variable, but a package with the module name is never actually
  5354. produced, then the other package will be broken. Thus, if you attempt
  5355. to include that package in an image, you will get a dependency
  5356. failure from the packaging system during the
  5357. :ref:`ref-tasks-rootfs` task.
  5358. Typically, if there is a chance that such a situation can occur and
  5359. the package that is not created is valid without the dependency being
  5360. satisfied, then you should use :term:`RRECOMMENDS`
  5361. (a soft runtime dependency) instead of :term:`RDEPENDS`.
  5362. For an example of how to use the :term:`PACKAGES_DYNAMIC` variable when
  5363. you are splitting packages, see the
  5364. ":ref:`dev-manual/packages:handling optional module packaging`"
  5365. section in the Yocto Project Development Tasks Manual.
  5366. :term:`PACKAGESPLITFUNCS`
  5367. Specifies a list of functions run to perform additional splitting of
  5368. files into individual packages. Recipes can either prepend to this
  5369. variable or prepend to the ``populate_packages`` function in order to
  5370. perform additional package splitting. In either case, the function
  5371. should set :term:`PACKAGES`,
  5372. :term:`FILES`, :term:`RDEPENDS` and
  5373. other packaging variables appropriately in order to perform the
  5374. desired splitting.
  5375. :term:`PARALLEL_MAKE`
  5376. Extra options passed to the build tool command (``make``,
  5377. ``ninja`` or more specific build engines, like the Go language one)
  5378. during the :ref:`ref-tasks-compile` task, to specify parallel compilation
  5379. on the local build host. This variable is usually in the form "-j x",
  5380. where x represents the maximum number of parallel threads such engines
  5381. can run.
  5382. .. note::
  5383. For software compiled by ``make``, in order for :term:`PARALLEL_MAKE`
  5384. to be effective, ``make`` must be called with
  5385. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  5386. way to ensure this is to use the ``oe_runmake`` function.
  5387. By default, the OpenEmbedded build system automatically sets this
  5388. variable to be equal to the number of cores the build system uses.
  5389. .. note::
  5390. If the software being built experiences dependency issues during
  5391. the :ref:`ref-tasks-compile` task that result in race conditions, you can clear
  5392. the :term:`PARALLEL_MAKE` variable within the recipe as a workaround. For
  5393. information on addressing race conditions, see the
  5394. ":ref:`dev-manual/debugging:debugging parallel make races`"
  5395. section in the Yocto Project Development Tasks Manual.
  5396. For single socket systems (i.e. one CPU), you should not have to
  5397. override this variable to gain optimal parallelism during builds.
  5398. However, if you have very large systems that employ multiple physical
  5399. CPUs, you might want to make sure the :term:`PARALLEL_MAKE` variable is
  5400. not set higher than "-j 20".
  5401. For more information on speeding up builds, see the
  5402. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  5403. section in the Yocto Project Development Tasks Manual.
  5404. For more information on how to limit the resources used during builds, see
  5405. the :doc:`/dev-manual/limiting-resources` section of the Yocto Project
  5406. Development Tasks Manual.
  5407. :term:`PARALLEL_MAKEINST`
  5408. Extra options passed to the build tool install command
  5409. (``make install``, ``ninja install`` or more specific ones)
  5410. during the :ref:`ref-tasks-install` task in order to specify
  5411. parallel installation. This variable defaults to the value of
  5412. :term:`PARALLEL_MAKE`.
  5413. .. note::
  5414. For software compiled by ``make``, in order for :term:`PARALLEL_MAKEINST`
  5415. to be effective, ``make`` must be called with
  5416. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  5417. way to ensure this is to use the ``oe_runmake`` function.
  5418. If the software being built experiences dependency issues during
  5419. the :ref:`ref-tasks-install` task that result in race conditions, you can
  5420. clear the :term:`PARALLEL_MAKEINST` variable within the recipe as a
  5421. workaround. For information on addressing race conditions, see the
  5422. ":ref:`dev-manual/debugging:debugging parallel make races`"
  5423. section in the Yocto Project Development Tasks Manual.
  5424. :term:`PATCHRESOLVE`
  5425. Determines the action to take when a patch fails. You can set this
  5426. variable to one of two values: "noop" and "user".
  5427. The default value of "noop" causes the build to simply fail when the
  5428. OpenEmbedded build system cannot successfully apply a patch. Setting
  5429. the value to "user" causes the build system to launch a shell and
  5430. places you in the right location so that you can manually resolve the
  5431. conflicts.
  5432. Set this variable in your ``local.conf`` file.
  5433. :term:`PATCHTOOL`
  5434. Specifies the utility used to apply patches for a recipe during the
  5435. :ref:`ref-tasks-patch` task. You can specify one of
  5436. three utilities: "patch", "quilt", or "git". The default utility used
  5437. is "quilt" except for the quilt-native recipe itself. Because the
  5438. quilt tool is not available at the time quilt-native is being
  5439. patched, it uses "patch".
  5440. If you wish to use an alternative patching tool, set the variable in
  5441. the recipe using one of the following::
  5442. PATCHTOOL = "patch"
  5443. PATCHTOOL = "quilt"
  5444. PATCHTOOL = "git"
  5445. :term:`PE`
  5446. The epoch of the recipe. By default, this variable is unset. The
  5447. variable is used to make upgrades possible when the versioning scheme
  5448. changes in some backwards incompatible way.
  5449. :term:`PE` is the default value of the :term:`PKGE` variable.
  5450. :term:`PEP517_WHEEL_PATH`
  5451. When used by recipes that inherit the :ref:`ref-classes-python_pep517`
  5452. class, denotes the path to ``dist/`` (short for distribution) where the
  5453. binary archive ``wheel`` is built.
  5454. :term:`PERSISTENT_DIR`
  5455. See :term:`bitbake:PERSISTENT_DIR` in the BitBake manual.
  5456. :term:`PF`
  5457. Specifies the recipe or package name and includes all version and
  5458. revision numbers (i.e. ``glibc-2.13-r20+svnr15508/`` and
  5459. ``bash-4.2-r1/``). This variable is comprised of the following:
  5460. ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`}
  5461. :term:`PIXBUF_PACKAGES`
  5462. When inheriting the :ref:`ref-classes-pixbufcache`
  5463. class, this variable identifies packages that contain the pixbuf
  5464. loaders used with ``gdk-pixbuf``. By default, the
  5465. :ref:`ref-classes-pixbufcache` class assumes that
  5466. the loaders are in the recipe's main package (i.e.
  5467. ``${``\ :term:`PN`\ ``}``). Use this variable if the
  5468. loaders you need are in a package other than that main package.
  5469. :term:`PKG`
  5470. The name of the resulting package created by the OpenEmbedded build
  5471. system.
  5472. .. note::
  5473. When using the :term:`PKG` variable, you must use a package name override.
  5474. For example, when the :ref:`ref-classes-debian` class renames the output
  5475. package, it does so by setting ``PKG:packagename``.
  5476. :term:`PKG_CONFIG_PATH`
  5477. The path to ``pkg-config`` files for the current build context.
  5478. ``pkg-config`` reads this variable from the environment.
  5479. :term:`PKGD`
  5480. Points to the destination directory for files to be packaged before
  5481. they are split into individual packages. This directory defaults to
  5482. the following::
  5483. ${WORKDIR}/package
  5484. Do not change this default.
  5485. :term:`PKGDATA_DIR`
  5486. Points to a shared, global-state directory that holds data generated
  5487. during the packaging process. During the packaging process, the
  5488. :ref:`ref-tasks-packagedata` task packages data
  5489. for each recipe and installs it into this temporary, shared area.
  5490. This directory defaults to the following, which you should not
  5491. change::
  5492. ${STAGING_DIR_HOST}/pkgdata
  5493. For examples of how this data is used, see the
  5494. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5495. section in the Yocto Project Overview and Concepts Manual and the
  5496. ":ref:`dev-manual/debugging:viewing package information with ``oe-pkgdata-util```"
  5497. section in the Yocto Project Development Tasks Manual. For more
  5498. information on the shared, global-state directory, see
  5499. :term:`STAGING_DIR_HOST`.
  5500. :term:`PKGDEST`
  5501. Points to the parent directory for files to be packaged after they
  5502. have been split into individual packages. This directory defaults to
  5503. the following::
  5504. ${WORKDIR}/packages-split
  5505. Under this directory, the build system creates directories for each
  5506. package specified in :term:`PACKAGES`. Do not change
  5507. this default.
  5508. :term:`PKGDESTWORK`
  5509. Points to a temporary work area where the
  5510. :ref:`ref-tasks-package` task saves package metadata.
  5511. The :term:`PKGDESTWORK` location defaults to the following::
  5512. ${WORKDIR}/pkgdata
  5513. Do not change this default.
  5514. The :ref:`ref-tasks-packagedata` task copies the
  5515. package metadata from :term:`PKGDESTWORK` to
  5516. :term:`PKGDATA_DIR` to make it available globally.
  5517. :term:`PKGE`
  5518. The epoch of the package(s) built by the recipe. By default, :term:`PKGE`
  5519. is set to :term:`PE`.
  5520. :term:`PKGR`
  5521. The revision of the package(s) built by the recipe. By default,
  5522. :term:`PKGR` is set to :term:`PR`.
  5523. :term:`PKGV`
  5524. The version of the package(s) built by the recipe. By default,
  5525. :term:`PKGV` is set to :term:`PV`.
  5526. If :term:`PV` contains the ``+`` sign, source control information will be
  5527. included in :term:`PKGV` later in the packaging phase. For more
  5528. information, see the :doc:`/dev-manual/external-scm` section of the Yocto
  5529. Project Development Tasks Manual.
  5530. .. warning::
  5531. Since source control information is included in a late stage by the
  5532. :ref:`ref-classes-package` class, it cannot be seen from the BitBake
  5533. environment with ``bitbake -e`` or ``bitbake-getvar``. Instead, after
  5534. the package is built, the version information can be retrieved with
  5535. ``oe-pkgdata-util package-info <package name>``. See the
  5536. :ref:`dev-manual/debugging:Viewing Package Information with
  5537. ``oe-pkgdata-util``` section of the Yocto Project Development Tasks
  5538. Manual for more information on ``oe-pkgdata-util``.
  5539. :term:`PN`
  5540. This variable can have two separate functions depending on the
  5541. context: a recipe name or a resulting package name.
  5542. :term:`PN` refers to a recipe name in the context of a file used by the
  5543. OpenEmbedded build system as input to create a package. The name is
  5544. normally extracted from the recipe file name. For example, if the
  5545. recipe is named ``expat_2.0.1.bb``, then the default value of :term:`PN`
  5546. will be "expat".
  5547. The variable refers to a package name in the context of a file
  5548. created or produced by the OpenEmbedded build system.
  5549. If applicable, the :term:`PN` variable also contains any special suffix
  5550. or prefix. For example, using ``bash`` to build packages for the
  5551. native machine, :term:`PN` is ``bash-native``. Using ``bash`` to build
  5552. packages for the target and for Multilib, :term:`PN` would be ``bash``
  5553. and ``lib64-bash``, respectively.
  5554. :term:`POPULATE_SDK_POST_HOST_COMMAND`
  5555. Specifies a list of functions to call once the OpenEmbedded build
  5556. system has created the host part of the SDK. You can specify
  5557. functions separated by spaces::
  5558. POPULATE_SDK_POST_HOST_COMMAND += "function"
  5559. If you need to pass the SDK path to a command within a function, you
  5560. can use ``${SDK_DIR}``, which points to the parent directory used by
  5561. the OpenEmbedded build system when creating SDK output. See the
  5562. :term:`SDK_DIR` variable for more information.
  5563. :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  5564. Specifies a list of functions to call once the OpenEmbedded build
  5565. system has created the target part of the SDK. You can specify
  5566. functions separated by spaces::
  5567. POPULATE_SDK_POST_TARGET_COMMAND += "function"
  5568. If you need to pass the SDK path to a command within a function, you
  5569. can use ``${SDK_DIR}``, which points to the parent directory used by
  5570. the OpenEmbedded build system when creating SDK output. See the
  5571. :term:`SDK_DIR` variable for more information.
  5572. :term:`PR`
  5573. The revision of the recipe. The default value for this variable is
  5574. "r0". Subsequent revisions of the recipe conventionally have the
  5575. values "r1", "r2", and so forth. When :term:`PV` increases,
  5576. :term:`PR` is conventionally reset to "r0".
  5577. .. note::
  5578. The OpenEmbedded build system does not need the aid of :term:`PR`
  5579. to know when to rebuild a recipe. The build system uses the task
  5580. :ref:`input checksums <overview-manual/concepts:checksums (signatures)>` along with the
  5581. :ref:`stamp <structure-build-tmp-stamps>` and
  5582. :ref:`overview-manual/concepts:shared state cache`
  5583. mechanisms.
  5584. The :term:`PR` variable primarily becomes significant when a package
  5585. manager dynamically installs packages on an already built image. In
  5586. this case, :term:`PR`, which is the default value of
  5587. :term:`PKGR`, helps the package manager distinguish which
  5588. package is the most recent one in cases where many packages have the
  5589. same :term:`PV` (i.e. :term:`PKGV`). A component having many packages with
  5590. the same :term:`PV` usually means that the packages all install the same
  5591. upstream version, but with later (:term:`PR`) version packages including
  5592. packaging fixes.
  5593. .. note::
  5594. :term:`PR` does not need to be increased for changes that do not change the
  5595. package contents or metadata.
  5596. Because manually managing :term:`PR` can be cumbersome and error-prone,
  5597. an automated solution exists. See the
  5598. ":ref:`dev-manual/packages:working with a pr service`" section
  5599. in the Yocto Project Development Tasks Manual for more information.
  5600. :term:`PREFERRED_PROVIDER`
  5601. If multiple recipes provide the same item, this variable determines
  5602. which recipe is preferred and thus provides the item (i.e. the
  5603. preferred provider). You should always suffix this variable with the
  5604. name of the provided item. And, you should define the variable using
  5605. the preferred recipe's name (:term:`PN`). Here is a common
  5606. example::
  5607. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  5608. In the previous example, multiple recipes are providing "virtual/kernel".
  5609. The :term:`PREFERRED_PROVIDER` variable is set with the name (:term:`PN`) of
  5610. the recipe you prefer to provide "virtual/kernel".
  5611. Here are more examples::
  5612. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  5613. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  5614. For more
  5615. information, see the ":ref:`dev-manual/new-recipe:using virtual providers`"
  5616. section in the Yocto Project Development Tasks Manual.
  5617. .. note::
  5618. If you use a ``virtual/\*`` item with :term:`PREFERRED_PROVIDER`, then any
  5619. recipe that :term:`PROVIDES` that item but is not selected (defined)
  5620. by :term:`PREFERRED_PROVIDER` is prevented from building, which is usually
  5621. desirable since this mechanism is designed to select between mutually
  5622. exclusive alternative providers.
  5623. :term:`PREFERRED_PROVIDERS`
  5624. See :term:`bitbake:PREFERRED_PROVIDERS` in the BitBake manual.
  5625. :term:`PREFERRED_RPROVIDER`
  5626. The :term:`PREFERRED_RPROVIDER` variable works like the
  5627. :term:`PREFERRED_PROVIDER` variable, but it denotes packages that provide a
  5628. *runtime* component. Runtime providers are declared in recipes that set
  5629. the :term:`RPROVIDES` variable for a specific package.
  5630. For example::
  5631. PREFERRED_RPROVIDER_virtual-x-terminal-emulator = "rxvt-unicode"
  5632. This statement sets the runtime provider for the X terminal emulator to
  5633. ``rxvt-unicode``. The ``rxvt-unicode`` package is a runtime provider of
  5634. this component because the ``rxvt-unicode`` recipe set the following
  5635. :term:`RPROVIDES` definition for the ``rxvt-unicode`` (``${PN}``)
  5636. package::
  5637. RPROVIDES:${PN} = "virtual-x-terminal-emulator"
  5638. For more information on virtual providers, see the
  5639. ":ref:`dev-manual/new-recipe:using virtual providers`" section in the
  5640. Yocto Project Development Tasks Manual.
  5641. :term:`PREFERRED_TOOLCHAIN`
  5642. The :term:`PREFERRED_TOOLCHAIN` variable selects the toolchain to use for
  5643. compiling recipes. This variable is not meant to be overridden globally.
  5644. Instead, the values of :term:`PREFERRED_TOOLCHAIN_TARGET`,
  5645. :term:`PREFERRED_TOOLCHAIN_NATIVE` and :term:`PREFERRED_TOOLCHAIN_SDK`
  5646. should be overridden.
  5647. :term:`PREFERRED_TOOLCHAIN_NATIVE`
  5648. This variable controls the toolchain used for compiling
  5649. :ref:`ref-classes-native` recipes.
  5650. This variable should be set globally from a :term:`configuration file`.
  5651. See :term:`PREFERRED_TOOLCHAIN_TARGET` for more details on the possible
  5652. values for this variable.
  5653. A recipe that does not support the toolchain specified by
  5654. :term:`PREFERRED_TOOLCHAIN_NATIVE` can override it locally with
  5655. :term:`TOOLCHAIN_NATIVE`.
  5656. :term:`PREFERRED_TOOLCHAIN_SDK`
  5657. This variable controls the toolchain used for compiling
  5658. :ref:`ref-classes-nativesdk` recipes.
  5659. This variable should be set globally from a :term:`configuration file`.
  5660. See :term:`PREFERRED_TOOLCHAIN_TARGET` for more details on the possible
  5661. values for this variable.
  5662. :term:`PREFERRED_TOOLCHAIN_TARGET`
  5663. This variable controls the toolchain used for compiling recipes in the
  5664. architecture of the target :term:`MACHINE`.
  5665. There are two possible values for this variable at the moment:
  5666. - :ref:`gcc <ref-classes-toolchain-gcc>` (default): the GCC/Binutils toolchain.
  5667. - :ref:`clang <ref-classes-toolchain-clang>`: the Clang/LLVM toolchain.
  5668. :term:`PREFERRED_TOOLCHAIN_TARGET` will make the :ref:`ref-classes-base`
  5669. class inherit one of the toolchain classes defined in
  5670. :oe_git:`meta/classes/toolchain
  5671. </openembedded-core/tree/meta/classes/toolchain>`. As a consequence, this
  5672. variable should be set globally from a :term:`configuration file`.
  5673. These classes define commands used for cross-compiling such as :term:`CC`,
  5674. :term:`CXX`, :term:`LD` and so on.
  5675. A recipe that does not support the toolchain specified by
  5676. :term:`PREFERRED_TOOLCHAIN_TARGET` can override it locally with
  5677. :term:`TOOLCHAIN`.
  5678. :term:`PREFERRED_VERSION`
  5679. If there are multiple versions of a recipe available, this variable
  5680. determines which version should be given preference. You must always
  5681. suffix the variable with the :term:`PN` you want to select (`python` in
  5682. the first example below), and you should specify the :term:`PV`
  5683. accordingly (`3.4.0` in the example).
  5684. The :term:`PREFERRED_VERSION` variable supports limited wildcard use
  5685. through the "``%``" character. You can use the character to match any
  5686. number of characters, which can be useful when specifying versions
  5687. that contain long revision numbers that potentially change. Here are
  5688. two examples::
  5689. PREFERRED_VERSION_python = "3.4.0"
  5690. PREFERRED_VERSION_linux-yocto = "5.0%"
  5691. .. note::
  5692. The use of the "%" character is limited in that it only works at the end of the
  5693. string. You cannot use the wildcard character in any other
  5694. location of the string.
  5695. The specified version is matched against :term:`PV`, which does not
  5696. necessarily match the version part of the recipe's filename.
  5697. If you want to select a recipe named ``foo_git.bb`` which has :term:`PV`
  5698. set to ``1.2.3+git``, you can do so by setting ```PREFERRED_VERSION_foo``
  5699. to ``1.2.3%`` (i.e. simply setting ``PREFERRED_VERSION_foo`` to ``git``
  5700. will not work as the name of the recipe isn't used, but rather its
  5701. :term:`PV` definition).
  5702. Sometimes the :term:`PREFERRED_VERSION` variable can be set by
  5703. configuration files in a way that is hard to change. You can use
  5704. :term:`OVERRIDES` to set a machine-specific
  5705. override. Here is an example::
  5706. PREFERRED_VERSION_linux-yocto:qemux86 = "5.0%"
  5707. Although not recommended, worst case, you can also use the
  5708. "forcevariable" override, which is the strongest override possible.
  5709. Here is an example::
  5710. PREFERRED_VERSION_linux-yocto:forcevariable = "5.0%"
  5711. .. note::
  5712. The ``:forcevariable`` override is not handled specially. This override
  5713. only works because the default value of :term:`OVERRIDES` includes "forcevariable".
  5714. If a recipe with the specified version is not available, a warning
  5715. message will be shown. See :term:`REQUIRED_VERSION` if you want this
  5716. to be an error instead.
  5717. :term:`PREMIRRORS`
  5718. Specifies additional paths from which the OpenEmbedded build system
  5719. gets source code. When the build system searches for source code, it
  5720. first tries the local download directory. If that location fails, the
  5721. build system tries locations defined by :term:`PREMIRRORS`, the upstream
  5722. source, and then locations specified by
  5723. :term:`MIRRORS` in that order.
  5724. The default value for :term:`PREMIRRORS` is defined in the
  5725. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  5726. Typically, you could add a specific server for the build system to
  5727. attempt before any others by adding something like the following to
  5728. the ``local.conf`` configuration file in the
  5729. :term:`Build Directory`::
  5730. PREMIRRORS:prepend = "\
  5731. git://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5732. ftp://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5733. http://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5734. https://.*/.* &YOCTO_DL_URL;/mirror/sources/"
  5735. These changes cause the
  5736. build system to intercept Git, FTP, HTTP, and HTTPS requests and
  5737. direct them to the ``http://`` sources mirror. You can use
  5738. ``file://`` URLs to point to local directories or network shares as
  5739. well.
  5740. :term:`PRIORITY`
  5741. Indicates the importance of a package.
  5742. :term:`PRIORITY` is considered to be part of the distribution policy
  5743. because the importance of any given recipe depends on the purpose for
  5744. which the distribution is being produced. Thus, :term:`PRIORITY` is not
  5745. normally set within recipes.
  5746. You can set :term:`PRIORITY` to "required", "standard", "extra", and
  5747. "optional", which is the default.
  5748. :term:`PRIVATE_LIBS`
  5749. Specifies libraries installed within a recipe that should be ignored
  5750. by the OpenEmbedded build system's shared library resolver. This
  5751. variable is typically used when software being built by a recipe has
  5752. its own private versions of a library normally provided by another
  5753. recipe. In this case, you would not want the package containing the
  5754. private libraries to be set as a dependency on other unrelated
  5755. packages that should instead depend on the package providing the
  5756. standard version of the library.
  5757. Libraries specified in this variable should be specified by their
  5758. file name. For example, from the Firefox recipe in meta-browser::
  5759. PRIVATE_LIBS = "libmozjs.so \
  5760. libxpcom.so \
  5761. libnspr4.so \
  5762. libxul.so \
  5763. libmozalloc.so \
  5764. libplc4.so \
  5765. libplds4.so"
  5766. For more information, see the
  5767. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5768. section in the Yocto Project Overview and Concepts Manual.
  5769. :term:`PROVIDES`
  5770. A list of aliases by which a particular recipe can be known. By
  5771. default, a recipe's own :term:`PN` is implicitly already in its
  5772. :term:`PROVIDES` list and therefore does not need to mention that it
  5773. provides itself. If a recipe uses :term:`PROVIDES`, the additional
  5774. aliases are synonyms for the recipe and can be useful for satisfying
  5775. dependencies of other recipes during the build as specified by
  5776. :term:`DEPENDS`.
  5777. Consider the following example :term:`PROVIDES` statement from the recipe
  5778. file ``eudev_3.2.9.bb``::
  5779. PROVIDES += "udev"
  5780. The :term:`PROVIDES` statement
  5781. results in the "eudev" recipe also being available as simply "udev".
  5782. .. note::
  5783. A recipe's own recipe name (:term:`PN`) is always implicitly prepended
  5784. to :term:`PROVIDES`, so while using "+=" in the above example may not be
  5785. strictly necessary it is recommended to avoid confusion.
  5786. In addition to providing recipes under alternate names, the
  5787. :term:`PROVIDES` mechanism is also used to implement virtual targets. A
  5788. virtual target is a name that corresponds to some particular
  5789. functionality (e.g. a Linux kernel). Recipes that provide the
  5790. functionality in question list the virtual target in :term:`PROVIDES`.
  5791. Recipes that depend on the functionality in question can include the
  5792. virtual target in :term:`DEPENDS` to leave the choice of provider open.
  5793. Conventionally, virtual targets have names on the form
  5794. "virtual/function" (e.g. "virtual/kernel"). The slash is simply part
  5795. of the name and has no syntactical significance.
  5796. The :term:`PREFERRED_PROVIDER` variable is
  5797. used to select which particular recipe provides a virtual target.
  5798. .. note::
  5799. A corresponding mechanism for virtual runtime dependencies (packages)
  5800. exists. However, the mechanism does not depend on any special
  5801. functionality beyond ordinary variable assignments. For example,
  5802. :term:`VIRTUAL-RUNTIME_dev_manager <VIRTUAL-RUNTIME>` refers to the
  5803. package of the component that manages the ``/dev`` directory.
  5804. Setting the "preferred provider" for runtime dependencies is as
  5805. simple as using the following assignment in a configuration file::
  5806. VIRTUAL-RUNTIME_dev_manager = "udev"
  5807. :term:`PRSERV_HOST`
  5808. The network based :term:`PR` service host and port.
  5809. The ``conf/templates/default/local.conf.sample.extended`` configuration
  5810. file in the :term:`Source Directory` shows how the :term:`PRSERV_HOST`
  5811. variable is set::
  5812. PRSERV_HOST = "localhost:0"
  5813. You must
  5814. set the variable if you want to automatically start a local :ref:`PR
  5815. service <dev-manual/packages:working with a pr service>`. You can
  5816. set :term:`PRSERV_HOST` to other values to use a remote PR service.
  5817. :term:`PRSERV_UPSTREAM`
  5818. This variable can be used to specify an upstream PR server for the local
  5819. PR server to connect to, in the form of ``host:port``.
  5820. This makes it possible to implement local fixes to an upstream package.
  5821. :term:`PSEUDO_IGNORE_PATHS`
  5822. A comma-separated (without spaces) list of path prefixes that should be ignored
  5823. by pseudo when monitoring and recording file operations, in order to avoid
  5824. problems with files being written to outside of the pseudo context and
  5825. reduce pseudo's overhead. A path is ignored if it matches any prefix in the list
  5826. and can include partial directory (or file) names. In case a path prefix is
  5827. present in both :term:`PSEUDO_IGNORE_PATHS` and in :term:`PSEUDO_INCLUDE_PATHS`,
  5828. :term:`PSEUDO_INCLUDE_PATHS` takes precedence.
  5829. :term:`PSEUDO_INCLUDE_PATHS`
  5830. A comma-separated (without spaces) list of path prefixes that should be included
  5831. by pseudo when monitoring and recording file operations, in order to avoid
  5832. problems with files being written to outside of the pseudo context and
  5833. reduce :ref:`pseudo <overview-manual/concepts:Fakeroot and Pseudo>`'s overhead.
  5834. A path is included if it matches any prefix in the list and can include
  5835. partial directory (or file) names. In case a path prefix is present in both
  5836. :term:`PSEUDO_IGNORE_PATHS` and in :term:`PSEUDO_INCLUDE_PATHS`,
  5837. :term:`PSEUDO_INCLUDE_PATHS` takes precedence.
  5838. :term:`PTEST_ENABLED`
  5839. Specifies whether or not :ref:`Package
  5840. Test <test-manual/ptest:testing packages with ptest>` (ptest)
  5841. functionality is enabled when building a recipe. You should not set
  5842. this variable directly. Enabling and disabling building Package Tests
  5843. at build time should be done by adding "ptest" to (or removing it
  5844. from) :term:`DISTRO_FEATURES`.
  5845. :term:`PTEST_PYTEST_DIR`
  5846. Within the :ref:`ref-classes-ptest-python-pytest` class, the
  5847. :term:`PTEST_PYTEST_DIR` variable represents the path within the source
  5848. tree of a Python package holding the unit tests to be run with the
  5849. `pytest <https://docs.pytest.org>`__ framework. The default value for this
  5850. variable is ``tests``.
  5851. For more information, see
  5852. the :ref:`ref-classes-ptest-python-pytest` class documentation.
  5853. :term:`PV`
  5854. The version of the recipe. The version is normally extracted from the
  5855. recipe filename. For example, if the recipe is named
  5856. ``expat_2.0.1.bb``, then the default value of :term:`PV` will be "2.0.1".
  5857. :term:`PV` is generally not overridden within a recipe unless it is
  5858. building an unstable (i.e. development) version from a source code
  5859. repository (e.g. Git or Subversion).
  5860. :term:`PV` is the default value of the :term:`PKGV` variable.
  5861. :term:`PYPI_PACKAGE`
  5862. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5863. `PyPI <https://pypi.org/>`__ package name to be built. The default value
  5864. is set based upon :term:`BPN` (stripping any "python-" or "python3-"
  5865. prefix off if present), however for some packages it will need to be set
  5866. explicitly if that will not match the package name (e.g. where the
  5867. package name has a prefix, underscores, uppercase letters etc.)
  5868. :term:`PYPI_PACKAGE_EXT`
  5869. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5870. file extension to use when fetching a package from `PyPI
  5871. <https://pypi.org/>`__. Default is ``tar.gz``.
  5872. :term:`PYPI_SRC_URI`
  5873. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5874. full `pythonhosted <https://files.pythonhosted.org/>`__ URI for
  5875. fetching the package to be built. The default value is constructed
  5876. based upon :term:`PYPI_PACKAGE`, :term:`PYPI_PACKAGE_EXT`, and
  5877. :term:`PV`. Most recipes will not need to set this variable unless
  5878. they are building an unstable (i.e. development) version.
  5879. :term:`PYTHON_ABI`
  5880. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5881. class, denotes the Application Binary Interface (ABI) currently in use
  5882. for Python. By default, the ABI is "m". You do not have to set this
  5883. variable as the OpenEmbedded build system sets it for you.
  5884. The OpenEmbedded build system uses the ABI to construct directory
  5885. names used when installing the Python headers and libraries in
  5886. sysroot (e.g. ``.../python3.3m/...``).
  5887. :term:`QA_EMPTY_DIRS`
  5888. Specifies a list of directories that are expected to be empty when
  5889. packaging; if ``empty-dirs`` appears in :term:`ERROR_QA` or
  5890. :term:`WARN_QA` these will be checked and an error or warning
  5891. (respectively) will be produced.
  5892. The default :term:`QA_EMPTY_DIRS` value is set in
  5893. :ref:`insane.bbclass <ref-classes-insane>`.
  5894. :term:`QA_EMPTY_DIRS_RECOMMENDATION`
  5895. Specifies a recommendation for why a directory must be empty,
  5896. which will be included in the error message if a specific directory
  5897. is found to contain files. Must be overridden with the directory
  5898. path to match on.
  5899. If no recommendation is specified for a directory, then the default
  5900. "but it is expected to be empty" will be used.
  5901. An example message shows if files were present in '/dev'::
  5902. QA_EMPTY_DIRS_RECOMMENDATION:/dev = "but all devices must be created at runtime"
  5903. :term:`RANLIB`
  5904. The minimal command and arguments to run :manpage:`ranlib <ranlib(1)>`.
  5905. :term:`RCONFLICTS`
  5906. The list of packages that conflict with packages. Note that packages
  5907. will not be installed if conflicting packages are not first removed.
  5908. Like all package-controlling variables, you must always use them in
  5909. conjunction with a package name override. Here is an example::
  5910. RCONFLICTS:${PN} = "another_conflicting_package_name"
  5911. BitBake, which the OpenEmbedded build system uses, supports
  5912. specifying versioned dependencies. Although the syntax varies
  5913. depending on the packaging format, BitBake hides these differences
  5914. from you. Here is the general syntax to specify versions with the
  5915. :term:`RCONFLICTS` variable::
  5916. RCONFLICTS:${PN} = "package (operator version)"
  5917. For ``operator``, you can specify the following:
  5918. - =
  5919. - <
  5920. - >
  5921. - <=
  5922. - >=
  5923. For example, the following sets up a dependency on version 1.2 or
  5924. greater of the package ``foo``::
  5925. RCONFLICTS:${PN} = "foo (>= 1.2)"
  5926. :term:`RDEPENDS`
  5927. Lists runtime dependencies of a package. These dependencies are other
  5928. packages that must be installed in order for the package to function
  5929. correctly. As an example, the following assignment declares that the
  5930. package ``foo`` needs the packages ``bar`` and ``baz`` to be
  5931. installed::
  5932. RDEPENDS:foo = "bar baz"
  5933. The most common types of package
  5934. runtime dependencies are automatically detected and added. Therefore,
  5935. most recipes do not need to set :term:`RDEPENDS`. For more information,
  5936. see the
  5937. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5938. section in the Yocto Project Overview and Concepts Manual.
  5939. The practical effect of the above :term:`RDEPENDS` assignment is that
  5940. ``bar`` and ``baz`` will be declared as dependencies inside the
  5941. package ``foo`` when it is written out by one of the
  5942. :ref:`do_package_write_* <ref-tasks-package_write_deb>` tasks.
  5943. Exactly how this is done depends on which package format is used,
  5944. which is determined by
  5945. :term:`PACKAGE_CLASSES`. When the
  5946. corresponding package manager installs the package, it will know to
  5947. also install the packages on which it depends.
  5948. To ensure that the packages ``bar`` and ``baz`` get built, the
  5949. previous :term:`RDEPENDS` assignment also causes a task dependency to be
  5950. added. This dependency is from the recipe's
  5951. :ref:`ref-tasks-build` (not to be confused with
  5952. :ref:`ref-tasks-compile`) task to the
  5953. :ref:`do_package_write_* <ref-tasks-package_write_deb>` task of the recipes that build ``bar`` and
  5954. ``baz``.
  5955. The names of the packages you list within :term:`RDEPENDS` must be the
  5956. names of other packages --- they cannot be recipe names. Although
  5957. package names and recipe names usually match, the important point
  5958. here is that you are providing package names within the :term:`RDEPENDS`
  5959. variable. For an example of the default list of packages created from
  5960. a recipe, see the :term:`PACKAGES` variable.
  5961. Because the :term:`RDEPENDS` variable applies to packages being built,
  5962. you should always use the variable in a form with an attached package
  5963. name (remember that a single recipe can build multiple packages). For
  5964. example, suppose you are building a development package that depends
  5965. on the ``perl`` package. In this case, you would use the following
  5966. :term:`RDEPENDS` statement::
  5967. RDEPENDS:${PN}-dev += "perl"
  5968. In the example,
  5969. the development package depends on the ``perl`` package. Thus, the
  5970. :term:`RDEPENDS` variable has the ``${PN}-dev`` package name as part of
  5971. the variable.
  5972. .. note::
  5973. ``RDEPENDS:${PN}-dev`` includes ``${``\ :term:`PN`\ ``}``
  5974. by default. This default is set in the BitBake configuration file
  5975. (``meta/conf/bitbake.conf``). Be careful not to accidentally remove
  5976. ``${PN}`` when modifying ``RDEPENDS:${PN}-dev``. Use the "+=" operator
  5977. rather than the "=" operator.
  5978. The package names you use with :term:`RDEPENDS` must appear as they would
  5979. in the :term:`PACKAGES` variable. The :term:`PKG` variable
  5980. allows a different name to be used for the final package (e.g. the
  5981. :ref:`ref-classes-debian` class uses this to rename
  5982. packages), but this final package name cannot be used with
  5983. :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be
  5984. independent of the package format used.
  5985. BitBake, which the OpenEmbedded build system uses, supports
  5986. specifying versioned dependencies. Although the syntax varies
  5987. depending on the packaging format, BitBake hides these differences
  5988. from you. Here is the general syntax to specify versions with the
  5989. :term:`RDEPENDS` variable::
  5990. RDEPENDS:${PN} = "package (operator version)"
  5991. For ``operator``, you can specify the following:
  5992. - =
  5993. - <
  5994. - >
  5995. - <=
  5996. - >=
  5997. For version, provide the version number.
  5998. .. note::
  5999. You can use :term:`EXTENDPKGV` to provide a full package version
  6000. specification.
  6001. For example, the following sets up a dependency on version 1.2 or
  6002. greater of the package ``foo``::
  6003. RDEPENDS:${PN} = "foo (>= 1.2)"
  6004. For information on build-time dependencies, see the :term:`DEPENDS`
  6005. variable. You can also see the
  6006. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  6007. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`" sections in the
  6008. BitBake User Manual for additional information on tasks and dependencies.
  6009. :term:`READELF`
  6010. The minimal command and arguments to run :manpage:`readelf <readelf(1)>`.
  6011. :term:`RECIPE_MAINTAINER`
  6012. This variable defines the name and e-mail address of the maintainer of a
  6013. recipe. Such information can be used by human users submitted changes,
  6014. and by automated tools to send notifications, for example about
  6015. vulnerabilities or source updates.
  6016. The variable can be defined in a global distribution :oe_git:`maintainers.inc
  6017. </openembedded-core/tree/meta/conf/distro/include/maintainers.inc>` file::
  6018. meta/conf/distro/include/maintainers.inc:RECIPE_MAINTAINER:pn-sysvinit = "Ross Burton <ross.burton@arm.com>"
  6019. It can also be directly defined in a recipe,
  6020. for example in the ``libgpiod`` one::
  6021. RECIPE_MAINTAINER = "Bartosz Golaszewski <brgl@bgdev.pl>"
  6022. :term:`RECIPE_NO_UPDATE_REASON`
  6023. If a recipe should not be replaced by a more recent upstream version,
  6024. putting the reason why in this variable in a recipe allows
  6025. ``devtool check-upgrade-status`` command to display it, as explained
  6026. in the ":ref:`ref-manual/devtool-reference:checking on the upgrade status of a recipe`"
  6027. section.
  6028. :term:`RECIPE_SYSROOT`
  6029. This variable points to the directory that holds all files populated from
  6030. recipes specified in :term:`DEPENDS`. As the name indicates,
  6031. think of this variable as a custom root (``/``) for the recipe that will be
  6032. used by the compiler in order to find headers and other files needed to complete
  6033. its job.
  6034. This variable is related to :term:`STAGING_DIR_HOST` or :term:`STAGING_DIR_TARGET`
  6035. according to the type of the recipe and the build target.
  6036. To better understand this variable, consider the following examples:
  6037. - For ``#include <header.h>``, ``header.h`` should be in ``"${RECIPE_SYSROOT}/usr/include"``
  6038. - For ``-lexample``, ``libexample.so`` should be in ``"${RECIPE_SYSROOT}/lib"``
  6039. or other library sysroot directories.
  6040. The default value is ``"${WORKDIR}/recipe-sysroot"``.
  6041. Do not modify it.
  6042. :term:`RECIPE_SYSROOT_NATIVE`
  6043. This is similar to :term:`RECIPE_SYSROOT` but the populated files are from
  6044. ``-native`` recipes. This allows a recipe built for the target machine to
  6045. use ``native`` tools.
  6046. This variable is related to :term:`STAGING_DIR_NATIVE`.
  6047. The default value is ``"${WORKDIR}/recipe-sysroot-native"``.
  6048. Do not modify it.
  6049. :term:`RECIPE_UPGRADE_EXTRA_TASKS`
  6050. When upgrading a recipe with ``devtool upgrade``, the variable
  6051. :term:`RECIPE_UPGRADE_EXTRA_TASKS` specifies a space-delimited list of
  6052. tasks to run after the new sources have been unpacked.
  6053. For some recipes, after the new source has been unpacked, additional tasks
  6054. may need to be run during an upgrade. A good example of this is recipes
  6055. which inherit :ref:`ref-classes-cargo-update-recipe-crates`, where the
  6056. `do_update_crates` task needs to be run whenever Cargo.toml/Cargo.lock have
  6057. changed in the source.
  6058. :term:`REPODIR`
  6059. See :term:`bitbake:REPODIR` in the BitBake manual.
  6060. :term:`REQUIRED_DISTRO_FEATURES`
  6061. When inheriting the :ref:`ref-classes-features_check`
  6062. class, this variable identifies distribution features that must exist
  6063. in the current configuration in order for the OpenEmbedded build
  6064. system to build the recipe. In other words, if the
  6065. :term:`REQUIRED_DISTRO_FEATURES` variable lists a feature that does not
  6066. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  6067. the recipe will be skipped, and if the build system attempts to build
  6068. the recipe then an error will be triggered.
  6069. :term:`REQUIRED_VERSION`
  6070. If there are multiple versions of a recipe available, this variable
  6071. determines which version should be given preference.
  6072. :term:`REQUIRED_VERSION` works in exactly the same manner as
  6073. :term:`PREFERRED_VERSION`, except that if the specified version is not
  6074. available then an error message is shown and the build fails
  6075. immediately.
  6076. If both :term:`REQUIRED_VERSION` and :term:`PREFERRED_VERSION` are set
  6077. for the same recipe, the :term:`REQUIRED_VERSION` value applies.
  6078. :term:`RETAIN_DIRS_ALWAYS`
  6079. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  6080. space-separated recipe-specific directories to always save in a tarball
  6081. whether the recipe build has failed or not.
  6082. :term:`RETAIN_DIRS_FAILURE`
  6083. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  6084. space-separated recipe-specific directories to save in a tarball on
  6085. failure of the recipe's build.
  6086. :term:`RETAIN_DIRS_GLOBAL_ALWAYS`
  6087. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  6088. space-separated directories that are not specific to a recipe to save in a
  6089. tarball whether the build has failed or not.
  6090. :term:`RETAIN_DIRS_GLOBAL_FAILURE`
  6091. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  6092. space-separated directories that are not specific to a recipe to save in a
  6093. tarball on build failure.
  6094. :term:`RETAIN_ENABLED`
  6095. Disables the creation of a tarball of the work directory done by the
  6096. :ref:`ref-classes-retain` class. Can be set to specific recipes to disable
  6097. the class when the class was inherited globally with :term:`INHERIT`.
  6098. :term:`RETAIN_OUTDIR`
  6099. When inheriting the :ref:`ref-classes-retain` class, this variable
  6100. specifies the directory where to save the tarball of the work directory.
  6101. The default directory is ``${TMPDIR}/retain``.
  6102. :term:`RETAIN_TARBALL_SUFFIX`
  6103. When inheriting the :ref:`ref-classes-retain` class, this variable
  6104. specifies the suffix of the tarball of the work directory. The default
  6105. suffix is ``${DATETIME}.tar.gz``.
  6106. :term:`RM_WORK_EXCLUDE`
  6107. With :ref:`ref-classes-rm-work` enabled, this variable
  6108. specifies a list of recipes whose work directories should not be removed.
  6109. See the ":ref:`ref-classes-rm-work`" section for more details.
  6110. :term:`ROOT_HOME`
  6111. Defines the root home directory. By default, this directory is set as
  6112. follows in the BitBake configuration file::
  6113. ROOT_HOME ??= "/home/root"
  6114. .. note::
  6115. This default value is likely used because some embedded solutions
  6116. prefer to have a read-only root filesystem and prefer to keep
  6117. writeable data in one place.
  6118. When setting ``INIT_MANAGER = systemd``, the default will be set to::
  6119. ROOT_HOME ?= "/root"
  6120. You can also override the default by setting the variable in your distro
  6121. configuration or in the ``local.conf`` file.
  6122. :term:`ROOTFS`
  6123. Indicates a filesystem image to include as the root filesystem.
  6124. The :term:`ROOTFS` variable is an optional variable used with the
  6125. :ref:`ref-classes-image-live` class.
  6126. :term:`ROOTFS_POSTINSTALL_COMMAND`
  6127. Specifies a list of functions to call after the OpenEmbedded build
  6128. system has installed packages. You can specify functions separated by
  6129. spaces::
  6130. ROOTFS_POSTINSTALL_COMMAND += "function"
  6131. If you need to pass the root filesystem path to a command within a
  6132. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  6133. directory that becomes the root filesystem image. See the
  6134. :term:`IMAGE_ROOTFS` variable for more
  6135. information.
  6136. :term:`ROOTFS_POSTPROCESS_COMMAND`
  6137. Specifies a list of functions to call once the OpenEmbedded build
  6138. system has created the root filesystem. You can specify functions
  6139. separated by spaces::
  6140. ROOTFS_POSTPROCESS_COMMAND += "function"
  6141. If you need to pass the root filesystem path to a command within a
  6142. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  6143. directory that becomes the root filesystem image. See the
  6144. :term:`IMAGE_ROOTFS` variable for more
  6145. information.
  6146. :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  6147. Specifies a list of functions to call after the OpenEmbedded build
  6148. system has removed unnecessary packages. When runtime package
  6149. management is disabled in the image, several packages are removed
  6150. including ``base-passwd``, ``shadow``, and ``update-alternatives``.
  6151. You can specify functions separated by spaces::
  6152. ROOTFS_POSTUNINSTALL_COMMAND += "function"
  6153. If you need to pass the root filesystem path to a command within a
  6154. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  6155. directory that becomes the root filesystem image. See the
  6156. :term:`IMAGE_ROOTFS` variable for more
  6157. information.
  6158. :term:`ROOTFS_PREPROCESS_COMMAND`
  6159. Specifies a list of functions to call before the OpenEmbedded build
  6160. system has created the root filesystem. You can specify functions
  6161. separated by spaces::
  6162. ROOTFS_PREPROCESS_COMMAND += "function"
  6163. If you need to pass the root filesystem path to a command within a
  6164. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  6165. directory that becomes the root filesystem image. See the
  6166. :term:`IMAGE_ROOTFS` variable for more
  6167. information.
  6168. :term:`RPMBUILD_EXTRA_PARAMS`
  6169. Specifies extra user-defined parameters for the ``rpmbuild`` command.
  6170. :term:`RPROVIDES`
  6171. A list of package name aliases that a package also provides. These
  6172. aliases are useful for satisfying runtime dependencies of other
  6173. packages both during the build and on the target (as specified by
  6174. :term:`RDEPENDS`).
  6175. .. note::
  6176. A package's own name is implicitly already in its :term:`RPROVIDES` list.
  6177. As with all package-controlling variables, you must always use the
  6178. variable in conjunction with a package name override. Here is an
  6179. example::
  6180. RPROVIDES:${PN} = "widget-abi-2"
  6181. :term:`RRECOMMENDS`
  6182. A list of packages that extends the usability of a package being
  6183. built. The package being built does not depend on this list of
  6184. packages in order to successfully build, but rather uses them for
  6185. extended usability. To specify runtime dependencies for packages, see
  6186. the :term:`RDEPENDS` variable.
  6187. The package manager will automatically install the :term:`RRECOMMENDS`
  6188. list of packages when installing the built package. However, you can
  6189. prevent listed packages from being installed by using the
  6190. :term:`BAD_RECOMMENDATIONS`,
  6191. :term:`NO_RECOMMENDATIONS`, and
  6192. :term:`PACKAGE_EXCLUDE` variables.
  6193. Packages specified in :term:`RRECOMMENDS` need not actually be produced.
  6194. However, there must be a recipe providing each package, either
  6195. through the :term:`PACKAGES` or
  6196. :term:`PACKAGES_DYNAMIC` variables or the
  6197. :term:`RPROVIDES` variable, or an error will occur
  6198. during the build. If such a recipe does exist and the package is not
  6199. produced, the build continues without error.
  6200. Because the :term:`RRECOMMENDS` variable applies to packages being built,
  6201. you should always attach an override to the variable to specify the
  6202. particular package whose usability is being extended. For example,
  6203. suppose you are building a development package that is extended to
  6204. support wireless functionality. In this case, you would use the
  6205. following::
  6206. RRECOMMENDS:${PN}-dev += "wireless_package_name"
  6207. In the
  6208. example, the package name (``${PN}-dev``) must appear as it would in
  6209. the :term:`PACKAGES` namespace before any renaming of the output package
  6210. by classes such as :ref:`ref-classes-debian`.
  6211. BitBake, which the OpenEmbedded build system uses, supports
  6212. specifying versioned recommends. Although the syntax varies depending
  6213. on the packaging format, BitBake hides these differences from you.
  6214. Here is the general syntax to specify versions with the
  6215. :term:`RRECOMMENDS` variable::
  6216. RRECOMMENDS:${PN} = "package (operator version)"
  6217. For ``operator``, you can specify the following:
  6218. - =
  6219. - <
  6220. - >
  6221. - <=
  6222. - >=
  6223. For example, the following sets up a recommend on version 1.2 or
  6224. greater of the package ``foo``::
  6225. RRECOMMENDS:${PN} = "foo (>= 1.2)"
  6226. :term:`RREPLACES`
  6227. A list of packages replaced by a package. The package manager uses
  6228. this variable to determine which package should be installed to
  6229. replace other package(s) during an upgrade. In order to also have the
  6230. other package(s) removed at the same time, you must add the name of
  6231. the other package to the :term:`RCONFLICTS` variable.
  6232. As with all package-controlling variables, you must use this variable
  6233. in conjunction with a package name override. Here is an example::
  6234. RREPLACES:${PN} = "other_package_being_replaced"
  6235. BitBake, which the OpenEmbedded build system uses, supports
  6236. specifying versioned replacements. Although the syntax varies
  6237. depending on the packaging format, BitBake hides these differences
  6238. from you. Here is the general syntax to specify versions with the
  6239. :term:`RREPLACES` variable::
  6240. RREPLACES:${PN} = "package (operator version)"
  6241. For ``operator``, you can specify the following:
  6242. - =
  6243. - <
  6244. - >
  6245. - <=
  6246. - >=
  6247. For example, the following sets up a replacement using version 1.2
  6248. or greater of the package ``foo``::
  6249. RREPLACES:${PN} = "foo (>= 1.2)"
  6250. :term:`RSUGGESTS`
  6251. A list of additional packages that you can suggest for installation
  6252. by the package manager at the time a package is installed. Not all
  6253. package managers support this functionality.
  6254. As with all package-controlling variables, you must always use this
  6255. variable in conjunction with a package name override. Here is an
  6256. example::
  6257. RSUGGESTS:${PN} = "useful_package another_package"
  6258. :term:`RUST_CHANNEL`
  6259. Specifies which version of Rust to build - "stable", "beta" or "nightly".
  6260. The default value is "stable". Set this at your own risk, as values other
  6261. than "stable" are not guaranteed to work at a given time.
  6262. :term:`S`
  6263. The location in the :term:`Build Directory` where
  6264. unpacked recipe source code resides. By default, this directory is
  6265. ``${``\ :term:`UNPACKDIR`\ ``}/${``\ :term:`BPN`\ ``}-${``\ :term:`PV`\ ``}``,
  6266. where ``${BPN}`` is the base recipe name and ``${PV}`` is the recipe
  6267. version. If the source tarball extracts the code to a directory named
  6268. anything other than ``${BPN}-${PV}``, or if the source code is
  6269. fetched from an SCM such as Git or Subversion, then you must set
  6270. :term:`S` in the recipe so that the OpenEmbedded build system knows where
  6271. to find the unpacked source.
  6272. As an example, assume a :term:`Source Directory`
  6273. top-level folder named ``poky`` and a default :term:`Build Directory` at
  6274. ``poky/build``. In this case, the work directory the build system
  6275. uses to keep the unpacked recipe for ``db`` is the following::
  6276. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/sources/db-5.1.19
  6277. The unpacked source code resides in the ``db-5.1.19`` folder.
  6278. :term:`SANITY_REQUIRED_UTILITIES`
  6279. Specifies a list of command-line utilities that should be checked for
  6280. during the initial sanity checking process when running BitBake. If
  6281. any of the utilities are not installed on the build host, then
  6282. BitBake immediately exits with an error.
  6283. :term:`SANITY_TESTED_DISTROS`
  6284. A list of the host distribution identifiers that the build system has
  6285. been tested against. Identifiers consist of the host distributor ID
  6286. followed by the release, as reported by the ``lsb_release`` tool or
  6287. as read from ``/etc/lsb-release``. Separate the list items with
  6288. explicit newline characters (``\n``). If :term:`SANITY_TESTED_DISTROS` is
  6289. not empty and the current value of
  6290. :term:`NATIVELSBSTRING` does not appear in the
  6291. list, then the build system reports a warning that indicates the
  6292. current host distribution has not been tested as a build host.
  6293. :term:`SDK_ARCH`
  6294. The target architecture for the SDK. Typically, you do not directly
  6295. set this variable. Instead, use :term:`SDKMACHINE`.
  6296. :term:`SDK_ARCHIVE_TYPE`
  6297. Specifies the type of archive to create for the SDK. Valid values:
  6298. - ``tar.xz`` (default)
  6299. - ``tar.zst``
  6300. - ``7zip``
  6301. - ``zip``
  6302. Only one archive type can be specified.
  6303. :term:`SDK_AS_ARCH`
  6304. Specifies architecture-specific assembler flags when building
  6305. :ref:`ref-classes-nativesdk` recipes. By default, the value of
  6306. :term:`SDK_AS_ARCH` equals the one of :term:`BUILD_AS_ARCH`.
  6307. :term:`SDK_BUILDINFO_FILE`
  6308. When using the :ref:`ref-classes-image-buildinfo` class,
  6309. specifies the file in the SDK to write the build information into. The
  6310. default value is "``/buildinfo``".
  6311. :term:`SDK_CC_ARCH`
  6312. Specifies the architecture-specific C compiler flags when building
  6313. :ref:`ref-classes-nativesdk` recipes. By default, the value of
  6314. :term:`SDK_CC_ARCH` equals the one of :term:`BUILD_CC_ARCH`.
  6315. :term:`SDK_CUSTOM_TEMPLATECONF`
  6316. When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to
  6317. "1" and a ``conf/templateconf.cfg`` file exists in the :term:`Build Directory`
  6318. (:term:`TOPDIR`) then this will be copied into the SDK.
  6319. :term:`SDK_DEPLOY`
  6320. The directory set up and used by the
  6321. :ref:`populate_sdk_base <ref-classes-populate-sdk>` class to which the
  6322. SDK is deployed. The :ref:`populate_sdk_base <ref-classes-populate-sdk>`
  6323. class defines :term:`SDK_DEPLOY` as follows::
  6324. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  6325. :term:`SDK_DIR`
  6326. The parent directory used by the OpenEmbedded build system when
  6327. creating SDK output. The
  6328. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines
  6329. the variable as follows::
  6330. SDK_DIR = "${WORKDIR}/sdk"
  6331. .. note::
  6332. The :term:`SDK_DIR` directory is a temporary directory as it is part of
  6333. :term:`WORKDIR`. The final output directory is :term:`SDK_DEPLOY`.
  6334. :term:`SDK_EXT_TYPE`
  6335. Controls whether or not shared state artifacts are copied into the
  6336. extensible SDK. The default value of "full" copies all of the
  6337. required shared state artifacts into the extensible SDK. The value
  6338. "minimal" leaves these artifacts out of the SDK.
  6339. .. note::
  6340. If you set the variable to "minimal", you need to ensure
  6341. :term:`SSTATE_MIRRORS` is set in the SDK's configuration to enable the
  6342. artifacts to be fetched as needed.
  6343. :term:`SDK_HOST_MANIFEST`
  6344. The manifest file for the host part of the SDK. This file lists all
  6345. the installed packages that make up the host part of the SDK. The
  6346. file contains package information on a line-per-package basis as
  6347. follows::
  6348. packagename packagearch version
  6349. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  6350. defines the manifest file as follows::
  6351. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  6352. The location is derived using the :term:`SDK_DEPLOY` and
  6353. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  6354. :term:`SDK_INCLUDE_PKGDATA`
  6355. When set to "1", specifies to include the packagedata for all recipes
  6356. in the "world" target in the extensible SDK. Including this data
  6357. allows the ``devtool search`` command to find these recipes in search
  6358. results, as well as allows the ``devtool add`` command to map
  6359. dependencies more effectively.
  6360. .. note::
  6361. Enabling the :term:`SDK_INCLUDE_PKGDATA`
  6362. variable significantly increases build time because all of world
  6363. needs to be built. Enabling the variable also slightly increases
  6364. the size of the extensible SDK.
  6365. :term:`SDK_INCLUDE_TOOLCHAIN`
  6366. When set to "1", specifies to include the toolchain in the extensible
  6367. SDK. Including the toolchain is useful particularly when
  6368. :term:`SDK_EXT_TYPE` is set to "minimal" to keep
  6369. the SDK reasonably small but you still want to provide a usable
  6370. toolchain. For example, suppose you want to use the toolchain from an
  6371. IDE or from other tools and you do not want to perform additional
  6372. steps to install the toolchain.
  6373. The :term:`SDK_INCLUDE_TOOLCHAIN` variable defaults to "0" if
  6374. :term:`SDK_EXT_TYPE` is set to "minimal", and defaults to "1" if
  6375. :term:`SDK_EXT_TYPE` is set to "full".
  6376. :term:`SDK_LD_ARCH`
  6377. Specifies architecture-specific linker flags when building
  6378. :ref:`ref-classes-nativesdk` recipes. By default, the value of
  6379. :term:`SDK_LD_ARCH` equals the one of :term:`BUILD_LD_ARCH`.
  6380. :term:`SDK_NAME`
  6381. The base name for SDK output files. The default value (as set in
  6382. ``meta-poky/conf/distro/poky.conf``) is derived from the
  6383. :term:`DISTRO`,
  6384. :term:`TCLIBC`,
  6385. :term:`SDKMACHINE`,
  6386. :term:`IMAGE_BASENAME`,
  6387. :term:`TUNE_PKGARCH`, and
  6388. :term:`MACHINE` variables::
  6389. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
  6390. :term:`SDK_OS`
  6391. Specifies the operating system for which the SDK will be built. The
  6392. default value is the value of :term:`BUILD_OS`.
  6393. :term:`SDK_OUTPUT`
  6394. The location used by the OpenEmbedded build system when creating SDK
  6395. output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`
  6396. class defines the variable as follows::
  6397. SDK_DIR = "${WORKDIR}/sdk"
  6398. SDK_OUTPUT = "${SDK_DIR}/image"
  6399. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  6400. .. note::
  6401. The :term:`SDK_OUTPUT` directory is a temporary directory as it is part of
  6402. :term:`WORKDIR` by way of :term:`SDK_DIR`. The final output directory is
  6403. :term:`SDK_DEPLOY`.
  6404. :term:`SDK_PACKAGE_ARCHS`
  6405. Specifies a list of architectures compatible with the SDK machine.
  6406. This variable is set automatically and should not normally be
  6407. hand-edited. Entries are separated using spaces and listed in order
  6408. of priority. The default value for :term:`SDK_PACKAGE_ARCHS` is "all any
  6409. noarch ${SDK_ARCH}-${SDKPKGSUFFIX}".
  6410. :term:`SDK_POSTPROCESS_COMMAND`
  6411. Specifies a list of functions to call once the OpenEmbedded build
  6412. system creates the SDK. You can specify functions separated by
  6413. spaces:
  6414. SDK_POSTPROCESS_COMMAND += "function"
  6415. If you need to pass an SDK path to a command within a function, you
  6416. can use ``${SDK_DIR}``, which points to the parent directory used by
  6417. the OpenEmbedded build system when creating SDK output. See the
  6418. :term:`SDK_DIR` variable for more information.
  6419. :term:`SDK_PREFIX`
  6420. The toolchain binary prefix used for
  6421. :ref:`ref-classes-nativesdk` recipes. The
  6422. OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the
  6423. :term:`TARGET_PREFIX` when building
  6424. ``nativesdk`` recipes. The default value is "${SDK_SYS}-".
  6425. :term:`SDK_RECRDEP_TASKS`
  6426. A list of shared state tasks added to the extensible SDK. By default,
  6427. the following tasks are added:
  6428. - :ref:`ref-tasks-populate_lic`
  6429. - :ref:`ref-tasks-package_qa`
  6430. - :ref:`ref-tasks-populate_sysroot`
  6431. - :ref:`ref-tasks-deploy`
  6432. Despite the default value of "" for the
  6433. :term:`SDK_RECRDEP_TASKS` variable, the above four tasks are always added
  6434. to the SDK. To specify tasks beyond these four, you need to use the
  6435. :term:`SDK_RECRDEP_TASKS` variable (e.g. you are defining additional
  6436. tasks that are needed in order to build
  6437. :term:`SDK_TARGETS`).
  6438. :term:`SDK_SYS`
  6439. Specifies the system, including the architecture and the operating
  6440. system, for which the SDK will be built.
  6441. The OpenEmbedded build system automatically sets this variable based
  6442. on :term:`SDK_ARCH`,
  6443. :term:`SDK_VENDOR`, and
  6444. :term:`SDK_OS`. You do not need to set the :term:`SDK_SYS`
  6445. variable yourself.
  6446. :term:`SDK_TARGET_MANIFEST`
  6447. The manifest file for the target part of the SDK. This file lists all
  6448. the installed packages that make up the target part of the SDK. The
  6449. file contains package information on a line-per-package basis as
  6450. follows::
  6451. packagename packagearch version
  6452. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  6453. defines the manifest file as follows::
  6454. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  6455. The location is derived using the :term:`SDK_DEPLOY` and
  6456. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  6457. :term:`SDK_TARGETS`
  6458. A list of targets to install from shared state as part of the
  6459. standard or extensible SDK installation. The default value is "${PN}"
  6460. (i.e. the image from which the SDK is built).
  6461. The :term:`SDK_TARGETS` variable is an internal variable and typically
  6462. would not be changed.
  6463. :term:`SDK_TITLE`
  6464. The title to be printed when running the SDK installer. By default,
  6465. this title is based on the :term:`DISTRO_NAME` or
  6466. :term:`DISTRO` variable and is set in the
  6467. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  6468. follows::
  6469. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  6470. For the default distribution "poky",
  6471. :term:`SDK_TITLE` is set to "Poky (Yocto Project Reference Distro)".
  6472. For information on how to change this default title, see the
  6473. ":ref:`sdk-manual/appendix-customizing:changing the extensible sdk installer title`"
  6474. section in the Yocto Project Application Development and the
  6475. Extensible Software Development Kit (eSDK) manual.
  6476. :term:`SDK_TOOLCHAIN_LANGS`
  6477. Specifies programming languages to support in the SDK, as a
  6478. space-separated list. Currently supported items are ``rust`` and ``go``.
  6479. :term:`SDK_UPDATE_URL`
  6480. An optional URL for an update server for the extensible SDK. If set,
  6481. the value is used as the default update server when running
  6482. ``devtool sdk-update`` within the extensible SDK.
  6483. :term:`SDK_VENDOR`
  6484. Specifies the name of the SDK vendor.
  6485. :term:`SDK_VERSION`
  6486. Specifies the version of the SDK. The Poky distribution configuration file
  6487. (``/meta-poky/conf/distro/poky.conf``) sets the default
  6488. :term:`SDK_VERSION` as follows::
  6489. SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}"
  6490. For additional information, see the
  6491. :term:`DISTRO_VERSION` and
  6492. :term:`METADATA_REVISION` variables.
  6493. :term:`SDK_ZIP_OPTIONS`
  6494. Specifies extra options to pass to the ``zip`` command when zipping the SDK
  6495. (i.e. when :term:`SDK_ARCHIVE_TYPE` is set to "zip"). The default value is
  6496. "-y".
  6497. :term:`SDKEXTPATH`
  6498. The default installation directory for the Extensible SDK. By
  6499. default, this directory is based on the :term:`DISTRO`
  6500. variable and is set in the
  6501. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  6502. follows::
  6503. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  6504. For the
  6505. default distribution "poky", the :term:`SDKEXTPATH` is set to "poky_sdk".
  6506. For information on how to change this default directory, see the
  6507. ":ref:`sdk-manual/appendix-customizing:changing the default sdk installation directory`"
  6508. section in the Yocto Project Application Development and the
  6509. Extensible Software Development Kit (eSDK) manual.
  6510. :term:`SDKIMAGE_FEATURES`
  6511. Equivalent to :term:`IMAGE_FEATURES`. However, this variable applies to
  6512. the SDK generated from an image using the following command::
  6513. $ bitbake -c populate_sdk imagename
  6514. :term:`SDKMACHINE`
  6515. The machine for which the SDK is built. In other words, the SDK is built
  6516. such that it runs on the target you specify with the :term:`SDKMACHINE`
  6517. value. The value points to a corresponding ``.conf`` file under
  6518. ``conf/machine-sdk/`` in the enabled layers, for example ``aarch64``,
  6519. ``i586``, ``i686``, ``ppc64``, ``ppc64le``, and ``x86_64`` are
  6520. :oe_git:`available in OpenEmbedded-Core </openembedded-core/tree/meta/conf/machine-sdk>`.
  6521. The variable defaults to :term:`BUILD_ARCH` so that SDKs are built for the
  6522. architecture of the build machine.
  6523. .. note::
  6524. You cannot set the :term:`SDKMACHINE`
  6525. variable in your distribution configuration file. If you do, the
  6526. configuration will not take effect.
  6527. :term:`SDKPATH`
  6528. Defines the path used to collect the SDK components and build the
  6529. installer.
  6530. :term:`SDKPATHINSTALL`
  6531. Defines the path offered to the user for installation of the SDK that
  6532. is generated by the OpenEmbedded build system. The path appears as
  6533. the default location for installing the SDK when you run the SDK's
  6534. installation script. You can override the offered path when you run
  6535. the script.
  6536. :term:`SDKTARGETSYSROOT`
  6537. The full path to the sysroot used for cross-compilation within an SDK
  6538. as it will be when installed into the default
  6539. :term:`SDKPATHINSTALL`.
  6540. :term:`SECTION`
  6541. The section in which packages should be categorized. Package
  6542. management utilities can make use of this variable.
  6543. :term:`SELECTED_OPTIMIZATION`
  6544. Specifies the optimization flags passed to the C compiler when
  6545. building for the target. The flags are passed through the default
  6546. value of the :term:`TARGET_CFLAGS` variable.
  6547. The :term:`SELECTED_OPTIMIZATION` variable takes the value of
  6548. :term:`FULL_OPTIMIZATION` unless :term:`DEBUG_BUILD` = "1", in which
  6549. case the value of :term:`DEBUG_OPTIMIZATION` is used.
  6550. :term:`SERIAL_CONSOLES`
  6551. Defines a serial console (TTY) to enable using
  6552. :wikipedia:`getty <Getty_(Unix)>`. Provide a value that specifies the
  6553. baud rate followed by the TTY device name separated by a semicolon.
  6554. Use spaces to separate multiple devices::
  6555. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  6556. :term:`SETUPTOOLS_BUILD_ARGS`
  6557. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6558. class, this variable can be used to specify additional arguments to be
  6559. passed to ``setup.py build`` in the ``setuptools3_do_compile()`` task.
  6560. :term:`SETUPTOOLS_SETUP_PATH`
  6561. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6562. class, this variable should be used to specify the directory in which
  6563. the ``setup.py`` file is located if it is not at the root of the source
  6564. tree (as specified by :term:`S`). For example, in a recipe where the
  6565. sources are fetched from a Git repository and ``setup.py`` is in a
  6566. ``python/pythonmodule`` subdirectory, you would have this::
  6567. SETUPTOOLS_SETUP_PATH = "${S}/python/pythonmodule"
  6568. :term:`SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS`
  6569. A list of recipe dependencies that should not be used to determine
  6570. signatures of tasks from one recipe when they depend on tasks from
  6571. another recipe. For example::
  6572. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  6573. In the previous example, ``intone`` depends on ``mplayer2``.
  6574. You can use the special token ``"*"`` on the left-hand side of the
  6575. dependency to match all recipes except the one on the right-hand
  6576. side. Here is an example::
  6577. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  6578. In the previous example, all recipes except ``quilt-native`` ignore
  6579. task signatures from the ``quilt-native`` recipe when determining
  6580. their task signatures.
  6581. Use of this variable is one mechanism to remove dependencies that
  6582. affect task signatures and thus force rebuilds when a recipe changes.
  6583. .. note::
  6584. If you add an inappropriate dependency for a recipe relationship,
  6585. the software might break during runtime if the interface of the
  6586. second recipe was changed after the first recipe had been built.
  6587. :term:`SIGGEN_EXCLUDERECIPES_ABISAFE`
  6588. A list of recipes that are completely stable and will never change.
  6589. The ABI for the recipes in the list are presented by output from the
  6590. tasks run to build the recipe. Use of this variable is one way to
  6591. remove dependencies from one recipe on another that affect task
  6592. signatures and thus force rebuilds when the recipe changes.
  6593. .. note::
  6594. If you add an inappropriate variable to this list, the software
  6595. might break at runtime if the interface of the recipe was changed
  6596. after the other had been built.
  6597. :term:`SIGGEN_LOCKEDSIGS`
  6598. The list of locked tasks, with the form::
  6599. SIGGEN_LOCKEDSIGS += "<package>:<task>:<signature>"
  6600. If ``<signature>`` exists for the specified ``<task>`` and ``<package>``
  6601. in the sstate cache, BitBake will use the cached output instead of
  6602. rebuilding the ``<task>``. If it does not exist, BitBake will build the
  6603. ``<task>`` and the sstate cache will be used next time.
  6604. Example::
  6605. SIGGEN_LOCKEDSIGS += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6606. You can obtain the signature of all the tasks for the recipe ``bc`` using::
  6607. bitbake -S none bc
  6608. Then you can look at files in ``build/tmp/stamps/<arch>/bc`` and look for
  6609. files like: ``<PV>.do_compile.sigdata.09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0``.
  6610. Alternatively, you can also use :doc:`bblock </dev-manual/bblock>` to
  6611. generate this line for you.
  6612. :term:`SIGGEN_LOCKEDSIGS_TASKSIG_CHECK`
  6613. Specifies the debug level of task signature check. 3 levels are supported:
  6614. * ``info``: displays a "Note" message to remind the user that a task is locked
  6615. and the current signature matches the locked one.
  6616. * ``warn``: displays a "Warning" message if a task is locked and the current
  6617. signature does not match the locked one.
  6618. * ``error``: same as warn but displays an "Error" message and aborts.
  6619. :term:`SIGGEN_LOCKEDSIGS_TYPES`
  6620. Allowed overrides for :term:`SIGGEN_LOCKEDSIGS`. This is mainly used
  6621. for architecture specific locks. A common value for
  6622. :term:`SIGGEN_LOCKEDSIGS_TYPES` is ``${PACKAGE_ARCHS}``::
  6623. SIGGEN_LOCKEDSIGS_TYPES += "${PACKAGE_ARCHS}"
  6624. SIGGEN_LOCKEDSIGS_core2-64 += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6625. SIGGEN_LOCKEDSIGS_cortexa57 += "bc:do_compile:12178eb6d55ef602a8fe638e49862fd247e07b228f0f08967697b655bfe4bb61"
  6626. Here, the ``do_compile`` task from ``bc`` will be locked only for
  6627. ``core2-64`` and ``cortexa57`` but not for other architectures such as
  6628. ``mips32r2``.
  6629. :term:`SITEINFO_BITS`
  6630. Specifies the number of bits for the target system CPU. The value
  6631. should be either "32" or "64".
  6632. :term:`SITEINFO_ENDIANNESS`
  6633. Specifies the endian byte order of the target system. The value
  6634. should be either "le" for little-endian or "be" for big-endian.
  6635. :term:`SKIP_FILEDEPS`
  6636. Enables removal of all files from the "Provides" section of an RPM
  6637. package. Removal of these files is required for packages containing
  6638. prebuilt binaries and libraries such as ``libstdc++`` and ``glibc``.
  6639. To enable file removal, set the variable to "1" in your
  6640. ``conf/local.conf`` configuration file in your:
  6641. :term:`Build Directory`::
  6642. SKIP_FILEDEPS = "1"
  6643. :term:`SKIP_RECIPE`
  6644. Used to prevent the OpenEmbedded build system from building a given
  6645. recipe. Specify the :term:`PN` value as a variable flag (``varflag``)
  6646. and provide a reason, which will be reported when attempting to
  6647. build the recipe.
  6648. To prevent a recipe from being built, use the :term:`SKIP_RECIPE`
  6649. variable in your ``local.conf`` file or distribution configuration.
  6650. Here is an example which prevents ``myrecipe`` from being built::
  6651. SKIP_RECIPE[myrecipe] = "Not supported by our organization."
  6652. :term:`SOC_FAMILY`
  6653. A colon-separated list grouping together machines based upon the same
  6654. family of SoC (System On Chip). You typically set this variable in a
  6655. common ``.inc`` file that you include in the configuration files of all
  6656. the machines.
  6657. .. note::
  6658. You must include ``conf/machine/include/soc-family.inc`` for this
  6659. variable to appear in :term:`MACHINEOVERRIDES`.
  6660. :term:`SOLIBS`
  6661. Defines the suffix for shared libraries used on the target platform.
  6662. By default, this suffix is ".so.*" for all Linux-based systems and is
  6663. defined in the ``meta/conf/bitbake.conf`` configuration file.
  6664. You will see this variable referenced in the default values of
  6665. ``FILES:${PN}``.
  6666. :term:`SOLIBSDEV`
  6667. Defines the suffix for the development symbolic link (symlink) for
  6668. shared libraries on the target platform. By default, this suffix is
  6669. ".so" for Linux-based systems and is defined in the
  6670. ``meta/conf/bitbake.conf`` configuration file.
  6671. You will see this variable referenced in the default values of
  6672. ``FILES:${PN}-dev``.
  6673. :term:`SOURCE_DATE_EPOCH`
  6674. This defines a date expressed in number of seconds since
  6675. the UNIX EPOCH (01 Jan 1970 00:00:00 UTC), which is used by
  6676. multiple build systems to force a timestamp in built binaries.
  6677. Many upstream projects already support this variable.
  6678. You will find more details in the `official specifications
  6679. <https://reproducible-builds.org/specs/source-date-epoch/>`__.
  6680. A value for each recipe is computed from the sources by
  6681. :oe_git:`meta/lib/oe/reproducible.py </openembedded-core/tree/meta/lib/oe/reproducible.py>`.
  6682. If a recipe wishes to override the default behavior, it should set its
  6683. own :term:`SOURCE_DATE_EPOCH` value::
  6684. SOURCE_DATE_EPOCH = "1613559011"
  6685. :term:`SOURCE_MIRROR_FETCH`
  6686. When you are fetching files to create a mirror of sources (i.e.
  6687. creating a source mirror), setting :term:`SOURCE_MIRROR_FETCH` to "1" in
  6688. your ``local.conf`` configuration file ensures the source for all
  6689. recipes are fetched regardless of whether or not a recipe is
  6690. compatible with the configuration. A recipe is considered
  6691. incompatible with the currently configured machine when either or
  6692. both the :term:`COMPATIBLE_MACHINE`
  6693. variable and :term:`COMPATIBLE_HOST` variables
  6694. specify compatibility with a machine other than that of the current
  6695. machine or host.
  6696. .. note::
  6697. Do not set the :term:`SOURCE_MIRROR_FETCH`
  6698. variable unless you are creating a source mirror. In other words,
  6699. do not set the variable during a normal build.
  6700. :term:`SOURCE_MIRROR_URL`
  6701. Defines your own :term:`PREMIRRORS` from which to
  6702. first fetch source before attempting to fetch from the upstream
  6703. specified in :term:`SRC_URI`.
  6704. To use this variable, you must globally inherit the
  6705. :ref:`ref-classes-own-mirrors` class and then provide
  6706. the URL to your mirrors. Here is the general syntax::
  6707. INHERIT += "own-mirrors"
  6708. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror"
  6709. .. note::
  6710. You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
  6711. .. note::
  6712. If the mirror is protected behind a username and password, the
  6713. :term:`build host` needs to be configured so the :term:`build system
  6714. <OpenEmbedded Build System>` is able to fetch from the mirror.
  6715. The recommended way to do that is by setting the following parameters
  6716. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  6717. directory)::
  6718. machine example.com
  6719. login <user>
  6720. password <password>
  6721. This file requires permissions set to ``400`` or ``600`` to prevent
  6722. other users from reading the file::
  6723. chmod 600 "$HOME/.netrc"
  6724. Another method to configure the username and password is from the URL
  6725. in :term:`SOURCE_MIRROR_URL` directly, with the ``user`` and ``pswd``
  6726. parameters::
  6727. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror;user=<user>;pswd=<password>"
  6728. :term:`SPDX_ARCHIVE_PACKAGED`
  6729. This option allows to add to :term:`SPDX` output compressed archives
  6730. of the files in the generated target packages.
  6731. Such archives are available in
  6732. ``tmp/deploy/spdx/MACHINE/packages/packagename.tar.zst``
  6733. under the :term:`Build Directory`.
  6734. Enable this option as follows::
  6735. SPDX_ARCHIVE_PACKAGED = "1"
  6736. According to our tests on release 4.1 "langdale", building
  6737. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this
  6738. option multiplied the size of the ``tmp/deploy/spdx`` directory by a
  6739. factor of 13 (+1.6 GiB for this image), compared to just using the
  6740. :ref:`ref-classes-create-spdx` class with no option.
  6741. Note that this option doesn't increase the size of :term:`SPDX`
  6742. files in ``tmp/deploy/images/MACHINE``.
  6743. :term:`SPDX_ARCHIVE_SOURCES`
  6744. This option allows to add to :term:`SPDX` output compressed archives
  6745. of the sources for packages installed on the target. It currently
  6746. only works when :term:`SPDX_INCLUDE_SOURCES` is set.
  6747. This is one way of fulfilling "source code access" license
  6748. requirements.
  6749. Such source archives are available in
  6750. ``tmp/deploy/spdx/MACHINE/recipes/recipe-packagename.tar.zst``
  6751. under the :term:`Build Directory`.
  6752. Enable this option as follows::
  6753. SPDX_INCLUDE_SOURCES = "1"
  6754. SPDX_ARCHIVE_SOURCES = "1"
  6755. According to our tests on release 4.1 "langdale", building
  6756. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6757. these options multiplied the size of the ``tmp/deploy/spdx``
  6758. directory by a factor of 11 (+1.4 GiB for this image),
  6759. compared to just using the :ref:`ref-classes-create-spdx`
  6760. class with no option.
  6761. Note that using this option only marginally increases the size
  6762. of the :term:`SPDX` output in ``tmp/deploy/images/MACHINE/``
  6763. (+ 0.07\% with the tested image), compared to just enabling
  6764. :term:`SPDX_INCLUDE_SOURCES`.
  6765. :term:`SPDX_CUSTOM_ANNOTATION_VARS`
  6766. This option allows to associate `SPDX annotations
  6767. <https://spdx.github.io/spdx-spec/v2.3/annotations/>`__ to a recipe,
  6768. using the values of variables in the recipe::
  6769. ANNOTATION1 = "First annotation for recipe"
  6770. ANNOTATION2 = "Second annotation for recipe"
  6771. SPDX_CUSTOM_ANNOTATION_VARS = "ANNOTATION1 ANNOTATION2"
  6772. This will add a new block to the recipe ``.sdpx.json`` output::
  6773. "annotations": [
  6774. {
  6775. "annotationDate": "2023-04-18T08:32:12Z",
  6776. "annotationType": "OTHER",
  6777. "annotator": "Tool: oe-spdx-creator - 1.0",
  6778. "comment": "ANNOTATION1=First annotation for recipe"
  6779. },
  6780. {
  6781. "annotationDate": "2023-04-18T08:32:12Z",
  6782. "annotationType": "OTHER",
  6783. "annotator": "Tool: oe-spdx-creator - 1.0",
  6784. "comment": "ANNOTATION2=Second annotation for recipe"
  6785. }
  6786. ],
  6787. :term:`SPDX_INCLUDE_COMPILED_SOURCES`
  6788. This option allows the same as :term:`SPDX_INCLUDE_SOURCES` but including
  6789. only the sources used to compile the host tools and the target packages.
  6790. While :term:`SPDX_INCLUDE_SOURCES` includes all files in the source
  6791. directory as source file descriptions, :term:`SPDX_INCLUDE_COMPILED_SOURCES`
  6792. includes only the sources that are used to produce the binaries delivered
  6793. as packages. The source files that are not used during compilation are not
  6794. included in the SBOM. It uses debugsource information generated during
  6795. ``do_package`` to filter out source files.
  6796. This enables an external tool to use the SPDX information to disregard
  6797. vulnerabilities that are not compiled in the packages.
  6798. Enable this option as follows::
  6799. SPDX_INCLUDE_COMPILED_SOURCES = "1"
  6800. According to our tests, building ``core-image-minimal`` for the
  6801. ``qemux86-64`` machine, enabling this option compared with the
  6802. :term:`SPDX_INCLUDE_SOURCES` reduces the size of the ``tmp/deploy/spdx``
  6803. directory from 2GB to 1.6GB.
  6804. :term:`SPDX_INCLUDE_SOURCES`
  6805. This option allows to add a description of the source files used to build
  6806. the host tools and the target packages, to the ``spdx.json`` files in
  6807. ``tmp/deploy/spdx/MACHINE/recipes/`` under the :term:`Build Directory`.
  6808. As a consequence, the ``spdx.json`` files under the ``by-namespace`` and
  6809. ``packages`` subdirectories in ``tmp/deploy/spdx/MACHINE`` are also
  6810. modified to include references to such source file descriptions.
  6811. Enable this option as follows::
  6812. SPDX_INCLUDE_SOURCES = "1"
  6813. According to our tests on release 4.1 "langdale", building
  6814. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6815. this option multiplied the total size of the ``tmp/deploy/spdx``
  6816. directory by a factor of 3 (+291 MiB for this image),
  6817. and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in
  6818. ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this
  6819. image), compared to just using the :ref:`ref-classes-create-spdx` class
  6820. with no option.
  6821. :term:`SPDX_NAMESPACE_PREFIX`
  6822. This option could be used in order to change the prefix of ``spdxDocument``
  6823. and the prefix of ``documentNamespace``. It is set by default to
  6824. ``http://spdx.org/spdxdoc``.
  6825. :term:`SPDX_PACKAGE_URL`
  6826. Provides a place for the SPDX data creator to record the package URL
  6827. string (``software_packageUrl``, in accordance with the Package URL
  6828. specification) for a software Package. The default value of this variable
  6829. is an empty string.
  6830. :term:`SPDX_PACKAGE_VERSION`
  6831. This variable controls the package version as seen in the SPDX 3.0 JSON
  6832. output (``software_packageVersion``). The default value for this variable
  6833. is :term:`PV`.
  6834. :term:`SPDX_PRETTY`
  6835. This option makes the SPDX output more human-readable, using
  6836. identation and newlines, instead of the default output in a
  6837. single line::
  6838. SPDX_PRETTY = "1"
  6839. The generated SPDX files are approximately 20% bigger, but
  6840. this option is recommended if you want to inspect the SPDX
  6841. output files with a text editor.
  6842. :term:`SPDXLICENSEMAP`
  6843. Maps commonly used license names to their SPDX counterparts found in
  6844. ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP`
  6845. mappings, see the ``meta/conf/licenses.conf`` file.
  6846. For additional information, see the :term:`LICENSE`
  6847. variable.
  6848. :term:`SPECIAL_PKGSUFFIX`
  6849. A list of prefixes for :term:`PN` used by the OpenEmbedded
  6850. build system to create variants of recipes or packages. The list
  6851. specifies the prefixes to strip off during certain circumstances such
  6852. as the generation of the :term:`BPN` variable.
  6853. :term:`SPL_BINARY`
  6854. The file type for the Secondary Program Loader (SPL). Some devices
  6855. use an SPL from which to boot (e.g. the BeagleBone development
  6856. board). For such cases, you can declare the file type of the SPL
  6857. binary in the ``u-boot.inc`` include file, which is used in the
  6858. U-Boot recipe.
  6859. The SPL file type is set to "null" by default in the ``u-boot.inc``
  6860. file as follows::
  6861. # Some versions of u-boot build an SPL (Second Program Loader) image that
  6862. # should be packaged along with the u-boot binary as well as placed in the
  6863. # deploy directory. For those versions they can set the following variables
  6864. # to allow packaging the SPL.
  6865. SPL_BINARY ?= ""
  6866. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  6867. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  6868. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  6869. The :term:`SPL_BINARY` variable helps form
  6870. various ``SPL_*`` variables used by the OpenEmbedded build system.
  6871. See the BeagleBone machine configuration example in the
  6872. ":ref:`dev-manual/layers:adding a layer using the \`\`bitbake-layers\`\` script`"
  6873. section in the Yocto Project Board Support Package Developer's Guide
  6874. for additional information.
  6875. :term:`SPL_DTB_BINARY`
  6876. When inheriting the :ref:`ref-classes-uboot-sign` class, the
  6877. :term:`SPL_DTB_BINARY` variable contains the name of the SPL binary to be
  6878. compiled.
  6879. :term:`SPL_MKIMAGE_DTCOPTS`
  6880. Options for the device tree compiler passed to ``mkimage -D`` feature
  6881. while creating a FIT image with the :ref:`ref-classes-uboot-sign`
  6882. class. If :term:`SPL_MKIMAGE_DTCOPTS` is not set then the
  6883. :ref:`ref-classes-uboot-sign` class will not pass the ``-D`` option
  6884. to ``mkimage``.
  6885. The default value is set to "" by the :ref:`ref-classes-uboot-config`
  6886. class.
  6887. :term:`SPL_SIGN_ENABLE`
  6888. Enable signing of the U-Boot FIT image. The default value is "0".
  6889. This variable is used by the :ref:`ref-classes-uboot-sign` class.
  6890. :term:`SPL_SIGN_KEYDIR`
  6891. Location of the directory containing the RSA key and certificate used for
  6892. signing the U-Boot FIT image, used by the :ref:`ref-classes-uboot-sign`
  6893. class.
  6894. :term:`SPL_SIGN_KEYNAME`
  6895. The name of keys used by the :ref:`ref-classes-uboot-sign` class
  6896. for signing U-Boot FIT image stored in the :term:`SPL_SIGN_KEYDIR`
  6897. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  6898. certificate stored in the :term:`SPL_SIGN_KEYDIR` directory, you will
  6899. have to set :term:`SPL_SIGN_KEYNAME` to ``dev``.
  6900. :term:`SPLASH`
  6901. This variable, used by the :ref:`ref-classes-image` class, allows
  6902. to choose splashscreen applications. Set it to the names of packages
  6903. for such applications to use. This variable is set by default to
  6904. ``psplash``.
  6905. :term:`SPLASH_IMAGES`
  6906. This variable, used by the ``psplash`` recipe, allows to customize
  6907. the default splashscreen image.
  6908. Specified images in PNG format are converted to ``.h`` files by the recipe,
  6909. and are included in the ``psplash`` binary, so you won't find them in
  6910. the root filesystem.
  6911. To make such a change, it is recommended to customize the
  6912. ``psplash`` recipe in a custom layer. Here is an example structure for
  6913. an ``ACME`` board::
  6914. meta-acme/recipes-core/psplash
  6915. ├── files
  6916. │   └── logo-acme.png
  6917. └── psplash_%.bbappend
  6918. And here are the contents of the ``psplash_%.bbappend`` file in
  6919. this example::
  6920. SPLASH_IMAGES = "file://logo-acme.png;outsuffix=default"
  6921. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  6922. You could even add specific configuration options for ``psplash``,
  6923. for example::
  6924. EXTRA_OECONF += "--disable-startup-msg --enable-img-fullscreen"
  6925. For information on append files, see the
  6926. ":ref:`dev-manual/layers:appending other layers metadata with your layer`"
  6927. section.
  6928. :term:`SRC_URI`
  6929. See the BitBake manual for the initial description for this variable:
  6930. :term:`bitbake:SRC_URI`.
  6931. The following features are added by OpenEmbedded and the Yocto Project.
  6932. There are standard and recipe-specific options. Here are standard ones:
  6933. - ``apply`` --- whether to apply the patch or not. The default
  6934. action is to apply the patch.
  6935. - ``striplevel`` --- which striplevel to use when applying the
  6936. patch. The default level is 1.
  6937. - ``patchdir`` --- specifies the directory in which the patch should
  6938. be applied. The default is ``${``\ :term:`S`\ ``}``.
  6939. Here are options specific to recipes building code from a revision
  6940. control system:
  6941. - ``mindate`` --- apply the patch only if
  6942. :term:`SRCDATE` is equal to or greater than
  6943. ``mindate``.
  6944. - ``maxdate`` --- apply the patch only if :term:`SRCDATE` is not later
  6945. than ``maxdate``.
  6946. - ``minrev`` --- apply the patch only if :term:`SRCREV` is equal to or
  6947. greater than ``minrev``.
  6948. - ``maxrev`` --- apply the patch only if :term:`SRCREV` is not later
  6949. than ``maxrev``.
  6950. - ``rev`` --- apply the patch only if :term:`SRCREV` is equal to
  6951. ``rev``.
  6952. - ``notrev`` --- apply the patch only if :term:`SRCREV` is not equal to
  6953. ``rev``.
  6954. .. note::
  6955. If you want the build system to pick up files specified through
  6956. a :term:`SRC_URI` statement from your append file, you need to be
  6957. sure to extend the :term:`FILESPATH` variable by also using the
  6958. :term:`FILESEXTRAPATHS` variable from within your append file.
  6959. :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH`
  6960. By default, the OpenEmbedded build system automatically detects
  6961. whether :term:`SRC_URI` contains files that are machine-specific. If so,
  6962. the build system automatically changes :term:`PACKAGE_ARCH`. Setting this
  6963. variable to "0" disables this behavior.
  6964. :term:`SRCDATE`
  6965. The date of the source code used to build the package. This variable
  6966. applies only if the source was fetched from a Source Code Manager
  6967. (SCM).
  6968. :term:`SRCPV`
  6969. The variable :term:`SRCPV` is deprecated. It was previously used to
  6970. include source control information in :term:`PV` for :term:`bitbake` to
  6971. work correctly but this is no longer a requirement. Source control
  6972. information will be automatically included by :term:`bitbake` in the
  6973. variable :term:`PKGV` during packaging if the ``+`` sign is present in
  6974. :term:`PV`.
  6975. .. note::
  6976. The :term:`SRCPV` variable used to be defined in the
  6977. ``meta/conf/bitbake.conf`` configuration file in the :term:`Source
  6978. Directory` as follows::
  6979. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  6980. The ``get_srcrev`` function can still be used to include source control
  6981. information in variables manually.
  6982. :term:`SRCREV`
  6983. The revision of the source code used to build the package. This
  6984. variable applies to Subversion, Git, Mercurial, and Bazaar only. Note
  6985. that if you want to build a fixed revision and you want to avoid
  6986. performing a query on the remote repository every time BitBake parses
  6987. your recipe, you should specify a :term:`SRCREV` that is a full revision
  6988. identifier (e.g. the full SHA hash in git) and not just a tag.
  6989. .. note::
  6990. For information on limitations when inheriting the latest revision
  6991. of software using :term:`SRCREV`, see the :term:`AUTOREV` variable
  6992. description and the
  6993. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  6994. section, which is in the Yocto Project Development Tasks Manual.
  6995. :term:`SRCREV_FORMAT`
  6996. See :term:`bitbake:SRCREV_FORMAT` in the BitBake manual.
  6997. :term:`SRCTREECOVEREDTASKS`
  6998. A list of tasks that are typically not relevant (and therefore skipped)
  6999. when building using the :ref:`ref-classes-externalsrc`
  7000. class. The default value as set in that class file is the set of tasks
  7001. that are rarely needed when using external source::
  7002. SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
  7003. The notable exception is when processing external kernel source as
  7004. defined in the :ref:`ref-classes-kernel-yocto` class file (formatted for
  7005. aesthetics)::
  7006. SRCTREECOVEREDTASKS += "\
  7007. do_validate_branches \
  7008. do_kernel_configcheck \
  7009. do_kernel_checkout \
  7010. do_fetch \
  7011. do_unpack \
  7012. do_patch \
  7013. "
  7014. See the associated :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD`
  7015. variables for more information.
  7016. :term:`SSTATE_DIR`
  7017. The directory for the shared state cache.
  7018. :term:`SSTATE_EXCLUDEDEPS_SYSROOT`
  7019. This variable allows to specify indirect dependencies to exclude
  7020. from sysroots, for example to avoid the situations when a dependency on
  7021. any ``-native`` recipe will pull in all dependencies of that recipe
  7022. in the recipe sysroot. This behaviour might not always be wanted,
  7023. for example when that ``-native`` recipe depends on build tools
  7024. that are not relevant for the current recipe.
  7025. This way, irrelevant dependencies are ignored, which could have
  7026. prevented the reuse of prebuilt artifacts stored in the Shared
  7027. State Cache.
  7028. :term:`SSTATE_EXCLUDEDEPS_SYSROOT` is evaluated as two regular
  7029. expressions of recipe and dependency to ignore. An example
  7030. is the rule in :oe_git:`meta/conf/layer.conf </openembedded-core/tree/meta/conf/layer.conf>`::
  7031. # Nothing needs to depend on libc-initial
  7032. # base-passwd/shadow-sysroot don't need their dependencies
  7033. SSTATE_EXCLUDEDEPS_SYSROOT += "\
  7034. .*->.*-initial.* \
  7035. .*(base-passwd|shadow-sysroot)->.* \
  7036. "
  7037. The ``->`` substring represents the dependency between
  7038. the two regular expressions.
  7039. :term:`SSTATE_MIRROR_ALLOW_NETWORK`
  7040. If set to "1", allows fetches from mirrors that are specified in
  7041. :term:`SSTATE_MIRRORS` to work even when
  7042. fetching from the network is disabled by setting :term:`BB_NO_NETWORK` to
  7043. "1". Using the :term:`SSTATE_MIRROR_ALLOW_NETWORK` variable is useful if
  7044. you have set :term:`SSTATE_MIRRORS` to point to an internal server for
  7045. your shared state cache, but you want to disable any other fetching
  7046. from the network.
  7047. :term:`SSTATE_MIRRORS`
  7048. Configures the OpenEmbedded build system to search other mirror
  7049. locations for prebuilt cache data objects before building out the
  7050. data. This variable works like fetcher :term:`MIRRORS`
  7051. and :term:`PREMIRRORS` and points to the cache
  7052. locations to check for the shared state (sstate) objects.
  7053. You can specify a filesystem directory or a remote URL such as HTTP
  7054. or FTP. The locations you specify need to contain the shared state
  7055. cache (sstate-cache) results from previous builds. The sstate-cache
  7056. you point to can also be from builds on other machines.
  7057. When pointing to sstate build artifacts on another machine that uses
  7058. a different GCC version for native builds, you must configure
  7059. :term:`SSTATE_MIRRORS` with a regular expression that maps local search
  7060. paths to server paths. The paths need to take into account
  7061. :term:`NATIVELSBSTRING` set by the :ref:`ref-classes-uninative` class.
  7062. For example, the following maps the local search path ``universal-4.9``
  7063. to the server-provided path server_url_sstate_path::
  7064. SSTATE_MIRRORS ?= "file://universal-4.9/(.*) https://server_url_sstate_path/universal-4.8/\1"
  7065. If a mirror uses the same structure as
  7066. :term:`SSTATE_DIR`, you need to add "PATH" at the
  7067. end as shown in the examples below. The build system substitutes the
  7068. correct path within the directory structure::
  7069. SSTATE_MIRRORS ?= "\
  7070. file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
  7071. file://.* file:///some-local-dir/sstate/PATH"
  7072. .. note::
  7073. If the mirror is protected behind a username and password, the
  7074. :term:`build host` needs to be configured so the :term:`build system
  7075. <OpenEmbedded Build System>` is able to download the sstate cache using
  7076. authentication.
  7077. The recommended way to do that is by setting the following parameters
  7078. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  7079. directory)::
  7080. machine someserver.tld
  7081. login <user>
  7082. password <password>
  7083. This file requires permissions set to ``400`` or ``600`` to prevent
  7084. other users from reading the file::
  7085. chmod 600 "$HOME/.netrc"
  7086. Another method to configure the username and password is from the
  7087. URL in :term:`SSTATE_MIRRORS` directly, with the ``user`` and ``pswd``
  7088. parameters::
  7089. SSTATE_MIRRORS ?= "\
  7090. file://.* https://someserver.tld/share/sstate/PATH;user=<user>;pswd=<password>;downloadfilename=PATH \
  7091. "
  7092. The Yocto Project actually shares the cache data objects built by its
  7093. autobuilder::
  7094. SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH"
  7095. As such binary artifacts are built for the generic QEMU machines
  7096. supported by the various Poky releases, they are less likely to be
  7097. reusable in real projects building binaries optimized for a specific
  7098. CPU family.
  7099. :term:`SSTATE_SCAN_FILES`
  7100. Controls the list of files the OpenEmbedded build system scans for
  7101. hardcoded installation paths. The variable uses a space-separated
  7102. list of filenames (not paths) with standard wildcard characters
  7103. allowed.
  7104. During a build, the OpenEmbedded build system creates a shared state
  7105. (sstate) object during the first stage of preparing the sysroots.
  7106. That object is scanned for hardcoded paths for original installation
  7107. locations. The list of files that are scanned for paths is controlled
  7108. by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files
  7109. they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather
  7110. than the variable being comprehensively set. The
  7111. :ref:`ref-classes-sstate` class specifies the default list of files.
  7112. For details on the process, see the :ref:`ref-classes-staging` class.
  7113. :term:`SSTATE_SKIP_CREATION`
  7114. The :term:`SSTATE_SKIP_CREATION` variable can be used to skip the
  7115. creation of :ref:`shared state <overview-manual/concepts:shared state cache>`
  7116. tarball files. It makes sense e.g. for image creation tasks as tarring images
  7117. and keeping them in sstate would consume a lot of disk space.
  7118. In general it is not recommended to use this variable as missing sstate
  7119. artefacts adversely impact the build, particularly for entries in the
  7120. middle of dependency chains. The case it can make sense is where the
  7121. size and time costs of the artefact are similar to just running the
  7122. tasks. This generally only applies to end artefact output like images.
  7123. The syntax to disable it for one task is::
  7124. SSTATE_SKIP_CREATION:task-image-complete = "1"
  7125. The syntax to disable it for the whole recipe is::
  7126. SSTATE_SKIP_CREATION = "1"
  7127. :term:`STAGING_BASE_LIBDIR_NATIVE`
  7128. Specifies the path to the ``/lib`` subdirectory of the sysroot
  7129. directory for the build host.
  7130. :term:`STAGING_BASELIBDIR`
  7131. Specifies the path to the ``/lib`` subdirectory of the sysroot
  7132. directory for the target for which the current recipe is being built
  7133. (:term:`STAGING_DIR_HOST`).
  7134. :term:`STAGING_BINDIR`
  7135. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  7136. directory for the target for which the current recipe is being built
  7137. (:term:`STAGING_DIR_HOST`).
  7138. :term:`STAGING_BINDIR_CROSS`
  7139. Specifies the path to the directory containing binary configuration
  7140. scripts. These scripts provide configuration information for other
  7141. software that wants to make use of libraries or include files
  7142. provided by the software associated with the script.
  7143. .. note::
  7144. This style of build configuration has been largely replaced by
  7145. ``pkg-config``. Consequently, if ``pkg-config`` is supported by the
  7146. library to which you are linking, it is recommended you use
  7147. ``pkg-config`` instead of a provided configuration script.
  7148. :term:`STAGING_BINDIR_NATIVE`
  7149. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  7150. directory for the build host.
  7151. :term:`STAGING_DATADIR`
  7152. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  7153. directory for the target for which the current recipe is being built
  7154. (:term:`STAGING_DIR_HOST`).
  7155. :term:`STAGING_DATADIR_NATIVE`
  7156. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  7157. directory for the build host.
  7158. :term:`STAGING_DIR`
  7159. Helps construct the ``recipe-sysroot*`` directories, which are used
  7160. during packaging.
  7161. For information on how staging for recipe-specific sysroots occurs,
  7162. see the :ref:`ref-tasks-populate_sysroot`
  7163. task, the ":ref:`dev-manual/devtool:sharing files between recipes`"
  7164. section in the Yocto Project Development Tasks Manual, the
  7165. ":ref:`overview-manual/concepts:configuration, compilation, and staging`"
  7166. section in the Yocto Project Overview and Concepts Manual, and the
  7167. :term:`SYSROOT_DIRS` variable.
  7168. .. note::
  7169. Recipes should never write files directly under the :term:`STAGING_DIR`
  7170. directory because the OpenEmbedded build system manages the
  7171. directory automatically. Instead, files should be installed to
  7172. ``${``\ :term:`D`\ ``}`` within your recipe's :ref:`ref-tasks-install`
  7173. task and then the OpenEmbedded build system will stage a subset of
  7174. those files into the sysroot.
  7175. :term:`STAGING_DIR_HOST`
  7176. Specifies the path to the sysroot directory for the system on which
  7177. the component is built to run (the system that hosts the component).
  7178. For most recipes, this sysroot is the one in which that recipe's
  7179. :ref:`ref-tasks-populate_sysroot` task copies
  7180. files. Exceptions include ``-native`` recipes, where the
  7181. :ref:`ref-tasks-populate_sysroot` task instead uses
  7182. :term:`STAGING_DIR_NATIVE`. Depending on
  7183. the type of recipe and the build target, :term:`STAGING_DIR_HOST` can
  7184. have the following values:
  7185. - For recipes building for the target machine, the value is
  7186. "${:term:`STAGING_DIR`}/${:term:`MACHINE`}".
  7187. - For native recipes building for the build host, the value is empty
  7188. given the assumption that when building for the build host, the
  7189. build host's own directories should be used.
  7190. .. note::
  7191. ``-native`` recipes are not installed into host paths like such
  7192. as ``/usr``. Rather, these recipes are installed into
  7193. :term:`STAGING_DIR_NATIVE`. When compiling ``-native`` recipes,
  7194. standard build environment variables such as
  7195. :term:`CPPFLAGS` and
  7196. :term:`CFLAGS` are set up so that both host paths
  7197. and :term:`STAGING_DIR_NATIVE` are searched for libraries and
  7198. headers using, for example, GCC's ``-isystem`` option.
  7199. Thus, the emphasis is that the ``STAGING_DIR*`` variables
  7200. should be viewed as input variables by tasks such as
  7201. :ref:`ref-tasks-configure`,
  7202. :ref:`ref-tasks-compile`, and
  7203. :ref:`ref-tasks-install`. Having the real system
  7204. root correspond to :term:`STAGING_DIR_HOST` makes conceptual sense
  7205. for ``-native`` recipes, as they make use of host headers and
  7206. libraries.
  7207. Check :term:`RECIPE_SYSROOT` and :term:`RECIPE_SYSROOT_NATIVE`.
  7208. :term:`STAGING_DIR_NATIVE`
  7209. Specifies the path to the sysroot directory used when building
  7210. components that run on the build host itself.
  7211. The default value is ``"${RECIPE_SYSROOT_NATIVE}"``,
  7212. check :term:`RECIPE_SYSROOT_NATIVE`.
  7213. :term:`STAGING_DIR_TARGET`
  7214. Specifies the path to the sysroot used for the system for which the
  7215. component generates code. For components that do not generate code,
  7216. which is the majority, :term:`STAGING_DIR_TARGET` is set to match
  7217. :term:`STAGING_DIR_HOST`.
  7218. Some recipes build binaries that can run on the target system but those
  7219. binaries in turn generate code for another different system (e.g.
  7220. :ref:`ref-classes-cross-canadian` recipes). Using terminology from GNU,
  7221. the primary system is referred to as the "HOST" and the secondary, or
  7222. different, system is referred to as the "TARGET". Thus, the binaries
  7223. run on the "HOST" system and generate binaries for the "TARGET"
  7224. system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used
  7225. for the "HOST" system, while :term:`STAGING_DIR_TARGET` points to the
  7226. sysroot used for the "TARGET" system.
  7227. :term:`STAGING_ETCDIR_NATIVE`
  7228. Specifies the path to the ``/etc`` subdirectory of the sysroot
  7229. directory for the build host.
  7230. :term:`STAGING_EXECPREFIXDIR`
  7231. Specifies the path to the ``/usr`` subdirectory of the sysroot
  7232. directory for the target for which the current recipe is being built
  7233. (:term:`STAGING_DIR_HOST`).
  7234. :term:`STAGING_INCDIR`
  7235. Specifies the path to the ``/usr/include`` subdirectory of the
  7236. sysroot directory for the target for which the current recipe being
  7237. built (:term:`STAGING_DIR_HOST`).
  7238. :term:`STAGING_INCDIR_NATIVE`
  7239. Specifies the path to the ``/usr/include`` subdirectory of the
  7240. sysroot directory for the build host.
  7241. :term:`STAGING_KERNEL_BUILDDIR`
  7242. Points to the directory containing the kernel build artifacts.
  7243. Recipes building software that needs to access kernel build artifacts
  7244. (e.g. ``systemtap-uprobes``) can look in the directory specified with
  7245. the :term:`STAGING_KERNEL_BUILDDIR` variable to find these artifacts
  7246. after the kernel has been built.
  7247. :term:`STAGING_KERNEL_DIR`
  7248. The directory with kernel headers that are required to build
  7249. out-of-tree modules.
  7250. :term:`STAGING_LIBDIR`
  7251. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  7252. directory for the target for which the current recipe is being built
  7253. (:term:`STAGING_DIR_HOST`).
  7254. :term:`STAGING_LIBDIR_NATIVE`
  7255. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  7256. directory for the build host.
  7257. :term:`STAMP`
  7258. Specifies the base path used to create recipe stamp files. The path
  7259. to an actual stamp file is constructed by evaluating this string and
  7260. then appending additional information. Currently, the default
  7261. assignment for :term:`STAMP` as set in the ``meta/conf/bitbake.conf``
  7262. file is::
  7263. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  7264. For information on how BitBake uses stamp files to determine if a
  7265. task should be rerun, see the
  7266. ":ref:`overview-manual/concepts:stamp files and the rerunning of tasks`"
  7267. section in the Yocto Project Overview and Concepts Manual.
  7268. See :term:`STAMPS_DIR`,
  7269. :term:`MULTIMACH_TARGET_SYS`,
  7270. :term:`PN`, :term:`EXTENDPE`,
  7271. :term:`PV`, and :term:`PR` for related variable
  7272. information.
  7273. :term:`STAMPCLEAN`
  7274. See :term:`bitbake:STAMPCLEAN` in the BitBake manual.
  7275. :term:`STAMPS_DIR`
  7276. Specifies the base directory in which the OpenEmbedded build system
  7277. places stamps. The default directory is ``${TMPDIR}/stamps``.
  7278. :term:`STRIP`
  7279. The minimal command and arguments to run :manpage:`strip <strip(1)>`,
  7280. which is used to strip symbols.
  7281. :term:`SUMMARY`
  7282. The short (72 characters or less) summary of the binary package for
  7283. packaging systems such as ``opkg``, ``rpm``, or ``dpkg``. By default,
  7284. :term:`SUMMARY` is used to define the
  7285. :term:`DESCRIPTION` variable if :term:`DESCRIPTION` is
  7286. not set in the recipe.
  7287. :term:`SVNDIR`
  7288. The directory in which files checked out of a Subversion system are
  7289. stored.
  7290. :term:`SYSLINUX_DEFAULT_CONSOLE`
  7291. Specifies the kernel boot default console. If you want to use a
  7292. console other than the default, set this variable in your recipe as
  7293. follows where "X" is the console number you want to use::
  7294. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  7295. The :ref:`ref-classes-syslinux` class initially sets
  7296. this variable to null but then checks for a value later.
  7297. :term:`SYSLINUX_OPTS`
  7298. Lists additional options to add to the syslinux file. You need to set
  7299. this variable in your recipe. If you want to list multiple options,
  7300. separate the options with a semicolon character (``;``).
  7301. The :ref:`ref-classes-syslinux` class uses this variable
  7302. to create a set of options.
  7303. :term:`SYSLINUX_SERIAL`
  7304. Specifies the alternate serial port or turns it off. To turn off
  7305. serial, set this variable to an empty string in your recipe. The
  7306. variable's default value is set in the
  7307. :ref:`ref-classes-syslinux` class as follows::
  7308. SYSLINUX_SERIAL ?= "0 115200"
  7309. The class checks for and uses the variable as needed.
  7310. :term:`SYSLINUX_SERIAL_TTY`
  7311. Specifies the alternate console=tty... kernel boot argument. The
  7312. variable's default value is set in the :ref:`ref-classes-syslinux`
  7313. class as follows::
  7314. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  7315. The class checks for and uses the variable as needed.
  7316. :term:`SYSLINUX_SPLASH`
  7317. An ``.LSS`` file used as the background for the VGA boot menu when
  7318. you use the boot menu. You need to set this variable in your recipe.
  7319. The :ref:`ref-classes-syslinux` class checks for this
  7320. variable and if found, the OpenEmbedded build system installs the
  7321. splash screen.
  7322. :term:`SYSROOT_DESTDIR`
  7323. Points to the temporary directory under the work directory (default
  7324. "``${``\ :term:`WORKDIR`\ ``}/sysroot-destdir``")
  7325. where the files populated into the sysroot are assembled during the
  7326. :ref:`ref-tasks-populate_sysroot` task.
  7327. :term:`SYSROOT_DIRS`
  7328. Directories that are staged into the sysroot by the
  7329. :ref:`ref-tasks-populate_sysroot` task. By
  7330. default, the following directories are staged::
  7331. SYSROOT_DIRS = " \
  7332. ${includedir} \
  7333. ${libdir} \
  7334. ${base_libdir} \
  7335. ${nonarch_base_libdir} \
  7336. ${datadir} \
  7337. /sysroot-only \
  7338. "
  7339. Consider the following example in which you need to manipulate this variable.
  7340. Assume you have a recipe ``A`` that provides a shared library ``.so.*`` that is
  7341. installed into a custom folder other than "``${libdir}``"
  7342. or "``${base_libdir}``", let's say "``/opt/lib``".
  7343. .. note::
  7344. This is not a recommended way to deal with shared libraries, but this
  7345. is just to show the usefulness of setting :term:`SYSROOT_DIRS`.
  7346. When a recipe ``B`` :term:`DEPENDS` on ``A``, it means what is in
  7347. :term:`SYSROOT_DIRS` will be copied from :term:`D` of the recipe ``A``
  7348. into ``B``'s :term:`SYSROOT_DESTDIR` that is "``${WORKDIR}/sysroot-destdir``".
  7349. Now, since ``/opt/lib`` is not in :term:`SYSROOT_DIRS`, it will never be copied to
  7350. ``A``'s :term:`RECIPE_SYSROOT`, which is "``${WORKDIR}/recipe-sysroot``". So,
  7351. the linking process will fail.
  7352. To fix this, you need to add ``/opt/lib`` to :term:`SYSROOT_DIRS`::
  7353. SYSROOT_DIRS:append = " /opt/lib"
  7354. .. note::
  7355. Even after setting ``/opt/lib`` to :term:`SYSROOT_DIRS`, the linking process will still fail
  7356. because the linker does not know that location, since :term:`TARGET_LDFLAGS`
  7357. doesn't contain it (if your recipe is for the target). Therefore, so you should add::
  7358. TARGET_LDFLAGS:append = " -L${RECIPE_SYSROOT}/opt/lib"
  7359. :term:`SYSROOT_DIRS_IGNORE`
  7360. Directories that are not staged into the sysroot by the
  7361. :ref:`ref-tasks-populate_sysroot` task. You
  7362. can use this variable to exclude certain subdirectories of
  7363. directories listed in :term:`SYSROOT_DIRS` from
  7364. staging. By default, the following directories are not staged::
  7365. SYSROOT_DIRS_IGNORE = " \
  7366. ${mandir} \
  7367. ${docdir} \
  7368. ${infodir} \
  7369. ${datadir}/X11/locale \
  7370. ${datadir}/applications \
  7371. ${datadir}/bash-completion \
  7372. ${datadir}/fonts \
  7373. ${datadir}/gtk-doc/html \
  7374. ${datadir}/installed-tests \
  7375. ${datadir}/locale \
  7376. ${datadir}/pixmaps \
  7377. ${datadir}/terminfo \
  7378. ${libdir}/${BPN}/ptest \
  7379. "
  7380. :term:`SYSROOT_DIRS_NATIVE`
  7381. Extra directories staged into the sysroot by the
  7382. :ref:`ref-tasks-populate_sysroot` task for
  7383. ``-native`` recipes, in addition to those specified in
  7384. :term:`SYSROOT_DIRS`. By default, the following
  7385. extra directories are staged::
  7386. SYSROOT_DIRS_NATIVE = " \
  7387. ${bindir} \
  7388. ${sbindir} \
  7389. ${base_bindir} \
  7390. ${base_sbindir} \
  7391. ${libexecdir} \
  7392. ${sysconfdir} \
  7393. ${localstatedir} \
  7394. "
  7395. .. note::
  7396. Programs built by ``-native`` recipes run directly from the sysroot
  7397. (:term:`STAGING_DIR_NATIVE`), which is why additional directories
  7398. containing program executables and supporting files need to be staged.
  7399. :term:`SYSROOT_PREPROCESS_FUNCS`
  7400. A list of functions to execute after files are staged into the
  7401. sysroot. These functions are usually used to apply additional
  7402. processing on the staged files, or to stage additional files.
  7403. :term:`SYSTEMD_AUTO_ENABLE`
  7404. When inheriting the :ref:`ref-classes-systemd` class,
  7405. this variable specifies whether the specified service in
  7406. :term:`SYSTEMD_SERVICE` should start
  7407. automatically or not. By default, the service is enabled to
  7408. automatically start at boot time. The default setting is in the
  7409. :ref:`ref-classes-systemd` class as follows::
  7410. SYSTEMD_AUTO_ENABLE ??= "enable"
  7411. You can disable the service by setting the variable to "disable".
  7412. :term:`SYSTEMD_BOOT_CFG`
  7413. When :term:`EFI_PROVIDER` is set to
  7414. "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the
  7415. configuration file that should be used. By default, the
  7416. :ref:`ref-classes-systemd-boot` class sets the
  7417. :term:`SYSTEMD_BOOT_CFG` as follows::
  7418. SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
  7419. For information on Systemd-boot, see the `Systemd-boot
  7420. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  7421. :term:`SYSTEMD_BOOT_ENTRIES`
  7422. When :term:`EFI_PROVIDER` is set to
  7423. "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a
  7424. list of entry files (``*.conf``) to install that contain one boot
  7425. entry per file. By default, the :ref:`ref-classes-systemd-boot` class
  7426. sets the :term:`SYSTEMD_BOOT_ENTRIES` as follows::
  7427. SYSTEMD_BOOT_ENTRIES ?= ""
  7428. For information on Systemd-boot, see the `Systemd-boot
  7429. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  7430. :term:`SYSTEMD_BOOT_TIMEOUT`
  7431. When :term:`EFI_PROVIDER` is set to
  7432. "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the
  7433. boot menu timeout in seconds. By default, the
  7434. :ref:`ref-classes-systemd-boot` class sets the
  7435. :term:`SYSTEMD_BOOT_TIMEOUT` as follows::
  7436. SYSTEMD_BOOT_TIMEOUT ?= "10"
  7437. For information on Systemd-boot, see the `Systemd-boot
  7438. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  7439. :term:`SYSTEMD_DEFAULT_TARGET`
  7440. This variable allows to set the default unit that systemd starts at bootup.
  7441. Usually, this is either ``multi-user.target`` or ``graphical.target``.
  7442. This works by creating a ``default.target`` symbolic link to the chosen systemd
  7443. target file.
  7444. See `systemd's documentation
  7445. <https://www.freedesktop.org/software/systemd/man/systemd.special.html>`__
  7446. for details.
  7447. For example, this variable is used in the :oe_git:`core-image-minimal-xfce.bb
  7448. </meta-openembedded/tree/meta-xfce/recipes-core/images/core-image-minimal-xfce.bb>`
  7449. recipe::
  7450. SYSTEMD_DEFAULT_TARGET = "graphical.target"
  7451. :term:`SYSTEMD_PACKAGES`
  7452. When inheriting the :ref:`ref-classes-systemd` class,
  7453. this variable locates the systemd unit files when they are not found
  7454. in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES`
  7455. variable is set such that the systemd unit files are assumed to
  7456. reside in the recipes main package::
  7457. SYSTEMD_PACKAGES ?= "${PN}"
  7458. If these unit files are not in this recipe's main package, you need
  7459. to use :term:`SYSTEMD_PACKAGES` to list the package or packages in which
  7460. the build system can find the systemd unit files.
  7461. :term:`SYSTEMD_SERVICE`
  7462. When inheriting the :ref:`ref-classes-systemd` class,
  7463. this variable specifies the systemd service name for a package.
  7464. Multiple services can be specified, each one separated by a space.
  7465. When you specify this file in your recipe, use a package name
  7466. override to indicate the package to which the value applies. Here is
  7467. an example from the connman recipe::
  7468. SYSTEMD_SERVICE:${PN} = "connman.service"
  7469. The package overrides that can be specified are directly related to the value of
  7470. :term:`SYSTEMD_PACKAGES`. Overrides not included in :term:`SYSTEMD_PACKAGES`
  7471. will be silently ignored.
  7472. :term:`SYSVINIT_ENABLED_GETTYS`
  7473. When using :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  7474. specifies a space-separated list of the virtual terminals that should
  7475. run a :wikipedia:`getty <Getty_(Unix)>` (allowing login), assuming
  7476. :term:`USE_VT` is not set to "0".
  7477. The default value for :term:`SYSVINIT_ENABLED_GETTYS` is "1" (i.e. only
  7478. run a getty on the first virtual terminal).
  7479. :term:`T`
  7480. This variable points to a directory were BitBake places temporary
  7481. files, which consist mostly of task logs and scripts, when building a
  7482. particular recipe. The variable is typically set as follows::
  7483. T = "${WORKDIR}/temp"
  7484. The :term:`WORKDIR` is the directory into which
  7485. BitBake unpacks and builds the recipe. The default ``bitbake.conf``
  7486. file sets this variable.
  7487. The :term:`T` variable is not to be confused with the
  7488. :term:`TMPDIR` variable, which points to the root of
  7489. the directory tree where BitBake places the output of an entire
  7490. build.
  7491. :term:`TARGET_ARCH`
  7492. The target machine's architecture. The OpenEmbedded build system
  7493. supports many architectures. Here is an example list of architectures
  7494. supported. This list is by no means complete as the architecture is
  7495. configurable:
  7496. - arm
  7497. - i586
  7498. - x86_64
  7499. - powerpc
  7500. - powerpc64
  7501. - mips
  7502. - mipsel
  7503. For additional information on machine architectures, see the
  7504. :term:`TUNE_ARCH` variable.
  7505. :term:`TARGET_AS_ARCH`
  7506. Specifies architecture-specific assembler flags for the target
  7507. system. :term:`TARGET_AS_ARCH` is initialized from
  7508. :term:`TUNE_ASARGS` by default in the BitBake
  7509. configuration file (``meta/conf/bitbake.conf``)::
  7510. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  7511. :term:`TARGET_CC_ARCH`
  7512. Specifies architecture-specific C compiler flags for the target
  7513. system. :term:`TARGET_CC_ARCH` is initialized from
  7514. :term:`TUNE_CCARGS` by default.
  7515. .. note::
  7516. It is a common workaround to append :term:`LDFLAGS` to
  7517. :term:`TARGET_CC_ARCH` in recipes that build software for the target that
  7518. would not otherwise respect the exported :term:`LDFLAGS` variable.
  7519. :term:`TARGET_CC_KERNEL_ARCH`
  7520. This is a specific kernel compiler flag for a CPU or Application
  7521. Binary Interface (ABI) tune. The flag is used rarely and only for
  7522. cases where a userspace :term:`TUNE_CCARGS` is not
  7523. compatible with the kernel compilation. The :term:`TARGET_CC_KERNEL_ARCH`
  7524. variable allows the kernel (and associated modules) to use a
  7525. different configuration. See the
  7526. ``meta/conf/machine/include/arm/feature-arm-thumb.inc`` file in the
  7527. :term:`Source Directory` for an example.
  7528. :term:`TARGET_CFLAGS`
  7529. Specifies the flags to pass to the C compiler when building for the
  7530. target. When building in the target context,
  7531. :term:`CFLAGS` is set to the value of this variable by
  7532. default.
  7533. Additionally, the SDK's environment setup script sets the :term:`CFLAGS`
  7534. variable in the environment to the :term:`TARGET_CFLAGS` value so that
  7535. executables built using the SDK also have the flags applied.
  7536. :term:`TARGET_CPPFLAGS`
  7537. Specifies the flags to pass to the C pre-processor (i.e. to both the
  7538. C and the C++ compilers) when building for the target. When building
  7539. in the target context, :term:`CPPFLAGS` is set to the
  7540. value of this variable by default.
  7541. Additionally, the SDK's environment setup script sets the
  7542. :term:`CPPFLAGS` variable in the environment to the :term:`TARGET_CPPFLAGS`
  7543. value so that executables built using the SDK also have the flags
  7544. applied.
  7545. :term:`TARGET_CXXFLAGS`
  7546. Specifies the flags to pass to the C++ compiler when building for the
  7547. target. When building in the target context,
  7548. :term:`CXXFLAGS` is set to the value of this variable
  7549. by default.
  7550. Additionally, the SDK's environment setup script sets the
  7551. :term:`CXXFLAGS` variable in the environment to the :term:`TARGET_CXXFLAGS`
  7552. value so that executables built using the SDK also have the flags
  7553. applied.
  7554. :term:`TARGET_DBGSRC_DIR`
  7555. Specifies the target path to debug source files. The default is
  7556. ``/usr/src/debug/${PN}/${PV}``.
  7557. :term:`TARGET_FPU`
  7558. Specifies the method for handling FPU code. For FPU-less targets,
  7559. which include most ARM CPUs, the variable must be set to "soft". If
  7560. not, the kernel emulation gets used, which results in a performance
  7561. penalty.
  7562. :term:`TARGET_LD_ARCH`
  7563. Specifies architecture-specific linker flags for the target system.
  7564. :term:`TARGET_LD_ARCH` is initialized from
  7565. :term:`TUNE_LDARGS` by default in the BitBake
  7566. configuration file (``meta/conf/bitbake.conf``)::
  7567. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  7568. :term:`TARGET_LDFLAGS`
  7569. Specifies the flags to pass to the linker when building for the
  7570. target. When building in the target context,
  7571. :term:`LDFLAGS` is set to the value of this variable
  7572. by default.
  7573. Additionally, the SDK's environment setup script sets the
  7574. :term:`LDFLAGS` variable in the environment to the
  7575. :term:`TARGET_LDFLAGS` value so that executables built using the SDK also
  7576. have the flags applied.
  7577. :term:`TARGET_OS`
  7578. Specifies the target's operating system. The variable can be set to
  7579. "linux" for glibc-based systems (GNU C Library) and to "linux-musl"
  7580. for musl libc. For ARM/EABI targets, the possible values are
  7581. "linux-gnueabi" and "linux-musleabi".
  7582. :term:`TARGET_PREFIX`
  7583. Specifies the prefix used for the toolchain binary target tools.
  7584. Depending on the type of recipe and the build target,
  7585. :term:`TARGET_PREFIX` is set as follows:
  7586. - For recipes building for the target machine, the value is
  7587. "${:term:`TARGET_SYS`}-".
  7588. - For native recipes, the build system sets the variable to the
  7589. value of :term:`BUILD_PREFIX`.
  7590. - For native SDK recipes (:ref:`ref-classes-nativesdk`),
  7591. the build system sets the variable to the value of :term:`SDK_PREFIX`.
  7592. :term:`TARGET_SYS`
  7593. Specifies the system, including the architecture and the operating
  7594. system, for which the build is occurring in the context of the
  7595. current recipe.
  7596. The OpenEmbedded build system automatically sets this variable based
  7597. on :term:`TARGET_ARCH`,
  7598. :term:`TARGET_VENDOR`, and
  7599. :term:`TARGET_OS` variables.
  7600. .. note::
  7601. You do not need to set the :term:`TARGET_SYS` variable yourself.
  7602. Consider these two examples:
  7603. - Given a native recipe on a 32-bit, x86 machine running Linux, the
  7604. value is "i686-linux".
  7605. - Given a recipe being built for a little-endian, MIPS target
  7606. running Linux, the value might be "mipsel-linux".
  7607. :term:`TARGET_VENDOR`
  7608. Specifies the name of the target vendor.
  7609. :term:`TC_CXX_RUNTIME`
  7610. Specifies the C/C++ STL and runtime variant to use during
  7611. the build process. Default value is 'gnu'
  7612. You can select "gnu", "llvm", or "android".
  7613. :term:`TCLIBC`
  7614. Specifies the GNU standard C library (``libc``) variant to use during
  7615. the build process.
  7616. You can select "glibc", "musl", "newlib", or "baremetal".
  7617. :term:`TCMODE`
  7618. Specifies the toolchain selector. :term:`TCMODE` controls the
  7619. characteristics of the generated packages and images by telling the
  7620. OpenEmbedded build system which toolchain profile to use. By default,
  7621. the OpenEmbedded build system builds its own internal toolchain. The
  7622. variable's default value is "default", which uses that internal
  7623. toolchain.
  7624. .. note::
  7625. If :term:`TCMODE` is set to a value other than "default", then it is your
  7626. responsibility to ensure that the toolchain is compatible with the
  7627. default toolchain. Using older or newer versions of these
  7628. components might cause build problems. See
  7629. :doc:`Release Information </migration-guides/index>` for your
  7630. version of the Yocto Project, to find the specific components with
  7631. which the toolchain must be compatible.
  7632. The :term:`TCMODE` variable is similar to :term:`TCLIBC`,
  7633. which controls the variant of the GNU standard C library (``libc``)
  7634. used during the build process: ``glibc`` or ``musl``.
  7635. With additional layers, it is possible to use a pre-compiled external
  7636. toolchain. One example is the Sourcery G++ Toolchain. The support for
  7637. this toolchain resides in the separate Mentor Graphics
  7638. ``meta-sourcery`` layer at
  7639. https://github.com/MentorEmbedded/meta-sourcery/.
  7640. The layer's ``README`` file contains information on how to use the
  7641. Sourcery G++ Toolchain as an external toolchain. You will have to
  7642. add the layer to your ``bblayers.conf`` file and then set the
  7643. :term:`EXTERNAL_TOOLCHAIN` variable in your ``local.conf`` file to
  7644. the location of the toolchain.
  7645. The fundamentals used for this example apply to any external
  7646. toolchain. You can use ``meta-sourcery`` as a template for adding
  7647. support for other external toolchains.
  7648. In addition to toolchain configuration, you will also need a
  7649. corresponding toolchain recipe file. This recipe file needs to package
  7650. up any pre-built objects in the toolchain such as ``libgcc``,
  7651. ``libstdcc++``, any locales, and ``libc``.
  7652. :term:`TEMPLATECONF`
  7653. Specifies the directory used by the build system to find templates
  7654. from which to build the ``bblayers.conf`` and ``local.conf`` files.
  7655. Use this variable if you wish to customize such files, and the default
  7656. BitBake targets shown when sourcing the ``oe-init-build-env`` script.
  7657. For details, see the
  7658. :ref:`dev-manual/custom-template-configuration-directory:creating a custom template configuration directory`
  7659. section in the Yocto Project Development Tasks manual.
  7660. .. note::
  7661. You must set this variable in the external environment in order
  7662. for it to work.
  7663. :term:`TEST_EXPORT_DIR`
  7664. The location the OpenEmbedded build system uses to export tests when
  7665. the :term:`TEST_EXPORT_ONLY` variable is set
  7666. to "1".
  7667. The :term:`TEST_EXPORT_DIR` variable defaults to
  7668. ``"${TMPDIR}/testimage/${PN}"``.
  7669. :term:`TEST_EXPORT_ONLY`
  7670. Specifies to export the tests only. Set this variable to "1" if you
  7671. do not want to run the tests but you want them to be exported in a
  7672. manner that you to run them outside of the build system.
  7673. :term:`TEST_LOG_DIR`
  7674. Holds the SSH log and the boot log for QEMU machines. The
  7675. :term:`TEST_LOG_DIR` variable defaults to ``"${WORKDIR}/testimage"``.
  7676. .. note::
  7677. Actual test results reside in the task log (``log.do_testimage``),
  7678. which is in the ``${WORKDIR}/temp/`` directory.
  7679. :term:`TEST_POWERCONTROL_CMD`
  7680. For automated hardware testing, specifies the command to use to
  7681. control the power of the target machine under test. Typically, this
  7682. command would point to a script that performs the appropriate action
  7683. (e.g. interacting with a web-enabled power strip). The specified
  7684. command should expect to receive as the last argument "off", "on" or
  7685. "cycle" specifying to power off, on, or cycle (power off and then
  7686. power on) the device, respectively.
  7687. :term:`TEST_POWERCONTROL_EXTRA_ARGS`
  7688. For automated hardware testing, specifies additional arguments to
  7689. pass through to the command specified in
  7690. :term:`TEST_POWERCONTROL_CMD`. Setting
  7691. :term:`TEST_POWERCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7692. wish, for example, to separate the machine-specific and
  7693. non-machine-specific parts of the arguments.
  7694. :term:`TEST_QEMUBOOT_TIMEOUT`
  7695. The time in seconds allowed for an image to boot before automated
  7696. runtime tests begin to run against an image. The default timeout
  7697. period to allow the boot process to reach the login prompt is 500
  7698. seconds. You can specify a different value in the ``local.conf``
  7699. file.
  7700. For more information on testing images, see the
  7701. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7702. section in the Yocto Project Test Environment Manual.
  7703. :term:`TEST_SERIALCONTROL_CMD`
  7704. For automated hardware testing, specifies the command to use to
  7705. connect to the serial console of the target machine under test. This
  7706. command simply needs to connect to the serial console and forward
  7707. that connection to standard input and output as any normal terminal
  7708. program does.
  7709. For example, to use the Picocom terminal program on serial device
  7710. ``/dev/ttyUSB0`` at 115200bps, you would set the variable as follows::
  7711. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  7712. :term:`TEST_SERIALCONTROL_EXTRA_ARGS`
  7713. For automated hardware testing, specifies additional arguments to
  7714. pass through to the command specified in
  7715. :term:`TEST_SERIALCONTROL_CMD`. Setting
  7716. :term:`TEST_SERIALCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7717. wish, for example, to separate the machine-specific and
  7718. non-machine-specific parts of the command.
  7719. :term:`TEST_SERVER_IP`
  7720. The IP address of the build machine (host machine). This IP address
  7721. is usually automatically detected. However, if detection fails, this
  7722. variable needs to be set to the IP address of the build machine (i.e.
  7723. where the build is taking place).
  7724. .. note::
  7725. The :term:`TEST_SERVER_IP` variable is only used for a small number of
  7726. tests such as the "dnf" test suite, which needs to download packages
  7727. from ``WORKDIR/oe-rootfs-repo``.
  7728. :term:`TEST_SUITES`
  7729. An ordered list of tests (modules) to run against an image when
  7730. performing automated runtime testing.
  7731. The OpenEmbedded build system provides a core set of tests that can
  7732. be used against images.
  7733. .. note::
  7734. Currently, there is only support for running these tests under
  7735. QEMU.
  7736. Tests include ``ping``, ``ssh``, ``df`` among others. You can add
  7737. your own tests to the list of tests by appending :term:`TEST_SUITES` as
  7738. follows::
  7739. TEST_SUITES:append = " mytest"
  7740. Alternatively, you can
  7741. provide the "auto" option to have all applicable tests run against
  7742. the image::
  7743. TEST_SUITES:append = " auto"
  7744. Using this option causes the
  7745. build system to automatically run tests that are applicable to the
  7746. image. Tests that are not applicable are skipped.
  7747. The order in which tests are run is important. Tests that depend on
  7748. another test must appear later in the list than the test on which
  7749. they depend. For example, if you append the list of tests with two
  7750. tests (``test_A`` and ``test_B``) where ``test_B`` is dependent on
  7751. ``test_A``, then you must order the tests as follows::
  7752. TEST_SUITES = "test_A test_B"
  7753. For more information on testing images, see the
  7754. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7755. section in the Yocto Project Test Environment Manual.
  7756. :term:`TEST_TARGET`
  7757. Specifies the target controller to use when running tests against a
  7758. test image. The default controller to use is "qemu"::
  7759. TEST_TARGET = "qemu"
  7760. A target controller is a class that defines how an image gets
  7761. deployed on a target and how a target is started. A layer can extend
  7762. the controllers by adding a module in the layer's
  7763. ``/lib/oeqa/controllers`` directory and by inheriting the
  7764. ``BaseTarget`` class, which is an abstract class that cannot be used
  7765. as a value of :term:`TEST_TARGET`.
  7766. You can provide the following arguments with :term:`TEST_TARGET`:
  7767. - *"qemu":* Boots a QEMU image and runs the tests. See the
  7768. ":ref:`test-manual/runtime-testing:enabling runtime tests on qemu`" section
  7769. in the Yocto Project Test Environment Manual for more
  7770. information.
  7771. - *"simpleremote":* Runs the tests on target hardware that is
  7772. already up and running. The hardware can be on the network or it
  7773. can be a device running an image on QEMU. You must also set
  7774. :term:`TEST_TARGET_IP` when you use
  7775. "simpleremote".
  7776. .. note::
  7777. This argument is defined in
  7778. ``meta/lib/oeqa/controllers/simpleremote.py``.
  7779. For information on running tests on hardware, see the
  7780. ":ref:`test-manual/runtime-testing:enabling runtime tests on hardware`"
  7781. section in the Yocto Project Test Environment Manual.
  7782. :term:`TEST_TARGET_IP`
  7783. The IP address of your hardware under test. The :term:`TEST_TARGET_IP`
  7784. variable has no effect when :term:`TEST_TARGET` is
  7785. set to "qemu".
  7786. When you specify the IP address, you can also include a port. Here is
  7787. an example::
  7788. TEST_TARGET_IP = "192.168.1.4:2201"
  7789. Specifying a port is
  7790. useful when SSH is started on a non-standard port or in cases when
  7791. your hardware under test is behind a firewall or network that is not
  7792. directly accessible from your host and you need to do port address
  7793. translation.
  7794. :term:`TESTIMAGE_AUTO`
  7795. Automatically runs the series of automated tests for images when an
  7796. image is successfully built. Setting :term:`TESTIMAGE_AUTO` to "1" causes
  7797. any image that successfully builds to automatically boot under QEMU.
  7798. Using the variable also adds in dependencies so that any SDK for
  7799. which testing is requested is automatically built first.
  7800. These tests are written in Python making use of the ``unittest``
  7801. module, and the majority of them run commands on the target system
  7802. over ``ssh``. You can set this variable to "1" in your ``local.conf``
  7803. file in the :term:`Build Directory` to have the
  7804. OpenEmbedded build system automatically run these tests after an
  7805. image successfully builds:
  7806. TESTIMAGE_AUTO = "1"
  7807. For more information
  7808. on enabling, running, and writing these tests, see the
  7809. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7810. section in the Yocto Project Test Environment Manual and the
  7811. ":ref:`ref-classes-testimage`" section.
  7812. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS`
  7813. When using the :ref:`ref-classes-testimage` class, the variable
  7814. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS` lists space-separated paths on the
  7815. target to retrieve onto the host.
  7816. :term:`TESTSDK_SUITES`
  7817. When using the :ref:`ref-classes-testsdk` class, the
  7818. :term:`TESTSDK_SUITES` variable can be used to control the list of test
  7819. modules to run. The default value for this variable is an empty string
  7820. and all test modules that can be found are run.
  7821. :term:`THISDIR`
  7822. The directory in which the file BitBake is currently parsing is
  7823. located. Do not manually set this variable.
  7824. :term:`TIME`
  7825. The time the build was started. Times appear using the hour, minute,
  7826. and second (HMS) format (e.g. "140159" for one minute and fifty-nine
  7827. seconds past 1400 hours).
  7828. :term:`TMPDIR`
  7829. This variable is the base directory the OpenEmbedded build system
  7830. uses for all build output and intermediate files (other than the
  7831. shared state cache). By default, the :term:`TMPDIR` variable points to
  7832. ``tmp`` within the :term:`Build Directory`.
  7833. If you want to establish this directory in a location other than the
  7834. default, you can uncomment and edit the following statement in the
  7835. ``conf/local.conf`` file in the :term:`Source Directory`::
  7836. #TMPDIR = "${TOPDIR}/tmp"
  7837. An example use for this scenario is to set :term:`TMPDIR` to a local disk,
  7838. which does not use NFS, while having the :term:`Build Directory` use NFS.
  7839. The filesystem used by :term:`TMPDIR` must have standard filesystem
  7840. semantics (i.e. mixed-case files are unique, POSIX file locking, and
  7841. persistent inodes). Due to various issues with NFS and bugs in some
  7842. implementations, NFS does not meet this minimum requirement.
  7843. Consequently, :term:`TMPDIR` cannot be on NFS.
  7844. :term:`TOOLCHAIN`
  7845. The :term:`TOOLCHAIN` variable can be used to override the toolchain used
  7846. by a recipe.
  7847. The default value for this variable is the value of
  7848. :term:`PREFERRED_TOOLCHAIN`. See the description of
  7849. :term:`PREFERRED_TOOLCHAIN` to know the list of possible values for
  7850. :term:`TOOLCHAIN`.
  7851. It is possible to override the value of this variable from a recipe if
  7852. this recipe is known to support only a specific toolchain. For example,
  7853. the :oe_git:`Pseudo </openembedded-core/tree/meta/recipes-devtools/pseudo/pseudo_git.bb>`
  7854. recipe overrides this variable to "gcc", because Pseudo uses GCC compiler
  7855. built-ins options that the Clang/LLVM compiler does not provide.
  7856. :term:`TOOLCHAIN_HOST_TASK`
  7857. This variable lists packages the OpenEmbedded build system uses when
  7858. building an SDK, which contains a cross-development environment. The
  7859. packages specified by this variable are part of the toolchain set
  7860. that runs on the :term:`SDKMACHINE`, and each
  7861. package should usually have the prefix ``nativesdk-``. For example,
  7862. consider the following command when building an SDK::
  7863. $ bitbake -c populate_sdk imagename
  7864. In this case, a default list of packages is
  7865. set in this variable, but you can add additional packages to the
  7866. list. See the
  7867. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7868. in the Yocto Project Application Development and the Extensible
  7869. Software Development Kit (eSDK) manual for more information.
  7870. For background information on cross-development toolchains in the
  7871. Yocto Project development environment, see the
  7872. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7873. section in the Yocto Project Overview and Concepts Manual. For
  7874. information on setting up a cross-development environment, see the
  7875. :doc:`/sdk-manual/index` manual.
  7876. Note that this variable applies to building an SDK, not an eSDK,
  7877. in which case the :term:`TOOLCHAIN_HOST_TASK_ESDK` setting should be
  7878. used instead.
  7879. :term:`TOOLCHAIN_HOST_TASK_ESDK`
  7880. This variable allows to extend what is installed in the host
  7881. portion of an eSDK. This is similar to :term:`TOOLCHAIN_HOST_TASK`
  7882. applying to SDKs.
  7883. :term:`TOOLCHAIN_NATIVE`
  7884. The :term:`TOOLCHAIN_NATIVE` variable can be used to override the
  7885. toolchain used by a :ref:`ref-classes-native` recipe.
  7886. The default value for this variable is the value of
  7887. :term:`PREFERRED_TOOLCHAIN` (in :ref:`ref-classes-native` contexts). See
  7888. the description of :term:`PREFERRED_TOOLCHAIN` to know the list of
  7889. possible values for :term:`TOOLCHAIN_NATIVE`.
  7890. It is possible to override the value of this variable from a recipe if
  7891. this recipe is known to support only a specific toolchain.
  7892. :term:`TOOLCHAIN_OPTIONS`
  7893. This variable holds extra options passed to the compiler and the linker
  7894. for non ``-native`` recipes as they have to point to their custom
  7895. ``sysroot`` folder pointed to by :term:`RECIPE_SYSROOT`::
  7896. TOOLCHAIN_OPTIONS = " --sysroot=${RECIPE_SYSROOT}"
  7897. Native recipes don't need this variable to be set, as they are
  7898. built for the host machine with the native compiler.
  7899. :term:`TOOLCHAIN_OUTPUTNAME`
  7900. This variable defines the name used for the toolchain output. The
  7901. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
  7902. the :term:`TOOLCHAIN_OUTPUTNAME` variable as follows::
  7903. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  7904. See
  7905. the :term:`SDK_NAME` and
  7906. :term:`SDK_VERSION` variables for additional
  7907. information.
  7908. :term:`TOOLCHAIN_TARGET_TASK`
  7909. This variable lists packages the OpenEmbedded build system uses when
  7910. it creates the target part of an SDK (i.e. the part built for the
  7911. target hardware), which includes libraries and headers. Use this
  7912. variable to add individual packages to the part of the SDK that runs
  7913. on the target. See the
  7914. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7915. in the Yocto Project Application Development and the Extensible
  7916. Software Development Kit (eSDK) manual for more information.
  7917. For background information on cross-development toolchains in the
  7918. Yocto Project development environment, see the
  7919. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7920. section in the Yocto Project Overview and Concepts Manual. For
  7921. information on setting up a cross-development environment, see the
  7922. :doc:`/sdk-manual/index` manual.
  7923. :term:`TOPDIR`
  7924. See :term:`bitbake:TOPDIR` in the BitBake manual.
  7925. :term:`TRANSLATED_TARGET_ARCH`
  7926. A sanitized version of :term:`TARGET_ARCH`. This
  7927. variable is used where the architecture is needed in a value where
  7928. underscores are not allowed, for example within package filenames. In
  7929. this case, dash characters replace any underscore characters used in
  7930. :term:`TARGET_ARCH`.
  7931. Do not edit this variable.
  7932. :term:`TUNE_ARCH`
  7933. The GNU canonical architecture for a specific architecture (i.e.
  7934. ``arm``, ``armeb``, ``mips``, ``mips64``, and so forth). BitBake uses
  7935. this value to setup configuration.
  7936. :term:`TUNE_ARCH` definitions are specific to a given architecture. The
  7937. definitions can be a single static definition, or can be dynamically
  7938. adjusted. You can see details for a given CPU family by looking at
  7939. the architecture's ``README`` file. For example, the
  7940. ``meta/conf/machine/include/mips/README`` file in the
  7941. :term:`Source Directory` provides information for
  7942. :term:`TUNE_ARCH` specific to the ``mips`` architecture.
  7943. :term:`TUNE_ARCH` is tied closely to
  7944. :term:`TARGET_ARCH`, which defines the target
  7945. machine's architecture. The BitBake configuration file
  7946. (``meta/conf/bitbake.conf``) sets :term:`TARGET_ARCH` as follows::
  7947. TARGET_ARCH = "${TUNE_ARCH}"
  7948. The following list, which is by no means complete since architectures
  7949. are configurable, shows supported machine architectures:
  7950. - arm
  7951. - i586
  7952. - x86_64
  7953. - powerpc
  7954. - powerpc64
  7955. - mips
  7956. - mipsel
  7957. :term:`TUNE_ASARGS`
  7958. Specifies architecture-specific assembler flags for the target
  7959. system. The set of flags is based on the selected tune features.
  7960. :term:`TUNE_ASARGS` is set using the tune include files, which are
  7961. typically under ``meta/conf/machine/include/`` and are influenced
  7962. through :term:`TUNE_FEATURES`. For example, the
  7963. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7964. for the x86 architecture as follows::
  7965. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  7966. .. note::
  7967. Board Support Packages (BSPs) select the tune. The selected tune,
  7968. in turn, affects the tune variables themselves (i.e. the tune can
  7969. supply its own set of flags).
  7970. :term:`TUNE_CCARGS`
  7971. Specifies architecture-specific C compiler flags for the target
  7972. system. The set of flags is based on the selected tune features.
  7973. :term:`TUNE_CCARGS` is set using the tune include files, which are
  7974. typically under ``meta/conf/machine/include/`` and are influenced
  7975. through :term:`TUNE_FEATURES`.
  7976. .. note::
  7977. Board Support Packages (BSPs) select the tune. The selected tune,
  7978. in turn, affects the tune variables themselves (i.e. the tune can
  7979. supply its own set of flags).
  7980. :term:`TUNE_FEATURES`
  7981. Features used to "tune" a compiler for optimal use given a specific
  7982. processor. The features are defined within the tune files and allow
  7983. arguments (i.e. ``TUNE_*ARGS``) to be dynamically generated based on
  7984. the features.
  7985. The OpenEmbedded build system verifies the features to be sure they
  7986. are not conflicting and that they are supported.
  7987. The BitBake configuration file (``meta/conf/bitbake.conf``) defines
  7988. :term:`TUNE_FEATURES` as follows::
  7989. TUNE_FEATURES ??= "${TUNE_FEATURES:tune-${DEFAULTTUNE}}"
  7990. See the :term:`DEFAULTTUNE` variable for more information.
  7991. :term:`TUNE_LDARGS`
  7992. Specifies architecture-specific linker flags for the target system.
  7993. The set of flags is based on the selected tune features.
  7994. :term:`TUNE_LDARGS` is set using the tune include files, which are
  7995. typically under ``meta/conf/machine/include/`` and are influenced
  7996. through :term:`TUNE_FEATURES`. For example, the
  7997. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7998. for the x86 architecture as follows::
  7999. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  8000. .. note::
  8001. Board Support Packages (BSPs) select the tune. The selected tune,
  8002. in turn, affects the tune variables themselves (i.e. the tune can
  8003. supply its own set of flags).
  8004. :term:`TUNE_PKGARCH`
  8005. The package architecture understood by the packaging system to define
  8006. the architecture, ABI, and tuning of output packages. The specific
  8007. tune is defined using the "_tune" override as follows::
  8008. TUNE_PKGARCH:tune-tune = "tune"
  8009. These tune-specific package architectures are defined in the machine
  8010. include files. Here is an example of the "core2-32" tuning as used in
  8011. the ``meta/conf/machine/include/x86/tune-core2.inc`` file::
  8012. TUNE_PKGARCH:tune-core2-32 = "core2-32"
  8013. :term:`TUNECONFLICTS[feature]`
  8014. Specifies CPU or Application Binary Interface (ABI) tuning features
  8015. that conflict with feature.
  8016. Known tuning conflicts are specified in the machine include files in
  8017. the :term:`Source Directory`. Here is an example from
  8018. the ``meta/conf/machine/include/mips/arch-mips.inc`` include file
  8019. that lists the "o32" and "n64" features as conflicting with the "n32"
  8020. feature::
  8021. TUNECONFLICTS[n32] = "o32 n64"
  8022. :term:`TUNEVALID[feature]`
  8023. Specifies a valid CPU or Application Binary Interface (ABI) tuning
  8024. feature. The specified feature is stored as a flag. Valid features
  8025. are specified in the machine include files (e.g.
  8026. ``meta/conf/machine/include/arm/arch-arm.inc``). Here is an example
  8027. from that file::
  8028. TUNEVALID[bigendian] = "Enable big-endian mode."
  8029. See the machine include files in the :term:`Source Directory`
  8030. for these features.
  8031. :term:`UBOOT_BINARY`
  8032. Specifies the name of the binary build by U-Boot.
  8033. :term:`UBOOT_CONFIG`
  8034. Configures one or more U-Boot configurations to build. Each
  8035. configuration can define the :term:`UBOOT_MACHINE` and optionally the
  8036. :term:`IMAGE_FSTYPES` and the :term:`UBOOT_BINARY`.
  8037. Here is an example from the ``meta-freescale`` layer. ::
  8038. UBOOT_CONFIG ??= "sdcard-ifc-secure-boot sdcard-ifc sdcard-qspi lpuart qspi secure-boot nor"
  8039. UBOOT_CONFIG[nor] = "ls1021atwr_nor_defconfig"
  8040. UBOOT_CONFIG[sdcard-ifc] = "ls1021atwr_sdcard_ifc_defconfig,,u-boot-with-spl-pbl.bin"
  8041. UBOOT_CONFIG[sdcard-qspi] = "ls1021atwr_sdcard_qspi_defconfig,,u-boot-with-spl-pbl.bin"
  8042. UBOOT_CONFIG[lpuart] = "ls1021atwr_nor_lpuart_defconfig"
  8043. UBOOT_CONFIG[qspi] = "ls1021atwr_qspi_defconfig"
  8044. UBOOT_CONFIG[secure-boot] = "ls1021atwr_nor_SECURE_BOOT_defconfig"
  8045. UBOOT_CONFIG[sdcard-ifc-secure-boot] = "ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
  8046. In this example, all possible seven configurations are selected. Each
  8047. configuration specifies "..._defconfig" as :term:`UBOOT_MACHINE`, and
  8048. the "sd..." configurations define an individual name for
  8049. :term:`UBOOT_BINARY`. No configuration defines a second parameter for
  8050. :term:`IMAGE_FSTYPES` to use for the U-Boot image.
  8051. For more information on how the :term:`UBOOT_CONFIG` is handled, see the
  8052. :ref:`ref-classes-uboot-config` class.
  8053. :term:`UBOOT_DTB_LOADADDRESS`
  8054. Specifies the load address for the dtb image used by U-Boot. During FIT
  8055. image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in
  8056. :ref:`ref-classes-kernel-fit-image` class to specify the load address to be
  8057. used in creating the dtb sections of Image Tree Source for the FIT image.
  8058. :term:`UBOOT_DTBO_LOADADDRESS`
  8059. Specifies the load address for the dtbo image used by U-Boot. During FIT
  8060. image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in
  8061. :ref:`ref-classes-kernel-fit-image` class to specify the load address to be
  8062. used in creating the dtbo sections of Image Tree Source for the FIT image.
  8063. :term:`UBOOT_ENTRYPOINT`
  8064. Specifies the entry point for the U-Boot image. During U-Boot image
  8065. creation, the :term:`UBOOT_ENTRYPOINT` variable is passed as a
  8066. command-line parameter to the ``uboot-mkimage`` utility.
  8067. To pass a 64 bit address for FIT image creation, you will need to set:
  8068. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  8069. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  8070. This variable is used by the :ref:`ref-classes-kernel-fit-image`,
  8071. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  8072. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  8073. classes.
  8074. :term:`UBOOT_ENV`
  8075. This variable allows to add additional environment variables or a script
  8076. to be installed together with U-Boot.
  8077. This file, typically ``uEnv.txt`` or ``boot.cmd``, is installed in
  8078. ``/boot`` as well as copied to the :term:`DEPLOYDIR` directory.
  8079. For machine configurations needing one of these files a ``.bbappend``
  8080. file should include it in the :term:`SRC_URI` of the U-Boot recipe.
  8081. If the variable :term:`UBOOT_ENV_SUFFIX` is set to ``scr`` the script is
  8082. packaged as a uImage (``mkimage -T script..``) otherwise it gets
  8083. installed verbatim.
  8084. Some examples:
  8085. - Adding a script ``boot.cmd`` as a uImage to ``/boot``::
  8086. UBOOT_ENV = "boot"
  8087. UBOOT_ENV_SUFFIX = "scr"
  8088. SRC_URI += "file://${UBOOT_ENV_SRC}"
  8089. - Adding a script ``uEnv.txt`` as a plain text file to ``/boot``::
  8090. UBOOT_ENV = "uEnv"
  8091. UBOOT_ENV_SUFFIX = "txt"
  8092. SRC_URI += "file://${UBOOT_ENV_BINARY}"
  8093. :term:`UBOOT_ENV_SRC_SUFFIX`
  8094. If :term:`UBOOT_ENV_SUFFIX` is set to ``scr`` this is the suffix of the
  8095. plain text script file as it is specified in the :term:`SRC_URI` of the
  8096. U-Boot recipe. It defaults to ``cmd``.
  8097. :term:`UBOOT_ENV_SUFFIX`
  8098. If this variable is set to ``scr`` the script referred to by
  8099. :term:`UBOOT_ENV` gets packaged as a uImage before it gets installed.
  8100. The default is ``txt`` which means the script is installed as-is, with
  8101. no modification.
  8102. :term:`UBOOT_FIT_ADDRESS_CELLS`
  8103. Specifies the value of the ``#address-cells`` value for the
  8104. description of the U-Boot FIT image.
  8105. The default value is set to "1" by the :ref:`ref-classes-uboot-sign`
  8106. class, which corresponds to 32 bit addresses.
  8107. For platforms that need to set 64 bit addresses in
  8108. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  8109. set this value to "2", as two 32 bit values (cells) will be needed
  8110. to represent such addresses.
  8111. Here is an example setting "0x400000000" as a load address::
  8112. UBOOT_FIT_ADDRESS_CELLS = "2"
  8113. UBOOT_LOADADDRESS = "0x04 0x00000000"
  8114. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  8115. :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE`
  8116. `Trusted Firmware-A (TF-A) <https://www.trustedfirmware.org/projects/tf-a>`__
  8117. is a reference implementation of secure world software for Arm A-Profile
  8118. architectures (Armv8-A and Armv7-A), including an Exception Level 3 (EL3)
  8119. Secure Monitor. This variable enables the generation of a U-Boot FIT
  8120. image with a Trusted Firmware-A (TF-A) binary.
  8121. Its default value is "0", so set it to "1" to enable this functionality::
  8122. UBOOT_FIT_ARM_TRUSTED_FIRMWARE = "1"
  8123. :term:`UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE`
  8124. Specifies the path to the Trusted Firmware-A (TF-A) binary. Its default
  8125. value is "bl31.bin"::
  8126. UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?= "bl31.bin"
  8127. If a relative path is provided, the file is expected to be relative to
  8128. U-Boot's :term:`B` directory. An absolute path can be provided too,
  8129. e.g.::
  8130. UBOOT_FIT_ARM_TRUSTED_FIRMWARE_IMAGE ?= "${DEPLOY_DIR_IMAGE}/bl31.bin"
  8131. If the Trusted Firmware-A (TF-A) binary is built in a separate recipe,
  8132. you must add the necessary dependency in a U-Boot ``.bbappend`` file. The
  8133. recipe name for Trusted Firmware-A (TF-A) binary is
  8134. ``trusted-firmware-a``, which comes from the
  8135. :yocto_git:`meta-arm </meta-arm>` layer::
  8136. do_compile[depends] += "trusted-firmware-a:do_deploy"
  8137. :term:`UBOOT_FIT_CONF_FIRMWARE`
  8138. Adds one image to the ``firmware`` property of the configuration node of
  8139. the U-Boot Image Tree Source (ITS). Sets the ``firmware`` property to
  8140. select the image to boot first::
  8141. UBOOT_FIT_CONF_FIRMWARE = "fwa"
  8142. If not set, the first entry in "loadables" is used to boot instead.
  8143. :term:`UBOOT_FIT_CONF_USER_LOADABLES`
  8144. Adds one or more user-defined images to the ``loadables`` property of the
  8145. configuration node of the U-Boot Image Tree Source (ITS). This variable
  8146. is handled by the local shell in the recipe so appropriate escaping
  8147. should be done, e.g. escaping quotes.::
  8148. UBOOT_FIT_CONF_USER_LOADABLES = '\"fwa\", \"fwb\"'
  8149. :term:`UBOOT_FIT_DESC`
  8150. Specifies the description string encoded into a U-Boot fitImage. The default
  8151. value is set by the :ref:`ref-classes-uboot-sign` class as follows::
  8152. UBOOT_FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  8153. :term:`UBOOT_FIT_GENERATE_KEYS`
  8154. Decides whether to generate the keys for signing the U-Boot fitImage if
  8155. they don't already exist. The keys are created in :term:`SPL_SIGN_KEYDIR`.
  8156. The default value is "0".
  8157. Enable this as follows::
  8158. UBOOT_FIT_GENERATE_KEYS = "1"
  8159. This variable is used in the :ref:`ref-classes-uboot-sign` class.
  8160. :term:`UBOOT_FIT_HASH_ALG`
  8161. Specifies the hash algorithm used in creating the U-Boot FIT Image.
  8162. It is set by default to ``sha256`` by the :ref:`ref-classes-uboot-sign`
  8163. class.
  8164. :term:`UBOOT_FIT_KEY_GENRSA_ARGS`
  8165. Arguments to ``openssl genrsa`` for generating a RSA private key for
  8166. signing the U-Boot FIT image. The default value of this variable
  8167. is set to "-F4" by the :ref:`ref-classes-uboot-sign` class.
  8168. :term:`UBOOT_FIT_KEY_REQ_ARGS`
  8169. Arguments to ``openssl req`` for generating a certificate for signing
  8170. the U-Boot FIT image. The default value is "-batch -new" by the
  8171. :ref:`ref-classes-uboot-sign` class, "batch" for
  8172. non interactive mode and "new" for generating new keys.
  8173. :term:`UBOOT_FIT_KEY_SIGN_PKCS`
  8174. Format for the public key certificate used for signing the U-Boot FIT
  8175. image. The default value is set to "x509" by the
  8176. :ref:`ref-classes-uboot-sign` class.
  8177. :term:`UBOOT_FIT_SIGN_ALG`
  8178. Specifies the signature algorithm used in creating the U-Boot FIT Image.
  8179. This variable is set by default to "rsa2048" by the
  8180. :ref:`ref-classes-uboot-sign` class.
  8181. :term:`UBOOT_FIT_SIGN_NUMBITS`
  8182. Size of the private key used in signing the U-Boot FIT image, in number
  8183. of bits. The default value for this variable is set to "2048"
  8184. by the :ref:`ref-classes-uboot-sign` class.
  8185. :term:`UBOOT_FIT_TEE`
  8186. A Trusted Execution Environment (TEE) is a secure environment for
  8187. executing code, ensuring high levels of trust in asset management within
  8188. the surrounding system. This variable enables the generation of a U-Boot
  8189. FIT image with a Trusted Execution Environment (TEE) binary.
  8190. Its default value is "0", so set it to "1" to enable this functionality::
  8191. UBOOT_FIT_TEE = "1"
  8192. :term:`UBOOT_FIT_TEE_IMAGE`
  8193. Specifies the path to the Trusted Execution Environment (TEE) binary. Its
  8194. default value is "tee-raw.bin"::
  8195. UBOOT_FIT_TEE_IMAGE ?= "tee-raw.bin"
  8196. If a relative path is provided, the file is expected to be relative to
  8197. U-Boot's :term:`B` directory. An absolute path can be provided too,
  8198. e.g.::
  8199. UBOOT_FIT_TEE_IMAGE ?= "${DEPLOY_DIR_IMAGE}/tee-raw.bin"
  8200. If the Trusted Execution Environment (TEE) binary is built in a separate
  8201. recipe, you must add the necessary dependency in a U-Boot ``.bbappend``
  8202. file. The recipe name for Trusted Execution Environment (TEE) binary is
  8203. ``optee-os``, which comes from the :yocto_git:`meta-arm </meta-arm>`
  8204. layer::
  8205. do_compile[depends] += "optee-os:do_deploy"
  8206. :term:`UBOOT_FIT_USER_SETTINGS`
  8207. Add a user-specific snippet to the U-Boot Image Tree Source (ITS). This
  8208. variable allows the user to add one or more user-defined ``/images`` node
  8209. to the U-Boot Image Tree Source (ITS). For more details, please refer to
  8210. https://fitspec.osfw.foundation/\ .
  8211. The original content of the U-Boot Image Tree Source (ITS) is as
  8212. follows::
  8213. images {
  8214. uboot {
  8215. description = "U-Boot image";
  8216. data = /incbin/("u-boot-nodtb.bin");
  8217. type = "standalone";
  8218. os = "u-boot";
  8219. arch = "";
  8220. compression = "none";
  8221. load = <0x80000000>;
  8222. entry = <0x80000000>;
  8223. };
  8224. };
  8225. Users can include their custom ITS snippet in this variable, e.g.::
  8226. UBOOT_FIT_FWA_ITS = '\
  8227. fwa {\n\
  8228. description = \"FW A\";\n\
  8229. data = /incbin/(\"fwa.bin\");\n\
  8230. type = \"firmware\";\n\
  8231. arch = \"\";\n\
  8232. os = \"\";\n\
  8233. load = <0xb2000000>;\n\
  8234. entry = <0xb2000000>;\n\
  8235. compression = \"none\";\n\
  8236. };\n\
  8237. '
  8238. UBOOT_FIT_USER_SETTINGS = "${UBOOT_FIT_FWA_ITS}"
  8239. This variable is handled by the local shell in the recipe so appropriate
  8240. escaping should be done, e.g. escaping quotes and adding newlines with
  8241. ``\n``.
  8242. The generated content of the U-Boot Image Tree Source (ITS) is as
  8243. follows::
  8244. images {
  8245. uboot {
  8246. description = "U-Boot image";
  8247. data = /incbin/("u-boot-nodtb.bin");
  8248. type = "standalone";
  8249. os = "u-boot";
  8250. arch = "";
  8251. compression = "none";
  8252. load = <0x80000000>;
  8253. entry = <0x80000000>;
  8254. };
  8255. fwa {
  8256. description = "FW A";
  8257. data = /incbin/("fwa.bin");
  8258. type = "firmware";
  8259. arch = "";
  8260. os = "";
  8261. load = <0xb2000000>;
  8262. entry = <0xb2000000>;
  8263. compression = "none";
  8264. };
  8265. };
  8266. :term:`UBOOT_FITIMAGE_ENABLE`
  8267. This variable allows to generate a FIT image for U-Boot, which is one
  8268. of the ways to implement a verified boot process.
  8269. Its default value is "0", so set it to "1" to enable this functionality::
  8270. UBOOT_FITIMAGE_ENABLE = "1"
  8271. See the :ref:`ref-classes-uboot-sign` class for details.
  8272. :term:`UBOOT_LOADADDRESS`
  8273. Specifies the load address for the U-Boot image. During U-Boot image
  8274. creation, the :term:`UBOOT_LOADADDRESS` variable is passed as a
  8275. command-line parameter to the ``uboot-mkimage`` utility.
  8276. To pass a 64 bit address, you will also need to set:
  8277. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  8278. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  8279. This variable is used by the :ref:`ref-classes-kernel-fit-image`,
  8280. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  8281. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  8282. classes.
  8283. :term:`UBOOT_LOCALVERSION`
  8284. Appends a string to the name of the local version of the U-Boot
  8285. image. For example, assuming the version of the U-Boot image built
  8286. was "2013.10", the full version string reported by U-Boot would be
  8287. "2013.10-yocto" given the following statement::
  8288. UBOOT_LOCALVERSION = "-yocto"
  8289. :term:`UBOOT_MACHINE`
  8290. Specifies the value passed on the ``make`` command line when building
  8291. a U-Boot image. The value indicates the target platform
  8292. configuration. You typically set this variable from the machine
  8293. configuration file (i.e. ``conf/machine/machine_name.conf``).
  8294. Please see the "Selection of Processor Architecture and Board Type"
  8295. section in the U-Boot README for valid values for this variable.
  8296. :term:`UBOOT_MAKE_TARGET`
  8297. Specifies the target called in the ``Makefile``. The default target
  8298. is "all".
  8299. :term:`UBOOT_MKIMAGE`
  8300. Specifies the name of the mkimage command as used by the
  8301. :ref:`ref-classes-kernel-fit-image` class to assemble
  8302. the FIT image. This can be used to substitute an alternative command, wrapper
  8303. script or function if desired. The default is "uboot-mkimage".
  8304. :term:`UBOOT_MKIMAGE_DTCOPTS`
  8305. Options for the device tree compiler passed to ``mkimage -D`` feature
  8306. while creating a FIT image with the :ref:`ref-classes-kernel-fit-image`
  8307. class. If :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then the
  8308. :ref:`ref-classes-kernel-fit-image` class will not pass the ``-D`` option
  8309. to ``mkimage``.
  8310. This variable is also used by the :ref:`ref-classes-uboot-sign` class.
  8311. :term:`UBOOT_MKIMAGE_KERNEL_TYPE`
  8312. Specifies the type argument for the kernel as passed to ``uboot-mkimage``.
  8313. The default value is "kernel".
  8314. :term:`UBOOT_MKIMAGE_SIGN`
  8315. Specifies the name of the mkimage command as used by the
  8316. :ref:`ref-classes-kernel-fit-image` class to sign
  8317. the FIT image after it has been assembled (if enabled). This can be used
  8318. to substitute an alternative command, wrapper script or function if
  8319. desired. The default is "${:term:`UBOOT_MKIMAGE`}".
  8320. :term:`UBOOT_MKIMAGE_SIGN_ARGS`
  8321. Optionally specifies additional arguments for the
  8322. :ref:`ref-classes-kernel-fit-image` class to pass to the
  8323. mkimage command when signing the FIT image.
  8324. :term:`UBOOT_RD_ENTRYPOINT`
  8325. Specifies the entrypoint for the RAM disk image. During FIT image
  8326. creation, the :term:`UBOOT_RD_ENTRYPOINT` variable is used in
  8327. :ref:`ref-classes-kernel-fit-image` class to specify the entrypoint to be
  8328. used in creating the Image Tree Source for the FIT image.
  8329. :term:`UBOOT_RD_LOADADDRESS`
  8330. Specifies the load address for the RAM disk image. During FIT image
  8331. creation, the :term:`UBOOT_RD_LOADADDRESS` variable is used in
  8332. :ref:`ref-classes-kernel-fit-image` class to specify the load address to
  8333. be used in creating the Image Tree Source for the FIT image.
  8334. :term:`UBOOT_SIGN_ENABLE`
  8335. Enable signing of FIT image. The default value is "0".
  8336. This variable is used by the :ref:`ref-classes-kernel-fit-image`,
  8337. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  8338. classes.
  8339. :term:`UBOOT_SIGN_KEYDIR`
  8340. Location of the directory containing the RSA key and certificate used for
  8341. signing FIT image, used by the :ref:`ref-classes-kernel-fit-image` and
  8342. :ref:`ref-classes-uboot-sign` classes.
  8343. :term:`UBOOT_SIGN_KEYNAME`
  8344. The name of keys used by the :ref:`ref-classes-kernel-fit-image` class
  8345. for signing U-Boot FIT image stored in the :term:`UBOOT_SIGN_KEYDIR`
  8346. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  8347. certificate stored in the :term:`UBOOT_SIGN_KEYDIR` directory, you will
  8348. have to set :term:`UBOOT_SIGN_KEYNAME` to ``dev``.
  8349. :term:`UBOOT_SUFFIX`
  8350. Points to the generated U-Boot extension. For example, ``u-boot.sb``
  8351. has a ``.sb`` extension.
  8352. The default U-Boot extension is ``.bin``
  8353. :term:`UBOOT_TARGET`
  8354. Specifies the target used for building U-Boot. The target is passed
  8355. directly as part of the "make" command (e.g. SPL and AIS). If you do
  8356. not specifically set this variable, the OpenEmbedded build process
  8357. passes and uses "all" for the target during the U-Boot building
  8358. process.
  8359. :term:`UBOOT_VERSION`
  8360. When naming the files that are installed and deployed, the package version
  8361. (:term:`PV`) and revision (:term:`PR`) are part of the filename. The
  8362. :term:`UBOOT_VERSION` variable contains this information, but can be
  8363. overridden if desired.
  8364. :term:`UKI_CMDLINE`
  8365. When inheriting the :ref:`ref-classes-uki` class, the kernel command line
  8366. to use when booting the `Unified Kernel Image (UKI)
  8367. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  8368. Defaults to ``rootwait root=LABEL=root console=${KERNEL_CONSOLE}``.
  8369. :term:`UKI_CONFIG_FILE`
  8370. When inheriting the :ref:`ref-classes-uki` class, an optional config
  8371. file for the `ukify
  8372. <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__
  8373. command.
  8374. :term:`UKI_FILENAME`
  8375. When inheriting the :ref:`ref-classes-uki` class, the output file name
  8376. for the generated `Unified Kernel Image (UKI)
  8377. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  8378. Defaults to ``uki.efi``.
  8379. :term:`UKI_KERNEL_FILENAME`
  8380. When inheriting the :ref:`ref-classes-uki` class, the kernel image file
  8381. name to use as input. Defaults to :term:`KERNEL_IMAGETYPE`.
  8382. :term:`UKI_SB_CERT`
  8383. When inheriting the :ref:`ref-classes-uki` class, optional UEFI
  8384. secureboot certificate matching the private key in :term:`UKI_SB_KEY`.
  8385. :term:`UKI_SB_KEY`
  8386. When inheriting the :ref:`ref-classes-uki` class, optional UEFI
  8387. secureboot private key to sign the `Unified Kernel Image (UKI)
  8388. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  8389. :term:`UKIFY_CMD`
  8390. When inheriting the :ref:`ref-classes-uki` class,
  8391. `ukify <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__ command to build
  8392. `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  8393. Defaults to ``ukify build``.
  8394. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`
  8395. Specifies a list of options that, if reported by the configure script
  8396. as being invalid, should not generate a warning during the
  8397. :ref:`ref-tasks-configure` task. Normally, invalid
  8398. configure options are simply not passed to the configure script (e.g.
  8399. should be removed from :term:`EXTRA_OECONF` or
  8400. :term:`PACKAGECONFIG_CONFARGS`).
  8401. However, there are common options that are passed to all
  8402. configure scripts at a class level, but might not be valid for some
  8403. configure scripts. Therefore warnings about these options are useless.
  8404. For these cases, the options are added to :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`.
  8405. The configure arguments check that uses
  8406. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` is part of the
  8407. :ref:`ref-classes-insane` class and is only enabled if the
  8408. recipe inherits the :ref:`ref-classes-autotools` class.
  8409. :term:`UNPACKDIR`
  8410. This variable, used by the :ref:`ref-classes-base` class,
  8411. specifies where fetches sources should be unpacked by the
  8412. :ref:`ref-tasks-unpack` task.
  8413. :term:`UPDATERCPN`
  8414. For recipes inheriting the
  8415. :ref:`ref-classes-update-rc.d` class, :term:`UPDATERCPN`
  8416. specifies the package that contains the initscript that is enabled.
  8417. The default value is "${PN}". Given that almost all recipes that
  8418. install initscripts package them in the main package for the recipe,
  8419. you rarely need to set this variable in individual recipes.
  8420. :term:`UPSTREAM_CHECK_COMMITS`
  8421. You can perform a per-recipe check for what the latest upstream
  8422. source code version is by calling ``devtool latest-version recipe``. If
  8423. the recipe source code is provided from Git repositories, but
  8424. releases are not identified by Git tags, set :term:`UPSTREAM_CHECK_COMMITS`
  8425. to ``1`` in the recipe, and the OpenEmbedded build system
  8426. will compare the latest commit with the one currently specified
  8427. by the recipe (:term:`SRCREV`)::
  8428. UPSTREAM_CHECK_COMMITS = "1"
  8429. :term:`UPSTREAM_CHECK_GITTAGREGEX`
  8430. You can perform a per-recipe check for what the latest upstream
  8431. source code version is by calling ``devtool latest-version recipe``. If
  8432. the recipe source code is provided from Git repositories, the
  8433. OpenEmbedded build system determines the latest upstream version by
  8434. picking the latest tag from the list of all repository tags.
  8435. You can use the :term:`UPSTREAM_CHECK_GITTAGREGEX` variable to provide a
  8436. regular expression to filter only the relevant tags should the
  8437. default filter not work correctly::
  8438. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  8439. :term:`UPSTREAM_CHECK_REGEX`
  8440. Use the :term:`UPSTREAM_CHECK_REGEX` variable to specify a different
  8441. regular expression instead of the default one when the package
  8442. checking system is parsing the page found using
  8443. :term:`UPSTREAM_CHECK_URI`::
  8444. UPSTREAM_CHECK_REGEX = "package_regex"
  8445. :term:`UPSTREAM_CHECK_URI`
  8446. You can perform a per-recipe check for what the latest upstream
  8447. source code version is by calling ``devtool latest-version recipe``. If
  8448. the source code is provided from tarballs, the latest version is
  8449. determined by fetching the directory listing where the tarball is and
  8450. attempting to find a later tarball. When this approach does not work,
  8451. you can use :term:`UPSTREAM_CHECK_URI` to provide a different URI that
  8452. contains the link to the latest tarball::
  8453. UPSTREAM_CHECK_URI = "recipe_url"
  8454. :term:`UPSTREAM_VERSION_UNKNOWN`
  8455. You can perform a per-recipe check for what the latest upstream
  8456. source code version is by calling ``devtool latest-version recipe``.
  8457. If no combination of the :term:`UPSTREAM_CHECK_URI`, :term:`UPSTREAM_CHECK_REGEX`,
  8458. :term:`UPSTREAM_CHECK_GITTAGREGEX` and :term:`UPSTREAM_CHECK_COMMITS` variables in
  8459. the recipe allows to determine what the latest upstream version is,
  8460. you can set :term:`UPSTREAM_VERSION_UNKNOWN` to ``1`` in the recipe
  8461. to acknowledge that the check cannot be performed::
  8462. UPSTREAM_VERSION_UNKNOWN = "1"
  8463. :term:`USE_DEVFS`
  8464. Determines if ``devtmpfs`` is used for ``/dev`` population. The
  8465. default value used for :term:`USE_DEVFS` is "1" when no value is
  8466. specifically set. Typically, you would set :term:`USE_DEVFS` to "0" for a
  8467. statically populated ``/dev`` directory.
  8468. See the ":ref:`dev-manual/device-manager:selecting a device manager`" section in
  8469. the Yocto Project Development Tasks Manual for information on how to
  8470. use this variable.
  8471. :term:`USE_VT`
  8472. When using
  8473. :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  8474. determines whether or not to run a :wikipedia:`getty <Getty_(Unix)>`
  8475. on any virtual terminals in order to enable logging in through those
  8476. terminals.
  8477. The default value used for :term:`USE_VT` is "1" when no default value is
  8478. specifically set. Typically, you would set :term:`USE_VT` to "0" in the
  8479. machine configuration file for machines that do not have a graphical
  8480. display attached and therefore do not need virtual terminal
  8481. functionality.
  8482. :term:`USER_CLASSES`
  8483. A list of classes to globally inherit. These classes are used by the
  8484. OpenEmbedded build system to enable extra features.
  8485. Classes inherited using :term:`USER_CLASSES` must be located in the
  8486. ``classes-global/`` or ``classes/`` subdirectories.
  8487. The default list is set in your ``local.conf`` file::
  8488. USER_CLASSES ?= "buildstats"
  8489. For more information, see
  8490. ``meta-poky/conf/templates/default/local.conf.sample`` in the
  8491. :term:`Source Directory`.
  8492. :term:`USERADD_DEPENDS`
  8493. Specifies a list of recipes that create users / groups (via
  8494. :term:`USERADD_PARAM` / :term:`GROUPADD_PARAM`) which a recipe
  8495. depends upon. This ensures that those users / groups are available
  8496. when building a recipe.
  8497. :term:`USERADD_ERROR_DYNAMIC`
  8498. If set to ``error``, forces the OpenEmbedded build system to produce
  8499. an error if the user identification (``uid``) and group
  8500. identification (``gid``) values are not defined in any of the files
  8501. listed in :term:`USERADD_UID_TABLES` and
  8502. :term:`USERADD_GID_TABLES`. If set to
  8503. ``warn``, a warning will be issued instead.
  8504. The default behavior for the build system is to dynamically apply
  8505. ``uid`` and ``gid`` values. Consequently, the
  8506. :term:`USERADD_ERROR_DYNAMIC` variable is by default not set. If you plan
  8507. on using statically assigned ``gid`` and ``uid`` values, you should
  8508. set the :term:`USERADD_ERROR_DYNAMIC` variable in your ``local.conf``
  8509. file as follows::
  8510. USERADD_ERROR_DYNAMIC = "error"
  8511. Overriding the
  8512. default behavior implies you are going to also take steps to set
  8513. static ``uid`` and ``gid`` values through use of the
  8514. :term:`USERADDEXTENSION`,
  8515. :term:`USERADD_UID_TABLES`, and
  8516. :term:`USERADD_GID_TABLES` variables.
  8517. .. note::
  8518. There is a difference in behavior between setting
  8519. :term:`USERADD_ERROR_DYNAMIC` to ``error`` and setting it to ``warn``.
  8520. When it is set to ``warn``, the build system will report a warning for
  8521. every undefined ``uid`` and ``gid`` in any recipe. But when it is set
  8522. to ``error``, it will only report errors for recipes that are actually
  8523. built.
  8524. This saves you from having to add static IDs for recipes that you
  8525. know will never be built.
  8526. :term:`USERADD_GID_TABLES`
  8527. Specifies a password file to use for obtaining static group
  8528. identification (``gid``) values when the OpenEmbedded build system
  8529. adds a group to the system during package installation.
  8530. When applying static group identification (``gid``) values, the
  8531. OpenEmbedded build system looks in :term:`BBPATH` for a
  8532. ``files/group`` file and then applies those ``uid`` values. Set the
  8533. variable as follows in your ``local.conf`` file::
  8534. USERADD_GID_TABLES = "files/group"
  8535. .. note::
  8536. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  8537. causes the build system to use static ``gid`` values.
  8538. :term:`USERADD_PACKAGES`
  8539. When inheriting the :ref:`ref-classes-useradd` class,
  8540. this variable specifies the individual packages within the recipe
  8541. that require users and/or groups to be added.
  8542. You must set this variable if the recipe inherits the class. For
  8543. example, the following enables adding a user for the main package in
  8544. a recipe::
  8545. USERADD_PACKAGES = "${PN}"
  8546. .. note::
  8547. It follows that if you are going to use the :term:`USERADD_PACKAGES`
  8548. variable, you need to set one or more of the :term:`USERADD_PARAM`,
  8549. :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables.
  8550. :term:`USERADD_PARAM`
  8551. When inheriting the :ref:`ref-classes-useradd` class,
  8552. this variable specifies for a package what parameters should pass to
  8553. the ``useradd`` command if you add a user to the system when the
  8554. package is installed.
  8555. Here is an example from the ``dbus`` recipe::
  8556. USERADD_PARAM:${PN} = "--system --home ${localstatedir}/lib/dbus \
  8557. --no-create-home --shell /bin/false \
  8558. --user-group messagebus"
  8559. For information on the
  8560. standard Linux shell command ``useradd``, see
  8561. https://linux.die.net/man/8/useradd.
  8562. :term:`USERADD_UID_TABLES`
  8563. Specifies a password file to use for obtaining static user
  8564. identification (``uid``) values when the OpenEmbedded build system
  8565. adds a user to the system during package installation.
  8566. When applying static user identification (``uid``) values, the
  8567. OpenEmbedded build system looks in :term:`BBPATH` for a
  8568. ``files/passwd`` file and then applies those ``uid`` values. Set the
  8569. variable as follows in your ``local.conf`` file::
  8570. USERADD_UID_TABLES = "files/passwd"
  8571. .. note::
  8572. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  8573. causes the build system to use static ``uid`` values.
  8574. :term:`USERADDEXTENSION`
  8575. When set to "useradd-staticids", causes the OpenEmbedded build system
  8576. to base all user and group additions on a static ``passwd`` and
  8577. ``group`` files found in :term:`BBPATH`.
  8578. To use static user identification (``uid``) and group identification
  8579. (``gid``) values, set the variable as follows in your ``local.conf``
  8580. file: USERADDEXTENSION = "useradd-staticids"
  8581. .. note::
  8582. Setting this variable to use static ``uid`` and ``gid``
  8583. values causes the OpenEmbedded build system to employ the
  8584. :ref:`ref-classes-useradd` class.
  8585. If you use static ``uid`` and ``gid`` information, you must also
  8586. specify the ``files/passwd`` and ``files/group`` files by setting the
  8587. :term:`USERADD_UID_TABLES` and
  8588. :term:`USERADD_GID_TABLES` variables.
  8589. Additionally, you should also set the
  8590. :term:`USERADD_ERROR_DYNAMIC` variable.
  8591. :term:`VIRTUAL-RUNTIME`
  8592. :term:`VIRTUAL-RUNTIME` is a commonly used prefix for defining virtual
  8593. packages for runtime usage, typically for use in :term:`RDEPENDS`
  8594. or in image definitions.
  8595. An example is ``VIRTUAL-RUNTIME_base-utils`` that makes it possible
  8596. to either use BusyBox based utilities::
  8597. VIRTUAL-RUNTIME_base-utils = "busybox"
  8598. or their full featured implementations from GNU Coreutils
  8599. and other projects::
  8600. VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
  8601. Here are two examples using this virtual runtime package. The
  8602. first one is in :yocto_git:`initramfs-framework_1.0.bb
  8603. </poky/tree/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb?h=scarthgap>`::
  8604. RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}"
  8605. The second example is in the :yocto_git:`core-image-initramfs-boot
  8606. </poky/tree/meta/recipes-core/images/core-image-initramfs-boot.bb?h=scarthgap>`
  8607. image definition::
  8608. PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd"
  8609. :term:`WARN_QA`
  8610. Specifies the quality assurance checks whose failures are reported as
  8611. warnings by the OpenEmbedded build system. You set this variable in
  8612. your distribution configuration file. For a list of the checks you
  8613. can control with this variable, see the
  8614. ":ref:`ref-classes-insane`" section.
  8615. :term:`WATCHDOG_RUNTIME_SEC`
  8616. For the ``systemd`` recipe, this controls the value of the
  8617. ``RuntimeWatchdogSec`` option in ``/etc/systemd/system.conf``. The default
  8618. value is an empty string.
  8619. :term:`WATCHDOG_TIMEOUT`
  8620. Specifies the timeout in seconds used by the ``watchdog-config`` recipe
  8621. and also by ``systemd`` during reboot. The default is 60 seconds.
  8622. :term:`WIC_CREATE_EXTRA_ARGS`
  8623. If the :term:`IMAGE_FSTYPES` variable contains "wic", the build
  8624. will generate a
  8625. :ref:`Wic image <dev-manual/wic:creating partitioned images using wic>`
  8626. automatically when BitBake builds an image recipe. As part of
  8627. this process BitBake will invoke the "`wic create`" command. The
  8628. :term:`WIC_CREATE_EXTRA_ARGS` variable is placed at the end of this
  8629. command which allows the user to supply additional arguments.
  8630. One such useful purpose for this mechanism is to add the ``-D`` (or
  8631. ``--debug``) argument to the "`wic create`" command. This increases the
  8632. amount of debugging information written out to the Wic log during the
  8633. Wic creation process.
  8634. :term:`WIC_SECTOR_SIZE`
  8635. The variable :term:`WIC_SECTOR_SIZE` controls the sector size of Wic
  8636. images. In the background, this controls the value of the
  8637. ``PARTED_SECTOR_SIZE`` environment variable passed to the ``parted``
  8638. command-line utility, used to generated the images. The default value is
  8639. ``512``.
  8640. For more information on how to create Wic images, see the
  8641. ":ref:`dev-manual/wic:creating partitioned images using wic`" section in
  8642. the Yocto Project Development Tasks Manual.
  8643. :term:`WIRELESS_DAEMON`
  8644. For ``connman`` and ``packagegroup-base``, specifies the wireless
  8645. daemon to use. The default is "wpa-supplicant" (note that the value
  8646. uses a dash and not an underscore).
  8647. :term:`WKS_FILE`
  8648. Specifies the location of the Wic kickstart file that is used by the
  8649. OpenEmbedded build system to create a partitioned image
  8650. (``image.wic``). For information on how to create a partitioned
  8651. image, see the
  8652. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  8653. section in the Yocto Project Development Tasks Manual. For details on
  8654. the kickstart file format, see the ":doc:`/ref-manual/kickstart`" Chapter.
  8655. :term:`WKS_FILE_DEPENDS`
  8656. When placed in the recipe that builds your image, this variable lists
  8657. build-time dependencies. The :term:`WKS_FILE_DEPENDS` variable is only
  8658. applicable when Wic images are active (i.e. when
  8659. :term:`IMAGE_FSTYPES` contains entries related
  8660. to Wic). If your recipe does not create Wic images, the variable has
  8661. no effect.
  8662. The :term:`WKS_FILE_DEPENDS` variable is similar to the
  8663. :term:`DEPENDS` variable. When you use the variable in
  8664. your recipe that builds the Wic image, dependencies you list in the
  8665. :term:`WKS_FILE_DEPENDS` variable are added to the :term:`DEPENDS` variable.
  8666. With the :term:`WKS_FILE_DEPENDS` variable, you have the possibility to
  8667. specify a list of additional dependencies (e.g. native tools,
  8668. bootloaders, and so forth), that are required to build Wic images.
  8669. Here is an example::
  8670. WKS_FILE_DEPENDS = "some-native-tool"
  8671. In the
  8672. previous example, some-native-tool would be replaced with an actual
  8673. native tool on which the build would depend.
  8674. :term:`WKS_FILES`
  8675. Specifies a list of candidate Wic kickstart files to be used by the
  8676. OpenEmbedded build system to create a partitioned image. Only the
  8677. first one that is found, from left to right, will be used.
  8678. This is only useful when there are multiple ``.wks`` files that can be
  8679. used to produce an image. A typical case is when multiple layers are
  8680. used for different hardware platforms, each supplying a different
  8681. ``.wks`` file. In this case, you specify all possible ones through
  8682. :term:`WKS_FILES`.
  8683. If only one ``.wks`` file is used, set :term:`WKS_FILE` instead.
  8684. :term:`WORKDIR`
  8685. The pathname of the work directory in which the OpenEmbedded build
  8686. system builds a recipe. This directory is located within the
  8687. :term:`TMPDIR` directory structure and is specific to
  8688. the recipe being built and the system for which it is being built.
  8689. The :term:`WORKDIR` directory is defined as follows::
  8690. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  8691. The actual directory depends on several things:
  8692. - :term:`TMPDIR`: The top-level build output directory
  8693. - :term:`MULTIMACH_TARGET_SYS`: The target system identifier
  8694. - :term:`PN`: The recipe name
  8695. - :term:`EXTENDPE`: The epoch --- if :term:`PE` is not specified, which
  8696. is usually the case for most recipes, then :term:`EXTENDPE` is blank.
  8697. - :term:`PV`: The recipe version
  8698. - :term:`PR`: The recipe revision
  8699. As an example, assume a Source Directory top-level folder name
  8700. ``poky``, a default :term:`Build Directory` at ``poky/build``, and a
  8701. ``qemux86-poky-linux`` machine target system. Furthermore, suppose
  8702. your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
  8703. directory the build system uses to build the package would be as
  8704. follows::
  8705. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  8706. :term:`XSERVER`
  8707. Specifies the packages that should be installed to provide an X
  8708. server and drivers for the current machine, assuming your image
  8709. directly includes ``packagegroup-core-x11-xserver`` or, perhaps
  8710. indirectly, includes "x11-base" in
  8711. :term:`IMAGE_FEATURES`.
  8712. The default value of :term:`XSERVER`, if not specified in the machine
  8713. configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  8714. :term:`XZ_MEMLIMIT`
  8715. Specifies the maximum memory the xz compression should use as a percentage
  8716. of system memory. If unconstrained the xz compressor can use large amounts of
  8717. memory and become problematic with parallelism elsewhere in the build.
  8718. "50%" has been found to be a good value.
  8719. :term:`XZ_THREADS`
  8720. Specifies the number of parallel threads that should be used when
  8721. using xz compression.
  8722. By default this scales with core count, but is never set less than 2
  8723. to ensure that multi-threaded mode is always used so that the output
  8724. file contents are deterministic. Builds will work with a value of 1
  8725. but the output will differ compared to the output from the compression
  8726. generated when more than one thread is used.
  8727. On systems where many tasks run in parallel, setting a limit to this
  8728. can be helpful in controlling system resource usage.
  8729. :term:`ZSTD_COMPRESSION_LEVEL`
  8730. Specifies the compression level to be used with ZStandard compression
  8731. (from ``1`` to ``19``, set to ``3`` by default, following upstream choice).
  8732. Higher levels produce smaller files, but take longer to complete.
  8733. :term:`ZSTD_THREADS`
  8734. Specifies the number of parallel threads that should be used when
  8735. using ZStandard compression.
  8736. By default this scales with core count, but is never set less than 2
  8737. to ensure that multi-threaded mode is always used so that the output
  8738. file contents are deterministic. Builds will work with a value of 1
  8739. but the output will differ compared to the output from the compression
  8740. generated when more than one thread is used.
  8741. On systems where many tasks run in parallel, setting a limit to this
  8742. can be helpful in controlling system resource usage.