variables.rst 446 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. ******************
  3. Variables Glossary
  4. ******************
  5. This chapter lists common variables used in the OpenEmbedded build
  6. system and gives an overview of their function and contents.
  7. :term:`A <ABIEXTENSION>` :term:`B` :term:`C <CACHE>`
  8. :term:`D` :term:`E <EFI_PROVIDER>` :term:`F <FAKEROOT>`
  9. :term:`G <GCCPIE>` :term:`H <HGDIR>` :term:`I <ICECC_CLASS_DISABLE>`
  10. :term:`K <KARCH>` :term:`L <LABELS>` :term:`M <MACHINE>`
  11. :term:`N <NATIVELSBSTRING>` :term:`O <OBJCOPY>` :term:`P`
  12. :term:`Q <QA_EMPTY_DIRS>` :term:`R <RANLIB>` :term:`S` :term:`T`
  13. :term:`U <UBOOT_BINARY>` :term:`V <VIRTUAL-RUNTIME>`
  14. :term:`W <WARN_QA>` :term:`X <XSERVER>` :term:`Z <ZSTD_THREADS>`
  15. .. glossary::
  16. :sorted:
  17. :term:`ABIEXTENSION`
  18. Extension to the Application Binary Interface (ABI) field of the GNU
  19. canonical architecture name (e.g. "eabi").
  20. ABI extensions are set in the machine include files. For example, the
  21. ``meta/conf/machine/include/arm/arch-arm.inc`` file sets the
  22. following extension::
  23. ABIEXTENSION = "eabi"
  24. :term:`ALLOW_EMPTY`
  25. Specifies whether to produce an output package even if it is empty.
  26. By default, BitBake does not produce empty packages. This default
  27. behavior can cause issues when there is an
  28. :term:`RDEPENDS` or some other hard runtime
  29. requirement on the existence of the package.
  30. Like all package-controlling variables, you must always use them in
  31. conjunction with a package name override, as in::
  32. ALLOW_EMPTY:${PN} = "1"
  33. ALLOW_EMPTY:${PN}-dev = "1"
  34. ALLOW_EMPTY:${PN}-staticdev = "1"
  35. :term:`ALTERNATIVE`
  36. Lists commands in a package that need an alternative binary naming
  37. scheme. Sometimes the same command is provided in multiple packages.
  38. When this occurs, the OpenEmbedded build system needs to use the
  39. alternatives system to create a different binary naming scheme so the
  40. commands can co-exist.
  41. To use the variable, list out the package's commands that are also
  42. provided by another package. For example, if the ``busybox`` package
  43. has four such commands, you identify them as follows::
  44. ALTERNATIVE:busybox = "sh sed test bracket"
  45. For more information on the alternatives system, see the
  46. ":ref:`ref-classes-update-alternatives`"
  47. section.
  48. :term:`ALTERNATIVE_LINK_NAME`
  49. Used by the alternatives system to map duplicated commands to actual
  50. locations. For example, if the ``bracket`` command provided by the
  51. ``busybox`` package is duplicated through another package, you must
  52. use the :term:`ALTERNATIVE_LINK_NAME` variable to specify the actual
  53. location::
  54. ALTERNATIVE_LINK_NAME[bracket] = "/usr/bin/["
  55. In this example, the binary for the ``bracket`` command (i.e. ``[``)
  56. from the ``busybox`` package resides in ``/usr/bin/``.
  57. .. note::
  58. If :term:`ALTERNATIVE_LINK_NAME` is not defined, it defaults to ``${bindir}/name``.
  59. For more information on the alternatives system, see the
  60. ":ref:`ref-classes-update-alternatives`"
  61. section.
  62. :term:`ALTERNATIVE_PRIORITY`
  63. Used by the alternatives system to create default priorities for
  64. duplicated commands. You can use the variable to create a single
  65. default regardless of the command name or package, a default for
  66. specific duplicated commands regardless of the package, or a default
  67. for specific commands tied to particular packages. Here are the
  68. available syntax forms::
  69. ALTERNATIVE_PRIORITY = "priority"
  70. ALTERNATIVE_PRIORITY[name] = "priority"
  71. ALTERNATIVE_PRIORITY_pkg[name] = "priority"
  72. For more information on the alternatives system, see the
  73. ":ref:`ref-classes-update-alternatives`"
  74. section.
  75. :term:`ALTERNATIVE_TARGET`
  76. Used by the alternatives system to create default link locations for
  77. duplicated commands. You can use the variable to create a single
  78. default location for all duplicated commands regardless of the
  79. command name or package, a default for specific duplicated commands
  80. regardless of the package, or a default for specific commands tied to
  81. particular packages. Here are the available syntax forms::
  82. ALTERNATIVE_TARGET = "target"
  83. ALTERNATIVE_TARGET[name] = "target"
  84. ALTERNATIVE_TARGET_pkg[name] = "target"
  85. .. note::
  86. If :term:`ALTERNATIVE_TARGET` is not defined, it inherits the value
  87. from the :term:`ALTERNATIVE_LINK_NAME` variable.
  88. If :term:`ALTERNATIVE_LINK_NAME` and :term:`ALTERNATIVE_TARGET` are the
  89. same, the target for :term:`ALTERNATIVE_TARGET` has "``.{BPN}``"
  90. appended to it.
  91. Finally, if the file referenced has not been renamed, the
  92. alternatives system will rename it to avoid the need to rename
  93. alternative files in the :ref:`ref-tasks-install`
  94. task while retaining support for the command if necessary.
  95. For more information on the alternatives system, see the
  96. ":ref:`ref-classes-update-alternatives`" section.
  97. :term:`ANY_OF_DISTRO_FEATURES`
  98. When inheriting the :ref:`ref-classes-features_check`
  99. class, this variable identifies a list of distribution features where
  100. at least one must be enabled in the current configuration in order
  101. for the OpenEmbedded build system to build the recipe. In other words,
  102. if none of the features listed in :term:`ANY_OF_DISTRO_FEATURES`
  103. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  104. the recipe will be skipped, and if the build system attempts to build
  105. the recipe then an error will be triggered.
  106. :term:`APPEND`
  107. An override list of append strings for each target specified with
  108. :term:`LABELS`.
  109. See the :ref:`ref-classes-grub-efi` class for more
  110. information on how this variable is used.
  111. :term:`AR`
  112. The minimal command and arguments used to run ``ar``.
  113. :term:`ARCHIVER_MODE`
  114. When used with the :ref:`ref-classes-archiver` class,
  115. determines the type of information used to create a released archive.
  116. You can use this variable to create archives of patched source,
  117. original source, configured source, and so forth by employing the
  118. following variable flags (varflags)::
  119. ARCHIVER_MODE[src] = "original" # Uses original (unpacked) source files.
  120. ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is the default.
  121. ARCHIVER_MODE[src] = "configured" # Uses configured source files.
  122. ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and do_patch.
  123. ARCHIVER_MODE[diff-exclude] ?= "file file ..." # Lists files and directories to exclude from diff.
  124. ARCHIVER_MODE[dumpdata] = "1" # Uses environment data.
  125. ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files.
  126. ARCHIVER_MODE[srpm] = "1" # Uses RPM package files.
  127. For information on how the variable works, see the
  128. ``meta/classes/archiver.bbclass`` file in the :term:`Source Directory`.
  129. :term:`AS`
  130. Minimal command and arguments needed to run the assembler.
  131. :term:`ASSUME_PROVIDED`
  132. Lists recipe names (:term:`PN` values) BitBake does not
  133. attempt to build. Instead, BitBake assumes these recipes have already
  134. been built.
  135. In OpenEmbedded-Core, :term:`ASSUME_PROVIDED` mostly specifies native
  136. tools that should not be built. An example is ``git-native``, which
  137. when specified, allows for the Git binary from the host to be used
  138. rather than building ``git-native``.
  139. :term:`ASSUME_SHLIBS`
  140. Provides additional ``shlibs`` provider mapping information, which
  141. adds to or overwrites the information provided automatically by the
  142. system. Separate multiple entries using spaces.
  143. As an example, use the following form to add an ``shlib`` provider of
  144. shlibname in packagename with the optional version::
  145. shlibname:packagename[_version]
  146. Here is an example that adds a shared library named ``libEGL.so.1``
  147. as being provided by the ``libegl-implementation`` package::
  148. ASSUME_SHLIBS = "libEGL.so.1:libegl-implementation"
  149. :term:`AUTO_LIBNAME_PKGS`
  150. When the :ref:`ref-classes-debian` class is inherited,
  151. which is the default behavior, :term:`AUTO_LIBNAME_PKGS` specifies which
  152. packages should be checked for libraries and renamed according to
  153. Debian library package naming.
  154. The default value is "${PACKAGES}", which causes the
  155. :ref:`ref-classes-debian` class to act on all packages that are
  156. explicitly generated by the recipe.
  157. :term:`AUTOREV`
  158. When :term:`SRCREV` is set to the value of this variable, it specifies to
  159. use the latest source revision in the repository. Here is an example::
  160. SRCREV = "${AUTOREV}"
  161. If you use the previous statement to retrieve the latest version of
  162. software, you need to make sure :term:`PV` contains the ``+`` sign so
  163. :term:`bitbake` includes source control information to :term:`PKGV` when
  164. packaging the recipe. For example::
  165. PV = "6.10.y+git"
  166. For more information see the
  167. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  168. section in the Yocto Project Development Tasks Manual.
  169. :term:`AUTO_SYSLINUXMENU`
  170. Enables creating an automatic menu for the syslinux bootloader. You
  171. must set this variable in your recipe. The
  172. :ref:`ref-classes-syslinux` class checks this variable.
  173. :term:`AVAILTUNES`
  174. The list of defined CPU and Application Binary Interface (ABI)
  175. tunings (i.e. "tunes") available for use by the OpenEmbedded build
  176. system.
  177. The list simply presents the tunes that are available. Not all tunes
  178. may be compatible with a particular machine configuration, or with
  179. each other in a
  180. :ref:`Multilib <dev-manual/libraries:combining multiple versions of library files into one image>`
  181. configuration.
  182. To add a tune to the list, be sure to append it with spaces using the
  183. "+=" BitBake operator. Do not simply replace the list by using the
  184. "=" operator. See the
  185. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:basic syntax`" section in the BitBake
  186. User Manual for more information.
  187. :term:`AZ_SAS`
  188. Azure Storage Shared Access Signature, when using the
  189. :ref:`Azure Storage fetcher (az://) <bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
  190. This variable can be defined to be used by the fetcher to authenticate
  191. and gain access to non-public artifacts::
  192. AZ_SAS = ""se=2021-01-01&sp=r&sv=2018-11-09&sr=c&skoid=<skoid>&sig=<signature>""
  193. For more information see Microsoft's Azure Storage documentation at
  194. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
  195. :term:`B`
  196. The directory within the :term:`Build Directory` in which the
  197. OpenEmbedded build system places generated objects during a recipe's
  198. build process. By default, this directory is the same as the
  199. :term:`S` directory, which is defined as::
  200. S = "${WORKDIR}/${BP}"
  201. You can separate the (:term:`S`) directory and the directory pointed to
  202. by the :term:`B` variable. Most Autotools-based recipes support
  203. separating these directories. The build system defaults to using
  204. separate directories for ``gcc`` and some kernel recipes.
  205. :term:`BAD_RECOMMENDATIONS`
  206. Lists "recommended-only" packages to not install. Recommended-only
  207. packages are packages installed only through the
  208. :term:`RRECOMMENDS` variable. You can prevent any
  209. of these "recommended" packages from being installed by listing them
  210. with the :term:`BAD_RECOMMENDATIONS` variable::
  211. BAD_RECOMMENDATIONS = "package_name package_name package_name ..."
  212. You can set this variable globally in your ``local.conf`` file or you
  213. can attach it to a specific image recipe by using the recipe name
  214. override::
  215. BAD_RECOMMENDATIONS:pn-target_image = "package_name"
  216. It is important to realize that if you choose to not install packages
  217. using this variable and some other packages are dependent on them
  218. (i.e. listed in a recipe's :term:`RDEPENDS`
  219. variable), the OpenEmbedded build system ignores your request and
  220. will install the packages to avoid dependency errors.
  221. This variable is supported only when using the IPK and RPM
  222. packaging backends. DEB is not supported.
  223. See the :term:`NO_RECOMMENDATIONS` and the
  224. :term:`PACKAGE_EXCLUDE` variables for related
  225. information.
  226. :term:`BASE_LIB`
  227. The library directory name for the CPU or Application Binary
  228. Interface (ABI) tune. The :term:`BASE_LIB` applies only in the Multilib
  229. context. See the ":ref:`dev-manual/libraries:combining multiple versions of library files into one image`"
  230. section in the Yocto Project Development Tasks Manual for information
  231. on Multilib.
  232. The :term:`BASE_LIB` variable is defined in the machine include files in
  233. the :term:`Source Directory`. If Multilib is not
  234. being used, the value defaults to "lib".
  235. :term:`BASE_WORKDIR`
  236. Points to the base of the work directory for all recipes. The default
  237. value is "${TMPDIR}/work".
  238. :term:`BB_ALLOWED_NETWORKS`
  239. Specifies a space-delimited list of hosts that the fetcher is allowed
  240. to use to obtain the required source code. Here are
  241. considerations surrounding this variable:
  242. - This host list is only used if :term:`BB_NO_NETWORK` is either not set
  243. or set to "0".
  244. - There is limited support for wildcard matching against the beginning of
  245. host names. For example, the following setting matches
  246. ``git.gnu.org``, ``ftp.gnu.org``, and ``foo.git.gnu.org``::
  247. BB_ALLOWED_NETWORKS = "*.gnu.org"
  248. .. note::
  249. The use of the "``*``" character only works at the beginning of
  250. a host name and it must be isolated from the remainder of the
  251. host name. You cannot use the wildcard character in any other
  252. location of the name or combined with the front part of the
  253. name.
  254. For example, ``*.foo.bar`` is supported, while ``*aa.foo.bar``
  255. is not.
  256. - Mirrors not in the host list are skipped and logged in debug.
  257. - Attempts to access networks not in the host list cause a failure.
  258. Using :term:`BB_ALLOWED_NETWORKS` in conjunction with
  259. :term:`PREMIRRORS` is very useful. Adding the host
  260. you want to use to :term:`PREMIRRORS` results in the source code being
  261. fetched from an allowed location and avoids raising an error when a
  262. host that is not allowed is in a :term:`SRC_URI`
  263. statement. This is because the fetcher does not attempt to use the
  264. host listed in :term:`SRC_URI` after a successful fetch from the
  265. :term:`PREMIRRORS` occurs.
  266. :term:`BB_BASEHASH_IGNORE_VARS`
  267. See :term:`bitbake:BB_BASEHASH_IGNORE_VARS` in the BitBake manual.
  268. :term:`BB_CACHEDIR`
  269. See :term:`bitbake:BB_CACHEDIR` in the BitBake manual.
  270. :term:`BB_CHECK_SSL_CERTS`
  271. See :term:`bitbake:BB_CHECK_SSL_CERTS` in the BitBake manual.
  272. :term:`BB_CONSOLELOG`
  273. See :term:`bitbake:BB_CONSOLELOG` in the BitBake manual.
  274. :term:`BB_CURRENTTASK`
  275. See :term:`bitbake:BB_CURRENTTASK` in the BitBake manual.
  276. :term:`BB_DEFAULT_TASK`
  277. See :term:`bitbake:BB_DEFAULT_TASK` in the BitBake manual.
  278. :term:`BB_DEFAULT_UMASK`
  279. See :term:`bitbake:BB_DEFAULT_UMASK` in the BitBake manual.
  280. :term:`BB_DISKMON_DIRS`
  281. Monitors disk space and available inodes during the build and allows
  282. you to control the build based on these parameters.
  283. Disk space monitoring is disabled by default. To enable monitoring,
  284. add the :term:`BB_DISKMON_DIRS` variable to your ``conf/local.conf`` file
  285. found in the :term:`Build Directory`. Use the
  286. following form:
  287. .. code-block:: none
  288. BB_DISKMON_DIRS = "action,dir,threshold [...]"
  289. where:
  290. action is:
  291. ABORT: Immediately stop the build when
  292. a threshold is broken.
  293. STOPTASKS: Stop the build after the currently
  294. executing tasks have finished when
  295. a threshold is broken.
  296. WARN: Issue a warning but continue the
  297. build when a threshold is broken.
  298. Subsequent warnings are issued as
  299. defined by the BB_DISKMON_WARNINTERVAL
  300. variable, which must be defined in
  301. the conf/local.conf file.
  302. dir is:
  303. Any directory you choose. You can specify one or
  304. more directories to monitor by separating the
  305. groupings with a space. If two directories are
  306. on the same device, only the first directory
  307. is monitored.
  308. threshold is:
  309. Either the minimum available disk space,
  310. the minimum number of free inodes, or
  311. both. You must specify at least one. To
  312. omit one or the other, simply omit the value.
  313. Specify the threshold using G, M, K for Gbytes,
  314. Mbytes, and Kbytes, respectively. If you do
  315. not specify G, M, or K, Kbytes is assumed by
  316. default. Do not use GB, MB, or KB.
  317. Here are some examples::
  318. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  319. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  320. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  321. The first example works only if you also provide the
  322. :term:`BB_DISKMON_WARNINTERVAL`
  323. variable in the ``conf/local.conf``. This example causes the build
  324. system to immediately stop when either the disk space in
  325. ``${TMPDIR}`` drops below 1 Gbyte or the available free inodes drops
  326. below 100 Kbytes. Because two directories are provided with the
  327. variable, the build system also issue a warning when the disk space
  328. in the ``${SSTATE_DIR}`` directory drops below 1 Gbyte or the number
  329. of free inodes drops below 100 Kbytes. Subsequent warnings are issued
  330. during intervals as defined by the :term:`BB_DISKMON_WARNINTERVAL`
  331. variable.
  332. The second example stops the build after all currently executing
  333. tasks complete when the minimum disk space in the ``${TMPDIR}``
  334. directory drops below 1 Gbyte. No disk monitoring occurs for the free
  335. inodes in this case.
  336. The final example immediately stops the build when the number of
  337. free inodes in the ``${TMPDIR}`` directory drops below 100 Kbytes. No
  338. disk space monitoring for the directory itself occurs in this case.
  339. :term:`BB_DISKMON_WARNINTERVAL`
  340. Defines the disk space and free inode warning intervals. To set these
  341. intervals, define the variable in your ``conf/local.conf`` file in
  342. the :term:`Build Directory`.
  343. If you are going to use the :term:`BB_DISKMON_WARNINTERVAL` variable, you
  344. must also use the :term:`BB_DISKMON_DIRS`
  345. variable and define its action as "WARN". During the build,
  346. subsequent warnings are issued each time disk space or number of free
  347. inodes further reduces by the respective interval.
  348. If you do not provide a :term:`BB_DISKMON_WARNINTERVAL` variable and you
  349. do use :term:`BB_DISKMON_DIRS` with the "WARN" action, the disk
  350. monitoring interval defaults to the following::
  351. BB_DISKMON_WARNINTERVAL = "50M,5K"
  352. When specifying the variable in your configuration file, use the
  353. following form:
  354. .. code-block:: none
  355. BB_DISKMON_WARNINTERVAL = "disk_space_interval,disk_inode_interval"
  356. where:
  357. disk_space_interval is:
  358. An interval of memory expressed in either
  359. G, M, or K for Gbytes, Mbytes, or Kbytes,
  360. respectively. You cannot use GB, MB, or KB.
  361. disk_inode_interval is:
  362. An interval of free inodes expressed in either
  363. G, M, or K for Gbytes, Mbytes, or Kbytes,
  364. respectively. You cannot use GB, MB, or KB.
  365. Here is an example::
  366. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  367. BB_DISKMON_WARNINTERVAL = "50M,5K"
  368. These variables cause the
  369. OpenEmbedded build system to issue subsequent warnings each time the
  370. available disk space further reduces by 50 Mbytes or the number of
  371. free inodes further reduces by 5 Kbytes in the ``${SSTATE_DIR}``
  372. directory. Subsequent warnings based on the interval occur each time
  373. a respective interval is reached beyond the initial warning (i.e. 1
  374. Gbytes and 100 Kbytes).
  375. :term:`BB_ENV_PASSTHROUGH`
  376. See :term:`bitbake:BB_ENV_PASSTHROUGH` in the BitBake manual.
  377. :term:`BB_ENV_PASSTHROUGH_ADDITIONS`
  378. See :term:`bitbake:BB_ENV_PASSTHROUGH_ADDITIONS` in the BitBake manual.
  379. :term:`BB_FETCH_PREMIRRORONLY`
  380. See :term:`bitbake:BB_FETCH_PREMIRRORONLY` in the BitBake manual.
  381. :term:`BB_FILENAME`
  382. See :term:`bitbake:BB_FILENAME` in the BitBake manual.
  383. :term:`BB_GENERATE_MIRROR_TARBALLS`
  384. Causes tarballs of the source control repositories (e.g. Git
  385. repositories), including metadata, to be placed in the
  386. :term:`DL_DIR` directory.
  387. For performance reasons, creating and placing tarballs of these
  388. repositories is not the default action by the OpenEmbedded build
  389. system::
  390. BB_GENERATE_MIRROR_TARBALLS = "1"
  391. Set this variable in your
  392. ``local.conf`` file in the :term:`Build Directory`.
  393. Once you have the tarballs containing your source files, you can
  394. clean up your :term:`DL_DIR` directory by deleting any Git or other
  395. source control work directories.
  396. :term:`BB_GENERATE_SHALLOW_TARBALLS`
  397. See :term:`bitbake:BB_GENERATE_SHALLOW_TARBALLS` in the BitBake manual.
  398. :term:`BB_GIT_SHALLOW`
  399. See :term:`bitbake:BB_GIT_SHALLOW` in the BitBake manual.
  400. :term:`BB_GIT_SHALLOW_DEPTH`
  401. See :term:`bitbake:BB_GIT_SHALLOW_DEPTH` in the BitBake manual.
  402. :term:`BB_HASHCHECK_FUNCTION`
  403. See :term:`bitbake:BB_HASHCHECK_FUNCTION` in the BitBake manual.
  404. :term:`BB_HASHCONFIG_IGNORE_VARS`
  405. See :term:`bitbake:BB_HASHCONFIG_IGNORE_VARS` in the BitBake manual.
  406. :term:`BB_HASHSERVE`
  407. See :term:`bitbake:BB_HASHSERVE` in the BitBake manual.
  408. :term:`BB_HASHSERVE_UPSTREAM`
  409. See :term:`bitbake:BB_HASHSERVE_UPSTREAM` in the BitBake manual.
  410. :term:`BB_INVALIDCONF`
  411. See :term:`bitbake:BB_INVALIDCONF` in the BitBake manual.
  412. :term:`BB_LOADFACTOR_MAX`
  413. The system load threshold above which BitBake will stop runnig extra
  414. tasks.
  415. :term:`BB_LOGCONFIG`
  416. See :term:`bitbake:BB_LOGCONFIG` in the BitBake manual.
  417. :term:`BB_LOGFMT`
  418. See :term:`bitbake:BB_LOGFMT` in the BitBake manual.
  419. :term:`BB_MULTI_PROVIDER_ALLOWED`
  420. See :term:`bitbake:BB_MULTI_PROVIDER_ALLOWED` in the BitBake manual.
  421. :term:`BB_NICE_LEVEL`
  422. See :term:`bitbake:BB_NICE_LEVEL` in the BitBake manual.
  423. :term:`BB_NO_NETWORK`
  424. See :term:`bitbake:BB_NO_NETWORK` in the BitBake manual.
  425. :term:`BB_NUMBER_PARSE_THREADS`
  426. See :term:`bitbake:BB_NUMBER_PARSE_THREADS` in the BitBake manual.
  427. :term:`BB_NUMBER_THREADS`
  428. The maximum number of tasks BitBake should run in parallel at any one
  429. time. The OpenEmbedded build system automatically configures this
  430. variable to be equal to the number of cores on the build system. For
  431. example, a system with a dual core processor that also uses
  432. hyper-threading causes the :term:`BB_NUMBER_THREADS` variable to default
  433. to "4".
  434. For single socket systems (i.e. one CPU), you should not have to
  435. override this variable to gain optimal parallelism during builds.
  436. However, if you have very large systems that employ multiple physical
  437. CPUs, you might want to make sure the :term:`BB_NUMBER_THREADS` variable
  438. is not set higher than "20".
  439. For more information on speeding up builds, see the
  440. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  441. section in the Yocto Project Development Tasks Manual.
  442. On the other hand, if your goal is to limit the amount of system
  443. resources consumed by BitBake tasks, setting :term:`BB_NUMBER_THREADS`
  444. to a number lower than the number of CPU threads in your machine
  445. won't be sufficient. That's because each package will still be built
  446. and installed through a number of parallel jobs specified by the
  447. :term:`PARALLEL_MAKE` variable, which is by default the number of CPU
  448. threads in your system, and is not impacted by the
  449. :term:`BB_NUMBER_THREADS` value.
  450. So, if you set :term:`BB_NUMBER_THREADS` to "1" but don't set
  451. :term:`PARALLEL_MAKE`, most of your system resources will be consumed
  452. anyway.
  453. Therefore, if you intend to reduce the load of your build system by
  454. setting :term:`BB_NUMBER_THREADS` to a relatively low value compared
  455. to the number of CPU threads on your system, you should also set
  456. :term:`PARALLEL_MAKE` to a similarly low value.
  457. An alternative to using :term:`BB_NUMBER_THREADS` to keep the usage
  458. of build system resources under control is to use the smarter
  459. :term:`BB_PRESSURE_MAX_CPU`, :term:`BB_PRESSURE_MAX_IO` or
  460. :term:`BB_PRESSURE_MAX_MEMORY` controls. They will prevent BitBake
  461. from starting new tasks as long as thresholds are exceeded. Anyway,
  462. as with :term:`BB_NUMBER_THREADS`, such controls won't prevent the
  463. tasks already being run from using all CPU threads on the system
  464. if :term:`PARALLEL_MAKE` is not set to a low value.
  465. :term:`BB_ORIGENV`
  466. See :term:`bitbake:BB_ORIGENV` in the BitBake manual.
  467. :term:`BB_PRESERVE_ENV`
  468. See :term:`bitbake:BB_PRESERVE_ENV` in the BitBake manual.
  469. :term:`BB_PRESSURE_MAX_CPU`
  470. See :term:`bitbake:BB_PRESSURE_MAX_CPU` in the BitBake manual.
  471. :term:`BB_PRESSURE_MAX_IO`
  472. See :term:`bitbake:BB_PRESSURE_MAX_IO` in the BitBake manual.
  473. :term:`BB_PRESSURE_MAX_MEMORY`
  474. See :term:`bitbake:BB_PRESSURE_MAX_MEMORY` in the BitBake manual.
  475. :term:`BB_RUNFMT`
  476. See :term:`bitbake:BB_RUNFMT` in the BitBake manual.
  477. :term:`BB_RUNTASK`
  478. See :term:`bitbake:BB_RUNTASK` in the BitBake manual.
  479. :term:`BB_SCHEDULER`
  480. See :term:`bitbake:BB_SCHEDULER` in the BitBake manual.
  481. :term:`BB_SCHEDULERS`
  482. See :term:`bitbake:BB_SCHEDULERS` in the BitBake manual.
  483. :term:`BB_SERVER_TIMEOUT`
  484. Specifies the time (in seconds) after which to unload the BitBake
  485. server due to inactivity. Set :term:`BB_SERVER_TIMEOUT` to determine how
  486. long the BitBake server stays resident between invocations.
  487. For example, the following statement in your ``local.conf`` file
  488. instructs the server to be unloaded after 20 seconds of inactivity::
  489. BB_SERVER_TIMEOUT = "20"
  490. If you want the server to never be unloaded,
  491. set :term:`BB_SERVER_TIMEOUT` to "-1".
  492. :term:`BB_SETSCENE_DEPVALID`
  493. See :term:`bitbake:BB_SETSCENE_DEPVALID` in the BitBake manual.
  494. :term:`BB_SIGNATURE_EXCLUDE_FLAGS`
  495. See :term:`bitbake:BB_SIGNATURE_EXCLUDE_FLAGS` in the BitBake manual.
  496. :term:`BB_SIGNATURE_HANDLER`
  497. See :term:`bitbake:BB_SIGNATURE_HANDLER` in the BitBake manual.
  498. :term:`BB_SRCREV_POLICY`
  499. See :term:`bitbake:BB_SRCREV_POLICY` in the BitBake manual.
  500. :term:`BB_STRICT_CHECKSUM`
  501. See :term:`bitbake:BB_STRICT_CHECKSUM` in the BitBake manual.
  502. :term:`BB_TASK_IONICE_LEVEL`
  503. See :term:`bitbake:BB_TASK_IONICE_LEVEL` in the BitBake manual.
  504. :term:`BB_TASK_NICE_LEVEL`
  505. See :term:`bitbake:BB_TASK_NICE_LEVEL` in the BitBake manual.
  506. :term:`BB_TASKHASH`
  507. See :term:`bitbake:BB_TASKHASH` in the BitBake manual.
  508. :term:`BB_VERBOSE_LOGS`
  509. See :term:`bitbake:BB_VERBOSE_LOGS` in the BitBake manual.
  510. :term:`BB_WORKERCONTEXT`
  511. See :term:`bitbake:BB_WORKERCONTEXT` in the BitBake manual.
  512. :term:`BBCLASSEXTEND`
  513. Allows you to extend a recipe so that it builds variants of the
  514. software. There are common variants for recipes as "natives" like
  515. ``quilt-native``, which is a copy of Quilt built to run on the build
  516. system; "crosses" such as ``gcc-cross``, which is a compiler built to
  517. run on the build machine but produces binaries that run on the target
  518. :term:`MACHINE`; ":ref:`ref-classes-nativesdk`", which
  519. targets the SDK machine instead of :term:`MACHINE`; and "mulitlibs" in
  520. the form "``multilib:``\ multilib_name".
  521. To build a different variant of the recipe with a minimal amount of
  522. code, it usually is as simple as adding the following to your recipe::
  523. BBCLASSEXTEND =+ "native nativesdk"
  524. BBCLASSEXTEND =+ "multilib:multilib_name"
  525. .. note::
  526. Internally, the :term:`BBCLASSEXTEND` mechanism generates recipe
  527. variants by rewriting variable values and applying overrides such
  528. as ``:class-native``. For example, to generate a native version of
  529. a recipe, a :term:`DEPENDS` on "foo" is rewritten
  530. to a :term:`DEPENDS` on "foo-native".
  531. Even when using :term:`BBCLASSEXTEND`, the recipe is only parsed once.
  532. Parsing once adds some limitations. For example, it is not
  533. possible to include a different file depending on the variant,
  534. since ``include`` statements are processed when the recipe is
  535. parsed.
  536. :term:`BBDEBUG`
  537. See :term:`bitbake:BBDEBUG` in the BitBake manual.
  538. :term:`BBFILE_COLLECTIONS`
  539. Lists the names of configured layers. These names are used to find
  540. the other ``BBFILE_*`` variables. Typically, each layer will append
  541. its name to this variable in its ``conf/layer.conf`` file.
  542. :term:`BBFILE_PATTERN`
  543. Variable that expands to match files from
  544. :term:`BBFILES` in a particular layer. This variable
  545. is used in the ``conf/layer.conf`` file and must be suffixed with the
  546. name of the specific layer (e.g. ``BBFILE_PATTERN_emenlow``).
  547. :term:`BBFILE_PRIORITY`
  548. Assigns the priority for recipe files in each layer.
  549. This variable is useful in situations where the same recipe appears
  550. in more than one layer. Setting this variable allows you to
  551. prioritize a layer against other layers that contain the same recipe
  552. --- effectively letting you control the precedence for the multiple
  553. layers. The precedence established through this variable stands
  554. regardless of a recipe's version (:term:`PV` variable). For
  555. example, a layer that has a recipe with a higher :term:`PV` value but for
  556. which the :term:`BBFILE_PRIORITY` is set to have a lower precedence still
  557. has a lower precedence.
  558. A larger value for the :term:`BBFILE_PRIORITY` variable results in a
  559. higher precedence. For example, the value 6 has a higher precedence
  560. than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
  561. is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
  562. for more information. The default priority, if unspecified for a
  563. layer with no dependencies, is the lowest defined priority + 1 (or 1
  564. if no priorities are defined).
  565. .. tip::
  566. You can use the command ``bitbake-layers show-layers``
  567. to list all configured layers along with their priorities.
  568. :term:`BBFILES`
  569. A space-separated list of recipe files BitBake uses to build
  570. software.
  571. When specifying recipe files, you can pattern match using Python's
  572. `glob <https://docs.python.org/3/library/glob.html>`__ syntax.
  573. For details on the syntax, see the documentation by following the
  574. previous link.
  575. :term:`BBFILES_DYNAMIC`
  576. Activates content when identified layers are present. You identify
  577. the layers by the collections that the layers define.
  578. Use the :term:`BBFILES_DYNAMIC` variable to avoid ``.bbappend`` files
  579. whose corresponding ``.bb`` file is in a layer that attempts to
  580. modify other layers through ``.bbappend`` but does not want to
  581. introduce a hard dependency on those other layers.
  582. Use the following form for :term:`BBFILES_DYNAMIC`:
  583. ``collection_name:filename_pattern``.
  584. The following example identifies two collection names and two
  585. filename patterns::
  586. BBFILES_DYNAMIC += " \
  587. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  588. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  589. "
  590. This next example shows an error message that occurs because invalid
  591. entries are found, which cause parsing to fail:
  592. .. code-block:: none
  593. ERROR: BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:
  594. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  595. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  596. :term:`BBINCLUDED`
  597. See :term:`bitbake:BBINCLUDED` in the BitBake manual.
  598. :term:`BBINCLUDELOGS`
  599. Variable that controls how BitBake displays logs on build failure.
  600. :term:`BBINCLUDELOGS_LINES`
  601. If :term:`BBINCLUDELOGS` is set, specifies the
  602. maximum number of lines from the task log file to print when
  603. reporting a failed task. If you do not set :term:`BBINCLUDELOGS_LINES`,
  604. the entire log is printed.
  605. :term:`BBLAYERS`
  606. Lists the layers to enable during the build. This variable is defined
  607. in the ``bblayers.conf`` configuration file in the :term:`Build Directory`.
  608. Here is an example::
  609. BBLAYERS = " \
  610. /home/scottrif/poky/meta \
  611. /home/scottrif/poky/meta-poky \
  612. /home/scottrif/poky/meta-yocto-bsp \
  613. /home/scottrif/poky/meta-mykernel \
  614. "
  615. This example enables four layers, one of which is a custom,
  616. user-defined layer named ``meta-mykernel``.
  617. :term:`BBLAYERS_FETCH_DIR`
  618. See :term:`bitbake:BBLAYERS_FETCH_DIR` in the BitBake manual.
  619. :term:`BBMASK`
  620. Prevents BitBake from processing recipes and recipe append files.
  621. You can use the :term:`BBMASK` variable to "hide" these ``.bb`` and
  622. ``.bbappend`` files. BitBake ignores any recipe or recipe append
  623. files that match any of the expressions. It is as if BitBake does not
  624. see them at all. Consequently, matching files are not parsed or
  625. otherwise used by BitBake.
  626. The values you provide are passed to Python's regular expression
  627. compiler. Consequently, the syntax follows Python's Regular
  628. Expression (re) syntax. The expressions are compared against the full
  629. paths to the files. For complete syntax information, see Python's
  630. documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax.
  631. The following example uses a complete regular expression to tell
  632. BitBake to ignore all recipe and recipe append files in the
  633. ``meta-ti/recipes-misc/`` directory::
  634. BBMASK = "meta-ti/recipes-misc/"
  635. If you want to mask out multiple directories or recipes, you can
  636. specify multiple regular expression fragments. This next example
  637. masks out multiple directories and individual recipes::
  638. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  639. BBMASK += "/meta-oe/recipes-support/"
  640. BBMASK += "/meta-foo/.*/openldap"
  641. BBMASK += "opencv.*\.bbappend"
  642. BBMASK += "lzma"
  643. .. note::
  644. When specifying a directory name, use the trailing slash character
  645. to ensure you match just that directory name.
  646. :term:`BBMULTICONFIG`
  647. Specifies each additional separate configuration when you are
  648. building targets with multiple configurations. Use this variable in
  649. your ``conf/local.conf`` configuration file. Specify a
  650. multiconfigname for each configuration file you are using. For
  651. example, the following line specifies three configuration files::
  652. BBMULTICONFIG = "configA configB configC"
  653. Each configuration file you use must reside in a ``multiconfig``
  654. subdirectory of a configuration directory within a layer, or
  655. within the :term:`Build Directory` (e.g.
  656. ``build_directory/conf/multiconfig/configA.conf`` or
  657. ``mylayer/conf/multiconfig/configB.conf``).
  658. For information on how to use :term:`BBMULTICONFIG` in an environment
  659. that supports building targets with multiple configurations, see the
  660. ":ref:`dev-manual/building:building images for multiple targets using multiple configurations`"
  661. section in the Yocto Project Development Tasks Manual.
  662. :term:`BBPATH`
  663. See :term:`bitbake:BBPATH` in the BitBake manual.
  664. :term:`BBSERVER`
  665. If defined in the BitBake environment, :term:`BBSERVER` points to the
  666. BitBake remote server.
  667. Use the following format to export the variable to the BitBake
  668. environment::
  669. export BBSERVER=localhost:$port
  670. By default, :term:`BBSERVER` also appears in :term:`BB_BASEHASH_IGNORE_VARS`.
  671. Consequently, :term:`BBSERVER` is excluded from checksum and dependency
  672. data.
  673. :term:`BBTARGETS`
  674. See :term:`bitbake:BBTARGETS` in the BitBake manual.
  675. :term:`BINCONFIG`
  676. When inheriting the :ref:`ref-classes-binconfig-disabled` class, this
  677. variable specifies binary configuration scripts to disable in favor of
  678. using ``pkg-config`` to query the information. The
  679. :ref:`ref-classes-binconfig-disabled` class will modify the specified
  680. scripts to return an error so that calls to them can be easily found
  681. and replaced.
  682. To add multiple scripts, separate them by spaces. Here is an example
  683. from the ``libpng`` recipe::
  684. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  685. :term:`BINCONFIG_GLOB`
  686. When inheriting the :ref:`ref-classes-binconfig` class,
  687. this variable specifies a wildcard for configuration scripts that
  688. need editing. The scripts are edited to correct any paths that have
  689. been set up during compilation so that they are correct for use when
  690. installed into the sysroot and called by the build processes of other
  691. recipes.
  692. .. note::
  693. The :term:`BINCONFIG_GLOB` variable uses
  694. `shell globbing <https://tldp.org/LDP/abs/html/globbingref.html>`__,
  695. which is recognition and expansion of wildcards during pattern
  696. matching. Shell globbing is very similar to
  697. `fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__
  698. and `glob <https://docs.python.org/3/library/glob.html>`__.
  699. For more information on how this variable works, see
  700. ``meta/classes-recipe/binconfig.bbclass`` in the :term:`Source Directory`.
  701. You can also find general
  702. information on the class in the
  703. ":ref:`ref-classes-binconfig`" section.
  704. :term:`BITBAKE_UI`
  705. See :term:`bitbake:BITBAKE_UI` in the BitBake manual.
  706. :term:`BP`
  707. The base recipe name and version but without any special recipe name
  708. suffix (i.e. ``-native``, ``lib64-``, and so forth). :term:`BP` is
  709. comprised of the following::
  710. ${BPN}-${PV}
  711. :term:`BPN`
  712. This variable is a version of the :term:`PN` variable with
  713. common prefixes and suffixes removed, such as ``nativesdk-``,
  714. ``-cross``, ``-native``, and multilib's ``lib64-`` and ``lib32-``.
  715. The exact lists of prefixes and suffixes removed are specified by the
  716. :term:`MLPREFIX` and
  717. :term:`SPECIAL_PKGSUFFIX` variables,
  718. respectively.
  719. :term:`BUGTRACKER`
  720. Specifies a URL for an upstream bug tracking website for a recipe.
  721. The OpenEmbedded build system does not use this variable. Rather, the
  722. variable is a useful pointer in case a bug in the software being
  723. built needs to be manually reported.
  724. :term:`BUILD_ARCH`
  725. Specifies the architecture of the build host (e.g. ``i686``). The
  726. OpenEmbedded build system sets the value of :term:`BUILD_ARCH` from the
  727. machine name reported by the ``uname`` command.
  728. :term:`BUILD_AS_ARCH`
  729. Specifies the architecture-specific assembler flags for the build
  730. host. By default, the value of :term:`BUILD_AS_ARCH` is empty.
  731. :term:`BUILD_CC_ARCH`
  732. Specifies the architecture-specific C compiler flags for the build
  733. host. By default, the value of :term:`BUILD_CC_ARCH` is empty.
  734. :term:`BUILD_CCLD`
  735. Specifies the linker command to be used for the build host when the C
  736. compiler is being used as the linker. By default, :term:`BUILD_CCLD`
  737. points to GCC and passes as arguments the value of
  738. :term:`BUILD_CC_ARCH`, assuming
  739. :term:`BUILD_CC_ARCH` is set.
  740. :term:`BUILD_CFLAGS`
  741. Specifies the flags to pass to the C compiler when building for the
  742. build host. When building in the ``-native`` context,
  743. :term:`CFLAGS` is set to the value of this variable by
  744. default.
  745. :term:`BUILD_CPPFLAGS`
  746. Specifies the flags to pass to the C preprocessor (i.e. to both the C
  747. and the C++ compilers) when building for the build host. When
  748. building in the ``-native`` context, :term:`CPPFLAGS`
  749. is set to the value of this variable by default.
  750. :term:`BUILD_CXXFLAGS`
  751. Specifies the flags to pass to the C++ compiler when building for the
  752. build host. When building in the ``-native`` context,
  753. :term:`CXXFLAGS` is set to the value of this variable
  754. by default.
  755. :term:`BUILD_FC`
  756. Specifies the Fortran compiler command for the build host. By
  757. default, :term:`BUILD_FC` points to Gfortran and passes as arguments the
  758. value of :term:`BUILD_CC_ARCH`, assuming
  759. :term:`BUILD_CC_ARCH` is set.
  760. :term:`BUILD_LD`
  761. Specifies the linker command for the build host. By default,
  762. :term:`BUILD_LD` points to the GNU linker (ld) and passes as arguments
  763. the value of :term:`BUILD_LD_ARCH`, assuming
  764. :term:`BUILD_LD_ARCH` is set.
  765. :term:`BUILD_LD_ARCH`
  766. Specifies architecture-specific linker flags for the build host. By
  767. default, the value of :term:`BUILD_LD_ARCH` is empty.
  768. :term:`BUILD_LDFLAGS`
  769. Specifies the flags to pass to the linker when building for the build
  770. host. When building in the ``-native`` context,
  771. :term:`LDFLAGS` is set to the value of this variable
  772. by default.
  773. :term:`BUILD_OPTIMIZATION`
  774. Specifies the optimization flags passed to the C compiler when
  775. building for the build host or the SDK. The flags are passed through
  776. the :term:`BUILD_CFLAGS` and
  777. :term:`BUILDSDK_CFLAGS` default values.
  778. The default value of the :term:`BUILD_OPTIMIZATION` variable is "-O2
  779. -pipe".
  780. :term:`BUILD_OS`
  781. Specifies the operating system in use on the build host (e.g.
  782. "linux"). The OpenEmbedded build system sets the value of
  783. :term:`BUILD_OS` from the OS reported by the ``uname`` command --- the
  784. first word, converted to lower-case characters.
  785. :term:`BUILD_PREFIX`
  786. The toolchain binary prefix used for native recipes. The OpenEmbedded
  787. build system uses the :term:`BUILD_PREFIX` value to set the
  788. :term:`TARGET_PREFIX` when building for :ref:`ref-classes-native` recipes.
  789. :term:`BUILD_STRIP`
  790. Specifies the command to be used to strip debugging symbols from
  791. binaries produced for the build host. By default, :term:`BUILD_STRIP`
  792. points to
  793. ``${``\ :term:`BUILD_PREFIX`\ ``}strip``.
  794. :term:`BUILD_SYS`
  795. Specifies the system, including the architecture and the operating
  796. system, to use when building for the build host (i.e. when building
  797. :ref:`ref-classes-native` recipes).
  798. The OpenEmbedded build system automatically sets this variable based
  799. on :term:`BUILD_ARCH`,
  800. :term:`BUILD_VENDOR`, and
  801. :term:`BUILD_OS`. You do not need to set the
  802. :term:`BUILD_SYS` variable yourself.
  803. :term:`BUILD_VENDOR`
  804. Specifies the vendor name to use when building for the build host.
  805. The default value is an empty string ("").
  806. :term:`BUILDDIR`
  807. Points to the location of the :term:`Build Directory`. You can define
  808. this directory indirectly through the :ref:`structure-core-script` script
  809. by passing in a :term:`Build Directory` path when you run the script. If
  810. you run the script and do not provide a :term:`Build Directory` path, the
  811. :term:`BUILDDIR` defaults to ``build`` in the current directory.
  812. :term:`BUILDHISTORY_COMMIT`
  813. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  814. specifies whether or not to commit the build history output in a local
  815. Git repository. If set to "1", this local repository will be maintained
  816. automatically by the :ref:`ref-classes-buildhistory` class and a commit
  817. will be created on every build for changes to each top-level subdirectory
  818. of the build history output (images, packages, and sdk). If you want to
  819. track changes to build history over time, you should set this value to
  820. "1".
  821. By default, the :ref:`ref-classes-buildhistory` class
  822. enables committing the buildhistory output in a local Git repository::
  823. BUILDHISTORY_COMMIT ?= "1"
  824. :term:`BUILDHISTORY_COMMIT_AUTHOR`
  825. When inheriting the :ref:`ref-classes-buildhistory`
  826. class, this variable specifies the author to use for each Git commit.
  827. In order for the :term:`BUILDHISTORY_COMMIT_AUTHOR` variable to work, the
  828. :term:`BUILDHISTORY_COMMIT` variable must
  829. be set to "1".
  830. Git requires that the value you provide for the
  831. :term:`BUILDHISTORY_COMMIT_AUTHOR` variable takes the form of "name
  832. email@host". Providing an email address or host that is not valid
  833. does not produce an error.
  834. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  835. as follows::
  836. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
  837. :term:`BUILDHISTORY_DIR`
  838. When inheriting the :ref:`ref-classes-buildhistory`
  839. class, this variable specifies the directory in which build history
  840. information is kept. For more information on how the variable works,
  841. see the :ref:`ref-classes-buildhistory` class.
  842. By default, the :ref:`ref-classes-buildhistory` class sets the directory
  843. as follows::
  844. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  845. :term:`BUILDHISTORY_FEATURES`
  846. When inheriting the :ref:`ref-classes-buildhistory`
  847. class, this variable specifies the build history features to be
  848. enabled. For more information on how build history works, see the
  849. ":ref:`dev-manual/build-quality:maintaining build output quality`"
  850. section in the Yocto Project Development Tasks Manual.
  851. You can specify these features in the form of a space-separated list:
  852. - *image:* Analysis of the contents of images, which includes the
  853. list of installed packages among other things.
  854. - *package:* Analysis of the contents of individual packages.
  855. - *sdk:* Analysis of the contents of the software development kit
  856. (SDK).
  857. - *task:* Save output file signatures for
  858. :ref:`shared state <overview-manual/concepts:shared state cache>`
  859. (sstate) tasks.
  860. This saves one file per task and lists the SHA-256 checksums for
  861. each file staged (i.e. the output of the task).
  862. By default, the :ref:`ref-classes-buildhistory` class enables the
  863. following features::
  864. BUILDHISTORY_FEATURES ?= "image package sdk"
  865. :term:`BUILDHISTORY_IMAGE_FILES`
  866. When inheriting the :ref:`ref-classes-buildhistory`
  867. class, this variable specifies a list of paths to files copied from
  868. the image contents into the build history directory under an
  869. "image-files" directory in the directory for the image, so that you
  870. can track the contents of each file. The default is to copy
  871. ``/etc/passwd`` and ``/etc/group``, which allows you to monitor for
  872. changes in user and group entries. You can modify the list to include
  873. any file. Specifying an invalid path does not produce an error.
  874. Consequently, you can include files that might not always be present.
  875. By default, the :ref:`ref-classes-buildhistory` class provides paths to
  876. the following files::
  877. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  878. :term:`BUILDHISTORY_PATH_PREFIX_STRIP`
  879. When inheriting the :ref:`ref-classes-buildhistory`
  880. class, this variable specifies a common path prefix that should be
  881. stripped off the beginning of paths in the task signature list when the
  882. ``task`` feature is active in :term:`BUILDHISTORY_FEATURES`. This can be
  883. useful when build history is populated from multiple sources that may not
  884. all use the same top level directory.
  885. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  886. as follows::
  887. BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
  888. In this case, no prefixes will be stripped.
  889. :term:`BUILDHISTORY_PUSH_REPO`
  890. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  891. optionally specifies a remote repository to which build history pushes
  892. Git changes. In order for :term:`BUILDHISTORY_PUSH_REPO` to work,
  893. :term:`BUILDHISTORY_COMMIT` must be set to "1".
  894. The repository should correspond to a remote address that specifies a
  895. repository as understood by Git, or alternatively to a remote name
  896. that you have set up manually using ``git remote`` within the local
  897. repository.
  898. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  899. as follows::
  900. BUILDHISTORY_PUSH_REPO ?= ""
  901. :term:`BUILDNAME`
  902. See :term:`bitbake:BUILDNAME` in the BitBake manual.
  903. :term:`BUILDSDK_CFLAGS`
  904. Specifies the flags to pass to the C compiler when building for the
  905. SDK. When building in the ``nativesdk-`` context,
  906. :term:`CFLAGS` is set to the value of this variable by
  907. default.
  908. :term:`BUILDSDK_CPPFLAGS`
  909. Specifies the flags to pass to the C pre-processor (i.e. to both the
  910. C and the C++ compilers) when building for the SDK. When building in
  911. the ``nativesdk-`` context, :term:`CPPFLAGS` is set
  912. to the value of this variable by default.
  913. :term:`BUILDSDK_CXXFLAGS`
  914. Specifies the flags to pass to the C++ compiler when building for the
  915. SDK. When building in the ``nativesdk-`` context,
  916. :term:`CXXFLAGS` is set to the value of this variable
  917. by default.
  918. :term:`BUILDSDK_LDFLAGS`
  919. Specifies the flags to pass to the linker when building for the SDK.
  920. When building in the ``nativesdk-`` context,
  921. :term:`LDFLAGS` is set to the value of this variable
  922. by default.
  923. :term:`BUILDSTATS_BASE`
  924. Points to the location of the directory that holds build statistics
  925. when you use and enable the :ref:`ref-classes-buildstats` class. The
  926. :term:`BUILDSTATS_BASE` directory defaults to
  927. ``${``\ :term:`TMPDIR`\ ``}/buildstats/``.
  928. :term:`BUSYBOX_SPLIT_SUID`
  929. For the BusyBox recipe, specifies whether to split the output
  930. executable file into two parts: one for features that require
  931. ``setuid root``, and one for the remaining features (i.e. those that
  932. do not require ``setuid root``).
  933. The :term:`BUSYBOX_SPLIT_SUID` variable defaults to "1", which results in
  934. splitting the output executable file. Set the variable to "0" to get
  935. a single output executable file.
  936. :term:`BZRDIR`
  937. See :term:`bitbake:BZRDIR` in the BitBake manual.
  938. :term:`CACHE`
  939. Specifies the directory BitBake uses to store a cache of the
  940. :term:`Metadata` so it does not need to be parsed every time
  941. BitBake is started.
  942. :term:`CARGO_INSTALL_LIBRARIES`
  943. When inheriting the :ref:`ref-classes-cargo` class, the variable
  944. :term:`CARGO_INSTALL_LIBRARIES` can be set to a non-empty value by
  945. individual recipes to enable the installation of the libraries the
  946. recipe has built in ``${B}/target/${CARGO_TARGET_SUBDIR}`` (files ending
  947. with ``.so`` or ``.rlib``). By default this variable is not defined and
  948. libraries are not installed, to replicate the behavior of the ``cargo
  949. install`` command.
  950. :term:`CC`
  951. The minimal command and arguments used to run the C compiler.
  952. :term:`CFLAGS`
  953. Specifies the flags to pass to the C compiler. This variable is
  954. exported to an environment variable and thus made visible to the
  955. software being built during the compilation step.
  956. Default initialization for :term:`CFLAGS` varies depending on what is
  957. being built:
  958. - :term:`TARGET_CFLAGS` when building for the
  959. target
  960. - :term:`BUILD_CFLAGS` when building for the
  961. build host (i.e. ``-native``)
  962. - :term:`BUILDSDK_CFLAGS` when building for
  963. an SDK (i.e. ``nativesdk-``)
  964. :term:`CHECKLAYER_REQUIRED_TESTS`
  965. The :term:`CHECKLAYER_REQUIRED_TESTS` variable lists the QA tests that are
  966. required to be enabled to pass the Yocto Project Compatible status for a
  967. layer. It is meant to be a read-only variable and any change to the
  968. variable may be done with the approval of the :oe_wiki:`Technical Steering
  969. Committee (TSC) </TSC>`.
  970. For more information on the Yocto Project Compatible status, see
  971. the :ref:`dev-manual/layers:Making Sure Your Layer is Compatible With
  972. Yocto Project` section of the Yocto Project Development Manual.
  973. :term:`CLASSOVERRIDE`
  974. An internal variable specifying the special class override that
  975. should currently apply (e.g. "class-target", "class-native", and so
  976. forth). The classes that use this variable (e.g.
  977. :ref:`ref-classes-native`, :ref:`ref-classes-nativesdk`, and so forth)
  978. set the variable to appropriate values.
  979. .. note::
  980. :term:`CLASSOVERRIDE` gets its default "class-target" value from the
  981. ``bitbake.conf`` file.
  982. As an example, the following override allows you to install extra
  983. files, but only when building for the target::
  984. do_install:append:class-target() {
  985. install my-extra-file ${D}${sysconfdir}
  986. }
  987. Here is an example where ``FOO`` is set to
  988. "native" when building for the build host, and to "other" when not
  989. building for the build host::
  990. FOO:class-native = "native"
  991. FOO = "other"
  992. The underlying mechanism behind :term:`CLASSOVERRIDE` is simply
  993. that it is included in the default value of
  994. :term:`OVERRIDES`.
  995. :term:`CLEANBROKEN`
  996. If set to "1" within a recipe, :term:`CLEANBROKEN` specifies that the
  997. ``make clean`` command does not work for the software being built.
  998. Consequently, the OpenEmbedded build system will not try to run
  999. ``make clean`` during the :ref:`ref-tasks-configure`
  1000. task, which is the default behavior.
  1001. :term:`COMBINED_FEATURES`
  1002. Provides a list of hardware features that are enabled in both
  1003. :term:`MACHINE_FEATURES` and
  1004. :term:`DISTRO_FEATURES`. This select list of
  1005. features contains features that make sense to be controlled both at
  1006. the machine and distribution configuration level. For example, the
  1007. "bluetooth" feature requires hardware support but should also be
  1008. optional at the distribution level, in case the hardware supports
  1009. Bluetooth but you do not ever intend to use it.
  1010. :term:`COMMERCIAL_AUDIO_PLUGINS`
  1011. This variable is specific to the :yocto_git:`GStreamer recipes
  1012. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1013. It allows to build the GStreamer `"ugly"
  1014. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1015. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ audio plugins.
  1016. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1017. section for usage details.
  1018. :term:`COMMERCIAL_VIDEO_PLUGINS`
  1019. This variable is specific to the :yocto_git:`GStreamer recipes
  1020. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1021. It allows to build the GStreamer `"ugly"
  1022. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1023. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ video plugins.
  1024. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1025. section for usage details.
  1026. :term:`COMMON_LICENSE_DIR`
  1027. Points to ``meta/files/common-licenses`` in the
  1028. :term:`Source Directory`, which is where generic license
  1029. files reside.
  1030. :term:`COMPATIBLE_HOST`
  1031. A regular expression that resolves to one or more hosts (when the
  1032. recipe is native) or one or more targets (when the recipe is
  1033. non-native) with which a recipe is compatible. The regular expression
  1034. is matched against :term:`HOST_SYS`. You can use the
  1035. variable to stop recipes from being built for classes of systems with
  1036. which the recipes are not compatible. Stopping these builds is
  1037. particularly useful with kernels. The variable also helps to increase
  1038. parsing speed since the build system skips parsing recipes not
  1039. compatible with the current system.
  1040. :term:`COMPATIBLE_MACHINE`
  1041. A regular expression that resolves to one or more target machines
  1042. with which a recipe is compatible. The regular expression is matched
  1043. against :term:`MACHINEOVERRIDES`. You can use
  1044. the variable to stop recipes from being built for machines with which
  1045. the recipes are not compatible. Stopping these builds is particularly
  1046. useful with kernels. The variable also helps to increase parsing
  1047. speed since the build system skips parsing recipes not compatible
  1048. with the current machine.
  1049. If one wants to have a recipe only available for some architectures
  1050. (here ``aarch64`` and ``mips64``), the following can be used::
  1051. COMPATIBLE_MACHINE = "^$"
  1052. COMPATIBLE_MACHINE:arch64 = "^(aarch64)$"
  1053. COMPATIBLE_MACHINE:mips64 = "^(mips64)$"
  1054. The first line means "match all machines whose :term:`MACHINEOVERRIDES`
  1055. contains the empty string", which will always be none.
  1056. The second is for matching all machines whose :term:`MACHINEOVERRIDES`
  1057. contains one override which is exactly ``aarch64``.
  1058. The third is for matching all machines whose :term:`MACHINEOVERRIDES`
  1059. contains one override which is exactly ``mips64``.
  1060. The same could be achieved with::
  1061. COMPATIBLE_MACHINE = "^(aarch64|mips64)$"
  1062. .. note::
  1063. When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from
  1064. native, the recipe is always skipped. All native recipes must be
  1065. entirely target independent and should not rely on :term:`MACHINE`.
  1066. :term:`COMPLEMENTARY_GLOB`
  1067. Defines wildcards to match when installing a list of complementary
  1068. packages for all the packages explicitly (or implicitly) installed in
  1069. an image.
  1070. The :term:`COMPLEMENTARY_GLOB` variable uses Unix filename pattern matching
  1071. (`fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__),
  1072. which is similar to the Unix style pathname pattern expansion
  1073. (`glob <https://docs.python.org/3/library/glob.html>`__).
  1074. The resulting list of complementary packages is associated with an
  1075. item that can be added to
  1076. :term:`IMAGE_FEATURES`. An example usage of
  1077. this is the "dev-pkgs" item that when added to :term:`IMAGE_FEATURES`
  1078. will install -dev packages (containing headers and other development
  1079. files) for every package in the image.
  1080. To add a new feature item pointing to a wildcard, use a variable flag
  1081. to specify the feature item name and use the value to specify the
  1082. wildcard. Here is an example::
  1083. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  1084. .. note::
  1085. When installing complementary packages, recommends relationships
  1086. (set via :term:`RRECOMMENDS`) are always ignored.
  1087. :term:`COMPONENTS_DIR`
  1088. Stores sysroot components for each recipe. The OpenEmbedded build
  1089. system uses :term:`COMPONENTS_DIR` when constructing recipe-specific
  1090. sysroots for other recipes.
  1091. The default is
  1092. "``${``\ :term:`STAGING_DIR`\ ``}-components``."
  1093. (i.e.
  1094. "``${``\ :term:`TMPDIR`\ ``}/sysroots-components``").
  1095. :term:`CONF_VERSION`
  1096. Tracks the version of the local configuration file (i.e.
  1097. ``local.conf``). The value for :term:`CONF_VERSION` increments each time
  1098. ``build/conf/`` compatibility changes.
  1099. :term:`CONFFILES`
  1100. Identifies editable or configurable files that are part of a package.
  1101. If the Package Management System (PMS) is being used to update
  1102. packages on the target system, it is possible that configuration
  1103. files you have changed after the original installation and that you
  1104. now want to remain unchanged are overwritten. In other words,
  1105. editable files might exist in the package that you do not want reset
  1106. as part of the package update process. You can use the :term:`CONFFILES`
  1107. variable to list the files in the package that you wish to prevent
  1108. the PMS from overwriting during this update process.
  1109. To use the :term:`CONFFILES` variable, provide a package name override
  1110. that identifies the resulting package. Then, provide a
  1111. space-separated list of files. Here is an example::
  1112. CONFFILES:${PN} += "${sysconfdir}/file1 \
  1113. ${sysconfdir}/file2 ${sysconfdir}/file3"
  1114. There is a relationship between the :term:`CONFFILES` and :term:`FILES`
  1115. variables. The files listed within :term:`CONFFILES` must be a subset of
  1116. the files listed within :term:`FILES`. Because the configuration files
  1117. you provide with :term:`CONFFILES` are simply being identified so that
  1118. the PMS will not overwrite them, it makes sense that the files must
  1119. already be included as part of the package through the :term:`FILES`
  1120. variable.
  1121. .. note::
  1122. When specifying paths as part of the :term:`CONFFILES` variable, it is
  1123. good practice to use appropriate path variables.
  1124. For example, ``${sysconfdir}`` rather than ``/etc`` or ``${bindir}``
  1125. rather than ``/usr/bin``. You can find a list of these variables at
  1126. the top of the ``meta/conf/bitbake.conf`` file in the
  1127. :term:`Source Directory`.
  1128. :term:`CONFIG_INITRAMFS_SOURCE`
  1129. Identifies the initial RAM filesystem (:term:`Initramfs`) source files. The
  1130. OpenEmbedded build system receives and uses this kernel Kconfig
  1131. variable as an environment variable. By default, the variable is set
  1132. to null ("").
  1133. The :term:`CONFIG_INITRAMFS_SOURCE` can be either a single cpio archive
  1134. with a ``.cpio`` suffix or a space-separated list of directories and
  1135. files for building the :term:`Initramfs` image. A cpio archive should contain
  1136. a filesystem archive to be used as an :term:`Initramfs` image. Directories
  1137. should contain a filesystem layout to be included in the :term:`Initramfs`
  1138. image. Files should contain entries according to the format described
  1139. by the ``usr/gen_init_cpio`` program in the kernel tree.
  1140. If you specify multiple directories and files, the :term:`Initramfs` image
  1141. will be the aggregate of all of them.
  1142. For information on creating an :term:`Initramfs`, see the
  1143. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  1144. in the Yocto Project Development Tasks Manual.
  1145. :term:`CONFIG_SITE`
  1146. A list of files that contains ``autoconf`` test results relevant to
  1147. the current build. This variable is used by the Autotools utilities
  1148. when running ``configure``.
  1149. :term:`CONFIGURE_FLAGS`
  1150. The minimal arguments for GNU configure.
  1151. :term:`CONFLICT_DISTRO_FEATURES`
  1152. When inheriting the :ref:`ref-classes-features_check`
  1153. class, this variable identifies distribution features that would be
  1154. in conflict should the recipe be built. In other words, if the
  1155. :term:`CONFLICT_DISTRO_FEATURES` variable lists a feature that also
  1156. appears in :term:`DISTRO_FEATURES` within the current configuration, then
  1157. the recipe will be skipped, and if the build system attempts to build
  1158. the recipe then an error will be triggered.
  1159. :term:`CONVERSION_CMD`
  1160. This variable is used for storing image conversion commands.
  1161. Image conversion can convert an image into different objects like:
  1162. - Compressed version of the image
  1163. - Checksums for the image
  1164. An example of :term:`CONVERSION_CMD` from :ref:`ref-classes-image_types`
  1165. class is::
  1166. CONVERSION_CMD:lzo = "lzop -9 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
  1167. :term:`COPY_LIC_DIRS`
  1168. If set to "1" along with the
  1169. :term:`COPY_LIC_MANIFEST` variable, the
  1170. OpenEmbedded build system copies into the image the license files,
  1171. which are located in ``/usr/share/common-licenses``, for each
  1172. package. The license files are placed in directories within the image
  1173. itself during build time.
  1174. .. note::
  1175. The :term:`COPY_LIC_DIRS` does not offer a path for adding licenses for
  1176. newly installed packages to an image, which might be most suitable for
  1177. read-only filesystems that cannot be upgraded. See the
  1178. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1179. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1180. section in the Yocto Project Development Tasks Manual for
  1181. information on providing license text.
  1182. :term:`COPY_LIC_MANIFEST`
  1183. If set to "1", the OpenEmbedded build system copies the license
  1184. manifest for the image to
  1185. ``/usr/share/common-licenses/license.manifest`` within the image
  1186. itself during build time.
  1187. .. note::
  1188. The :term:`COPY_LIC_MANIFEST` does not offer a path for adding licenses for
  1189. newly installed packages to an image, which might be most suitable for
  1190. read-only filesystems that cannot be upgraded. See the
  1191. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1192. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1193. section in the Yocto Project Development Tasks Manual for
  1194. information on providing license text.
  1195. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1196. A space-separated list of licenses to exclude from the source archived by
  1197. the :ref:`ref-classes-archiver` class. In other words, if a license in a
  1198. recipe's :term:`LICENSE` value is in the value of
  1199. :term:`COPYLEFT_LICENSE_EXCLUDE`, then its source is not archived by the
  1200. class.
  1201. .. note::
  1202. The :term:`COPYLEFT_LICENSE_EXCLUDE` variable takes precedence over the
  1203. :term:`COPYLEFT_LICENSE_INCLUDE` variable.
  1204. The default value, which is "CLOSED Proprietary", for
  1205. :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the
  1206. :ref:`ref-classes-copyleft_filter` class, which
  1207. is inherited by the :ref:`ref-classes-archiver` class.
  1208. :term:`COPYLEFT_LICENSE_INCLUDE`
  1209. A space-separated list of licenses to include in the source archived
  1210. by the :ref:`ref-classes-archiver` class. In other
  1211. words, if a license in a recipe's :term:`LICENSE`
  1212. value is in the value of :term:`COPYLEFT_LICENSE_INCLUDE`, then its
  1213. source is archived by the class.
  1214. The default value is set by the :ref:`ref-classes-copyleft_filter` class,
  1215. which is inherited by the :ref:`ref-classes-archiver` class. The default
  1216. value includes "GPL*", "LGPL*", and "AGPL*".
  1217. :term:`COPYLEFT_PN_EXCLUDE`
  1218. A list of recipes to exclude in the source archived by the
  1219. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_EXCLUDE`
  1220. variable overrides the license inclusion and exclusion caused through the
  1221. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1222. variables, respectively.
  1223. The default value, which is "" indicating to not explicitly exclude
  1224. any recipes by name, for :term:`COPYLEFT_PN_EXCLUDE` is set by the
  1225. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1226. :ref:`ref-classes-archiver` class.
  1227. :term:`COPYLEFT_PN_INCLUDE`
  1228. A list of recipes to include in the source archived by the
  1229. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_INCLUDE`
  1230. variable overrides the license inclusion and exclusion caused through the
  1231. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1232. variables, respectively.
  1233. The default value, which is "" indicating to not explicitly include
  1234. any recipes by name, for :term:`COPYLEFT_PN_INCLUDE` is set by the
  1235. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1236. :ref:`ref-classes-archiver` class.
  1237. :term:`COPYLEFT_RECIPE_TYPES`
  1238. A space-separated list of recipe types to include in the source
  1239. archived by the :ref:`archiver <ref-classes-archiver>` class.
  1240. Recipe types are ``target``, :ref:`ref-classes-native`,
  1241. :ref:`ref-classes-nativesdk`, :ref:`ref-classes-cross`,
  1242. :ref:`ref-classes-crosssdk`, and :ref:`ref-classes-cross-canadian`.
  1243. The default value, which is "target*", for :term:`COPYLEFT_RECIPE_TYPES`
  1244. is set by the :ref:`ref-classes-copyleft_filter` class, which is
  1245. inherited by the :ref:`ref-classes-archiver` class.
  1246. :term:`CORE_IMAGE_EXTRA_INSTALL`
  1247. Specifies the list of packages to be added to the image. You should
  1248. only set this variable in the ``local.conf`` configuration file found
  1249. in the :term:`Build Directory`.
  1250. This variable replaces ``POKY_EXTRA_INSTALL``, which is no longer
  1251. supported.
  1252. :term:`COREBASE`
  1253. Specifies the parent directory of the OpenEmbedded-Core Metadata
  1254. layer (i.e. ``meta``).
  1255. It is an important distinction that :term:`COREBASE` points to the parent
  1256. of this layer and not the layer itself. Consider an example where you
  1257. have cloned the Poky Git repository and retained the ``poky`` name
  1258. for your local copy of the repository. In this case, :term:`COREBASE`
  1259. points to the ``poky`` folder because it is the parent directory of
  1260. the ``poky/meta`` layer.
  1261. :term:`COREBASE_FILES`
  1262. Lists files from the :term:`COREBASE` directory that
  1263. should be copied other than the layers listed in the
  1264. ``bblayers.conf`` file. The :term:`COREBASE_FILES` variable allows
  1265. to copy metadata from the OpenEmbedded build system
  1266. into the extensible SDK.
  1267. Explicitly listing files in :term:`COREBASE` is needed because it
  1268. typically contains build directories and other files that should not
  1269. normally be copied into the extensible SDK. Consequently, the value
  1270. of :term:`COREBASE_FILES` is used in order to only copy the files that
  1271. are actually needed.
  1272. :term:`CPP`
  1273. The minimal command and arguments used to run the C preprocessor.
  1274. :term:`CPPFLAGS`
  1275. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1276. C and the C++ compilers). This variable is exported to an environment
  1277. variable and thus made visible to the software being built during the
  1278. compilation step.
  1279. Default initialization for :term:`CPPFLAGS` varies depending on what is
  1280. being built:
  1281. - :term:`TARGET_CPPFLAGS` when building for
  1282. the target
  1283. - :term:`BUILD_CPPFLAGS` when building for the
  1284. build host (i.e. ``-native``)
  1285. - :term:`BUILDSDK_CPPFLAGS` when building
  1286. for an SDK (i.e. ``nativesdk-``)
  1287. :term:`CROSS_COMPILE`
  1288. The toolchain binary prefix for the target tools. The
  1289. :term:`CROSS_COMPILE` variable is the same as the
  1290. :term:`TARGET_PREFIX` variable.
  1291. .. note::
  1292. The OpenEmbedded build system sets the :term:`CROSS_COMPILE`
  1293. variable only in certain contexts (e.g. when building for kernel
  1294. and kernel module recipes).
  1295. :term:`CVE_CHECK_CREATE_MANIFEST`
  1296. Specifies whether to create a CVE manifest to place in the deploy
  1297. directory. The default is "1".
  1298. :term:`CVE_CHECK_IGNORE`
  1299. This variable is deprecated and should be replaced by :term:`CVE_STATUS`.
  1300. :term:`CVE_CHECK_MANIFEST_JSON`
  1301. Specifies the path to the CVE manifest in JSON format. See
  1302. :term:`CVE_CHECK_CREATE_MANIFEST`.
  1303. :term:`CVE_CHECK_MANIFEST_JSON_SUFFIX`
  1304. Allows to modify the JSON manifest suffix. See
  1305. :term:`CVE_CHECK_MANIFEST_JSON`.
  1306. :term:`CVE_CHECK_REPORT_PATCHED`
  1307. Specifies whether or not the :ref:`ref-classes-cve-check`
  1308. class should report patched or ignored CVEs. The default is "1", but you
  1309. may wish to set it to "0" if you do not need patched or ignored CVEs in
  1310. the logs.
  1311. :term:`CVE_CHECK_SHOW_WARNINGS`
  1312. Specifies whether or not the :ref:`ref-classes-cve-check`
  1313. class should generate warning messages on the console when unpatched
  1314. CVEs are found. The default is "1", but you may wish to set it to "0" if
  1315. you are already examining/processing the logs after the build has
  1316. completed and thus do not need the warning messages.
  1317. :term:`CVE_CHECK_SKIP_RECIPE`
  1318. The list of package names (:term:`PN`) for which
  1319. CVEs (Common Vulnerabilities and Exposures) are ignored.
  1320. :term:`CVE_DB_INCR_UPDATE_AGE_THRES`
  1321. Specifies the maximum age of the CVE database in seconds for an
  1322. incremental update (instead of a full-download). Use "0" to force a
  1323. full-download.
  1324. :term:`CVE_DB_UPDATE_INTERVAL`
  1325. Specifies the CVE database update interval in seconds, as used by
  1326. ``cve-update-db-native``. The default value is "86400" i.e. once a day
  1327. (24*60*60). If the value is set to "0" then the update will be forced
  1328. every time. Alternatively, a negative value e.g. "-1" will disable
  1329. updates entirely.
  1330. :term:`CVE_PRODUCT`
  1331. In a recipe, defines the name used to match the recipe name
  1332. against the name in the upstream `NIST CVE database <https://nvd.nist.gov/>`__.
  1333. The default is ${:term:`BPN`} (except for recipes that inherit the
  1334. :ref:`ref-classes-pypi` class where it is set based upon
  1335. :term:`PYPI_PACKAGE`). If it does not match the name in the NIST CVE
  1336. database or matches with multiple entries in the database, the default
  1337. value needs to be changed.
  1338. Here is an example from the :oe_layerindex:`Berkeley DB recipe </layerindex/recipe/544>`::
  1339. CVE_PRODUCT = "oracle_berkeley_db berkeley_db"
  1340. Sometimes the product name is not specific enough, for example
  1341. "tar" has been matching CVEs for the GNU ``tar`` package and also
  1342. the ``node-tar`` node.js extension. To avoid this problem, use the
  1343. vendor name as a prefix. The syntax for this is::
  1344. CVE_PRODUCT = "vendor:package"
  1345. :term:`CVE_STATUS`
  1346. The CVE ID which is patched or should be ignored. Here is
  1347. an example from the :oe_layerindex:`Python3 recipe</layerindex/recipe/23823>`::
  1348. CVE_STATUS[CVE-2020-15523] = "not-applicable-platform: Issue only applies on Windows"
  1349. It has the format "reason: description" and the description is optional.
  1350. The Reason is mapped to the final CVE state by mapping via
  1351. :term:`CVE_CHECK_STATUSMAP`. See :ref:`dev-manual/vulnerabilities:fixing vulnerabilities in recipes`
  1352. for details.
  1353. :term:`CVE_STATUS_GROUPS`
  1354. If there are many CVEs with the same status and reason, they can by simplified by using this
  1355. variable instead of many similar lines with :term:`CVE_STATUS`::
  1356. CVE_STATUS_GROUPS = "CVE_STATUS_WIN CVE_STATUS_PATCHED"
  1357. CVE_STATUS_WIN = "CVE-1234-0001 CVE-1234-0002"
  1358. CVE_STATUS_WIN[status] = "not-applicable-platform: Issue only applies on Windows"
  1359. CVE_STATUS_PATCHED = "CVE-1234-0003 CVE-1234-0004"
  1360. CVE_STATUS_PATCHED[status] = "fixed-version: Fixed externally"
  1361. :term:`CVE_CHECK_STATUSMAP`
  1362. Mapping variable for all possible reasons of :term:`CVE_STATUS`:
  1363. ``Patched``, ``Unpatched`` and ``Ignored``.
  1364. See :ref:`ref-classes-cve-check` or ``meta/conf/cve-check-map.conf`` for more details::
  1365. CVE_CHECK_STATUSMAP[cpe-incorrect] = "Ignored"
  1366. :term:`CVE_VERSION`
  1367. In a recipe, defines the version used to match the recipe version
  1368. against the version in the `NIST CVE database <https://nvd.nist.gov/>`__
  1369. when usign :ref:`ref-classes-cve-check`.
  1370. The default is ${:term:`PV`} but if recipes use custom version numbers
  1371. which do not map to upstream software component release versions and the versions
  1372. used in the CVE database, then this variable can be used to set the
  1373. version number for :ref:`ref-classes-cve-check`. Example::
  1374. CVE_VERSION = "2.39"
  1375. :term:`CVSDIR`
  1376. The directory in which files checked out under the CVS system are
  1377. stored.
  1378. :term:`CXX`
  1379. The minimal command and arguments used to run the C++ compiler.
  1380. :term:`CXXFLAGS`
  1381. Specifies the flags to pass to the C++ compiler. This variable is
  1382. exported to an environment variable and thus made visible to the
  1383. software being built during the compilation step.
  1384. Default initialization for :term:`CXXFLAGS` varies depending on what is
  1385. being built:
  1386. - :term:`TARGET_CXXFLAGS` when building for
  1387. the target
  1388. - :term:`BUILD_CXXFLAGS` when building for the
  1389. build host (i.e. ``-native``)
  1390. - :term:`BUILDSDK_CXXFLAGS` when building
  1391. for an SDK (i.e. ``nativesdk-``)
  1392. :term:`D`
  1393. The destination directory. The location in the :term:`Build Directory`
  1394. where components are installed by the
  1395. :ref:`ref-tasks-install` task. This location defaults
  1396. to::
  1397. ${WORKDIR}/image
  1398. .. note::
  1399. Tasks that read from or write to this directory should run under
  1400. :ref:`fakeroot <overview-manual/concepts:fakeroot and pseudo>`.
  1401. :term:`DATE`
  1402. The date the build was started. Dates appear using the year, month,
  1403. and day (YMD) format (e.g. "20150209" for February 9th, 2015).
  1404. :term:`DATETIME`
  1405. The date and time on which the current build started. The format is
  1406. suitable for timestamps.
  1407. :term:`DEBIAN_NOAUTONAME`
  1408. When the :ref:`ref-classes-debian` class is inherited,
  1409. which is the default behavior, :term:`DEBIAN_NOAUTONAME` specifies a
  1410. particular package should not be renamed according to Debian library
  1411. package naming. You must use the package name as an override when you
  1412. set this variable. Here is an example from the ``fontconfig`` recipe::
  1413. DEBIAN_NOAUTONAME:fontconfig-utils = "1"
  1414. :term:`DEBIANNAME`
  1415. When the :ref:`ref-classes-debian` class is inherited,
  1416. which is the default behavior, :term:`DEBIANNAME` allows you to override
  1417. the library name for an individual package. Overriding the library
  1418. name in these cases is rare. You must use the package name as an
  1419. override when you set this variable. Here is an example from the
  1420. ``dbus`` recipe::
  1421. DEBIANNAME:${PN} = "dbus-1"
  1422. :term:`DEBUG_BUILD`
  1423. Specifies to build packages with debugging information. This
  1424. influences the value of the :term:`SELECTED_OPTIMIZATION` variable.
  1425. :term:`DEBUG_OPTIMIZATION`
  1426. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  1427. compiling a system for debugging. This variable defaults to "-O
  1428. -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  1429. :term:`DEBUG_PREFIX_MAP`
  1430. Allows to set C compiler options, such as ``-fdebug-prefix-map``,
  1431. ``-fmacro-prefix-map``, and ``-ffile-prefix-map``, which allow to
  1432. replace build-time paths by install-time ones in the debugging sections
  1433. of binaries. This makes compiler output files location independent,
  1434. at the cost of having to pass an extra command to tell the debugger
  1435. where source files are.
  1436. This is used by the Yocto Project to guarantee
  1437. :doc:`/test-manual/reproducible-builds` even when the source code of
  1438. a package uses the ``__FILE__`` or ``assert()`` macros. See the
  1439. `reproducible-builds.org <https://reproducible-builds.org/docs/build-path/>`__
  1440. website for details.
  1441. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1442. not intended to be user-configurable.
  1443. :term:`DEFAULT_PREFERENCE`
  1444. Specifies a weak bias for recipe selection priority.
  1445. The most common usage of this is variable is to set it to "-1" within
  1446. a recipe for a development version of a piece of software. Using the
  1447. variable in this way causes the stable version of the recipe to build
  1448. by default in the absence of :term:`PREFERRED_VERSION` being used to
  1449. build the development version.
  1450. .. note::
  1451. The bias provided by :term:`DEFAULT_PREFERENCE` is weak and is overridden
  1452. by :term:`BBFILE_PRIORITY` if that variable is different between two
  1453. layers that contain different versions of the same recipe.
  1454. :term:`DEFAULT_TIMEZONE`
  1455. Specifies the time zone set in the image.
  1456. This variable causes the ``tzdata`` package to configure
  1457. ``${sysconfdir}/localtime`` accordingly. Valid values are all files
  1458. found in ``/usr/share/zoneinfo`` like ``CET`` or ``Asia/Baku``.
  1459. :term:`DEFAULTTUNE`
  1460. The default CPU and Application Binary Interface (ABI) tunings (i.e.
  1461. the "tune") used by the OpenEmbedded build system. The
  1462. :term:`DEFAULTTUNE` helps define
  1463. :term:`TUNE_FEATURES`.
  1464. The default tune is either implicitly or explicitly set by the
  1465. machine (:term:`MACHINE`). However, you can override
  1466. the setting using available tunes as defined with
  1467. :term:`AVAILTUNES`.
  1468. :term:`DEPENDS`
  1469. Lists a recipe's build-time dependencies. These are dependencies on
  1470. other recipes whose contents (e.g. headers and shared libraries) are
  1471. needed by the recipe at build time.
  1472. As an example, consider a recipe ``foo`` that contains the following
  1473. assignment::
  1474. DEPENDS = "bar"
  1475. The practical effect of the previous assignment is that all files
  1476. installed by bar will be available in the appropriate staging sysroot,
  1477. given by the :term:`STAGING_DIR* <STAGING_DIR>` variables, by the time
  1478. the :ref:`ref-tasks-configure` task for ``foo`` runs. This mechanism is
  1479. implemented by having :ref:`ref-tasks-configure` depend on the
  1480. :ref:`ref-tasks-populate_sysroot` task of each recipe listed in
  1481. :term:`DEPENDS`, through a
  1482. ``[``\ :ref:`deptask <bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]``
  1483. declaration in the :ref:`ref-classes-base` class.
  1484. .. note::
  1485. It seldom is necessary to reference, for example, :term:`STAGING_DIR_HOST`
  1486. explicitly. The standard classes and build-related variables are
  1487. configured to automatically use the appropriate staging sysroots.
  1488. As another example, :term:`DEPENDS` can also be used to add utilities
  1489. that run on the build machine during the build. For example, a recipe
  1490. that makes use of a code generator built by the recipe ``codegen``
  1491. might have the following::
  1492. DEPENDS = "codegen-native"
  1493. For more
  1494. information, see the :ref:`ref-classes-native` class and
  1495. the :term:`EXTRANATIVEPATH` variable.
  1496. .. note::
  1497. - :term:`DEPENDS` is a list of recipe names. Or, to be more precise,
  1498. it is a list of :term:`PROVIDES` names, which
  1499. usually match recipe names. Putting a package name such as
  1500. "foo-dev" in :term:`DEPENDS` does not make sense. Use "foo"
  1501. instead, as this will put files from all the packages that make
  1502. up ``foo``, which includes those from ``foo-dev``, into the
  1503. sysroot.
  1504. - One recipe having another recipe in :term:`DEPENDS` does not by
  1505. itself add any runtime dependencies between the packages
  1506. produced by the two recipes. However, as explained in the
  1507. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  1508. section in the Yocto Project Overview and Concepts Manual,
  1509. runtime dependencies will often be added automatically, meaning
  1510. :term:`DEPENDS` alone is sufficient for most recipes.
  1511. - Counterintuitively, :term:`DEPENDS` is often necessary even for
  1512. recipes that install precompiled components. For example, if
  1513. ``libfoo`` is a precompiled library that links against
  1514. ``libbar``, then linking against ``libfoo`` requires both
  1515. ``libfoo`` and ``libbar`` to be available in the sysroot.
  1516. Without a :term:`DEPENDS` from the recipe that installs ``libfoo``
  1517. to the recipe that installs ``libbar``, other recipes might
  1518. fail to link against ``libfoo``.
  1519. For information on runtime dependencies, see the :term:`RDEPENDS`
  1520. variable. You can also see the
  1521. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  1522. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`"
  1523. sections in the BitBake User Manual for additional information on tasks
  1524. and dependencies.
  1525. :term:`DEPLOY_DIR`
  1526. Points to the general area that the OpenEmbedded build system uses to
  1527. place images, packages, SDKs, and other output files that are ready
  1528. to be used outside of the build system. By default, this directory
  1529. resides within the :term:`Build Directory` as ``${TMPDIR}/deploy``.
  1530. For more information on the structure of the Build Directory, see
  1531. ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section.
  1532. For more detail on the contents of the ``deploy`` directory, see the
  1533. ":ref:`overview-manual/concepts:images`",
  1534. ":ref:`overview-manual/concepts:package feeds`", and
  1535. ":ref:`overview-manual/concepts:application development sdk`" sections all in the
  1536. Yocto Project Overview and Concepts Manual.
  1537. :term:`DEPLOY_DIR_DEB`
  1538. Points to the area that the OpenEmbedded build system uses to place
  1539. Debian packages that are ready to be used outside of the build
  1540. system. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1541. ":ref:`ref-classes-package_deb`".
  1542. The BitBake configuration file initially defines the
  1543. :term:`DEPLOY_DIR_DEB` variable as a sub-folder of
  1544. :term:`DEPLOY_DIR`::
  1545. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  1546. The :ref:`ref-classes-package_deb` class uses the
  1547. :term:`DEPLOY_DIR_DEB` variable to make sure the
  1548. :ref:`ref-tasks-package_write_deb` task
  1549. writes Debian packages into the appropriate folder. For more
  1550. information on how packaging works, see the
  1551. ":ref:`overview-manual/concepts:package feeds`" section
  1552. in the Yocto Project Overview and Concepts Manual.
  1553. :term:`DEPLOY_DIR_IMAGE`
  1554. Points to the area that the OpenEmbedded build system uses to place
  1555. images and other associated output files that are ready to be
  1556. deployed onto the target machine. The directory is machine-specific
  1557. as it contains the ``${MACHINE}`` name. By default, this directory
  1558. resides within the :term:`Build Directory` as
  1559. ``${DEPLOY_DIR}/images/${MACHINE}/``.
  1560. It must not be used directly in recipes when deploying files. Instead,
  1561. it's only useful when a recipe needs to "read" a file already deployed
  1562. by a dependency. So, it should be filled with the contents of
  1563. :term:`DEPLOYDIR` by the :ref:`ref-classes-deploy` class or with the
  1564. contents of :term:`IMGDEPLOYDIR` by the :ref:`ref-classes-image` class.
  1565. For more information on the structure of the :term:`Build Directory`, see
  1566. ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section.
  1567. For more detail on the contents of the ``deploy`` directory, see the
  1568. ":ref:`overview-manual/concepts:images`" and
  1569. ":ref:`overview-manual/concepts:application development sdk`" sections both in
  1570. the Yocto Project Overview and Concepts Manual.
  1571. :term:`DEPLOY_DIR_IPK`
  1572. Points to the area that the OpenEmbedded build system uses to place
  1573. IPK packages that are ready to be used outside of the build system.
  1574. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1575. ":ref:`ref-classes-package_ipk`".
  1576. The BitBake configuration file initially defines this variable as a
  1577. sub-folder of :term:`DEPLOY_DIR`::
  1578. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  1579. The :ref:`ref-classes-package_ipk` class uses the :term:`DEPLOY_DIR_IPK`
  1580. variable to make sure the :ref:`ref-tasks-package_write_ipk` task
  1581. writes IPK packages into the appropriate folder. For more information
  1582. on how packaging works, see the
  1583. ":ref:`overview-manual/concepts:package feeds`" section
  1584. in the Yocto Project Overview and Concepts Manual.
  1585. :term:`DEPLOY_DIR_RPM`
  1586. Points to the area that the OpenEmbedded build system uses to place
  1587. RPM packages that are ready to be used outside of the build system.
  1588. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1589. ":ref:`ref-classes-package_rpm`".
  1590. The BitBake configuration file initially defines this variable as a
  1591. sub-folder of :term:`DEPLOY_DIR`::
  1592. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  1593. The :ref:`ref-classes-package_rpm` class uses the
  1594. :term:`DEPLOY_DIR_RPM` variable to make sure the
  1595. :ref:`ref-tasks-package_write_rpm` task
  1596. writes RPM packages into the appropriate folder. For more information
  1597. on how packaging works, see the
  1598. ":ref:`overview-manual/concepts:package feeds`" section
  1599. in the Yocto Project Overview and Concepts Manual.
  1600. :term:`DEPLOYDIR`
  1601. When inheriting the :ref:`ref-classes-deploy` class, the
  1602. :term:`DEPLOYDIR` points to a temporary work area for deployed files that
  1603. is set in the :ref:`ref-classes-deploy` class as follows::
  1604. DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
  1605. Recipes inheriting the :ref:`ref-classes-deploy` class should copy files to be
  1606. deployed into :term:`DEPLOYDIR`, and the class will take care of copying
  1607. them into :term:`DEPLOY_DIR_IMAGE`
  1608. afterwards.
  1609. :term:`DESCRIPTION`
  1610. The package description used by package managers. If not set,
  1611. :term:`DESCRIPTION` takes the value of the :term:`SUMMARY`
  1612. variable.
  1613. :term:`DEV_PKG_DEPENDENCY`
  1614. Provides an easy way for recipes to disable or adjust the runtime recommendation
  1615. (:term:`RRECOMMENDS`) of the ``${PN}-dev`` package on the main
  1616. (``${PN}``) package.
  1617. :term:`DISABLE_STATIC`
  1618. Used in order to disable static linking by default (in order to save
  1619. space, since static libraries are often unused in embedded systems.)
  1620. The default value is " --disable-static", however it can be set to ""
  1621. in order to enable static linking if desired. Certain recipes do this
  1622. individually, and also there is a
  1623. ``meta/conf/distro/include/no-static-libs.inc`` include file that
  1624. disables static linking for a number of recipes. Some software
  1625. packages or build tools (such as CMake) have explicit support for
  1626. enabling / disabling static linking, and in those cases
  1627. :term:`DISABLE_STATIC` is not used.
  1628. :term:`DISTRO`
  1629. The short name of the distribution. For information on the long name
  1630. of the distribution, see the :term:`DISTRO_NAME`
  1631. variable.
  1632. The :term:`DISTRO` variable corresponds to a distribution configuration
  1633. file whose root name is the same as the variable's argument and whose
  1634. filename extension is ``.conf``. For example, the distribution
  1635. configuration file for the Poky distribution is named ``poky.conf``
  1636. and resides in the ``meta-poky/conf/distro`` directory of the
  1637. :term:`Source Directory`.
  1638. Within that ``poky.conf`` file, the :term:`DISTRO` variable is set as
  1639. follows::
  1640. DISTRO = "poky"
  1641. Distribution configuration files are located in a ``conf/distro``
  1642. directory within the :term:`Metadata` that contains the
  1643. distribution configuration. The value for :term:`DISTRO` must not contain
  1644. spaces, and is typically all lower-case.
  1645. .. note::
  1646. If the :term:`DISTRO` variable is blank, a set of default configurations
  1647. are used, which are specified within
  1648. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1649. :term:`DISTRO_CODENAME`
  1650. Specifies a codename for the distribution being built.
  1651. :term:`DISTRO_EXTRA_RDEPENDS`
  1652. Specifies a list of distro-specific packages to add to all images.
  1653. This variable takes effect through ``packagegroup-base`` so the
  1654. variable only really applies to the more full-featured images that
  1655. include ``packagegroup-base``. You can use this variable to keep
  1656. distro policy out of generic images. As with all other distro
  1657. variables, you set this variable in the distro ``.conf`` file.
  1658. :term:`DISTRO_EXTRA_RRECOMMENDS`
  1659. Specifies a list of distro-specific packages to add to all images if
  1660. the packages exist. The packages might not exist or be empty (e.g.
  1661. kernel modules). The list of packages are automatically installed but
  1662. you can remove them.
  1663. :term:`DISTRO_FEATURES`
  1664. The software support you want in your distribution for various
  1665. features. You define your distribution features in the distribution
  1666. configuration file.
  1667. In most cases, the presence or absence of a feature in
  1668. :term:`DISTRO_FEATURES` is translated to the appropriate option supplied
  1669. to the configure script during the
  1670. :ref:`ref-tasks-configure` task for recipes that
  1671. optionally support the feature. For example, specifying "x11" in
  1672. :term:`DISTRO_FEATURES`, causes every piece of software built for the
  1673. target that can optionally support X11 to have its X11 support
  1674. enabled.
  1675. .. note::
  1676. Just enabling :term:`DISTRO_FEATURES` alone doesn't
  1677. enable feature support for packages. Mechanisms such as making
  1678. :term:`PACKAGECONFIG` track :term:`DISTRO_FEATURES` are used
  1679. to enable/disable package features.
  1680. Two more examples are Bluetooth and NFS support. For a more complete
  1681. list of features that ships with the Yocto Project and that you can
  1682. provide with this variable, see the ":ref:`ref-features-distro`" section.
  1683. :term:`DISTRO_FEATURES_BACKFILL`
  1684. A space-separated list of features to be added to :term:`DISTRO_FEATURES`
  1685. if not also present in :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`.
  1686. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1687. not intended to be user-configurable. It is best to just reference
  1688. the variable to see which distro features are being
  1689. :ref:`backfilled <ref-features-backfill>` for all distro configurations.
  1690. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`
  1691. A space-separated list of features from :term:`DISTRO_FEATURES_BACKFILL`
  1692. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  1693. to :term:`DISTRO_FEATURES`) during the build.
  1694. This corresponds to an opt-out mechanism. When new default distro
  1695. features are introduced, distribution maintainers can review (`consider`)
  1696. them and decide to exclude them from the
  1697. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  1698. combination of :term:`DISTRO_FEATURES_BACKFILL` and
  1699. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  1700. add new default features without breaking existing distributions.
  1701. :term:`DISTRO_FEATURES_DEFAULT`
  1702. A convenience variable that gives you the default list of distro
  1703. features with the exception of any features specific to the C library
  1704. (``libc``).
  1705. When creating a custom distribution, you might find it useful to be
  1706. able to reuse the default
  1707. :term:`DISTRO_FEATURES` options without the
  1708. need to write out the full set. Here is an example that uses
  1709. :term:`DISTRO_FEATURES_DEFAULT` from a custom distro configuration file::
  1710. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} myfeature"
  1711. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1712. Specifies a list of features that if present in the target
  1713. :term:`DISTRO_FEATURES` value should be
  1714. included in :term:`DISTRO_FEATURES` when building native recipes. This
  1715. variable is used in addition to the features filtered using the
  1716. :term:`DISTRO_FEATURES_NATIVE`
  1717. variable.
  1718. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1719. Specifies a list of features that if present in the target
  1720. :term:`DISTRO_FEATURES` value should be included in
  1721. :term:`DISTRO_FEATURES` when building :ref:`ref-classes-nativesdk`
  1722. recipes. This variable is used in addition to the features filtered using
  1723. the :term:`DISTRO_FEATURES_NATIVESDK` variable.
  1724. :term:`DISTRO_FEATURES_NATIVE`
  1725. Specifies a list of features that should be included in
  1726. :term:`DISTRO_FEATURES` when building native
  1727. recipes. This variable is used in addition to the features filtered
  1728. using the
  1729. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1730. variable.
  1731. :term:`DISTRO_FEATURES_NATIVESDK`
  1732. Specifies a list of features that should be included in
  1733. :term:`DISTRO_FEATURES` when building
  1734. :ref:`ref-classes-nativesdk` recipes. This variable is used
  1735. in addition to the features filtered using the
  1736. :term:`DISTRO_FEATURES_FILTER_NATIVESDK` variable.
  1737. :term:`DISTRO_NAME`
  1738. The long name of the distribution. For information on the short name
  1739. of the distribution, see the :term:`DISTRO` variable.
  1740. The :term:`DISTRO_NAME` variable corresponds to a distribution
  1741. configuration file whose root name is the same as the variable's
  1742. argument and whose filename extension is ``.conf``. For example, the
  1743. distribution configuration file for the Poky distribution is named
  1744. ``poky.conf`` and resides in the ``meta-poky/conf/distro`` directory
  1745. of the :term:`Source Directory`.
  1746. Within that ``poky.conf`` file, the :term:`DISTRO_NAME` variable is set
  1747. as follows::
  1748. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  1749. Distribution configuration files are located in a ``conf/distro``
  1750. directory within the :term:`Metadata` that contains the
  1751. distribution configuration.
  1752. .. note::
  1753. If the :term:`DISTRO_NAME` variable is blank, a set of default
  1754. configurations are used, which are specified within
  1755. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1756. :term:`DISTRO_VERSION`
  1757. The version of the distribution.
  1758. :term:`DISTROOVERRIDES`
  1759. A colon-separated list of overrides specific to the current
  1760. distribution. By default, this list includes the value of
  1761. :term:`DISTRO`.
  1762. You can extend :term:`DISTROOVERRIDES` to add extra overrides that should
  1763. apply to the distribution.
  1764. The underlying mechanism behind :term:`DISTROOVERRIDES` is simply that it
  1765. is included in the default value of
  1766. :term:`OVERRIDES`.
  1767. Here is an example from :yocto_git:`meta-poky/conf/distro/poky-tiny.conf
  1768. </poky/tree/meta-poky/conf/distro/poky-tiny.conf>`::
  1769. DISTROOVERRIDES = "poky:poky-tiny"
  1770. :term:`DL_DIR`
  1771. The central download directory used by the build process to store
  1772. downloads. By default, :term:`DL_DIR` gets files suitable for mirroring
  1773. for everything except Git repositories. If you want tarballs of Git
  1774. repositories, use the
  1775. :term:`BB_GENERATE_MIRROR_TARBALLS`
  1776. variable.
  1777. You can set this directory by defining the :term:`DL_DIR` variable in the
  1778. ``conf/local.conf`` file. This directory is self-maintaining and you
  1779. should not have to touch it. By default, the directory is
  1780. ``downloads`` in the :term:`Build Directory`::
  1781. #DL_DIR ?= "${TOPDIR}/downloads"
  1782. To specify a different download directory,
  1783. simply remove the comment from the line and provide your directory.
  1784. During a first build, the system downloads many different source code
  1785. tarballs from various upstream projects. Downloading can take a
  1786. while, particularly if your network connection is slow. Tarballs are
  1787. all stored in the directory defined by :term:`DL_DIR` and the build
  1788. system looks there first to find source tarballs.
  1789. .. note::
  1790. When wiping and rebuilding, you can preserve this directory to
  1791. speed up this part of subsequent builds.
  1792. You can safely share this directory between multiple builds on the
  1793. same development machine. For additional information on how the build
  1794. process gets source files when working behind a firewall or proxy
  1795. server, see this specific question in the ":doc:`faq`"
  1796. chapter. You can also refer to the
  1797. ":yocto_wiki:`Working Behind a Network Proxy </Working_Behind_a_Network_Proxy>`"
  1798. Wiki page.
  1799. :term:`DOC_COMPRESS`
  1800. When inheriting the :ref:`ref-classes-compress_doc`
  1801. class, this variable sets the compression policy used when the
  1802. OpenEmbedded build system compresses manual and info pages. By
  1803. default, the compression method used is gz (gzip). Other policies
  1804. available are xz and bz2.
  1805. For information on policies and on how to use this variable, see the
  1806. comments in the ``meta/classes-recipe/compress_doc.bbclass`` file.
  1807. :term:`DT_FILES`
  1808. Space-separated list of device tree source files to compile using
  1809. a recipe that inherits the :ref:`ref-classes-devicetree` class. These
  1810. are relative to the :term:`DT_FILES_PATH`.
  1811. For convenience, both ``.dts`` and ``.dtb`` extensions can be used.
  1812. Use an empty string (default) to build all device tree sources within
  1813. the :term:`DT_FILES_PATH` directory.
  1814. :term:`DT_FILES_PATH`
  1815. When compiling out-of-tree device tree sources using a recipe that
  1816. inherits the :ref:`ref-classes-devicetree` class, this variable specifies
  1817. the path to the directory containing dts files to build.
  1818. Defaults to the :term:`S` directory.
  1819. :term:`DT_PADDING_SIZE`
  1820. When inheriting the :ref:`ref-classes-devicetree` class, this variable
  1821. specifies the size of padding appended to the device tree blob, used as
  1822. extra space typically for additional properties during boot.
  1823. :term:`EFI_ARCH`
  1824. The CPU architecture name within EFI standard. Set in
  1825. :oe_git:`meta/conf/image-uefi.conf
  1826. <openembedded-core/tree/meta/conf/image-uefi.conf>`.
  1827. :term:`EFI_PROVIDER`
  1828. When building bootable images (i.e. where ``hddimg``, ``iso``, or
  1829. ``wic.vmdk`` is in :term:`IMAGE_FSTYPES`), the
  1830. :term:`EFI_PROVIDER` variable specifies the EFI bootloader to use. The
  1831. default is "grub-efi", but "systemd-boot" can be used instead.
  1832. See the :ref:`ref-classes-systemd-boot` and :ref:`ref-classes-image-live`
  1833. classes for more information.
  1834. :term:`EFI_UKI_DIR`
  1835. The primary place for the UKI image inside the EFI System Partition.
  1836. :term:`EFI_UKI_PATH`
  1837. The path for the UKI image inside the root filesystem.
  1838. :term:`ENABLE_BINARY_LOCALE_GENERATION`
  1839. Variable that controls which locales for ``glibc`` are generated
  1840. during the build (useful if the target device has 64Mbytes of RAM or
  1841. less).
  1842. :term:`ERR_REPORT_DIR`
  1843. When used with the :ref:`ref-classes-report-error` class, specifies the
  1844. path used for storing the debug files created by the :ref:`error reporting
  1845. tool <dev-manual/error-reporting-tool:using the error reporting tool>`,
  1846. which allows you to submit build errors you encounter to a central
  1847. database. By default, the value of this variable is
  1848. ``${``\ :term:`LOG_DIR`\ ``}/error-report``.
  1849. You can set :term:`ERR_REPORT_DIR` to the path you want the error
  1850. reporting tool to store the debug files as follows in your
  1851. ``local.conf`` file::
  1852. ERR_REPORT_DIR = "path"
  1853. :term:`ERROR_QA`
  1854. Specifies the quality assurance checks whose failures are reported as
  1855. errors by the OpenEmbedded build system. You set this variable in
  1856. your distribution configuration file. For a list of the checks you
  1857. can control with this variable, see the
  1858. ":ref:`ref-classes-insane`" section.
  1859. :term:`ESDK_CLASS_INHERIT_DISABLE`
  1860. A list of classes to remove from the :term:`INHERIT`
  1861. value globally within the extensible SDK configuration. The
  1862. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class sets the
  1863. default value::
  1864. ESDK_CLASS_INHERIT_DISABLE ?= "buildhistory icecc"
  1865. Some classes are not generally applicable within the extensible SDK
  1866. context. You can use this variable to disable those classes.
  1867. For additional information on how to customize the extensible SDK's
  1868. configuration, see the
  1869. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1870. section in the Yocto Project Application Development and the
  1871. Extensible Software Development Kit (eSDK) manual.
  1872. :term:`ESDK_LOCALCONF_ALLOW`
  1873. A list of variables allowed through from the OpenEmbedded build
  1874. system configuration into the extensible SDK configuration. By
  1875. default, the list of variables is empty and is set in the
  1876. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class.
  1877. This list overrides the variables specified using the
  1878. :term:`ESDK_LOCALCONF_REMOVE` variable as well as
  1879. other variables automatically added due to the "/" character
  1880. being found at the start of the
  1881. value, which is usually indicative of being a path and thus might not
  1882. be valid on the system where the SDK is installed.
  1883. For additional information on how to customize the extensible SDK's
  1884. configuration, see the
  1885. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1886. section in the Yocto Project Application Development and the
  1887. Extensible Software Development Kit (eSDK) manual.
  1888. :term:`ESDK_LOCALCONF_REMOVE`
  1889. A list of variables not allowed through from the OpenEmbedded build
  1890. system configuration into the extensible SDK configuration. Usually,
  1891. these are variables that are specific to the machine on which the
  1892. build system is running and thus would be potentially problematic
  1893. within the extensible SDK.
  1894. By default, :term:`ESDK_LOCALCONF_REMOVE` is set in the
  1895. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class and
  1896. excludes the following variables:
  1897. - :term:`CONF_VERSION`
  1898. - :term:`BB_NUMBER_THREADS`
  1899. - :term:`BB_NUMBER_PARSE_THREADS`
  1900. - :term:`PARALLEL_MAKE`
  1901. - :term:`PRSERV_HOST`
  1902. - :term:`SSTATE_MIRRORS` :term:`DL_DIR`
  1903. - :term:`SSTATE_DIR` :term:`TMPDIR`
  1904. - :term:`BB_SERVER_TIMEOUT`
  1905. For additional information on how to customize the extensible SDK's
  1906. configuration, see the
  1907. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1908. section in the Yocto Project Application Development and the
  1909. Extensible Software Development Kit (eSDK) manual.
  1910. :term:`EXCLUDE_FROM_SHLIBS`
  1911. Triggers the OpenEmbedded build system's shared libraries resolver to
  1912. exclude an entire package when scanning for shared libraries.
  1913. .. note::
  1914. The shared libraries resolver's functionality results in part from
  1915. the internal function ``package_do_shlibs``, which is part of the
  1916. :ref:`ref-tasks-package` task. You should be aware that the shared
  1917. libraries resolver might implicitly define some dependencies between
  1918. packages.
  1919. The :term:`EXCLUDE_FROM_SHLIBS` variable is similar to the
  1920. :term:`PRIVATE_LIBS` variable, which excludes a
  1921. package's particular libraries only and not the whole package.
  1922. Use the :term:`EXCLUDE_FROM_SHLIBS` variable by setting it to "1" for a
  1923. particular package::
  1924. EXCLUDE_FROM_SHLIBS = "1"
  1925. :term:`EXCLUDE_FROM_WORLD`
  1926. Directs BitBake to exclude a recipe from world builds (i.e.
  1927. ``bitbake world``). During world builds, BitBake locates, parses and
  1928. builds all recipes found in every layer exposed in the
  1929. ``bblayers.conf`` configuration file.
  1930. To exclude a recipe from a world build using this variable, set the
  1931. variable to "1" in the recipe.
  1932. .. note::
  1933. Recipes added to :term:`EXCLUDE_FROM_WORLD` may still be built during a
  1934. world build in order to satisfy dependencies of other recipes. Adding
  1935. a recipe to :term:`EXCLUDE_FROM_WORLD` only ensures that the recipe is not
  1936. explicitly added to the list of build targets in a world build.
  1937. :term:`EXTENDPE`
  1938. Used with file and pathnames to create a prefix for a recipe's
  1939. version based on the recipe's :term:`PE` value. If :term:`PE`
  1940. is set and greater than zero for a recipe, :term:`EXTENDPE` becomes that
  1941. value (e.g if :term:`PE` is equal to "1" then :term:`EXTENDPE` becomes "1").
  1942. If a recipe's :term:`PE` is not set (the default) or is equal to zero,
  1943. :term:`EXTENDPE` becomes "".
  1944. See the :term:`STAMP` variable for an example.
  1945. :term:`EXTENDPKGV`
  1946. The full package version specification as it appears on the final
  1947. packages produced by a recipe. The variable's value is normally used
  1948. to fix a runtime dependency to the exact same version of another
  1949. package in the same recipe::
  1950. RDEPENDS:${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  1951. The dependency relationships are intended to force the package
  1952. manager to upgrade these types of packages in lock-step.
  1953. :term:`EXTERNAL_KERNEL_TOOLS`
  1954. When set, the :term:`EXTERNAL_KERNEL_TOOLS` variable indicates that these
  1955. tools are not in the source tree.
  1956. When kernel tools are available in the tree, they are preferred over
  1957. any externally installed tools. Setting the :term:`EXTERNAL_KERNEL_TOOLS`
  1958. variable tells the OpenEmbedded build system to prefer the installed
  1959. external tools. See the :ref:`ref-classes-kernel-yocto` class in
  1960. ``meta/classes-recipe`` to see how the variable is used.
  1961. :term:`EXTERNAL_KERNEL_DEVICETREE`
  1962. When inheriting :ref:`ref-classes-kernel-fitimage` and a
  1963. :term:`PREFERRED_PROVIDER` for ``virtual/dtb`` set to ``devicetree``, the
  1964. variable :term:`EXTERNAL_KERNEL_DEVICETREE` can be used to specify a
  1965. directory containing one or more compiled device tree or device tree
  1966. overlays to use.
  1967. :term:`KERNEL_LOCALVERSION`
  1968. This variable allows to append a string to the version
  1969. of the kernel image. This corresponds to the ``CONFIG_LOCALVERSION``
  1970. kernel configuration parameter.
  1971. Using this variable is only useful when you are using a kernel recipe
  1972. inheriting the :ref:`ref-classes-kernel` class, and which doesn't
  1973. already set a local version. Therefore, setting this variable has no
  1974. impact on ``linux-yocto`` kernels.
  1975. :term:`EXTERNAL_TOOLCHAIN`
  1976. When you intend to use an
  1977. :ref:`external toolchain <dev-manual/external-toolchain:optionally using an external toolchain>`,
  1978. this variable allows to specify the directory where this toolchain was
  1979. installed.
  1980. :term:`EXTERNALSRC`
  1981. When inheriting the :ref:`ref-classes-externalsrc`
  1982. class, this variable points to the source tree, which is outside of
  1983. the OpenEmbedded build system. When set, this variable sets the
  1984. :term:`S` variable, which is what the OpenEmbedded build
  1985. system uses to locate unpacked recipe source code.
  1986. See the ":ref:`ref-classes-externalsrc`" section for details. You
  1987. can also find information on how to use this variable in the
  1988. ":ref:`dev-manual/building:building software from an external source`"
  1989. section in the Yocto Project Development Tasks Manual.
  1990. :term:`EXTERNALSRC_BUILD`
  1991. When inheriting the :ref:`ref-classes-externalsrc`
  1992. class, this variable points to the directory in which the recipe's
  1993. source code is built, which is outside of the OpenEmbedded build
  1994. system. When set, this variable sets the :term:`B` variable,
  1995. which is what the OpenEmbedded build system uses to locate the
  1996. :term:`Build Directory`.
  1997. See the ":ref:`ref-classes-externalsrc`" section for details. You
  1998. can also find information on how to use this variable in the
  1999. ":ref:`dev-manual/building:building software from an external source`"
  2000. section in the Yocto Project Development Tasks Manual.
  2001. :term:`EXTRA_AUTORECONF`
  2002. For recipes inheriting the :ref:`ref-classes-autotools`
  2003. class, you can use :term:`EXTRA_AUTORECONF` to specify extra options to
  2004. pass to the ``autoreconf`` command that is executed during the
  2005. :ref:`ref-tasks-configure` task.
  2006. The default value is "--exclude=autopoint".
  2007. :term:`EXTRA_IMAGE_FEATURES`
  2008. A list of additional features to include in an image. When listing
  2009. more than one feature, separate them with a space.
  2010. Typically, you configure this variable in your ``local.conf`` file,
  2011. which is found in the :term:`Build Directory`. Although you can use this
  2012. variable from within a recipe, best practices dictate that you do not.
  2013. .. note::
  2014. To enable primary features from within the image recipe, use the
  2015. :term:`IMAGE_FEATURES` variable.
  2016. Here are some examples of features you can add:
  2017. - "dbg-pkgs" --- adds -dbg packages for all installed packages including
  2018. symbol information for debugging and profiling.
  2019. - "empty-root-password" --- This feature can be used if you want to
  2020. allow root login with an empty password.
  2021. - "allow-empty-password" --- Allows Dropbear and OpenSSH to accept
  2022. logins from accounts having an empty password string.
  2023. - "allow-root-login" --- Allows Dropbear and OpenSSH to accept root logins.
  2024. - "post-install-logging" --- Enables logging postinstall script runs to
  2025. the ``/var/log/postinstall.log`` file on first boot of the image on
  2026. the target system.
  2027. - "dev-pkgs" --- adds -dev packages for all installed packages. This is
  2028. useful if you want to develop against the libraries in the image.
  2029. - "read-only-rootfs" --- creates an image whose root filesystem is
  2030. read-only. See the
  2031. ":ref:`dev-manual/read-only-rootfs:creating a read-only root filesystem`"
  2032. section in the Yocto Project Development Tasks Manual for more
  2033. information
  2034. - "tools-debug" --- adds debugging tools such as gdb and strace.
  2035. - "tools-sdk" --- adds development tools such as gcc, make,
  2036. pkgconfig and so forth.
  2037. - "tools-testapps" --- adds useful testing tools
  2038. such as ts_print, aplay, arecord and so forth.
  2039. For a complete list of image features that ships with the Yocto
  2040. Project, see the ":ref:`ref-features-image`" section.
  2041. For an example that shows how to customize your image by using this
  2042. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2043. section in the Yocto Project Development Tasks Manual.
  2044. :term:`EXTRA_IMAGECMD`
  2045. Specifies additional options for the image creation command that has
  2046. been specified in :term:`IMAGE_CMD`. When setting
  2047. this variable, use an override for the associated image type. Here is
  2048. an example::
  2049. EXTRA_IMAGECMD:ext3 ?= "-i 4096"
  2050. :term:`EXTRA_IMAGEDEPENDS`
  2051. A list of recipes to build that do not provide packages for
  2052. installing into the root filesystem.
  2053. Sometimes a recipe is required to build the final image but is not
  2054. needed in the root filesystem. You can use the :term:`EXTRA_IMAGEDEPENDS`
  2055. variable to list these recipes and thus specify the dependencies. A
  2056. typical example is a required bootloader in a machine configuration.
  2057. .. note::
  2058. To add packages to the root filesystem, see the various
  2059. :term:`RDEPENDS` and :term:`RRECOMMENDS` variables.
  2060. :term:`EXTRA_OECMAKE`
  2061. Additional `CMake <https://cmake.org/overview/>`__ options. See the
  2062. :ref:`ref-classes-cmake` class for additional information.
  2063. :term:`EXTRA_OECONF`
  2064. Additional ``configure`` script options. See
  2065. :term:`PACKAGECONFIG_CONFARGS` for
  2066. additional information on passing configure script options.
  2067. :term:`EXTRA_OEMAKE`
  2068. Additional GNU ``make`` options.
  2069. Because the :term:`EXTRA_OEMAKE` defaults to "", you need to set the
  2070. variable to specify any required GNU options.
  2071. :term:`PARALLEL_MAKE` and
  2072. :term:`PARALLEL_MAKEINST` also make use of
  2073. :term:`EXTRA_OEMAKE` to pass the required flags.
  2074. :term:`EXTRA_OESCONS`
  2075. When inheriting the :ref:`ref-classes-scons` class, this
  2076. variable specifies additional configuration options you want to pass
  2077. to the ``scons`` command line.
  2078. :term:`EXTRA_OEMESON`
  2079. Additional `Meson <https://mesonbuild.com/>`__ options. See the
  2080. :ref:`ref-classes-meson` class for additional information.
  2081. In addition to standard Meson options, such options correspond to
  2082. `Meson build options <https://mesonbuild.com/Build-options.html>`__
  2083. defined in the ``meson_options.txt`` file in the sources to build.
  2084. Here is an example::
  2085. EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled"
  2086. Note that any custom value for the Meson ``--buildtype`` option
  2087. should be set through the :term:`MESON_BUILDTYPE` variable.
  2088. :term:`EXTRA_USERS_PARAMS`
  2089. When inheriting the :ref:`ref-classes-extrausers`
  2090. class, this variable provides image level user and group operations.
  2091. This is a more global method of providing user and group
  2092. configuration as compared to using the
  2093. :ref:`ref-classes-useradd` class, which ties user and
  2094. group configurations to a specific recipe.
  2095. The set list of commands you can configure using the
  2096. :term:`EXTRA_USERS_PARAMS` is shown in the
  2097. :ref:`ref-classes-extrausers` class. These commands map to the normal
  2098. Unix commands of the same names::
  2099. # EXTRA_USERS_PARAMS = "\
  2100. # useradd -p '' tester; \
  2101. # groupadd developers; \
  2102. # userdel nobody; \
  2103. # groupdel -g video; \
  2104. # groupmod -g 1020 developers; \
  2105. # usermod -s /bin/sh tester; \
  2106. # "
  2107. Hardcoded passwords are supported via the ``-p`` parameters for
  2108. ``useradd`` or ``usermod``, but only hashed.
  2109. Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns
  2110. passwords. First on host, create the (escaped) password hash::
  2111. printf "%q" $(mkpasswd -m sha256crypt tester01)
  2112. The resulting hash is set to a variable and used in ``useradd`` command parameters::
  2113. inherit extrausers
  2114. PASSWD = "\$X\$ABC123\$A-Long-Hash"
  2115. EXTRA_USERS_PARAMS = "\
  2116. useradd -p '${PASSWD}' tester-jim; \
  2117. useradd -p '${PASSWD}' tester-sue; \
  2118. "
  2119. Finally, here is an example that sets the root password::
  2120. inherit extrausers
  2121. EXTRA_USERS_PARAMS = "\
  2122. usermod -p '${PASSWD}' root; \
  2123. "
  2124. .. note::
  2125. From a security perspective, hardcoding a default password is not
  2126. generally a good idea or even legal in some jurisdictions. It is
  2127. recommended that you do not do this if you are building a production
  2128. image.
  2129. Additionally there is a special ``passwd-expire`` command that will
  2130. cause the password for a user to be expired and thus force changing it
  2131. on first login, for example::
  2132. EXTRA_USERS_PARAMS += " useradd myuser; passwd-expire myuser;"
  2133. .. note::
  2134. At present, ``passwd-expire`` may only work for remote logins when
  2135. using OpenSSH and not dropbear as an SSH server.
  2136. :term:`EXTRANATIVEPATH`
  2137. A list of subdirectories of
  2138. ``${``\ :term:`STAGING_BINDIR_NATIVE`\ ``}``
  2139. added to the beginning of the environment variable ``PATH``. As an
  2140. example, the following prepends
  2141. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:" to
  2142. ``PATH``::
  2143. EXTRANATIVEPATH = "foo bar"
  2144. :term:`FAKEROOT`
  2145. See :term:`bitbake:FAKEROOT` in the BitBake manual.
  2146. :term:`FAKEROOTBASEENV`
  2147. See :term:`bitbake:FAKEROOTBASEENV` in the BitBake manual.
  2148. :term:`FAKEROOTCMD`
  2149. See :term:`bitbake:FAKEROOTCMD` in the BitBake manual.
  2150. :term:`FAKEROOTDIRS`
  2151. See :term:`bitbake:FAKEROOTDIRS` in the BitBake manual.
  2152. :term:`FAKEROOTENV`
  2153. See :term:`bitbake:FAKEROOTENV` in the BitBake manual.
  2154. :term:`FAKEROOTNOENV`
  2155. See :term:`bitbake:FAKEROOTNOENV` in the BitBake manual.
  2156. :term:`FEATURE_PACKAGES`
  2157. Defines one or more packages to include in an image when a specific
  2158. item is included in :term:`IMAGE_FEATURES`.
  2159. When setting the value, :term:`FEATURE_PACKAGES` should have the name of
  2160. the feature item as an override. Here is an example::
  2161. FEATURE_PACKAGES_widget = "package1 package2"
  2162. In this example, if "widget" were added to :term:`IMAGE_FEATURES`,
  2163. package1 and package2 would be included in the image.
  2164. .. note::
  2165. Packages installed by features defined through :term:`FEATURE_PACKAGES`
  2166. are often package groups. While similarly named, you should not
  2167. confuse the :term:`FEATURE_PACKAGES` variable with package groups, which
  2168. are discussed elsewhere in the documentation.
  2169. :term:`FEED_DEPLOYDIR_BASE_URI`
  2170. Points to the base URL of the server and location within the
  2171. document-root that provides the metadata and packages required by
  2172. OPKG to support runtime package management of IPK packages. You set
  2173. this variable in your ``local.conf`` file.
  2174. Consider the following example::
  2175. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  2176. This example assumes you are serving
  2177. your packages over HTTP and your databases are located in a directory
  2178. named ``BOARD-dir``, which is underneath your HTTP server's
  2179. document-root. In this case, the OpenEmbedded build system generates
  2180. a set of configuration files for you in your target that work with
  2181. the feed.
  2182. :term:`FETCHCMD`
  2183. See :term:`bitbake:FETCHCMD` in the BitBake manual.
  2184. :term:`FILE`
  2185. See :term:`bitbake:FILE` in the BitBake manual.
  2186. :term:`FILES`
  2187. The list of files and directories that are placed in a package. The
  2188. :term:`PACKAGES` variable lists the packages
  2189. generated by a recipe.
  2190. To use the :term:`FILES` variable, provide a package name override that
  2191. identifies the resulting package. Then, provide a space-separated
  2192. list of files or paths that identify the files you want included as
  2193. part of the resulting package. Here is an example::
  2194. FILES:${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  2195. .. note::
  2196. - When specifying files or paths, you can pattern match using
  2197. Python's
  2198. `glob <https://docs.python.org/3/library/glob.html>`__
  2199. syntax. For details on the syntax, see the documentation by
  2200. following the previous link.
  2201. - When specifying paths as part of the :term:`FILES` variable, it is
  2202. good practice to use appropriate path variables. For example,
  2203. use ``${sysconfdir}`` rather than ``/etc``, or ``${bindir}``
  2204. rather than ``/usr/bin``. You can find a list of these
  2205. variables at the top of the ``meta/conf/bitbake.conf`` file in
  2206. the :term:`Source Directory`. You will also
  2207. find the default values of the various ``FILES:*`` variables in
  2208. this file.
  2209. If some of the files you provide with the :term:`FILES` variable are
  2210. editable and you know they should not be overwritten during the
  2211. package update process by the Package Management System (PMS), you
  2212. can identify these files so that the PMS will not overwrite them. See
  2213. the :term:`CONFFILES` variable for information on
  2214. how to identify these files to the PMS.
  2215. :term:`FILES_SOLIBSDEV`
  2216. Defines the file specification to match
  2217. :term:`SOLIBSDEV`. In other words,
  2218. :term:`FILES_SOLIBSDEV` defines the full path name of the development
  2219. symbolic link (symlink) for shared libraries on the target platform.
  2220. The following statement from the ``bitbake.conf`` shows how it is
  2221. set::
  2222. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  2223. :term:`FILESEXTRAPATHS`
  2224. A colon-separated list to extend the search path the OpenEmbedded build
  2225. system uses when looking for files and patches as it processes recipes
  2226. and append files. The default directories BitBake uses when it processes
  2227. recipes are initially defined by the :term:`FILESPATH` variable. You can
  2228. extend :term:`FILESPATH` variable by using :term:`FILESEXTRAPATHS`.
  2229. Best practices dictate that you accomplish this by using
  2230. :term:`FILESEXTRAPATHS` from within a ``.bbappend`` file and that you
  2231. prepend paths as follows::
  2232. FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
  2233. In the above example, the build system first
  2234. looks for files in a directory that has the same name as the
  2235. corresponding append file.
  2236. .. note::
  2237. When extending :term:`FILESEXTRAPATHS`, be sure to use the immediate
  2238. expansion (``:=``) operator. Immediate expansion makes sure that
  2239. BitBake evaluates :term:`THISDIR` at the time the
  2240. directive is encountered rather than at some later time when
  2241. expansion might result in a directory that does not contain the
  2242. files you need.
  2243. Also, include the trailing separating colon character if you are
  2244. prepending. The trailing colon character is necessary because you
  2245. are directing BitBake to extend the path by prepending directories
  2246. to the search path.
  2247. Here is another common use::
  2248. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  2249. In this example, the build system extends the
  2250. :term:`FILESPATH` variable to include a directory named ``files`` that is
  2251. in the same directory as the corresponding append file.
  2252. This next example specifically adds three paths::
  2253. FILESEXTRAPATHS:prepend := "path_1:path_2:path_3:"
  2254. A final example shows how you can extend the search path and include
  2255. a :term:`MACHINE`-specific override, which is useful
  2256. in a BSP layer::
  2257. FILESEXTRAPATHS:prepend:intel-x86-common := "${THISDIR}/${PN}:"
  2258. The previous statement appears in the
  2259. ``linux-yocto-dev.bbappend`` file, which is found in the
  2260. :ref:`overview-manual/development-environment:yocto project source repositories` in
  2261. ``meta-intel/common/recipes-kernel/linux``. Here, the machine
  2262. override is a special :term:`PACKAGE_ARCH`
  2263. definition for multiple ``meta-intel`` machines.
  2264. .. note::
  2265. For a layer that supports a single BSP, the override could just be
  2266. the value of :term:`MACHINE`.
  2267. By prepending paths in ``.bbappend`` files, you allow multiple append
  2268. files that reside in different layers but are used for the same
  2269. recipe to correctly extend the path.
  2270. :term:`FILESOVERRIDES`
  2271. A colon-separated list to specify a subset of :term:`OVERRIDES` used by
  2272. the OpenEmbedded build system for creating :term:`FILESPATH`. The
  2273. :term:`FILESOVERRIDES` variable uses overrides to automatically extend
  2274. the :term:`FILESPATH` variable. For an example of how that works, see the
  2275. :term:`FILESPATH` variable description. Additionally, you find more
  2276. information on how overrides are handled in the
  2277. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  2278. section of the BitBake User Manual.
  2279. By default, the :term:`FILESOVERRIDES` variable is defined as::
  2280. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  2281. .. note::
  2282. Do not hand-edit the :term:`FILESOVERRIDES` variable. The values match up
  2283. with expected overrides and are used in an expected manner by the
  2284. build system.
  2285. :term:`FILESPATH`
  2286. A colon-separated list specifying the default set of directories the
  2287. OpenEmbedded build system uses when searching for patches and files.
  2288. During the build process, BitBake searches each directory in
  2289. :term:`FILESPATH` in the specified order when looking for files and
  2290. patches specified by each ``file://`` URI in a recipe's
  2291. :term:`SRC_URI` statements.
  2292. The default value for the :term:`FILESPATH` variable is defined in the
  2293. :ref:`ref-classes-base` class found in ``meta/classes-global`` in the
  2294. :term:`Source Directory`::
  2295. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  2296. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  2297. The
  2298. :term:`FILESPATH` variable is automatically extended using the overrides
  2299. from the :term:`FILESOVERRIDES` variable.
  2300. .. note::
  2301. - Do not hand-edit the :term:`FILESPATH` variable. If you want the
  2302. build system to look in directories other than the defaults,
  2303. extend the :term:`FILESPATH` variable by using the
  2304. :term:`FILESEXTRAPATHS` variable.
  2305. - Be aware that the default :term:`FILESPATH` directories do not map
  2306. to directories in custom layers where append files
  2307. (``.bbappend``) are used. If you want the build system to find
  2308. patches or files that reside with your append files, you need
  2309. to extend the :term:`FILESPATH` variable by using the
  2310. :term:`FILESEXTRAPATHS` variable.
  2311. You can take advantage of this searching behavior in useful ways. For
  2312. example, consider a case where there is the following directory structure
  2313. for general and machine-specific configurations::
  2314. files/defconfig
  2315. files/MACHINEA/defconfig
  2316. files/MACHINEB/defconfig
  2317. Also in the example, the :term:`SRC_URI` statement contains
  2318. "file://defconfig". Given this scenario, you can set
  2319. :term:`MACHINE` to "MACHINEA" and cause the build
  2320. system to use files from ``files/MACHINEA``. Set :term:`MACHINE` to
  2321. "MACHINEB" and the build system uses files from ``files/MACHINEB``.
  2322. Finally, for any machine other than "MACHINEA" and "MACHINEB", the
  2323. build system uses files from ``files/defconfig``.
  2324. You can find out more about the patching process in the
  2325. ":ref:`overview-manual/concepts:patching`" section
  2326. in the Yocto Project Overview and Concepts Manual and the
  2327. ":ref:`dev-manual/new-recipe:patching code`" section in
  2328. the Yocto Project Development Tasks Manual. See the
  2329. :ref:`ref-tasks-patch` task as well.
  2330. :term:`FILESYSTEM_PERMS_TABLES`
  2331. Allows you to define your own file permissions settings tables as part
  2332. of your configuration for the packaging process. For example, suppose
  2333. you need a consistent set of custom permissions for a set of groups
  2334. and users across an entire work project. It is best to do this in the
  2335. packages themselves but this is not always possible.
  2336. By default, the OpenEmbedded build system uses the ``fs-perms.txt``,
  2337. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` which are
  2338. located in the ``meta/files`` folder in the :term:`Source Directory`. If
  2339. you create your own permission setting table files, you should place
  2340. those in your layer.
  2341. You can override the value of :term:`FILESYSTEM_PERMS_TABLES` variable
  2342. in your distribution configuration file to point to your custom
  2343. permission table files. You can specify one or more file permissions
  2344. setting tables. The paths that you specify to these files must be defined
  2345. within the :term:`BBPATH` variable.
  2346. In order to disable the volatile log, which is enabled by default, one
  2347. can remove the ``files/fs-perms-volatile-log.txt`` value from
  2348. ``FILESYSTEM_PERMS_TABLES``. Similarly, in order to disable the volatile
  2349. tmp, one can remove the ``files/fs-perms-volatile-tmp.txt`` value.
  2350. For guidance on how to define your own file permissions settings
  2351. tables, examine the existing ``fs-perms.txt``,
  2352. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` files.
  2353. :term:`FIRMWARE_COMPRESSION`
  2354. The :term:`FIRMWARE_COMPRESSION` allows compressing the firmware provided
  2355. by the ``linux-firmware`` recipe. The default value of this variable is an
  2356. empty string (no compression), and the possible values it can take are
  2357. ``xz`` and ``zst``. This can allow significant disk space savings.
  2358. For this to work, the Linux Kernel requires the
  2359. ``CONFIG_FW_LOADER_COMPRESS_XZ`` or ``CONFIG_FW_LOADER_COMPRESS_ZSTD``
  2360. configuration options to be set.
  2361. :term:`FIT_ADDRESS_CELLS`
  2362. Specifies the value of the ``#address-cells`` value for the
  2363. description of the FIT image.
  2364. The default value is set to "1" by the :ref:`ref-classes-kernel-fitimage`
  2365. class, which corresponds to 32 bit addresses.
  2366. For platforms that need to set 64 bit addresses, for example in
  2367. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  2368. set this value to "2", as two 32 bit values (cells) will be needed
  2369. to represent such addresses.
  2370. Here is an example setting "0x400000000" as a load address::
  2371. FIT_ADDRESS_CELLS = "2"
  2372. UBOOT_LOADADDRESS= "0x04 0x00000000"
  2373. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  2374. :term:`FIT_CONF_DEFAULT_DTB`
  2375. Specifies the default device tree binary (dtb) file for a FIT image
  2376. when multiple ones are provided.
  2377. This variable is used in the :ref:`ref-classes-kernel-fitimage` class.
  2378. :term:`FIT_DESC`
  2379. Specifies the description string encoded into a FIT image. The
  2380. default value is set by the :ref:`ref-classes-kernel-fitimage` class as
  2381. follows::
  2382. FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  2383. :term:`FIT_GENERATE_KEYS`
  2384. Decides whether to generate the keys for signing the FIT image if
  2385. they don't already exist. The keys are created in
  2386. :term:`UBOOT_SIGN_KEYDIR`. The default value is set to "0"
  2387. by the :ref:`ref-classes-kernel-fitimage` class.
  2388. :term:`FIT_HASH_ALG`
  2389. Specifies the hash algorithm used in creating the FIT Image.
  2390. This variable is set by default to "sha256" by the
  2391. :ref:`ref-classes-kernel-fitimage` class.
  2392. :term:`FIT_KERNEL_COMP_ALG`
  2393. The compression algorithm to use for the kernel image inside the FIT Image.
  2394. At present, the only supported values are "gzip" (default), "lzo" or "none".
  2395. If you set this variable to anything other than "none" you may also need
  2396. to set :term:`FIT_KERNEL_COMP_ALG_EXTENSION`.
  2397. This variable is used in the :ref:`ref-classes-kernel-uboot` class.
  2398. :term:`FIT_KERNEL_COMP_ALG_EXTENSION`
  2399. File extension corresponding to :term:`FIT_KERNEL_COMP_ALG`. The default
  2400. value is set ".gz" by the :ref:`ref-classes-kernel-uboot` class. If you
  2401. set :term:`FIT_KERNEL_COMP_ALG` to "lzo", you may want to set this
  2402. variable to ".lzo".
  2403. :term:`FIT_KEY_GENRSA_ARGS`
  2404. Arguments to ``openssl genrsa`` for generating a RSA private key for
  2405. signing the FIT image. The default value is set to "-F4" by the
  2406. :ref:`ref-classes-kernel-fitimage` class.
  2407. :term:`FIT_KEY_REQ_ARGS`
  2408. Arguments to ``openssl req`` for generating a certificate for signing
  2409. the FIT image. The default value is "-batch -new" by the
  2410. :ref:`ref-classes-kernel-fitimage` class, "batch" for
  2411. non interactive mode and "new" for generating new keys.
  2412. :term:`FIT_KEY_SIGN_PKCS`
  2413. Format for the public key certificate used for signing the FIT image.
  2414. The default value is set to "x509" by the
  2415. :ref:`ref-classes-kernel-fitimage` class.
  2416. :term:`FIT_SIGN_ALG`
  2417. Specifies the signature algorithm used in creating the FIT Image.
  2418. This variable is set by default to "rsa2048" by the
  2419. :ref:`ref-classes-kernel-fitimage` class.
  2420. :term:`FIT_PAD_ALG`
  2421. Specifies the padding algorithm used in creating the FIT Image.
  2422. The default value is set to "pkcs-1.5" by the
  2423. :ref:`ref-classes-kernel-fitimage` class.
  2424. :term:`FIT_SIGN_INDIVIDUAL`
  2425. If set to "1", then the :ref:`ref-classes-kernel-fitimage`
  2426. class will sign the kernel, dtb and ramdisk images individually in addition
  2427. to signing the FIT image itself. This could be useful if you are
  2428. intending to verify signatures in another context than booting via
  2429. U-Boot.
  2430. This variable is set to "0" by default.
  2431. :term:`FIT_SIGN_NUMBITS`
  2432. Size of the private key used in the FIT image, in number of bits.
  2433. The default value for this variable is set to "2048"
  2434. by the :ref:`ref-classes-kernel-fitimage` class.
  2435. :term:`FONT_EXTRA_RDEPENDS`
  2436. When inheriting the :ref:`ref-classes-fontcache` class,
  2437. this variable specifies the runtime dependencies for font packages.
  2438. By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils".
  2439. :term:`FONT_PACKAGES`
  2440. When inheriting the :ref:`ref-classes-fontcache` class, this variable
  2441. identifies packages containing font files that need to be cached by
  2442. Fontconfig. By default, the :ref:`ref-classes-fontcache` class assumes
  2443. that fonts are in the recipe's main package (i.e.
  2444. ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you
  2445. need are in a package other than that main package.
  2446. :term:`FORCE_RO_REMOVE`
  2447. Forces the removal of the packages listed in ``ROOTFS_RO_UNNEEDED``
  2448. during the generation of the root filesystem.
  2449. Set the variable to "1" to force the removal of these packages.
  2450. :term:`FULL_OPTIMIZATION`
  2451. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  2452. compiling an optimized system. This variable defaults to "-O2 -pipe
  2453. ${DEBUG_FLAGS}".
  2454. :term:`GCCPIE`
  2455. Enables Position Independent Executables (PIE) within the GNU C
  2456. Compiler (GCC). Enabling PIE in the GCC makes Return Oriented
  2457. Programming (ROP) attacks much more difficult to execute.
  2458. By default the ``security_flags.inc`` file enables PIE by setting the
  2459. variable as follows::
  2460. GCCPIE ?= "--enable-default-pie"
  2461. :term:`GCCVERSION`
  2462. Specifies the default version of the GNU C Compiler (GCC) used for
  2463. compilation. By default, :term:`GCCVERSION` is set to "8.x" in the
  2464. ``meta/conf/distro/include/tcmode-default.inc`` include file::
  2465. GCCVERSION ?= "8.%"
  2466. You can override this value by setting it in a
  2467. configuration file such as the ``local.conf``.
  2468. :term:`GDB`
  2469. The minimal command and arguments to run the GNU Debugger.
  2470. :term:`GIR_EXTRA_LIBS_PATH`
  2471. Allows to specify an extra search path for ``.so`` files
  2472. in GLib related recipes using GObject introspection,
  2473. and which do not compile without this setting.
  2474. See the ":ref:`dev-manual/gobject-introspection:enabling gobject introspection support`"
  2475. section for details.
  2476. :term:`GITDIR`
  2477. The directory in which a local copy of a Git repository is stored
  2478. when it is cloned.
  2479. :term:`GITHUB_BASE_URI`
  2480. When inheriting the :ref:`ref-classes-github-releases`
  2481. class, specifies the base URL for fetching releases for the github
  2482. project you wish to fetch sources from. The default value is as follows::
  2483. GITHUB_BASE_URI ?= "https://github.com/${BPN}/${BPN}/releases/"
  2484. :term:`GLIBC_GENERATE_LOCALES`
  2485. Specifies the list of GLIBC locales to generate should you not wish
  2486. to generate all LIBC locals, which can be time consuming.
  2487. .. note::
  2488. If you specifically remove the locale ``en_US.UTF-8``, you must set
  2489. :term:`IMAGE_LINGUAS` appropriately.
  2490. You can set :term:`GLIBC_GENERATE_LOCALES` in your ``local.conf`` file.
  2491. By default, all locales are generated::
  2492. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  2493. :term:`GO_IMPORT`
  2494. When inheriting the :ref:`ref-classes-go` class, this mandatory variable
  2495. sets the import path for the Go package that will be created for the code
  2496. to build. If you have a ``go.mod`` file in the source directory, this
  2497. typically matches the path in the ``module`` line in this file.
  2498. Other Go programs importing this package will use this path.
  2499. Here is an example setting from the
  2500. :yocto_git:`go-helloworld_0.1.bb </poky/tree/meta/recipes-extended/go-examples/go-helloworld_0.1.bb>`
  2501. recipe::
  2502. GO_IMPORT = "golang.org/x/example"
  2503. :term:`GO_INSTALL`
  2504. When inheriting the :ref:`ref-classes-go` class, this optional variable
  2505. specifies which packages in the sources should be compiled and
  2506. installed in the Go build space by the
  2507. `go install <https://go.dev/ref/mod#go-install>`__ command.
  2508. Here is an example setting from the
  2509. :oe_git:`crucible </meta-openembedded/tree/meta-oe/recipes-support/crucible/>`
  2510. recipe::
  2511. GO_INSTALL = "\
  2512. ${GO_IMPORT}/cmd/crucible \
  2513. ${GO_IMPORT}/cmd/habtool \
  2514. "
  2515. By default, :term:`GO_INSTALL` is defined as::
  2516. GO_INSTALL ?= "${GO_IMPORT}/..."
  2517. The ``...`` wildcard means that it will catch all
  2518. packages found in the sources.
  2519. See the :term:`GO_INSTALL_FILTEROUT` variable for
  2520. filtering out unwanted packages from the ones
  2521. found from the :term:`GO_INSTALL` value.
  2522. :term:`GO_INSTALL_FILTEROUT`
  2523. When using the Go "vendor" mechanism to bring in dependencies for a Go
  2524. package, the default :term:`GO_INSTALL` setting, which uses the ``...``
  2525. wildcard, will include the vendored packages in the build, which produces
  2526. incorrect results.
  2527. There are also some Go packages that are structured poorly, so that the
  2528. ``...`` wildcard results in building example or test code that should not
  2529. be included in the build, or could fail to build.
  2530. This optional variable allows for filtering out a subset of the sources.
  2531. It defaults to excluding everything under the ``vendor`` subdirectory
  2532. under package's main directory. This is the normal location for vendored
  2533. packages, but it can be overridden by a recipe to filter out other
  2534. subdirectories if needed.
  2535. :term:`GO_WORKDIR`
  2536. When using Go Modules, the current working directory must be the directory
  2537. containing the ``go.mod`` file, or one of its subdirectories. When the
  2538. ``go`` tool is used, it will automatically look for the ``go.mod`` file
  2539. in the Go working directory or in any parent directory, but not in
  2540. subdirectories.
  2541. When using the :ref:`ref-classes-go-mod` class to use Go modules,
  2542. the optional :term:`GO_WORKDIR` variable, defaulting to the value
  2543. of :term:`GO_IMPORT`, allows to specify a different Go working directory.
  2544. :term:`GROUPADD_PARAM`
  2545. When inheriting the :ref:`ref-classes-useradd` class,
  2546. this variable specifies for a package what parameters should be
  2547. passed to the ``groupadd`` command if you wish to add a group to the
  2548. system when the package is installed.
  2549. Here is an example from the ``dbus`` recipe::
  2550. GROUPADD_PARAM:${PN} = "-r netdev"
  2551. More than one group can be added by separating each set of different
  2552. groups' parameters with a semicolon.
  2553. Here is an example adding multiple groups from the ``useradd-example.bb``
  2554. file in the ``meta-skeleton`` layer::
  2555. GROUPADD_PARAM:${PN} = "-g 880 group1; -g 890 group2"
  2556. For information on the standard Linux shell command
  2557. ``groupadd``, see https://linux.die.net/man/8/groupadd.
  2558. :term:`GROUPMEMS_PARAM`
  2559. When inheriting the :ref:`ref-classes-useradd` class,
  2560. this variable specifies for a package what parameters should be
  2561. passed to the ``groupmems`` command if you wish to modify the members
  2562. of a group when the package is installed.
  2563. For information on the standard Linux shell command ``groupmems``,
  2564. see https://linux.die.net/man/8/groupmems.
  2565. :term:`GRUB_GFXSERIAL`
  2566. Configures the GNU GRand Unified Bootloader (GRUB) to have graphics
  2567. and serial in the boot menu. Set this variable to "1" in your
  2568. ``local.conf`` or distribution configuration file to enable graphics
  2569. and serial in the menu.
  2570. See the :ref:`ref-classes-grub-efi` class for more
  2571. information on how this variable is used.
  2572. :term:`GRUB_OPTS`
  2573. Additional options to add to the GNU GRand Unified Bootloader (GRUB)
  2574. configuration. Use a semi-colon character (``;``) to separate
  2575. multiple options.
  2576. The :term:`GRUB_OPTS` variable is optional. See the
  2577. :ref:`ref-classes-grub-efi` class for more information
  2578. on how this variable is used.
  2579. :term:`GRUB_TIMEOUT`
  2580. Specifies the timeout before executing the default ``LABEL`` in the
  2581. GNU GRand Unified Bootloader (GRUB).
  2582. The :term:`GRUB_TIMEOUT` variable is optional. See the
  2583. :ref:`ref-classes-grub-efi` class for more information
  2584. on how this variable is used.
  2585. :term:`GTKIMMODULES_PACKAGES`
  2586. When inheriting the :ref:`ref-classes-gtk-immodules-cache` class,
  2587. this variable specifies the packages that contain the GTK+ input
  2588. method modules being installed when the modules are in packages other
  2589. than the main package.
  2590. :term:`HGDIR`
  2591. See :term:`bitbake:HGDIR` in the BitBake manual.
  2592. :term:`HOMEPAGE`
  2593. Website where more information about the software the recipe is
  2594. building can be found.
  2595. :term:`HOST_ARCH`
  2596. The name of the target architecture, which is normally the same as
  2597. :term:`TARGET_ARCH`. The OpenEmbedded build system
  2598. supports many architectures. Here is an example list of architectures
  2599. supported. This list is by no means complete as the architecture is
  2600. configurable:
  2601. - arm
  2602. - i586
  2603. - x86_64
  2604. - powerpc
  2605. - powerpc64
  2606. - mips
  2607. - mipsel
  2608. :term:`HOST_CC_ARCH`
  2609. Specifies architecture-specific compiler flags that are passed to the
  2610. C compiler.
  2611. Default initialization for :term:`HOST_CC_ARCH` varies depending on what
  2612. is being built:
  2613. - :term:`TARGET_CC_ARCH` when building for the
  2614. target
  2615. - :term:`BUILD_CC_ARCH` when building for the build host (i.e.
  2616. ``-native``)
  2617. - ``BUILDSDK_CC_ARCH`` when building for an SDK (i.e.
  2618. ``nativesdk-``)
  2619. :term:`HOST_OS`
  2620. Specifies the name of the target operating system, which is normally
  2621. the same as the :term:`TARGET_OS`. The variable can
  2622. be set to "linux" for ``glibc``-based systems and to "linux-musl" for
  2623. ``musl``. For ARM/EABI targets, there are also "linux-gnueabi" and
  2624. "linux-musleabi" values possible.
  2625. :term:`HOST_PREFIX`
  2626. Specifies the prefix for the cross-compile toolchain. :term:`HOST_PREFIX`
  2627. is normally the same as :term:`TARGET_PREFIX`.
  2628. :term:`HOST_SYS`
  2629. Specifies the system, including the architecture and the operating
  2630. system, for which the build is occurring in the context of the
  2631. current recipe.
  2632. The OpenEmbedded build system automatically sets this variable based
  2633. on :term:`HOST_ARCH`,
  2634. :term:`HOST_VENDOR`, and
  2635. :term:`HOST_OS` variables.
  2636. .. note::
  2637. You do not need to set the variable yourself.
  2638. Consider these two examples:
  2639. - Given a native recipe on a 32-bit x86 machine running Linux, the
  2640. value is "i686-linux".
  2641. - Given a recipe being built for a little-endian MIPS target running
  2642. Linux, the value might be "mipsel-linux".
  2643. :term:`HOST_VENDOR`
  2644. Specifies the name of the vendor. :term:`HOST_VENDOR` is normally the
  2645. same as :term:`TARGET_VENDOR`.
  2646. :term:`HOSTTOOLS`
  2647. A space-separated list (filter) of tools on the build host that
  2648. should be allowed to be called from within build tasks. Using this
  2649. filter helps reduce the possibility of host contamination. If a tool
  2650. specified in the value of :term:`HOSTTOOLS` is not found on the build
  2651. host, the OpenEmbedded build system produces an error and the build
  2652. is not started.
  2653. For additional information, see
  2654. :term:`HOSTTOOLS_NONFATAL`.
  2655. :term:`HOSTTOOLS_NONFATAL`
  2656. A space-separated list (filter) of tools on the build host that
  2657. should be allowed to be called from within build tasks. Using this
  2658. filter helps reduce the possibility of host contamination. Unlike
  2659. :term:`HOSTTOOLS`, the OpenEmbedded build system
  2660. does not produce an error if a tool specified in the value of
  2661. :term:`HOSTTOOLS_NONFATAL` is not found on the build host. Thus, you can
  2662. use :term:`HOSTTOOLS_NONFATAL` to filter optional host tools.
  2663. :term:`ICECC_CLASS_DISABLE`
  2664. Identifies user classes that you do not want the Icecream distributed
  2665. compile support to consider. This variable is used by the
  2666. :ref:`ref-classes-icecc` class. You set this variable in
  2667. your ``local.conf`` file.
  2668. When you list classes using this variable, the recipes inheriting
  2669. those classes will not benefit from distributed compilation across
  2670. remote hosts. Instead they will be built locally.
  2671. :term:`ICECC_DISABLED`
  2672. Disables or enables the ``icecc`` (Icecream) function. For more
  2673. information on this function and best practices for using this
  2674. variable, see the ":ref:`ref-classes-icecc`"
  2675. section.
  2676. Setting this variable to "1" in your ``local.conf`` disables the
  2677. function::
  2678. ICECC_DISABLED ??= "1"
  2679. To enable the function, set the variable as follows::
  2680. ICECC_DISABLED = ""
  2681. :term:`ICECC_ENV_EXEC`
  2682. Points to the ``icecc-create-env`` script that you provide. This
  2683. variable is used by the :ref:`ref-classes-icecc` class. You
  2684. set this variable in your ``local.conf`` file.
  2685. If you do not point to a script that you provide, the OpenEmbedded
  2686. build system uses the default script provided by the
  2687. :oe_git:`icecc-create-env_0.1.bb
  2688. </openembedded-core/tree/meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb>`
  2689. recipe, which is a modified version and not the one that comes with
  2690. ``icecream``.
  2691. :term:`ICECC_PARALLEL_MAKE`
  2692. Extra options passed to the ``make`` command during the
  2693. :ref:`ref-tasks-compile` task that specify parallel
  2694. compilation. This variable usually takes the form of "-j x", where x
  2695. represents the maximum number of parallel threads ``make`` can run.
  2696. .. note::
  2697. The options passed affect builds on all enabled machines on the
  2698. network, which are machines running the ``iceccd`` daemon.
  2699. If your enabled machines support multiple cores, coming up with the
  2700. maximum number of parallel threads that gives you the best
  2701. performance could take some experimentation since machine speed,
  2702. network lag, available memory, and existing machine loads can all
  2703. affect build time. Consequently, unlike the
  2704. :term:`PARALLEL_MAKE` variable, there is no
  2705. rule-of-thumb for setting :term:`ICECC_PARALLEL_MAKE` to achieve optimal
  2706. performance.
  2707. If you do not set :term:`ICECC_PARALLEL_MAKE`, the build system does not
  2708. use it (i.e. the system does not detect and assign the number of
  2709. cores as is done with :term:`PARALLEL_MAKE`).
  2710. :term:`ICECC_PATH`
  2711. The location of the ``icecc`` binary. You can set this variable in
  2712. your ``local.conf`` file. If your ``local.conf`` file does not define
  2713. this variable, the :ref:`ref-classes-icecc` class attempts
  2714. to define it by locating ``icecc`` using ``which``.
  2715. :term:`ICECC_RECIPE_DISABLE`
  2716. Identifies user recipes that you do not want the Icecream distributed
  2717. compile support to consider. This variable is used by the
  2718. :ref:`ref-classes-icecc` class. You set this variable in
  2719. your ``local.conf`` file.
  2720. When you list recipes using this variable, you are excluding them
  2721. from distributed compilation across remote hosts. Instead they will
  2722. be built locally.
  2723. :term:`ICECC_RECIPE_ENABLE`
  2724. Identifies user recipes that use an empty
  2725. :term:`PARALLEL_MAKE` variable that you want to
  2726. force remote distributed compilation on using the Icecream
  2727. distributed compile support. This variable is used by the
  2728. :ref:`ref-classes-icecc` class. You set this variable in
  2729. your ``local.conf`` file.
  2730. :term:`IMAGE_BASENAME`
  2731. The base name of image output files. This variable defaults to the
  2732. recipe name (``${``\ :term:`PN`\ ``}``).
  2733. :term:`IMAGE_BOOT_FILES`
  2734. A space-separated list of files installed into the boot partition
  2735. when preparing an image using the Wic tool with the
  2736. ``bootimg-partition`` source plugin. By default,
  2737. the files are
  2738. installed under the same name as the source files. To change the
  2739. installed name, separate it from the original name with a semi-colon
  2740. (;). Source files need to be located in
  2741. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2742. examples::
  2743. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  2744. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  2745. Alternatively, source files can be picked up using a glob pattern. In
  2746. this case, the destination file must have the same name as the base
  2747. name of the source file path. To install files into a directory
  2748. within the target location, pass its name after a semi-colon (;).
  2749. Here are two examples::
  2750. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  2751. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  2752. The first example
  2753. installs all files from ``${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles``
  2754. into the root of the target partition. The second example installs
  2755. the same files into a ``boot`` directory within the target partition.
  2756. You can find information on how to use the Wic tool in the
  2757. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2758. section of the Yocto Project Development Tasks Manual. Reference
  2759. material for Wic is located in the
  2760. ":doc:`/ref-manual/kickstart`" chapter.
  2761. :term:`IMAGE_BUILDINFO_FILE`
  2762. When using the :ref:`ref-classes-image-buildinfo` class,
  2763. specifies the file in the image to write the build information into. The
  2764. default value is "``${sysconfdir}/buildinfo``".
  2765. :term:`IMAGE_BUILDINFO_VARS`
  2766. When using the :ref:`ref-classes-image-buildinfo` class,
  2767. specifies the list of variables to include in the `Build Configuration`
  2768. section of the output file (as a space-separated list). Defaults to
  2769. ":term:`DISTRO` :term:`DISTRO_VERSION`".
  2770. :term:`IMAGE_CLASSES`
  2771. A list of classes that all images should inherit. This is typically used
  2772. to enable functionality across all image recipes.
  2773. Classes specified in :term:`IMAGE_CLASSES` must be located in the
  2774. ``classes-recipe/`` or ``classes/`` subdirectories.
  2775. :term:`IMAGE_CMD`
  2776. Specifies the command to create the image file for a specific image
  2777. type, which corresponds to the value set in
  2778. :term:`IMAGE_FSTYPES`, (e.g. ``ext3``,
  2779. ``btrfs``, and so forth). When setting this variable, you should use
  2780. an override for the associated type. Here is an example::
  2781. IMAGE_CMD:jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
  2782. --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 \
  2783. ${EXTRA_IMAGECMD}"
  2784. You typically do not need to set this variable unless you are adding
  2785. support for a new image type. For more examples on how to set this
  2786. variable, see the :ref:`ref-classes-image_types`
  2787. class file, which is ``meta/classes-recipe/image_types.bbclass``.
  2788. :term:`IMAGE_DEVICE_TABLES`
  2789. Specifies one or more files that contain custom device tables that
  2790. are passed to the ``makedevs`` command as part of creating an image.
  2791. These files list basic device nodes that should be created under
  2792. ``/dev`` within the image. If :term:`IMAGE_DEVICE_TABLES` is not set,
  2793. ``files/device_table-minimal.txt`` is used, which is located by
  2794. :term:`BBPATH`. For details on how you should write
  2795. device table files, see ``meta/files/device_table-minimal.txt`` as an
  2796. example.
  2797. :term:`IMAGE_EFI_BOOT_FILES`
  2798. A space-separated list of files installed into the boot partition
  2799. when preparing an image using the Wic tool with the
  2800. ``bootimg-efi`` source plugin. By default,
  2801. the files are
  2802. installed under the same name as the source files. To change the
  2803. installed name, separate it from the original name with a semi-colon
  2804. (;). Source files need to be located in
  2805. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2806. examples::
  2807. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE};bz2"
  2808. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE} microcode.cpio"
  2809. Alternatively, source files can be picked up using a glob pattern. In
  2810. this case, the destination file must have the same name as the base
  2811. name of the source file path. To install files into a directory
  2812. within the target location, pass its name after a semi-colon (;).
  2813. Here are two examples::
  2814. IMAGE_EFI_BOOT_FILES = "boot/loader/*"
  2815. IMAGE_EFI_BOOT_FILES = "boot/loader/*;boot/"
  2816. The first example
  2817. installs all files from ``${DEPLOY_DIR_IMAGE}/boot/loader/``
  2818. into the root of the target partition. The second example installs
  2819. the same files into a ``boot`` directory within the target partition.
  2820. You can find information on how to use the Wic tool in the
  2821. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2822. section of the Yocto Project Development Tasks Manual. Reference
  2823. material for Wic is located in the
  2824. ":doc:`/ref-manual/kickstart`" chapter.
  2825. :term:`IMAGE_FEATURES`
  2826. The primary list of features to include in an image. Typically, you
  2827. configure this variable in an image recipe. Although you can use this
  2828. variable from your ``local.conf`` file, which is found in the
  2829. :term:`Build Directory`, best practices dictate that you do
  2830. not.
  2831. .. note::
  2832. To enable extra features from outside the image recipe, use the
  2833. :term:`EXTRA_IMAGE_FEATURES` variable.
  2834. For a list of image features that ships with the Yocto Project, see
  2835. the ":ref:`ref-features-image`" section.
  2836. For an example that shows how to customize your image by using this
  2837. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2838. section in the Yocto Project Development Tasks Manual.
  2839. :term:`IMAGE_FSTYPES`
  2840. Specifies the formats the OpenEmbedded build system uses during the
  2841. build when creating the root filesystem. For example, setting
  2842. :term:`IMAGE_FSTYPES` as follows causes the build system to create root
  2843. filesystems using two formats: ``.ext3`` and ``.tar.bz2``::
  2844. IMAGE_FSTYPES = "ext3 tar.bz2"
  2845. For the complete list of supported image formats from which you can
  2846. choose, see :term:`IMAGE_TYPES`.
  2847. .. note::
  2848. - If an image recipe uses the "inherit image" line and you are
  2849. setting :term:`IMAGE_FSTYPES` inside the recipe, you must set
  2850. :term:`IMAGE_FSTYPES` prior to using the "inherit image" line.
  2851. - Due to the way the OpenEmbedded build system processes this
  2852. variable, you cannot update its contents by using ``:append``
  2853. or ``:prepend``. You must use the ``+=`` operator to add one or
  2854. more options to the :term:`IMAGE_FSTYPES` variable.
  2855. :term:`IMAGE_INSTALL`
  2856. Used by recipes to specify the packages to install into an image
  2857. through the :ref:`ref-classes-image` class. Use the
  2858. :term:`IMAGE_INSTALL` variable with care to avoid ordering issues.
  2859. Image recipes set :term:`IMAGE_INSTALL` to specify the packages to
  2860. install into an image through :ref:`ref-classes-image`. Additionally,
  2861. there are "helper" classes such as the :ref:`ref-classes-core-image`
  2862. class which can take lists used with :term:`IMAGE_FEATURES` and turn
  2863. them into auto-generated entries in :term:`IMAGE_INSTALL` in addition
  2864. to its default contents.
  2865. When you use this variable, it is best to use it as follows::
  2866. IMAGE_INSTALL:append = " package-name"
  2867. Be sure to include the space
  2868. between the quotation character and the start of the package name or
  2869. names.
  2870. .. note::
  2871. - When working with a
  2872. :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  2873. image, do not use the :term:`IMAGE_INSTALL` variable to specify
  2874. packages for installation. Instead, use the
  2875. :term:`PACKAGE_INSTALL` variable, which
  2876. allows the initial RAM filesystem (:term:`Initramfs`) recipe to use a
  2877. fixed set of packages and not be affected by :term:`IMAGE_INSTALL`.
  2878. For information on creating an :term:`Initramfs`, see the
  2879. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`"
  2880. section in the Yocto Project Development Tasks Manual.
  2881. - Using :term:`IMAGE_INSTALL` with the
  2882. :ref:`+= <bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>`
  2883. BitBake operator within the ``/conf/local.conf`` file or from
  2884. within an image recipe is not recommended. Use of this operator in
  2885. these ways can cause ordering issues. Since
  2886. :ref:`ref-classes-core-image` sets :term:`IMAGE_INSTALL` to a
  2887. default value using the
  2888. :ref:`?= <bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>`
  2889. operator, using a ``+=`` operation against :term:`IMAGE_INSTALL`
  2890. results in unexpected behavior when used within
  2891. ``conf/local.conf``. Furthermore, the same operation from within an
  2892. image recipe may or may not succeed depending on the specific
  2893. situation. In both these cases, the behavior is contrary to how
  2894. most users expect the ``+=`` operator to work.
  2895. :term:`IMAGE_LINGUAS`
  2896. Specifies the list of locales to install into the image during the
  2897. root filesystem construction process. The OpenEmbedded build system
  2898. automatically splits locale files, which are used for localization,
  2899. into separate packages. Setting the :term:`IMAGE_LINGUAS` variable
  2900. ensures that any locale packages that correspond to packages already
  2901. selected for installation into the image are also installed. Here is
  2902. an example::
  2903. IMAGE_LINGUAS = "pt-br de-de"
  2904. In this example, the build system ensures any Brazilian Portuguese
  2905. and German locale files that correspond to packages in the image are
  2906. installed (i.e. ``*-locale-pt-br`` and ``*-locale-de-de`` as well as
  2907. ``*-locale-pt`` and ``*-locale-de``, since some software packages
  2908. only provide locale files by language and not by country-specific
  2909. language).
  2910. See the :term:`GLIBC_GENERATE_LOCALES`
  2911. variable for information on generating GLIBC locales.
  2912. :term:`IMAGE_LINK_NAME`
  2913. The name of the output image symlink (which does not include
  2914. the version part as :term:`IMAGE_NAME` does). The default value
  2915. is derived using the :term:`IMAGE_BASENAME` and
  2916. :term:`IMAGE_MACHINE_SUFFIX` variables::
  2917. IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}"
  2918. .. note::
  2919. It is possible to set this to "" to disable symlink creation,
  2920. however, you also need to set :term:`IMAGE_NAME` to still have
  2921. a reasonable value e.g.::
  2922. IMAGE_LINK_NAME = ""
  2923. IMAGE_NAME = "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  2924. :term:`IMAGE_MACHINE_SUFFIX`
  2925. Specifies the by default machine-specific suffix for image file names
  2926. (before the extension). The default value is set as follows::
  2927. IMAGE_MACHINE_SUFFIX ??= "-${MACHINE}"
  2928. The default :term:`DEPLOY_DIR_IMAGE` already has a :term:`MACHINE`
  2929. subdirectory, so you may find it unnecessary to also include this suffix
  2930. in the name of every image file. If you prefer to remove the suffix you
  2931. can set this variable to an empty string::
  2932. IMAGE_MACHINE_SUFFIX = ""
  2933. (Not to be confused with :term:`IMAGE_NAME_SUFFIX`.)
  2934. :term:`IMAGE_MANIFEST`
  2935. The manifest file for the image. This file lists all the installed
  2936. packages that make up the image. The file contains package
  2937. information on a line-per-package basis as follows::
  2938. packagename packagearch version
  2939. The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class defines the manifest
  2940. file as follows::
  2941. IMAGE_MANIFEST ="${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
  2942. The location is
  2943. derived using the :term:`IMGDEPLOYDIR`
  2944. and :term:`IMAGE_NAME` variables. You can find
  2945. information on how the image is created in the ":ref:`overview-manual/concepts:image generation`"
  2946. section in the Yocto Project Overview and Concepts Manual.
  2947. :term:`IMAGE_NAME`
  2948. The name of the output image files minus the extension. By default
  2949. this variable is set using the :term:`IMAGE_LINK_NAME`, and
  2950. :term:`IMAGE_VERSION_SUFFIX` variables::
  2951. IMAGE_NAME ?= "${IMAGE_LINK_NAME}${IMAGE_VERSION_SUFFIX}"
  2952. :term:`IMAGE_NAME_SUFFIX`
  2953. Suffix used for the image output filename --- defaults to ``".rootfs"``
  2954. to distinguish the image file from other files created during image
  2955. building; however if this suffix is redundant or not desired you can
  2956. clear the value of this variable (set the value to ""). For example,
  2957. this is typically cleared in :term:`Initramfs` image recipes.
  2958. :term:`IMAGE_OUTPUT_MANIFEST`
  2959. When inheriting the :ref:`ref-classes-image` class directly or through the
  2960. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST`
  2961. points to a manifest ``json`` file that lists what images were created by
  2962. various image creation tasks (as defined by the :term:`IMAGE_FSTYPES`
  2963. variable). It is set in the :ref:`ref-classes-image` class as follows::
  2964. IMAGE_OUTPUT_MANIFEST = "${IMAGE_OUTPUT_MANIFEST_DIR}/manifest.json"
  2965. :term:`IMAGE_OUTPUT_MANIFEST_DIR`
  2966. When inheriting the :ref:`ref-classes-image` class directly or through the
  2967. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST_DIR` points to
  2968. a directory that stores a manifest ``json`` file that lists what
  2969. images were created by various image creation tasks (as defined by the
  2970. :term:`IMAGE_FSTYPES` variable). It is set in the :ref:`ref-classes-image`
  2971. class as follows::
  2972. IMAGE_OUTPUT_MANIFEST_DIR = "${WORKDIR}/deploy-image-output-manifest"
  2973. :term:`IMAGE_OVERHEAD_FACTOR`
  2974. Defines a multiplier that the build system applies to the initial
  2975. image size for cases when the multiplier times the returned disk
  2976. usage value for the image is greater than the sum of
  2977. :term:`IMAGE_ROOTFS_SIZE` and :term:`IMAGE_ROOTFS_EXTRA_SPACE`. The result of
  2978. the multiplier applied to the initial image size creates free disk
  2979. space in the image as overhead. By default, the build process uses a
  2980. multiplier of 1.3 for this variable. This default value results in
  2981. 30% free disk space added to the image when this method is used to
  2982. determine the final generated image size. You should be aware that
  2983. post install scripts and the package management system uses disk
  2984. space inside this overhead area. Consequently, the multiplier does
  2985. not produce an image with all the theoretical free disk space. See
  2986. :term:`IMAGE_ROOTFS_SIZE` for information on how the build system
  2987. determines the overall image size.
  2988. The default 30% free disk space typically gives the image enough room
  2989. to boot and allows for basic post installs while still leaving a
  2990. small amount of free disk space. If 30% free space is inadequate, you
  2991. can increase the default value. For example, the following setting
  2992. gives you 50% free space added to the image::
  2993. IMAGE_OVERHEAD_FACTOR = "1.5"
  2994. Alternatively, you can ensure a specific amount of free disk space is
  2995. added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2996. variable.
  2997. :term:`IMAGE_PKGTYPE`
  2998. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the
  2999. OpenEmbedded build system. The variable is defined appropriately by
  3000. the :ref:`ref-classes-package_deb`, :ref:`ref-classes-package_rpm`,
  3001. or :ref:`ref-classes-package_ipk` class.
  3002. The :ref:`ref-classes-populate-sdk-*` and :ref:`ref-classes-image`
  3003. classes use the :term:`IMAGE_PKGTYPE` for packaging up images and SDKs.
  3004. You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the
  3005. variable is set indirectly through the appropriate
  3006. :ref:`package_* <ref-classes-package>` class using the
  3007. :term:`PACKAGE_CLASSES` variable. The
  3008. OpenEmbedded build system uses the first package type (e.g. DEB, RPM,
  3009. or IPK) that appears with the variable
  3010. .. note::
  3011. Files using the ``.tar`` format are never used as a substitute
  3012. packaging format for DEB, RPM, and IPK formatted files for your image
  3013. or SDK.
  3014. :term:`IMAGE_POSTPROCESS_COMMAND`
  3015. Specifies a list of functions to call once the OpenEmbedded build
  3016. system creates the final image output files. You can specify
  3017. functions separated by spaces::
  3018. IMAGE_POSTPROCESS_COMMAND += "function"
  3019. If you need to pass the root filesystem path to a command within the
  3020. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3021. directory that becomes the root filesystem image. See the
  3022. :term:`IMAGE_ROOTFS` variable for more
  3023. information.
  3024. :term:`IMAGE_PREPROCESS_COMMAND`
  3025. Specifies a list of functions to call before the OpenEmbedded build
  3026. system creates the final image output files. You can specify
  3027. functions separated by spaces::
  3028. IMAGE_PREPROCESS_COMMAND += "function"
  3029. If you need to pass the root filesystem path to a command within the
  3030. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3031. directory that becomes the root filesystem image. See the
  3032. :term:`IMAGE_ROOTFS` variable for more
  3033. information.
  3034. :term:`IMAGE_ROOTFS`
  3035. The location of the root filesystem while it is under construction
  3036. (i.e. during the :ref:`ref-tasks-rootfs` task). This
  3037. variable is not configurable. Do not change it.
  3038. :term:`IMAGE_ROOTFS_ALIGNMENT`
  3039. Specifies the alignment for the output image file in Kbytes. If the
  3040. size of the image is not a multiple of this value, then the size is
  3041. rounded up to the nearest multiple of the value. The default value is
  3042. "1". See :term:`IMAGE_ROOTFS_SIZE` for
  3043. additional information.
  3044. :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3045. Defines additional free disk space created in the image in Kbytes. By
  3046. default, this variable is set to "0". This free disk space is added
  3047. to the image after the build system determines the image size as
  3048. described in :term:`IMAGE_ROOTFS_SIZE`.
  3049. This variable is particularly useful when you want to ensure that a
  3050. specific amount of free disk space is available on a device after an
  3051. image is installed and running. For example, to be sure 5 Gbytes of
  3052. free disk space is available, set the variable as follows::
  3053. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  3054. For example, the Yocto Project Build Appliance specifically requests
  3055. 40 Gbytes of extra space with the line::
  3056. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  3057. :term:`IMAGE_ROOTFS_SIZE`
  3058. Defines the size in Kbytes for the generated image. The OpenEmbedded
  3059. build system determines the final size for the generated image using
  3060. an algorithm that takes into account the initial disk space used for
  3061. the generated image, a requested size for the image, and requested
  3062. additional free disk space to be added to the image. Programatically,
  3063. the build system determines the final size of the generated image as
  3064. follows::
  3065. if (image-du * overhead) < rootfs-size:
  3066. internal-rootfs-size = rootfs-size + xspace
  3067. else:
  3068. internal-rootfs-size = (image-du * overhead) + xspace
  3069. where:
  3070. image-du = Returned value of the du command on the image.
  3071. overhead = IMAGE_OVERHEAD_FACTOR
  3072. rootfs-size = IMAGE_ROOTFS_SIZE
  3073. internal-rootfs-size = Initial root filesystem size before any modifications.
  3074. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  3075. See the :term:`IMAGE_OVERHEAD_FACTOR`
  3076. and :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3077. variables for related information.
  3078. :term:`IMAGE_TYPEDEP`
  3079. Specifies a dependency from one image type on another. Here is an
  3080. example from the :ref:`ref-classes-image-live` class::
  3081. IMAGE_TYPEDEP:live = "ext3"
  3082. In the previous example, the variable ensures that when "live" is
  3083. listed with the :term:`IMAGE_FSTYPES` variable,
  3084. the OpenEmbedded build system produces an ``ext3`` image first since
  3085. one of the components of the live image is an ``ext3`` formatted
  3086. partition containing the root filesystem.
  3087. :term:`IMAGE_TYPES`
  3088. Specifies the complete list of supported image types by default:
  3089. - btrfs
  3090. - container
  3091. - cpio
  3092. - cpio.gz
  3093. - cpio.lz4
  3094. - cpio.lzma
  3095. - cpio.xz
  3096. - cramfs
  3097. - erofs
  3098. - erofs-lz4
  3099. - erofs-lz4hc
  3100. - ext2
  3101. - ext2.bz2
  3102. - ext2.gz
  3103. - ext2.lzma
  3104. - ext3
  3105. - ext3.gz
  3106. - ext4
  3107. - ext4.gz
  3108. - f2fs
  3109. - hddimg
  3110. - iso
  3111. - jffs2
  3112. - jffs2.sum
  3113. - multiubi
  3114. - squashfs
  3115. - squashfs-lz4
  3116. - squashfs-lzo
  3117. - squashfs-xz
  3118. - tar
  3119. - tar.bz2
  3120. - tar.gz
  3121. - tar.lz4
  3122. - tar.xz
  3123. - tar.zst
  3124. - ubi
  3125. - ubifs
  3126. - wic
  3127. - wic.bz2
  3128. - wic.gz
  3129. - wic.lzma
  3130. - wic.zst
  3131. For more information about these types of images, see
  3132. ``meta/classes-recipe/image_types*.bbclass`` in the :term:`Source Directory`.
  3133. :term:`IMAGE_VERSION_SUFFIX`
  3134. Version suffix that is part of the default :term:`IMAGE_NAME` and
  3135. :term:`KERNEL_ARTIFACT_NAME` values.
  3136. Defaults to ``"-${DATETIME}"``, however you could set this to a
  3137. version string that comes from your external build environment if
  3138. desired, and this suffix would then be used consistently across
  3139. the build artifacts.
  3140. :term:`IMGDEPLOYDIR`
  3141. When inheriting the :ref:`ref-classes-image` class directly or
  3142. through the :ref:`ref-classes-core-image` class, the
  3143. :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files
  3144. that is set in the ``image`` class as follows::
  3145. IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete"
  3146. Recipes inheriting the :ref:`ref-classes-image` class should copy
  3147. files to be deployed into :term:`IMGDEPLOYDIR`, and the class will take
  3148. care of copying them into :term:`DEPLOY_DIR_IMAGE` afterwards.
  3149. :term:`IMGMANIFESTDIR`
  3150. When inheriting the :ref:`ref-classes-image` class directly or through the
  3151. :ref:`ref-classes-core-image` class, the :term:`IMGMANIFESTDIR` setting
  3152. points to a temporary area that stores manifest ``json`` files, that list
  3153. what images were created by various images creation tasks (as defined by
  3154. the :term:`IMAGE_FSTYPES` variable). It is set in the
  3155. :ref:`ref-classes-image` class as follows::
  3156. IMGMANIFESTDIR = "${WORKDIR}/image-task-manifest"
  3157. :term:`INCOMPATIBLE_LICENSE`
  3158. Specifies a space-separated list of license names (as they would
  3159. appear in :term:`LICENSE`) that should be excluded
  3160. from the build (if set globally), or from an image (if set locally
  3161. in an image recipe).
  3162. When the variable is set globally, recipes that provide no alternatives to listed
  3163. incompatible licenses are not built. Packages that are individually
  3164. licensed with the specified incompatible licenses will be deleted.
  3165. Most of the time this does not allow a feasible build (because it becomes impossible
  3166. to satisfy build time dependencies), so the recommended way to
  3167. implement license restrictions is to set the variable in specific
  3168. image recipes where the restrictions must apply. That way there
  3169. are no build time restrictions, but the license check is still
  3170. performed when the image's filesystem is assembled from packages.
  3171. There is some support for wildcards in this variable's value,
  3172. however it is restricted to specific licenses. Currently only
  3173. these wildcards are allowed and expand as follows:
  3174. - ``AGPL-3.0*"``: ``AGPL-3.0-only``, ``AGPL-3.0-or-later``
  3175. - ``GPL-3.0*``: ``GPL-3.0-only``, ``GPL-3.0-or-later``
  3176. - ``LGPL-3.0*``: ``LGPL-3.0-only``, ``LGPL-3.0-or-later``
  3177. .. note::
  3178. This functionality is only regularly tested using the following
  3179. setting::
  3180. INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0* AGPL-3.0*"
  3181. Although you can use other settings, you might be required to
  3182. remove dependencies on (or provide alternatives to) components that
  3183. are required to produce a functional system image.
  3184. :term:`INCOMPATIBLE_LICENSE_EXCEPTIONS`
  3185. Specifies a space-separated list of package and license pairs that
  3186. are allowed to be used even if the license is specified in
  3187. :term:`INCOMPATIBLE_LICENSE`. The package and license pairs are
  3188. separated using a colon. Example::
  3189. INCOMPATIBLE_LICENSE_EXCEPTIONS = "gdbserver:GPL-3.0-only gdbserver:LGPL-3.0-only"
  3190. :term:`INHERIT`
  3191. Causes the named class or classes to be inherited globally. Anonymous
  3192. functions in the class or classes are not executed for the base
  3193. configuration and in each individual recipe. The OpenEmbedded build
  3194. system ignores changes to :term:`INHERIT` in individual recipes.
  3195. Classes inherited using :term:`INHERIT` must be located in the
  3196. ``classes-global/`` or ``classes/`` subdirectories.
  3197. For more information on :term:`INHERIT`, see the
  3198. :ref:`bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`"
  3199. section in the BitBake User Manual.
  3200. :term:`INHERIT_DISTRO`
  3201. Lists classes that will be inherited at the distribution level. It is
  3202. unlikely that you want to edit this variable.
  3203. Classes specified in :term:`INHERIT_DISTRO` must be located in the
  3204. ``classes-global/`` or ``classes/`` subdirectories.
  3205. The default value of the variable is set as follows in the
  3206. ``meta/conf/distro/defaultsetup.conf`` file::
  3207. INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool create-spdx"
  3208. :term:`INHIBIT_DEFAULT_DEPS`
  3209. Prevents the default dependencies, namely the C compiler and standard
  3210. C library (libc), from being added to :term:`DEPENDS`.
  3211. This variable is usually used within recipes that do not require any
  3212. compilation using the C compiler.
  3213. Set the variable to "1" to prevent the default dependencies from
  3214. being added.
  3215. :term:`INHIBIT_PACKAGE_DEBUG_SPLIT`
  3216. Prevents the OpenEmbedded build system from splitting out debug
  3217. information during packaging. By default, the build system splits out
  3218. debugging information during the
  3219. :ref:`ref-tasks-package` task. For more information on
  3220. how debug information is split out, see the
  3221. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  3222. variable.
  3223. To prevent the build system from splitting out debug information
  3224. during packaging, set the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable as
  3225. follows::
  3226. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  3227. :term:`INHIBIT_PACKAGE_STRIP`
  3228. If set to "1", causes the build to not strip binaries in resulting
  3229. packages and prevents the ``-dbg`` package from containing the source
  3230. files.
  3231. By default, the OpenEmbedded build system strips binaries and puts
  3232. the debugging symbols into ``${``\ :term:`PN`\ ``}-dbg``.
  3233. Consequently, you should not set :term:`INHIBIT_PACKAGE_STRIP` when you
  3234. plan to debug in general.
  3235. :term:`INHIBIT_SYSROOT_STRIP`
  3236. If set to "1", causes the build to not strip binaries in the
  3237. resulting sysroot.
  3238. By default, the OpenEmbedded build system strips binaries in the
  3239. resulting sysroot. When you specifically set the
  3240. :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit
  3241. this stripping.
  3242. If you want to use this variable, include the :ref:`ref-classes-staging`
  3243. class. This class uses a ``sys_strip()`` function to test for the variable
  3244. and acts accordingly.
  3245. .. note::
  3246. Use of the :term:`INHIBIT_SYSROOT_STRIP` variable occurs in rare and
  3247. special circumstances. For example, suppose you are building
  3248. bare-metal firmware by using an external GCC toolchain. Furthermore,
  3249. even if the toolchain's binaries are strippable, there are other files
  3250. needed for the build that are not strippable.
  3251. :term:`INIT_MANAGER`
  3252. Specifies the system init manager to use. Available options are:
  3253. - ``sysvinit``
  3254. - ``systemd``
  3255. - ``mdev-busybox``
  3256. With ``sysvinit``, the init manager is set to
  3257. :wikipedia:`SysVinit <Init#SysV-style>`, the traditional UNIX init
  3258. system. This is the default choice in the Poky distribution, together with
  3259. the Udev device manager (see the ":ref:`device-manager`" section).
  3260. With ``systemd``, the init manager becomes :wikipedia:`systemd <Systemd>`,
  3261. which comes with the :wikipedia:`udev <Udev>` device manager.
  3262. With ``mdev-busybox``, the init manager becomes the much simpler BusyBox
  3263. init, together with the BusyBox mdev device manager. This is the simplest
  3264. and lightest solution, and probably the best choice for low-end systems
  3265. with a rather slow CPU and a limited amount of RAM.
  3266. More concretely, this is used to include
  3267. ``conf/distro/include/init-manager-${INIT_MANAGER}.inc`` into the global
  3268. configuration. You can have a look at the
  3269. :yocto_git:`meta/conf/distro/include/init-manager-*.inc </poky/tree/meta/conf/distro/include>`
  3270. files for more information, and also the ":ref:`init-manager`"
  3271. section in the Yocto Project Development Tasks Manual.
  3272. :term:`INITRAMFS_DEPLOY_DIR_IMAGE`
  3273. Indicates the deploy directory used by :ref:`ref-tasks-bundle_initramfs`
  3274. where the :term:`INITRAMFS_IMAGE` will be fetched from. This variable is
  3275. set by default to ``${DEPLOY_DIR_IMAGE}`` in the
  3276. :ref:`ref-classes-kernel` class and it's only meant to be changed when
  3277. building an :term:`Initramfs` image from a separate multiconfig via
  3278. :term:`INITRAMFS_MULTICONFIG`.
  3279. :term:`INITRAMFS_FSTYPES`
  3280. Defines the format for the output image of an initial RAM filesystem
  3281. (:term:`Initramfs`), which is used during boot. Supported formats are the
  3282. same as those supported by the
  3283. :term:`IMAGE_FSTYPES` variable.
  3284. The default value of this variable, which is set in the
  3285. ``meta/conf/bitbake.conf`` configuration file in the
  3286. :term:`Source Directory`, is "cpio.gz". The Linux kernel's
  3287. :term:`Initramfs` mechanism, as opposed to the initial RAM filesystem
  3288. :wikipedia:`initrd <Initrd>` mechanism, expects
  3289. an optionally compressed cpio archive.
  3290. :term:`INITRAMFS_IMAGE`
  3291. Specifies the :term:`PROVIDES` name of an image
  3292. recipe that is used to build an initial RAM filesystem (:term:`Initramfs`)
  3293. image. In other words, the :term:`INITRAMFS_IMAGE` variable causes an
  3294. additional recipe to be built as a dependency to whatever root
  3295. filesystem recipe you might be using (e.g. ``core-image-sato``). The
  3296. :term:`Initramfs` image recipe you provide should set
  3297. :term:`IMAGE_FSTYPES` to
  3298. :term:`INITRAMFS_FSTYPES`.
  3299. An :term:`Initramfs` image provides a temporary root filesystem used for
  3300. early system initialization (e.g. loading of modules needed to locate
  3301. and mount the "real" root filesystem).
  3302. .. note::
  3303. See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb``
  3304. recipe in the :term:`Source Directory`
  3305. for an example :term:`Initramfs` recipe. To select this sample recipe as
  3306. the one built to provide the :term:`Initramfs` image, set :term:`INITRAMFS_IMAGE`
  3307. to "core-image-minimal-initramfs".
  3308. You can also find more information by referencing the
  3309. ``meta-poky/conf/templates/default/local.conf.sample.extended``
  3310. configuration file in the Source Directory, the :ref:`ref-classes-image`
  3311. class, and the :ref:`ref-classes-kernel` class to see how to use the
  3312. :term:`INITRAMFS_IMAGE` variable.
  3313. If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no
  3314. :term:`Initramfs` image is built.
  3315. For more information, you can also see the
  3316. :term:`INITRAMFS_IMAGE_BUNDLE`
  3317. variable, which allows the generated image to be bundled inside the
  3318. kernel image. Additionally, for information on creating an :term:`Initramfs`
  3319. image, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3320. in the Yocto Project Development Tasks Manual.
  3321. :term:`INITRAMFS_IMAGE_BUNDLE`
  3322. Controls whether or not the image recipe specified by
  3323. :term:`INITRAMFS_IMAGE` is run through an
  3324. extra pass
  3325. (:ref:`ref-tasks-bundle_initramfs`) during
  3326. kernel compilation in order to build a single binary that contains
  3327. both the kernel image and the initial RAM filesystem (:term:`Initramfs`)
  3328. image. This makes use of the
  3329. :term:`CONFIG_INITRAMFS_SOURCE` kernel
  3330. feature.
  3331. .. note::
  3332. Bundling the :term:`Initramfs` with the kernel conflates the code in the
  3333. :term:`Initramfs` with the GPLv2 licensed Linux kernel binary. Thus only GPLv2
  3334. compatible software may be part of a bundled :term:`Initramfs`.
  3335. .. note::
  3336. Using an extra compilation pass to bundle the :term:`Initramfs` avoids a
  3337. circular dependency between the kernel recipe and the :term:`Initramfs`
  3338. recipe should the :term:`Initramfs` include kernel modules. Should that be
  3339. the case, the :term:`Initramfs` recipe depends on the kernel for the
  3340. kernel modules, and the kernel depends on the :term:`Initramfs` recipe
  3341. since the :term:`Initramfs` is bundled inside the kernel image.
  3342. The combined binary is deposited into the ``tmp/deploy`` directory,
  3343. which is part of the :term:`Build Directory`.
  3344. Setting the variable to "1" in a configuration file causes the
  3345. OpenEmbedded build system to generate a kernel image with the
  3346. :term:`Initramfs` specified in :term:`INITRAMFS_IMAGE` bundled within::
  3347. INITRAMFS_IMAGE_BUNDLE = "1"
  3348. By default, the :ref:`ref-classes-kernel` class sets this variable to a
  3349. null string as follows::
  3350. INITRAMFS_IMAGE_BUNDLE ?= ""
  3351. .. note::
  3352. You must set the :term:`INITRAMFS_IMAGE_BUNDLE` variable in a
  3353. configuration file. You cannot set the variable in a recipe file.
  3354. See the
  3355. :yocto_git:`local.conf.sample.extended </poky/tree/meta-poky/conf/templates/default/local.conf.sample.extended>`
  3356. file for additional information. Also, for information on creating an
  3357. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3358. in the Yocto Project Development Tasks Manual.
  3359. :term:`INITRAMFS_IMAGE_NAME`
  3360. This value needs to stay in sync with :term:`IMAGE_LINK_NAME`, but with
  3361. :term:`INITRAMFS_IMAGE` instead of :term:`IMAGE_BASENAME`. The default value
  3362. is set as follows:
  3363. INITRAMFS_IMAGE_NAME ?= "${@['${INITRAMFS_IMAGE}${IMAGE_MACHINE_SUFFIX}', ''][d.getVar('INITRAMFS_IMAGE') == '']}"
  3364. That is, if :term:`INITRAMFS_IMAGE` is set, the value of
  3365. :term:`INITRAMFS_IMAGE_NAME` will be set based upon
  3366. :term:`INITRAMFS_IMAGE` and :term:`IMAGE_MACHINE_SUFFIX`.
  3367. :term:`INITRAMFS_LINK_NAME`
  3368. The link name of the initial RAM filesystem image. This variable is
  3369. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3370. follows::
  3371. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  3372. The value of the
  3373. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3374. file, has the following value::
  3375. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3376. See the :term:`MACHINE` variable for additional
  3377. information.
  3378. :term:`INITRAMFS_MULTICONFIG`
  3379. Defines the multiconfig to create a multiconfig dependency to be used by
  3380. the :ref:`ref-classes-kernel` class.
  3381. This allows the kernel to bundle an :term:`INITRAMFS_IMAGE` coming from
  3382. a separate multiconfig, this is meant to be used in addition to :term:`INITRAMFS_DEPLOY_DIR_IMAGE`.
  3383. For more information on how to bundle an :term:`Initramfs` image from a separate
  3384. multiconfig see the ":ref:`dev-manual/building:Bundling an Initramfs Image From a Separate Multiconfig`"
  3385. section in the Yocto Project Development Tasks Manual.
  3386. :term:`INITRAMFS_NAME`
  3387. The base name of the initial RAM filesystem image. This variable is
  3388. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3389. follows::
  3390. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  3391. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3392. :term:`INITRD`
  3393. Indicates list of filesystem images to concatenate and use as an
  3394. initial RAM disk (``initrd``).
  3395. The :term:`INITRD` variable is an optional variable used with the
  3396. :ref:`ref-classes-image-live` class.
  3397. :term:`INITRD_IMAGE`
  3398. When building a "live" bootable image (i.e. when
  3399. :term:`IMAGE_FSTYPES` contains "live"),
  3400. :term:`INITRD_IMAGE` specifies the image recipe that should be built to
  3401. provide the initial RAM disk image. The default value is
  3402. "core-image-minimal-initramfs".
  3403. See the :ref:`ref-classes-image-live` class for more information.
  3404. :term:`INITSCRIPT_NAME`
  3405. The filename of the initialization script as installed to
  3406. ``${sysconfdir}/init.d``.
  3407. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3408. The variable is mandatory.
  3409. :term:`INITSCRIPT_PACKAGES`
  3410. A list of the packages that contain initscripts. If multiple packages
  3411. are specified, you need to append the package name to the other
  3412. ``INITSCRIPT_*`` as an override.
  3413. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3414. The variable is optional and defaults to the :term:`PN`
  3415. variable.
  3416. :term:`INITSCRIPT_PARAMS`
  3417. Specifies the options to pass to ``update-rc.d``. Here is an example::
  3418. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  3419. In this example, the script has a runlevel of 99, starts the script
  3420. in initlevels 2 and 5, and stops the script in levels 0, 1 and 6.
  3421. The variable's default value is "defaults", which is set in the
  3422. :ref:`ref-classes-update-rc.d` class.
  3423. The value in :term:`INITSCRIPT_PARAMS` is passed through to the
  3424. ``update-rc.d`` command. For more information on valid parameters,
  3425. please see the ``update-rc.d`` manual page at
  3426. https://manpages.debian.org/buster/init-system-helpers/update-rc.d.8.en.html
  3427. :term:`INSANE_SKIP`
  3428. Specifies the QA checks to skip for a specific package within a
  3429. recipe. For example, to skip the check for symbolic link ``.so``
  3430. files in the main package of a recipe, add the following to the
  3431. recipe. The package name override must be used, which in this example
  3432. is ``${PN}``::
  3433. INSANE_SKIP:${PN} += "dev-so"
  3434. See the ":ref:`ref-classes-insane`" section for a
  3435. list of the valid QA checks you can specify using this variable.
  3436. :term:`INSTALL_TIMEZONE_FILE`
  3437. By default, the ``tzdata`` recipe packages an ``/etc/timezone`` file.
  3438. Set the :term:`INSTALL_TIMEZONE_FILE` variable to "0" at the
  3439. configuration level to disable this behavior.
  3440. :term:`IPK_FEED_URIS`
  3441. When the IPK backend is in use and package management is enabled on
  3442. the target, you can use this variable to set up ``opkg`` in the
  3443. target image to point to package feeds on a nominated server. Once
  3444. the feed is established, you can perform installations or upgrades
  3445. using the package manager at runtime.
  3446. :term:`KARCH`
  3447. Defines the kernel architecture used when assembling the
  3448. configuration. Architectures supported for this release are:
  3449. - powerpc
  3450. - i386
  3451. - x86_64
  3452. - arm
  3453. - qemu
  3454. - mips
  3455. You define the :term:`KARCH` variable in the :ref:`kernel-dev/advanced:bsp descriptions`.
  3456. :term:`KBRANCH`
  3457. A regular expression used by the build process to explicitly identify
  3458. the kernel branch that is validated, patched, and configured during a
  3459. build. You must set this variable to ensure the exact kernel branch
  3460. you want is being used by the build process.
  3461. Values for this variable are set in the kernel's recipe file and the
  3462. kernel's append file. For example, if you are using the
  3463. ``linux-yocto_4.12`` kernel, the kernel recipe file is the
  3464. ``meta/recipes-kernel/linux/linux-yocto_4.12.bb`` file. :term:`KBRANCH`
  3465. is set as follows in that kernel recipe file::
  3466. KBRANCH ?= "standard/base"
  3467. This variable is also used from the kernel's append file to identify
  3468. the kernel branch specific to a particular machine or target
  3469. hardware. Continuing with the previous kernel example, the kernel's
  3470. append file is located in the
  3471. BSP layer for a given machine. For example, the append file for the
  3472. Beaglebone and generic versions of both 32 and 64-bit IA
  3473. machines (``meta-yocto-bsp``) is named
  3474. ``meta-yocto-bsp/recipes-kernel/linux/linux-yocto_6.1.bbappend``.
  3475. Here are the related statements from that append file::
  3476. KBRANCH:genericx86 = "v6.1/standard/base"
  3477. KBRANCH:genericx86-64 = "v6.1/standard/base"
  3478. KBRANCH:beaglebone-yocto = "v6.1/standard/beaglebone"
  3479. The :term:`KBRANCH` statements
  3480. identify the kernel branch to use when building for each supported
  3481. BSP.
  3482. :term:`KBUILD_DEFCONFIG`
  3483. When used with the :ref:`ref-classes-kernel-yocto`
  3484. class, specifies an "in-tree" kernel configuration file for use
  3485. during a kernel build.
  3486. Typically, when using a ``defconfig`` to configure a kernel during a
  3487. build, you place the file in your layer in the same manner as you
  3488. would place patch files and configuration fragment files (i.e.
  3489. "out-of-tree"). However, if you want to use a ``defconfig`` file that
  3490. is part of the kernel tree (i.e. "in-tree"), you can use the
  3491. :term:`KBUILD_DEFCONFIG` variable and append the
  3492. :term:`KMACHINE` variable to point to the
  3493. ``defconfig`` file.
  3494. To use the variable, set it in the append file for your kernel recipe
  3495. using the following form::
  3496. KBUILD_DEFCONFIG:<machine> ?= "defconfig_file"
  3497. Here is an example from a "raspberrypi2" :term:`MACHINE` build that uses
  3498. a ``defconfig`` file named "bcm2709_defconfig"::
  3499. KBUILD_DEFCONFIG:raspberrypi2 = "bcm2709_defconfig"
  3500. As an alternative, you can use the following within your append file::
  3501. KBUILD_DEFCONFIG:pn-linux-yocto ?= "defconfig_file"
  3502. For more
  3503. information on how to use the :term:`KBUILD_DEFCONFIG` variable, see the
  3504. ":ref:`kernel-dev/common:using an "in-tree" \`\`defconfig\`\` file`"
  3505. section in the Yocto Project Linux Kernel Development Manual.
  3506. :term:`KCONFIG_MODE`
  3507. When used with the :ref:`ref-classes-kernel-yocto`
  3508. class, specifies the kernel configuration values to use for options
  3509. not specified in the provided ``defconfig`` file. Valid options are::
  3510. KCONFIG_MODE = "alldefconfig"
  3511. KCONFIG_MODE = "allnoconfig"
  3512. In ``alldefconfig`` mode the options not explicitly specified will be
  3513. assigned their Kconfig default value. In ``allnoconfig`` mode the
  3514. options not explicitly specified will be disabled in the kernel
  3515. config.
  3516. In case :term:`KCONFIG_MODE` is not set the behaviour will depend on where
  3517. the ``defconfig`` file is coming from. An "in-tree" ``defconfig`` file
  3518. will be handled in ``alldefconfig`` mode, a ``defconfig`` file placed
  3519. in ``${WORKDIR}`` through a meta-layer will be handled in
  3520. ``allnoconfig`` mode.
  3521. An "in-tree" ``defconfig`` file can be selected via the
  3522. :term:`KBUILD_DEFCONFIG` variable. :term:`KCONFIG_MODE` does not need to
  3523. be explicitly set.
  3524. A ``defconfig`` file compatible with ``allnoconfig`` mode can be
  3525. generated by copying the ``.config`` file from a working Linux kernel
  3526. build, renaming it to ``defconfig`` and placing it into the Linux
  3527. kernel ``${WORKDIR}`` through your meta-layer. :term:`KCONFIG_MODE` does
  3528. not need to be explicitly set.
  3529. A ``defconfig`` file compatible with ``alldefconfig`` mode can be
  3530. generated using the
  3531. :ref:`ref-tasks-savedefconfig`
  3532. task and placed into the Linux kernel ``${WORKDIR}`` through your
  3533. meta-layer. Explicitely set :term:`KCONFIG_MODE`::
  3534. KCONFIG_MODE = "alldefconfig"
  3535. :term:`KERNEL_ALT_IMAGETYPE`
  3536. Specifies an alternate kernel image type for creation in addition to
  3537. the kernel image type specified using the :term:`KERNEL_IMAGETYPE` and
  3538. :term:`KERNEL_IMAGETYPES` variables.
  3539. :term:`KERNEL_ARTIFACT_NAME`
  3540. Specifies the name of all of the build artifacts. You can change the
  3541. name of the artifacts by changing the :term:`KERNEL_ARTIFACT_NAME`
  3542. variable.
  3543. The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the
  3544. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file, has the
  3545. following default value::
  3546. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  3547. See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`IMAGE_MACHINE_SUFFIX`
  3548. and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
  3549. :term:`KERNEL_CLASSES`
  3550. A list of classes defining kernel image types that the
  3551. :ref:`ref-classes-kernel` class should inherit. You typically
  3552. append this variable to enable extended image types. An example is
  3553. ":ref:`ref-classes-kernel-fitimage`", which enables
  3554. FIT image support and resides in ``meta/classes-recipe/kernel-fitimage.bbclass``.
  3555. You can register custom kernel image types with the
  3556. :ref:`ref-classes-kernel` class using this variable.
  3557. :term:`KERNEL_CONSOLE`
  3558. The :term:`KERNEL_CONSOLE` variable holds the value of the ``console``
  3559. parameter of the kernel command line and can be used in places such as a
  3560. ``wks`` description file for :ref:`Wic images <dev-manual/wic:creating
  3561. partitioned images using wic>`.
  3562. The default value of this variable is extracted from the first console
  3563. device and setting in :term:`SERIAL_CONSOLES`. If nothing is found in
  3564. :term:`SERIAL_CONSOLES`, the default value is set to ``ttyS0,115200``).
  3565. For more information, see the `Kernel command-line documentation
  3566. <https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html>`__.
  3567. :term:`KERNEL_DANGLING_FEATURES_WARN_ONLY`
  3568. When kernel configuration fragments are missing for some
  3569. :term:`KERNEL_FEATURES` specified by layers or BSPs,
  3570. building and configuring the kernel stops with an error.
  3571. You can turn these errors into warnings by setting the
  3572. following in ``conf/local.conf``::
  3573. KERNEL_DANGLING_FEATURES_WARN_ONLY = "1"
  3574. You will still be warned that runtime issues may occur,
  3575. but at least the kernel configuration and build process will
  3576. be allowed to continue.
  3577. :term:`KERNEL_DEBUG_TIMESTAMPS`
  3578. If set to "1", enables timestamping functionality during building
  3579. the kernel. The default is "0" to disable this for reproducibility
  3580. reasons.
  3581. :term:`KERNEL_DEPLOY_DEPEND`
  3582. Provides a means of controlling the dependency of an image recipe
  3583. on the kernel. The default value is "virtual/kernel:do_deploy",
  3584. however for a small initramfs image or other images that do not
  3585. need the kernel, this can be set to "" in the image recipe.
  3586. :term:`KERNEL_DEVICETREE`
  3587. Specifies the name of the generated Linux kernel device tree (i.e.
  3588. the ``.dtb``) file.
  3589. .. note::
  3590. There is legacy support for specifying the full path to the device
  3591. tree. However, providing just the ``.dtb`` file is preferred.
  3592. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3593. class must be inherited.
  3594. :term:`KERNEL_DEVICETREE_BUNDLE`
  3595. When set to "1", this variable allows to bundle the Linux kernel
  3596. and the Device Tree Binary together in a single file.
  3597. This feature is currently only supported on the "arm" (32 bit)
  3598. architecture.
  3599. This variable is set to "0" by default by the
  3600. :ref:`ref-classes-kernel-devicetree` class.
  3601. :term:`KERNEL_DTB_LINK_NAME`
  3602. The link name of the kernel device tree binary (DTB). This variable
  3603. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3604. follows::
  3605. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3606. The
  3607. value of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in
  3608. the same file, has the following value::
  3609. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3610. See the :term:`MACHINE` variable for additional
  3611. information.
  3612. :term:`KERNEL_DTB_NAME`
  3613. The base name of the kernel device tree binary (DTB). This variable
  3614. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3615. follows::
  3616. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3617. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3618. :term:`KERNEL_DTBDEST`
  3619. This variable, used by the :ref:`ref-classes-kernel-devicetree`
  3620. class, allows to change the installation directory of the DTB
  3621. (Device Tree Binary) files.
  3622. It is set by default to "${KERNEL_IMAGEDEST}" by the
  3623. :ref:`ref-classes-kernel` class.
  3624. :term:`KERNEL_DTBVENDORED`
  3625. This variable, used by the :ref:`ref-classes-kernel-devicetree`,
  3626. allows to ignore vendor subdirectories when installing DTB
  3627. (Device Tree Binary) files, when it is set to "false".
  3628. To keep vendor subdirectories, set this variable to "true".
  3629. It is set by default to "false" by the :ref:`ref-classes-kernel` class.
  3630. :term:`KERNEL_DTC_FLAGS`
  3631. Specifies the ``dtc`` flags that are passed to the Linux kernel build
  3632. system when generating the device trees (via ``DTC_FLAGS`` environment
  3633. variable).
  3634. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3635. class must be inherited.
  3636. :term:`KERNEL_EXTRA_ARGS`
  3637. Specifies additional ``make`` command-line arguments the OpenEmbedded
  3638. build system passes on when compiling the kernel.
  3639. :term:`KERNEL_FEATURES`
  3640. Includes additional kernel metadata. In the OpenEmbedded build
  3641. system, the default Board Support Packages (BSPs)
  3642. :term:`Metadata` is provided through the
  3643. :term:`KMACHINE` and :term:`KBRANCH`
  3644. variables. You can use the :term:`KERNEL_FEATURES` variable from within
  3645. the kernel recipe or kernel append file to further add metadata for
  3646. all BSPs or specific BSPs.
  3647. The metadata you add through this variable includes config fragments
  3648. and features descriptions, which usually includes patches as well as
  3649. config fragments. You typically override the :term:`KERNEL_FEATURES`
  3650. variable for a specific machine. In this way, you can provide
  3651. validated, but optional, sets of kernel configurations and features.
  3652. For example, the following example from the ``linux-yocto-rt_4.12``
  3653. kernel recipe adds "netfilter" and "taskstats" features to all BSPs
  3654. as well as "virtio" configurations to all QEMU machines. The last two
  3655. statements add specific configurations to targeted machine types::
  3656. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  3657. KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
  3658. KERNEL_FEATURES:append:qemuall = " cfg/virtio.scc"
  3659. KERNEL_FEATURES:append:qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  3660. KERNEL_FEATURES:append:qemux86-64 = " cfg/sound.scc"
  3661. :term:`KERNEL_FIT_LINK_NAME`
  3662. The link name of the kernel flattened image tree (FIT) image. This
  3663. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3664. file as follows::
  3665. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3666. The value of the
  3667. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3668. file, has the following value::
  3669. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3670. See the :term:`MACHINE` variable for additional
  3671. information.
  3672. :term:`KERNEL_FIT_NAME`
  3673. The base name of the kernel flattened image tree (FIT) image. This
  3674. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3675. file as follows::
  3676. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3677. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3678. :term:`KERNEL_IMAGE_LINK_NAME`
  3679. The link name for the kernel image. This variable is set in the
  3680. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3681. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3682. The value of
  3683. the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3684. file, has the following value::
  3685. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3686. See the :term:`MACHINE` variable for additional
  3687. information.
  3688. :term:`KERNEL_IMAGE_MAXSIZE`
  3689. Specifies the maximum size of the kernel image file in kilobytes. If
  3690. :term:`KERNEL_IMAGE_MAXSIZE` is set, the size of the kernel image file is
  3691. checked against the set value during the
  3692. :ref:`ref-tasks-sizecheck` task. The task fails if
  3693. the kernel image file is larger than the setting.
  3694. :term:`KERNEL_IMAGE_MAXSIZE` is useful for target devices that have a
  3695. limited amount of space in which the kernel image must be stored.
  3696. By default, this variable is not set, which means the size of the
  3697. kernel image is not checked.
  3698. :term:`KERNEL_IMAGE_NAME`
  3699. The base name of the kernel image. This variable is set in the
  3700. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3701. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3702. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3703. :term:`KERNEL_IMAGETYPE`
  3704. The type of kernel to build for a device, usually set by the machine
  3705. configuration files and defaults to "zImage". This variable is used
  3706. when building the kernel and is passed to ``make`` as the target to
  3707. build.
  3708. To build additional kernel image types, use :term:`KERNEL_IMAGETYPES`.
  3709. :term:`KERNEL_IMAGETYPES`
  3710. Lists additional types of kernel images to build for a device in addition
  3711. to image type specified in :term:`KERNEL_IMAGETYPE`. Usually set by the
  3712. machine configuration files.
  3713. :term:`KERNEL_MODULE_AUTOLOAD`
  3714. Lists kernel modules that need to be auto-loaded during boot.
  3715. .. note::
  3716. This variable replaces the deprecated :term:`module_autoload`
  3717. variable.
  3718. You can use the :term:`KERNEL_MODULE_AUTOLOAD` variable anywhere that it
  3719. can be recognized by the kernel recipe or by an out-of-tree kernel
  3720. module recipe (e.g. a machine configuration file, a distribution
  3721. configuration file, an append file for the recipe, or the recipe
  3722. itself).
  3723. Specify it as follows::
  3724. KERNEL_MODULE_AUTOLOAD += "module_name1 module_name2 module_name3"
  3725. Including :term:`KERNEL_MODULE_AUTOLOAD` causes the OpenEmbedded build
  3726. system to populate the ``/etc/modules-load.d/modname.conf`` file with
  3727. the list of modules to be auto-loaded on boot. The modules appear
  3728. one-per-line in the file. Here is an example of the most common use
  3729. case::
  3730. KERNEL_MODULE_AUTOLOAD += "module_name"
  3731. For information on how to populate the ``modname.conf`` file with
  3732. ``modprobe.d`` syntax lines, see the :term:`KERNEL_MODULE_PROBECONF` variable.
  3733. :term:`KERNEL_MODULE_PROBECONF`
  3734. Provides a list of modules for which the OpenEmbedded build system
  3735. expects to find ``module_conf_``\ modname values that specify
  3736. configuration for each of the modules. For information on how to
  3737. provide those module configurations, see the
  3738. :term:`module_conf_* <module_conf>` variable.
  3739. :term:`KERNEL_PACKAGE_NAME`
  3740. Specifies the base name of the kernel packages, such as "kernel"
  3741. in the kernel packages such as "kernel-modules", "kernel-image" and
  3742. "kernel-dbg".
  3743. The default value for this variable is set to "kernel" by the
  3744. :ref:`ref-classes-kernel` class.
  3745. :term:`KERNEL_PATH`
  3746. The location of the kernel sources. This variable is set to the value
  3747. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  3748. class. For information on how this variable is used, see the
  3749. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3750. section in the Yocto Project Linux Kernel Development Manual.
  3751. To help maximize compatibility with out-of-tree drivers used to build
  3752. modules, the OpenEmbedded build system also recognizes and uses the
  3753. :term:`KERNEL_SRC` variable, which is identical to
  3754. the :term:`KERNEL_PATH` variable. Both variables are common variables
  3755. used by external Makefiles to point to the kernel source directory.
  3756. :term:`KERNEL_SRC`
  3757. The location of the kernel sources. This variable is set to the value
  3758. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  3759. class. For information on how this variable is used, see the
  3760. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3761. section in the Yocto Project Linux Kernel Development Manual.
  3762. To help maximize compatibility with out-of-tree drivers used to build
  3763. modules, the OpenEmbedded build system also recognizes and uses the
  3764. :term:`KERNEL_PATH` variable, which is identical
  3765. to the :term:`KERNEL_SRC` variable. Both variables are common variables
  3766. used by external Makefiles to point to the kernel source directory.
  3767. :term:`KERNEL_STRIP`
  3768. Allows to specific which ``strip`` command to use to strip the kernel
  3769. binary, typically either GNU binutils ``strip`` or ``llvm-strip``.
  3770. :term:`KERNEL_VERSION`
  3771. Specifies the version of the kernel as extracted from ``version.h``
  3772. or ``utsrelease.h`` within the kernel sources. Effects of setting
  3773. this variable do not take effect until the kernel has been
  3774. configured. Consequently, attempting to refer to this variable in
  3775. contexts prior to configuration will not work.
  3776. :term:`KERNELDEPMODDEPEND`
  3777. Specifies whether the data referenced through
  3778. :term:`PKGDATA_DIR` is needed or not.
  3779. :term:`KERNELDEPMODDEPEND` does not control whether or not that data
  3780. exists, but simply whether or not it is used. If you do not need to
  3781. use the data, set the :term:`KERNELDEPMODDEPEND` variable in your
  3782. :term:`Initramfs` recipe. Setting the variable there when the data is not
  3783. needed avoids a potential dependency loop.
  3784. :term:`KFEATURE_DESCRIPTION`
  3785. Provides a short description of a configuration fragment. You use
  3786. this variable in the ``.scc`` file that describes a configuration
  3787. fragment file. Here is the variable used in a file named ``smp.scc``
  3788. to describe SMP being enabled::
  3789. define KFEATURE_DESCRIPTION "Enable SMP"
  3790. :term:`KMACHINE`
  3791. The machine as known by the kernel. Sometimes the machine name used
  3792. by the kernel does not match the machine name used by the
  3793. OpenEmbedded build system. For example, the machine name that the
  3794. OpenEmbedded build system understands as ``core2-32-intel-common``
  3795. goes by a different name in the Linux Yocto kernel. The kernel
  3796. understands that machine as ``intel-core2-32``. For cases like these,
  3797. the :term:`KMACHINE` variable maps the kernel machine name to the
  3798. OpenEmbedded build system machine name.
  3799. These mappings between different names occur in the Yocto Linux
  3800. Kernel's ``meta`` branch. As an example take a look in the
  3801. ``common/recipes-kernel/linux/linux-yocto_3.19.bbappend`` file::
  3802. LINUX_VERSION:core2-32-intel-common = "3.19.0"
  3803. COMPATIBLE_MACHINE:core2-32-intel-common = "${MACHINE}"
  3804. SRCREV_meta:core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  3805. SRCREV_machine:core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  3806. KMACHINE:core2-32-intel-common = "intel-core2-32"
  3807. KBRANCH:core2-32-intel-common = "standard/base"
  3808. KERNEL_FEATURES:append:core2-32-intel-common = " ${KERNEL_FEATURES_INTEL_COMMON}"
  3809. The :term:`KMACHINE` statement says
  3810. that the kernel understands the machine name as "intel-core2-32".
  3811. However, the OpenEmbedded build system understands the machine as
  3812. "core2-32-intel-common".
  3813. :term:`KTYPE`
  3814. Defines the kernel type to be used in assembling the configuration.
  3815. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3816. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3817. section in the
  3818. Yocto Project Linux Kernel Development Manual for more information on
  3819. kernel types.
  3820. You define the :term:`KTYPE` variable in the
  3821. :ref:`kernel-dev/advanced:bsp descriptions`. The
  3822. value you use must match the value used for the
  3823. :term:`LINUX_KERNEL_TYPE` value used by the
  3824. kernel recipe.
  3825. :term:`LABELS`
  3826. Provides a list of targets for automatic configuration.
  3827. See the :ref:`ref-classes-grub-efi` class for more
  3828. information on how this variable is used.
  3829. :term:`LAYERDEPENDS`
  3830. Lists the layers, separated by spaces, on which this recipe depends.
  3831. Optionally, you can specify a specific layer version for a dependency
  3832. by adding it to the end of the layer name. Here is an example::
  3833. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  3834. In this previous example,
  3835. version 3 of "anotherlayer" is compared against
  3836. :term:`LAYERVERSION`\ ``_anotherlayer``.
  3837. An error is produced if any dependency is missing or the version
  3838. numbers (if specified) do not match exactly. This variable is used in
  3839. the ``conf/layer.conf`` file and must be suffixed with the name of
  3840. the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
  3841. :term:`LAYERDIR`
  3842. When used inside the ``layer.conf`` configuration file, this variable
  3843. provides the path of the current layer. This variable is not
  3844. available outside of ``layer.conf`` and references are expanded
  3845. immediately when parsing of the file completes.
  3846. :term:`LAYERDIR_RE`
  3847. See :term:`bitbake:LAYERDIR_RE` in the BitBake manual.
  3848. :term:`LAYERRECOMMENDS`
  3849. Lists the layers, separated by spaces, recommended for use with this
  3850. layer.
  3851. Optionally, you can specify a specific layer version for a
  3852. recommendation by adding the version to the end of the layer name.
  3853. Here is an example::
  3854. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  3855. In this previous example, version 3 of "anotherlayer" is compared
  3856. against ``LAYERVERSION_anotherlayer``.
  3857. This variable is used in the ``conf/layer.conf`` file and must be
  3858. suffixed with the name of the specific layer (e.g.
  3859. ``LAYERRECOMMENDS_mylayer``).
  3860. :term:`LAYERSERIES_COMPAT`
  3861. See :term:`bitbake:LAYERSERIES_COMPAT` in the BitBake manual.
  3862. :term:`LAYERVERSION`
  3863. Optionally specifies the version of a layer as a single number. You
  3864. can use this within :term:`LAYERDEPENDS` for
  3865. another layer in order to depend on a specific version of the layer.
  3866. This variable is used in the ``conf/layer.conf`` file and must be
  3867. suffixed with the name of the specific layer (e.g.
  3868. ``LAYERVERSION_mylayer``).
  3869. :term:`LD`
  3870. The minimal command and arguments used to run the linker.
  3871. :term:`LDFLAGS`
  3872. Specifies the flags to pass to the linker. This variable is exported
  3873. to an environment variable and thus made visible to the software
  3874. being built during the compilation step.
  3875. Default initialization for :term:`LDFLAGS` varies depending on what is
  3876. being built:
  3877. - :term:`TARGET_LDFLAGS` when building for the
  3878. target
  3879. - :term:`BUILD_LDFLAGS` when building for the
  3880. build host (i.e. ``-native``)
  3881. - :term:`BUILDSDK_LDFLAGS` when building for
  3882. an SDK (i.e. ``nativesdk-``)
  3883. :term:`LEAD_SONAME`
  3884. Specifies the lead (or primary) compiled library file (i.e. ``.so``)
  3885. that the :ref:`ref-classes-debian` class applies its
  3886. naming policy to given a recipe that packages multiple libraries.
  3887. This variable works in conjunction with the :ref:`ref-classes-debian`
  3888. class.
  3889. :term:`LIC_FILES_CHKSUM`
  3890. Checksums of the license text in the recipe source code.
  3891. This variable tracks changes in license text of the source code
  3892. files. If the license text is changed, it will trigger a build
  3893. failure, which gives the developer an opportunity to review any
  3894. license change.
  3895. This variable must be defined for all recipes (unless
  3896. :term:`LICENSE` is set to "CLOSED").
  3897. For more information, see the ":ref:`dev-manual/licenses:tracking license changes`"
  3898. section in the Yocto Project Development Tasks Manual.
  3899. :term:`LICENSE`
  3900. The list of source licenses for the recipe. Follow these rules:
  3901. - Do not use spaces within individual license names.
  3902. - Separate license names using \| (pipe) when there is a choice
  3903. between licenses.
  3904. - Separate license names using & (ampersand) when there are
  3905. multiple licenses for different parts of the source.
  3906. - You can use spaces between license names.
  3907. - For standard licenses, use the names of the files in
  3908. ``meta/files/common-licenses/`` or the
  3909. :term:`SPDXLICENSEMAP` flag names defined in
  3910. ``meta/conf/licenses.conf``.
  3911. Here are some examples::
  3912. LICENSE = "LGPL-2.1-only | GPL-3.0-only"
  3913. LICENSE = "MPL-1.0 & LGPL-2.1-only"
  3914. LICENSE = "GPL-2.0-or-later"
  3915. The first example is from the
  3916. recipes for Qt, which the user may choose to distribute under either
  3917. the LGPL version 2.1 or GPL version 3. The second example is from
  3918. Cairo where two licenses cover different parts of the source code.
  3919. The final example is from ``sysstat``, which presents a single
  3920. license.
  3921. You can also specify licenses on a per-package basis to handle
  3922. situations where components of the output have different licenses.
  3923. For example, a piece of software whose code is licensed under GPLv2
  3924. but has accompanying documentation licensed under the GNU Free
  3925. Documentation License 1.2 could be specified as follows::
  3926. LICENSE = "GFDL-1.2 & GPL-2.0-only"
  3927. LICENSE:${PN} = "GPL-2.0.only"
  3928. LICENSE:${PN}-doc = "GFDL-1.2"
  3929. :term:`LICENSE_CREATE_PACKAGE`
  3930. Setting :term:`LICENSE_CREATE_PACKAGE` to "1" causes the OpenEmbedded
  3931. build system to create an extra package (i.e.
  3932. ``${``\ :term:`PN`\ ``}-lic``) for each recipe and to add
  3933. those packages to the
  3934. :term:`RRECOMMENDS`\ ``:${PN}``.
  3935. The ``${PN}-lic`` package installs a directory in
  3936. ``/usr/share/licenses`` named ``${PN}``, which is the recipe's base
  3937. name, and installs files in that directory that contain license and
  3938. copyright information (i.e. copies of the appropriate license files
  3939. from ``meta/common-licenses`` that match the licenses specified in
  3940. the :term:`LICENSE` variable of the recipe metadata
  3941. and copies of files marked in
  3942. :term:`LIC_FILES_CHKSUM` as containing
  3943. license text).
  3944. For related information on providing license text, see the
  3945. :term:`COPY_LIC_DIRS` variable, the
  3946. :term:`COPY_LIC_MANIFEST` variable, and the
  3947. ":ref:`dev-manual/licenses:providing license text`"
  3948. section in the Yocto Project Development Tasks Manual.
  3949. :term:`LICENSE_FLAGS`
  3950. Specifies additional flags for a recipe you must allow through
  3951. :term:`LICENSE_FLAGS_ACCEPTED` in
  3952. order for the recipe to be built. When providing multiple flags,
  3953. separate them with spaces.
  3954. This value is independent of :term:`LICENSE` and is
  3955. typically used to mark recipes that might require additional licenses
  3956. in order to be used in a commercial product. For more information,
  3957. see the
  3958. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3959. section in the Yocto Project Development Tasks Manual.
  3960. :term:`LICENSE_FLAGS_ACCEPTED`
  3961. Lists license flags that when specified in
  3962. :term:`LICENSE_FLAGS` within a recipe should not
  3963. prevent that recipe from being built. For more information, see the
  3964. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3965. section in the Yocto Project Development Tasks Manual.
  3966. :term:`LICENSE_FLAGS_DETAILS`
  3967. Adds details about a flag in :term:`LICENSE_FLAGS`. This way,
  3968. if such a flag is not accepted through :term:`LICENSE_FLAGS_ACCEPTED`,
  3969. the error message will be more informative, containing the specified
  3970. extra details.
  3971. For example, a recipe with an EULA may set::
  3972. LICENSE_FLAGS = "FooBar-EULA"
  3973. LICENSE_FLAGS_DETAILS[FooBar-EULA] = "For further details, see https://example.com/eula."
  3974. If ``Foobar-EULA`` isn't in :term:`LICENSE_FLAGS_ACCEPTED`, the
  3975. error message is more useful::
  3976. Has a restricted license 'FooBar-EULA' which is not listed in your LICENSE_FLAGS_ACCEPTED.
  3977. For further details, see https://example.com/eula.
  3978. :term:`LICENSE_PATH`
  3979. Path to additional licenses used during the build. By default, the
  3980. OpenEmbedded build system uses :term:`COMMON_LICENSE_DIR` to define the
  3981. directory that holds common license text used during the build. The
  3982. :term:`LICENSE_PATH` variable allows you to extend that location to other
  3983. areas that have additional licenses::
  3984. LICENSE_PATH += "path-to-additional-common-licenses"
  3985. :term:`LINUX_KERNEL_TYPE`
  3986. Defines the kernel type to be used in assembling the configuration.
  3987. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3988. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3989. section in the
  3990. Yocto Project Linux Kernel Development Manual for more information on
  3991. kernel types.
  3992. If you do not specify a :term:`LINUX_KERNEL_TYPE`, it defaults to
  3993. "standard". Together with :term:`KMACHINE`, the
  3994. :term:`LINUX_KERNEL_TYPE` variable defines the search arguments used by
  3995. the kernel tools to find the appropriate description within the
  3996. kernel :term:`Metadata` with which to build out the sources
  3997. and configuration.
  3998. :term:`LINUX_VERSION`
  3999. The Linux version from ``kernel.org`` on which the Linux kernel image
  4000. being built using the OpenEmbedded build system is based. You define
  4001. this variable in the kernel recipe. For example, the
  4002. ``linux-yocto-3.4.bb`` kernel recipe found in
  4003. ``meta/recipes-kernel/linux`` defines the variables as follows::
  4004. LINUX_VERSION ?= "3.4.24"
  4005. The :term:`LINUX_VERSION` variable is used to define :term:`PV`
  4006. for the recipe::
  4007. PV = "${LINUX_VERSION}+git"
  4008. :term:`LINUX_VERSION_EXTENSION`
  4009. A string extension compiled into the version string of the Linux
  4010. kernel built with the OpenEmbedded build system. You define this
  4011. variable in the kernel recipe. For example, the linux-yocto kernel
  4012. recipes all define the variable as follows::
  4013. LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
  4014. Defining this variable essentially sets the Linux kernel
  4015. configuration item ``CONFIG_LOCALVERSION``, which is visible through
  4016. the ``uname`` command. Here is an example that shows the extension
  4017. assuming it was set as previously shown::
  4018. $ uname -r
  4019. 3.7.0-rc8-custom
  4020. :term:`LOG_DIR`
  4021. Specifies the directory to which the OpenEmbedded build system writes
  4022. overall log files. The default directory is ``${TMPDIR}/log``.
  4023. For the directory containing logs specific to each task, see the
  4024. :term:`T` variable.
  4025. :term:`MACHINE`
  4026. Specifies the target device for which the image is built. You define
  4027. :term:`MACHINE` in the ``local.conf`` file found in the
  4028. :term:`Build Directory`. By default, :term:`MACHINE` is set to
  4029. "qemux86", which is an x86-based architecture machine to be emulated
  4030. using QEMU::
  4031. MACHINE ?= "qemux86"
  4032. The variable corresponds to a machine configuration file of the same
  4033. name, through which machine-specific configurations are set. Thus,
  4034. when :term:`MACHINE` is set to "qemux86", the corresponding
  4035. ``qemux86.conf`` machine configuration file can be found in
  4036. the :term:`Source Directory` in
  4037. ``meta/conf/machine``.
  4038. The list of machines supported by the Yocto Project as shipped
  4039. include the following::
  4040. MACHINE ?= "qemuarm"
  4041. MACHINE ?= "qemuarm64"
  4042. MACHINE ?= "qemumips"
  4043. MACHINE ?= "qemumips64"
  4044. MACHINE ?= "qemuppc"
  4045. MACHINE ?= "qemux86"
  4046. MACHINE ?= "qemux86-64"
  4047. MACHINE ?= "genericx86"
  4048. MACHINE ?= "genericx86-64"
  4049. MACHINE ?= "beaglebone"
  4050. The last five are Yocto Project reference hardware
  4051. boards, which are provided in the ``meta-yocto-bsp`` layer.
  4052. .. note::
  4053. Adding additional Board Support Package (BSP) layers to your
  4054. configuration adds new possible settings for :term:`MACHINE`.
  4055. :term:`MACHINE_ARCH`
  4056. Specifies the name of the machine-specific architecture. This
  4057. variable is set automatically from :term:`MACHINE` or
  4058. :term:`TUNE_PKGARCH`. You should not hand-edit
  4059. the :term:`MACHINE_ARCH` variable.
  4060. :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4061. A list of required machine-specific packages to install as part of
  4062. the image being built. The build process depends on these packages
  4063. being present. Furthermore, because this is a "machine-essential"
  4064. variable, the list of packages are essential for the machine to boot.
  4065. The impact of this variable affects images based on
  4066. ``packagegroup-core-boot``, including the ``core-image-minimal``
  4067. image.
  4068. This variable is similar to the
  4069. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS` variable with the exception
  4070. that the image being built has a build dependency on the variable's
  4071. list of packages. In other words, the image will not build if a file
  4072. in this list is not found.
  4073. As an example, suppose the machine for which you are building
  4074. requires ``example-init`` to be run during boot to initialize the
  4075. hardware. In this case, you would use the following in the machine's
  4076. ``.conf`` configuration file::
  4077. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  4078. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  4079. A list of recommended machine-specific packages to install as part of
  4080. the image being built. The build process does not depend on these
  4081. packages being present. However, because this is a
  4082. "machine-essential" variable, the list of packages are essential for
  4083. the machine to boot. The impact of this variable affects images based
  4084. on ``packagegroup-core-boot``, including the ``core-image-minimal``
  4085. image.
  4086. This variable is similar to the :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4087. variable with the exception that the image being built does not have
  4088. a build dependency on the variable's list of packages. In other
  4089. words, the image will still build if a package in this list is not
  4090. found. Typically, this variable is used to handle essential kernel
  4091. modules, whose functionality may be selected to be built into the
  4092. kernel rather than as a module, in which case a package will not be
  4093. produced.
  4094. Consider an example where you have a custom kernel where a specific
  4095. touchscreen driver is required for the machine to be usable. However,
  4096. the driver can be built as a module or into the kernel depending on
  4097. the kernel configuration. If the driver is built as a module, you
  4098. want it to be installed. But, when the driver is built into the
  4099. kernel, you still want the build to succeed. This variable sets up a
  4100. "recommends" relationship so that in the latter case, the build will
  4101. not fail due to the missing package. To accomplish this, assuming the
  4102. package for the module was called ``kernel-module-ab123``, you would
  4103. use the following in the machine's ``.conf`` configuration file::
  4104. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  4105. .. note::
  4106. In this example, the ``kernel-module-ab123`` recipe needs to
  4107. explicitly set its :term:`PACKAGES` variable to ensure that BitBake
  4108. does not use the kernel recipe's :term:`PACKAGES_DYNAMIC` variable to
  4109. satisfy the dependency.
  4110. Some examples of these machine essentials are flash, screen,
  4111. keyboard, mouse, or touchscreen drivers (depending on the machine).
  4112. :term:`MACHINE_EXTRA_RDEPENDS`
  4113. A list of machine-specific packages to install as part of the image
  4114. being built that are not essential for the machine to boot. However,
  4115. the build process for more fully-featured images depends on the
  4116. packages being present.
  4117. This variable affects all images based on ``packagegroup-base``,
  4118. which does not include the ``core-image-minimal`` or
  4119. ``core-image-full-cmdline`` images.
  4120. The variable is similar to the :term:`MACHINE_EXTRA_RRECOMMENDS` variable
  4121. with the exception that the image being built has a build dependency
  4122. on the variable's list of packages. In other words, the image will
  4123. not build if a file in this list is not found.
  4124. An example is a machine that has WiFi capability but is not essential
  4125. for the machine to boot the image. However, if you are building a
  4126. more fully-featured image, you want to enable the WiFi. The package
  4127. containing the firmware for the WiFi hardware is always expected to
  4128. exist, so it is acceptable for the build process to depend upon
  4129. finding the package. In this case, assuming the package for the
  4130. firmware was called ``wifidriver-firmware``, you would use the
  4131. following in the ``.conf`` file for the machine::
  4132. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  4133. :term:`MACHINE_EXTRA_RRECOMMENDS`
  4134. A list of machine-specific packages to install as part of the image
  4135. being built that are not essential for booting the machine. The image
  4136. being built has no build dependency on this list of packages.
  4137. This variable affects only images based on ``packagegroup-base``,
  4138. which does not include the ``core-image-minimal`` or
  4139. ``core-image-full-cmdline`` images.
  4140. This variable is similar to the :term:`MACHINE_EXTRA_RDEPENDS` variable
  4141. with the exception that the image being built does not have a build
  4142. dependency on the variable's list of packages. In other words, the
  4143. image will build if a file in this list is not found.
  4144. An example is a machine that has WiFi capability but is not essential
  4145. For the machine to boot the image. However, if you are building a
  4146. more fully-featured image, you want to enable WiFi. In this case, the
  4147. package containing the WiFi kernel module will not be produced if the
  4148. WiFi driver is built into the kernel, in which case you still want
  4149. the build to succeed instead of failing as a result of the package
  4150. not being found. To accomplish this, assuming the package for the
  4151. module was called ``kernel-module-examplewifi``, you would use the
  4152. following in the ``.conf`` file for the machine::
  4153. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  4154. :term:`MACHINE_FEATURES`
  4155. Specifies the list of hardware features the
  4156. :term:`MACHINE` is capable of supporting. For related
  4157. information on enabling features, see the
  4158. :term:`DISTRO_FEATURES`,
  4159. :term:`COMBINED_FEATURES`, and
  4160. :term:`IMAGE_FEATURES` variables.
  4161. For a list of hardware features supported by the Yocto Project as
  4162. shipped, see the ":ref:`ref-features-machine`" section.
  4163. :term:`MACHINE_FEATURES_BACKFILL`
  4164. A list of space-separated features to be added to
  4165. :term:`MACHINE_FEATURES` if not also present in
  4166. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`.
  4167. This variable is set in the ``meta/conf/bitbake.conf`` file. It is not
  4168. intended to be user-configurable. It is best to just reference the
  4169. variable to see which machine features are being
  4170. :ref:`backfilled <ref-features-backfill>` for all machine configurations.
  4171. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`
  4172. A list of space-separated features from :term:`MACHINE_FEATURES_BACKFILL`
  4173. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  4174. to :term:`MACHINE_FEATURES`) during the build.
  4175. This corresponds to an opt-out mechanism. When new default machine
  4176. features are introduced, machine definition maintainers can review
  4177. (`consider`) them and decide to exclude them from the
  4178. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  4179. combination of :term:`MACHINE_FEATURES_BACKFILL` and
  4180. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  4181. add new default features without breaking existing machine definitions.
  4182. :term:`MACHINEOVERRIDES`
  4183. A colon-separated list of overrides that apply to the current
  4184. machine. By default, this list includes the value of
  4185. :term:`MACHINE`.
  4186. You can extend :term:`MACHINEOVERRIDES` to add extra overrides that
  4187. should apply to a machine. For example, all machines emulated in QEMU
  4188. (e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
  4189. ``meta/conf/machine/include/qemu.inc`` that prepends the following
  4190. override to :term:`MACHINEOVERRIDES`::
  4191. MACHINEOVERRIDES =. "qemuall:"
  4192. This
  4193. override allows variables to be overridden for all machines emulated
  4194. in QEMU, like in the following example from the ``connman-conf``
  4195. recipe::
  4196. SRC_URI:append:qemuall = " file://wired.config \
  4197. file://wired-setup \
  4198. "
  4199. The underlying mechanism behind
  4200. :term:`MACHINEOVERRIDES` is simply that it is included in the default
  4201. value of :term:`OVERRIDES`.
  4202. :term:`MAINTAINER`
  4203. The email address of the distribution maintainer.
  4204. :term:`MESON_BUILDTYPE`
  4205. Value of the Meson ``--buildtype`` argument used by the
  4206. :ref:`ref-classes-meson` class. It defaults to ``debug`` if
  4207. :term:`DEBUG_BUILD` is set to "1", and ``plain`` otherwise.
  4208. See `Meson build options <https://mesonbuild.com/Builtin-options.html>`__
  4209. for the values you could set in a recipe. Values such as ``plain``,
  4210. ``debug``, ``debugoptimized``, ``release`` and ``minsize`` allow
  4211. you to specify the inclusion of debugging symbols and the compiler
  4212. optimizations (none, performance or size).
  4213. :term:`MESON_TARGET`
  4214. A variable for the :ref:`ref-classes-meson` class, allowing to choose
  4215. a Meson target to build in :ref:`ref-tasks-compile`. Otherwise, the
  4216. default targets are built.
  4217. :term:`METADATA_BRANCH`
  4218. The branch currently checked out for the OpenEmbedded-Core layer (path
  4219. determined by :term:`COREBASE`).
  4220. :term:`METADATA_REVISION`
  4221. The revision currently checked out for the OpenEmbedded-Core layer (path
  4222. determined by :term:`COREBASE`).
  4223. :term:`MIME_XDG_PACKAGES`
  4224. The current implementation of the :ref:`ref-classes-mime-xdg`
  4225. class cannot detect ``.desktop`` files installed through absolute
  4226. symbolic links. Use this setting to make the class create post-install
  4227. and post-remove scripts for these packages anyway, to invoke the
  4228. ``update-destop-database`` command.
  4229. :term:`MIRRORS`
  4230. Specifies additional paths from which the OpenEmbedded build system
  4231. gets source code. When the build system searches for source code, it
  4232. first tries the local download directory. If that location fails, the
  4233. build system tries locations defined by
  4234. :term:`PREMIRRORS`, the upstream source, and then
  4235. locations specified by :term:`MIRRORS` in that order.
  4236. The default value for :term:`MIRRORS` is defined in the
  4237. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  4238. :term:`MLPREFIX`
  4239. Specifies a prefix has been added to :term:`PN` to create a
  4240. special version of a recipe or package (i.e. a Multilib version). The
  4241. variable is used in places where the prefix needs to be added to or
  4242. removed from a name (e.g. the :term:`BPN` variable).
  4243. :term:`MLPREFIX` gets set when a prefix has been added to :term:`PN`.
  4244. .. note::
  4245. The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation
  4246. is historical and comes from a time when ":ref:`ref-classes-nativesdk`"
  4247. was a suffix rather than a prefix on the recipe name. When
  4248. ":ref:`ref-classes-nativesdk`" was turned into a prefix, it made sense
  4249. to set :term:`MLPREFIX` for it as well.
  4250. To help understand when :term:`MLPREFIX` might be needed, consider when
  4251. :term:`BBCLASSEXTEND` is used to provide a :ref:`ref-classes-nativesdk`
  4252. version of a recipe in addition to the target version. If that recipe
  4253. declares build-time dependencies on tasks in other recipes by using
  4254. :term:`DEPENDS`, then a dependency on "foo" will automatically get
  4255. rewritten to a dependency on "nativesdk-foo". However, dependencies like
  4256. the following will not get rewritten automatically::
  4257. do_foo[depends] += "recipe:do_foo"
  4258. If you want such a dependency to also get transformed, you can do the
  4259. following::
  4260. do_foo[depends] += "${MLPREFIX}recipe:do_foo"
  4261. :term:`module_autoload`
  4262. This variable has been replaced by the :term:`KERNEL_MODULE_AUTOLOAD`
  4263. variable. You should replace all occurrences of :term:`module_autoload`
  4264. with additions to :term:`KERNEL_MODULE_AUTOLOAD`, for example::
  4265. module_autoload_rfcomm = "rfcomm"
  4266. should now be replaced with::
  4267. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  4268. See the :term:`KERNEL_MODULE_AUTOLOAD` variable for more information.
  4269. :term:`module_conf`
  4270. Specifies `modprobe.d <https://linux.die.net/man/5/modprobe.d>`__
  4271. syntax lines for inclusion in the ``/etc/modprobe.d/modname.conf``
  4272. file.
  4273. You can use this variable anywhere that it can be recognized by the
  4274. kernel recipe or out-of-tree kernel module recipe (e.g. a machine
  4275. configuration file, a distribution configuration file, an append file
  4276. for the recipe, or the recipe itself). If you use this variable, you
  4277. must also be sure to list the module name in the
  4278. :term:`KERNEL_MODULE_PROBECONF`
  4279. variable.
  4280. Here is the general syntax::
  4281. module_conf_module_name = "modprobe.d-syntax"
  4282. You must use the kernel module name override.
  4283. Run ``man modprobe.d`` in the shell to find out more information on
  4284. the exact syntax you want to provide with :term:`module_conf`.
  4285. Including :term:`module_conf` causes the OpenEmbedded build system to
  4286. populate the ``/etc/modprobe.d/modname.conf`` file with
  4287. ``modprobe.d`` syntax lines. Here is an example that adds the options
  4288. ``arg1`` and ``arg2`` to a module named ``mymodule``::
  4289. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  4290. For information on how to specify kernel modules to auto-load on
  4291. boot, see the :term:`KERNEL_MODULE_AUTOLOAD` variable.
  4292. :term:`MODULE_TARBALL_DEPLOY`
  4293. Controls creation of the ``modules-*.tgz`` file. Set this variable to
  4294. "0" to disable creation of this file, which contains all of the
  4295. kernel modules resulting from a kernel build.
  4296. :term:`MODULE_TARBALL_LINK_NAME`
  4297. The link name of the kernel module tarball. This variable is set in
  4298. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4299. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4300. The value
  4301. of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the
  4302. same file, has the following value::
  4303. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4304. See the :term:`MACHINE` variable for additional information.
  4305. :term:`MODULE_TARBALL_NAME`
  4306. The base name of the kernel module tarball. This variable is set in
  4307. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4308. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4309. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4310. :term:`MOUNT_BASE`
  4311. On non-systemd systems (where ``udev-extraconf`` is being used),
  4312. specifies the base directory for auto-mounting filesystems. The
  4313. default value is "/run/media".
  4314. :term:`MULTIMACH_TARGET_SYS`
  4315. Uniquely identifies the type of the target system for which packages
  4316. are being built. This variable allows output for different types of
  4317. target systems to be put into different subdirectories of the same
  4318. output directory.
  4319. The default value of this variable is::
  4320. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  4321. Some classes (e.g. :ref:`ref-classes-cross-canadian`) modify the
  4322. :term:`MULTIMACH_TARGET_SYS` value.
  4323. See the :term:`STAMP` variable for an example. See the
  4324. :term:`STAGING_DIR_TARGET` variable for more information.
  4325. :term:`NATIVELSBSTRING`
  4326. A string identifying the host distribution. Strings consist of the
  4327. host distributor ID followed by the release, as reported by the
  4328. ``lsb_release`` tool or as read from ``/etc/lsb-release``. For
  4329. example, when running a build on Ubuntu 12.10, the value is
  4330. "Ubuntu-12.10". If this information is unable to be determined, the
  4331. value resolves to "Unknown".
  4332. This variable is used by default to isolate native shared state
  4333. packages for different distributions (e.g. to avoid problems with
  4334. ``glibc`` version incompatibilities). Additionally, the variable is
  4335. checked against
  4336. :term:`SANITY_TESTED_DISTROS` if that
  4337. variable is set.
  4338. :term:`NM`
  4339. The minimal command and arguments to run ``nm``.
  4340. :term:`NO_GENERIC_LICENSE`
  4341. Avoids QA errors when you use a non-common, non-CLOSED license in a
  4342. recipe. There are packages, such as the linux-firmware package, with many
  4343. licenses that are not in any way common. Also, new licenses are added
  4344. occasionally to avoid introducing a lot of common license files,
  4345. which are only applicable to a specific package.
  4346. :term:`NO_GENERIC_LICENSE` is used to allow copying a license that does
  4347. not exist in common licenses.
  4348. The following example shows how to add :term:`NO_GENERIC_LICENSE` to a
  4349. recipe::
  4350. NO_GENERIC_LICENSE[license_name] = "license_file_in_fetched_source"
  4351. Here is an example that
  4352. uses the ``LICENSE.Abilis.txt`` file as the license from the fetched
  4353. source::
  4354. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  4355. :term:`NO_RECOMMENDATIONS`
  4356. Prevents installation of all "recommended-only" packages.
  4357. Recommended-only packages are packages installed only through the
  4358. :term:`RRECOMMENDS` variable). Setting the
  4359. :term:`NO_RECOMMENDATIONS` variable to "1" turns this feature on::
  4360. NO_RECOMMENDATIONS = "1"
  4361. You can set this variable globally in your ``local.conf`` file or you
  4362. can attach it to a specific image recipe by using the recipe name
  4363. override::
  4364. NO_RECOMMENDATIONS:pn-target_image = "1"
  4365. It is important to realize that if you choose to not install packages
  4366. using this variable and some other packages are dependent on them
  4367. (i.e. listed in a recipe's :term:`RDEPENDS`
  4368. variable), the OpenEmbedded build system ignores your request and
  4369. will install the packages to avoid dependency errors.
  4370. .. note::
  4371. Some recommended packages might be required for certain system
  4372. functionality, such as kernel modules. It is up to you to add
  4373. packages with the :term:`IMAGE_INSTALL` variable.
  4374. This variable is only supported when using the IPK and RPM
  4375. packaging backends. DEB is not supported.
  4376. See the :term:`BAD_RECOMMENDATIONS` and
  4377. the :term:`PACKAGE_EXCLUDE` variables for
  4378. related information.
  4379. :term:`NOAUTOPACKAGEDEBUG`
  4380. Disables auto package from splitting ``.debug`` files. If a recipe
  4381. requires ``FILES:${PN}-dbg`` to be set manually, the
  4382. :term:`NOAUTOPACKAGEDEBUG` can be defined allowing you to define the
  4383. content of the debug package. For example::
  4384. NOAUTOPACKAGEDEBUG = "1"
  4385. FILES:${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  4386. FILES:${PN}-dbg = "/usr/src/debug/"
  4387. FILES:${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  4388. :term:`NON_MULTILIB_RECIPES`
  4389. A list of recipes that should not be built for multilib. OE-Core's
  4390. ``multilib.conf`` file defines a reasonable starting point for this
  4391. list with::
  4392. NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"
  4393. :term:`NVDCVE_API_KEY`
  4394. The NVD API key used to retrieve data from the CVE database when
  4395. using :ref:`ref-classes-cve-check`.
  4396. By default, no API key is used, which results in larger delays between API
  4397. requests and limits the number of queries to the public rate limits posted
  4398. at the `NVD developer's page <https://nvd.nist.gov/developers/start-here>`__.
  4399. NVD API keys can be requested through the
  4400. `Request an API Key <https://nvd.nist.gov/developers/request-an-api-key>`__
  4401. page. You can set this variable to the NVD API key in your ``local.conf`` file.
  4402. Example::
  4403. NVDCVE_API_KEY = "fe753&7a2-1427-347d-23ff-b2e2b7ca5f3"
  4404. :term:`OBJCOPY`
  4405. The minimal command and arguments to run ``objcopy``.
  4406. :term:`OBJDUMP`
  4407. The minimal command and arguments to run ``objdump``.
  4408. :term:`OE_BINCONFIG_EXTRA_MANGLE`
  4409. When inheriting the :ref:`ref-classes-binconfig` class,
  4410. this variable specifies additional arguments passed to the "sed"
  4411. command. The sed command alters any paths in configuration scripts
  4412. that have been set up during compilation. Inheriting this class
  4413. results in all paths in these scripts being changed to point into the
  4414. ``sysroots/`` directory so that all builds that use the script will
  4415. use the correct directories for the cross compiling layout.
  4416. See the ``meta/classes-recipe/binconfig.bbclass`` in the
  4417. :term:`Source Directory` for details on how this class
  4418. applies these additional sed command arguments.
  4419. :term:`OECMAKE_GENERATOR`
  4420. A variable for the :ref:`ref-classes-cmake` class, allowing to choose
  4421. which back-end will be generated by CMake to build an application.
  4422. By default, this variable is set to ``Ninja``, which is faster than GNU
  4423. make, but if building is broken with Ninja, a recipe can use this
  4424. variable to use GNU make instead::
  4425. OECMAKE_GENERATOR = "Unix Makefiles"
  4426. :term:`OE_IMPORTS`
  4427. An internal variable used to tell the OpenEmbedded build system what
  4428. Python modules to import for every Python function run by the system.
  4429. .. note::
  4430. Do not set this variable. It is for internal use only.
  4431. :term:`OE_INIT_ENV_SCRIPT`
  4432. The name of the build environment setup script for the purposes of
  4433. setting up the environment within the extensible SDK. The default
  4434. value is "oe-init-build-env".
  4435. If you use a custom script to set up your build environment, set the
  4436. :term:`OE_INIT_ENV_SCRIPT` variable to its name.
  4437. :term:`OE_TERMINAL`
  4438. Controls how the OpenEmbedded build system spawns interactive
  4439. terminals on the host development system (e.g. using the BitBake
  4440. command with the ``-c devshell`` command-line option). For more
  4441. information, see the ":ref:`dev-manual/development-shell:using a development shell`" section in
  4442. the Yocto Project Development Tasks Manual.
  4443. You can use the following values for the :term:`OE_TERMINAL` variable:
  4444. - auto
  4445. - gnome
  4446. - xfce
  4447. - rxvt
  4448. - screen
  4449. - konsole
  4450. - none
  4451. :term:`OEROOT`
  4452. The directory from which the top-level build environment setup script
  4453. is sourced. The Yocto Project provides a top-level build environment
  4454. setup script: :ref:`structure-core-script`. When you run this
  4455. script, the :term:`OEROOT` variable resolves to the directory that
  4456. contains the script.
  4457. For additional information on how this variable is used, see the
  4458. initialization script.
  4459. :term:`OEQA_REPRODUCIBLE_TEST_PACKAGE`
  4460. Set the package manager(s) for build reproducibility testing.
  4461. See :yocto_git:`reproducible.py </poky/tree/meta/lib/oeqa/selftest/cases/reproducible.py>`
  4462. and :doc:`/test-manual/reproducible-builds`.
  4463. :term:`OEQA_REPRODUCIBLE_TEST_TARGET`
  4464. Set build target for build reproducibility testing. By default
  4465. all available recipes are compiled with "bitbake world", see also :term:`EXCLUDE_FROM_WORLD`
  4466. and :doc:`/test-manual/reproducible-builds`.
  4467. :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`
  4468. Set build targets which can be rebuilt using :ref:`shared state <overview-manual/concepts:shared state cache>`
  4469. when running build reproducibility tests. See :doc:`/test-manual/reproducible-builds`.
  4470. :term:`OLDEST_KERNEL`
  4471. Declares the oldest version of the Linux kernel that the produced
  4472. binaries must support. This variable is passed into the build of the
  4473. Embedded GNU C Library (``glibc``).
  4474. The default for this variable comes from the
  4475. ``meta/conf/bitbake.conf`` configuration file. You can override this
  4476. default by setting the variable in a custom distribution
  4477. configuration file.
  4478. :term:`OPKG_MAKE_INDEX_EXTRA_PARAMS`
  4479. Specifies extra parameters for the ``opkg-make-index`` command.
  4480. :term:`OPKGBUILDCMD`
  4481. The variable :term:`OPKGBUILDCMD` specifies the command used to build opkg
  4482. packages when using the :ref:`ref-classes-package_ipk` class. It is
  4483. defined in :ref:`ref-classes-package_ipk` as::
  4484. OPKGBUILDCMD ??= 'opkg-build -Z zstd -a "${ZSTD_DEFAULTS}"'
  4485. :term:`OVERLAYFS_ETC_DEVICE`
  4486. When the :ref:`ref-classes-overlayfs-etc` class is
  4487. inherited, specifies the device to be mounted for the read/write
  4488. layer of ``/etc``. There is no default, so you must set this if you
  4489. wish to enable :ref:`ref-classes-overlayfs-etc`, for
  4490. example, assuming ``/dev/mmcblk0p2`` was the desired device::
  4491. OVERLAYFS_ETC_DEVICE = "/dev/mmcblk0p2"
  4492. :term:`OVERLAYFS_ETC_EXPOSE_LOWER`
  4493. When the :ref:`ref-classes-overlayfs-etc` class is
  4494. inherited, if set to "1" then a read-only access to the original
  4495. ``/etc`` content will be provided as a ``lower/`` subdirectory of
  4496. :term:`OVERLAYFS_ETC_MOUNT_POINT`. The default value is "0".
  4497. :term:`OVERLAYFS_ETC_FSTYPE`
  4498. When the :ref:`ref-classes-overlayfs-etc` class is
  4499. inherited, specifies the file system type for the read/write
  4500. layer of ``/etc``. There is no default, so you must set this if you
  4501. wish to enable :ref:`ref-classes-overlayfs-etc`,
  4502. for example, assuming the file system is ext4::
  4503. OVERLAYFS_ETC_FSTYPE = "ext4"
  4504. :term:`OVERLAYFS_ETC_MOUNT_OPTIONS`
  4505. When the :ref:`ref-classes-overlayfs-etc` class is
  4506. inherited, specifies the mount options for the read-write layer.
  4507. The default value is "defaults".
  4508. :term:`OVERLAYFS_ETC_MOUNT_POINT`
  4509. When the :ref:`ref-classes-overlayfs-etc` class is
  4510. inherited, specifies the parent mount path for the filesystem layers.
  4511. There is no default, so you must set this if you wish to enable
  4512. :ref:`ref-classes-overlayfs-etc`, for example if the desired path is
  4513. "/data"::
  4514. OVERLAYFS_ETC_MOUNT_POINT = "/data"
  4515. :term:`OVERLAYFS_ETC_USE_ORIG_INIT_NAME`
  4516. When the :ref:`ref-classes-overlayfs-etc` class is inherited, controls
  4517. how the generated init will be named. For more information, see the
  4518. :ref:`ref-classes-overlayfs-etc` class documentation. The default value
  4519. is "1".
  4520. :term:`OVERLAYFS_MOUNT_POINT`
  4521. When inheriting the :ref:`ref-classes-overlayfs` class,
  4522. specifies mount point(s) to be used. For example::
  4523. OVERLAYFS_MOUNT_POINT[data] = "/data"
  4524. The assumes you have a ``data.mount`` systemd unit defined elsewhere in
  4525. your BSP (e.g. in ``systemd-machine-units`` recipe) and it is installed
  4526. into the image. For more information see :ref:`ref-classes-overlayfs`.
  4527. .. note::
  4528. Although the :ref:`ref-classes-overlayfs` class is
  4529. inherited by individual recipes, :term:`OVERLAYFS_MOUNT_POINT`
  4530. should be set in your machine configuration.
  4531. :term:`OVERLAYFS_QA_SKIP`
  4532. When inheriting the :ref:`ref-classes-overlayfs` class,
  4533. provides the ability to disable QA checks for particular overlayfs
  4534. mounts. For example::
  4535. OVERLAYFS_QA_SKIP[data] = "mount-configured"
  4536. .. note::
  4537. Although the :ref:`ref-classes-overlayfs` class is
  4538. inherited by individual recipes, :term:`OVERLAYFS_QA_SKIP`
  4539. should be set in your machine configuration.
  4540. :term:`OVERLAYFS_WRITABLE_PATHS`
  4541. When inheriting the :ref:`ref-classes-overlayfs` class,
  4542. specifies writable paths used at runtime for the recipe. For
  4543. example::
  4544. OVERLAYFS_WRITABLE_PATHS[data] = "/usr/share/my-custom-application"
  4545. :term:`OVERRIDES`
  4546. A colon-separated list of overrides that currently apply. Overrides
  4547. are a BitBake mechanism that allows variables to be selectively
  4548. overridden at the end of parsing. The set of overrides in
  4549. :term:`OVERRIDES` represents the "state" during building, which includes
  4550. the current recipe being built, the machine for which it is being
  4551. built, and so forth.
  4552. As an example, if the string "an-override" appears as an element in
  4553. the colon-separated list in :term:`OVERRIDES`, then the following
  4554. assignment will override ``FOO`` with the value "overridden" at the
  4555. end of parsing::
  4556. FOO:an-override = "overridden"
  4557. See the
  4558. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  4559. section in the BitBake User Manual for more information on the
  4560. overrides mechanism.
  4561. The default value of :term:`OVERRIDES` includes the values of the
  4562. :term:`CLASSOVERRIDE`,
  4563. :term:`MACHINEOVERRIDES`, and
  4564. :term:`DISTROOVERRIDES` variables. Another
  4565. important override included by default is ``pn-${PN}``. This override
  4566. allows variables to be set for a single recipe within configuration
  4567. (``.conf``) files. Here is an example::
  4568. FOO:pn-myrecipe = "myrecipe-specific value"
  4569. .. note::
  4570. An easy way to see what overrides apply is to search for :term:`OVERRIDES`
  4571. in the output of the ``bitbake -e`` command. See the
  4572. ":ref:`dev-manual/debugging:viewing variable values`" section in the Yocto
  4573. Project Development Tasks Manual for more information.
  4574. :term:`P`
  4575. The recipe name and version. :term:`P` is comprised of the following::
  4576. ${PN}-${PV}
  4577. :term:`P4DIR`
  4578. See :term:`bitbake:P4DIR` in the BitBake manual.
  4579. :term:`PACKAGE_ADD_METADATA`
  4580. This variable defines additional metadata to add to packages.
  4581. You may find you need to inject additional metadata into packages.
  4582. This variable allows you to do that by setting the injected data as
  4583. the value. Multiple fields can be added by splitting the content with
  4584. the literal separator "\n".
  4585. The suffixes '_IPK', '_DEB', or '_RPM' can be applied to the variable
  4586. to do package type specific settings. It can also be made package
  4587. specific by using the package name as a suffix.
  4588. You can find out more about applying this variable in the
  4589. ":ref:`dev-manual/packages:adding custom metadata to packages`"
  4590. section in the Yocto Project Development Tasks Manual.
  4591. :term:`PACKAGE_ARCH`
  4592. The architecture of the resulting package or packages.
  4593. By default, the value of this variable is set to
  4594. :term:`TUNE_PKGARCH` when building for the
  4595. target, :term:`BUILD_ARCH` when building for the
  4596. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building for the
  4597. SDK.
  4598. .. note::
  4599. See :term:`SDK_ARCH` for more information.
  4600. However, if your recipe's output packages are built specific to the
  4601. target machine rather than generally for the architecture of the
  4602. machine, you should set :term:`PACKAGE_ARCH` to the value of
  4603. :term:`MACHINE_ARCH` in the recipe as follows::
  4604. PACKAGE_ARCH = "${MACHINE_ARCH}"
  4605. :term:`PACKAGE_ARCHS`
  4606. Specifies a list of architectures compatible with the target machine.
  4607. This variable is set automatically and should not normally be
  4608. hand-edited. Entries are separated using spaces and listed in order
  4609. of priority. The default value for :term:`PACKAGE_ARCHS` is "all any
  4610. noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  4611. :term:`PACKAGE_BEFORE_PN`
  4612. Enables easily adding packages to :term:`PACKAGES` before ``${PN}`` so
  4613. that those added packages can pick up files that would normally be
  4614. included in the default package.
  4615. :term:`PACKAGE_CLASSES`
  4616. This variable, which is set in the ``local.conf`` configuration file
  4617. found in the ``conf`` folder of the
  4618. :term:`Build Directory`, specifies the package manager the
  4619. OpenEmbedded build system uses when packaging data.
  4620. You can provide one or more of the following arguments for the
  4621. variable::
  4622. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
  4623. The build system uses only the first argument in the list as the
  4624. package manager when creating your image or SDK. However, packages
  4625. will be created using any additional packaging classes you specify.
  4626. For example, if you use the following in your ``local.conf`` file::
  4627. PACKAGE_CLASSES ?= "package_ipk"
  4628. The OpenEmbedded build system uses
  4629. the IPK package manager to create your image or SDK.
  4630. For information on packaging and build performance effects as a
  4631. result of the package manager in use, see the
  4632. ":ref:`ref-classes-package`" section.
  4633. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  4634. Determines how to split up and package debug and source information
  4635. when creating debugging packages to be used with the GNU Project
  4636. Debugger (GDB). In general, based on the value of this variable,
  4637. you can combine the source and debug info in a single package,
  4638. you can break out the source into a separate package that can be
  4639. installed independently, or you can choose to not have the source
  4640. packaged at all.
  4641. The possible values of :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable:
  4642. - "``.debug``": All debugging and source info is placed in a single
  4643. ``*-dbg`` package; debug symbol files are placed next to the
  4644. binary in a ``.debug`` directory so that, if a binary is installed
  4645. into ``/bin``, the corresponding debug symbol file is installed
  4646. in ``/bin/.debug``. Source files are installed in the same ``*-dbg``
  4647. package under ``/usr/src/debug``.
  4648. - "``debug-file-directory``": As above, all debugging and source info
  4649. is placed in a single ``*-dbg`` package; debug symbol files are
  4650. placed entirely under the directory ``/usr/lib/debug`` and separated
  4651. by the path from where the binary is installed, so that if a binary
  4652. is installed in ``/bin``, the corresponding debug symbols are installed
  4653. in ``/usr/lib/debug/bin``, and so on. As above, source is installed
  4654. in the same package under ``/usr/src/debug``.
  4655. - "``debug-with-srcpkg``": Debugging info is placed in the standard
  4656. ``*-dbg`` package as with the ``.debug`` value, while source is
  4657. placed in a separate ``*-src`` package, which can be installed
  4658. independently. This is the default setting for this variable,
  4659. as defined in Poky's ``bitbake.conf`` file.
  4660. - "``debug-without-src``": The same behavior as with the ``.debug``
  4661. setting, but no source is packaged at all.
  4662. .. note::
  4663. Much of the above package splitting can be overridden via
  4664. use of the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable.
  4665. You can find out more about debugging using GDB by reading the
  4666. ":ref:`dev-manual/debugging:debugging with the gnu project debugger (gdb) remotely`" section
  4667. in the Yocto Project Development Tasks Manual.
  4668. :term:`PACKAGE_EXCLUDE`
  4669. Lists packages that should not be installed into an image. For
  4670. example::
  4671. PACKAGE_EXCLUDE = "package_name package_name package_name ..."
  4672. You can set this variable globally in your ``local.conf`` file or you
  4673. can attach it to a specific image recipe by using the recipe name
  4674. override::
  4675. PACKAGE_EXCLUDE:pn-target_image = "package_name"
  4676. If you choose to not install a package using this variable and some
  4677. other package is dependent on it (i.e. listed in a recipe's
  4678. :term:`RDEPENDS` variable), the OpenEmbedded build
  4679. system generates a fatal installation error. Because the build system
  4680. halts the process with a fatal error, you can use the variable with
  4681. an iterative development process to remove specific components from a
  4682. system.
  4683. This variable is supported only when using the IPK and RPM
  4684. packaging backends. DEB is not supported.
  4685. See the :term:`NO_RECOMMENDATIONS` and the
  4686. :term:`BAD_RECOMMENDATIONS` variables for
  4687. related information.
  4688. :term:`PACKAGE_EXCLUDE_COMPLEMENTARY`
  4689. Prevents specific packages from being installed when you are
  4690. installing complementary packages.
  4691. You might find that you want to prevent installing certain packages
  4692. when you are installing complementary packages. For example, if you
  4693. are using :term:`IMAGE_FEATURES` to install
  4694. ``dev-pkgs``, you might not want to install all packages from a
  4695. particular multilib. If you find yourself in this situation, you can
  4696. use the :term:`PACKAGE_EXCLUDE_COMPLEMENTARY` variable to specify regular
  4697. expressions to match the packages you want to exclude.
  4698. :term:`PACKAGE_EXTRA_ARCHS`
  4699. Specifies the list of architectures compatible with the device CPU.
  4700. This variable is useful when you build for several different devices
  4701. that use miscellaneous processors such as XScale and ARM926-EJS.
  4702. :term:`PACKAGE_FEED_ARCHS`
  4703. Optionally specifies the package architectures used as part of the
  4704. package feed URIs during the build. When used, the
  4705. :term:`PACKAGE_FEED_ARCHS` variable is appended to the final package feed
  4706. URI, which is constructed using the
  4707. :term:`PACKAGE_FEED_URIS` and
  4708. :term:`PACKAGE_FEED_BASE_PATHS`
  4709. variables.
  4710. .. note::
  4711. You can use the :term:`PACKAGE_FEED_ARCHS`
  4712. variable to allow specific package architectures. If you do
  4713. not need to allow specific architectures, which is a common
  4714. case, you can omit this variable. Omitting the variable results in
  4715. all available architectures for the current machine being included
  4716. into remote package feeds.
  4717. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4718. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4719. defined in your ``local.conf`` file::
  4720. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4721. https://example.com/packagerepos/updates"
  4722. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4723. PACKAGE_FEED_ARCHS = "all core2-64"
  4724. Given these settings, the resulting package feeds are as follows:
  4725. .. code-block:: none
  4726. https://example.com/packagerepos/release/rpm/all
  4727. https://example.com/packagerepos/release/rpm/core2-64
  4728. https://example.com/packagerepos/release/rpm-dev/all
  4729. https://example.com/packagerepos/release/rpm-dev/core2-64
  4730. https://example.com/packagerepos/updates/rpm/all
  4731. https://example.com/packagerepos/updates/rpm/core2-64
  4732. https://example.com/packagerepos/updates/rpm-dev/all
  4733. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4734. :term:`PACKAGE_FEED_BASE_PATHS`
  4735. Specifies the base path used when constructing package feed URIs. The
  4736. :term:`PACKAGE_FEED_BASE_PATHS` variable makes up the middle portion of a
  4737. package feed URI used by the OpenEmbedded build system. The base path
  4738. lies between the :term:`PACKAGE_FEED_URIS`
  4739. and :term:`PACKAGE_FEED_ARCHS` variables.
  4740. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4741. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4742. defined in your ``local.conf`` file::
  4743. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4744. https://example.com/packagerepos/updates"
  4745. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4746. PACKAGE_FEED_ARCHS = "all core2-64"
  4747. Given these settings, the resulting package feeds are as follows:
  4748. .. code-block:: none
  4749. https://example.com/packagerepos/release/rpm/all
  4750. https://example.com/packagerepos/release/rpm/core2-64
  4751. https://example.com/packagerepos/release/rpm-dev/all
  4752. https://example.com/packagerepos/release/rpm-dev/core2-64
  4753. https://example.com/packagerepos/updates/rpm/all
  4754. https://example.com/packagerepos/updates/rpm/core2-64
  4755. https://example.com/packagerepos/updates/rpm-dev/all
  4756. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4757. :term:`PACKAGE_FEED_URIS`
  4758. Specifies the front portion of the package feed URI used by the
  4759. OpenEmbedded build system. Each final package feed URI is comprised
  4760. of :term:`PACKAGE_FEED_URIS`,
  4761. :term:`PACKAGE_FEED_BASE_PATHS`, and
  4762. :term:`PACKAGE_FEED_ARCHS` variables.
  4763. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4764. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4765. defined in your ``local.conf`` file::
  4766. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4767. https://example.com/packagerepos/updates"
  4768. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4769. PACKAGE_FEED_ARCHS = "all core2-64"
  4770. Given these settings, the resulting package feeds are as follows:
  4771. .. code-block:: none
  4772. https://example.com/packagerepos/release/rpm/all
  4773. https://example.com/packagerepos/release/rpm/core2-64
  4774. https://example.com/packagerepos/release/rpm-dev/all
  4775. https://example.com/packagerepos/release/rpm-dev/core2-64
  4776. https://example.com/packagerepos/updates/rpm/all
  4777. https://example.com/packagerepos/updates/rpm/core2-64
  4778. https://example.com/packagerepos/updates/rpm-dev/all
  4779. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4780. :term:`PACKAGE_INSTALL`
  4781. The final list of packages passed to the package manager for
  4782. installation into the image.
  4783. Because the package manager controls actual installation of all
  4784. packages, the list of packages passed using :term:`PACKAGE_INSTALL` is
  4785. not the final list of packages that are actually installed. This
  4786. variable is internal to the image construction code. Consequently, in
  4787. general, you should use the
  4788. :term:`IMAGE_INSTALL` variable to specify
  4789. packages for installation. The exception to this is when working with
  4790. the :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  4791. image. When working with an initial RAM filesystem (:term:`Initramfs`) image,
  4792. use the :term:`PACKAGE_INSTALL` variable. For information on creating an
  4793. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  4794. in the Yocto Project Development Tasks Manual.
  4795. :term:`PACKAGE_INSTALL_ATTEMPTONLY`
  4796. Specifies a list of packages the OpenEmbedded build system attempts
  4797. to install when creating an image. If a listed package fails to
  4798. install, the build system does not generate an error. This variable
  4799. is generally not user-defined.
  4800. :term:`PACKAGE_PREPROCESS_FUNCS`
  4801. Specifies a list of functions run to pre-process the
  4802. :term:`PKGD` directory prior to splitting the files out
  4803. to individual packages.
  4804. :term:`PACKAGE_WRITE_DEPS`
  4805. Specifies a list of dependencies for post-installation and
  4806. pre-installation scripts on native/cross tools. If your
  4807. post-installation or pre-installation script can execute at root filesystem
  4808. creation time rather than on the target but depends on a native tool
  4809. in order to execute, you need to list the tools in
  4810. :term:`PACKAGE_WRITE_DEPS`.
  4811. For information on running post-installation scripts, see the
  4812. ":ref:`dev-manual/new-recipe:post-installation scripts`"
  4813. section in the Yocto Project Development Tasks Manual.
  4814. :term:`PACKAGECONFIG`
  4815. This variable provides a means of enabling or disabling features of a
  4816. recipe on a per-recipe basis. :term:`PACKAGECONFIG` blocks are defined in
  4817. recipes when you specify features and then arguments that define
  4818. feature behaviors. Here is the basic block structure (broken over
  4819. multiple lines for readability)::
  4820. PACKAGECONFIG ??= "f1 f2 f3 ..."
  4821. PACKAGECONFIG[f1] = "\
  4822. --with-f1, \
  4823. --without-f1, \
  4824. build-deps-for-f1, \
  4825. runtime-deps-for-f1, \
  4826. runtime-recommends-for-f1, \
  4827. packageconfig-conflicts-for-f1"
  4828. PACKAGECONFIG[f2] = "\
  4829. ... and so on and so on ...
  4830. The :term:`PACKAGECONFIG` variable itself specifies a space-separated
  4831. list of the features to enable. Following the features, you can
  4832. determine the behavior of each feature by providing up to six
  4833. order-dependent arguments, which are separated by commas. You can
  4834. omit any argument you like but must retain the separating commas. The
  4835. order is important and specifies the following:
  4836. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  4837. if the feature is enabled.
  4838. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  4839. if the feature is disabled.
  4840. #. Additional build dependencies (:term:`DEPENDS`)
  4841. that should be added if the feature is enabled.
  4842. #. Additional runtime dependencies (:term:`RDEPENDS`)
  4843. that should be added if the feature is enabled.
  4844. #. Additional runtime recommendations
  4845. (:term:`RRECOMMENDS`) that should be added if
  4846. the feature is enabled.
  4847. #. Any conflicting (that is, mutually exclusive) :term:`PACKAGECONFIG`
  4848. settings for this feature.
  4849. Consider the following :term:`PACKAGECONFIG` block taken from the
  4850. ``librsvg`` recipe. In this example the feature is ``gtk``, which has
  4851. three arguments that determine the feature's behavior::
  4852. PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3"
  4853. The
  4854. ``--with-gtk3`` and ``gtk+3`` arguments apply only if the feature is
  4855. enabled. In this case, ``--with-gtk3`` is added to the configure
  4856. script argument list and ``gtk+3`` is added to :term:`DEPENDS`. On the
  4857. other hand, if the feature is disabled say through a ``.bbappend``
  4858. file in another layer, then the second argument ``--without-gtk3`` is
  4859. added to the configure script instead.
  4860. The basic :term:`PACKAGECONFIG` structure previously described holds true
  4861. regardless of whether you are creating a block or changing a block.
  4862. When creating a block, use the structure inside your recipe.
  4863. If you want to change an existing :term:`PACKAGECONFIG` block, you can do
  4864. so one of two ways:
  4865. - *Append file:* Create an append file named
  4866. ``recipename.bbappend`` in your layer and override the value of
  4867. :term:`PACKAGECONFIG`. You can either completely override the
  4868. variable::
  4869. PACKAGECONFIG = "f4 f5"
  4870. Or, you can just append the variable::
  4871. PACKAGECONFIG:append = " f4"
  4872. - *Configuration file:* This method is identical to changing the
  4873. block through an append file except you edit your ``local.conf``
  4874. or ``mydistro.conf`` file. As with append files previously
  4875. described, you can either completely override the variable::
  4876. PACKAGECONFIG:pn-recipename = "f4 f5"
  4877. Or, you can just amend the variable::
  4878. PACKAGECONFIG:append:pn-recipename = " f4"
  4879. Consider the following example of a :ref:`ref-classes-cmake` recipe with a systemd service
  4880. in which :term:`PACKAGECONFIG` is used to transform the systemd service
  4881. into a feature that can be easily enabled or disabled via :term:`PACKAGECONFIG`::
  4882. example.c
  4883. example.service
  4884. CMakeLists.txt
  4885. The ``CMakeLists.txt`` file contains::
  4886. if(WITH_SYSTEMD)
  4887. install(FILES ${PROJECT_SOURCE_DIR}/example.service DESTINATION /etc/systemd/systemd)
  4888. endif(WITH_SYSTEMD)
  4889. In order to enable the installation of ``example.service`` we need to
  4890. ensure that ``-DWITH_SYSTEMD=ON`` is passed to the ``cmake`` command
  4891. execution. Recipes that have ``CMakeLists.txt`` generally inherit the
  4892. :ref:`ref-classes-cmake` class, that runs ``cmake`` with
  4893. :term:`EXTRA_OECMAKE`, which :term:`PACKAGECONFIG_CONFARGS` will be
  4894. appended to. Now, knowing that :term:`PACKAGECONFIG_CONFARGS` is
  4895. automatically filled with either the first or second element of
  4896. :term:`PACKAGECONFIG` flag value, the recipe would be like::
  4897. inherit cmake
  4898. PACKAGECONFIG = "systemd"
  4899. PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF"
  4900. A side note to this recipe is to check if ``systemd`` is in fact the used :term:`INIT_MANAGER`
  4901. or not::
  4902. PACKAGECONFIG = "${@'systemd' if d.getVar('INIT_MANAGER') == 'systemd' else ''}"
  4903. :term:`PACKAGECONFIG_CONFARGS`
  4904. A space-separated list of configuration options generated from the
  4905. :term:`PACKAGECONFIG` setting.
  4906. Classes such as :ref:`ref-classes-autotools` and :ref:`ref-classes-cmake`
  4907. use :term:`PACKAGECONFIG_CONFARGS` to pass :term:`PACKAGECONFIG` options
  4908. to ``configure`` and ``cmake``, respectively. If you are using
  4909. :term:`PACKAGECONFIG` but not a class that handles the
  4910. :ref:`ref-tasks-configure` task, then you need to use
  4911. :term:`PACKAGECONFIG_CONFARGS` appropriately.
  4912. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY`
  4913. For recipes inheriting the :ref:`ref-classes-packagegroup` class, setting
  4914. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the
  4915. normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth)
  4916. should not be automatically created by the ``packagegroup`` recipe,
  4917. which is the default behavior.
  4918. :term:`PACKAGES`
  4919. The list of packages the recipe creates. The default value is the
  4920. following::
  4921. ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  4922. During packaging, the :ref:`ref-tasks-package` task
  4923. goes through :term:`PACKAGES` and uses the :term:`FILES`
  4924. variable corresponding to each package to assign files to the
  4925. package. If a file matches the :term:`FILES` variable for more than one
  4926. package in :term:`PACKAGES`, it will be assigned to the earliest
  4927. (leftmost) package.
  4928. Packages in the variable's list that are empty (i.e. where none of
  4929. the patterns in ``FILES:``\ pkg match any files installed by the
  4930. :ref:`ref-tasks-install` task) are not generated,
  4931. unless generation is forced through the
  4932. :term:`ALLOW_EMPTY` variable.
  4933. :term:`PACKAGES_DYNAMIC`
  4934. A promise that your recipe satisfies runtime dependencies for
  4935. optional modules that are found in other recipes.
  4936. :term:`PACKAGES_DYNAMIC` does not actually satisfy the dependencies, it
  4937. only states that they should be satisfied. For example, if a hard,
  4938. runtime dependency (:term:`RDEPENDS`) of another
  4939. package is satisfied at build time through the :term:`PACKAGES_DYNAMIC`
  4940. variable, but a package with the module name is never actually
  4941. produced, then the other package will be broken. Thus, if you attempt
  4942. to include that package in an image, you will get a dependency
  4943. failure from the packaging system during the
  4944. :ref:`ref-tasks-rootfs` task.
  4945. Typically, if there is a chance that such a situation can occur and
  4946. the package that is not created is valid without the dependency being
  4947. satisfied, then you should use :term:`RRECOMMENDS`
  4948. (a soft runtime dependency) instead of :term:`RDEPENDS`.
  4949. For an example of how to use the :term:`PACKAGES_DYNAMIC` variable when
  4950. you are splitting packages, see the
  4951. ":ref:`dev-manual/packages:handling optional module packaging`"
  4952. section in the Yocto Project Development Tasks Manual.
  4953. :term:`PACKAGESPLITFUNCS`
  4954. Specifies a list of functions run to perform additional splitting of
  4955. files into individual packages. Recipes can either prepend to this
  4956. variable or prepend to the ``populate_packages`` function in order to
  4957. perform additional package splitting. In either case, the function
  4958. should set :term:`PACKAGES`,
  4959. :term:`FILES`, :term:`RDEPENDS` and
  4960. other packaging variables appropriately in order to perform the
  4961. desired splitting.
  4962. :term:`PARALLEL_MAKE`
  4963. Extra options passed to the build tool command (``make``,
  4964. ``ninja`` or more specific build engines, like the Go language one)
  4965. during the :ref:`ref-tasks-compile` task, to specify parallel compilation
  4966. on the local build host. This variable is usually in the form "-j x",
  4967. where x represents the maximum number of parallel threads such engines
  4968. can run.
  4969. .. note::
  4970. For software compiled by ``make``, in order for :term:`PARALLEL_MAKE`
  4971. to be effective, ``make`` must be called with
  4972. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  4973. way to ensure this is to use the ``oe_runmake`` function.
  4974. By default, the OpenEmbedded build system automatically sets this
  4975. variable to be equal to the number of cores the build system uses.
  4976. .. note::
  4977. If the software being built experiences dependency issues during
  4978. the :ref:`ref-tasks-compile` task that result in race conditions, you can clear
  4979. the :term:`PARALLEL_MAKE` variable within the recipe as a workaround. For
  4980. information on addressing race conditions, see the
  4981. ":ref:`dev-manual/debugging:debugging parallel make races`"
  4982. section in the Yocto Project Development Tasks Manual.
  4983. For single socket systems (i.e. one CPU), you should not have to
  4984. override this variable to gain optimal parallelism during builds.
  4985. However, if you have very large systems that employ multiple physical
  4986. CPUs, you might want to make sure the :term:`PARALLEL_MAKE` variable is
  4987. not set higher than "-j 20".
  4988. For more information on speeding up builds, see the
  4989. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  4990. section in the Yocto Project Development Tasks Manual.
  4991. :term:`PARALLEL_MAKEINST`
  4992. Extra options passed to the build tool install command
  4993. (``make install``, ``ninja install`` or more specific ones)
  4994. during the :ref:`ref-tasks-install` task in order to specify
  4995. parallel installation. This variable defaults to the value of
  4996. :term:`PARALLEL_MAKE`.
  4997. .. note::
  4998. For software compiled by ``make``, in order for :term:`PARALLEL_MAKEINST`
  4999. to be effective, ``make`` must be called with
  5000. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  5001. way to ensure this is to use the ``oe_runmake`` function.
  5002. If the software being built experiences dependency issues during
  5003. the :ref:`ref-tasks-install` task that result in race conditions, you can
  5004. clear the :term:`PARALLEL_MAKEINST` variable within the recipe as a
  5005. workaround. For information on addressing race conditions, see the
  5006. ":ref:`dev-manual/debugging:debugging parallel make races`"
  5007. section in the Yocto Project Development Tasks Manual.
  5008. :term:`PATCHRESOLVE`
  5009. Determines the action to take when a patch fails. You can set this
  5010. variable to one of two values: "noop" and "user".
  5011. The default value of "noop" causes the build to simply fail when the
  5012. OpenEmbedded build system cannot successfully apply a patch. Setting
  5013. the value to "user" causes the build system to launch a shell and
  5014. places you in the right location so that you can manually resolve the
  5015. conflicts.
  5016. Set this variable in your ``local.conf`` file.
  5017. :term:`PATCHTOOL`
  5018. Specifies the utility used to apply patches for a recipe during the
  5019. :ref:`ref-tasks-patch` task. You can specify one of
  5020. three utilities: "patch", "quilt", or "git". The default utility used
  5021. is "quilt" except for the quilt-native recipe itself. Because the
  5022. quilt tool is not available at the time quilt-native is being
  5023. patched, it uses "patch".
  5024. If you wish to use an alternative patching tool, set the variable in
  5025. the recipe using one of the following::
  5026. PATCHTOOL = "patch"
  5027. PATCHTOOL = "quilt"
  5028. PATCHTOOL = "git"
  5029. :term:`PE`
  5030. The epoch of the recipe. By default, this variable is unset. The
  5031. variable is used to make upgrades possible when the versioning scheme
  5032. changes in some backwards incompatible way.
  5033. :term:`PE` is the default value of the :term:`PKGE` variable.
  5034. :term:`PEP517_WHEEL_PATH`
  5035. When used by recipes that inherit the :ref:`ref-classes-python_pep517`
  5036. class, denotes the path to ``dist/`` (short for distribution) where the
  5037. binary archive ``wheel`` is built.
  5038. :term:`PERSISTENT_DIR`
  5039. See :term:`bitbake:PERSISTENT_DIR` in the BitBake manual.
  5040. :term:`PF`
  5041. Specifies the recipe or package name and includes all version and
  5042. revision numbers (i.e. ``glibc-2.13-r20+svnr15508/`` and
  5043. ``bash-4.2-r1/``). This variable is comprised of the following:
  5044. ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`}
  5045. :term:`PIXBUF_PACKAGES`
  5046. When inheriting the :ref:`ref-classes-pixbufcache`
  5047. class, this variable identifies packages that contain the pixbuf
  5048. loaders used with ``gdk-pixbuf``. By default, the
  5049. :ref:`ref-classes-pixbufcache` class assumes that
  5050. the loaders are in the recipe's main package (i.e.
  5051. ``${``\ :term:`PN`\ ``}``). Use this variable if the
  5052. loaders you need are in a package other than that main package.
  5053. :term:`PKG`
  5054. The name of the resulting package created by the OpenEmbedded build
  5055. system.
  5056. .. note::
  5057. When using the :term:`PKG` variable, you must use a package name override.
  5058. For example, when the :ref:`ref-classes-debian` class renames the output
  5059. package, it does so by setting ``PKG:packagename``.
  5060. :term:`PKG_CONFIG_PATH`
  5061. The path to ``pkg-config`` files for the current build context.
  5062. ``pkg-config`` reads this variable from the environment.
  5063. :term:`PKGD`
  5064. Points to the destination directory for files to be packaged before
  5065. they are split into individual packages. This directory defaults to
  5066. the following::
  5067. ${WORKDIR}/package
  5068. Do not change this default.
  5069. :term:`PKGDATA_DIR`
  5070. Points to a shared, global-state directory that holds data generated
  5071. during the packaging process. During the packaging process, the
  5072. :ref:`ref-tasks-packagedata` task packages data
  5073. for each recipe and installs it into this temporary, shared area.
  5074. This directory defaults to the following, which you should not
  5075. change::
  5076. ${STAGING_DIR_HOST}/pkgdata
  5077. For examples of how this data is used, see the
  5078. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5079. section in the Yocto Project Overview and Concepts Manual and the
  5080. ":ref:`dev-manual/debugging:viewing package information with \`\`oe-pkgdata-util\`\``"
  5081. section in the Yocto Project Development Tasks Manual. For more
  5082. information on the shared, global-state directory, see
  5083. :term:`STAGING_DIR_HOST`.
  5084. :term:`PKGDEST`
  5085. Points to the parent directory for files to be packaged after they
  5086. have been split into individual packages. This directory defaults to
  5087. the following::
  5088. ${WORKDIR}/packages-split
  5089. Under this directory, the build system creates directories for each
  5090. package specified in :term:`PACKAGES`. Do not change
  5091. this default.
  5092. :term:`PKGDESTWORK`
  5093. Points to a temporary work area where the
  5094. :ref:`ref-tasks-package` task saves package metadata.
  5095. The :term:`PKGDESTWORK` location defaults to the following::
  5096. ${WORKDIR}/pkgdata
  5097. Do not change this default.
  5098. The :ref:`ref-tasks-packagedata` task copies the
  5099. package metadata from :term:`PKGDESTWORK` to
  5100. :term:`PKGDATA_DIR` to make it available globally.
  5101. :term:`PKGE`
  5102. The epoch of the package(s) built by the recipe. By default, :term:`PKGE`
  5103. is set to :term:`PE`.
  5104. :term:`PKGR`
  5105. The revision of the package(s) built by the recipe. By default,
  5106. :term:`PKGR` is set to :term:`PR`.
  5107. :term:`PKGV`
  5108. The version of the package(s) built by the recipe. By default,
  5109. :term:`PKGV` is set to :term:`PV`.
  5110. :term:`PN`
  5111. This variable can have two separate functions depending on the
  5112. context: a recipe name or a resulting package name.
  5113. :term:`PN` refers to a recipe name in the context of a file used by the
  5114. OpenEmbedded build system as input to create a package. The name is
  5115. normally extracted from the recipe file name. For example, if the
  5116. recipe is named ``expat_2.0.1.bb``, then the default value of :term:`PN`
  5117. will be "expat".
  5118. The variable refers to a package name in the context of a file
  5119. created or produced by the OpenEmbedded build system.
  5120. If applicable, the :term:`PN` variable also contains any special suffix
  5121. or prefix. For example, using ``bash`` to build packages for the
  5122. native machine, :term:`PN` is ``bash-native``. Using ``bash`` to build
  5123. packages for the target and for Multilib, :term:`PN` would be ``bash``
  5124. and ``lib64-bash``, respectively.
  5125. :term:`POPULATE_SDK_POST_HOST_COMMAND`
  5126. Specifies a list of functions to call once the OpenEmbedded build
  5127. system has created the host part of the SDK. You can specify
  5128. functions separated by spaces::
  5129. POPULATE_SDK_POST_HOST_COMMAND += "function"
  5130. If you need to pass the SDK path to a command within a function, you
  5131. can use ``${SDK_DIR}``, which points to the parent directory used by
  5132. the OpenEmbedded build system when creating SDK output. See the
  5133. :term:`SDK_DIR` variable for more information.
  5134. :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  5135. Specifies a list of functions to call once the OpenEmbedded build
  5136. system has created the target part of the SDK. You can specify
  5137. functions separated by spaces::
  5138. POPULATE_SDK_POST_TARGET_COMMAND += "function"
  5139. If you need to pass the SDK path to a command within a function, you
  5140. can use ``${SDK_DIR}``, which points to the parent directory used by
  5141. the OpenEmbedded build system when creating SDK output. See the
  5142. :term:`SDK_DIR` variable for more information.
  5143. :term:`PR`
  5144. The revision of the recipe. The default value for this variable is
  5145. "r0". Subsequent revisions of the recipe conventionally have the
  5146. values "r1", "r2", and so forth. When :term:`PV` increases,
  5147. :term:`PR` is conventionally reset to "r0".
  5148. .. note::
  5149. The OpenEmbedded build system does not need the aid of :term:`PR`
  5150. to know when to rebuild a recipe. The build system uses the task
  5151. :ref:`input checksums <overview-manual/concepts:checksums (signatures)>` along with the
  5152. :ref:`stamp <structure-build-tmp-stamps>` and
  5153. :ref:`overview-manual/concepts:shared state cache`
  5154. mechanisms.
  5155. The :term:`PR` variable primarily becomes significant when a package
  5156. manager dynamically installs packages on an already built image. In
  5157. this case, :term:`PR`, which is the default value of
  5158. :term:`PKGR`, helps the package manager distinguish which
  5159. package is the most recent one in cases where many packages have the
  5160. same :term:`PV` (i.e. :term:`PKGV`). A component having many packages with
  5161. the same :term:`PV` usually means that the packages all install the same
  5162. upstream version, but with later (:term:`PR`) version packages including
  5163. packaging fixes.
  5164. .. note::
  5165. :term:`PR` does not need to be increased for changes that do not change the
  5166. package contents or metadata.
  5167. Because manually managing :term:`PR` can be cumbersome and error-prone,
  5168. an automated solution exists. See the
  5169. ":ref:`dev-manual/packages:working with a pr service`" section
  5170. in the Yocto Project Development Tasks Manual for more information.
  5171. :term:`PREFERRED_PROVIDER`
  5172. If multiple recipes provide the same item, this variable determines
  5173. which recipe is preferred and thus provides the item (i.e. the
  5174. preferred provider). You should always suffix this variable with the
  5175. name of the provided item. And, you should define the variable using
  5176. the preferred recipe's name (:term:`PN`). Here is a common
  5177. example::
  5178. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  5179. In the previous example, multiple recipes are providing "virtual/kernel".
  5180. The :term:`PREFERRED_PROVIDER` variable is set with the name (:term:`PN`) of
  5181. the recipe you prefer to provide "virtual/kernel".
  5182. Here are more examples::
  5183. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  5184. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  5185. For more
  5186. information, see the ":ref:`dev-manual/new-recipe:using virtual providers`"
  5187. section in the Yocto Project Development Tasks Manual.
  5188. .. note::
  5189. If you use a ``virtual/\*`` item with :term:`PREFERRED_PROVIDER`, then any
  5190. recipe that :term:`PROVIDES` that item but is not selected (defined)
  5191. by :term:`PREFERRED_PROVIDER` is prevented from building, which is usually
  5192. desirable since this mechanism is designed to select between mutually
  5193. exclusive alternative providers.
  5194. :term:`PREFERRED_PROVIDERS`
  5195. See :term:`bitbake:PREFERRED_PROVIDERS` in the BitBake manual.
  5196. :term:`PREFERRED_RPROVIDER`
  5197. The :term:`PREFERRED_RPROVIDER` variable works like the
  5198. :term:`PREFERRED_PROVIDER` variable, but it denotes packages that provide a
  5199. *runtime* component. Runtime providers are declared in recipes that set
  5200. the :term:`RPROVIDES` variable for a specific package.
  5201. For example::
  5202. PREFERRED_RPROVIDER_virtual-x-terminal-emulator = "rxvt-unicode"
  5203. This statement sets the runtime provider for the X terminal emulator to
  5204. ``rxvt-unicode``. The ``rxvt-unicode`` package is a runtime provider of
  5205. this component because the ``rxvt-unicode`` recipe set the following
  5206. :term:`RPROVIDES` definition for the ``rxvt-unicode`` (``${PN}``)
  5207. package::
  5208. RPROVIDES:${PN} = "virtual-x-terminal-emulator"
  5209. For more information on virtual providers, see the
  5210. ":ref:`dev-manual/new-recipe:using virtual providers`" section in the
  5211. Yocto Project Development Tasks Manual.
  5212. :term:`PREFERRED_VERSION`
  5213. If there are multiple versions of a recipe available, this variable
  5214. determines which version should be given preference. You must always
  5215. suffix the variable with the :term:`PN` you want to select (`python` in
  5216. the first example below), and you should specify the :term:`PV`
  5217. accordingly (`3.4.0` in the example).
  5218. The :term:`PREFERRED_VERSION` variable supports limited wildcard use
  5219. through the "``%``" character. You can use the character to match any
  5220. number of characters, which can be useful when specifying versions
  5221. that contain long revision numbers that potentially change. Here are
  5222. two examples::
  5223. PREFERRED_VERSION_python = "3.4.0"
  5224. PREFERRED_VERSION_linux-yocto = "5.0%"
  5225. .. note::
  5226. The use of the "%" character is limited in that it only works at the end of the
  5227. string. You cannot use the wildcard character in any other
  5228. location of the string.
  5229. The specified version is matched against :term:`PV`, which does not
  5230. necessarily match the version part of the recipe's filename.
  5231. If you want to select a recipe named ``foo_git.bb`` which has :term:`PV`
  5232. set to ``1.2.3+git``, you can do so by setting ```PREFERRED_VERSION_foo``
  5233. to ``1.2.3%`` (i.e. simply setting ``PREFERRED_VERSION_foo`` to ``git``
  5234. will not work as the name of the recipe isn't used, but rather its
  5235. :term:`PV` definition).
  5236. Sometimes the :term:`PREFERRED_VERSION` variable can be set by
  5237. configuration files in a way that is hard to change. You can use
  5238. :term:`OVERRIDES` to set a machine-specific
  5239. override. Here is an example::
  5240. PREFERRED_VERSION_linux-yocto:qemux86 = "5.0%"
  5241. Although not recommended, worst case, you can also use the
  5242. "forcevariable" override, which is the strongest override possible.
  5243. Here is an example::
  5244. PREFERRED_VERSION_linux-yocto:forcevariable = "5.0%"
  5245. .. note::
  5246. The ``:forcevariable`` override is not handled specially. This override
  5247. only works because the default value of :term:`OVERRIDES` includes "forcevariable".
  5248. If a recipe with the specified version is not available, a warning
  5249. message will be shown. See :term:`REQUIRED_VERSION` if you want this
  5250. to be an error instead.
  5251. :term:`PREMIRRORS`
  5252. Specifies additional paths from which the OpenEmbedded build system
  5253. gets source code. When the build system searches for source code, it
  5254. first tries the local download directory. If that location fails, the
  5255. build system tries locations defined by :term:`PREMIRRORS`, the upstream
  5256. source, and then locations specified by
  5257. :term:`MIRRORS` in that order.
  5258. The default value for :term:`PREMIRRORS` is defined in the
  5259. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  5260. Typically, you could add a specific server for the build system to
  5261. attempt before any others by adding something like the following to
  5262. the ``local.conf`` configuration file in the
  5263. :term:`Build Directory`::
  5264. PREMIRRORS:prepend = "\
  5265. git://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5266. ftp://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5267. http://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5268. https://.*/.* &YOCTO_DL_URL;/mirror/sources/"
  5269. These changes cause the
  5270. build system to intercept Git, FTP, HTTP, and HTTPS requests and
  5271. direct them to the ``http://`` sources mirror. You can use
  5272. ``file://`` URLs to point to local directories or network shares as
  5273. well.
  5274. :term:`PRIORITY`
  5275. Indicates the importance of a package.
  5276. :term:`PRIORITY` is considered to be part of the distribution policy
  5277. because the importance of any given recipe depends on the purpose for
  5278. which the distribution is being produced. Thus, :term:`PRIORITY` is not
  5279. normally set within recipes.
  5280. You can set :term:`PRIORITY` to "required", "standard", "extra", and
  5281. "optional", which is the default.
  5282. :term:`PRIVATE_LIBS`
  5283. Specifies libraries installed within a recipe that should be ignored
  5284. by the OpenEmbedded build system's shared library resolver. This
  5285. variable is typically used when software being built by a recipe has
  5286. its own private versions of a library normally provided by another
  5287. recipe. In this case, you would not want the package containing the
  5288. private libraries to be set as a dependency on other unrelated
  5289. packages that should instead depend on the package providing the
  5290. standard version of the library.
  5291. Libraries specified in this variable should be specified by their
  5292. file name. For example, from the Firefox recipe in meta-browser::
  5293. PRIVATE_LIBS = "libmozjs.so \
  5294. libxpcom.so \
  5295. libnspr4.so \
  5296. libxul.so \
  5297. libmozalloc.so \
  5298. libplc4.so \
  5299. libplds4.so"
  5300. For more information, see the
  5301. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5302. section in the Yocto Project Overview and Concepts Manual.
  5303. :term:`PROVIDES`
  5304. A list of aliases by which a particular recipe can be known. By
  5305. default, a recipe's own :term:`PN` is implicitly already in its
  5306. :term:`PROVIDES` list and therefore does not need to mention that it
  5307. provides itself. If a recipe uses :term:`PROVIDES`, the additional
  5308. aliases are synonyms for the recipe and can be useful for satisfying
  5309. dependencies of other recipes during the build as specified by
  5310. :term:`DEPENDS`.
  5311. Consider the following example :term:`PROVIDES` statement from the recipe
  5312. file ``eudev_3.2.9.bb``::
  5313. PROVIDES += "udev"
  5314. The :term:`PROVIDES` statement
  5315. results in the "eudev" recipe also being available as simply "udev".
  5316. .. note::
  5317. A recipe's own recipe name (:term:`PN`) is always implicitly prepended
  5318. to :term:`PROVIDES`, so while using "+=" in the above example may not be
  5319. strictly necessary it is recommended to avoid confusion.
  5320. In addition to providing recipes under alternate names, the
  5321. :term:`PROVIDES` mechanism is also used to implement virtual targets. A
  5322. virtual target is a name that corresponds to some particular
  5323. functionality (e.g. a Linux kernel). Recipes that provide the
  5324. functionality in question list the virtual target in :term:`PROVIDES`.
  5325. Recipes that depend on the functionality in question can include the
  5326. virtual target in :term:`DEPENDS` to leave the choice of provider open.
  5327. Conventionally, virtual targets have names on the form
  5328. "virtual/function" (e.g. "virtual/kernel"). The slash is simply part
  5329. of the name and has no syntactical significance.
  5330. The :term:`PREFERRED_PROVIDER` variable is
  5331. used to select which particular recipe provides a virtual target.
  5332. .. note::
  5333. A corresponding mechanism for virtual runtime dependencies (packages)
  5334. exists. However, the mechanism does not depend on any special
  5335. functionality beyond ordinary variable assignments. For example,
  5336. :term:`VIRTUAL-RUNTIME_dev_manager <VIRTUAL-RUNTIME>` refers to the
  5337. package of the component that manages the ``/dev`` directory.
  5338. Setting the "preferred provider" for runtime dependencies is as
  5339. simple as using the following assignment in a configuration file::
  5340. VIRTUAL-RUNTIME_dev_manager = "udev"
  5341. :term:`PRSERV_HOST`
  5342. The network based :term:`PR` service host and port.
  5343. The ``conf/templates/default/local.conf.sample.extended`` configuration
  5344. file in the :term:`Source Directory` shows how the :term:`PRSERV_HOST`
  5345. variable is set::
  5346. PRSERV_HOST = "localhost:0"
  5347. You must
  5348. set the variable if you want to automatically start a local :ref:`PR
  5349. service <dev-manual/packages:working with a pr service>`. You can
  5350. set :term:`PRSERV_HOST` to other values to use a remote PR service.
  5351. :term:`PRSERV_UPSTREAM`
  5352. This variable can be used to specify an upstream PR server for the local
  5353. PR server to connect to, in the form of ``host:port``.
  5354. This makes it possible to implement local fixes to an upstream package.
  5355. :term:`PSEUDO_IGNORE_PATHS`
  5356. A comma-separated (without spaces) list of path prefixes that should be ignored
  5357. by pseudo when monitoring and recording file operations, in order to avoid
  5358. problems with files being written to outside of the pseudo context and
  5359. reduce pseudo's overhead. A path is ignored if it matches any prefix in the list
  5360. and can include partial directory (or file) names.
  5361. :term:`PTEST_ENABLED`
  5362. Specifies whether or not :ref:`Package
  5363. Test <test-manual/ptest:testing packages with ptest>` (ptest)
  5364. functionality is enabled when building a recipe. You should not set
  5365. this variable directly. Enabling and disabling building Package Tests
  5366. at build time should be done by adding "ptest" to (or removing it
  5367. from) :term:`DISTRO_FEATURES`.
  5368. :term:`PV`
  5369. The version of the recipe. The version is normally extracted from the
  5370. recipe filename. For example, if the recipe is named
  5371. ``expat_2.0.1.bb``, then the default value of :term:`PV` will be "2.0.1".
  5372. :term:`PV` is generally not overridden within a recipe unless it is
  5373. building an unstable (i.e. development) version from a source code
  5374. repository (e.g. Git or Subversion).
  5375. :term:`PV` is the default value of the :term:`PKGV` variable.
  5376. :term:`PYPI_PACKAGE`
  5377. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5378. `PyPI <https://pypi.org/>`__ package name to be built. The default value
  5379. is set based upon :term:`BPN` (stripping any "python-" or "python3-"
  5380. prefix off if present), however for some packages it will need to be set
  5381. explicitly if that will not match the package name (e.g. where the
  5382. package name has a prefix, underscores, uppercase letters etc.)
  5383. :term:`PYPI_PACKAGE_EXT`
  5384. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5385. file extension to use when fetching a package from `PyPI
  5386. <https://pypi.org/>`__. Default is ``tar.gz``.
  5387. :term:`PYPI_SRC_URI`
  5388. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5389. full `pythonhosted <https://files.pythonhosted.org/>`__ URI for
  5390. fetching the package to be built. The default value is constructed
  5391. based upon :term:`PYPI_PACKAGE`, :term:`PYPI_PACKAGE_EXT`, and
  5392. :term:`PV`. Most recipes will not need to set this variable unless
  5393. they are building an unstable (i.e. development) version.
  5394. :term:`PYTHON_ABI`
  5395. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5396. class, denotes the Application Binary Interface (ABI) currently in use
  5397. for Python. By default, the ABI is "m". You do not have to set this
  5398. variable as the OpenEmbedded build system sets it for you.
  5399. The OpenEmbedded build system uses the ABI to construct directory
  5400. names used when installing the Python headers and libraries in
  5401. sysroot (e.g. ``.../python3.3m/...``).
  5402. :term:`QA_EMPTY_DIRS`
  5403. Specifies a list of directories that are expected to be empty when
  5404. packaging; if ``empty-dirs`` appears in :term:`ERROR_QA` or
  5405. :term:`WARN_QA` these will be checked and an error or warning
  5406. (respectively) will be produced.
  5407. The default :term:`QA_EMPTY_DIRS` value is set in
  5408. :ref:`insane.bbclass <ref-classes-insane>`.
  5409. :term:`QA_EMPTY_DIRS_RECOMMENDATION`
  5410. Specifies a recommendation for why a directory must be empty,
  5411. which will be included in the error message if a specific directory
  5412. is found to contain files. Must be overridden with the directory
  5413. path to match on.
  5414. If no recommendation is specified for a directory, then the default
  5415. "but it is expected to be empty" will be used.
  5416. An example message shows if files were present in '/dev'::
  5417. QA_EMPTY_DIRS_RECOMMENDATION:/dev = "but all devices must be created at runtime"
  5418. :term:`RANLIB`
  5419. The minimal command and arguments to run ``ranlib``.
  5420. :term:`RCONFLICTS`
  5421. The list of packages that conflict with packages. Note that packages
  5422. will not be installed if conflicting packages are not first removed.
  5423. Like all package-controlling variables, you must always use them in
  5424. conjunction with a package name override. Here is an example::
  5425. RCONFLICTS:${PN} = "another_conflicting_package_name"
  5426. BitBake, which the OpenEmbedded build system uses, supports
  5427. specifying versioned dependencies. Although the syntax varies
  5428. depending on the packaging format, BitBake hides these differences
  5429. from you. Here is the general syntax to specify versions with the
  5430. :term:`RCONFLICTS` variable::
  5431. RCONFLICTS:${PN} = "package (operator version)"
  5432. For ``operator``, you can specify the following:
  5433. - =
  5434. - <
  5435. - >
  5436. - <=
  5437. - >=
  5438. For example, the following sets up a dependency on version 1.2 or
  5439. greater of the package ``foo``::
  5440. RCONFLICTS:${PN} = "foo (>= 1.2)"
  5441. :term:`RDEPENDS`
  5442. Lists runtime dependencies of a package. These dependencies are other
  5443. packages that must be installed in order for the package to function
  5444. correctly. As an example, the following assignment declares that the
  5445. package ``foo`` needs the packages ``bar`` and ``baz`` to be
  5446. installed::
  5447. RDEPENDS:foo = "bar baz"
  5448. The most common types of package
  5449. runtime dependencies are automatically detected and added. Therefore,
  5450. most recipes do not need to set :term:`RDEPENDS`. For more information,
  5451. see the
  5452. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5453. section in the Yocto Project Overview and Concepts Manual.
  5454. The practical effect of the above :term:`RDEPENDS` assignment is that
  5455. ``bar`` and ``baz`` will be declared as dependencies inside the
  5456. package ``foo`` when it is written out by one of the
  5457. :ref:`do_package_write_* <ref-tasks-package_write_deb>` tasks.
  5458. Exactly how this is done depends on which package format is used,
  5459. which is determined by
  5460. :term:`PACKAGE_CLASSES`. When the
  5461. corresponding package manager installs the package, it will know to
  5462. also install the packages on which it depends.
  5463. To ensure that the packages ``bar`` and ``baz`` get built, the
  5464. previous :term:`RDEPENDS` assignment also causes a task dependency to be
  5465. added. This dependency is from the recipe's
  5466. :ref:`ref-tasks-build` (not to be confused with
  5467. :ref:`ref-tasks-compile`) task to the
  5468. :ref:`do_package_write_* <ref-tasks-package_write_deb>` task of the recipes that build ``bar`` and
  5469. ``baz``.
  5470. The names of the packages you list within :term:`RDEPENDS` must be the
  5471. names of other packages --- they cannot be recipe names. Although
  5472. package names and recipe names usually match, the important point
  5473. here is that you are providing package names within the :term:`RDEPENDS`
  5474. variable. For an example of the default list of packages created from
  5475. a recipe, see the :term:`PACKAGES` variable.
  5476. Because the :term:`RDEPENDS` variable applies to packages being built,
  5477. you should always use the variable in a form with an attached package
  5478. name (remember that a single recipe can build multiple packages). For
  5479. example, suppose you are building a development package that depends
  5480. on the ``perl`` package. In this case, you would use the following
  5481. :term:`RDEPENDS` statement::
  5482. RDEPENDS:${PN}-dev += "perl"
  5483. In the example,
  5484. the development package depends on the ``perl`` package. Thus, the
  5485. :term:`RDEPENDS` variable has the ``${PN}-dev`` package name as part of
  5486. the variable.
  5487. .. note::
  5488. ``RDEPENDS:${PN}-dev`` includes ``${``\ :term:`PN`\ ``}``
  5489. by default. This default is set in the BitBake configuration file
  5490. (``meta/conf/bitbake.conf``). Be careful not to accidentally remove
  5491. ``${PN}`` when modifying ``RDEPENDS:${PN}-dev``. Use the "+=" operator
  5492. rather than the "=" operator.
  5493. The package names you use with :term:`RDEPENDS` must appear as they would
  5494. in the :term:`PACKAGES` variable. The :term:`PKG` variable
  5495. allows a different name to be used for the final package (e.g. the
  5496. :ref:`ref-classes-debian` class uses this to rename
  5497. packages), but this final package name cannot be used with
  5498. :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be
  5499. independent of the package format used.
  5500. BitBake, which the OpenEmbedded build system uses, supports
  5501. specifying versioned dependencies. Although the syntax varies
  5502. depending on the packaging format, BitBake hides these differences
  5503. from you. Here is the general syntax to specify versions with the
  5504. :term:`RDEPENDS` variable::
  5505. RDEPENDS:${PN} = "package (operator version)"
  5506. For ``operator``, you can specify the following:
  5507. - =
  5508. - <
  5509. - >
  5510. - <=
  5511. - >=
  5512. For version, provide the version number.
  5513. .. note::
  5514. You can use :term:`EXTENDPKGV` to provide a full package version
  5515. specification.
  5516. For example, the following sets up a dependency on version 1.2 or
  5517. greater of the package ``foo``::
  5518. RDEPENDS:${PN} = "foo (>= 1.2)"
  5519. For information on build-time dependencies, see the :term:`DEPENDS`
  5520. variable. You can also see the
  5521. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  5522. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`" sections in the
  5523. BitBake User Manual for additional information on tasks and dependencies.
  5524. :term:`RECIPE_MAINTAINER`
  5525. This variable defines the name and e-mail address of the maintainer of a
  5526. recipe. Such information can be used by human users submitted changes,
  5527. and by automated tools to send notifications, for example about
  5528. vulnerabilities or source updates.
  5529. The variable can be defined in a global distribution :oe_git:`maintainers.inc
  5530. </openembedded-core/tree/meta/conf/distro/include/maintainers.inc>` file::
  5531. meta/conf/distro/include/maintainers.inc:RECIPE_MAINTAINER:pn-sysvinit = "Ross Burton <ross.burton@arm.com>"
  5532. It can also be directly defined in a recipe,
  5533. for example in the ``libgpiod`` one::
  5534. RECIPE_MAINTAINER = "Bartosz Golaszewski <brgl@bgdev.pl>"
  5535. :term:`RECIPE_NO_UPDATE_REASON`
  5536. If a recipe should not be replaced by a more recent upstream version,
  5537. putting the reason why in this variable in a recipe allows
  5538. ``devtool check-upgrade-status`` command to display it, as explained
  5539. in the ":ref:`ref-manual/devtool-reference:checking on the upgrade status of a recipe`"
  5540. section.
  5541. :term:`RECIPE_SYSROOT`
  5542. This variable points to the directory that holds all files populated from
  5543. recipes specified in :term:`DEPENDS`. As the name indicates,
  5544. think of this variable as a custom root (``/``) for the recipe that will be
  5545. used by the compiler in order to find headers and other files needed to complete
  5546. its job.
  5547. This variable is related to :term:`STAGING_DIR_HOST` or :term:`STAGING_DIR_TARGET`
  5548. according to the type of the recipe and the build target.
  5549. To better understand this variable, consider the following examples:
  5550. - For ``#include <header.h>``, ``header.h`` should be in ``"${RECIPE_SYSROOT}/usr/include"``
  5551. - For ``-lexample``, ``libexample.so`` should be in ``"${RECIPE_SYSROOT}/lib"``
  5552. or other library sysroot directories.
  5553. The default value is ``"${WORKDIR}/recipe-sysroot"``.
  5554. Do not modify it.
  5555. :term:`RECIPE_SYSROOT_NATIVE`
  5556. This is similar to :term:`RECIPE_SYSROOT` but the populated files are from
  5557. ``-native`` recipes. This allows a recipe built for the target machine to
  5558. use ``native`` tools.
  5559. This variable is related to :term:`STAGING_DIR_NATIVE`.
  5560. The default value is ``"${WORKDIR}/recipe-sysroot-native"``.
  5561. Do not modify it.
  5562. :term:`RECIPE_UPGRADE_EXTRA_TASKS`
  5563. When upgrading a recipe with ``devtool upgrade``, the variable
  5564. :term:`RECIPE_UPGRADE_EXTRA_TASKS` specifies a space-delimited list of
  5565. tasks to run after the new sources have been unpacked.
  5566. For some recipes, after the new source has been unpacked, additional tasks
  5567. may need to be run during an upgrade. A good example of this is recipes
  5568. which inherit :ref:`ref-classes-cargo-update-recipe-crates`, where the
  5569. `do_update_crates` task needs to be run whenever Cargo.toml/Cargo.lock have
  5570. changed in the source.
  5571. :term:`REPODIR`
  5572. See :term:`bitbake:REPODIR` in the BitBake manual.
  5573. :term:`REQUIRED_DISTRO_FEATURES`
  5574. When inheriting the :ref:`ref-classes-features_check`
  5575. class, this variable identifies distribution features that must exist
  5576. in the current configuration in order for the OpenEmbedded build
  5577. system to build the recipe. In other words, if the
  5578. :term:`REQUIRED_DISTRO_FEATURES` variable lists a feature that does not
  5579. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  5580. the recipe will be skipped, and if the build system attempts to build
  5581. the recipe then an error will be triggered.
  5582. :term:`REQUIRED_VERSION`
  5583. If there are multiple versions of a recipe available, this variable
  5584. determines which version should be given preference.
  5585. :term:`REQUIRED_VERSION` works in exactly the same manner as
  5586. :term:`PREFERRED_VERSION`, except that if the specified version is not
  5587. available then an error message is shown and the build fails
  5588. immediately.
  5589. If both :term:`REQUIRED_VERSION` and :term:`PREFERRED_VERSION` are set
  5590. for the same recipe, the :term:`REQUIRED_VERSION` value applies.
  5591. :term:`RETAIN_DIRS_ALWAYS`
  5592. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5593. space-separated recipe-specific directories to always save in a tarball
  5594. whether the recipe build has failed or not.
  5595. :term:`RETAIN_DIRS_FAILURE`
  5596. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5597. space-separated recipe-specific directories to save in a tarball on
  5598. failure of the recipe's build.
  5599. :term:`RETAIN_DIRS_GLOBAL_ALWAYS`
  5600. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5601. space-separated directories that are not specific to a recipe to save in a
  5602. tarball whether the build has failed or not.
  5603. :term:`RETAIN_DIRS_GLOBAL_FAILURE`
  5604. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5605. space-separated directories that are not specific to a recipe to save in a
  5606. tarball on build failure.
  5607. :term:`RETAIN_ENABLED`
  5608. Disables the creation of a tarball of the work directory done by the
  5609. :ref:`ref-classes-retain` class. Can be set to specific recipes to disable
  5610. the class when the class was inherited globally with :term:`INHERIT`.
  5611. :term:`RETAIN_OUTDIR`
  5612. When inheriting the :ref:`ref-classes-retain` class, this variable
  5613. specifies the directory where to save the tarball of the work directory.
  5614. The default directory is ``${TMPDIR}/retain``.
  5615. :term:`RETAIN_TARBALL_SUFFIX`
  5616. When inheriting the :ref:`ref-classes-retain` class, this variable
  5617. specifies the suffix of the tarball of the work directory. The default
  5618. suffix is ``${DATETIME}.tar.gz``.
  5619. :term:`RM_WORK_EXCLUDE`
  5620. With :ref:`ref-classes-rm-work` enabled, this variable
  5621. specifies a list of recipes whose work directories should not be removed.
  5622. See the ":ref:`ref-classes-rm-work`" section for more details.
  5623. :term:`ROOT_HOME`
  5624. Defines the root home directory. By default, this directory is set as
  5625. follows in the BitBake configuration file::
  5626. ROOT_HOME ??= "/home/root"
  5627. .. note::
  5628. This default value is likely used because some embedded solutions
  5629. prefer to have a read-only root filesystem and prefer to keep
  5630. writeable data in one place.
  5631. You can override the default by setting the variable in any layer or
  5632. in the ``local.conf`` file. Because the default is set using a "weak"
  5633. assignment (i.e. "??="), you can use either of the following forms to
  5634. define your override::
  5635. ROOT_HOME = "/root"
  5636. ROOT_HOME ?= "/root"
  5637. These
  5638. override examples use ``/root``, which is probably the most commonly
  5639. used override.
  5640. :term:`ROOTFS`
  5641. Indicates a filesystem image to include as the root filesystem.
  5642. The :term:`ROOTFS` variable is an optional variable used with the
  5643. :ref:`ref-classes-image-live` class.
  5644. :term:`ROOTFS_POSTINSTALL_COMMAND`
  5645. Specifies a list of functions to call after the OpenEmbedded build
  5646. system has installed packages. You can specify functions separated by
  5647. spaces::
  5648. ROOTFS_POSTINSTALL_COMMAND += "function"
  5649. If you need to pass the root filesystem path to a command within a
  5650. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5651. directory that becomes the root filesystem image. See the
  5652. :term:`IMAGE_ROOTFS` variable for more
  5653. information.
  5654. :term:`ROOTFS_POSTPROCESS_COMMAND`
  5655. Specifies a list of functions to call once the OpenEmbedded build
  5656. system has created the root filesystem. You can specify functions
  5657. separated by spaces::
  5658. ROOTFS_POSTPROCESS_COMMAND += "function"
  5659. If you need to pass the root filesystem path to a command within a
  5660. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5661. directory that becomes the root filesystem image. See the
  5662. :term:`IMAGE_ROOTFS` variable for more
  5663. information.
  5664. :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  5665. Specifies a list of functions to call after the OpenEmbedded build
  5666. system has removed unnecessary packages. When runtime package
  5667. management is disabled in the image, several packages are removed
  5668. including ``base-passwd``, ``shadow``, and ``update-alternatives``.
  5669. You can specify functions separated by spaces::
  5670. ROOTFS_POSTUNINSTALL_COMMAND += "function"
  5671. If you need to pass the root filesystem path to a command within a
  5672. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5673. directory that becomes the root filesystem image. See the
  5674. :term:`IMAGE_ROOTFS` variable for more
  5675. information.
  5676. :term:`ROOTFS_PREPROCESS_COMMAND`
  5677. Specifies a list of functions to call before the OpenEmbedded build
  5678. system has created the root filesystem. You can specify functions
  5679. separated by spaces::
  5680. ROOTFS_PREPROCESS_COMMAND += "function"
  5681. If you need to pass the root filesystem path to a command within a
  5682. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5683. directory that becomes the root filesystem image. See the
  5684. :term:`IMAGE_ROOTFS` variable for more
  5685. information.
  5686. :term:`RPMBUILD_EXTRA_PARAMS`
  5687. Specifies extra user-defined parameters for the ``rpmbuild`` command.
  5688. :term:`RPROVIDES`
  5689. A list of package name aliases that a package also provides. These
  5690. aliases are useful for satisfying runtime dependencies of other
  5691. packages both during the build and on the target (as specified by
  5692. :term:`RDEPENDS`).
  5693. .. note::
  5694. A package's own name is implicitly already in its :term:`RPROVIDES` list.
  5695. As with all package-controlling variables, you must always use the
  5696. variable in conjunction with a package name override. Here is an
  5697. example::
  5698. RPROVIDES:${PN} = "widget-abi-2"
  5699. :term:`RRECOMMENDS`
  5700. A list of packages that extends the usability of a package being
  5701. built. The package being built does not depend on this list of
  5702. packages in order to successfully build, but rather uses them for
  5703. extended usability. To specify runtime dependencies for packages, see
  5704. the :term:`RDEPENDS` variable.
  5705. The package manager will automatically install the :term:`RRECOMMENDS`
  5706. list of packages when installing the built package. However, you can
  5707. prevent listed packages from being installed by using the
  5708. :term:`BAD_RECOMMENDATIONS`,
  5709. :term:`NO_RECOMMENDATIONS`, and
  5710. :term:`PACKAGE_EXCLUDE` variables.
  5711. Packages specified in :term:`RRECOMMENDS` need not actually be produced.
  5712. However, there must be a recipe providing each package, either
  5713. through the :term:`PACKAGES` or
  5714. :term:`PACKAGES_DYNAMIC` variables or the
  5715. :term:`RPROVIDES` variable, or an error will occur
  5716. during the build. If such a recipe does exist and the package is not
  5717. produced, the build continues without error.
  5718. Because the :term:`RRECOMMENDS` variable applies to packages being built,
  5719. you should always attach an override to the variable to specify the
  5720. particular package whose usability is being extended. For example,
  5721. suppose you are building a development package that is extended to
  5722. support wireless functionality. In this case, you would use the
  5723. following::
  5724. RRECOMMENDS:${PN}-dev += "wireless_package_name"
  5725. In the
  5726. example, the package name (``${PN}-dev``) must appear as it would in
  5727. the :term:`PACKAGES` namespace before any renaming of the output package
  5728. by classes such as :ref:`ref-classes-debian`.
  5729. BitBake, which the OpenEmbedded build system uses, supports
  5730. specifying versioned recommends. Although the syntax varies depending
  5731. on the packaging format, BitBake hides these differences from you.
  5732. Here is the general syntax to specify versions with the
  5733. :term:`RRECOMMENDS` variable::
  5734. RRECOMMENDS:${PN} = "package (operator version)"
  5735. For ``operator``, you can specify the following:
  5736. - =
  5737. - <
  5738. - >
  5739. - <=
  5740. - >=
  5741. For example, the following sets up a recommend on version 1.2 or
  5742. greater of the package ``foo``::
  5743. RRECOMMENDS:${PN} = "foo (>= 1.2)"
  5744. :term:`RREPLACES`
  5745. A list of packages replaced by a package. The package manager uses
  5746. this variable to determine which package should be installed to
  5747. replace other package(s) during an upgrade. In order to also have the
  5748. other package(s) removed at the same time, you must add the name of
  5749. the other package to the :term:`RCONFLICTS` variable.
  5750. As with all package-controlling variables, you must use this variable
  5751. in conjunction with a package name override. Here is an example::
  5752. RREPLACES:${PN} = "other_package_being_replaced"
  5753. BitBake, which the OpenEmbedded build system uses, supports
  5754. specifying versioned replacements. Although the syntax varies
  5755. depending on the packaging format, BitBake hides these differences
  5756. from you. Here is the general syntax to specify versions with the
  5757. :term:`RREPLACES` variable::
  5758. RREPLACES:${PN} = "package (operator version)"
  5759. For ``operator``, you can specify the following:
  5760. - =
  5761. - <
  5762. - >
  5763. - <=
  5764. - >=
  5765. For example, the following sets up a replacement using version 1.2
  5766. or greater of the package ``foo``::
  5767. RREPLACES:${PN} = "foo (>= 1.2)"
  5768. :term:`RSUGGESTS`
  5769. A list of additional packages that you can suggest for installation
  5770. by the package manager at the time a package is installed. Not all
  5771. package managers support this functionality.
  5772. As with all package-controlling variables, you must always use this
  5773. variable in conjunction with a package name override. Here is an
  5774. example::
  5775. RSUGGESTS:${PN} = "useful_package another_package"
  5776. :term:`RUST_CHANNEL`
  5777. Specifies which version of Rust to build - "stable", "beta" or "nightly".
  5778. The default value is "stable". Set this at your own risk, as values other
  5779. than "stable" are not guaranteed to work at a given time.
  5780. :term:`S`
  5781. The location in the :term:`Build Directory` where
  5782. unpacked recipe source code resides. By default, this directory is
  5783. ``${``\ :term:`WORKDIR`\ ``}/${``\ :term:`BPN`\ ``}-${``\ :term:`PV`\ ``}``,
  5784. where ``${BPN}`` is the base recipe name and ``${PV}`` is the recipe
  5785. version. If the source tarball extracts the code to a directory named
  5786. anything other than ``${BPN}-${PV}``, or if the source code is
  5787. fetched from an SCM such as Git or Subversion, then you must set
  5788. :term:`S` in the recipe so that the OpenEmbedded build system knows where
  5789. to find the unpacked source.
  5790. As an example, assume a :term:`Source Directory`
  5791. top-level folder named ``poky`` and a default :term:`Build Directory` at
  5792. ``poky/build``. In this case, the work directory the build system
  5793. uses to keep the unpacked recipe for ``db`` is the following::
  5794. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  5795. The unpacked source code resides in the ``db-5.1.19`` folder.
  5796. This next example assumes a Git repository. By default, Git
  5797. repositories are cloned to ``${WORKDIR}/git`` during
  5798. :ref:`ref-tasks-fetch`. Since this path is different
  5799. from the default value of :term:`S`, you must set it specifically so the
  5800. source can be located::
  5801. SRC_URI = "git://path/to/repo.git;branch=main"
  5802. S = "${WORKDIR}/git"
  5803. :term:`SANITY_REQUIRED_UTILITIES`
  5804. Specifies a list of command-line utilities that should be checked for
  5805. during the initial sanity checking process when running BitBake. If
  5806. any of the utilities are not installed on the build host, then
  5807. BitBake immediately exits with an error.
  5808. :term:`SANITY_TESTED_DISTROS`
  5809. A list of the host distribution identifiers that the build system has
  5810. been tested against. Identifiers consist of the host distributor ID
  5811. followed by the release, as reported by the ``lsb_release`` tool or
  5812. as read from ``/etc/lsb-release``. Separate the list items with
  5813. explicit newline characters (``\n``). If :term:`SANITY_TESTED_DISTROS` is
  5814. not empty and the current value of
  5815. :term:`NATIVELSBSTRING` does not appear in the
  5816. list, then the build system reports a warning that indicates the
  5817. current host distribution has not been tested as a build host.
  5818. :term:`SDK_ARCH`
  5819. The target architecture for the SDK. Typically, you do not directly
  5820. set this variable. Instead, use :term:`SDKMACHINE`.
  5821. :term:`SDK_ARCHIVE_TYPE`
  5822. Specifies the type of archive to create for the SDK. Valid values:
  5823. - ``tar.xz`` (default)
  5824. - ``tar.zst``
  5825. - ``7zip``
  5826. - ``zip``
  5827. Only one archive type can be specified.
  5828. :term:`SDK_BUILDINFO_FILE`
  5829. When using the :ref:`ref-classes-image-buildinfo` class,
  5830. specifies the file in the SDK to write the build information into. The
  5831. default value is "``/buildinfo``".
  5832. :term:`SDK_CUSTOM_TEMPLATECONF`
  5833. When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to
  5834. "1" and a ``conf/templateconf.cfg`` file exists in the :term:`Build Directory`
  5835. (:term:`TOPDIR`) then this will be copied into the SDK.
  5836. :term:`SDK_DEPLOY`
  5837. The directory set up and used by the
  5838. :ref:`populate_sdk_base <ref-classes-populate-sdk>` class to which the
  5839. SDK is deployed. The :ref:`populate_sdk_base <ref-classes-populate-sdk>`
  5840. class defines :term:`SDK_DEPLOY` as follows::
  5841. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  5842. :term:`SDK_DIR`
  5843. The parent directory used by the OpenEmbedded build system when
  5844. creating SDK output. The
  5845. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines
  5846. the variable as follows::
  5847. SDK_DIR = "${WORKDIR}/sdk"
  5848. .. note::
  5849. The :term:`SDK_DIR` directory is a temporary directory as it is part of
  5850. :term:`WORKDIR`. The final output directory is :term:`SDK_DEPLOY`.
  5851. :term:`SDK_EXT_TYPE`
  5852. Controls whether or not shared state artifacts are copied into the
  5853. extensible SDK. The default value of "full" copies all of the
  5854. required shared state artifacts into the extensible SDK. The value
  5855. "minimal" leaves these artifacts out of the SDK.
  5856. .. note::
  5857. If you set the variable to "minimal", you need to ensure
  5858. :term:`SSTATE_MIRRORS` is set in the SDK's configuration to enable the
  5859. artifacts to be fetched as needed.
  5860. :term:`SDK_HOST_MANIFEST`
  5861. The manifest file for the host part of the SDK. This file lists all
  5862. the installed packages that make up the host part of the SDK. The
  5863. file contains package information on a line-per-package basis as
  5864. follows::
  5865. packagename packagearch version
  5866. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5867. defines the manifest file as follows::
  5868. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  5869. The location is derived using the :term:`SDK_DEPLOY` and
  5870. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5871. :term:`SDK_INCLUDE_PKGDATA`
  5872. When set to "1", specifies to include the packagedata for all recipes
  5873. in the "world" target in the extensible SDK. Including this data
  5874. allows the ``devtool search`` command to find these recipes in search
  5875. results, as well as allows the ``devtool add`` command to map
  5876. dependencies more effectively.
  5877. .. note::
  5878. Enabling the :term:`SDK_INCLUDE_PKGDATA`
  5879. variable significantly increases build time because all of world
  5880. needs to be built. Enabling the variable also slightly increases
  5881. the size of the extensible SDK.
  5882. :term:`SDK_INCLUDE_TOOLCHAIN`
  5883. When set to "1", specifies to include the toolchain in the extensible
  5884. SDK. Including the toolchain is useful particularly when
  5885. :term:`SDK_EXT_TYPE` is set to "minimal" to keep
  5886. the SDK reasonably small but you still want to provide a usable
  5887. toolchain. For example, suppose you want to use the toolchain from an
  5888. IDE or from other tools and you do not want to perform additional
  5889. steps to install the toolchain.
  5890. The :term:`SDK_INCLUDE_TOOLCHAIN` variable defaults to "0" if
  5891. :term:`SDK_EXT_TYPE` is set to "minimal", and defaults to "1" if
  5892. :term:`SDK_EXT_TYPE` is set to "full".
  5893. :term:`SDK_NAME`
  5894. The base name for SDK output files. The default value (as set in
  5895. ``meta-poky/conf/distro/poky.conf``) is derived from the
  5896. :term:`DISTRO`,
  5897. :term:`TCLIBC`,
  5898. :term:`SDKMACHINE`,
  5899. :term:`IMAGE_BASENAME`,
  5900. :term:`TUNE_PKGARCH`, and
  5901. :term:`MACHINE` variables::
  5902. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
  5903. :term:`SDK_OS`
  5904. Specifies the operating system for which the SDK will be built. The
  5905. default value is the value of :term:`BUILD_OS`.
  5906. :term:`SDK_OUTPUT`
  5907. The location used by the OpenEmbedded build system when creating SDK
  5908. output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`
  5909. class defines the variable as follows::
  5910. SDK_DIR = "${WORKDIR}/sdk"
  5911. SDK_OUTPUT = "${SDK_DIR}/image"
  5912. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  5913. .. note::
  5914. The :term:`SDK_OUTPUT` directory is a temporary directory as it is part of
  5915. :term:`WORKDIR` by way of :term:`SDK_DIR`. The final output directory is
  5916. :term:`SDK_DEPLOY`.
  5917. :term:`SDK_PACKAGE_ARCHS`
  5918. Specifies a list of architectures compatible with the SDK machine.
  5919. This variable is set automatically and should not normally be
  5920. hand-edited. Entries are separated using spaces and listed in order
  5921. of priority. The default value for :term:`SDK_PACKAGE_ARCHS` is "all any
  5922. noarch ${SDK_ARCH}-${SDKPKGSUFFIX}".
  5923. :term:`SDK_POSTPROCESS_COMMAND`
  5924. Specifies a list of functions to call once the OpenEmbedded build
  5925. system creates the SDK. You can specify functions separated by
  5926. spaces:
  5927. SDK_POSTPROCESS_COMMAND += "function"
  5928. If you need to pass an SDK path to a command within a function, you
  5929. can use ``${SDK_DIR}``, which points to the parent directory used by
  5930. the OpenEmbedded build system when creating SDK output. See the
  5931. :term:`SDK_DIR` variable for more information.
  5932. :term:`SDK_PREFIX`
  5933. The toolchain binary prefix used for
  5934. :ref:`ref-classes-nativesdk` recipes. The
  5935. OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the
  5936. :term:`TARGET_PREFIX` when building
  5937. ``nativesdk`` recipes. The default value is "${SDK_SYS}-".
  5938. :term:`SDK_RECRDEP_TASKS`
  5939. A list of shared state tasks added to the extensible SDK. By default,
  5940. the following tasks are added:
  5941. - :ref:`ref-tasks-populate_lic`
  5942. - :ref:`ref-tasks-package_qa`
  5943. - :ref:`ref-tasks-populate_sysroot`
  5944. - :ref:`ref-tasks-deploy`
  5945. Despite the default value of "" for the
  5946. :term:`SDK_RECRDEP_TASKS` variable, the above four tasks are always added
  5947. to the SDK. To specify tasks beyond these four, you need to use the
  5948. :term:`SDK_RECRDEP_TASKS` variable (e.g. you are defining additional
  5949. tasks that are needed in order to build
  5950. :term:`SDK_TARGETS`).
  5951. :term:`SDK_SYS`
  5952. Specifies the system, including the architecture and the operating
  5953. system, for which the SDK will be built.
  5954. The OpenEmbedded build system automatically sets this variable based
  5955. on :term:`SDK_ARCH`,
  5956. :term:`SDK_VENDOR`, and
  5957. :term:`SDK_OS`. You do not need to set the :term:`SDK_SYS`
  5958. variable yourself.
  5959. :term:`SDK_TARGET_MANIFEST`
  5960. The manifest file for the target part of the SDK. This file lists all
  5961. the installed packages that make up the target part of the SDK. The
  5962. file contains package information on a line-per-package basis as
  5963. follows::
  5964. packagename packagearch version
  5965. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5966. defines the manifest file as follows::
  5967. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  5968. The location is derived using the :term:`SDK_DEPLOY` and
  5969. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5970. :term:`SDK_TARGETS`
  5971. A list of targets to install from shared state as part of the
  5972. standard or extensible SDK installation. The default value is "${PN}"
  5973. (i.e. the image from which the SDK is built).
  5974. The :term:`SDK_TARGETS` variable is an internal variable and typically
  5975. would not be changed.
  5976. :term:`SDK_TITLE`
  5977. The title to be printed when running the SDK installer. By default,
  5978. this title is based on the :term:`DISTRO_NAME` or
  5979. :term:`DISTRO` variable and is set in the
  5980. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5981. follows::
  5982. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  5983. For the default distribution "poky",
  5984. :term:`SDK_TITLE` is set to "Poky (Yocto Project Reference Distro)".
  5985. For information on how to change this default title, see the
  5986. ":ref:`sdk-manual/appendix-customizing:changing the extensible sdk installer title`"
  5987. section in the Yocto Project Application Development and the
  5988. Extensible Software Development Kit (eSDK) manual.
  5989. :term:`SDK_TOOLCHAIN_LANGS`
  5990. Specifies programming languages to support in the SDK, as a
  5991. space-separated list. Currently supported items are ``rust`` and ``go``.
  5992. :term:`SDK_UPDATE_URL`
  5993. An optional URL for an update server for the extensible SDK. If set,
  5994. the value is used as the default update server when running
  5995. ``devtool sdk-update`` within the extensible SDK.
  5996. :term:`SDK_VENDOR`
  5997. Specifies the name of the SDK vendor.
  5998. :term:`SDK_VERSION`
  5999. Specifies the version of the SDK. The Poky distribution configuration file
  6000. (``/meta-poky/conf/distro/poky.conf``) sets the default
  6001. :term:`SDK_VERSION` as follows::
  6002. SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}"
  6003. For additional information, see the
  6004. :term:`DISTRO_VERSION` and
  6005. :term:`METADATA_REVISION` variables.
  6006. :term:`SDK_ZIP_OPTIONS`
  6007. Specifies extra options to pass to the ``zip`` command when zipping the SDK
  6008. (i.e. when :term:`SDK_ARCHIVE_TYPE` is set to "zip"). The default value is
  6009. "-y".
  6010. :term:`SDKEXTPATH`
  6011. The default installation directory for the Extensible SDK. By
  6012. default, this directory is based on the :term:`DISTRO`
  6013. variable and is set in the
  6014. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  6015. follows::
  6016. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  6017. For the
  6018. default distribution "poky", the :term:`SDKEXTPATH` is set to "poky_sdk".
  6019. For information on how to change this default directory, see the
  6020. ":ref:`sdk-manual/appendix-customizing:changing the default sdk installation directory`"
  6021. section in the Yocto Project Application Development and the
  6022. Extensible Software Development Kit (eSDK) manual.
  6023. :term:`SDKIMAGE_FEATURES`
  6024. Equivalent to :term:`IMAGE_FEATURES`. However, this variable applies to
  6025. the SDK generated from an image using the following command::
  6026. $ bitbake -c populate_sdk imagename
  6027. :term:`SDKMACHINE`
  6028. The machine for which the SDK is built. In other words, the SDK is built
  6029. such that it runs on the target you specify with the :term:`SDKMACHINE`
  6030. value. The value points to a corresponding ``.conf`` file under
  6031. ``conf/machine-sdk/`` in the enabled layers, for example ``aarch64``,
  6032. ``i586``, ``i686``, ``ppc64``, ``ppc64le``, and ``x86_64`` are
  6033. :oe_git:`available in OpenEmbedded-Core </openembedded-core/tree/meta/conf/machine-sdk>`.
  6034. The variable defaults to :term:`BUILD_ARCH` so that SDKs are built for the
  6035. architecture of the build machine.
  6036. .. note::
  6037. You cannot set the :term:`SDKMACHINE`
  6038. variable in your distribution configuration file. If you do, the
  6039. configuration will not take effect.
  6040. :term:`SDKPATH`
  6041. Defines the path used to collect the SDK components and build the
  6042. installer.
  6043. :term:`SDKPATHINSTALL`
  6044. Defines the path offered to the user for installation of the SDK that
  6045. is generated by the OpenEmbedded build system. The path appears as
  6046. the default location for installing the SDK when you run the SDK's
  6047. installation script. You can override the offered path when you run
  6048. the script.
  6049. :term:`SDKTARGETSYSROOT`
  6050. The full path to the sysroot used for cross-compilation within an SDK
  6051. as it will be when installed into the default
  6052. :term:`SDKPATHINSTALL`.
  6053. :term:`SECTION`
  6054. The section in which packages should be categorized. Package
  6055. management utilities can make use of this variable.
  6056. :term:`SELECTED_OPTIMIZATION`
  6057. Specifies the optimization flags passed to the C compiler when
  6058. building for the target. The flags are passed through the default
  6059. value of the :term:`TARGET_CFLAGS` variable.
  6060. The :term:`SELECTED_OPTIMIZATION` variable takes the value of
  6061. :term:`FULL_OPTIMIZATION` unless :term:`DEBUG_BUILD` = "1", in which
  6062. case the value of :term:`DEBUG_OPTIMIZATION` is used.
  6063. :term:`SERIAL_CONSOLES`
  6064. Defines a serial console (TTY) to enable using
  6065. :wikipedia:`getty <Getty_(Unix)>`. Provide a value that specifies the
  6066. baud rate followed by the TTY device name separated by a semicolon.
  6067. Use spaces to separate multiple devices::
  6068. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  6069. :term:`SETUPTOOLS_BUILD_ARGS`
  6070. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6071. class, this variable can be used to specify additional arguments to be
  6072. passed to ``setup.py build`` in the ``setuptools3_do_compile()`` task.
  6073. :term:`SETUPTOOLS_SETUP_PATH`
  6074. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6075. class, this variable should be used to specify the directory in which
  6076. the ``setup.py`` file is located if it is not at the root of the source
  6077. tree (as specified by :term:`S`). For example, in a recipe where the
  6078. sources are fetched from a Git repository and ``setup.py`` is in a
  6079. ``python/pythonmodule`` subdirectory, you would have this::
  6080. S = "${WORKDIR}/git"
  6081. SETUPTOOLS_SETUP_PATH = "${S}/python/pythonmodule"
  6082. :term:`SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS`
  6083. A list of recipe dependencies that should not be used to determine
  6084. signatures of tasks from one recipe when they depend on tasks from
  6085. another recipe. For example::
  6086. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  6087. In the previous example, ``intone`` depends on ``mplayer2``.
  6088. You can use the special token ``"*"`` on the left-hand side of the
  6089. dependency to match all recipes except the one on the right-hand
  6090. side. Here is an example::
  6091. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  6092. In the previous example, all recipes except ``quilt-native`` ignore
  6093. task signatures from the ``quilt-native`` recipe when determining
  6094. their task signatures.
  6095. Use of this variable is one mechanism to remove dependencies that
  6096. affect task signatures and thus force rebuilds when a recipe changes.
  6097. .. note::
  6098. If you add an inappropriate dependency for a recipe relationship,
  6099. the software might break during runtime if the interface of the
  6100. second recipe was changed after the first recipe had been built.
  6101. :term:`SIGGEN_EXCLUDERECIPES_ABISAFE`
  6102. A list of recipes that are completely stable and will never change.
  6103. The ABI for the recipes in the list are presented by output from the
  6104. tasks run to build the recipe. Use of this variable is one way to
  6105. remove dependencies from one recipe on another that affect task
  6106. signatures and thus force rebuilds when the recipe changes.
  6107. .. note::
  6108. If you add an inappropriate variable to this list, the software
  6109. might break at runtime if the interface of the recipe was changed
  6110. after the other had been built.
  6111. :term:`SIGGEN_LOCKEDSIGS`
  6112. The list of locked tasks, with the form::
  6113. SIGGEN_LOCKEDSIGS += "<package>:<task>:<signature>"
  6114. If ``<signature>`` exists for the specified ``<task>`` and ``<package>``
  6115. in the sstate cache, BitBake will use the cached output instead of
  6116. rebuilding the ``<task>``. If it does not exist, BitBake will build the
  6117. ``<task>`` and the sstate cache will be used next time.
  6118. Example::
  6119. SIGGEN_LOCKEDSIGS += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6120. You can obtain the signature of all the tasks for the recipe ``bc`` using::
  6121. bitbake -S none bc
  6122. Then you can look at files in ``build/tmp/stamps/<arch>/bc`` and look for
  6123. files like: ``<PV>.do_compile.sigdata.09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0``.
  6124. Alternatively, you can also use :doc:`bblock </dev-manual/bblock>` to
  6125. generate this line for you.
  6126. :term:`SIGGEN_LOCKEDSIGS_TASKSIG_CHECK`
  6127. Specifies the debug level of task signature check. 3 levels are supported:
  6128. * ``info``: displays a "Note" message to remind the user that a task is locked
  6129. and the current signature matches the locked one.
  6130. * ``warn``: displays a "Warning" message if a task is locked and the current
  6131. signature does not match the locked one.
  6132. * ``error``: same as warn but displays an "Error" message and aborts.
  6133. :term:`SIGGEN_LOCKEDSIGS_TYPES`
  6134. Allowed overrides for :term:`SIGGEN_LOCKEDSIGS`. This is mainly used
  6135. for architecture specific locks. A common value for
  6136. :term:`SIGGEN_LOCKEDSIGS_TYPES` is ``${PACKAGE_ARCHS}``::
  6137. SIGGEN_LOCKEDSIGS_TYPES += "${PACKAGE_ARCHS}"
  6138. SIGGEN_LOCKEDSIGS_core2-64 += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6139. SIGGEN_LOCKEDSIGS_cortexa57 += "bc:do_compile:12178eb6d55ef602a8fe638e49862fd247e07b228f0f08967697b655bfe4bb61"
  6140. Here, the ``do_compile`` task from ``bc`` will be locked only for
  6141. ``core2-64`` and ``cortexa57`` but not for other architectures such as
  6142. ``mips32r2``.
  6143. :term:`SITEINFO_BITS`
  6144. Specifies the number of bits for the target system CPU. The value
  6145. should be either "32" or "64".
  6146. :term:`SITEINFO_ENDIANNESS`
  6147. Specifies the endian byte order of the target system. The value
  6148. should be either "le" for little-endian or "be" for big-endian.
  6149. :term:`SKIP_FILEDEPS`
  6150. Enables removal of all files from the "Provides" section of an RPM
  6151. package. Removal of these files is required for packages containing
  6152. prebuilt binaries and libraries such as ``libstdc++`` and ``glibc``.
  6153. To enable file removal, set the variable to "1" in your
  6154. ``conf/local.conf`` configuration file in your:
  6155. :term:`Build Directory`::
  6156. SKIP_FILEDEPS = "1"
  6157. :term:`SKIP_RECIPE`
  6158. Used to prevent the OpenEmbedded build system from building a given
  6159. recipe. Specify the :term:`PN` value as a variable flag (``varflag``)
  6160. and provide a reason, which will be reported when attempting to
  6161. build the recipe.
  6162. To prevent a recipe from being built, use the :term:`SKIP_RECIPE`
  6163. variable in your ``local.conf`` file or distribution configuration.
  6164. Here is an example which prevents ``myrecipe`` from being built::
  6165. SKIP_RECIPE[myrecipe] = "Not supported by our organization."
  6166. :term:`SOC_FAMILY`
  6167. A colon-separated list grouping together machines based upon the same
  6168. family of SoC (System On Chip). You typically set this variable in a
  6169. common ``.inc`` file that you include in the configuration files of all
  6170. the machines.
  6171. .. note::
  6172. You must include ``conf/machine/include/soc-family.inc`` for this
  6173. variable to appear in :term:`MACHINEOVERRIDES`.
  6174. :term:`SOLIBS`
  6175. Defines the suffix for shared libraries used on the target platform.
  6176. By default, this suffix is ".so.*" for all Linux-based systems and is
  6177. defined in the ``meta/conf/bitbake.conf`` configuration file.
  6178. You will see this variable referenced in the default values of
  6179. ``FILES:${PN}``.
  6180. :term:`SOLIBSDEV`
  6181. Defines the suffix for the development symbolic link (symlink) for
  6182. shared libraries on the target platform. By default, this suffix is
  6183. ".so" for Linux-based systems and is defined in the
  6184. ``meta/conf/bitbake.conf`` configuration file.
  6185. You will see this variable referenced in the default values of
  6186. ``FILES:${PN}-dev``.
  6187. :term:`SOURCE_DATE_EPOCH`
  6188. This defines a date expressed in number of seconds since
  6189. the UNIX EPOCH (01 Jan 1970 00:00:00 UTC), which is used by
  6190. multiple build systems to force a timestamp in built binaries.
  6191. Many upstream projects already support this variable.
  6192. You will find more details in the `official specifications
  6193. <https://reproducible-builds.org/specs/source-date-epoch/>`__.
  6194. A value for each recipe is computed from the sources by
  6195. :oe_git:`meta/lib/oe/reproducible.py </openembedded-core/tree/meta/lib/oe/reproducible.py>`.
  6196. If a recipe wishes to override the default behavior, it should set its
  6197. own :term:`SOURCE_DATE_EPOCH` value::
  6198. SOURCE_DATE_EPOCH = "1613559011"
  6199. :term:`SOURCE_MIRROR_FETCH`
  6200. When you are fetching files to create a mirror of sources (i.e.
  6201. creating a source mirror), setting :term:`SOURCE_MIRROR_FETCH` to "1" in
  6202. your ``local.conf`` configuration file ensures the source for all
  6203. recipes are fetched regardless of whether or not a recipe is
  6204. compatible with the configuration. A recipe is considered
  6205. incompatible with the currently configured machine when either or
  6206. both the :term:`COMPATIBLE_MACHINE`
  6207. variable and :term:`COMPATIBLE_HOST` variables
  6208. specify compatibility with a machine other than that of the current
  6209. machine or host.
  6210. .. note::
  6211. Do not set the :term:`SOURCE_MIRROR_FETCH`
  6212. variable unless you are creating a source mirror. In other words,
  6213. do not set the variable during a normal build.
  6214. :term:`SOURCE_MIRROR_URL`
  6215. Defines your own :term:`PREMIRRORS` from which to
  6216. first fetch source before attempting to fetch from the upstream
  6217. specified in :term:`SRC_URI`.
  6218. To use this variable, you must globally inherit the
  6219. :ref:`ref-classes-own-mirrors` class and then provide
  6220. the URL to your mirrors. Here is the general syntax::
  6221. INHERIT += "own-mirrors"
  6222. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror"
  6223. .. note::
  6224. You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
  6225. .. note::
  6226. If the mirror is protected behind a username and password, the
  6227. :term:`build host` needs to be configured so the :term:`build system
  6228. <OpenEmbedded Build System>` is able to fetch from the mirror.
  6229. The recommended way to do that is by setting the following parameters
  6230. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  6231. directory)::
  6232. machine example.com
  6233. login <user>
  6234. password <password>
  6235. This file requires permissions set to ``400`` or ``600`` to prevent
  6236. other users from reading the file::
  6237. chmod 600 "$HOME/.netrc"
  6238. Another method to configure the username and password is from the URL
  6239. in :term:`SOURCE_MIRROR_URL` directly, with the ``user`` and ``pswd``
  6240. parameters::
  6241. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror;user=<user>;pswd=<password>"
  6242. :term:`SPDX_ARCHIVE_PACKAGED`
  6243. This option allows to add to :term:`SPDX` output compressed archives
  6244. of the files in the generated target packages.
  6245. Such archives are available in
  6246. ``tmp/deploy/spdx/MACHINE/packages/packagename.tar.zst``
  6247. under the :term:`Build Directory`.
  6248. Enable this option as follows::
  6249. SPDX_ARCHIVE_PACKAGED = "1"
  6250. According to our tests on release 4.1 "langdale", building
  6251. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this
  6252. option multiplied the size of the ``tmp/deploy/spdx`` directory by a
  6253. factor of 13 (+1.6 GiB for this image), compared to just using the
  6254. :ref:`ref-classes-create-spdx` class with no option.
  6255. Note that this option doesn't increase the size of :term:`SPDX`
  6256. files in ``tmp/deploy/images/MACHINE``.
  6257. :term:`SPDX_ARCHIVE_SOURCES`
  6258. This option allows to add to :term:`SPDX` output compressed archives
  6259. of the sources for packages installed on the target. It currently
  6260. only works when :term:`SPDX_INCLUDE_SOURCES` is set.
  6261. This is one way of fulfilling "source code access" license
  6262. requirements.
  6263. Such source archives are available in
  6264. ``tmp/deploy/spdx/MACHINE/recipes/recipe-packagename.tar.zst``
  6265. under the :term:`Build Directory`.
  6266. Enable this option as follows::
  6267. SPDX_INCLUDE_SOURCES = "1"
  6268. SPDX_ARCHIVE_SOURCES = "1"
  6269. According to our tests on release 4.1 "langdale", building
  6270. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6271. these options multiplied the size of the ``tmp/deploy/spdx``
  6272. directory by a factor of 11 (+1.4 GiB for this image),
  6273. compared to just using the :ref:`ref-classes-create-spdx`
  6274. class with no option.
  6275. Note that using this option only marginally increases the size
  6276. of the :term:`SPDX` output in ``tmp/deploy/images/MACHINE/``
  6277. (+ 0.07\% with the tested image), compared to just enabling
  6278. :term:`SPDX_INCLUDE_SOURCES`.
  6279. :term:`SPDX_CUSTOM_ANNOTATION_VARS`
  6280. This option allows to associate `SPDX annotations
  6281. <https://spdx.github.io/spdx-spec/v2.3/annotations/>`__ to a recipe,
  6282. using the values of variables in the recipe::
  6283. ANNOTATION1 = "First annotation for recipe"
  6284. ANNOTATION2 = "Second annotation for recipe"
  6285. SPDX_CUSTOM_ANNOTATION_VARS = "ANNOTATION1 ANNOTATION2"
  6286. This will add a new block to the recipe ``.sdpx.json`` output::
  6287. "annotations": [
  6288. {
  6289. "annotationDate": "2023-04-18T08:32:12Z",
  6290. "annotationType": "OTHER",
  6291. "annotator": "Tool: oe-spdx-creator - 1.0",
  6292. "comment": "ANNOTATION1=First annotation for recipe"
  6293. },
  6294. {
  6295. "annotationDate": "2023-04-18T08:32:12Z",
  6296. "annotationType": "OTHER",
  6297. "annotator": "Tool: oe-spdx-creator - 1.0",
  6298. "comment": "ANNOTATION2=Second annotation for recipe"
  6299. }
  6300. ],
  6301. :term:`SPDX_INCLUDE_SOURCES`
  6302. This option allows to add a description of the source files used to build
  6303. the host tools and the target packages, to the ``spdx.json`` files in
  6304. ``tmp/deploy/spdx/MACHINE/recipes/`` under the :term:`Build Directory`.
  6305. As a consequence, the ``spdx.json`` files under the ``by-namespace`` and
  6306. ``packages`` subdirectories in ``tmp/deploy/spdx/MACHINE`` are also
  6307. modified to include references to such source file descriptions.
  6308. Enable this option as follows::
  6309. SPDX_INCLUDE_SOURCES = "1"
  6310. According to our tests on release 4.1 "langdale", building
  6311. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6312. this option multiplied the total size of the ``tmp/deploy/spdx``
  6313. directory by a factor of 3 (+291 MiB for this image),
  6314. and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in
  6315. ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this
  6316. image), compared to just using the :ref:`ref-classes-create-spdx` class
  6317. with no option.
  6318. :term:`SPDX_NAMESPACE_PREFIX`
  6319. This option could be used in order to change the prefix of ``spdxDocument``
  6320. and the prefix of ``documentNamespace``. It is set by default to
  6321. ``http://spdx.org/spdxdoc``.
  6322. :term:`SPDX_PRETTY`
  6323. This option makes the SPDX output more human-readable, using
  6324. identation and newlines, instead of the default output in a
  6325. single line::
  6326. SPDX_PRETTY = "1"
  6327. The generated SPDX files are approximately 20% bigger, but
  6328. this option is recommended if you want to inspect the SPDX
  6329. output files with a text editor.
  6330. :term:`SPDXLICENSEMAP`
  6331. Maps commonly used license names to their SPDX counterparts found in
  6332. ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP`
  6333. mappings, see the ``meta/conf/licenses.conf`` file.
  6334. For additional information, see the :term:`LICENSE`
  6335. variable.
  6336. :term:`SPECIAL_PKGSUFFIX`
  6337. A list of prefixes for :term:`PN` used by the OpenEmbedded
  6338. build system to create variants of recipes or packages. The list
  6339. specifies the prefixes to strip off during certain circumstances such
  6340. as the generation of the :term:`BPN` variable.
  6341. :term:`SPL_BINARY`
  6342. The file type for the Secondary Program Loader (SPL). Some devices
  6343. use an SPL from which to boot (e.g. the BeagleBone development
  6344. board). For such cases, you can declare the file type of the SPL
  6345. binary in the ``u-boot.inc`` include file, which is used in the
  6346. U-Boot recipe.
  6347. The SPL file type is set to "null" by default in the ``u-boot.inc``
  6348. file as follows::
  6349. # Some versions of u-boot build an SPL (Second Program Loader) image that
  6350. # should be packaged along with the u-boot binary as well as placed in the
  6351. # deploy directory. For those versions they can set the following variables
  6352. # to allow packaging the SPL.
  6353. SPL_BINARY ?= ""
  6354. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  6355. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  6356. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  6357. The :term:`SPL_BINARY` variable helps form
  6358. various ``SPL_*`` variables used by the OpenEmbedded build system.
  6359. See the BeagleBone machine configuration example in the
  6360. ":ref:`dev-manual/layers:adding a layer using the \`\`bitbake-layers\`\` script`"
  6361. section in the Yocto Project Board Support Package Developer's Guide
  6362. for additional information.
  6363. :term:`SPL_MKIMAGE_DTCOPTS`
  6364. Options for the device tree compiler passed to ``mkimage -D`` feature
  6365. while creating a FIT image with the :ref:`ref-classes-uboot-sign`
  6366. class. If :term:`SPL_MKIMAGE_DTCOPTS` is not set then the
  6367. :ref:`ref-classes-uboot-sign` class will not pass the ``-D`` option
  6368. to ``mkimage``.
  6369. The default value is set to "" by the :ref:`ref-classes-uboot-config`
  6370. class.
  6371. :term:`SPL_SIGN_ENABLE`
  6372. Enable signing of the U-Boot FIT image. The default value is "0".
  6373. This variable is used by the :ref:`ref-classes-uboot-sign` class.
  6374. :term:`SPL_SIGN_KEYDIR`
  6375. Location of the directory containing the RSA key and certificate used for
  6376. signing the U-Boot FIT image, used by the :ref:`ref-classes-uboot-sign`
  6377. class.
  6378. :term:`SPL_SIGN_KEYNAME`
  6379. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  6380. for signing U-Boot FIT image stored in the :term:`SPL_SIGN_KEYDIR`
  6381. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  6382. certificate stored in the :term:`SPL_SIGN_KEYDIR` directory, you will
  6383. have to set :term:`SPL_SIGN_KEYNAME` to ``dev``.
  6384. :term:`SPLASH`
  6385. This variable, used by the :ref:`ref-classes-image` class, allows
  6386. to choose splashscreen applications. Set it to the names of packages
  6387. for such applications to use. This variable is set by default to
  6388. ``psplash``.
  6389. :term:`SPLASH_IMAGES`
  6390. This variable, used by the ``psplash`` recipe, allows to customize
  6391. the default splashscreen image.
  6392. Specified images in PNG format are converted to ``.h`` files by the recipe,
  6393. and are included in the ``psplash`` binary, so you won't find them in
  6394. the root filesystem.
  6395. To make such a change, it is recommended to customize the
  6396. ``psplash`` recipe in a custom layer. Here is an example structure for
  6397. an ``ACME`` board::
  6398. meta-acme/recipes-core/psplash
  6399. ├── files
  6400. │   └── logo-acme.png
  6401. └── psplash_%.bbappend
  6402. And here are the contents of the ``psplash_%.bbappend`` file in
  6403. this example::
  6404. SPLASH_IMAGES = "file://logo-acme.png;outsuffix=default"
  6405. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  6406. You could even add specific configuration options for ``psplash``,
  6407. for example::
  6408. EXTRA_OECONF += "--disable-startup-msg --enable-img-fullscreen"
  6409. For information on append files, see the
  6410. ":ref:`dev-manual/layers:appending other layers metadata with your layer`"
  6411. section.
  6412. :term:`SRCREV_FORMAT`
  6413. See :term:`bitbake:SRCREV_FORMAT` in the BitBake manual.
  6414. :term:`SRC_URI`
  6415. See the BitBake manual for the initial description for this variable:
  6416. :term:`bitbake:SRC_URI`.
  6417. The following features are added by OpenEmbedded and the Yocto Project.
  6418. There are standard and recipe-specific options. Here are standard ones:
  6419. - ``apply`` --- whether to apply the patch or not. The default
  6420. action is to apply the patch.
  6421. - ``striplevel`` --- which striplevel to use when applying the
  6422. patch. The default level is 1.
  6423. - ``patchdir`` --- specifies the directory in which the patch should
  6424. be applied. The default is ``${``\ :term:`S`\ ``}``.
  6425. Here are options specific to recipes building code from a revision
  6426. control system:
  6427. - ``mindate`` --- apply the patch only if
  6428. :term:`SRCDATE` is equal to or greater than
  6429. ``mindate``.
  6430. - ``maxdate`` --- apply the patch only if :term:`SRCDATE` is not later
  6431. than ``maxdate``.
  6432. - ``minrev`` --- apply the patch only if :term:`SRCREV` is equal to or
  6433. greater than ``minrev``.
  6434. - ``maxrev`` --- apply the patch only if :term:`SRCREV` is not later
  6435. than ``maxrev``.
  6436. - ``rev`` --- apply the patch only if :term:`SRCREV` is equal to
  6437. ``rev``.
  6438. - ``notrev`` --- apply the patch only if :term:`SRCREV` is not equal to
  6439. ``rev``.
  6440. .. note::
  6441. If you want the build system to pick up files specified through
  6442. a :term:`SRC_URI` statement from your append file, you need to be
  6443. sure to extend the :term:`FILESPATH` variable by also using the
  6444. :term:`FILESEXTRAPATHS` variable from within your append file.
  6445. :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH`
  6446. By default, the OpenEmbedded build system automatically detects
  6447. whether :term:`SRC_URI` contains files that are machine-specific. If so,
  6448. the build system automatically changes :term:`PACKAGE_ARCH`. Setting this
  6449. variable to "0" disables this behavior.
  6450. :term:`SRCDATE`
  6451. The date of the source code used to build the package. This variable
  6452. applies only if the source was fetched from a Source Code Manager
  6453. (SCM).
  6454. :term:`SRCPV`
  6455. The variable :term:`SRCPV` is deprecated. It was previously used to
  6456. include source control information in :term:`PV` for :term:`bitbake` to
  6457. work correctly but this is no longer a requirement. Source control
  6458. information will be automatically included by :term:`bitbake` in the
  6459. variable :term:`PKGV` during packaging if the ``+`` sign is present in
  6460. :term:`PV`.
  6461. .. note::
  6462. The :term:`SRCPV` variable used to be defined in the
  6463. ``meta/conf/bitbake.conf`` configuration file in the :term:`Source
  6464. Directory` as follows::
  6465. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  6466. The ``get_srcrev`` function can still be used to include source control
  6467. information in variables manually.
  6468. :term:`SRCREV`
  6469. The revision of the source code used to build the package. This
  6470. variable applies to Subversion, Git, Mercurial, and Bazaar only. Note
  6471. that if you want to build a fixed revision and you want to avoid
  6472. performing a query on the remote repository every time BitBake parses
  6473. your recipe, you should specify a :term:`SRCREV` that is a full revision
  6474. identifier (e.g. the full SHA hash in git) and not just a tag.
  6475. .. note::
  6476. For information on limitations when inheriting the latest revision
  6477. of software using :term:`SRCREV`, see the :term:`AUTOREV` variable
  6478. description and the
  6479. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  6480. section, which is in the Yocto Project Development Tasks Manual.
  6481. :term:`SRCTREECOVEREDTASKS`
  6482. A list of tasks that are typically not relevant (and therefore skipped)
  6483. when building using the :ref:`ref-classes-externalsrc`
  6484. class. The default value as set in that class file is the set of tasks
  6485. that are rarely needed when using external source::
  6486. SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
  6487. The notable exception is when processing external kernel source as
  6488. defined in the :ref:`ref-classes-kernel-yocto` class file (formatted for
  6489. aesthetics)::
  6490. SRCTREECOVEREDTASKS += "\
  6491. do_validate_branches \
  6492. do_kernel_configcheck \
  6493. do_kernel_checkout \
  6494. do_fetch \
  6495. do_unpack \
  6496. do_patch \
  6497. "
  6498. See the associated :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD`
  6499. variables for more information.
  6500. :term:`SSTATE_DIR`
  6501. The directory for the shared state cache.
  6502. :term:`SSTATE_EXCLUDEDEPS_SYSROOT`
  6503. This variable allows to specify indirect dependencies to exclude
  6504. from sysroots, for example to avoid the situations when a dependency on
  6505. any ``-native`` recipe will pull in all dependencies of that recipe
  6506. in the recipe sysroot. This behaviour might not always be wanted,
  6507. for example when that ``-native`` recipe depends on build tools
  6508. that are not relevant for the current recipe.
  6509. This way, irrelevant dependencies are ignored, which could have
  6510. prevented the reuse of prebuilt artifacts stored in the Shared
  6511. State Cache.
  6512. :term:`SSTATE_EXCLUDEDEPS_SYSROOT` is evaluated as two regular
  6513. expressions of recipe and dependency to ignore. An example
  6514. is the rule in :oe_git:`meta/conf/layer.conf </openembedded-core/tree/meta/conf/layer.conf>`::
  6515. # Nothing needs to depend on libc-initial
  6516. # base-passwd/shadow-sysroot don't need their dependencies
  6517. SSTATE_EXCLUDEDEPS_SYSROOT += "\
  6518. .*->.*-initial.* \
  6519. .*(base-passwd|shadow-sysroot)->.* \
  6520. "
  6521. The ``->`` substring represents the dependency between
  6522. the two regular expressions.
  6523. :term:`SSTATE_MIRROR_ALLOW_NETWORK`
  6524. If set to "1", allows fetches from mirrors that are specified in
  6525. :term:`SSTATE_MIRRORS` to work even when
  6526. fetching from the network is disabled by setting :term:`BB_NO_NETWORK` to
  6527. "1". Using the :term:`SSTATE_MIRROR_ALLOW_NETWORK` variable is useful if
  6528. you have set :term:`SSTATE_MIRRORS` to point to an internal server for
  6529. your shared state cache, but you want to disable any other fetching
  6530. from the network.
  6531. :term:`SSTATE_MIRRORS`
  6532. Configures the OpenEmbedded build system to search other mirror
  6533. locations for prebuilt cache data objects before building out the
  6534. data. This variable works like fetcher :term:`MIRRORS`
  6535. and :term:`PREMIRRORS` and points to the cache
  6536. locations to check for the shared state (sstate) objects.
  6537. You can specify a filesystem directory or a remote URL such as HTTP
  6538. or FTP. The locations you specify need to contain the shared state
  6539. cache (sstate-cache) results from previous builds. The sstate-cache
  6540. you point to can also be from builds on other machines.
  6541. When pointing to sstate build artifacts on another machine that uses
  6542. a different GCC version for native builds, you must configure
  6543. :term:`SSTATE_MIRRORS` with a regular expression that maps local search
  6544. paths to server paths. The paths need to take into account
  6545. :term:`NATIVELSBSTRING` set by the :ref:`ref-classes-uninative` class.
  6546. For example, the following maps the local search path ``universal-4.9``
  6547. to the server-provided path server_url_sstate_path::
  6548. SSTATE_MIRRORS ?= "file://universal-4.9/(.*) https://server_url_sstate_path/universal-4.8/\1"
  6549. If a mirror uses the same structure as
  6550. :term:`SSTATE_DIR`, you need to add "PATH" at the
  6551. end as shown in the examples below. The build system substitutes the
  6552. correct path within the directory structure::
  6553. SSTATE_MIRRORS ?= "\
  6554. file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
  6555. file://.* file:///some-local-dir/sstate/PATH"
  6556. .. note::
  6557. If the mirror is protected behind a username and password, the
  6558. :term:`build host` needs to be configured so the :term:`build system
  6559. <OpenEmbedded Build System>` is able to download the sstate cache using
  6560. authentication.
  6561. The recommended way to do that is by setting the following parameters
  6562. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  6563. directory)::
  6564. machine someserver.tld
  6565. login <user>
  6566. password <password>
  6567. This file requires permissions set to ``400`` or ``600`` to prevent
  6568. other users from reading the file::
  6569. chmod 600 "$HOME/.netrc"
  6570. Another method to configure the username and password is from the
  6571. URL in :term:`SSTATE_MIRRORS` directly, with the ``user`` and ``pswd``
  6572. parameters::
  6573. SSTATE_MIRRORS ?= "\
  6574. file://.* https://someserver.tld/share/sstate/PATH;user=<user>;pswd=<password>;downloadfilename=PATH \
  6575. "
  6576. The Yocto Project actually shares the cache data objects built by its
  6577. autobuilder::
  6578. SSTATE_MIRRORS ?= "file://.* http://cdn.jsdelivr.net/yocto/sstate/all/PATH;downloadfilename=PATH"
  6579. As such binary artifacts are built for the generic QEMU machines
  6580. supported by the various Poky releases, they are less likely to be
  6581. reusable in real projects building binaries optimized for a specific
  6582. CPU family.
  6583. :term:`SSTATE_SCAN_FILES`
  6584. Controls the list of files the OpenEmbedded build system scans for
  6585. hardcoded installation paths. The variable uses a space-separated
  6586. list of filenames (not paths) with standard wildcard characters
  6587. allowed.
  6588. During a build, the OpenEmbedded build system creates a shared state
  6589. (sstate) object during the first stage of preparing the sysroots.
  6590. That object is scanned for hardcoded paths for original installation
  6591. locations. The list of files that are scanned for paths is controlled
  6592. by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files
  6593. they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather
  6594. than the variable being comprehensively set. The
  6595. :ref:`ref-classes-sstate` class specifies the default list of files.
  6596. For details on the process, see the :ref:`ref-classes-staging` class.
  6597. :term:`STAGING_BASE_LIBDIR_NATIVE`
  6598. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6599. directory for the build host.
  6600. :term:`STAGING_BASELIBDIR`
  6601. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6602. directory for the target for which the current recipe is being built
  6603. (:term:`STAGING_DIR_HOST`).
  6604. :term:`STAGING_BINDIR`
  6605. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6606. directory for the target for which the current recipe is being built
  6607. (:term:`STAGING_DIR_HOST`).
  6608. :term:`STAGING_BINDIR_CROSS`
  6609. Specifies the path to the directory containing binary configuration
  6610. scripts. These scripts provide configuration information for other
  6611. software that wants to make use of libraries or include files
  6612. provided by the software associated with the script.
  6613. .. note::
  6614. This style of build configuration has been largely replaced by
  6615. ``pkg-config``. Consequently, if ``pkg-config`` is supported by the
  6616. library to which you are linking, it is recommended you use
  6617. ``pkg-config`` instead of a provided configuration script.
  6618. :term:`STAGING_BINDIR_NATIVE`
  6619. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6620. directory for the build host.
  6621. :term:`STAGING_DATADIR`
  6622. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6623. directory for the target for which the current recipe is being built
  6624. (:term:`STAGING_DIR_HOST`).
  6625. :term:`STAGING_DATADIR_NATIVE`
  6626. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6627. directory for the build host.
  6628. :term:`STAGING_DIR`
  6629. Helps construct the ``recipe-sysroots`` directory, which is used
  6630. during packaging.
  6631. For information on how staging for recipe-specific sysroots occurs,
  6632. see the :ref:`ref-tasks-populate_sysroot`
  6633. task, the ":ref:`sdk-manual/extensible:sharing files between recipes`"
  6634. section in the Yocto Project Development Tasks Manual, the
  6635. ":ref:`overview-manual/concepts:configuration, compilation, and staging`"
  6636. section in the Yocto Project Overview and Concepts Manual, and the
  6637. :term:`SYSROOT_DIRS` variable.
  6638. .. note::
  6639. Recipes should never write files directly under the :term:`STAGING_DIR`
  6640. directory because the OpenEmbedded build system manages the
  6641. directory automatically. Instead, files should be installed to
  6642. ``${``\ :term:`D`\ ``}`` within your recipe's :ref:`ref-tasks-install`
  6643. task and then the OpenEmbedded build system will stage a subset of
  6644. those files into the sysroot.
  6645. :term:`STAGING_DIR_HOST`
  6646. Specifies the path to the sysroot directory for the system on which
  6647. the component is built to run (the system that hosts the component).
  6648. For most recipes, this sysroot is the one in which that recipe's
  6649. :ref:`ref-tasks-populate_sysroot` task copies
  6650. files. Exceptions include ``-native`` recipes, where the
  6651. :ref:`ref-tasks-populate_sysroot` task instead uses
  6652. :term:`STAGING_DIR_NATIVE`. Depending on
  6653. the type of recipe and the build target, :term:`STAGING_DIR_HOST` can
  6654. have the following values:
  6655. - For recipes building for the target machine, the value is
  6656. "${:term:`STAGING_DIR`}/${:term:`MACHINE`}".
  6657. - For native recipes building for the build host, the value is empty
  6658. given the assumption that when building for the build host, the
  6659. build host's own directories should be used.
  6660. .. note::
  6661. ``-native`` recipes are not installed into host paths like such
  6662. as ``/usr``. Rather, these recipes are installed into
  6663. :term:`STAGING_DIR_NATIVE`. When compiling ``-native`` recipes,
  6664. standard build environment variables such as
  6665. :term:`CPPFLAGS` and
  6666. :term:`CFLAGS` are set up so that both host paths
  6667. and :term:`STAGING_DIR_NATIVE` are searched for libraries and
  6668. headers using, for example, GCC's ``-isystem`` option.
  6669. Thus, the emphasis is that the ``STAGING_DIR*`` variables
  6670. should be viewed as input variables by tasks such as
  6671. :ref:`ref-tasks-configure`,
  6672. :ref:`ref-tasks-compile`, and
  6673. :ref:`ref-tasks-install`. Having the real system
  6674. root correspond to :term:`STAGING_DIR_HOST` makes conceptual sense
  6675. for ``-native`` recipes, as they make use of host headers and
  6676. libraries.
  6677. Check :term:`RECIPE_SYSROOT` and :term:`RECIPE_SYSROOT_NATIVE`.
  6678. :term:`STAGING_DIR_NATIVE`
  6679. Specifies the path to the sysroot directory used when building
  6680. components that run on the build host itself.
  6681. The default value is ``"${RECIPE_SYSROOT_NATIVE}"``,
  6682. check :term:`RECIPE_SYSROOT_NATIVE`.
  6683. :term:`STAGING_DIR_TARGET`
  6684. Specifies the path to the sysroot used for the system for which the
  6685. component generates code. For components that do not generate code,
  6686. which is the majority, :term:`STAGING_DIR_TARGET` is set to match
  6687. :term:`STAGING_DIR_HOST`.
  6688. Some recipes build binaries that can run on the target system but those
  6689. binaries in turn generate code for another different system (e.g.
  6690. :ref:`ref-classes-cross-canadian` recipes). Using terminology from GNU,
  6691. the primary system is referred to as the "HOST" and the secondary, or
  6692. different, system is referred to as the "TARGET". Thus, the binaries
  6693. run on the "HOST" system and generate binaries for the "TARGET"
  6694. system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used
  6695. for the "HOST" system, while :term:`STAGING_DIR_TARGET` points to the
  6696. sysroot used for the "TARGET" system.
  6697. :term:`STAGING_ETCDIR_NATIVE`
  6698. Specifies the path to the ``/etc`` subdirectory of the sysroot
  6699. directory for the build host.
  6700. :term:`STAGING_EXECPREFIXDIR`
  6701. Specifies the path to the ``/usr`` subdirectory of the sysroot
  6702. directory for the target for which the current recipe is being built
  6703. (:term:`STAGING_DIR_HOST`).
  6704. :term:`STAGING_INCDIR`
  6705. Specifies the path to the ``/usr/include`` subdirectory of the
  6706. sysroot directory for the target for which the current recipe being
  6707. built (:term:`STAGING_DIR_HOST`).
  6708. :term:`STAGING_INCDIR_NATIVE`
  6709. Specifies the path to the ``/usr/include`` subdirectory of the
  6710. sysroot directory for the build host.
  6711. :term:`STAGING_KERNEL_BUILDDIR`
  6712. Points to the directory containing the kernel build artifacts.
  6713. Recipes building software that needs to access kernel build artifacts
  6714. (e.g. ``systemtap-uprobes``) can look in the directory specified with
  6715. the :term:`STAGING_KERNEL_BUILDDIR` variable to find these artifacts
  6716. after the kernel has been built.
  6717. :term:`STAGING_KERNEL_DIR`
  6718. The directory with kernel headers that are required to build
  6719. out-of-tree modules.
  6720. :term:`STAGING_LIBDIR`
  6721. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6722. directory for the target for which the current recipe is being built
  6723. (:term:`STAGING_DIR_HOST`).
  6724. :term:`STAGING_LIBDIR_NATIVE`
  6725. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6726. directory for the build host.
  6727. :term:`STAMP`
  6728. Specifies the base path used to create recipe stamp files. The path
  6729. to an actual stamp file is constructed by evaluating this string and
  6730. then appending additional information. Currently, the default
  6731. assignment for :term:`STAMP` as set in the ``meta/conf/bitbake.conf``
  6732. file is::
  6733. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  6734. For information on how BitBake uses stamp files to determine if a
  6735. task should be rerun, see the
  6736. ":ref:`overview-manual/concepts:stamp files and the rerunning of tasks`"
  6737. section in the Yocto Project Overview and Concepts Manual.
  6738. See :term:`STAMPS_DIR`,
  6739. :term:`MULTIMACH_TARGET_SYS`,
  6740. :term:`PN`, :term:`EXTENDPE`,
  6741. :term:`PV`, and :term:`PR` for related variable
  6742. information.
  6743. :term:`STAMPCLEAN`
  6744. See :term:`bitbake:STAMPCLEAN` in the BitBake manual.
  6745. :term:`STAMPS_DIR`
  6746. Specifies the base directory in which the OpenEmbedded build system
  6747. places stamps. The default directory is ``${TMPDIR}/stamps``.
  6748. :term:`STRIP`
  6749. The minimal command and arguments to run ``strip``, which is used to
  6750. strip symbols.
  6751. :term:`SUMMARY`
  6752. The short (72 characters or less) summary of the binary package for
  6753. packaging systems such as ``opkg``, ``rpm``, or ``dpkg``. By default,
  6754. :term:`SUMMARY` is used to define the
  6755. :term:`DESCRIPTION` variable if :term:`DESCRIPTION` is
  6756. not set in the recipe.
  6757. :term:`SVNDIR`
  6758. The directory in which files checked out of a Subversion system are
  6759. stored.
  6760. :term:`SYSLINUX_DEFAULT_CONSOLE`
  6761. Specifies the kernel boot default console. If you want to use a
  6762. console other than the default, set this variable in your recipe as
  6763. follows where "X" is the console number you want to use::
  6764. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  6765. The :ref:`ref-classes-syslinux` class initially sets
  6766. this variable to null but then checks for a value later.
  6767. :term:`SYSLINUX_OPTS`
  6768. Lists additional options to add to the syslinux file. You need to set
  6769. this variable in your recipe. If you want to list multiple options,
  6770. separate the options with a semicolon character (``;``).
  6771. The :ref:`ref-classes-syslinux` class uses this variable
  6772. to create a set of options.
  6773. :term:`SYSLINUX_SERIAL`
  6774. Specifies the alternate serial port or turns it off. To turn off
  6775. serial, set this variable to an empty string in your recipe. The
  6776. variable's default value is set in the
  6777. :ref:`ref-classes-syslinux` class as follows::
  6778. SYSLINUX_SERIAL ?= "0 115200"
  6779. The class checks for and uses the variable as needed.
  6780. :term:`SYSLINUX_SERIAL_TTY`
  6781. Specifies the alternate console=tty... kernel boot argument. The
  6782. variable's default value is set in the :ref:`ref-classes-syslinux`
  6783. class as follows::
  6784. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  6785. The class checks for and uses the variable as needed.
  6786. :term:`SYSLINUX_SPLASH`
  6787. An ``.LSS`` file used as the background for the VGA boot menu when
  6788. you use the boot menu. You need to set this variable in your recipe.
  6789. The :ref:`ref-classes-syslinux` class checks for this
  6790. variable and if found, the OpenEmbedded build system installs the
  6791. splash screen.
  6792. :term:`SYSROOT_DESTDIR`
  6793. Points to the temporary directory under the work directory (default
  6794. "``${``\ :term:`WORKDIR`\ ``}/sysroot-destdir``")
  6795. where the files populated into the sysroot are assembled during the
  6796. :ref:`ref-tasks-populate_sysroot` task.
  6797. :term:`SYSROOT_DIRS`
  6798. Directories that are staged into the sysroot by the
  6799. :ref:`ref-tasks-populate_sysroot` task. By
  6800. default, the following directories are staged::
  6801. SYSROOT_DIRS = " \
  6802. ${includedir} \
  6803. ${libdir} \
  6804. ${base_libdir} \
  6805. ${nonarch_base_libdir} \
  6806. ${datadir} \
  6807. /sysroot-only \
  6808. "
  6809. Consider the following example in which you need to manipulate this variable.
  6810. Assume you have a recipe ``A`` that provides a shared library ``.so.*`` that is
  6811. installed into a custom folder other than "``${libdir}``"
  6812. or "``${base_libdir}``", let's say "``/opt/lib``".
  6813. .. note::
  6814. This is not a recommended way to deal with shared libraries, but this
  6815. is just to show the usefulness of setting :term:`SYSROOT_DIRS`.
  6816. When a recipe ``B`` :term:`DEPENDS` on ``A``, it means what is in
  6817. :term:`SYSROOT_DIRS` will be copied from :term:`D` of the recipe ``A``
  6818. into ``B``'s :term:`SYSROOT_DESTDIR` that is "``${WORKDIR}/sysroot-destdir``".
  6819. Now, since ``/opt/lib`` is not in :term:`SYSROOT_DIRS`, it will never be copied to
  6820. ``A``'s :term:`RECIPE_SYSROOT`, which is "``${WORKDIR}/recipe-sysroot``". So,
  6821. the linking process will fail.
  6822. To fix this, you need to add ``/opt/lib`` to :term:`SYSROOT_DIRS`::
  6823. SYSROOT_DIRS:append = " /opt/lib"
  6824. .. note::
  6825. Even after setting ``/opt/lib`` to :term:`SYSROOT_DIRS`, the linking process will still fail
  6826. because the linker does not know that location, since :term:`TARGET_LDFLAGS`
  6827. doesn't contain it (if your recipe is for the target). Therefore, so you should add::
  6828. TARGET_LDFLAGS:append = " -L${RECIPE_SYSROOT}/opt/lib"
  6829. :term:`SYSROOT_DIRS_IGNORE`
  6830. Directories that are not staged into the sysroot by the
  6831. :ref:`ref-tasks-populate_sysroot` task. You
  6832. can use this variable to exclude certain subdirectories of
  6833. directories listed in :term:`SYSROOT_DIRS` from
  6834. staging. By default, the following directories are not staged::
  6835. SYSROOT_DIRS_IGNORE = " \
  6836. ${mandir} \
  6837. ${docdir} \
  6838. ${infodir} \
  6839. ${datadir}/X11/locale \
  6840. ${datadir}/applications \
  6841. ${datadir}/bash-completion \
  6842. ${datadir}/fonts \
  6843. ${datadir}/gtk-doc/html \
  6844. ${datadir}/installed-tests \
  6845. ${datadir}/locale \
  6846. ${datadir}/pixmaps \
  6847. ${datadir}/terminfo \
  6848. ${libdir}/${BPN}/ptest \
  6849. "
  6850. :term:`SYSROOT_DIRS_NATIVE`
  6851. Extra directories staged into the sysroot by the
  6852. :ref:`ref-tasks-populate_sysroot` task for
  6853. ``-native`` recipes, in addition to those specified in
  6854. :term:`SYSROOT_DIRS`. By default, the following
  6855. extra directories are staged::
  6856. SYSROOT_DIRS_NATIVE = " \
  6857. ${bindir} \
  6858. ${sbindir} \
  6859. ${base_bindir} \
  6860. ${base_sbindir} \
  6861. ${libexecdir} \
  6862. ${sysconfdir} \
  6863. ${localstatedir} \
  6864. "
  6865. .. note::
  6866. Programs built by ``-native`` recipes run directly from the sysroot
  6867. (:term:`STAGING_DIR_NATIVE`), which is why additional directories
  6868. containing program executables and supporting files need to be staged.
  6869. :term:`SYSROOT_PREPROCESS_FUNCS`
  6870. A list of functions to execute after files are staged into the
  6871. sysroot. These functions are usually used to apply additional
  6872. processing on the staged files, or to stage additional files.
  6873. :term:`SYSTEMD_AUTO_ENABLE`
  6874. When inheriting the :ref:`ref-classes-systemd` class,
  6875. this variable specifies whether the specified service in
  6876. :term:`SYSTEMD_SERVICE` should start
  6877. automatically or not. By default, the service is enabled to
  6878. automatically start at boot time. The default setting is in the
  6879. :ref:`ref-classes-systemd` class as follows::
  6880. SYSTEMD_AUTO_ENABLE ??= "enable"
  6881. You can disable the service by setting the variable to "disable".
  6882. :term:`SYSTEMD_BOOT_CFG`
  6883. When :term:`EFI_PROVIDER` is set to
  6884. "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the
  6885. configuration file that should be used. By default, the
  6886. :ref:`ref-classes-systemd-boot` class sets the
  6887. :term:`SYSTEMD_BOOT_CFG` as follows::
  6888. SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
  6889. For information on Systemd-boot, see the `Systemd-boot
  6890. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6891. :term:`SYSTEMD_BOOT_ENTRIES`
  6892. When :term:`EFI_PROVIDER` is set to
  6893. "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a
  6894. list of entry files (``*.conf``) to install that contain one boot
  6895. entry per file. By default, the :ref:`ref-classes-systemd-boot` class
  6896. sets the :term:`SYSTEMD_BOOT_ENTRIES` as follows::
  6897. SYSTEMD_BOOT_ENTRIES ?= ""
  6898. For information on Systemd-boot, see the `Systemd-boot
  6899. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6900. :term:`SYSTEMD_BOOT_TIMEOUT`
  6901. When :term:`EFI_PROVIDER` is set to
  6902. "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the
  6903. boot menu timeout in seconds. By default, the
  6904. :ref:`ref-classes-systemd-boot` class sets the
  6905. :term:`SYSTEMD_BOOT_TIMEOUT` as follows::
  6906. SYSTEMD_BOOT_TIMEOUT ?= "10"
  6907. For information on Systemd-boot, see the `Systemd-boot
  6908. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6909. :term:`SYSTEMD_DEFAULT_TARGET`
  6910. This variable allows to set the default unit that systemd starts at bootup.
  6911. Usually, this is either ``multi-user.target`` or ``graphical.target``.
  6912. This works by creating a ``default.target`` symbolic link to the chosen systemd
  6913. target file.
  6914. See `systemd's documentation
  6915. <https://www.freedesktop.org/software/systemd/man/systemd.special.html>`__
  6916. for details.
  6917. For example, this variable is used in the :oe_git:`core-image-minimal-xfce.bb
  6918. </meta-openembedded/tree/meta-xfce/recipes-core/images/core-image-minimal-xfce.bb>`
  6919. recipe::
  6920. SYSTEMD_DEFAULT_TARGET = "graphical.target"
  6921. :term:`SYSTEMD_PACKAGES`
  6922. When inheriting the :ref:`ref-classes-systemd` class,
  6923. this variable locates the systemd unit files when they are not found
  6924. in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES`
  6925. variable is set such that the systemd unit files are assumed to
  6926. reside in the recipes main package::
  6927. SYSTEMD_PACKAGES ?= "${PN}"
  6928. If these unit files are not in this recipe's main package, you need
  6929. to use :term:`SYSTEMD_PACKAGES` to list the package or packages in which
  6930. the build system can find the systemd unit files.
  6931. :term:`SYSTEMD_SERVICE`
  6932. When inheriting the :ref:`ref-classes-systemd` class,
  6933. this variable specifies the systemd service name for a package.
  6934. Multiple services can be specified, each one separated by a space.
  6935. When you specify this file in your recipe, use a package name
  6936. override to indicate the package to which the value applies. Here is
  6937. an example from the connman recipe::
  6938. SYSTEMD_SERVICE:${PN} = "connman.service"
  6939. The package overrides that can be specified are directly related to the value of
  6940. :term:`SYSTEMD_PACKAGES`. Overrides not included in :term:`SYSTEMD_PACKAGES`
  6941. will be silently ignored.
  6942. :term:`SYSVINIT_ENABLED_GETTYS`
  6943. When using :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  6944. specifies a space-separated list of the virtual terminals that should
  6945. run a :wikipedia:`getty <Getty_(Unix)>` (allowing login), assuming
  6946. :term:`USE_VT` is not set to "0".
  6947. The default value for :term:`SYSVINIT_ENABLED_GETTYS` is "1" (i.e. only
  6948. run a getty on the first virtual terminal).
  6949. :term:`T`
  6950. This variable points to a directory were BitBake places temporary
  6951. files, which consist mostly of task logs and scripts, when building a
  6952. particular recipe. The variable is typically set as follows::
  6953. T = "${WORKDIR}/temp"
  6954. The :term:`WORKDIR` is the directory into which
  6955. BitBake unpacks and builds the recipe. The default ``bitbake.conf``
  6956. file sets this variable.
  6957. The :term:`T` variable is not to be confused with the
  6958. :term:`TMPDIR` variable, which points to the root of
  6959. the directory tree where BitBake places the output of an entire
  6960. build.
  6961. :term:`TARGET_ARCH`
  6962. The target machine's architecture. The OpenEmbedded build system
  6963. supports many architectures. Here is an example list of architectures
  6964. supported. This list is by no means complete as the architecture is
  6965. configurable:
  6966. - arm
  6967. - i586
  6968. - x86_64
  6969. - powerpc
  6970. - powerpc64
  6971. - mips
  6972. - mipsel
  6973. For additional information on machine architectures, see the
  6974. :term:`TUNE_ARCH` variable.
  6975. :term:`TARGET_AS_ARCH`
  6976. Specifies architecture-specific assembler flags for the target
  6977. system. :term:`TARGET_AS_ARCH` is initialized from
  6978. :term:`TUNE_ASARGS` by default in the BitBake
  6979. configuration file (``meta/conf/bitbake.conf``)::
  6980. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  6981. :term:`TARGET_CC_ARCH`
  6982. Specifies architecture-specific C compiler flags for the target
  6983. system. :term:`TARGET_CC_ARCH` is initialized from
  6984. :term:`TUNE_CCARGS` by default.
  6985. .. note::
  6986. It is a common workaround to append :term:`LDFLAGS` to
  6987. :term:`TARGET_CC_ARCH` in recipes that build software for the target that
  6988. would not otherwise respect the exported :term:`LDFLAGS` variable.
  6989. :term:`TARGET_CC_KERNEL_ARCH`
  6990. This is a specific kernel compiler flag for a CPU or Application
  6991. Binary Interface (ABI) tune. The flag is used rarely and only for
  6992. cases where a userspace :term:`TUNE_CCARGS` is not
  6993. compatible with the kernel compilation. The :term:`TARGET_CC_KERNEL_ARCH`
  6994. variable allows the kernel (and associated modules) to use a
  6995. different configuration. See the
  6996. ``meta/conf/machine/include/arm/feature-arm-thumb.inc`` file in the
  6997. :term:`Source Directory` for an example.
  6998. :term:`TARGET_CFLAGS`
  6999. Specifies the flags to pass to the C compiler when building for the
  7000. target. When building in the target context,
  7001. :term:`CFLAGS` is set to the value of this variable by
  7002. default.
  7003. Additionally, the SDK's environment setup script sets the :term:`CFLAGS`
  7004. variable in the environment to the :term:`TARGET_CFLAGS` value so that
  7005. executables built using the SDK also have the flags applied.
  7006. :term:`TARGET_CPPFLAGS`
  7007. Specifies the flags to pass to the C pre-processor (i.e. to both the
  7008. C and the C++ compilers) when building for the target. When building
  7009. in the target context, :term:`CPPFLAGS` is set to the
  7010. value of this variable by default.
  7011. Additionally, the SDK's environment setup script sets the
  7012. :term:`CPPFLAGS` variable in the environment to the :term:`TARGET_CPPFLAGS`
  7013. value so that executables built using the SDK also have the flags
  7014. applied.
  7015. :term:`TARGET_CXXFLAGS`
  7016. Specifies the flags to pass to the C++ compiler when building for the
  7017. target. When building in the target context,
  7018. :term:`CXXFLAGS` is set to the value of this variable
  7019. by default.
  7020. Additionally, the SDK's environment setup script sets the
  7021. :term:`CXXFLAGS` variable in the environment to the :term:`TARGET_CXXFLAGS`
  7022. value so that executables built using the SDK also have the flags
  7023. applied.
  7024. :term:`TARGET_DBGSRC_DIR`
  7025. Specifies the target path to debug source files. The default is
  7026. ``/usr/src/debug/${PN}/${PV}``.
  7027. :term:`TARGET_FPU`
  7028. Specifies the method for handling FPU code. For FPU-less targets,
  7029. which include most ARM CPUs, the variable must be set to "soft". If
  7030. not, the kernel emulation gets used, which results in a performance
  7031. penalty.
  7032. :term:`TARGET_LD_ARCH`
  7033. Specifies architecture-specific linker flags for the target system.
  7034. :term:`TARGET_LD_ARCH` is initialized from
  7035. :term:`TUNE_LDARGS` by default in the BitBake
  7036. configuration file (``meta/conf/bitbake.conf``)::
  7037. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  7038. :term:`TARGET_LDFLAGS`
  7039. Specifies the flags to pass to the linker when building for the
  7040. target. When building in the target context,
  7041. :term:`LDFLAGS` is set to the value of this variable
  7042. by default.
  7043. Additionally, the SDK's environment setup script sets the
  7044. :term:`LDFLAGS` variable in the environment to the
  7045. :term:`TARGET_LDFLAGS` value so that executables built using the SDK also
  7046. have the flags applied.
  7047. :term:`TARGET_OS`
  7048. Specifies the target's operating system. The variable can be set to
  7049. "linux" for glibc-based systems (GNU C Library) and to "linux-musl"
  7050. for musl libc. For ARM/EABI targets, the possible values are
  7051. "linux-gnueabi" and "linux-musleabi".
  7052. :term:`TARGET_PREFIX`
  7053. Specifies the prefix used for the toolchain binary target tools.
  7054. Depending on the type of recipe and the build target,
  7055. :term:`TARGET_PREFIX` is set as follows:
  7056. - For recipes building for the target machine, the value is
  7057. "${:term:`TARGET_SYS`}-".
  7058. - For native recipes, the build system sets the variable to the
  7059. value of :term:`BUILD_PREFIX`.
  7060. - For native SDK recipes (:ref:`ref-classes-nativesdk`),
  7061. the build system sets the variable to the value of :term:`SDK_PREFIX`.
  7062. :term:`TARGET_SYS`
  7063. Specifies the system, including the architecture and the operating
  7064. system, for which the build is occurring in the context of the
  7065. current recipe.
  7066. The OpenEmbedded build system automatically sets this variable based
  7067. on :term:`TARGET_ARCH`,
  7068. :term:`TARGET_VENDOR`, and
  7069. :term:`TARGET_OS` variables.
  7070. .. note::
  7071. You do not need to set the :term:`TARGET_SYS` variable yourself.
  7072. Consider these two examples:
  7073. - Given a native recipe on a 32-bit, x86 machine running Linux, the
  7074. value is "i686-linux".
  7075. - Given a recipe being built for a little-endian, MIPS target
  7076. running Linux, the value might be "mipsel-linux".
  7077. :term:`TARGET_VENDOR`
  7078. Specifies the name of the target vendor.
  7079. :term:`TCLIBC`
  7080. Specifies the GNU standard C library (``libc``) variant to use during
  7081. the build process.
  7082. You can select "glibc", "musl", "newlib", or "baremetal".
  7083. :term:`TCMODE`
  7084. Specifies the toolchain selector. :term:`TCMODE` controls the
  7085. characteristics of the generated packages and images by telling the
  7086. OpenEmbedded build system which toolchain profile to use. By default,
  7087. the OpenEmbedded build system builds its own internal toolchain. The
  7088. variable's default value is "default", which uses that internal
  7089. toolchain.
  7090. .. note::
  7091. If :term:`TCMODE` is set to a value other than "default", then it is your
  7092. responsibility to ensure that the toolchain is compatible with the
  7093. default toolchain. Using older or newer versions of these
  7094. components might cause build problems. See
  7095. :doc:`Release Information </migration-guides/index>` for your
  7096. version of the Yocto Project, to find the specific components with
  7097. which the toolchain must be compatible.
  7098. The :term:`TCMODE` variable is similar to :term:`TCLIBC`,
  7099. which controls the variant of the GNU standard C library (``libc``)
  7100. used during the build process: ``glibc`` or ``musl``.
  7101. With additional layers, it is possible to use a pre-compiled external
  7102. toolchain. One example is the Sourcery G++ Toolchain. The support for
  7103. this toolchain resides in the separate Mentor Graphics
  7104. ``meta-sourcery`` layer at
  7105. https://github.com/MentorEmbedded/meta-sourcery/.
  7106. The layer's ``README`` file contains information on how to use the
  7107. Sourcery G++ Toolchain as an external toolchain. You will have to
  7108. add the layer to your ``bblayers.conf`` file and then set the
  7109. :term:`EXTERNAL_TOOLCHAIN` variable in your ``local.conf`` file to
  7110. the location of the toolchain.
  7111. The fundamentals used for this example apply to any external
  7112. toolchain. You can use ``meta-sourcery`` as a template for adding
  7113. support for other external toolchains.
  7114. In addition to toolchain configuration, you will also need a
  7115. corresponding toolchain recipe file. This recipe file needs to package
  7116. up any pre-built objects in the toolchain such as ``libgcc``,
  7117. ``libstdcc++``, any locales, and ``libc``.
  7118. :term:`TC_CXX_RUNTIME`
  7119. Specifies the C/C++ STL and runtime variant to use during
  7120. the build process. Default value is 'gnu'
  7121. You can select "gnu", "llvm", or "android".
  7122. :term:`TEMPLATECONF`
  7123. Specifies the directory used by the build system to find templates
  7124. from which to build the ``bblayers.conf`` and ``local.conf`` files.
  7125. Use this variable if you wish to customize such files, and the default
  7126. BitBake targets shown when sourcing the ``oe-init-build-env`` script.
  7127. For details, see the
  7128. :ref:`dev-manual/custom-template-configuration-directory:creating a custom template configuration directory`
  7129. section in the Yocto Project Development Tasks manual.
  7130. .. note::
  7131. You must set this variable in the external environment in order
  7132. for it to work.
  7133. :term:`TEST_EXPORT_DIR`
  7134. The location the OpenEmbedded build system uses to export tests when
  7135. the :term:`TEST_EXPORT_ONLY` variable is set
  7136. to "1".
  7137. The :term:`TEST_EXPORT_DIR` variable defaults to
  7138. ``"${TMPDIR}/testimage/${PN}"``.
  7139. :term:`TEST_EXPORT_ONLY`
  7140. Specifies to export the tests only. Set this variable to "1" if you
  7141. do not want to run the tests but you want them to be exported in a
  7142. manner that you to run them outside of the build system.
  7143. :term:`TEST_LOG_DIR`
  7144. Holds the SSH log and the boot log for QEMU machines. The
  7145. :term:`TEST_LOG_DIR` variable defaults to ``"${WORKDIR}/testimage"``.
  7146. .. note::
  7147. Actual test results reside in the task log (``log.do_testimage``),
  7148. which is in the ``${WORKDIR}/temp/`` directory.
  7149. :term:`TEST_POWERCONTROL_CMD`
  7150. For automated hardware testing, specifies the command to use to
  7151. control the power of the target machine under test. Typically, this
  7152. command would point to a script that performs the appropriate action
  7153. (e.g. interacting with a web-enabled power strip). The specified
  7154. command should expect to receive as the last argument "off", "on" or
  7155. "cycle" specifying to power off, on, or cycle (power off and then
  7156. power on) the device, respectively.
  7157. :term:`TEST_POWERCONTROL_EXTRA_ARGS`
  7158. For automated hardware testing, specifies additional arguments to
  7159. pass through to the command specified in
  7160. :term:`TEST_POWERCONTROL_CMD`. Setting
  7161. :term:`TEST_POWERCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7162. wish, for example, to separate the machine-specific and
  7163. non-machine-specific parts of the arguments.
  7164. :term:`TEST_QEMUBOOT_TIMEOUT`
  7165. The time in seconds allowed for an image to boot before automated
  7166. runtime tests begin to run against an image. The default timeout
  7167. period to allow the boot process to reach the login prompt is 500
  7168. seconds. You can specify a different value in the ``local.conf``
  7169. file.
  7170. For more information on testing images, see the
  7171. ":ref:`dev-manual/runtime-testing:performing automated runtime testing`"
  7172. section in the Yocto Project Development Tasks Manual.
  7173. :term:`TEST_SERIALCONTROL_CMD`
  7174. For automated hardware testing, specifies the command to use to
  7175. connect to the serial console of the target machine under test. This
  7176. command simply needs to connect to the serial console and forward
  7177. that connection to standard input and output as any normal terminal
  7178. program does.
  7179. For example, to use the Picocom terminal program on serial device
  7180. ``/dev/ttyUSB0`` at 115200bps, you would set the variable as follows::
  7181. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  7182. :term:`TEST_SERIALCONTROL_EXTRA_ARGS`
  7183. For automated hardware testing, specifies additional arguments to
  7184. pass through to the command specified in
  7185. :term:`TEST_SERIALCONTROL_CMD`. Setting
  7186. :term:`TEST_SERIALCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7187. wish, for example, to separate the machine-specific and
  7188. non-machine-specific parts of the command.
  7189. :term:`TEST_SERVER_IP`
  7190. The IP address of the build machine (host machine). This IP address
  7191. is usually automatically detected. However, if detection fails, this
  7192. variable needs to be set to the IP address of the build machine (i.e.
  7193. where the build is taking place).
  7194. .. note::
  7195. The :term:`TEST_SERVER_IP` variable is only used for a small number of
  7196. tests such as the "dnf" test suite, which needs to download packages
  7197. from ``WORKDIR/oe-rootfs-repo``.
  7198. :term:`TEST_SUITES`
  7199. An ordered list of tests (modules) to run against an image when
  7200. performing automated runtime testing.
  7201. The OpenEmbedded build system provides a core set of tests that can
  7202. be used against images.
  7203. .. note::
  7204. Currently, there is only support for running these tests under
  7205. QEMU.
  7206. Tests include ``ping``, ``ssh``, ``df`` among others. You can add
  7207. your own tests to the list of tests by appending :term:`TEST_SUITES` as
  7208. follows::
  7209. TEST_SUITES:append = " mytest"
  7210. Alternatively, you can
  7211. provide the "auto" option to have all applicable tests run against
  7212. the image::
  7213. TEST_SUITES:append = " auto"
  7214. Using this option causes the
  7215. build system to automatically run tests that are applicable to the
  7216. image. Tests that are not applicable are skipped.
  7217. The order in which tests are run is important. Tests that depend on
  7218. another test must appear later in the list than the test on which
  7219. they depend. For example, if you append the list of tests with two
  7220. tests (``test_A`` and ``test_B``) where ``test_B`` is dependent on
  7221. ``test_A``, then you must order the tests as follows::
  7222. TEST_SUITES = "test_A test_B"
  7223. For more information on testing images, see the
  7224. ":ref:`dev-manual/runtime-testing:performing automated runtime testing`"
  7225. section in the Yocto Project Development Tasks Manual.
  7226. :term:`TEST_TARGET`
  7227. Specifies the target controller to use when running tests against a
  7228. test image. The default controller to use is "qemu"::
  7229. TEST_TARGET = "qemu"
  7230. A target controller is a class that defines how an image gets
  7231. deployed on a target and how a target is started. A layer can extend
  7232. the controllers by adding a module in the layer's
  7233. ``/lib/oeqa/controllers`` directory and by inheriting the
  7234. ``BaseTarget`` class, which is an abstract class that cannot be used
  7235. as a value of :term:`TEST_TARGET`.
  7236. You can provide the following arguments with :term:`TEST_TARGET`:
  7237. - *"qemu":* Boots a QEMU image and runs the tests. See the
  7238. ":ref:`dev-manual/runtime-testing:enabling runtime tests on qemu`" section
  7239. in the Yocto Project Development Tasks Manual for more
  7240. information.
  7241. - *"simpleremote":* Runs the tests on target hardware that is
  7242. already up and running. The hardware can be on the network or it
  7243. can be a device running an image on QEMU. You must also set
  7244. :term:`TEST_TARGET_IP` when you use
  7245. "simpleremote".
  7246. .. note::
  7247. This argument is defined in
  7248. ``meta/lib/oeqa/controllers/simpleremote.py``.
  7249. For information on running tests on hardware, see the
  7250. ":ref:`dev-manual/runtime-testing:enabling runtime tests on hardware`"
  7251. section in the Yocto Project Development Tasks Manual.
  7252. :term:`TEST_TARGET_IP`
  7253. The IP address of your hardware under test. The :term:`TEST_TARGET_IP`
  7254. variable has no effect when :term:`TEST_TARGET` is
  7255. set to "qemu".
  7256. When you specify the IP address, you can also include a port. Here is
  7257. an example::
  7258. TEST_TARGET_IP = "192.168.1.4:2201"
  7259. Specifying a port is
  7260. useful when SSH is started on a non-standard port or in cases when
  7261. your hardware under test is behind a firewall or network that is not
  7262. directly accessible from your host and you need to do port address
  7263. translation.
  7264. :term:`TESTIMAGE_AUTO`
  7265. Automatically runs the series of automated tests for images when an
  7266. image is successfully built. Setting :term:`TESTIMAGE_AUTO` to "1" causes
  7267. any image that successfully builds to automatically boot under QEMU.
  7268. Using the variable also adds in dependencies so that any SDK for
  7269. which testing is requested is automatically built first.
  7270. These tests are written in Python making use of the ``unittest``
  7271. module, and the majority of them run commands on the target system
  7272. over ``ssh``. You can set this variable to "1" in your ``local.conf``
  7273. file in the :term:`Build Directory` to have the
  7274. OpenEmbedded build system automatically run these tests after an
  7275. image successfully builds:
  7276. TESTIMAGE_AUTO = "1"
  7277. For more information
  7278. on enabling, running, and writing these tests, see the
  7279. ":ref:`dev-manual/runtime-testing:performing automated runtime testing`"
  7280. section in the Yocto Project Development Tasks Manual and the
  7281. ":ref:`ref-classes-testimage`" section.
  7282. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS`
  7283. When using the :ref:`ref-classes-testimage` class, the variable
  7284. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS` lists space-separated paths on the
  7285. target to retrieve onto the host.
  7286. :term:`THISDIR`
  7287. The directory in which the file BitBake is currently parsing is
  7288. located. Do not manually set this variable.
  7289. :term:`TIME`
  7290. The time the build was started. Times appear using the hour, minute,
  7291. and second (HMS) format (e.g. "140159" for one minute and fifty-nine
  7292. seconds past 1400 hours).
  7293. :term:`TMPDIR`
  7294. This variable is the base directory the OpenEmbedded build system
  7295. uses for all build output and intermediate files (other than the
  7296. shared state cache). By default, the :term:`TMPDIR` variable points to
  7297. ``tmp`` within the :term:`Build Directory`.
  7298. If you want to establish this directory in a location other than the
  7299. default, you can uncomment and edit the following statement in the
  7300. ``conf/local.conf`` file in the :term:`Source Directory`::
  7301. #TMPDIR = "${TOPDIR}/tmp"
  7302. An example use for this scenario is to set :term:`TMPDIR` to a local disk,
  7303. which does not use NFS, while having the :term:`Build Directory` use NFS.
  7304. The filesystem used by :term:`TMPDIR` must have standard filesystem
  7305. semantics (i.e. mixed-case files are unique, POSIX file locking, and
  7306. persistent inodes). Due to various issues with NFS and bugs in some
  7307. implementations, NFS does not meet this minimum requirement.
  7308. Consequently, :term:`TMPDIR` cannot be on NFS.
  7309. :term:`TOOLCHAIN_HOST_TASK`
  7310. This variable lists packages the OpenEmbedded build system uses when
  7311. building an SDK, which contains a cross-development environment. The
  7312. packages specified by this variable are part of the toolchain set
  7313. that runs on the :term:`SDKMACHINE`, and each
  7314. package should usually have the prefix ``nativesdk-``. For example,
  7315. consider the following command when building an SDK::
  7316. $ bitbake -c populate_sdk imagename
  7317. In this case, a default list of packages is
  7318. set in this variable, but you can add additional packages to the
  7319. list. See the
  7320. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7321. in the Yocto Project Application Development and the Extensible
  7322. Software Development Kit (eSDK) manual for more information.
  7323. For background information on cross-development toolchains in the
  7324. Yocto Project development environment, see the
  7325. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7326. section in the Yocto Project Overview and Concepts Manual. For
  7327. information on setting up a cross-development environment, see the
  7328. :doc:`/sdk-manual/index` manual.
  7329. Note that this variable applies to building an SDK, not an eSDK,
  7330. in which case the :term:`TOOLCHAIN_HOST_TASK_ESDK` setting should be
  7331. used instead.
  7332. :term:`TOOLCHAIN_HOST_TASK_ESDK`
  7333. This variable allows to extend what is installed in the host
  7334. portion of an eSDK. This is similar to :term:`TOOLCHAIN_HOST_TASK`
  7335. applying to SDKs.
  7336. :term:`TOOLCHAIN_OPTIONS`
  7337. This variable holds extra options passed to the compiler and the linker
  7338. for non ``-native`` recipes as they have to point to their custom
  7339. ``sysroot`` folder pointed to by :term:`RECIPE_SYSROOT`::
  7340. TOOLCHAIN_OPTIONS = " --sysroot=${RECIPE_SYSROOT}"
  7341. Native recipes don't need this variable to be set, as they are
  7342. built for the host machine with the native compiler.
  7343. :term:`TOOLCHAIN_OUTPUTNAME`
  7344. This variable defines the name used for the toolchain output. The
  7345. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
  7346. the :term:`TOOLCHAIN_OUTPUTNAME` variable as follows::
  7347. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  7348. See
  7349. the :term:`SDK_NAME` and
  7350. :term:`SDK_VERSION` variables for additional
  7351. information.
  7352. :term:`TOOLCHAIN_TARGET_TASK`
  7353. This variable lists packages the OpenEmbedded build system uses when
  7354. it creates the target part of an SDK (i.e. the part built for the
  7355. target hardware), which includes libraries and headers. Use this
  7356. variable to add individual packages to the part of the SDK that runs
  7357. on the target. See the
  7358. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7359. in the Yocto Project Application Development and the Extensible
  7360. Software Development Kit (eSDK) manual for more information.
  7361. For background information on cross-development toolchains in the
  7362. Yocto Project development environment, see the
  7363. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7364. section in the Yocto Project Overview and Concepts Manual. For
  7365. information on setting up a cross-development environment, see the
  7366. :doc:`/sdk-manual/index` manual.
  7367. :term:`TOPDIR`
  7368. See :term:`bitbake:TOPDIR` in the BitBake manual.
  7369. :term:`TRANSLATED_TARGET_ARCH`
  7370. A sanitized version of :term:`TARGET_ARCH`. This
  7371. variable is used where the architecture is needed in a value where
  7372. underscores are not allowed, for example within package filenames. In
  7373. this case, dash characters replace any underscore characters used in
  7374. :term:`TARGET_ARCH`.
  7375. Do not edit this variable.
  7376. :term:`TUNE_ARCH`
  7377. The GNU canonical architecture for a specific architecture (i.e.
  7378. ``arm``, ``armeb``, ``mips``, ``mips64``, and so forth). BitBake uses
  7379. this value to setup configuration.
  7380. :term:`TUNE_ARCH` definitions are specific to a given architecture. The
  7381. definitions can be a single static definition, or can be dynamically
  7382. adjusted. You can see details for a given CPU family by looking at
  7383. the architecture's ``README`` file. For example, the
  7384. ``meta/conf/machine/include/mips/README`` file in the
  7385. :term:`Source Directory` provides information for
  7386. :term:`TUNE_ARCH` specific to the ``mips`` architecture.
  7387. :term:`TUNE_ARCH` is tied closely to
  7388. :term:`TARGET_ARCH`, which defines the target
  7389. machine's architecture. The BitBake configuration file
  7390. (``meta/conf/bitbake.conf``) sets :term:`TARGET_ARCH` as follows::
  7391. TARGET_ARCH = "${TUNE_ARCH}"
  7392. The following list, which is by no means complete since architectures
  7393. are configurable, shows supported machine architectures:
  7394. - arm
  7395. - i586
  7396. - x86_64
  7397. - powerpc
  7398. - powerpc64
  7399. - mips
  7400. - mipsel
  7401. :term:`TUNE_ASARGS`
  7402. Specifies architecture-specific assembler flags for the target
  7403. system. The set of flags is based on the selected tune features.
  7404. :term:`TUNE_ASARGS` is set using the tune include files, which are
  7405. typically under ``meta/conf/machine/include/`` and are influenced
  7406. through :term:`TUNE_FEATURES`. For example, the
  7407. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7408. for the x86 architecture as follows::
  7409. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  7410. .. note::
  7411. Board Support Packages (BSPs) select the tune. The selected tune,
  7412. in turn, affects the tune variables themselves (i.e. the tune can
  7413. supply its own set of flags).
  7414. :term:`TUNE_CCARGS`
  7415. Specifies architecture-specific C compiler flags for the target
  7416. system. The set of flags is based on the selected tune features.
  7417. :term:`TUNE_CCARGS` is set using the tune include files, which are
  7418. typically under ``meta/conf/machine/include/`` and are influenced
  7419. through :term:`TUNE_FEATURES`.
  7420. .. note::
  7421. Board Support Packages (BSPs) select the tune. The selected tune,
  7422. in turn, affects the tune variables themselves (i.e. the tune can
  7423. supply its own set of flags).
  7424. :term:`TUNE_FEATURES`
  7425. Features used to "tune" a compiler for optimal use given a specific
  7426. processor. The features are defined within the tune files and allow
  7427. arguments (i.e. ``TUNE_*ARGS``) to be dynamically generated based on
  7428. the features.
  7429. The OpenEmbedded build system verifies the features to be sure they
  7430. are not conflicting and that they are supported.
  7431. The BitBake configuration file (``meta/conf/bitbake.conf``) defines
  7432. :term:`TUNE_FEATURES` as follows::
  7433. TUNE_FEATURES ??= "${TUNE_FEATURES:tune-${DEFAULTTUNE}}"
  7434. See the :term:`DEFAULTTUNE` variable for more information.
  7435. :term:`TUNE_LDARGS`
  7436. Specifies architecture-specific linker flags for the target system.
  7437. The set of flags is based on the selected tune features.
  7438. :term:`TUNE_LDARGS` is set using the tune include files, which are
  7439. typically under ``meta/conf/machine/include/`` and are influenced
  7440. through :term:`TUNE_FEATURES`. For example, the
  7441. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7442. for the x86 architecture as follows::
  7443. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  7444. .. note::
  7445. Board Support Packages (BSPs) select the tune. The selected tune,
  7446. in turn, affects the tune variables themselves (i.e. the tune can
  7447. supply its own set of flags).
  7448. :term:`TUNE_PKGARCH`
  7449. The package architecture understood by the packaging system to define
  7450. the architecture, ABI, and tuning of output packages. The specific
  7451. tune is defined using the "_tune" override as follows::
  7452. TUNE_PKGARCH:tune-tune = "tune"
  7453. These tune-specific package architectures are defined in the machine
  7454. include files. Here is an example of the "core2-32" tuning as used in
  7455. the ``meta/conf/machine/include/x86/tune-core2.inc`` file::
  7456. TUNE_PKGARCH:tune-core2-32 = "core2-32"
  7457. :term:`TUNECONFLICTS[feature]`
  7458. Specifies CPU or Application Binary Interface (ABI) tuning features
  7459. that conflict with feature.
  7460. Known tuning conflicts are specified in the machine include files in
  7461. the :term:`Source Directory`. Here is an example from
  7462. the ``meta/conf/machine/include/mips/arch-mips.inc`` include file
  7463. that lists the "o32" and "n64" features as conflicting with the "n32"
  7464. feature::
  7465. TUNECONFLICTS[n32] = "o32 n64"
  7466. :term:`TUNEVALID[feature]`
  7467. Specifies a valid CPU or Application Binary Interface (ABI) tuning
  7468. feature. The specified feature is stored as a flag. Valid features
  7469. are specified in the machine include files (e.g.
  7470. ``meta/conf/machine/include/arm/arch-arm.inc``). Here is an example
  7471. from that file::
  7472. TUNEVALID[bigendian] = "Enable big-endian mode."
  7473. See the machine include files in the :term:`Source Directory`
  7474. for these features.
  7475. :term:`UBOOT_BINARY`
  7476. Specifies the name of the binary build by U-Boot.
  7477. :term:`UBOOT_CONFIG`
  7478. Configures one or more U-Boot configurations to build. Each
  7479. configuration can define the :term:`UBOOT_MACHINE` and optionally the
  7480. :term:`IMAGE_FSTYPES` and the :term:`UBOOT_BINARY`.
  7481. Here is an example from the ``meta-freescale`` layer. ::
  7482. UBOOT_CONFIG ??= "sdcard-ifc-secure-boot sdcard-ifc sdcard-qspi lpuart qspi secure-boot nor"
  7483. UBOOT_CONFIG[nor] = "ls1021atwr_nor_defconfig"
  7484. UBOOT_CONFIG[sdcard-ifc] = "ls1021atwr_sdcard_ifc_defconfig,,u-boot-with-spl-pbl.bin"
  7485. UBOOT_CONFIG[sdcard-qspi] = "ls1021atwr_sdcard_qspi_defconfig,,u-boot-with-spl-pbl.bin"
  7486. UBOOT_CONFIG[lpuart] = "ls1021atwr_nor_lpuart_defconfig"
  7487. UBOOT_CONFIG[qspi] = "ls1021atwr_qspi_defconfig"
  7488. UBOOT_CONFIG[secure-boot] = "ls1021atwr_nor_SECURE_BOOT_defconfig"
  7489. UBOOT_CONFIG[sdcard-ifc-secure-boot] = "ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
  7490. In this example, all possible seven configurations are selected. Each
  7491. configuration specifies "..._defconfig" as :term:`UBOOT_MACHINE`, and
  7492. the "sd..." configurations define an individual name for
  7493. :term:`UBOOT_BINARY`. No configuration defines a second parameter for
  7494. :term:`IMAGE_FSTYPES` to use for the U-Boot image.
  7495. For more information on how the :term:`UBOOT_CONFIG` is handled, see the
  7496. :ref:`ref-classes-uboot-config` class.
  7497. :term:`UBOOT_DTB_LOADADDRESS`
  7498. Specifies the load address for the dtb image used by U-Boot. During FIT
  7499. image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in
  7500. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7501. used in creating the dtb sections of Image Tree Source for the FIT image.
  7502. :term:`UBOOT_DTBO_LOADADDRESS`
  7503. Specifies the load address for the dtbo image used by U-Boot. During FIT
  7504. image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in
  7505. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7506. used in creating the dtbo sections of Image Tree Source for the FIT image.
  7507. :term:`UBOOT_ENTRYPOINT`
  7508. Specifies the entry point for the U-Boot image. During U-Boot image
  7509. creation, the :term:`UBOOT_ENTRYPOINT` variable is passed as a
  7510. command-line parameter to the ``uboot-mkimage`` utility.
  7511. To pass a 64 bit address for FIT image creation, you will need to set:
  7512. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7513. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7514. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7515. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7516. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7517. classes.
  7518. :term:`UBOOT_FIT_ADDRESS_CELLS`
  7519. Specifies the value of the ``#address-cells`` value for the
  7520. description of the U-Boot FIT image.
  7521. The default value is set to "1" by the :ref:`ref-classes-uboot-sign`
  7522. class, which corresponds to 32 bit addresses.
  7523. For platforms that need to set 64 bit addresses in
  7524. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  7525. set this value to "2", as two 32 bit values (cells) will be needed
  7526. to represent such addresses.
  7527. Here is an example setting "0x400000000" as a load address::
  7528. UBOOT_FIT_ADDRESS_CELLS = "2"
  7529. UBOOT_LOADADDRESS= "0x04 0x00000000"
  7530. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  7531. :term:`UBOOT_FIT_DESC`
  7532. Specifies the description string encoded into a U-Boot fitImage. The default
  7533. value is set by the :ref:`ref-classes-uboot-sign` class as follows::
  7534. UBOOT_FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  7535. :term:`UBOOT_FIT_GENERATE_KEYS`
  7536. Decides whether to generate the keys for signing the U-Boot fitImage if
  7537. they don't already exist. The keys are created in :term:`SPL_SIGN_KEYDIR`.
  7538. The default value is "0".
  7539. Enable this as follows::
  7540. UBOOT_FIT_GENERATE_KEYS = "1"
  7541. This variable is used in the :ref:`ref-classes-uboot-sign` class.
  7542. :term:`UBOOT_FIT_HASH_ALG`
  7543. Specifies the hash algorithm used in creating the U-Boot FIT Image.
  7544. It is set by default to ``sha256`` by the :ref:`ref-classes-uboot-sign`
  7545. class.
  7546. :term:`UBOOT_FIT_KEY_GENRSA_ARGS`
  7547. Arguments to ``openssl genrsa`` for generating a RSA private key for
  7548. signing the U-Boot FIT image. The default value of this variable
  7549. is set to "-F4" by the :ref:`ref-classes-uboot-sign` class.
  7550. :term:`UBOOT_FIT_KEY_REQ_ARGS`
  7551. Arguments to ``openssl req`` for generating a certificate for signing
  7552. the U-Boot FIT image. The default value is "-batch -new" by the
  7553. :ref:`ref-classes-uboot-sign` class, "batch" for
  7554. non interactive mode and "new" for generating new keys.
  7555. :term:`UBOOT_FIT_KEY_SIGN_PKCS`
  7556. Format for the public key certificate used for signing the U-Boot FIT
  7557. image. The default value is set to "x509" by the
  7558. :ref:`ref-classes-uboot-sign` class.
  7559. :term:`UBOOT_FIT_SIGN_ALG`
  7560. Specifies the signature algorithm used in creating the U-Boot FIT Image.
  7561. This variable is set by default to "rsa2048" by the
  7562. :ref:`ref-classes-uboot-sign` class.
  7563. :term:`UBOOT_FIT_SIGN_NUMBITS`
  7564. Size of the private key used in signing the U-Boot FIT image, in number
  7565. of bits. The default value for this variable is set to "2048"
  7566. by the :ref:`ref-classes-uboot-sign` class.
  7567. :term:`UBOOT_FITIMAGE_ENABLE`
  7568. This variable allows to generate a FIT image for U-Boot, which is one
  7569. of the ways to implement a verified boot process.
  7570. Its default value is "0", so set it to "1" to enable this functionality::
  7571. UBOOT_FITIMAGE_ENABLE = "1"
  7572. See the :ref:`ref-classes-uboot-sign` class for details.
  7573. :term:`UBOOT_LOADADDRESS`
  7574. Specifies the load address for the U-Boot image. During U-Boot image
  7575. creation, the :term:`UBOOT_LOADADDRESS` variable is passed as a
  7576. command-line parameter to the ``uboot-mkimage`` utility.
  7577. To pass a 64 bit address, you will also need to set:
  7578. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7579. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7580. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7581. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7582. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7583. classes.
  7584. :term:`UBOOT_LOCALVERSION`
  7585. Appends a string to the name of the local version of the U-Boot
  7586. image. For example, assuming the version of the U-Boot image built
  7587. was "2013.10", the full version string reported by U-Boot would be
  7588. "2013.10-yocto" given the following statement::
  7589. UBOOT_LOCALVERSION = "-yocto"
  7590. :term:`UBOOT_MACHINE`
  7591. Specifies the value passed on the ``make`` command line when building
  7592. a U-Boot image. The value indicates the target platform
  7593. configuration. You typically set this variable from the machine
  7594. configuration file (i.e. ``conf/machine/machine_name.conf``).
  7595. Please see the "Selection of Processor Architecture and Board Type"
  7596. section in the U-Boot README for valid values for this variable.
  7597. :term:`UBOOT_MAKE_TARGET`
  7598. Specifies the target called in the ``Makefile``. The default target
  7599. is "all".
  7600. :term:`UBOOT_MKIMAGE`
  7601. Specifies the name of the mkimage command as used by the
  7602. :ref:`ref-classes-kernel-fitimage` class to assemble
  7603. the FIT image. This can be used to substitute an alternative command, wrapper
  7604. script or function if desired. The default is "uboot-mkimage".
  7605. :term:`UBOOT_MKIMAGE_DTCOPTS`
  7606. Options for the device tree compiler passed to ``mkimage -D`` feature
  7607. while creating a FIT image with the :ref:`ref-classes-kernel-fitimage`
  7608. class. If :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then the
  7609. :ref:`ref-classes-kernel-fitimage` class will not pass the ``-D`` option
  7610. to ``mkimage``.
  7611. This variable is also used by the :ref:`ref-classes-uboot-sign` class.
  7612. :term:`UBOOT_MKIMAGE_KERNEL_TYPE`
  7613. Specifies the type argument for the kernel as passed to ``uboot-mkimage``.
  7614. The default value is "kernel".
  7615. :term:`UBOOT_MKIMAGE_SIGN`
  7616. Specifies the name of the mkimage command as used by the
  7617. :ref:`ref-classes-kernel-fitimage` class to sign
  7618. the FIT image after it has been assembled (if enabled). This can be used
  7619. to substitute an alternative command, wrapper script or function if
  7620. desired. The default is "${:term:`UBOOT_MKIMAGE`}".
  7621. :term:`UBOOT_MKIMAGE_SIGN_ARGS`
  7622. Optionally specifies additional arguments for the
  7623. :ref:`ref-classes-kernel-fitimage` class to pass to the
  7624. mkimage command when signing the FIT image.
  7625. :term:`UBOOT_RD_ENTRYPOINT`
  7626. Specifies the entrypoint for the RAM disk image. During FIT image
  7627. creation, the :term:`UBOOT_RD_ENTRYPOINT` variable is used in
  7628. :ref:`ref-classes-kernel-fitimage` class to specify the entrypoint to be
  7629. used in creating the Image Tree Source for the FIT image.
  7630. :term:`UBOOT_RD_LOADADDRESS`
  7631. Specifies the load address for the RAM disk image. During FIT image
  7632. creation, the :term:`UBOOT_RD_LOADADDRESS` variable is used in
  7633. :ref:`ref-classes-kernel-fitimage` class to specify the load address to
  7634. be used in creating the Image Tree Source for the FIT image.
  7635. :term:`UBOOT_SIGN_ENABLE`
  7636. Enable signing of FIT image. The default value is "0".
  7637. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7638. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7639. classes.
  7640. :term:`UBOOT_SIGN_KEYDIR`
  7641. Location of the directory containing the RSA key and certificate used for
  7642. signing FIT image, used by the :ref:`ref-classes-kernel-fitimage` and
  7643. :ref:`ref-classes-uboot-sign` classes.
  7644. :term:`UBOOT_SIGN_KEYNAME`
  7645. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  7646. for signing U-Boot FIT image stored in the :term:`UBOOT_SIGN_KEYDIR`
  7647. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  7648. certificate stored in the :term:`UBOOT_SIGN_KEYDIR` directory, you will
  7649. have to set :term:`UBOOT_SIGN_KEYNAME` to ``dev``.
  7650. :term:`UBOOT_SUFFIX`
  7651. Points to the generated U-Boot extension. For example, ``u-boot.sb``
  7652. has a ``.sb`` extension.
  7653. The default U-Boot extension is ``.bin``
  7654. :term:`UBOOT_TARGET`
  7655. Specifies the target used for building U-Boot. The target is passed
  7656. directly as part of the "make" command (e.g. SPL and AIS). If you do
  7657. not specifically set this variable, the OpenEmbedded build process
  7658. passes and uses "all" for the target during the U-Boot building
  7659. process.
  7660. :term:`UKIFY_CMD`
  7661. When inheriting the :ref:`ref-classes-uki` class,
  7662. `ukify <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__ command to build
  7663. `Unified Kernel Image (UKI) <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7664. Defaults to ``ukify build``.
  7665. :term:`UKI_CMDLINE`
  7666. When inheriting the :ref:`ref-classes-uki` class, the kernel command line
  7667. to use when booting the `Unified Kernel Image (UKI)
  7668. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7669. Defaults to ``rootwait root=LABEL=root console=${KERNEL_CONSOLE}``.
  7670. :term:`UKI_CONFIG_FILE`
  7671. When inheriting the :ref:`ref-classes-uki` class, an optional config
  7672. file for the `ukify
  7673. <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__
  7674. command.
  7675. :term:`UKI_FILENAME`
  7676. When inheriting the :ref:`ref-classes-uki` class, the output file name
  7677. for the generated `Unified Kernel Image (UKI)
  7678. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7679. Defaults to ``uki.efi``.
  7680. :term:`UKI_KERNEL_FILENAME`
  7681. When inheriting the :ref:`ref-classes-uki` class, the kernel image file
  7682. name to use as input. Defaults to :term:`KERNEL_IMAGETYPE`.
  7683. :term:`UKI_SB_CERT`
  7684. When inheriting the :ref:`ref-classes-uki` class, optional UEFI
  7685. secureboot certificate matching the private key in :term:`UKI_SB_KEY`.
  7686. :term:`UKI_SB_KEY`
  7687. When inheriting the :ref:`ref-classes-uki` class, optional UEFI
  7688. secureboot private key to sign the `Unified Kernel Image (UKI)
  7689. <https://uapi-group.org/specifications/specs/unified_kernel_image/>`__.
  7690. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`
  7691. Specifies a list of options that, if reported by the configure script
  7692. as being invalid, should not generate a warning during the
  7693. :ref:`ref-tasks-configure` task. Normally, invalid
  7694. configure options are simply not passed to the configure script (e.g.
  7695. should be removed from :term:`EXTRA_OECONF` or
  7696. :term:`PACKAGECONFIG_CONFARGS`).
  7697. However, there are common options that are passed to all
  7698. configure scripts at a class level, but might not be valid for some
  7699. configure scripts. Therefore warnings about these options are useless.
  7700. For these cases, the options are added to :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`.
  7701. The configure arguments check that uses
  7702. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` is part of the
  7703. :ref:`ref-classes-insane` class and is only enabled if the
  7704. recipe inherits the :ref:`ref-classes-autotools` class.
  7705. :term:`UNPACKDIR`
  7706. This variable, used by the :ref:`ref-classes-base` class,
  7707. specifies where fetches sources should be unpacked by the
  7708. :ref:`ref-tasks-unpack` task.
  7709. :term:`UPDATERCPN`
  7710. For recipes inheriting the
  7711. :ref:`ref-classes-update-rc.d` class, :term:`UPDATERCPN`
  7712. specifies the package that contains the initscript that is enabled.
  7713. The default value is "${PN}". Given that almost all recipes that
  7714. install initscripts package them in the main package for the recipe,
  7715. you rarely need to set this variable in individual recipes.
  7716. :term:`UPSTREAM_CHECK_COMMITS`
  7717. You can perform a per-recipe check for what the latest upstream
  7718. source code version is by calling ``devtool latest-version recipe``. If
  7719. the recipe source code is provided from Git repositories, but
  7720. releases are not identified by Git tags, set :term:`UPSTREAM_CHECK_COMMITS`
  7721. to ``1`` in the recipe, and the OpenEmbedded build system
  7722. will compare the latest commit with the one currently specified
  7723. by the recipe (:term:`SRCREV`)::
  7724. UPSTREAM_CHECK_COMMITS = "1"
  7725. :term:`UPSTREAM_CHECK_GITTAGREGEX`
  7726. You can perform a per-recipe check for what the latest upstream
  7727. source code version is by calling ``devtool latest-version recipe``. If
  7728. the recipe source code is provided from Git repositories, the
  7729. OpenEmbedded build system determines the latest upstream version by
  7730. picking the latest tag from the list of all repository tags.
  7731. You can use the :term:`UPSTREAM_CHECK_GITTAGREGEX` variable to provide a
  7732. regular expression to filter only the relevant tags should the
  7733. default filter not work correctly::
  7734. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  7735. :term:`UPSTREAM_CHECK_REGEX`
  7736. Use the :term:`UPSTREAM_CHECK_REGEX` variable to specify a different
  7737. regular expression instead of the default one when the package
  7738. checking system is parsing the page found using
  7739. :term:`UPSTREAM_CHECK_URI`::
  7740. UPSTREAM_CHECK_REGEX = "package_regex"
  7741. :term:`UPSTREAM_CHECK_URI`
  7742. You can perform a per-recipe check for what the latest upstream
  7743. source code version is by calling ``devtool latest-version recipe``. If
  7744. the source code is provided from tarballs, the latest version is
  7745. determined by fetching the directory listing where the tarball is and
  7746. attempting to find a later tarball. When this approach does not work,
  7747. you can use :term:`UPSTREAM_CHECK_URI` to provide a different URI that
  7748. contains the link to the latest tarball::
  7749. UPSTREAM_CHECK_URI = "recipe_url"
  7750. :term:`UPSTREAM_VERSION_UNKNOWN`
  7751. You can perform a per-recipe check for what the latest upstream
  7752. source code version is by calling ``devtool latest-version recipe``.
  7753. If no combination of the :term:`UPSTREAM_CHECK_URI`, :term:`UPSTREAM_CHECK_REGEX`,
  7754. :term:`UPSTREAM_CHECK_GITTAGREGEX` and :term:`UPSTREAM_CHECK_COMMITS` variables in
  7755. the recipe allows to determine what the latest upstream version is,
  7756. you can set :term:`UPSTREAM_VERSION_UNKNOWN` to ``1`` in the recipe
  7757. to acknowledge that the check cannot be performed::
  7758. UPSTREAM_VERSION_UNKNOWN = "1"
  7759. :term:`USE_DEVFS`
  7760. Determines if ``devtmpfs`` is used for ``/dev`` population. The
  7761. default value used for :term:`USE_DEVFS` is "1" when no value is
  7762. specifically set. Typically, you would set :term:`USE_DEVFS` to "0" for a
  7763. statically populated ``/dev`` directory.
  7764. See the ":ref:`dev-manual/device-manager:selecting a device manager`" section in
  7765. the Yocto Project Development Tasks Manual for information on how to
  7766. use this variable.
  7767. :term:`USE_VT`
  7768. When using
  7769. :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  7770. determines whether or not to run a :wikipedia:`getty <Getty_(Unix)>`
  7771. on any virtual terminals in order to enable logging in through those
  7772. terminals.
  7773. The default value used for :term:`USE_VT` is "1" when no default value is
  7774. specifically set. Typically, you would set :term:`USE_VT` to "0" in the
  7775. machine configuration file for machines that do not have a graphical
  7776. display attached and therefore do not need virtual terminal
  7777. functionality.
  7778. :term:`USER_CLASSES`
  7779. A list of classes to globally inherit. These classes are used by the
  7780. OpenEmbedded build system to enable extra features.
  7781. Classes inherited using :term:`USER_CLASSES` must be located in the
  7782. ``classes-global/`` or ``classes/`` subdirectories.
  7783. The default list is set in your ``local.conf`` file::
  7784. USER_CLASSES ?= "buildstats"
  7785. For more information, see
  7786. ``meta-poky/conf/templates/default/local.conf.sample`` in the
  7787. :term:`Source Directory`.
  7788. :term:`USERADD_DEPENDS`
  7789. Specifies a list of recipes that create users / groups (via
  7790. :term:`USERADD_PARAM` / :term:`GROUPADD_PARAM`) which a recipe
  7791. depends upon. This ensures that those users / groups are available
  7792. when building a recipe.
  7793. :term:`USERADD_ERROR_DYNAMIC`
  7794. If set to ``error``, forces the OpenEmbedded build system to produce
  7795. an error if the user identification (``uid``) and group
  7796. identification (``gid``) values are not defined in any of the files
  7797. listed in :term:`USERADD_UID_TABLES` and
  7798. :term:`USERADD_GID_TABLES`. If set to
  7799. ``warn``, a warning will be issued instead.
  7800. The default behavior for the build system is to dynamically apply
  7801. ``uid`` and ``gid`` values. Consequently, the
  7802. :term:`USERADD_ERROR_DYNAMIC` variable is by default not set. If you plan
  7803. on using statically assigned ``gid`` and ``uid`` values, you should
  7804. set the :term:`USERADD_ERROR_DYNAMIC` variable in your ``local.conf``
  7805. file as follows::
  7806. USERADD_ERROR_DYNAMIC = "error"
  7807. Overriding the
  7808. default behavior implies you are going to also take steps to set
  7809. static ``uid`` and ``gid`` values through use of the
  7810. :term:`USERADDEXTENSION`,
  7811. :term:`USERADD_UID_TABLES`, and
  7812. :term:`USERADD_GID_TABLES` variables.
  7813. .. note::
  7814. There is a difference in behavior between setting
  7815. :term:`USERADD_ERROR_DYNAMIC` to ``error`` and setting it to ``warn``.
  7816. When it is set to ``warn``, the build system will report a warning for
  7817. every undefined ``uid`` and ``gid`` in any recipe. But when it is set
  7818. to ``error``, it will only report errors for recipes that are actually
  7819. built.
  7820. This saves you from having to add static IDs for recipes that you
  7821. know will never be built.
  7822. :term:`USERADD_GID_TABLES`
  7823. Specifies a password file to use for obtaining static group
  7824. identification (``gid``) values when the OpenEmbedded build system
  7825. adds a group to the system during package installation.
  7826. When applying static group identification (``gid``) values, the
  7827. OpenEmbedded build system looks in :term:`BBPATH` for a
  7828. ``files/group`` file and then applies those ``uid`` values. Set the
  7829. variable as follows in your ``local.conf`` file::
  7830. USERADD_GID_TABLES = "files/group"
  7831. .. note::
  7832. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7833. causes the build system to use static ``gid`` values.
  7834. :term:`USERADD_PACKAGES`
  7835. When inheriting the :ref:`ref-classes-useradd` class,
  7836. this variable specifies the individual packages within the recipe
  7837. that require users and/or groups to be added.
  7838. You must set this variable if the recipe inherits the class. For
  7839. example, the following enables adding a user for the main package in
  7840. a recipe::
  7841. USERADD_PACKAGES = "${PN}"
  7842. .. note::
  7843. It follows that if you are going to use the :term:`USERADD_PACKAGES`
  7844. variable, you need to set one or more of the :term:`USERADD_PARAM`,
  7845. :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables.
  7846. :term:`USERADD_PARAM`
  7847. When inheriting the :ref:`ref-classes-useradd` class,
  7848. this variable specifies for a package what parameters should pass to
  7849. the ``useradd`` command if you add a user to the system when the
  7850. package is installed.
  7851. Here is an example from the ``dbus`` recipe::
  7852. USERADD_PARAM:${PN} = "--system --home ${localstatedir}/lib/dbus \
  7853. --no-create-home --shell /bin/false \
  7854. --user-group messagebus"
  7855. For information on the
  7856. standard Linux shell command ``useradd``, see
  7857. https://linux.die.net/man/8/useradd.
  7858. :term:`USERADD_UID_TABLES`
  7859. Specifies a password file to use for obtaining static user
  7860. identification (``uid``) values when the OpenEmbedded build system
  7861. adds a user to the system during package installation.
  7862. When applying static user identification (``uid``) values, the
  7863. OpenEmbedded build system looks in :term:`BBPATH` for a
  7864. ``files/passwd`` file and then applies those ``uid`` values. Set the
  7865. variable as follows in your ``local.conf`` file::
  7866. USERADD_UID_TABLES = "files/passwd"
  7867. .. note::
  7868. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7869. causes the build system to use static ``uid`` values.
  7870. :term:`USERADDEXTENSION`
  7871. When set to "useradd-staticids", causes the OpenEmbedded build system
  7872. to base all user and group additions on a static ``passwd`` and
  7873. ``group`` files found in :term:`BBPATH`.
  7874. To use static user identification (``uid``) and group identification
  7875. (``gid``) values, set the variable as follows in your ``local.conf``
  7876. file: USERADDEXTENSION = "useradd-staticids"
  7877. .. note::
  7878. Setting this variable to use static ``uid`` and ``gid``
  7879. values causes the OpenEmbedded build system to employ the
  7880. :ref:`ref-classes-useradd` class.
  7881. If you use static ``uid`` and ``gid`` information, you must also
  7882. specify the ``files/passwd`` and ``files/group`` files by setting the
  7883. :term:`USERADD_UID_TABLES` and
  7884. :term:`USERADD_GID_TABLES` variables.
  7885. Additionally, you should also set the
  7886. :term:`USERADD_ERROR_DYNAMIC` variable.
  7887. :term:`VIRTUAL-RUNTIME`
  7888. :term:`VIRTUAL-RUNTIME` is a commonly used prefix for defining virtual
  7889. packages for runtime usage, typically for use in :term:`RDEPENDS`
  7890. or in image definitions.
  7891. An example is ``VIRTUAL-RUNTIME_base-utils`` that makes it possible
  7892. to either use BusyBox based utilities::
  7893. VIRTUAL-RUNTIME_base-utils = "busybox"
  7894. or their full featured implementations from GNU Coreutils
  7895. and other projects::
  7896. VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
  7897. Here are two examples using this virtual runtime package. The
  7898. first one is in :yocto_git:`initramfs-framework_1.0.bb
  7899. </poky/tree/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb?h=scarthgap>`::
  7900. RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}"
  7901. The second example is in the :yocto_git:`core-image-initramfs-boot
  7902. </poky/tree/meta/recipes-core/images/core-image-initramfs-boot.bb?h=scarthgap>`
  7903. image definition::
  7904. PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd"
  7905. :term:`WARN_QA`
  7906. Specifies the quality assurance checks whose failures are reported as
  7907. warnings by the OpenEmbedded build system. You set this variable in
  7908. your distribution configuration file. For a list of the checks you
  7909. can control with this variable, see the
  7910. ":ref:`ref-classes-insane`" section.
  7911. :term:`WATCHDOG_TIMEOUT`
  7912. Specifies the timeout in seconds used by the ``watchdog`` recipe and
  7913. also by ``systemd`` during reboot. The default is 60 seconds.
  7914. :term:`WIC_SECTOR_SIZE`
  7915. The variable :term:`WIC_SECTOR_SIZE` controls the sector size of Wic
  7916. images. In the background, this controls the value of the
  7917. ``PARTED_SECTOR_SIZE`` environment variable passed to the ``parted``
  7918. command-line utility, used to generated the images. The default value is
  7919. ``512``.
  7920. For more information on how to create Wic images, see the
  7921. ":ref:`dev-manual/wic:creating partitioned images using wic`" section in
  7922. the Yocto Project Development Tasks Manual.
  7923. :term:`WIRELESS_DAEMON`
  7924. For ``connman`` and ``packagegroup-base``, specifies the wireless
  7925. daemon to use. The default is "wpa-supplicant" (note that the value
  7926. uses a dash and not an underscore).
  7927. :term:`WKS_FILE`
  7928. Specifies the location of the Wic kickstart file that is used by the
  7929. OpenEmbedded build system to create a partitioned image
  7930. (``image.wic``). For information on how to create a partitioned
  7931. image, see the
  7932. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  7933. section in the Yocto Project Development Tasks Manual. For details on
  7934. the kickstart file format, see the ":doc:`/ref-manual/kickstart`" Chapter.
  7935. :term:`WKS_FILE_DEPENDS`
  7936. When placed in the recipe that builds your image, this variable lists
  7937. build-time dependencies. The :term:`WKS_FILE_DEPENDS` variable is only
  7938. applicable when Wic images are active (i.e. when
  7939. :term:`IMAGE_FSTYPES` contains entries related
  7940. to Wic). If your recipe does not create Wic images, the variable has
  7941. no effect.
  7942. The :term:`WKS_FILE_DEPENDS` variable is similar to the
  7943. :term:`DEPENDS` variable. When you use the variable in
  7944. your recipe that builds the Wic image, dependencies you list in the
  7945. :term:`WKS_FILE_DEPENDS` variable are added to the :term:`DEPENDS` variable.
  7946. With the :term:`WKS_FILE_DEPENDS` variable, you have the possibility to
  7947. specify a list of additional dependencies (e.g. native tools,
  7948. bootloaders, and so forth), that are required to build Wic images.
  7949. Here is an example::
  7950. WKS_FILE_DEPENDS = "some-native-tool"
  7951. In the
  7952. previous example, some-native-tool would be replaced with an actual
  7953. native tool on which the build would depend.
  7954. :term:`WKS_FILES`
  7955. Specifies a list of candidate Wic kickstart files to be used by the
  7956. OpenEmbedded build system to create a partitioned image. Only the
  7957. first one that is found, from left to right, will be used.
  7958. This is only useful when there are multiple ``.wks`` files that can be
  7959. used to produce an image. A typical case is when multiple layers are
  7960. used for different hardware platforms, each supplying a different
  7961. ``.wks`` file. In this case, you specify all possible ones through
  7962. :term:`WKS_FILES`.
  7963. If only one ``.wks`` file is used, set :term:`WKS_FILE` instead.
  7964. :term:`WORKDIR`
  7965. The pathname of the work directory in which the OpenEmbedded build
  7966. system builds a recipe. This directory is located within the
  7967. :term:`TMPDIR` directory structure and is specific to
  7968. the recipe being built and the system for which it is being built.
  7969. The :term:`WORKDIR` directory is defined as follows::
  7970. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  7971. The actual directory depends on several things:
  7972. - :term:`TMPDIR`: The top-level build output directory
  7973. - :term:`MULTIMACH_TARGET_SYS`: The target system identifier
  7974. - :term:`PN`: The recipe name
  7975. - :term:`EXTENDPE`: The epoch --- if :term:`PE` is not specified, which
  7976. is usually the case for most recipes, then :term:`EXTENDPE` is blank.
  7977. - :term:`PV`: The recipe version
  7978. - :term:`PR`: The recipe revision
  7979. As an example, assume a Source Directory top-level folder name
  7980. ``poky``, a default :term:`Build Directory` at ``poky/build``, and a
  7981. ``qemux86-poky-linux`` machine target system. Furthermore, suppose
  7982. your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
  7983. directory the build system uses to build the package would be as
  7984. follows::
  7985. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  7986. :term:`XSERVER`
  7987. Specifies the packages that should be installed to provide an X
  7988. server and drivers for the current machine, assuming your image
  7989. directly includes ``packagegroup-core-x11-xserver`` or, perhaps
  7990. indirectly, includes "x11-base" in
  7991. :term:`IMAGE_FEATURES`.
  7992. The default value of :term:`XSERVER`, if not specified in the machine
  7993. configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  7994. :term:`XZ_THREADS`
  7995. Specifies the number of parallel threads that should be used when
  7996. using xz compression.
  7997. By default this scales with core count, but is never set less than 2
  7998. to ensure that multi-threaded mode is always used so that the output
  7999. file contents are deterministic. Builds will work with a value of 1
  8000. but the output will differ compared to the output from the compression
  8001. generated when more than one thread is used.
  8002. On systems where many tasks run in parallel, setting a limit to this
  8003. can be helpful in controlling system resource usage.
  8004. :term:`XZ_MEMLIMIT`
  8005. Specifies the maximum memory the xz compression should use as a percentage
  8006. of system memory. If unconstrained the xz compressor can use large amounts of
  8007. memory and become problematic with parallelism elsewhere in the build.
  8008. "50%" has been found to be a good value.
  8009. :term:`ZSTD_COMPRESSION_LEVEL`
  8010. Specifies the compression level to be used with ZStandard compression
  8011. (from ``1`` to ``19``, set to ``3`` by default, following upstream choice).
  8012. Higher levels produce smaller files, but take longer to complete.
  8013. :term:`ZSTD_THREADS`
  8014. Specifies the number of parallel threads that should be used when
  8015. using ZStandard compression.
  8016. By default this scales with core count, but is never set less than 2
  8017. to ensure that multi-threaded mode is always used so that the output
  8018. file contents are deterministic. Builds will work with a value of 1
  8019. but the output will differ compared to the output from the compression
  8020. generated when more than one thread is used.
  8021. On systems where many tasks run in parallel, setting a limit to this
  8022. can be helpful in controlling system resource usage.