variables.rst 441 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305
  1. .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
  2. ******************
  3. Variables Glossary
  4. ******************
  5. This chapter lists common variables used in the OpenEmbedded build
  6. system and gives an overview of their function and contents.
  7. :term:`A <ABIEXTENSION>` :term:`B` :term:`C <CACHE>`
  8. :term:`D` :term:`E <EFI_PROVIDER>` :term:`F <FEATURE_PACKAGES>`
  9. :term:`G <GCCPIE>` :term:`H <HOMEPAGE>` :term:`I <ICECC_DISABLED>`
  10. :term:`K <KARCH>` :term:`L <LABELS>` :term:`M <MACHINE>`
  11. :term:`N <NATIVELSBSTRING>` :term:`O <OBJCOPY>` :term:`P`
  12. :term:`R <RANLIB>` :term:`S` :term:`T`
  13. :term:`U <UBOOT_CONFIG>` :term:`V <VIRTUAL-RUNTIME>`
  14. :term:`W <WARN_QA>` :term:`X <XSERVER>`
  15. .. glossary::
  16. :sorted:
  17. :term:`ABIEXTENSION`
  18. Extension to the Application Binary Interface (ABI) field of the GNU
  19. canonical architecture name (e.g. "eabi").
  20. ABI extensions are set in the machine include files. For example, the
  21. ``meta/conf/machine/include/arm/arch-arm.inc`` file sets the
  22. following extension::
  23. ABIEXTENSION = "eabi"
  24. :term:`ALLOW_EMPTY`
  25. Specifies whether to produce an output package even if it is empty.
  26. By default, BitBake does not produce empty packages. This default
  27. behavior can cause issues when there is an
  28. :term:`RDEPENDS` or some other hard runtime
  29. requirement on the existence of the package.
  30. Like all package-controlling variables, you must always use them in
  31. conjunction with a package name override, as in::
  32. ALLOW_EMPTY:${PN} = "1"
  33. ALLOW_EMPTY:${PN}-dev = "1"
  34. ALLOW_EMPTY:${PN}-staticdev = "1"
  35. :term:`ALTERNATIVE`
  36. Lists commands in a package that need an alternative binary naming
  37. scheme. Sometimes the same command is provided in multiple packages.
  38. When this occurs, the OpenEmbedded build system needs to use the
  39. alternatives system to create a different binary naming scheme so the
  40. commands can co-exist.
  41. To use the variable, list out the package's commands that are also
  42. provided by another package. For example, if the ``busybox`` package
  43. has four such commands, you identify them as follows::
  44. ALTERNATIVE:busybox = "sh sed test bracket"
  45. For more information on the alternatives system, see the
  46. ":ref:`ref-classes-update-alternatives`"
  47. section.
  48. :term:`ALTERNATIVE_LINK_NAME`
  49. Used by the alternatives system to map duplicated commands to actual
  50. locations. For example, if the ``bracket`` command provided by the
  51. ``busybox`` package is duplicated through another package, you must
  52. use the :term:`ALTERNATIVE_LINK_NAME` variable to specify the actual
  53. location::
  54. ALTERNATIVE_LINK_NAME[bracket] = "/usr/bin/["
  55. In this example, the binary for the ``bracket`` command (i.e. ``[``)
  56. from the ``busybox`` package resides in ``/usr/bin/``.
  57. .. note::
  58. If :term:`ALTERNATIVE_LINK_NAME` is not defined, it defaults to ``${bindir}/name``.
  59. For more information on the alternatives system, see the
  60. ":ref:`ref-classes-update-alternatives`"
  61. section.
  62. :term:`ALTERNATIVE_PRIORITY`
  63. Used by the alternatives system to create default priorities for
  64. duplicated commands. You can use the variable to create a single
  65. default regardless of the command name or package, a default for
  66. specific duplicated commands regardless of the package, or a default
  67. for specific commands tied to particular packages. Here are the
  68. available syntax forms::
  69. ALTERNATIVE_PRIORITY = "priority"
  70. ALTERNATIVE_PRIORITY[name] = "priority"
  71. ALTERNATIVE_PRIORITY_pkg[name] = "priority"
  72. For more information on the alternatives system, see the
  73. ":ref:`ref-classes-update-alternatives`"
  74. section.
  75. :term:`ALTERNATIVE_TARGET`
  76. Used by the alternatives system to create default link locations for
  77. duplicated commands. You can use the variable to create a single
  78. default location for all duplicated commands regardless of the
  79. command name or package, a default for specific duplicated commands
  80. regardless of the package, or a default for specific commands tied to
  81. particular packages. Here are the available syntax forms::
  82. ALTERNATIVE_TARGET = "target"
  83. ALTERNATIVE_TARGET[name] = "target"
  84. ALTERNATIVE_TARGET_pkg[name] = "target"
  85. .. note::
  86. If :term:`ALTERNATIVE_TARGET` is not defined, it inherits the value
  87. from the :term:`ALTERNATIVE_LINK_NAME` variable.
  88. If :term:`ALTERNATIVE_LINK_NAME` and :term:`ALTERNATIVE_TARGET` are the
  89. same, the target for :term:`ALTERNATIVE_TARGET` has "``.{BPN}``"
  90. appended to it.
  91. Finally, if the file referenced has not been renamed, the
  92. alternatives system will rename it to avoid the need to rename
  93. alternative files in the :ref:`ref-tasks-install`
  94. task while retaining support for the command if necessary.
  95. For more information on the alternatives system, see the
  96. ":ref:`ref-classes-update-alternatives`" section.
  97. :term:`ANY_OF_DISTRO_FEATURES`
  98. When inheriting the :ref:`ref-classes-features_check`
  99. class, this variable identifies a list of distribution features where
  100. at least one must be enabled in the current configuration in order
  101. for the OpenEmbedded build system to build the recipe. In other words,
  102. if none of the features listed in :term:`ANY_OF_DISTRO_FEATURES`
  103. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  104. the recipe will be skipped, and if the build system attempts to build
  105. the recipe then an error will be triggered.
  106. :term:`APPEND`
  107. An override list of append strings for each target specified with
  108. :term:`LABELS`.
  109. See the :ref:`ref-classes-grub-efi` class for more
  110. information on how this variable is used.
  111. :term:`AR`
  112. The minimal command and arguments used to run ``ar``.
  113. :term:`ARCHIVER_MODE`
  114. When used with the :ref:`ref-classes-archiver` class,
  115. determines the type of information used to create a released archive.
  116. You can use this variable to create archives of patched source,
  117. original source, configured source, and so forth by employing the
  118. following variable flags (varflags)::
  119. ARCHIVER_MODE[src] = "original" # Uses original (unpacked) source files.
  120. ARCHIVER_MODE[src] = "patched" # Uses patched source files. This is the default.
  121. ARCHIVER_MODE[src] = "configured" # Uses configured source files.
  122. ARCHIVER_MODE[diff] = "1" # Uses patches between do_unpack and do_patch.
  123. ARCHIVER_MODE[diff-exclude] ?= "file file ..." # Lists files and directories to exclude from diff.
  124. ARCHIVER_MODE[dumpdata] = "1" # Uses environment data.
  125. ARCHIVER_MODE[recipe] = "1" # Uses recipe and include files.
  126. ARCHIVER_MODE[srpm] = "1" # Uses RPM package files.
  127. For information on how the variable works, see the
  128. ``meta/classes/archiver.bbclass`` file in the :term:`Source Directory`.
  129. :term:`AS`
  130. Minimal command and arguments needed to run the assembler.
  131. :term:`ASSUME_PROVIDED`
  132. Lists recipe names (:term:`PN` values) BitBake does not
  133. attempt to build. Instead, BitBake assumes these recipes have already
  134. been built.
  135. In OpenEmbedded-Core, :term:`ASSUME_PROVIDED` mostly specifies native
  136. tools that should not be built. An example is ``git-native``, which
  137. when specified, allows for the Git binary from the host to be used
  138. rather than building ``git-native``.
  139. :term:`ASSUME_SHLIBS`
  140. Provides additional ``shlibs`` provider mapping information, which
  141. adds to or overwrites the information provided automatically by the
  142. system. Separate multiple entries using spaces.
  143. As an example, use the following form to add an ``shlib`` provider of
  144. shlibname in packagename with the optional version::
  145. shlibname:packagename[_version]
  146. Here is an example that adds a shared library named ``libEGL.so.1``
  147. as being provided by the ``libegl-implementation`` package::
  148. ASSUME_SHLIBS = "libEGL.so.1:libegl-implementation"
  149. :term:`AUTO_LIBNAME_PKGS`
  150. When the :ref:`ref-classes-debian` class is inherited,
  151. which is the default behavior, :term:`AUTO_LIBNAME_PKGS` specifies which
  152. packages should be checked for libraries and renamed according to
  153. Debian library package naming.
  154. The default value is "${PACKAGES}", which causes the
  155. :ref:`ref-classes-debian` class to act on all packages that are
  156. explicitly generated by the recipe.
  157. :term:`AUTOREV`
  158. When :term:`SRCREV` is set to the value of this variable, it specifies to
  159. use the latest source revision in the repository. Here is an example::
  160. SRCREV = "${AUTOREV}"
  161. If you use the previous statement to retrieve the latest version of
  162. software, you need to make sure :term:`PV` contains the ``+`` sign so
  163. :term:`bitbake` includes source control information to :term:`PKGV` when
  164. packaging the recipe. For example::
  165. PV = "6.10.y+git"
  166. For more information see the
  167. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  168. section in the Yocto Project Development Tasks Manual.
  169. :term:`AUTO_SYSLINUXMENU`
  170. Enables creating an automatic menu for the syslinux bootloader. You
  171. must set this variable in your recipe. The
  172. :ref:`ref-classes-syslinux` class checks this variable.
  173. :term:`AVAILTUNES`
  174. The list of defined CPU and Application Binary Interface (ABI)
  175. tunings (i.e. "tunes") available for use by the OpenEmbedded build
  176. system.
  177. The list simply presents the tunes that are available. Not all tunes
  178. may be compatible with a particular machine configuration, or with
  179. each other in a
  180. :ref:`Multilib <dev-manual/libraries:combining multiple versions of library files into one image>`
  181. configuration.
  182. To add a tune to the list, be sure to append it with spaces using the
  183. "+=" BitBake operator. Do not simply replace the list by using the
  184. "=" operator. See the
  185. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:basic syntax`" section in the BitBake
  186. User Manual for more information.
  187. :term:`AZ_SAS`
  188. Azure Storage Shared Access Signature, when using the
  189. :ref:`Azure Storage fetcher (az://) <bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
  190. This variable can be defined to be used by the fetcher to authenticate
  191. and gain access to non-public artifacts::
  192. AZ_SAS = ""se=2021-01-01&sp=r&sv=2018-11-09&sr=c&skoid=<skoid>&sig=<signature>""
  193. For more information see Microsoft's Azure Storage documentation at
  194. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
  195. :term:`B`
  196. The directory within the :term:`Build Directory` in which the
  197. OpenEmbedded build system places generated objects during a recipe's
  198. build process. By default, this directory is the same as the
  199. :term:`S` directory, which is defined as::
  200. S = "${WORKDIR}/${BP}"
  201. You can separate the (:term:`S`) directory and the directory pointed to
  202. by the :term:`B` variable. Most Autotools-based recipes support
  203. separating these directories. The build system defaults to using
  204. separate directories for ``gcc`` and some kernel recipes.
  205. :term:`BAD_RECOMMENDATIONS`
  206. Lists "recommended-only" packages to not install. Recommended-only
  207. packages are packages installed only through the
  208. :term:`RRECOMMENDS` variable. You can prevent any
  209. of these "recommended" packages from being installed by listing them
  210. with the :term:`BAD_RECOMMENDATIONS` variable::
  211. BAD_RECOMMENDATIONS = "package_name package_name package_name ..."
  212. You can set this variable globally in your ``local.conf`` file or you
  213. can attach it to a specific image recipe by using the recipe name
  214. override::
  215. BAD_RECOMMENDATIONS:pn-target_image = "package_name"
  216. It is important to realize that if you choose to not install packages
  217. using this variable and some other packages are dependent on them
  218. (i.e. listed in a recipe's :term:`RDEPENDS`
  219. variable), the OpenEmbedded build system ignores your request and
  220. will install the packages to avoid dependency errors.
  221. This variable is supported only when using the IPK and RPM
  222. packaging backends. DEB is not supported.
  223. See the :term:`NO_RECOMMENDATIONS` and the
  224. :term:`PACKAGE_EXCLUDE` variables for related
  225. information.
  226. :term:`BASE_LIB`
  227. The library directory name for the CPU or Application Binary
  228. Interface (ABI) tune. The :term:`BASE_LIB` applies only in the Multilib
  229. context. See the ":ref:`dev-manual/libraries:combining multiple versions of library files into one image`"
  230. section in the Yocto Project Development Tasks Manual for information
  231. on Multilib.
  232. The :term:`BASE_LIB` variable is defined in the machine include files in
  233. the :term:`Source Directory`. If Multilib is not
  234. being used, the value defaults to "lib".
  235. :term:`BASE_WORKDIR`
  236. Points to the base of the work directory for all recipes. The default
  237. value is "${TMPDIR}/work".
  238. :term:`BB_ALLOWED_NETWORKS`
  239. Specifies a space-delimited list of hosts that the fetcher is allowed
  240. to use to obtain the required source code. Here are
  241. considerations surrounding this variable:
  242. - This host list is only used if :term:`BB_NO_NETWORK` is either not set
  243. or set to "0".
  244. - There is limited support for wildcard matching against the beginning of
  245. host names. For example, the following setting matches
  246. ``git.gnu.org``, ``ftp.gnu.org``, and ``foo.git.gnu.org``::
  247. BB_ALLOWED_NETWORKS = "*.gnu.org"
  248. .. note::
  249. The use of the "``*``" character only works at the beginning of
  250. a host name and it must be isolated from the remainder of the
  251. host name. You cannot use the wildcard character in any other
  252. location of the name or combined with the front part of the
  253. name.
  254. For example, ``*.foo.bar`` is supported, while ``*aa.foo.bar``
  255. is not.
  256. - Mirrors not in the host list are skipped and logged in debug.
  257. - Attempts to access networks not in the host list cause a failure.
  258. Using :term:`BB_ALLOWED_NETWORKS` in conjunction with
  259. :term:`PREMIRRORS` is very useful. Adding the host
  260. you want to use to :term:`PREMIRRORS` results in the source code being
  261. fetched from an allowed location and avoids raising an error when a
  262. host that is not allowed is in a :term:`SRC_URI`
  263. statement. This is because the fetcher does not attempt to use the
  264. host listed in :term:`SRC_URI` after a successful fetch from the
  265. :term:`PREMIRRORS` occurs.
  266. :term:`BB_BASEHASH_IGNORE_VARS`
  267. See :term:`bitbake:BB_BASEHASH_IGNORE_VARS` in the BitBake manual.
  268. :term:`BB_CACHEDIR`
  269. See :term:`bitbake:BB_CACHEDIR` in the BitBake manual.
  270. :term:`BB_CHECK_SSL_CERTS`
  271. See :term:`bitbake:BB_CHECK_SSL_CERTS` in the BitBake manual.
  272. :term:`BB_CONSOLELOG`
  273. See :term:`bitbake:BB_CONSOLELOG` in the BitBake manual.
  274. :term:`BB_CURRENTTASK`
  275. See :term:`bitbake:BB_CURRENTTASK` in the BitBake manual.
  276. :term:`BB_DANGLINGAPPENDS_WARNONLY`
  277. Defines how BitBake handles situations where an append file
  278. (``.bbappend``) has no corresponding recipe file (``.bb``). This
  279. condition often occurs when layers get out of sync (e.g. ``oe-core``
  280. bumps a recipe version and the old recipe no longer exists and the
  281. other layer has not been updated to the new version of the recipe
  282. yet).
  283. The default fatal behavior is safest because it is the sane reaction
  284. given something is out of sync. It is important to realize when your
  285. changes are no longer being applied.
  286. You can change the default behavior by setting this variable to "1",
  287. "yes", or "true" in your ``local.conf`` file, which is located in the
  288. :term:`Build Directory`: Here is an example::
  289. BB_DANGLINGAPPENDS_WARNONLY = "1"
  290. :term:`BB_DEFAULT_TASK`
  291. See :term:`bitbake:BB_DEFAULT_TASK` in the BitBake manual.
  292. :term:`BB_DEFAULT_UMASK`
  293. See :term:`bitbake:BB_DEFAULT_UMASK` in the BitBake manual.
  294. :term:`BB_DISKMON_DIRS`
  295. Monitors disk space and available inodes during the build and allows
  296. you to control the build based on these parameters.
  297. Disk space monitoring is disabled by default. To enable monitoring,
  298. add the :term:`BB_DISKMON_DIRS` variable to your ``conf/local.conf`` file
  299. found in the :term:`Build Directory`. Use the
  300. following form:
  301. .. code-block:: none
  302. BB_DISKMON_DIRS = "action,dir,threshold [...]"
  303. where:
  304. action is:
  305. ABORT: Immediately stop the build when
  306. a threshold is broken.
  307. STOPTASKS: Stop the build after the currently
  308. executing tasks have finished when
  309. a threshold is broken.
  310. WARN: Issue a warning but continue the
  311. build when a threshold is broken.
  312. Subsequent warnings are issued as
  313. defined by the BB_DISKMON_WARNINTERVAL
  314. variable, which must be defined in
  315. the conf/local.conf file.
  316. dir is:
  317. Any directory you choose. You can specify one or
  318. more directories to monitor by separating the
  319. groupings with a space. If two directories are
  320. on the same device, only the first directory
  321. is monitored.
  322. threshold is:
  323. Either the minimum available disk space,
  324. the minimum number of free inodes, or
  325. both. You must specify at least one. To
  326. omit one or the other, simply omit the value.
  327. Specify the threshold using G, M, K for Gbytes,
  328. Mbytes, and Kbytes, respectively. If you do
  329. not specify G, M, or K, Kbytes is assumed by
  330. default. Do not use GB, MB, or KB.
  331. Here are some examples::
  332. BB_DISKMON_DIRS = "ABORT,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K"
  333. BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G"
  334. BB_DISKMON_DIRS = "ABORT,${TMPDIR},,100K"
  335. The first example works only if you also provide the
  336. :term:`BB_DISKMON_WARNINTERVAL`
  337. variable in the ``conf/local.conf``. This example causes the build
  338. system to immediately stop when either the disk space in
  339. ``${TMPDIR}`` drops below 1 Gbyte or the available free inodes drops
  340. below 100 Kbytes. Because two directories are provided with the
  341. variable, the build system also issue a warning when the disk space
  342. in the ``${SSTATE_DIR}`` directory drops below 1 Gbyte or the number
  343. of free inodes drops below 100 Kbytes. Subsequent warnings are issued
  344. during intervals as defined by the :term:`BB_DISKMON_WARNINTERVAL`
  345. variable.
  346. The second example stops the build after all currently executing
  347. tasks complete when the minimum disk space in the ``${TMPDIR}``
  348. directory drops below 1 Gbyte. No disk monitoring occurs for the free
  349. inodes in this case.
  350. The final example immediately stops the build when the number of
  351. free inodes in the ``${TMPDIR}`` directory drops below 100 Kbytes. No
  352. disk space monitoring for the directory itself occurs in this case.
  353. :term:`BB_DISKMON_WARNINTERVAL`
  354. Defines the disk space and free inode warning intervals. To set these
  355. intervals, define the variable in your ``conf/local.conf`` file in
  356. the :term:`Build Directory`.
  357. If you are going to use the :term:`BB_DISKMON_WARNINTERVAL` variable, you
  358. must also use the :term:`BB_DISKMON_DIRS`
  359. variable and define its action as "WARN". During the build,
  360. subsequent warnings are issued each time disk space or number of free
  361. inodes further reduces by the respective interval.
  362. If you do not provide a :term:`BB_DISKMON_WARNINTERVAL` variable and you
  363. do use :term:`BB_DISKMON_DIRS` with the "WARN" action, the disk
  364. monitoring interval defaults to the following::
  365. BB_DISKMON_WARNINTERVAL = "50M,5K"
  366. When specifying the variable in your configuration file, use the
  367. following form:
  368. .. code-block:: none
  369. BB_DISKMON_WARNINTERVAL = "disk_space_interval,disk_inode_interval"
  370. where:
  371. disk_space_interval is:
  372. An interval of memory expressed in either
  373. G, M, or K for Gbytes, Mbytes, or Kbytes,
  374. respectively. You cannot use GB, MB, or KB.
  375. disk_inode_interval is:
  376. An interval of free inodes expressed in either
  377. G, M, or K for Gbytes, Mbytes, or Kbytes,
  378. respectively. You cannot use GB, MB, or KB.
  379. Here is an example::
  380. BB_DISKMON_DIRS = "WARN,${SSTATE_DIR},1G,100K"
  381. BB_DISKMON_WARNINTERVAL = "50M,5K"
  382. These variables cause the
  383. OpenEmbedded build system to issue subsequent warnings each time the
  384. available disk space further reduces by 50 Mbytes or the number of
  385. free inodes further reduces by 5 Kbytes in the ``${SSTATE_DIR}``
  386. directory. Subsequent warnings based on the interval occur each time
  387. a respective interval is reached beyond the initial warning (i.e. 1
  388. Gbytes and 100 Kbytes).
  389. :term:`BB_ENV_PASSTHROUGH`
  390. See :term:`bitbake:BB_ENV_PASSTHROUGH` in the BitBake manual.
  391. :term:`BB_ENV_PASSTHROUGH_ADDITIONS`
  392. See :term:`bitbake:BB_ENV_PASSTHROUGH_ADDITIONS` in the BitBake manual.
  393. :term:`BB_FETCH_PREMIRRORONLY`
  394. See :term:`bitbake:BB_FETCH_PREMIRRORONLY` in the BitBake manual.
  395. :term:`BB_FILENAME`
  396. See :term:`bitbake:BB_FILENAME` in the BitBake manual.
  397. :term:`BB_GENERATE_MIRROR_TARBALLS`
  398. Causes tarballs of the source control repositories (e.g. Git
  399. repositories), including metadata, to be placed in the
  400. :term:`DL_DIR` directory.
  401. For performance reasons, creating and placing tarballs of these
  402. repositories is not the default action by the OpenEmbedded build
  403. system::
  404. BB_GENERATE_MIRROR_TARBALLS = "1"
  405. Set this variable in your
  406. ``local.conf`` file in the :term:`Build Directory`.
  407. Once you have the tarballs containing your source files, you can
  408. clean up your :term:`DL_DIR` directory by deleting any Git or other
  409. source control work directories.
  410. :term:`BB_GENERATE_SHALLOW_TARBALLS`
  411. See :term:`bitbake:BB_GENERATE_SHALLOW_TARBALLS` in the BitBake manual.
  412. :term:`BB_GIT_SHALLOW`
  413. See :term:`bitbake:BB_GIT_SHALLOW` in the BitBake manual.
  414. :term:`BB_GIT_SHALLOW_DEPTH`
  415. See :term:`bitbake:BB_GIT_SHALLOW_DEPTH` in the BitBake manual.
  416. :term:`BB_HASHCHECK_FUNCTION`
  417. See :term:`bitbake:BB_HASHCHECK_FUNCTION` in the BitBake manual.
  418. :term:`BB_HASHCONFIG_IGNORE_VARS`
  419. See :term:`bitbake:BB_HASHCONFIG_IGNORE_VARS` in the BitBake manual.
  420. :term:`BB_HASHSERVE`
  421. See :term:`bitbake:BB_HASHSERVE` in the BitBake manual.
  422. :term:`BB_HASHSERVE_UPSTREAM`
  423. See :term:`bitbake:BB_HASHSERVE_UPSTREAM` in the BitBake manual.
  424. :term:`BB_INVALIDCONF`
  425. See :term:`bitbake:BB_INVALIDCONF` in the BitBake manual.
  426. :term:`BB_LOADFACTOR_MAX`
  427. The system load threshold above which BitBake will stop runnig extra
  428. tasks.
  429. :term:`BB_LOGCONFIG`
  430. See :term:`bitbake:BB_LOGCONFIG` in the BitBake manual.
  431. :term:`BB_LOGFMT`
  432. See :term:`bitbake:BB_LOGFMT` in the BitBake manual.
  433. :term:`BB_MULTI_PROVIDER_ALLOWED`
  434. See :term:`bitbake:BB_MULTI_PROVIDER_ALLOWED` in the BitBake manual.
  435. :term:`BB_NICE_LEVEL`
  436. See :term:`bitbake:BB_NICE_LEVEL` in the BitBake manual.
  437. :term:`BB_NO_NETWORK`
  438. See :term:`bitbake:BB_NO_NETWORK` in the BitBake manual.
  439. :term:`BB_NUMBER_PARSE_THREADS`
  440. See :term:`bitbake:BB_NUMBER_PARSE_THREADS` in the BitBake manual.
  441. :term:`BB_NUMBER_THREADS`
  442. The maximum number of tasks BitBake should run in parallel at any one
  443. time. The OpenEmbedded build system automatically configures this
  444. variable to be equal to the number of cores on the build system. For
  445. example, a system with a dual core processor that also uses
  446. hyper-threading causes the :term:`BB_NUMBER_THREADS` variable to default
  447. to "4".
  448. For single socket systems (i.e. one CPU), you should not have to
  449. override this variable to gain optimal parallelism during builds.
  450. However, if you have very large systems that employ multiple physical
  451. CPUs, you might want to make sure the :term:`BB_NUMBER_THREADS` variable
  452. is not set higher than "20".
  453. For more information on speeding up builds, see the
  454. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  455. section in the Yocto Project Development Tasks Manual.
  456. On the other hand, if your goal is to limit the amount of system
  457. resources consumed by BitBake tasks, setting :term:`BB_NUMBER_THREADS`
  458. to a number lower than the number of CPU threads in your machine
  459. won't be sufficient. That's because each package will still be built
  460. and installed through a number of parallel jobs specified by the
  461. :term:`PARALLEL_MAKE` variable, which is by default the number of CPU
  462. threads in your system, and is not impacted by the
  463. :term:`BB_NUMBER_THREADS` value.
  464. So, if you set :term:`BB_NUMBER_THREADS` to "1" but don't set
  465. :term:`PARALLEL_MAKE`, most of your system resources will be consumed
  466. anyway.
  467. Therefore, if you intend to reduce the load of your build system by
  468. setting :term:`BB_NUMBER_THREADS` to a relatively low value compared
  469. to the number of CPU threads on your system, you should also set
  470. :term:`PARALLEL_MAKE` to a similarly low value.
  471. An alternative to using :term:`BB_NUMBER_THREADS` to keep the usage
  472. of build system resources under control is to use the smarter
  473. :term:`BB_PRESSURE_MAX_CPU`, :term:`BB_PRESSURE_MAX_IO` or
  474. :term:`BB_PRESSURE_MAX_MEMORY` controls. They will prevent BitBake
  475. from starting new tasks as long as thresholds are exceeded. Anyway,
  476. as with :term:`BB_NUMBER_THREADS`, such controls won't prevent the
  477. tasks already being run from using all CPU threads on the system
  478. if :term:`PARALLEL_MAKE` is not set to a low value.
  479. :term:`BB_ORIGENV`
  480. See :term:`bitbake:BB_ORIGENV` in the BitBake manual.
  481. :term:`BB_PRESERVE_ENV`
  482. See :term:`bitbake:BB_PRESERVE_ENV` in the BitBake manual.
  483. :term:`BB_PRESSURE_MAX_CPU`
  484. See :term:`bitbake:BB_PRESSURE_MAX_CPU` in the BitBake manual.
  485. :term:`BB_PRESSURE_MAX_IO`
  486. See :term:`bitbake:BB_PRESSURE_MAX_IO` in the BitBake manual.
  487. :term:`BB_PRESSURE_MAX_MEMORY`
  488. See :term:`bitbake:BB_PRESSURE_MAX_MEMORY` in the BitBake manual.
  489. :term:`BB_RUNFMT`
  490. See :term:`bitbake:BB_RUNFMT` in the BitBake manual.
  491. :term:`BB_RUNTASK`
  492. See :term:`bitbake:BB_RUNTASK` in the BitBake manual.
  493. :term:`BB_SCHEDULER`
  494. See :term:`bitbake:BB_SCHEDULER` in the BitBake manual.
  495. :term:`BB_SCHEDULERS`
  496. See :term:`bitbake:BB_SCHEDULERS` in the BitBake manual.
  497. :term:`BB_SERVER_TIMEOUT`
  498. Specifies the time (in seconds) after which to unload the BitBake
  499. server due to inactivity. Set :term:`BB_SERVER_TIMEOUT` to determine how
  500. long the BitBake server stays resident between invocations.
  501. For example, the following statement in your ``local.conf`` file
  502. instructs the server to be unloaded after 20 seconds of inactivity::
  503. BB_SERVER_TIMEOUT = "20"
  504. If you want the server to never be unloaded,
  505. set :term:`BB_SERVER_TIMEOUT` to "-1".
  506. :term:`BB_SETSCENE_DEPVALID`
  507. See :term:`bitbake:BB_SETSCENE_DEPVALID` in the BitBake manual.
  508. :term:`BB_SIGNATURE_EXCLUDE_FLAGS`
  509. See :term:`bitbake:BB_SIGNATURE_EXCLUDE_FLAGS` in the BitBake manual.
  510. :term:`BB_SIGNATURE_HANDLER`
  511. See :term:`bitbake:BB_SIGNATURE_HANDLER` in the BitBake manual.
  512. :term:`BB_SRCREV_POLICY`
  513. See :term:`bitbake:BB_SRCREV_POLICY` in the BitBake manual.
  514. :term:`BB_STRICT_CHECKSUM`
  515. See :term:`bitbake:BB_STRICT_CHECKSUM` in the BitBake manual.
  516. :term:`BB_TASK_IONICE_LEVEL`
  517. See :term:`bitbake:BB_TASK_IONICE_LEVEL` in the BitBake manual.
  518. :term:`BB_TASK_NICE_LEVEL`
  519. See :term:`bitbake:BB_TASK_NICE_LEVEL` in the BitBake manual.
  520. :term:`BB_TASKHASH`
  521. See :term:`bitbake:BB_TASKHASH` in the BitBake manual.
  522. :term:`BB_VERBOSE_LOGS`
  523. See :term:`bitbake:BB_VERBOSE_LOGS` in the BitBake manual.
  524. :term:`BB_WORKERCONTEXT`
  525. See :term:`bitbake:BB_WORKERCONTEXT` in the BitBake manual.
  526. :term:`BBCLASSEXTEND`
  527. Allows you to extend a recipe so that it builds variants of the
  528. software. There are common variants for recipes as "natives" like
  529. ``quilt-native``, which is a copy of Quilt built to run on the build
  530. system; "crosses" such as ``gcc-cross``, which is a compiler built to
  531. run on the build machine but produces binaries that run on the target
  532. :term:`MACHINE`; ":ref:`ref-classes-nativesdk`", which
  533. targets the SDK machine instead of :term:`MACHINE`; and "mulitlibs" in
  534. the form "``multilib:``\ multilib_name".
  535. To build a different variant of the recipe with a minimal amount of
  536. code, it usually is as simple as adding the following to your recipe::
  537. BBCLASSEXTEND =+ "native nativesdk"
  538. BBCLASSEXTEND =+ "multilib:multilib_name"
  539. .. note::
  540. Internally, the :term:`BBCLASSEXTEND` mechanism generates recipe
  541. variants by rewriting variable values and applying overrides such
  542. as ``:class-native``. For example, to generate a native version of
  543. a recipe, a :term:`DEPENDS` on "foo" is rewritten
  544. to a :term:`DEPENDS` on "foo-native".
  545. Even when using :term:`BBCLASSEXTEND`, the recipe is only parsed once.
  546. Parsing once adds some limitations. For example, it is not
  547. possible to include a different file depending on the variant,
  548. since ``include`` statements are processed when the recipe is
  549. parsed.
  550. :term:`BBDEBUG`
  551. See :term:`bitbake:BBDEBUG` in the BitBake manual.
  552. :term:`BBFILE_COLLECTIONS`
  553. Lists the names of configured layers. These names are used to find
  554. the other ``BBFILE_*`` variables. Typically, each layer will append
  555. its name to this variable in its ``conf/layer.conf`` file.
  556. :term:`BBFILE_PATTERN`
  557. Variable that expands to match files from
  558. :term:`BBFILES` in a particular layer. This variable
  559. is used in the ``conf/layer.conf`` file and must be suffixed with the
  560. name of the specific layer (e.g. ``BBFILE_PATTERN_emenlow``).
  561. :term:`BBFILE_PRIORITY`
  562. Assigns the priority for recipe files in each layer.
  563. This variable is useful in situations where the same recipe appears
  564. in more than one layer. Setting this variable allows you to
  565. prioritize a layer against other layers that contain the same recipe
  566. --- effectively letting you control the precedence for the multiple
  567. layers. The precedence established through this variable stands
  568. regardless of a recipe's version (:term:`PV` variable). For
  569. example, a layer that has a recipe with a higher :term:`PV` value but for
  570. which the :term:`BBFILE_PRIORITY` is set to have a lower precedence still
  571. has a lower precedence.
  572. A larger value for the :term:`BBFILE_PRIORITY` variable results in a
  573. higher precedence. For example, the value 6 has a higher precedence
  574. than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
  575. is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
  576. for more information. The default priority, if unspecified for a
  577. layer with no dependencies, is the lowest defined priority + 1 (or 1
  578. if no priorities are defined).
  579. .. tip::
  580. You can use the command ``bitbake-layers show-layers``
  581. to list all configured layers along with their priorities.
  582. :term:`BBFILES`
  583. A space-separated list of recipe files BitBake uses to build
  584. software.
  585. When specifying recipe files, you can pattern match using Python's
  586. `glob <https://docs.python.org/3/library/glob.html>`__ syntax.
  587. For details on the syntax, see the documentation by following the
  588. previous link.
  589. :term:`BBFILES_DYNAMIC`
  590. Activates content when identified layers are present. You identify
  591. the layers by the collections that the layers define.
  592. Use the :term:`BBFILES_DYNAMIC` variable to avoid ``.bbappend`` files
  593. whose corresponding ``.bb`` file is in a layer that attempts to
  594. modify other layers through ``.bbappend`` but does not want to
  595. introduce a hard dependency on those other layers.
  596. Use the following form for :term:`BBFILES_DYNAMIC`:
  597. ``collection_name:filename_pattern``.
  598. The following example identifies two collection names and two
  599. filename patterns::
  600. BBFILES_DYNAMIC += " \
  601. clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \
  602. core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \
  603. "
  604. This next example shows an error message that occurs because invalid
  605. entries are found, which cause parsing to fail:
  606. .. code-block:: none
  607. ERROR: BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:
  608. /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend
  609. /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend
  610. :term:`BBINCLUDED`
  611. See :term:`bitbake:BBINCLUDED` in the BitBake manual.
  612. :term:`BBINCLUDELOGS`
  613. Variable that controls how BitBake displays logs on build failure.
  614. :term:`BBINCLUDELOGS_LINES`
  615. If :term:`BBINCLUDELOGS` is set, specifies the
  616. maximum number of lines from the task log file to print when
  617. reporting a failed task. If you do not set :term:`BBINCLUDELOGS_LINES`,
  618. the entire log is printed.
  619. :term:`BBLAYERS`
  620. Lists the layers to enable during the build. This variable is defined
  621. in the ``bblayers.conf`` configuration file in the :term:`Build Directory`.
  622. Here is an example::
  623. BBLAYERS = " \
  624. /home/scottrif/poky/meta \
  625. /home/scottrif/poky/meta-poky \
  626. /home/scottrif/poky/meta-yocto-bsp \
  627. /home/scottrif/poky/meta-mykernel \
  628. "
  629. This example enables four layers, one of which is a custom,
  630. user-defined layer named ``meta-mykernel``.
  631. :term:`BBLAYERS_FETCH_DIR`
  632. See :term:`bitbake:BBLAYERS_FETCH_DIR` in the BitBake manual.
  633. :term:`BBMASK`
  634. Prevents BitBake from processing recipes and recipe append files.
  635. You can use the :term:`BBMASK` variable to "hide" these ``.bb`` and
  636. ``.bbappend`` files. BitBake ignores any recipe or recipe append
  637. files that match any of the expressions. It is as if BitBake does not
  638. see them at all. Consequently, matching files are not parsed or
  639. otherwise used by BitBake.
  640. The values you provide are passed to Python's regular expression
  641. compiler. Consequently, the syntax follows Python's Regular
  642. Expression (re) syntax. The expressions are compared against the full
  643. paths to the files. For complete syntax information, see Python's
  644. documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax.
  645. The following example uses a complete regular expression to tell
  646. BitBake to ignore all recipe and recipe append files in the
  647. ``meta-ti/recipes-misc/`` directory::
  648. BBMASK = "meta-ti/recipes-misc/"
  649. If you want to mask out multiple directories or recipes, you can
  650. specify multiple regular expression fragments. This next example
  651. masks out multiple directories and individual recipes::
  652. BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
  653. BBMASK += "/meta-oe/recipes-support/"
  654. BBMASK += "/meta-foo/.*/openldap"
  655. BBMASK += "opencv.*\.bbappend"
  656. BBMASK += "lzma"
  657. .. note::
  658. When specifying a directory name, use the trailing slash character
  659. to ensure you match just that directory name.
  660. :term:`BBMULTICONFIG`
  661. Specifies each additional separate configuration when you are
  662. building targets with multiple configurations. Use this variable in
  663. your ``conf/local.conf`` configuration file. Specify a
  664. multiconfigname for each configuration file you are using. For
  665. example, the following line specifies three configuration files::
  666. BBMULTICONFIG = "configA configB configC"
  667. Each configuration file you use must reside in a ``multiconfig``
  668. subdirectory of a configuration directory within a layer, or
  669. within the :term:`Build Directory` (e.g.
  670. ``build_directory/conf/multiconfig/configA.conf`` or
  671. ``mylayer/conf/multiconfig/configB.conf``).
  672. For information on how to use :term:`BBMULTICONFIG` in an environment
  673. that supports building targets with multiple configurations, see the
  674. ":ref:`dev-manual/building:building images for multiple targets using multiple configurations`"
  675. section in the Yocto Project Development Tasks Manual.
  676. :term:`BBPATH`
  677. See :term:`bitbake:BBPATH` in the BitBake manual.
  678. :term:`BBSERVER`
  679. If defined in the BitBake environment, :term:`BBSERVER` points to the
  680. BitBake remote server.
  681. Use the following format to export the variable to the BitBake
  682. environment::
  683. export BBSERVER=localhost:$port
  684. By default, :term:`BBSERVER` also appears in :term:`BB_BASEHASH_IGNORE_VARS`.
  685. Consequently, :term:`BBSERVER` is excluded from checksum and dependency
  686. data.
  687. :term:`BBTARGETS`
  688. See :term:`bitbake:BBTARGETS` in the BitBake manual.
  689. :term:`BINCONFIG`
  690. When inheriting the :ref:`ref-classes-binconfig-disabled` class, this
  691. variable specifies binary configuration scripts to disable in favor of
  692. using ``pkg-config`` to query the information. The
  693. :ref:`ref-classes-binconfig-disabled` class will modify the specified
  694. scripts to return an error so that calls to them can be easily found
  695. and replaced.
  696. To add multiple scripts, separate them by spaces. Here is an example
  697. from the ``libpng`` recipe::
  698. BINCONFIG = "${bindir}/libpng-config ${bindir}/libpng16-config"
  699. :term:`BINCONFIG_GLOB`
  700. When inheriting the :ref:`ref-classes-binconfig` class,
  701. this variable specifies a wildcard for configuration scripts that
  702. need editing. The scripts are edited to correct any paths that have
  703. been set up during compilation so that they are correct for use when
  704. installed into the sysroot and called by the build processes of other
  705. recipes.
  706. .. note::
  707. The :term:`BINCONFIG_GLOB` variable uses
  708. `shell globbing <https://tldp.org/LDP/abs/html/globbingref.html>`__,
  709. which is recognition and expansion of wildcards during pattern
  710. matching. Shell globbing is very similar to
  711. `fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__
  712. and `glob <https://docs.python.org/3/library/glob.html>`__.
  713. For more information on how this variable works, see
  714. ``meta/classes-recipe/binconfig.bbclass`` in the :term:`Source Directory`.
  715. You can also find general
  716. information on the class in the
  717. ":ref:`ref-classes-binconfig`" section.
  718. :term:`BITBAKE_UI`
  719. See :term:`bitbake:BITBAKE_UI` in the BitBake manual.
  720. :term:`BP`
  721. The base recipe name and version but without any special recipe name
  722. suffix (i.e. ``-native``, ``lib64-``, and so forth). :term:`BP` is
  723. comprised of the following::
  724. ${BPN}-${PV}
  725. :term:`BPN`
  726. This variable is a version of the :term:`PN` variable with
  727. common prefixes and suffixes removed, such as ``nativesdk-``,
  728. ``-cross``, ``-native``, and multilib's ``lib64-`` and ``lib32-``.
  729. The exact lists of prefixes and suffixes removed are specified by the
  730. :term:`MLPREFIX` and
  731. :term:`SPECIAL_PKGSUFFIX` variables,
  732. respectively.
  733. :term:`BUGTRACKER`
  734. Specifies a URL for an upstream bug tracking website for a recipe.
  735. The OpenEmbedded build system does not use this variable. Rather, the
  736. variable is a useful pointer in case a bug in the software being
  737. built needs to be manually reported.
  738. :term:`BUILD_ARCH`
  739. Specifies the architecture of the build host (e.g. ``i686``). The
  740. OpenEmbedded build system sets the value of :term:`BUILD_ARCH` from the
  741. machine name reported by the ``uname`` command.
  742. :term:`BUILD_AS_ARCH`
  743. Specifies the architecture-specific assembler flags for the build
  744. host. By default, the value of :term:`BUILD_AS_ARCH` is empty.
  745. :term:`BUILD_CC_ARCH`
  746. Specifies the architecture-specific C compiler flags for the build
  747. host. By default, the value of :term:`BUILD_CC_ARCH` is empty.
  748. :term:`BUILD_CCLD`
  749. Specifies the linker command to be used for the build host when the C
  750. compiler is being used as the linker. By default, :term:`BUILD_CCLD`
  751. points to GCC and passes as arguments the value of
  752. :term:`BUILD_CC_ARCH`, assuming
  753. :term:`BUILD_CC_ARCH` is set.
  754. :term:`BUILD_CFLAGS`
  755. Specifies the flags to pass to the C compiler when building for the
  756. build host. When building in the ``-native`` context,
  757. :term:`CFLAGS` is set to the value of this variable by
  758. default.
  759. :term:`BUILD_CPPFLAGS`
  760. Specifies the flags to pass to the C preprocessor (i.e. to both the C
  761. and the C++ compilers) when building for the build host. When
  762. building in the ``-native`` context, :term:`CPPFLAGS`
  763. is set to the value of this variable by default.
  764. :term:`BUILD_CXXFLAGS`
  765. Specifies the flags to pass to the C++ compiler when building for the
  766. build host. When building in the ``-native`` context,
  767. :term:`CXXFLAGS` is set to the value of this variable
  768. by default.
  769. :term:`BUILD_FC`
  770. Specifies the Fortran compiler command for the build host. By
  771. default, :term:`BUILD_FC` points to Gfortran and passes as arguments the
  772. value of :term:`BUILD_CC_ARCH`, assuming
  773. :term:`BUILD_CC_ARCH` is set.
  774. :term:`BUILD_LD`
  775. Specifies the linker command for the build host. By default,
  776. :term:`BUILD_LD` points to the GNU linker (ld) and passes as arguments
  777. the value of :term:`BUILD_LD_ARCH`, assuming
  778. :term:`BUILD_LD_ARCH` is set.
  779. :term:`BUILD_LD_ARCH`
  780. Specifies architecture-specific linker flags for the build host. By
  781. default, the value of :term:`BUILD_LD_ARCH` is empty.
  782. :term:`BUILD_LDFLAGS`
  783. Specifies the flags to pass to the linker when building for the build
  784. host. When building in the ``-native`` context,
  785. :term:`LDFLAGS` is set to the value of this variable
  786. by default.
  787. :term:`BUILD_OPTIMIZATION`
  788. Specifies the optimization flags passed to the C compiler when
  789. building for the build host or the SDK. The flags are passed through
  790. the :term:`BUILD_CFLAGS` and
  791. :term:`BUILDSDK_CFLAGS` default values.
  792. The default value of the :term:`BUILD_OPTIMIZATION` variable is "-O2
  793. -pipe".
  794. :term:`BUILD_OS`
  795. Specifies the operating system in use on the build host (e.g.
  796. "linux"). The OpenEmbedded build system sets the value of
  797. :term:`BUILD_OS` from the OS reported by the ``uname`` command --- the
  798. first word, converted to lower-case characters.
  799. :term:`BUILD_PREFIX`
  800. The toolchain binary prefix used for native recipes. The OpenEmbedded
  801. build system uses the :term:`BUILD_PREFIX` value to set the
  802. :term:`TARGET_PREFIX` when building for :ref:`ref-classes-native` recipes.
  803. :term:`BUILD_STRIP`
  804. Specifies the command to be used to strip debugging symbols from
  805. binaries produced for the build host. By default, :term:`BUILD_STRIP`
  806. points to
  807. ``${``\ :term:`BUILD_PREFIX`\ ``}strip``.
  808. :term:`BUILD_SYS`
  809. Specifies the system, including the architecture and the operating
  810. system, to use when building for the build host (i.e. when building
  811. :ref:`ref-classes-native` recipes).
  812. The OpenEmbedded build system automatically sets this variable based
  813. on :term:`BUILD_ARCH`,
  814. :term:`BUILD_VENDOR`, and
  815. :term:`BUILD_OS`. You do not need to set the
  816. :term:`BUILD_SYS` variable yourself.
  817. :term:`BUILD_VENDOR`
  818. Specifies the vendor name to use when building for the build host.
  819. The default value is an empty string ("").
  820. :term:`BUILDDIR`
  821. Points to the location of the :term:`Build Directory`. You can define
  822. this directory indirectly through the :ref:`structure-core-script` script
  823. by passing in a :term:`Build Directory` path when you run the script. If
  824. you run the script and do not provide a :term:`Build Directory` path, the
  825. :term:`BUILDDIR` defaults to ``build`` in the current directory.
  826. :term:`BUILDHISTORY_COMMIT`
  827. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  828. specifies whether or not to commit the build history output in a local
  829. Git repository. If set to "1", this local repository will be maintained
  830. automatically by the :ref:`ref-classes-buildhistory` class and a commit
  831. will be created on every build for changes to each top-level subdirectory
  832. of the build history output (images, packages, and sdk). If you want to
  833. track changes to build history over time, you should set this value to
  834. "1".
  835. By default, the :ref:`ref-classes-buildhistory` class
  836. enables committing the buildhistory output in a local Git repository::
  837. BUILDHISTORY_COMMIT ?= "1"
  838. :term:`BUILDHISTORY_COMMIT_AUTHOR`
  839. When inheriting the :ref:`ref-classes-buildhistory`
  840. class, this variable specifies the author to use for each Git commit.
  841. In order for the :term:`BUILDHISTORY_COMMIT_AUTHOR` variable to work, the
  842. :term:`BUILDHISTORY_COMMIT` variable must
  843. be set to "1".
  844. Git requires that the value you provide for the
  845. :term:`BUILDHISTORY_COMMIT_AUTHOR` variable takes the form of "name
  846. email@host". Providing an email address or host that is not valid
  847. does not produce an error.
  848. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  849. as follows::
  850. BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>"
  851. :term:`BUILDHISTORY_DIR`
  852. When inheriting the :ref:`ref-classes-buildhistory`
  853. class, this variable specifies the directory in which build history
  854. information is kept. For more information on how the variable works,
  855. see the :ref:`ref-classes-buildhistory` class.
  856. By default, the :ref:`ref-classes-buildhistory` class sets the directory
  857. as follows::
  858. BUILDHISTORY_DIR ?= "${TOPDIR}/buildhistory"
  859. :term:`BUILDHISTORY_FEATURES`
  860. When inheriting the :ref:`ref-classes-buildhistory`
  861. class, this variable specifies the build history features to be
  862. enabled. For more information on how build history works, see the
  863. ":ref:`dev-manual/build-quality:maintaining build output quality`"
  864. section in the Yocto Project Development Tasks Manual.
  865. You can specify these features in the form of a space-separated list:
  866. - *image:* Analysis of the contents of images, which includes the
  867. list of installed packages among other things.
  868. - *package:* Analysis of the contents of individual packages.
  869. - *sdk:* Analysis of the contents of the software development kit
  870. (SDK).
  871. - *task:* Save output file signatures for
  872. :ref:`shared state <overview-manual/concepts:shared state cache>`
  873. (sstate) tasks.
  874. This saves one file per task and lists the SHA-256 checksums for
  875. each file staged (i.e. the output of the task).
  876. By default, the :ref:`ref-classes-buildhistory` class enables the
  877. following features::
  878. BUILDHISTORY_FEATURES ?= "image package sdk"
  879. :term:`BUILDHISTORY_IMAGE_FILES`
  880. When inheriting the :ref:`ref-classes-buildhistory`
  881. class, this variable specifies a list of paths to files copied from
  882. the image contents into the build history directory under an
  883. "image-files" directory in the directory for the image, so that you
  884. can track the contents of each file. The default is to copy
  885. ``/etc/passwd`` and ``/etc/group``, which allows you to monitor for
  886. changes in user and group entries. You can modify the list to include
  887. any file. Specifying an invalid path does not produce an error.
  888. Consequently, you can include files that might not always be present.
  889. By default, the :ref:`ref-classes-buildhistory` class provides paths to
  890. the following files::
  891. BUILDHISTORY_IMAGE_FILES ?= "/etc/passwd /etc/group"
  892. :term:`BUILDHISTORY_PATH_PREFIX_STRIP`
  893. When inheriting the :ref:`ref-classes-buildhistory`
  894. class, this variable specifies a common path prefix that should be
  895. stripped off the beginning of paths in the task signature list when the
  896. ``task`` feature is active in :term:`BUILDHISTORY_FEATURES`. This can be
  897. useful when build history is populated from multiple sources that may not
  898. all use the same top level directory.
  899. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  900. as follows::
  901. BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
  902. In this case, no prefixes will be stripped.
  903. :term:`BUILDHISTORY_PUSH_REPO`
  904. When inheriting the :ref:`ref-classes-buildhistory` class, this variable
  905. optionally specifies a remote repository to which build history pushes
  906. Git changes. In order for :term:`BUILDHISTORY_PUSH_REPO` to work,
  907. :term:`BUILDHISTORY_COMMIT` must be set to "1".
  908. The repository should correspond to a remote address that specifies a
  909. repository as understood by Git, or alternatively to a remote name
  910. that you have set up manually using ``git remote`` within the local
  911. repository.
  912. By default, the :ref:`ref-classes-buildhistory` class sets the variable
  913. as follows::
  914. BUILDHISTORY_PUSH_REPO ?= ""
  915. :term:`BUILDNAME`
  916. See :term:`bitbake:BUILDNAME` in the BitBake manual.
  917. :term:`BUILDSDK_CFLAGS`
  918. Specifies the flags to pass to the C compiler when building for the
  919. SDK. When building in the ``nativesdk-`` context,
  920. :term:`CFLAGS` is set to the value of this variable by
  921. default.
  922. :term:`BUILDSDK_CPPFLAGS`
  923. Specifies the flags to pass to the C pre-processor (i.e. to both the
  924. C and the C++ compilers) when building for the SDK. When building in
  925. the ``nativesdk-`` context, :term:`CPPFLAGS` is set
  926. to the value of this variable by default.
  927. :term:`BUILDSDK_CXXFLAGS`
  928. Specifies the flags to pass to the C++ compiler when building for the
  929. SDK. When building in the ``nativesdk-`` context,
  930. :term:`CXXFLAGS` is set to the value of this variable
  931. by default.
  932. :term:`BUILDSDK_LDFLAGS`
  933. Specifies the flags to pass to the linker when building for the SDK.
  934. When building in the ``nativesdk-`` context,
  935. :term:`LDFLAGS` is set to the value of this variable
  936. by default.
  937. :term:`BUILDSTATS_BASE`
  938. Points to the location of the directory that holds build statistics
  939. when you use and enable the :ref:`ref-classes-buildstats` class. The
  940. :term:`BUILDSTATS_BASE` directory defaults to
  941. ``${``\ :term:`TMPDIR`\ ``}/buildstats/``.
  942. :term:`BUSYBOX_SPLIT_SUID`
  943. For the BusyBox recipe, specifies whether to split the output
  944. executable file into two parts: one for features that require
  945. ``setuid root``, and one for the remaining features (i.e. those that
  946. do not require ``setuid root``).
  947. The :term:`BUSYBOX_SPLIT_SUID` variable defaults to "1", which results in
  948. splitting the output executable file. Set the variable to "0" to get
  949. a single output executable file.
  950. :term:`BZRDIR`
  951. See :term:`bitbake:BZRDIR` in the BitBake manual.
  952. :term:`CACHE`
  953. Specifies the directory BitBake uses to store a cache of the
  954. :term:`Metadata` so it does not need to be parsed every time
  955. BitBake is started.
  956. :term:`CC`
  957. The minimal command and arguments used to run the C compiler.
  958. :term:`CFLAGS`
  959. Specifies the flags to pass to the C compiler. This variable is
  960. exported to an environment variable and thus made visible to the
  961. software being built during the compilation step.
  962. Default initialization for :term:`CFLAGS` varies depending on what is
  963. being built:
  964. - :term:`TARGET_CFLAGS` when building for the
  965. target
  966. - :term:`BUILD_CFLAGS` when building for the
  967. build host (i.e. ``-native``)
  968. - :term:`BUILDSDK_CFLAGS` when building for
  969. an SDK (i.e. ``nativesdk-``)
  970. :term:`CLASSOVERRIDE`
  971. An internal variable specifying the special class override that
  972. should currently apply (e.g. "class-target", "class-native", and so
  973. forth). The classes that use this variable (e.g.
  974. :ref:`ref-classes-native`, :ref:`ref-classes-nativesdk`, and so forth)
  975. set the variable to appropriate values.
  976. .. note::
  977. :term:`CLASSOVERRIDE` gets its default "class-target" value from the
  978. ``bitbake.conf`` file.
  979. As an example, the following override allows you to install extra
  980. files, but only when building for the target::
  981. do_install:append:class-target() {
  982. install my-extra-file ${D}${sysconfdir}
  983. }
  984. Here is an example where ``FOO`` is set to
  985. "native" when building for the build host, and to "other" when not
  986. building for the build host::
  987. FOO:class-native = "native"
  988. FOO = "other"
  989. The underlying mechanism behind :term:`CLASSOVERRIDE` is simply
  990. that it is included in the default value of
  991. :term:`OVERRIDES`.
  992. :term:`CLEANBROKEN`
  993. If set to "1" within a recipe, :term:`CLEANBROKEN` specifies that the
  994. ``make clean`` command does not work for the software being built.
  995. Consequently, the OpenEmbedded build system will not try to run
  996. ``make clean`` during the :ref:`ref-tasks-configure`
  997. task, which is the default behavior.
  998. :term:`COMBINED_FEATURES`
  999. Provides a list of hardware features that are enabled in both
  1000. :term:`MACHINE_FEATURES` and
  1001. :term:`DISTRO_FEATURES`. This select list of
  1002. features contains features that make sense to be controlled both at
  1003. the machine and distribution configuration level. For example, the
  1004. "bluetooth" feature requires hardware support but should also be
  1005. optional at the distribution level, in case the hardware supports
  1006. Bluetooth but you do not ever intend to use it.
  1007. :term:`COMMERCIAL_AUDIO_PLUGINS`
  1008. This variable is specific to the :yocto_git:`GStreamer recipes
  1009. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1010. It allows to build the GStreamer `"ugly"
  1011. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1012. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ audio plugins.
  1013. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1014. section for usage details.
  1015. :term:`COMMERCIAL_VIDEO_PLUGINS`
  1016. This variable is specific to the :yocto_git:`GStreamer recipes
  1017. </poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb>`.
  1018. It allows to build the GStreamer `"ugly"
  1019. <https://github.com/GStreamer/gst-plugins-ugly>`__ and
  1020. `"bad" <https://github.com/GStreamer/gst-plugins-bad>`__ video plugins.
  1021. See the :ref:`dev-manual/licenses:other variables related to commercial licenses`
  1022. section for usage details.
  1023. :term:`COMMON_LICENSE_DIR`
  1024. Points to ``meta/files/common-licenses`` in the
  1025. :term:`Source Directory`, which is where generic license
  1026. files reside.
  1027. :term:`COMPATIBLE_HOST`
  1028. A regular expression that resolves to one or more hosts (when the
  1029. recipe is native) or one or more targets (when the recipe is
  1030. non-native) with which a recipe is compatible. The regular expression
  1031. is matched against :term:`HOST_SYS`. You can use the
  1032. variable to stop recipes from being built for classes of systems with
  1033. which the recipes are not compatible. Stopping these builds is
  1034. particularly useful with kernels. The variable also helps to increase
  1035. parsing speed since the build system skips parsing recipes not
  1036. compatible with the current system.
  1037. :term:`COMPATIBLE_MACHINE`
  1038. A regular expression that resolves to one or more target machines
  1039. with which a recipe is compatible. The regular expression is matched
  1040. against :term:`MACHINEOVERRIDES`. You can use
  1041. the variable to stop recipes from being built for machines with which
  1042. the recipes are not compatible. Stopping these builds is particularly
  1043. useful with kernels. The variable also helps to increase parsing
  1044. speed since the build system skips parsing recipes not compatible
  1045. with the current machine.
  1046. If one wants to have a recipe only available for some architectures
  1047. (here ``aarch64`` and ``mips64``), the following can be used::
  1048. COMPATIBLE_MACHINE = "^$"
  1049. COMPATIBLE_MACHINE:arch64 = "^(aarch64)$"
  1050. COMPATIBLE_MACHINE:mips64 = "^(mips64)$"
  1051. The first line means "match all machines whose :term:`MACHINEOVERRIDES`
  1052. contains the empty string", which will always be none.
  1053. The second is for matching all machines whose :term:`MACHINEOVERRIDES`
  1054. contains one override which is exactly ``aarch64``.
  1055. The third is for matching all machines whose :term:`MACHINEOVERRIDES`
  1056. contains one override which is exactly ``mips64``.
  1057. The same could be achieved with::
  1058. COMPATIBLE_MACHINE = "^(aarch64|mips64)$"
  1059. .. note::
  1060. When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from
  1061. native, the recipe is always skipped. All native recipes must be
  1062. entirely target independent and should not rely on :term:`MACHINE`.
  1063. :term:`COMPLEMENTARY_GLOB`
  1064. Defines wildcards to match when installing a list of complementary
  1065. packages for all the packages explicitly (or implicitly) installed in
  1066. an image.
  1067. The :term:`COMPLEMENTARY_GLOB` variable uses Unix filename pattern matching
  1068. (`fnmatch <https://docs.python.org/3/library/fnmatch.html#module-fnmatch>`__),
  1069. which is similar to the Unix style pathname pattern expansion
  1070. (`glob <https://docs.python.org/3/library/glob.html>`__).
  1071. The resulting list of complementary packages is associated with an
  1072. item that can be added to
  1073. :term:`IMAGE_FEATURES`. An example usage of
  1074. this is the "dev-pkgs" item that when added to :term:`IMAGE_FEATURES`
  1075. will install -dev packages (containing headers and other development
  1076. files) for every package in the image.
  1077. To add a new feature item pointing to a wildcard, use a variable flag
  1078. to specify the feature item name and use the value to specify the
  1079. wildcard. Here is an example::
  1080. COMPLEMENTARY_GLOB[dev-pkgs] = '*-dev'
  1081. .. note::
  1082. When installing complementary packages, recommends relationships
  1083. (set via :term:`RRECOMMENDS`) are always ignored.
  1084. :term:`COMPONENTS_DIR`
  1085. Stores sysroot components for each recipe. The OpenEmbedded build
  1086. system uses :term:`COMPONENTS_DIR` when constructing recipe-specific
  1087. sysroots for other recipes.
  1088. The default is
  1089. "``${``\ :term:`STAGING_DIR`\ ``}-components``."
  1090. (i.e.
  1091. "``${``\ :term:`TMPDIR`\ ``}/sysroots-components``").
  1092. :term:`CONF_VERSION`
  1093. Tracks the version of the local configuration file (i.e.
  1094. ``local.conf``). The value for :term:`CONF_VERSION` increments each time
  1095. ``build/conf/`` compatibility changes.
  1096. :term:`CONFFILES`
  1097. Identifies editable or configurable files that are part of a package.
  1098. If the Package Management System (PMS) is being used to update
  1099. packages on the target system, it is possible that configuration
  1100. files you have changed after the original installation and that you
  1101. now want to remain unchanged are overwritten. In other words,
  1102. editable files might exist in the package that you do not want reset
  1103. as part of the package update process. You can use the :term:`CONFFILES`
  1104. variable to list the files in the package that you wish to prevent
  1105. the PMS from overwriting during this update process.
  1106. To use the :term:`CONFFILES` variable, provide a package name override
  1107. that identifies the resulting package. Then, provide a
  1108. space-separated list of files. Here is an example::
  1109. CONFFILES:${PN} += "${sysconfdir}/file1 \
  1110. ${sysconfdir}/file2 ${sysconfdir}/file3"
  1111. There is a relationship between the :term:`CONFFILES` and :term:`FILES`
  1112. variables. The files listed within :term:`CONFFILES` must be a subset of
  1113. the files listed within :term:`FILES`. Because the configuration files
  1114. you provide with :term:`CONFFILES` are simply being identified so that
  1115. the PMS will not overwrite them, it makes sense that the files must
  1116. already be included as part of the package through the :term:`FILES`
  1117. variable.
  1118. .. note::
  1119. When specifying paths as part of the :term:`CONFFILES` variable, it is
  1120. good practice to use appropriate path variables.
  1121. For example, ``${sysconfdir}`` rather than ``/etc`` or ``${bindir}``
  1122. rather than ``/usr/bin``. You can find a list of these variables at
  1123. the top of the ``meta/conf/bitbake.conf`` file in the
  1124. :term:`Source Directory`.
  1125. :term:`CONFIG_INITRAMFS_SOURCE`
  1126. Identifies the initial RAM filesystem (:term:`Initramfs`) source files. The
  1127. OpenEmbedded build system receives and uses this kernel Kconfig
  1128. variable as an environment variable. By default, the variable is set
  1129. to null ("").
  1130. The :term:`CONFIG_INITRAMFS_SOURCE` can be either a single cpio archive
  1131. with a ``.cpio`` suffix or a space-separated list of directories and
  1132. files for building the :term:`Initramfs` image. A cpio archive should contain
  1133. a filesystem archive to be used as an :term:`Initramfs` image. Directories
  1134. should contain a filesystem layout to be included in the :term:`Initramfs`
  1135. image. Files should contain entries according to the format described
  1136. by the ``usr/gen_init_cpio`` program in the kernel tree.
  1137. If you specify multiple directories and files, the :term:`Initramfs` image
  1138. will be the aggregate of all of them.
  1139. For information on creating an :term:`Initramfs`, see the
  1140. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  1141. in the Yocto Project Development Tasks Manual.
  1142. :term:`CONFIG_SITE`
  1143. A list of files that contains ``autoconf`` test results relevant to
  1144. the current build. This variable is used by the Autotools utilities
  1145. when running ``configure``.
  1146. :term:`CONFIGURE_FLAGS`
  1147. The minimal arguments for GNU configure.
  1148. :term:`CONFLICT_DISTRO_FEATURES`
  1149. When inheriting the :ref:`ref-classes-features_check`
  1150. class, this variable identifies distribution features that would be
  1151. in conflict should the recipe be built. In other words, if the
  1152. :term:`CONFLICT_DISTRO_FEATURES` variable lists a feature that also
  1153. appears in :term:`DISTRO_FEATURES` within the current configuration, then
  1154. the recipe will be skipped, and if the build system attempts to build
  1155. the recipe then an error will be triggered.
  1156. :term:`CONVERSION_CMD`
  1157. This variable is used for storing image conversion commands.
  1158. Image conversion can convert an image into different objects like:
  1159. - Compressed version of the image
  1160. - Checksums for the image
  1161. An example of :term:`CONVERSION_CMD` from :ref:`ref-classes-image_types`
  1162. class is::
  1163. CONVERSION_CMD:lzo = "lzop -9 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
  1164. :term:`COPY_LIC_DIRS`
  1165. If set to "1" along with the
  1166. :term:`COPY_LIC_MANIFEST` variable, the
  1167. OpenEmbedded build system copies into the image the license files,
  1168. which are located in ``/usr/share/common-licenses``, for each
  1169. package. The license files are placed in directories within the image
  1170. itself during build time.
  1171. .. note::
  1172. The :term:`COPY_LIC_DIRS` does not offer a path for adding licenses for
  1173. newly installed packages to an image, which might be most suitable for
  1174. read-only filesystems that cannot be upgraded. See the
  1175. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1176. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1177. section in the Yocto Project Development Tasks Manual for
  1178. information on providing license text.
  1179. :term:`COPY_LIC_MANIFEST`
  1180. If set to "1", the OpenEmbedded build system copies the license
  1181. manifest for the image to
  1182. ``/usr/share/common-licenses/license.manifest`` within the image
  1183. itself during build time.
  1184. .. note::
  1185. The :term:`COPY_LIC_MANIFEST` does not offer a path for adding licenses for
  1186. newly installed packages to an image, which might be most suitable for
  1187. read-only filesystems that cannot be upgraded. See the
  1188. :term:`LICENSE_CREATE_PACKAGE` variable for additional information.
  1189. You can also reference the ":ref:`dev-manual/licenses:providing license text`"
  1190. section in the Yocto Project Development Tasks Manual for
  1191. information on providing license text.
  1192. :term:`COPYLEFT_LICENSE_EXCLUDE`
  1193. A space-separated list of licenses to exclude from the source archived by
  1194. the :ref:`ref-classes-archiver` class. In other words, if a license in a
  1195. recipe's :term:`LICENSE` value is in the value of
  1196. :term:`COPYLEFT_LICENSE_EXCLUDE`, then its source is not archived by the
  1197. class.
  1198. .. note::
  1199. The :term:`COPYLEFT_LICENSE_EXCLUDE` variable takes precedence over the
  1200. :term:`COPYLEFT_LICENSE_INCLUDE` variable.
  1201. The default value, which is "CLOSED Proprietary", for
  1202. :term:`COPYLEFT_LICENSE_EXCLUDE` is set by the
  1203. :ref:`ref-classes-copyleft_filter` class, which
  1204. is inherited by the :ref:`ref-classes-archiver` class.
  1205. :term:`COPYLEFT_LICENSE_INCLUDE`
  1206. A space-separated list of licenses to include in the source archived
  1207. by the :ref:`ref-classes-archiver` class. In other
  1208. words, if a license in a recipe's :term:`LICENSE`
  1209. value is in the value of :term:`COPYLEFT_LICENSE_INCLUDE`, then its
  1210. source is archived by the class.
  1211. The default value is set by the :ref:`ref-classes-copyleft_filter` class,
  1212. which is inherited by the :ref:`ref-classes-archiver` class. The default
  1213. value includes "GPL*", "LGPL*", and "AGPL*".
  1214. :term:`COPYLEFT_PN_EXCLUDE`
  1215. A list of recipes to exclude in the source archived by the
  1216. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_EXCLUDE`
  1217. variable overrides the license inclusion and exclusion caused through the
  1218. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1219. variables, respectively.
  1220. The default value, which is "" indicating to not explicitly exclude
  1221. any recipes by name, for :term:`COPYLEFT_PN_EXCLUDE` is set by the
  1222. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1223. :ref:`ref-classes-archiver` class.
  1224. :term:`COPYLEFT_PN_INCLUDE`
  1225. A list of recipes to include in the source archived by the
  1226. :ref:`ref-classes-archiver` class. The :term:`COPYLEFT_PN_INCLUDE`
  1227. variable overrides the license inclusion and exclusion caused through the
  1228. :term:`COPYLEFT_LICENSE_INCLUDE` and :term:`COPYLEFT_LICENSE_EXCLUDE`
  1229. variables, respectively.
  1230. The default value, which is "" indicating to not explicitly include
  1231. any recipes by name, for :term:`COPYLEFT_PN_INCLUDE` is set by the
  1232. :ref:`ref-classes-copyleft_filter` class, which is inherited by the
  1233. :ref:`ref-classes-archiver` class.
  1234. :term:`COPYLEFT_RECIPE_TYPES`
  1235. A space-separated list of recipe types to include in the source
  1236. archived by the :ref:`archiver <ref-classes-archiver>` class.
  1237. Recipe types are ``target``, :ref:`ref-classes-native`,
  1238. :ref:`ref-classes-nativesdk`, :ref:`ref-classes-cross`,
  1239. :ref:`ref-classes-crosssdk`, and :ref:`ref-classes-cross-canadian`.
  1240. The default value, which is "target*", for :term:`COPYLEFT_RECIPE_TYPES`
  1241. is set by the :ref:`ref-classes-copyleft_filter` class, which is
  1242. inherited by the :ref:`ref-classes-archiver` class.
  1243. :term:`CORE_IMAGE_EXTRA_INSTALL`
  1244. Specifies the list of packages to be added to the image. You should
  1245. only set this variable in the ``local.conf`` configuration file found
  1246. in the :term:`Build Directory`.
  1247. This variable replaces ``POKY_EXTRA_INSTALL``, which is no longer
  1248. supported.
  1249. :term:`COREBASE`
  1250. Specifies the parent directory of the OpenEmbedded-Core Metadata
  1251. layer (i.e. ``meta``).
  1252. It is an important distinction that :term:`COREBASE` points to the parent
  1253. of this layer and not the layer itself. Consider an example where you
  1254. have cloned the Poky Git repository and retained the ``poky`` name
  1255. for your local copy of the repository. In this case, :term:`COREBASE`
  1256. points to the ``poky`` folder because it is the parent directory of
  1257. the ``poky/meta`` layer.
  1258. :term:`COREBASE_FILES`
  1259. Lists files from the :term:`COREBASE` directory that
  1260. should be copied other than the layers listed in the
  1261. ``bblayers.conf`` file. The :term:`COREBASE_FILES` variable allows
  1262. to copy metadata from the OpenEmbedded build system
  1263. into the extensible SDK.
  1264. Explicitly listing files in :term:`COREBASE` is needed because it
  1265. typically contains build directories and other files that should not
  1266. normally be copied into the extensible SDK. Consequently, the value
  1267. of :term:`COREBASE_FILES` is used in order to only copy the files that
  1268. are actually needed.
  1269. :term:`CPP`
  1270. The minimal command and arguments used to run the C preprocessor.
  1271. :term:`CPPFLAGS`
  1272. Specifies the flags to pass to the C pre-processor (i.e. to both the
  1273. C and the C++ compilers). This variable is exported to an environment
  1274. variable and thus made visible to the software being built during the
  1275. compilation step.
  1276. Default initialization for :term:`CPPFLAGS` varies depending on what is
  1277. being built:
  1278. - :term:`TARGET_CPPFLAGS` when building for
  1279. the target
  1280. - :term:`BUILD_CPPFLAGS` when building for the
  1281. build host (i.e. ``-native``)
  1282. - :term:`BUILDSDK_CPPFLAGS` when building
  1283. for an SDK (i.e. ``nativesdk-``)
  1284. :term:`CROSS_COMPILE`
  1285. The toolchain binary prefix for the target tools. The
  1286. :term:`CROSS_COMPILE` variable is the same as the
  1287. :term:`TARGET_PREFIX` variable.
  1288. .. note::
  1289. The OpenEmbedded build system sets the :term:`CROSS_COMPILE`
  1290. variable only in certain contexts (e.g. when building for kernel
  1291. and kernel module recipes).
  1292. :term:`CVE_CHECK_CREATE_MANIFEST`
  1293. Specifies whether to create a CVE manifest to place in the deploy
  1294. directory. The default is "1".
  1295. :term:`CVE_CHECK_IGNORE`
  1296. This variable is deprecated and should be replaced by :term:`CVE_STATUS`.
  1297. :term:`CVE_CHECK_MANIFEST_JSON`
  1298. Specifies the path to the CVE manifest in JSON format. See
  1299. :term:`CVE_CHECK_CREATE_MANIFEST`.
  1300. :term:`CVE_CHECK_MANIFEST_JSON_SUFFIX`
  1301. Allows to modify the JSON manifest suffix. See
  1302. :term:`CVE_CHECK_MANIFEST_JSON`.
  1303. :term:`CVE_CHECK_REPORT_PATCHED`
  1304. Specifies whether or not the :ref:`ref-classes-cve-check`
  1305. class should report patched or ignored CVEs. The default is "1", but you
  1306. may wish to set it to "0" if you do not need patched or ignored CVEs in
  1307. the logs.
  1308. :term:`CVE_CHECK_SHOW_WARNINGS`
  1309. Specifies whether or not the :ref:`ref-classes-cve-check`
  1310. class should generate warning messages on the console when unpatched
  1311. CVEs are found. The default is "1", but you may wish to set it to "0" if
  1312. you are already examining/processing the logs after the build has
  1313. completed and thus do not need the warning messages.
  1314. :term:`CVE_CHECK_SKIP_RECIPE`
  1315. The list of package names (:term:`PN`) for which
  1316. CVEs (Common Vulnerabilities and Exposures) are ignored.
  1317. :term:`CVE_DB_INCR_UPDATE_AGE_THRES`
  1318. Specifies the maximum age of the CVE database in seconds for an
  1319. incremental update (instead of a full-download). Use "0" to force a
  1320. full-download.
  1321. :term:`CVE_DB_UPDATE_INTERVAL`
  1322. Specifies the CVE database update interval in seconds, as used by
  1323. ``cve-update-db-native``. The default value is "86400" i.e. once a day
  1324. (24*60*60). If the value is set to "0" then the update will be forced
  1325. every time. Alternatively, a negative value e.g. "-1" will disable
  1326. updates entirely.
  1327. :term:`CVE_PRODUCT`
  1328. In a recipe, defines the name used to match the recipe name
  1329. against the name in the upstream `NIST CVE database <https://nvd.nist.gov/>`__.
  1330. The default is ${:term:`BPN`} (except for recipes that inherit the
  1331. :ref:`ref-classes-pypi` class where it is set based upon
  1332. :term:`PYPI_PACKAGE`). If it does not match the name in the NIST CVE
  1333. database or matches with multiple entries in the database, the default
  1334. value needs to be changed.
  1335. Here is an example from the :oe_layerindex:`Berkeley DB recipe </layerindex/recipe/544>`::
  1336. CVE_PRODUCT = "oracle_berkeley_db berkeley_db"
  1337. Sometimes the product name is not specific enough, for example
  1338. "tar" has been matching CVEs for the GNU ``tar`` package and also
  1339. the ``node-tar`` node.js extension. To avoid this problem, use the
  1340. vendor name as a prefix. The syntax for this is::
  1341. CVE_PRODUCT = "vendor:package"
  1342. :term:`CVE_STATUS`
  1343. The CVE ID which is patched or should be ignored. Here is
  1344. an example from the :oe_layerindex:`Python3 recipe</layerindex/recipe/23823>`::
  1345. CVE_STATUS[CVE-2020-15523] = "not-applicable-platform: Issue only applies on Windows"
  1346. It has the format "reason: description" and the description is optional.
  1347. The Reason is mapped to the final CVE state by mapping via
  1348. :term:`CVE_CHECK_STATUSMAP`. See :ref:`dev-manual/vulnerabilities:fixing vulnerabilities in recipes`
  1349. for details.
  1350. :term:`CVE_STATUS_GROUPS`
  1351. If there are many CVEs with the same status and reason, they can by simplified by using this
  1352. variable instead of many similar lines with :term:`CVE_STATUS`::
  1353. CVE_STATUS_GROUPS = "CVE_STATUS_WIN CVE_STATUS_PATCHED"
  1354. CVE_STATUS_WIN = "CVE-1234-0001 CVE-1234-0002"
  1355. CVE_STATUS_WIN[status] = "not-applicable-platform: Issue only applies on Windows"
  1356. CVE_STATUS_PATCHED = "CVE-1234-0003 CVE-1234-0004"
  1357. CVE_STATUS_PATCHED[status] = "fixed-version: Fixed externally"
  1358. :term:`CVE_CHECK_STATUSMAP`
  1359. Mapping variable for all possible reasons of :term:`CVE_STATUS`:
  1360. ``Patched``, ``Unpatched`` and ``Ignored``.
  1361. See :ref:`ref-classes-cve-check` or ``meta/conf/cve-check-map.conf`` for more details::
  1362. CVE_CHECK_STATUSMAP[cpe-incorrect] = "Ignored"
  1363. :term:`CVE_VERSION`
  1364. In a recipe, defines the version used to match the recipe version
  1365. against the version in the `NIST CVE database <https://nvd.nist.gov/>`__
  1366. when usign :ref:`ref-classes-cve-check`.
  1367. The default is ${:term:`PV`} but if recipes use custom version numbers
  1368. which do not map to upstream software component release versions and the versions
  1369. used in the CVE database, then this variable can be used to set the
  1370. version number for :ref:`ref-classes-cve-check`. Example::
  1371. CVE_VERSION = "2.39"
  1372. :term:`CVSDIR`
  1373. The directory in which files checked out under the CVS system are
  1374. stored.
  1375. :term:`CXX`
  1376. The minimal command and arguments used to run the C++ compiler.
  1377. :term:`CXXFLAGS`
  1378. Specifies the flags to pass to the C++ compiler. This variable is
  1379. exported to an environment variable and thus made visible to the
  1380. software being built during the compilation step.
  1381. Default initialization for :term:`CXXFLAGS` varies depending on what is
  1382. being built:
  1383. - :term:`TARGET_CXXFLAGS` when building for
  1384. the target
  1385. - :term:`BUILD_CXXFLAGS` when building for the
  1386. build host (i.e. ``-native``)
  1387. - :term:`BUILDSDK_CXXFLAGS` when building
  1388. for an SDK (i.e. ``nativesdk-``)
  1389. :term:`D`
  1390. The destination directory. The location in the :term:`Build Directory`
  1391. where components are installed by the
  1392. :ref:`ref-tasks-install` task. This location defaults
  1393. to::
  1394. ${WORKDIR}/image
  1395. .. note::
  1396. Tasks that read from or write to this directory should run under
  1397. :ref:`fakeroot <overview-manual/concepts:fakeroot and pseudo>`.
  1398. :term:`DATE`
  1399. The date the build was started. Dates appear using the year, month,
  1400. and day (YMD) format (e.g. "20150209" for February 9th, 2015).
  1401. :term:`DATETIME`
  1402. The date and time on which the current build started. The format is
  1403. suitable for timestamps.
  1404. :term:`DEBIAN_NOAUTONAME`
  1405. When the :ref:`ref-classes-debian` class is inherited,
  1406. which is the default behavior, :term:`DEBIAN_NOAUTONAME` specifies a
  1407. particular package should not be renamed according to Debian library
  1408. package naming. You must use the package name as an override when you
  1409. set this variable. Here is an example from the ``fontconfig`` recipe::
  1410. DEBIAN_NOAUTONAME:fontconfig-utils = "1"
  1411. :term:`DEBIANNAME`
  1412. When the :ref:`ref-classes-debian` class is inherited,
  1413. which is the default behavior, :term:`DEBIANNAME` allows you to override
  1414. the library name for an individual package. Overriding the library
  1415. name in these cases is rare. You must use the package name as an
  1416. override when you set this variable. Here is an example from the
  1417. ``dbus`` recipe::
  1418. DEBIANNAME:${PN} = "dbus-1"
  1419. :term:`DEBUG_BUILD`
  1420. Specifies to build packages with debugging information. This
  1421. influences the value of the :term:`SELECTED_OPTIMIZATION` variable.
  1422. :term:`DEBUG_OPTIMIZATION`
  1423. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  1424. compiling a system for debugging. This variable defaults to "-O
  1425. -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe".
  1426. :term:`DEBUG_PREFIX_MAP`
  1427. Allows to set C compiler options, such as ``-fdebug-prefix-map``,
  1428. ``-fmacro-prefix-map``, and ``-ffile-prefix-map``, which allow to
  1429. replace build-time paths by install-time ones in the debugging sections
  1430. of binaries. This makes compiler output files location independent,
  1431. at the cost of having to pass an extra command to tell the debugger
  1432. where source files are.
  1433. This is used by the Yocto Project to guarantee
  1434. :doc:`/test-manual/reproducible-builds` even when the source code of
  1435. a package uses the ``__FILE__`` or ``assert()`` macros. See the
  1436. `reproducible-builds.org <https://reproducible-builds.org/docs/build-path/>`__
  1437. website for details.
  1438. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1439. not intended to be user-configurable.
  1440. :term:`DEFAULT_PREFERENCE`
  1441. Specifies a weak bias for recipe selection priority.
  1442. The most common usage of this is variable is to set it to "-1" within
  1443. a recipe for a development version of a piece of software. Using the
  1444. variable in this way causes the stable version of the recipe to build
  1445. by default in the absence of :term:`PREFERRED_VERSION` being used to
  1446. build the development version.
  1447. .. note::
  1448. The bias provided by :term:`DEFAULT_PREFERENCE` is weak and is overridden
  1449. by :term:`BBFILE_PRIORITY` if that variable is different between two
  1450. layers that contain different versions of the same recipe.
  1451. :term:`DEFAULT_TIMEZONE`
  1452. Specifies the time zone set in the image.
  1453. This variable causes the ``tzdata`` package to configure
  1454. ``${sysconfdir}/localtime`` accordingly. Valid values are all files
  1455. found in ``/usr/share/zoneinfo`` like ``CET`` or ``Asia/Baku``.
  1456. :term:`DEFAULTTUNE`
  1457. The default CPU and Application Binary Interface (ABI) tunings (i.e.
  1458. the "tune") used by the OpenEmbedded build system. The
  1459. :term:`DEFAULTTUNE` helps define
  1460. :term:`TUNE_FEATURES`.
  1461. The default tune is either implicitly or explicitly set by the
  1462. machine (:term:`MACHINE`). However, you can override
  1463. the setting using available tunes as defined with
  1464. :term:`AVAILTUNES`.
  1465. :term:`DEPENDS`
  1466. Lists a recipe's build-time dependencies. These are dependencies on
  1467. other recipes whose contents (e.g. headers and shared libraries) are
  1468. needed by the recipe at build time.
  1469. As an example, consider a recipe ``foo`` that contains the following
  1470. assignment::
  1471. DEPENDS = "bar"
  1472. The practical effect of the previous assignment is that all files
  1473. installed by bar will be available in the appropriate staging sysroot,
  1474. given by the :term:`STAGING_DIR* <STAGING_DIR>` variables, by the time
  1475. the :ref:`ref-tasks-configure` task for ``foo`` runs. This mechanism is
  1476. implemented by having :ref:`ref-tasks-configure` depend on the
  1477. :ref:`ref-tasks-populate_sysroot` task of each recipe listed in
  1478. :term:`DEPENDS`, through a
  1479. ``[``\ :ref:`deptask <bitbake-user-manual/bitbake-user-manual-metadata:variable flags>`\ ``]``
  1480. declaration in the :ref:`ref-classes-base` class.
  1481. .. note::
  1482. It seldom is necessary to reference, for example, :term:`STAGING_DIR_HOST`
  1483. explicitly. The standard classes and build-related variables are
  1484. configured to automatically use the appropriate staging sysroots.
  1485. As another example, :term:`DEPENDS` can also be used to add utilities
  1486. that run on the build machine during the build. For example, a recipe
  1487. that makes use of a code generator built by the recipe ``codegen``
  1488. might have the following::
  1489. DEPENDS = "codegen-native"
  1490. For more
  1491. information, see the :ref:`ref-classes-native` class and
  1492. the :term:`EXTRANATIVEPATH` variable.
  1493. .. note::
  1494. - :term:`DEPENDS` is a list of recipe names. Or, to be more precise,
  1495. it is a list of :term:`PROVIDES` names, which
  1496. usually match recipe names. Putting a package name such as
  1497. "foo-dev" in :term:`DEPENDS` does not make sense. Use "foo"
  1498. instead, as this will put files from all the packages that make
  1499. up ``foo``, which includes those from ``foo-dev``, into the
  1500. sysroot.
  1501. - One recipe having another recipe in :term:`DEPENDS` does not by
  1502. itself add any runtime dependencies between the packages
  1503. produced by the two recipes. However, as explained in the
  1504. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  1505. section in the Yocto Project Overview and Concepts Manual,
  1506. runtime dependencies will often be added automatically, meaning
  1507. :term:`DEPENDS` alone is sufficient for most recipes.
  1508. - Counterintuitively, :term:`DEPENDS` is often necessary even for
  1509. recipes that install precompiled components. For example, if
  1510. ``libfoo`` is a precompiled library that links against
  1511. ``libbar``, then linking against ``libfoo`` requires both
  1512. ``libfoo`` and ``libbar`` to be available in the sysroot.
  1513. Without a :term:`DEPENDS` from the recipe that installs ``libfoo``
  1514. to the recipe that installs ``libbar``, other recipes might
  1515. fail to link against ``libfoo``.
  1516. For information on runtime dependencies, see the :term:`RDEPENDS`
  1517. variable. You can also see the
  1518. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  1519. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`"
  1520. sections in the BitBake User Manual for additional information on tasks
  1521. and dependencies.
  1522. :term:`DEPLOY_DIR`
  1523. Points to the general area that the OpenEmbedded build system uses to
  1524. place images, packages, SDKs, and other output files that are ready
  1525. to be used outside of the build system. By default, this directory
  1526. resides within the :term:`Build Directory` as ``${TMPDIR}/deploy``.
  1527. For more information on the structure of the Build Directory, see
  1528. ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section.
  1529. For more detail on the contents of the ``deploy`` directory, see the
  1530. ":ref:`overview-manual/concepts:images`",
  1531. ":ref:`overview-manual/concepts:package feeds`", and
  1532. ":ref:`overview-manual/concepts:application development sdk`" sections all in the
  1533. Yocto Project Overview and Concepts Manual.
  1534. :term:`DEPLOY_DIR_DEB`
  1535. Points to the area that the OpenEmbedded build system uses to place
  1536. Debian packages that are ready to be used outside of the build
  1537. system. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1538. ":ref:`ref-classes-package_deb`".
  1539. The BitBake configuration file initially defines the
  1540. :term:`DEPLOY_DIR_DEB` variable as a sub-folder of
  1541. :term:`DEPLOY_DIR`::
  1542. DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
  1543. The :ref:`ref-classes-package_deb` class uses the
  1544. :term:`DEPLOY_DIR_DEB` variable to make sure the
  1545. :ref:`ref-tasks-package_write_deb` task
  1546. writes Debian packages into the appropriate folder. For more
  1547. information on how packaging works, see the
  1548. ":ref:`overview-manual/concepts:package feeds`" section
  1549. in the Yocto Project Overview and Concepts Manual.
  1550. :term:`DEPLOY_DIR_IMAGE`
  1551. Points to the area that the OpenEmbedded build system uses to place
  1552. images and other associated output files that are ready to be
  1553. deployed onto the target machine. The directory is machine-specific
  1554. as it contains the ``${MACHINE}`` name. By default, this directory
  1555. resides within the :term:`Build Directory` as
  1556. ``${DEPLOY_DIR}/images/${MACHINE}/``.
  1557. It must not be used directly in recipes when deploying files. Instead,
  1558. it's only useful when a recipe needs to "read" a file already deployed
  1559. by a dependency. So, it should be filled with the contents of
  1560. :term:`DEPLOYDIR` by the :ref:`ref-classes-deploy` class or with the
  1561. contents of :term:`IMGDEPLOYDIR` by the :ref:`ref-classes-image` class.
  1562. For more information on the structure of the :term:`Build Directory`, see
  1563. ":ref:`ref-manual/structure:the build directory --- \`\`build/\`\``" section.
  1564. For more detail on the contents of the ``deploy`` directory, see the
  1565. ":ref:`overview-manual/concepts:images`" and
  1566. ":ref:`overview-manual/concepts:application development sdk`" sections both in
  1567. the Yocto Project Overview and Concepts Manual.
  1568. :term:`DEPLOY_DIR_IPK`
  1569. Points to the area that the OpenEmbedded build system uses to place
  1570. IPK packages that are ready to be used outside of the build system.
  1571. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1572. ":ref:`ref-classes-package_ipk`".
  1573. The BitBake configuration file initially defines this variable as a
  1574. sub-folder of :term:`DEPLOY_DIR`::
  1575. DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
  1576. The :ref:`ref-classes-package_ipk` class uses the :term:`DEPLOY_DIR_IPK`
  1577. variable to make sure the :ref:`ref-tasks-package_write_ipk` task
  1578. writes IPK packages into the appropriate folder. For more information
  1579. on how packaging works, see the
  1580. ":ref:`overview-manual/concepts:package feeds`" section
  1581. in the Yocto Project Overview and Concepts Manual.
  1582. :term:`DEPLOY_DIR_RPM`
  1583. Points to the area that the OpenEmbedded build system uses to place
  1584. RPM packages that are ready to be used outside of the build system.
  1585. This variable applies only when :term:`PACKAGE_CLASSES` contains
  1586. ":ref:`ref-classes-package_rpm`".
  1587. The BitBake configuration file initially defines this variable as a
  1588. sub-folder of :term:`DEPLOY_DIR`::
  1589. DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
  1590. The :ref:`ref-classes-package_rpm` class uses the
  1591. :term:`DEPLOY_DIR_RPM` variable to make sure the
  1592. :ref:`ref-tasks-package_write_rpm` task
  1593. writes RPM packages into the appropriate folder. For more information
  1594. on how packaging works, see the
  1595. ":ref:`overview-manual/concepts:package feeds`" section
  1596. in the Yocto Project Overview and Concepts Manual.
  1597. :term:`DEPLOYDIR`
  1598. When inheriting the :ref:`ref-classes-deploy` class, the
  1599. :term:`DEPLOYDIR` points to a temporary work area for deployed files that
  1600. is set in the :ref:`ref-classes-deploy` class as follows::
  1601. DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
  1602. Recipes inheriting the :ref:`ref-classes-deploy` class should copy files to be
  1603. deployed into :term:`DEPLOYDIR`, and the class will take care of copying
  1604. them into :term:`DEPLOY_DIR_IMAGE`
  1605. afterwards.
  1606. :term:`DESCRIPTION`
  1607. The package description used by package managers. If not set,
  1608. :term:`DESCRIPTION` takes the value of the :term:`SUMMARY`
  1609. variable.
  1610. :term:`DEV_PKG_DEPENDENCY`
  1611. Provides an easy way for recipes to disable or adjust the runtime recommendation
  1612. (:term:`RRECOMMENDS`) of the ``${PN}-dev`` package on the main
  1613. (``${PN}``) package.
  1614. :term:`DISABLE_STATIC`
  1615. Used in order to disable static linking by default (in order to save
  1616. space, since static libraries are often unused in embedded systems.)
  1617. The default value is " --disable-static", however it can be set to ""
  1618. in order to enable static linking if desired. Certain recipes do this
  1619. individually, and also there is a
  1620. ``meta/conf/distro/include/no-static-libs.inc`` include file that
  1621. disables static linking for a number of recipes. Some software
  1622. packages or build tools (such as CMake) have explicit support for
  1623. enabling / disabling static linking, and in those cases
  1624. :term:`DISABLE_STATIC` is not used.
  1625. :term:`DISTRO`
  1626. The short name of the distribution. For information on the long name
  1627. of the distribution, see the :term:`DISTRO_NAME`
  1628. variable.
  1629. The :term:`DISTRO` variable corresponds to a distribution configuration
  1630. file whose root name is the same as the variable's argument and whose
  1631. filename extension is ``.conf``. For example, the distribution
  1632. configuration file for the Poky distribution is named ``poky.conf``
  1633. and resides in the ``meta-poky/conf/distro`` directory of the
  1634. :term:`Source Directory`.
  1635. Within that ``poky.conf`` file, the :term:`DISTRO` variable is set as
  1636. follows::
  1637. DISTRO = "poky"
  1638. Distribution configuration files are located in a ``conf/distro``
  1639. directory within the :term:`Metadata` that contains the
  1640. distribution configuration. The value for :term:`DISTRO` must not contain
  1641. spaces, and is typically all lower-case.
  1642. .. note::
  1643. If the :term:`DISTRO` variable is blank, a set of default configurations
  1644. are used, which are specified within
  1645. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1646. :term:`DISTRO_CODENAME`
  1647. Specifies a codename for the distribution being built.
  1648. :term:`DISTRO_EXTRA_RDEPENDS`
  1649. Specifies a list of distro-specific packages to add to all images.
  1650. This variable takes effect through ``packagegroup-base`` so the
  1651. variable only really applies to the more full-featured images that
  1652. include ``packagegroup-base``. You can use this variable to keep
  1653. distro policy out of generic images. As with all other distro
  1654. variables, you set this variable in the distro ``.conf`` file.
  1655. :term:`DISTRO_EXTRA_RRECOMMENDS`
  1656. Specifies a list of distro-specific packages to add to all images if
  1657. the packages exist. The packages might not exist or be empty (e.g.
  1658. kernel modules). The list of packages are automatically installed but
  1659. you can remove them.
  1660. :term:`DISTRO_FEATURES`
  1661. The software support you want in your distribution for various
  1662. features. You define your distribution features in the distribution
  1663. configuration file.
  1664. In most cases, the presence or absence of a feature in
  1665. :term:`DISTRO_FEATURES` is translated to the appropriate option supplied
  1666. to the configure script during the
  1667. :ref:`ref-tasks-configure` task for recipes that
  1668. optionally support the feature. For example, specifying "x11" in
  1669. :term:`DISTRO_FEATURES`, causes every piece of software built for the
  1670. target that can optionally support X11 to have its X11 support
  1671. enabled.
  1672. .. note::
  1673. Just enabling :term:`DISTRO_FEATURES` alone doesn't
  1674. enable feature support for packages. Mechanisms such as making
  1675. :term:`PACKAGECONFIG` track :term:`DISTRO_FEATURES` are used
  1676. to enable/disable package features.
  1677. Two more examples are Bluetooth and NFS support. For a more complete
  1678. list of features that ships with the Yocto Project and that you can
  1679. provide with this variable, see the ":ref:`ref-features-distro`" section.
  1680. :term:`DISTRO_FEATURES_BACKFILL`
  1681. A space-separated list of features to be added to :term:`DISTRO_FEATURES`
  1682. if not also present in :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`.
  1683. This variable is set in the ``meta/conf/bitbake.conf`` file. It is
  1684. not intended to be user-configurable. It is best to just reference
  1685. the variable to see which distro features are being
  1686. :ref:`backfilled <ref-features-backfill>` for all distro configurations.
  1687. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`
  1688. A space-separated list of features from :term:`DISTRO_FEATURES_BACKFILL`
  1689. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  1690. to :term:`DISTRO_FEATURES`) during the build.
  1691. This corresponds to an opt-out mechanism. When new default distro
  1692. features are introduced, distribution maintainers can review (`consider`)
  1693. them and decide to exclude them from the
  1694. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  1695. combination of :term:`DISTRO_FEATURES_BACKFILL` and
  1696. :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  1697. add new default features without breaking existing distributions.
  1698. :term:`DISTRO_FEATURES_DEFAULT`
  1699. A convenience variable that gives you the default list of distro
  1700. features with the exception of any features specific to the C library
  1701. (``libc``).
  1702. When creating a custom distribution, you might find it useful to be
  1703. able to reuse the default
  1704. :term:`DISTRO_FEATURES` options without the
  1705. need to write out the full set. Here is an example that uses
  1706. :term:`DISTRO_FEATURES_DEFAULT` from a custom distro configuration file::
  1707. DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} myfeature"
  1708. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1709. Specifies a list of features that if present in the target
  1710. :term:`DISTRO_FEATURES` value should be
  1711. included in :term:`DISTRO_FEATURES` when building native recipes. This
  1712. variable is used in addition to the features filtered using the
  1713. :term:`DISTRO_FEATURES_NATIVE`
  1714. variable.
  1715. :term:`DISTRO_FEATURES_FILTER_NATIVESDK`
  1716. Specifies a list of features that if present in the target
  1717. :term:`DISTRO_FEATURES` value should be included in
  1718. :term:`DISTRO_FEATURES` when building :ref:`ref-classes-nativesdk`
  1719. recipes. This variable is used in addition to the features filtered using
  1720. the :term:`DISTRO_FEATURES_NATIVESDK` variable.
  1721. :term:`DISTRO_FEATURES_NATIVE`
  1722. Specifies a list of features that should be included in
  1723. :term:`DISTRO_FEATURES` when building native
  1724. recipes. This variable is used in addition to the features filtered
  1725. using the
  1726. :term:`DISTRO_FEATURES_FILTER_NATIVE`
  1727. variable.
  1728. :term:`DISTRO_FEATURES_NATIVESDK`
  1729. Specifies a list of features that should be included in
  1730. :term:`DISTRO_FEATURES` when building
  1731. :ref:`ref-classes-nativesdk` recipes. This variable is used
  1732. in addition to the features filtered using the
  1733. :term:`DISTRO_FEATURES_FILTER_NATIVESDK` variable.
  1734. :term:`DISTRO_NAME`
  1735. The long name of the distribution. For information on the short name
  1736. of the distribution, see the :term:`DISTRO` variable.
  1737. The :term:`DISTRO_NAME` variable corresponds to a distribution
  1738. configuration file whose root name is the same as the variable's
  1739. argument and whose filename extension is ``.conf``. For example, the
  1740. distribution configuration file for the Poky distribution is named
  1741. ``poky.conf`` and resides in the ``meta-poky/conf/distro`` directory
  1742. of the :term:`Source Directory`.
  1743. Within that ``poky.conf`` file, the :term:`DISTRO_NAME` variable is set
  1744. as follows::
  1745. DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
  1746. Distribution configuration files are located in a ``conf/distro``
  1747. directory within the :term:`Metadata` that contains the
  1748. distribution configuration.
  1749. .. note::
  1750. If the :term:`DISTRO_NAME` variable is blank, a set of default
  1751. configurations are used, which are specified within
  1752. ``meta/conf/distro/defaultsetup.conf`` also in the Source Directory.
  1753. :term:`DISTRO_VERSION`
  1754. The version of the distribution.
  1755. :term:`DISTROOVERRIDES`
  1756. A colon-separated list of overrides specific to the current
  1757. distribution. By default, this list includes the value of
  1758. :term:`DISTRO`.
  1759. You can extend :term:`DISTROOVERRIDES` to add extra overrides that should
  1760. apply to the distribution.
  1761. The underlying mechanism behind :term:`DISTROOVERRIDES` is simply that it
  1762. is included in the default value of
  1763. :term:`OVERRIDES`.
  1764. Here is an example from :yocto_git:`meta-poky/conf/distro/poky-tiny.conf
  1765. </poky/tree/meta-poky/conf/distro/poky-tiny.conf>`::
  1766. DISTROOVERRIDES = "poky:poky-tiny"
  1767. :term:`DL_DIR`
  1768. The central download directory used by the build process to store
  1769. downloads. By default, :term:`DL_DIR` gets files suitable for mirroring
  1770. for everything except Git repositories. If you want tarballs of Git
  1771. repositories, use the
  1772. :term:`BB_GENERATE_MIRROR_TARBALLS`
  1773. variable.
  1774. You can set this directory by defining the :term:`DL_DIR` variable in the
  1775. ``conf/local.conf`` file. This directory is self-maintaining and you
  1776. should not have to touch it. By default, the directory is
  1777. ``downloads`` in the :term:`Build Directory`::
  1778. #DL_DIR ?= "${TOPDIR}/downloads"
  1779. To specify a different download directory,
  1780. simply remove the comment from the line and provide your directory.
  1781. During a first build, the system downloads many different source code
  1782. tarballs from various upstream projects. Downloading can take a
  1783. while, particularly if your network connection is slow. Tarballs are
  1784. all stored in the directory defined by :term:`DL_DIR` and the build
  1785. system looks there first to find source tarballs.
  1786. .. note::
  1787. When wiping and rebuilding, you can preserve this directory to
  1788. speed up this part of subsequent builds.
  1789. You can safely share this directory between multiple builds on the
  1790. same development machine. For additional information on how the build
  1791. process gets source files when working behind a firewall or proxy
  1792. server, see this specific question in the ":doc:`faq`"
  1793. chapter. You can also refer to the
  1794. ":yocto_wiki:`Working Behind a Network Proxy </Working_Behind_a_Network_Proxy>`"
  1795. Wiki page.
  1796. :term:`DOC_COMPRESS`
  1797. When inheriting the :ref:`ref-classes-compress_doc`
  1798. class, this variable sets the compression policy used when the
  1799. OpenEmbedded build system compresses manual and info pages. By
  1800. default, the compression method used is gz (gzip). Other policies
  1801. available are xz and bz2.
  1802. For information on policies and on how to use this variable, see the
  1803. comments in the ``meta/classes-recipe/compress_doc.bbclass`` file.
  1804. :term:`DT_FILES`
  1805. Space-separated list of device tree source files to compile using
  1806. a recipe that inherits the :ref:`ref-classes-devicetree` class. These
  1807. are relative to the :term:`DT_FILES_PATH`.
  1808. For convenience, both ``.dts`` and ``.dtb`` extensions can be used.
  1809. Use an empty string (default) to build all device tree sources within
  1810. the :term:`DT_FILES_PATH` directory.
  1811. :term:`DT_FILES_PATH`
  1812. When compiling out-of-tree device tree sources using a recipe that
  1813. inherits the :ref:`ref-classes-devicetree` class, this variable specifies
  1814. the path to the directory containing dts files to build.
  1815. Defaults to the :term:`S` directory.
  1816. :term:`DT_PADDING_SIZE`
  1817. When inheriting the :ref:`ref-classes-devicetree` class, this variable
  1818. specifies the size of padding appended to the device tree blob, used as
  1819. extra space typically for additional properties during boot.
  1820. :term:`EFI_PROVIDER`
  1821. When building bootable images (i.e. where ``hddimg``, ``iso``, or
  1822. ``wic.vmdk`` is in :term:`IMAGE_FSTYPES`), the
  1823. :term:`EFI_PROVIDER` variable specifies the EFI bootloader to use. The
  1824. default is "grub-efi", but "systemd-boot" can be used instead.
  1825. See the :ref:`ref-classes-systemd-boot` and :ref:`ref-classes-image-live`
  1826. classes for more information.
  1827. :term:`EFI_UKI_DIR`
  1828. The primary place for the UKI image inside the EFI System Partition.
  1829. :term:`EFI_UKI_PATH`
  1830. The path for the UKI image inside the root filesystem.
  1831. :term:`ENABLE_BINARY_LOCALE_GENERATION`
  1832. Variable that controls which locales for ``glibc`` are generated
  1833. during the build (useful if the target device has 64Mbytes of RAM or
  1834. less).
  1835. :term:`ERR_REPORT_DIR`
  1836. When used with the :ref:`ref-classes-report-error` class, specifies the
  1837. path used for storing the debug files created by the :ref:`error reporting
  1838. tool <dev-manual/error-reporting-tool:using the error reporting tool>`,
  1839. which allows you to submit build errors you encounter to a central
  1840. database. By default, the value of this variable is
  1841. ``${``\ :term:`LOG_DIR`\ ``}/error-report``.
  1842. You can set :term:`ERR_REPORT_DIR` to the path you want the error
  1843. reporting tool to store the debug files as follows in your
  1844. ``local.conf`` file::
  1845. ERR_REPORT_DIR = "path"
  1846. :term:`ERROR_QA`
  1847. Specifies the quality assurance checks whose failures are reported as
  1848. errors by the OpenEmbedded build system. You set this variable in
  1849. your distribution configuration file. For a list of the checks you
  1850. can control with this variable, see the
  1851. ":ref:`ref-classes-insane`" section.
  1852. :term:`ESDK_CLASS_INHERIT_DISABLE`
  1853. A list of classes to remove from the :term:`INHERIT`
  1854. value globally within the extensible SDK configuration. The
  1855. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class sets the
  1856. default value::
  1857. ESDK_CLASS_INHERIT_DISABLE ?= "buildhistory icecc"
  1858. Some classes are not generally applicable within the extensible SDK
  1859. context. You can use this variable to disable those classes.
  1860. For additional information on how to customize the extensible SDK's
  1861. configuration, see the
  1862. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1863. section in the Yocto Project Application Development and the
  1864. Extensible Software Development Kit (eSDK) manual.
  1865. :term:`ESDK_LOCALCONF_ALLOW`
  1866. A list of variables allowed through from the OpenEmbedded build
  1867. system configuration into the extensible SDK configuration. By
  1868. default, the list of variables is empty and is set in the
  1869. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class.
  1870. This list overrides the variables specified using the
  1871. :term:`ESDK_LOCALCONF_REMOVE` variable as well as
  1872. other variables automatically added due to the "/" character
  1873. being found at the start of the
  1874. value, which is usually indicative of being a path and thus might not
  1875. be valid on the system where the SDK is installed.
  1876. For additional information on how to customize the extensible SDK's
  1877. configuration, see the
  1878. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1879. section in the Yocto Project Application Development and the
  1880. Extensible Software Development Kit (eSDK) manual.
  1881. :term:`ESDK_LOCALCONF_REMOVE`
  1882. A list of variables not allowed through from the OpenEmbedded build
  1883. system configuration into the extensible SDK configuration. Usually,
  1884. these are variables that are specific to the machine on which the
  1885. build system is running and thus would be potentially problematic
  1886. within the extensible SDK.
  1887. By default, :term:`ESDK_LOCALCONF_REMOVE` is set in the
  1888. :ref:`populate-sdk-ext <ref-classes-populate-sdk-*>` class and
  1889. excludes the following variables:
  1890. - :term:`CONF_VERSION`
  1891. - :term:`BB_NUMBER_THREADS`
  1892. - :term:`BB_NUMBER_PARSE_THREADS`
  1893. - :term:`PARALLEL_MAKE`
  1894. - :term:`PRSERV_HOST`
  1895. - :term:`SSTATE_MIRRORS` :term:`DL_DIR`
  1896. - :term:`SSTATE_DIR` :term:`TMPDIR`
  1897. - :term:`BB_SERVER_TIMEOUT`
  1898. For additional information on how to customize the extensible SDK's
  1899. configuration, see the
  1900. ":ref:`sdk-manual/appendix-customizing:configuring the extensible sdk`"
  1901. section in the Yocto Project Application Development and the
  1902. Extensible Software Development Kit (eSDK) manual.
  1903. :term:`EXCLUDE_FROM_SHLIBS`
  1904. Triggers the OpenEmbedded build system's shared libraries resolver to
  1905. exclude an entire package when scanning for shared libraries.
  1906. .. note::
  1907. The shared libraries resolver's functionality results in part from
  1908. the internal function ``package_do_shlibs``, which is part of the
  1909. :ref:`ref-tasks-package` task. You should be aware that the shared
  1910. libraries resolver might implicitly define some dependencies between
  1911. packages.
  1912. The :term:`EXCLUDE_FROM_SHLIBS` variable is similar to the
  1913. :term:`PRIVATE_LIBS` variable, which excludes a
  1914. package's particular libraries only and not the whole package.
  1915. Use the :term:`EXCLUDE_FROM_SHLIBS` variable by setting it to "1" for a
  1916. particular package::
  1917. EXCLUDE_FROM_SHLIBS = "1"
  1918. :term:`EXCLUDE_FROM_WORLD`
  1919. Directs BitBake to exclude a recipe from world builds (i.e.
  1920. ``bitbake world``). During world builds, BitBake locates, parses and
  1921. builds all recipes found in every layer exposed in the
  1922. ``bblayers.conf`` configuration file.
  1923. To exclude a recipe from a world build using this variable, set the
  1924. variable to "1" in the recipe.
  1925. .. note::
  1926. Recipes added to :term:`EXCLUDE_FROM_WORLD` may still be built during a
  1927. world build in order to satisfy dependencies of other recipes. Adding
  1928. a recipe to :term:`EXCLUDE_FROM_WORLD` only ensures that the recipe is not
  1929. explicitly added to the list of build targets in a world build.
  1930. :term:`EXTENDPE`
  1931. Used with file and pathnames to create a prefix for a recipe's
  1932. version based on the recipe's :term:`PE` value. If :term:`PE`
  1933. is set and greater than zero for a recipe, :term:`EXTENDPE` becomes that
  1934. value (e.g if :term:`PE` is equal to "1" then :term:`EXTENDPE` becomes "1").
  1935. If a recipe's :term:`PE` is not set (the default) or is equal to zero,
  1936. :term:`EXTENDPE` becomes "".
  1937. See the :term:`STAMP` variable for an example.
  1938. :term:`EXTENDPKGV`
  1939. The full package version specification as it appears on the final
  1940. packages produced by a recipe. The variable's value is normally used
  1941. to fix a runtime dependency to the exact same version of another
  1942. package in the same recipe::
  1943. RDEPENDS:${PN}-additional-module = "${PN} (= ${EXTENDPKGV})"
  1944. The dependency relationships are intended to force the package
  1945. manager to upgrade these types of packages in lock-step.
  1946. :term:`EXTERNAL_KERNEL_TOOLS`
  1947. When set, the :term:`EXTERNAL_KERNEL_TOOLS` variable indicates that these
  1948. tools are not in the source tree.
  1949. When kernel tools are available in the tree, they are preferred over
  1950. any externally installed tools. Setting the :term:`EXTERNAL_KERNEL_TOOLS`
  1951. variable tells the OpenEmbedded build system to prefer the installed
  1952. external tools. See the :ref:`ref-classes-kernel-yocto` class in
  1953. ``meta/classes-recipe`` to see how the variable is used.
  1954. :term:`EXTERNAL_KERNEL_DEVICETREE`
  1955. When inheriting :ref:`ref-classes-kernel-fitimage` and a
  1956. :term:`PREFERRED_PROVIDER` for ``virtual/dtb`` set to ``devicetree``, the
  1957. variable :term:`EXTERNAL_KERNEL_DEVICETREE` can be used to specify a
  1958. directory containing one or more compiled device tree or device tree
  1959. overlays to use.
  1960. :term:`KERNEL_LOCALVERSION`
  1961. This variable allows to append a string to the version
  1962. of the kernel image. This corresponds to the ``CONFIG_LOCALVERSION``
  1963. kernel configuration parameter.
  1964. Using this variable is only useful when you are using a kernel recipe
  1965. inheriting the :ref:`ref-classes-kernel` class, and which doesn't
  1966. already set a local version. Therefore, setting this variable has no
  1967. impact on ``linux-yocto`` kernels.
  1968. :term:`EXTERNAL_TOOLCHAIN`
  1969. When you intend to use an
  1970. :ref:`external toolchain <dev-manual/external-toolchain:optionally using an external toolchain>`,
  1971. this variable allows to specify the directory where this toolchain was
  1972. installed.
  1973. :term:`EXTERNALSRC`
  1974. When inheriting the :ref:`ref-classes-externalsrc`
  1975. class, this variable points to the source tree, which is outside of
  1976. the OpenEmbedded build system. When set, this variable sets the
  1977. :term:`S` variable, which is what the OpenEmbedded build
  1978. system uses to locate unpacked recipe source code.
  1979. See the ":ref:`ref-classes-externalsrc`" section for details. You
  1980. can also find information on how to use this variable in the
  1981. ":ref:`dev-manual/building:building software from an external source`"
  1982. section in the Yocto Project Development Tasks Manual.
  1983. :term:`EXTERNALSRC_BUILD`
  1984. When inheriting the :ref:`ref-classes-externalsrc`
  1985. class, this variable points to the directory in which the recipe's
  1986. source code is built, which is outside of the OpenEmbedded build
  1987. system. When set, this variable sets the :term:`B` variable,
  1988. which is what the OpenEmbedded build system uses to locate the
  1989. :term:`Build Directory`.
  1990. See the ":ref:`ref-classes-externalsrc`" section for details. You
  1991. can also find information on how to use this variable in the
  1992. ":ref:`dev-manual/building:building software from an external source`"
  1993. section in the Yocto Project Development Tasks Manual.
  1994. :term:`EXTRA_AUTORECONF`
  1995. For recipes inheriting the :ref:`ref-classes-autotools`
  1996. class, you can use :term:`EXTRA_AUTORECONF` to specify extra options to
  1997. pass to the ``autoreconf`` command that is executed during the
  1998. :ref:`ref-tasks-configure` task.
  1999. The default value is "--exclude=autopoint".
  2000. :term:`EXTRA_IMAGE_FEATURES`
  2001. A list of additional features to include in an image. When listing
  2002. more than one feature, separate them with a space.
  2003. Typically, you configure this variable in your ``local.conf`` file,
  2004. which is found in the :term:`Build Directory`. Although you can use this
  2005. variable from within a recipe, best practices dictate that you do not.
  2006. .. note::
  2007. To enable primary features from within the image recipe, use the
  2008. :term:`IMAGE_FEATURES` variable.
  2009. Here are some examples of features you can add:
  2010. - "dbg-pkgs" --- adds -dbg packages for all installed packages including
  2011. symbol information for debugging and profiling.
  2012. - "debug-tweaks" --- makes an image suitable for debugging. For example, allows root logins without passwords and
  2013. enables post-installation logging. See the 'allow-empty-password' and
  2014. 'post-install-logging' features in the ":ref:`ref-features-image`"
  2015. section for more information.
  2016. - "dev-pkgs" --- adds -dev packages for all installed packages. This is
  2017. useful if you want to develop against the libraries in the image.
  2018. - "read-only-rootfs" --- creates an image whose root filesystem is
  2019. read-only. See the
  2020. ":ref:`dev-manual/read-only-rootfs:creating a read-only root filesystem`"
  2021. section in the Yocto Project Development Tasks Manual for more
  2022. information
  2023. - "tools-debug" --- adds debugging tools such as gdb and strace.
  2024. - "tools-sdk" --- adds development tools such as gcc, make,
  2025. pkgconfig and so forth.
  2026. - "tools-testapps" --- adds useful testing tools
  2027. such as ts_print, aplay, arecord and so forth.
  2028. For a complete list of image features that ships with the Yocto
  2029. Project, see the ":ref:`ref-features-image`" section.
  2030. For an example that shows how to customize your image by using this
  2031. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2032. section in the Yocto Project Development Tasks Manual.
  2033. :term:`EXTRA_IMAGECMD`
  2034. Specifies additional options for the image creation command that has
  2035. been specified in :term:`IMAGE_CMD`. When setting
  2036. this variable, use an override for the associated image type. Here is
  2037. an example::
  2038. EXTRA_IMAGECMD:ext3 ?= "-i 4096"
  2039. :term:`EXTRA_IMAGEDEPENDS`
  2040. A list of recipes to build that do not provide packages for
  2041. installing into the root filesystem.
  2042. Sometimes a recipe is required to build the final image but is not
  2043. needed in the root filesystem. You can use the :term:`EXTRA_IMAGEDEPENDS`
  2044. variable to list these recipes and thus specify the dependencies. A
  2045. typical example is a required bootloader in a machine configuration.
  2046. .. note::
  2047. To add packages to the root filesystem, see the various
  2048. :term:`RDEPENDS` and :term:`RRECOMMENDS` variables.
  2049. :term:`EXTRA_OECMAKE`
  2050. Additional `CMake <https://cmake.org/overview/>`__ options. See the
  2051. :ref:`ref-classes-cmake` class for additional information.
  2052. :term:`EXTRA_OECONF`
  2053. Additional ``configure`` script options. See
  2054. :term:`PACKAGECONFIG_CONFARGS` for
  2055. additional information on passing configure script options.
  2056. :term:`EXTRA_OEMAKE`
  2057. Additional GNU ``make`` options.
  2058. Because the :term:`EXTRA_OEMAKE` defaults to "", you need to set the
  2059. variable to specify any required GNU options.
  2060. :term:`PARALLEL_MAKE` and
  2061. :term:`PARALLEL_MAKEINST` also make use of
  2062. :term:`EXTRA_OEMAKE` to pass the required flags.
  2063. :term:`EXTRA_OESCONS`
  2064. When inheriting the :ref:`ref-classes-scons` class, this
  2065. variable specifies additional configuration options you want to pass
  2066. to the ``scons`` command line.
  2067. :term:`EXTRA_OEMESON`
  2068. Additional `Meson <https://mesonbuild.com/>`__ options. See the
  2069. :ref:`ref-classes-meson` class for additional information.
  2070. In addition to standard Meson options, such options correspond to
  2071. `Meson build options <https://mesonbuild.com/Build-options.html>`__
  2072. defined in the ``meson_options.txt`` file in the sources to build.
  2073. Here is an example::
  2074. EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled"
  2075. Note that any custom value for the Meson ``--buildtype`` option
  2076. should be set through the :term:`MESON_BUILDTYPE` variable.
  2077. :term:`EXTRA_USERS_PARAMS`
  2078. When inheriting the :ref:`ref-classes-extrausers`
  2079. class, this variable provides image level user and group operations.
  2080. This is a more global method of providing user and group
  2081. configuration as compared to using the
  2082. :ref:`ref-classes-useradd` class, which ties user and
  2083. group configurations to a specific recipe.
  2084. The set list of commands you can configure using the
  2085. :term:`EXTRA_USERS_PARAMS` is shown in the
  2086. :ref:`ref-classes-extrausers` class. These commands map to the normal
  2087. Unix commands of the same names::
  2088. # EXTRA_USERS_PARAMS = "\
  2089. # useradd -p '' tester; \
  2090. # groupadd developers; \
  2091. # userdel nobody; \
  2092. # groupdel -g video; \
  2093. # groupmod -g 1020 developers; \
  2094. # usermod -s /bin/sh tester; \
  2095. # "
  2096. Hardcoded passwords are supported via the ``-p`` parameters for
  2097. ``useradd`` or ``usermod``, but only hashed.
  2098. Here is an example that adds two users named "tester-jim" and "tester-sue" and assigns
  2099. passwords. First on host, create the (escaped) password hash::
  2100. printf "%q" $(mkpasswd -m sha256crypt tester01)
  2101. The resulting hash is set to a variable and used in ``useradd`` command parameters::
  2102. inherit extrausers
  2103. PASSWD = "\$X\$ABC123\$A-Long-Hash"
  2104. EXTRA_USERS_PARAMS = "\
  2105. useradd -p '${PASSWD}' tester-jim; \
  2106. useradd -p '${PASSWD}' tester-sue; \
  2107. "
  2108. Finally, here is an example that sets the root password::
  2109. inherit extrausers
  2110. EXTRA_USERS_PARAMS = "\
  2111. usermod -p '${PASSWD}' root; \
  2112. "
  2113. .. note::
  2114. From a security perspective, hardcoding a default password is not
  2115. generally a good idea or even legal in some jurisdictions. It is
  2116. recommended that you do not do this if you are building a production
  2117. image.
  2118. Additionally there is a special ``passwd-expire`` command that will
  2119. cause the password for a user to be expired and thus force changing it
  2120. on first login, for example::
  2121. EXTRA_USERS_PARAMS += " useradd myuser; passwd-expire myuser;"
  2122. .. note::
  2123. At present, ``passwd-expire`` may only work for remote logins when
  2124. using OpenSSH and not dropbear as an SSH server.
  2125. :term:`EXTRANATIVEPATH`
  2126. A list of subdirectories of
  2127. ``${``\ :term:`STAGING_BINDIR_NATIVE`\ ``}``
  2128. added to the beginning of the environment variable ``PATH``. As an
  2129. example, the following prepends
  2130. "${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:" to
  2131. ``PATH``::
  2132. EXTRANATIVEPATH = "foo bar"
  2133. :term:`FAKEROOT`
  2134. See :term:`bitbake:FAKEROOT` in the BitBake manual.
  2135. :term:`FAKEROOTBASEENV`
  2136. See :term:`bitbake:FAKEROOTBASEENV` in the BitBake manual.
  2137. :term:`FAKEROOTCMD`
  2138. See :term:`bitbake:FAKEROOTCMD` in the BitBake manual.
  2139. :term:`FAKEROOTDIRS`
  2140. See :term:`bitbake:FAKEROOTDIRS` in the BitBake manual.
  2141. :term:`FAKEROOTENV`
  2142. See :term:`bitbake:FAKEROOTENV` in the BitBake manual.
  2143. :term:`FAKEROOTNOENV`
  2144. See :term:`bitbake:FAKEROOTNOENV` in the BitBake manual.
  2145. :term:`FEATURE_PACKAGES`
  2146. Defines one or more packages to include in an image when a specific
  2147. item is included in :term:`IMAGE_FEATURES`.
  2148. When setting the value, :term:`FEATURE_PACKAGES` should have the name of
  2149. the feature item as an override. Here is an example::
  2150. FEATURE_PACKAGES_widget = "package1 package2"
  2151. In this example, if "widget" were added to :term:`IMAGE_FEATURES`,
  2152. package1 and package2 would be included in the image.
  2153. .. note::
  2154. Packages installed by features defined through :term:`FEATURE_PACKAGES`
  2155. are often package groups. While similarly named, you should not
  2156. confuse the :term:`FEATURE_PACKAGES` variable with package groups, which
  2157. are discussed elsewhere in the documentation.
  2158. :term:`FEED_DEPLOYDIR_BASE_URI`
  2159. Points to the base URL of the server and location within the
  2160. document-root that provides the metadata and packages required by
  2161. OPKG to support runtime package management of IPK packages. You set
  2162. this variable in your ``local.conf`` file.
  2163. Consider the following example::
  2164. FEED_DEPLOYDIR_BASE_URI = "http://192.168.7.1/BOARD-dir"
  2165. This example assumes you are serving
  2166. your packages over HTTP and your databases are located in a directory
  2167. named ``BOARD-dir``, which is underneath your HTTP server's
  2168. document-root. In this case, the OpenEmbedded build system generates
  2169. a set of configuration files for you in your target that work with
  2170. the feed.
  2171. :term:`FETCHCMD`
  2172. See :term:`bitbake:FETCHCMD` in the BitBake manual.
  2173. :term:`FILE`
  2174. See :term:`bitbake:FILE` in the BitBake manual.
  2175. :term:`FILES`
  2176. The list of files and directories that are placed in a package. The
  2177. :term:`PACKAGES` variable lists the packages
  2178. generated by a recipe.
  2179. To use the :term:`FILES` variable, provide a package name override that
  2180. identifies the resulting package. Then, provide a space-separated
  2181. list of files or paths that identify the files you want included as
  2182. part of the resulting package. Here is an example::
  2183. FILES:${PN} += "${bindir}/mydir1 ${bindir}/mydir2/myfile"
  2184. .. note::
  2185. - When specifying files or paths, you can pattern match using
  2186. Python's
  2187. `glob <https://docs.python.org/3/library/glob.html>`__
  2188. syntax. For details on the syntax, see the documentation by
  2189. following the previous link.
  2190. - When specifying paths as part of the :term:`FILES` variable, it is
  2191. good practice to use appropriate path variables. For example,
  2192. use ``${sysconfdir}`` rather than ``/etc``, or ``${bindir}``
  2193. rather than ``/usr/bin``. You can find a list of these
  2194. variables at the top of the ``meta/conf/bitbake.conf`` file in
  2195. the :term:`Source Directory`. You will also
  2196. find the default values of the various ``FILES:*`` variables in
  2197. this file.
  2198. If some of the files you provide with the :term:`FILES` variable are
  2199. editable and you know they should not be overwritten during the
  2200. package update process by the Package Management System (PMS), you
  2201. can identify these files so that the PMS will not overwrite them. See
  2202. the :term:`CONFFILES` variable for information on
  2203. how to identify these files to the PMS.
  2204. :term:`FILES_SOLIBSDEV`
  2205. Defines the file specification to match
  2206. :term:`SOLIBSDEV`. In other words,
  2207. :term:`FILES_SOLIBSDEV` defines the full path name of the development
  2208. symbolic link (symlink) for shared libraries on the target platform.
  2209. The following statement from the ``bitbake.conf`` shows how it is
  2210. set::
  2211. FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
  2212. :term:`FILESEXTRAPATHS`
  2213. A colon-separated list to extend the search path the OpenEmbedded build
  2214. system uses when looking for files and patches as it processes recipes
  2215. and append files. The default directories BitBake uses when it processes
  2216. recipes are initially defined by the :term:`FILESPATH` variable. You can
  2217. extend :term:`FILESPATH` variable by using :term:`FILESEXTRAPATHS`.
  2218. Best practices dictate that you accomplish this by using
  2219. :term:`FILESEXTRAPATHS` from within a ``.bbappend`` file and that you
  2220. prepend paths as follows::
  2221. FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
  2222. In the above example, the build system first
  2223. looks for files in a directory that has the same name as the
  2224. corresponding append file.
  2225. .. note::
  2226. When extending :term:`FILESEXTRAPATHS`, be sure to use the immediate
  2227. expansion (``:=``) operator. Immediate expansion makes sure that
  2228. BitBake evaluates :term:`THISDIR` at the time the
  2229. directive is encountered rather than at some later time when
  2230. expansion might result in a directory that does not contain the
  2231. files you need.
  2232. Also, include the trailing separating colon character if you are
  2233. prepending. The trailing colon character is necessary because you
  2234. are directing BitBake to extend the path by prepending directories
  2235. to the search path.
  2236. Here is another common use::
  2237. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  2238. In this example, the build system extends the
  2239. :term:`FILESPATH` variable to include a directory named ``files`` that is
  2240. in the same directory as the corresponding append file.
  2241. This next example specifically adds three paths::
  2242. FILESEXTRAPATHS:prepend := "path_1:path_2:path_3:"
  2243. A final example shows how you can extend the search path and include
  2244. a :term:`MACHINE`-specific override, which is useful
  2245. in a BSP layer::
  2246. FILESEXTRAPATHS:prepend:intel-x86-common := "${THISDIR}/${PN}:"
  2247. The previous statement appears in the
  2248. ``linux-yocto-dev.bbappend`` file, which is found in the
  2249. :ref:`overview-manual/development-environment:yocto project source repositories` in
  2250. ``meta-intel/common/recipes-kernel/linux``. Here, the machine
  2251. override is a special :term:`PACKAGE_ARCH`
  2252. definition for multiple ``meta-intel`` machines.
  2253. .. note::
  2254. For a layer that supports a single BSP, the override could just be
  2255. the value of :term:`MACHINE`.
  2256. By prepending paths in ``.bbappend`` files, you allow multiple append
  2257. files that reside in different layers but are used for the same
  2258. recipe to correctly extend the path.
  2259. :term:`FILESOVERRIDES`
  2260. A colon-separated list to specify a subset of :term:`OVERRIDES` used by
  2261. the OpenEmbedded build system for creating :term:`FILESPATH`. The
  2262. :term:`FILESOVERRIDES` variable uses overrides to automatically extend
  2263. the :term:`FILESPATH` variable. For an example of how that works, see the
  2264. :term:`FILESPATH` variable description. Additionally, you find more
  2265. information on how overrides are handled in the
  2266. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  2267. section of the BitBake User Manual.
  2268. By default, the :term:`FILESOVERRIDES` variable is defined as::
  2269. FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
  2270. .. note::
  2271. Do not hand-edit the :term:`FILESOVERRIDES` variable. The values match up
  2272. with expected overrides and are used in an expected manner by the
  2273. build system.
  2274. :term:`FILESPATH`
  2275. A colon-separated list specifying the default set of directories the
  2276. OpenEmbedded build system uses when searching for patches and files.
  2277. During the build process, BitBake searches each directory in
  2278. :term:`FILESPATH` in the specified order when looking for files and
  2279. patches specified by each ``file://`` URI in a recipe's
  2280. :term:`SRC_URI` statements.
  2281. The default value for the :term:`FILESPATH` variable is defined in the
  2282. :ref:`ref-classes-base` class found in ``meta/classes-global`` in the
  2283. :term:`Source Directory`::
  2284. FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", \
  2285. "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  2286. The
  2287. :term:`FILESPATH` variable is automatically extended using the overrides
  2288. from the :term:`FILESOVERRIDES` variable.
  2289. .. note::
  2290. - Do not hand-edit the :term:`FILESPATH` variable. If you want the
  2291. build system to look in directories other than the defaults,
  2292. extend the :term:`FILESPATH` variable by using the
  2293. :term:`FILESEXTRAPATHS` variable.
  2294. - Be aware that the default :term:`FILESPATH` directories do not map
  2295. to directories in custom layers where append files
  2296. (``.bbappend``) are used. If you want the build system to find
  2297. patches or files that reside with your append files, you need
  2298. to extend the :term:`FILESPATH` variable by using the
  2299. :term:`FILESEXTRAPATHS` variable.
  2300. You can take advantage of this searching behavior in useful ways. For
  2301. example, consider a case where there is the following directory structure
  2302. for general and machine-specific configurations::
  2303. files/defconfig
  2304. files/MACHINEA/defconfig
  2305. files/MACHINEB/defconfig
  2306. Also in the example, the :term:`SRC_URI` statement contains
  2307. "file://defconfig". Given this scenario, you can set
  2308. :term:`MACHINE` to "MACHINEA" and cause the build
  2309. system to use files from ``files/MACHINEA``. Set :term:`MACHINE` to
  2310. "MACHINEB" and the build system uses files from ``files/MACHINEB``.
  2311. Finally, for any machine other than "MACHINEA" and "MACHINEB", the
  2312. build system uses files from ``files/defconfig``.
  2313. You can find out more about the patching process in the
  2314. ":ref:`overview-manual/concepts:patching`" section
  2315. in the Yocto Project Overview and Concepts Manual and the
  2316. ":ref:`dev-manual/new-recipe:patching code`" section in
  2317. the Yocto Project Development Tasks Manual. See the
  2318. :ref:`ref-tasks-patch` task as well.
  2319. :term:`FILESYSTEM_PERMS_TABLES`
  2320. Allows you to define your own file permissions settings tables as part
  2321. of your configuration for the packaging process. For example, suppose
  2322. you need a consistent set of custom permissions for a set of groups
  2323. and users across an entire work project. It is best to do this in the
  2324. packages themselves but this is not always possible.
  2325. By default, the OpenEmbedded build system uses the ``fs-perms.txt``,
  2326. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` which are
  2327. located in the ``meta/files`` folder in the :term:`Source Directory`. If
  2328. you create your own permission setting table files, you should place
  2329. those in your layer.
  2330. You can override the value of :term:`FILESYSTEM_PERMS_TABLES` variable
  2331. in your distribution configuration file to point to your custom
  2332. permission table files. You can specify one or more file permissions
  2333. setting tables. The paths that you specify to these files must be defined
  2334. within the :term:`BBPATH` variable.
  2335. In order to disable the volatile log, which is enabled by default, one
  2336. can remove the ``files/fs-perms-volatile-log.txt`` value from
  2337. ``FILESYSTEM_PERMS_TABLES``. Similarly, in order to disable the volatile
  2338. tmp, one can remove the ``files/fs-perms-volatile-tmp.txt`` value.
  2339. For guidance on how to define your own file permissions settings
  2340. tables, examine the existing ``fs-perms.txt``,
  2341. ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` files.
  2342. :term:`FIT_ADDRESS_CELLS`
  2343. Specifies the value of the ``#address-cells`` value for the
  2344. description of the FIT image.
  2345. The default value is set to "1" by the :ref:`ref-classes-kernel-fitimage`
  2346. class, which corresponds to 32 bit addresses.
  2347. For platforms that need to set 64 bit addresses, for example in
  2348. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  2349. set this value to "2", as two 32 bit values (cells) will be needed
  2350. to represent such addresses.
  2351. Here is an example setting "0x400000000" as a load address::
  2352. FIT_ADDRESS_CELLS = "2"
  2353. UBOOT_LOADADDRESS= "0x04 0x00000000"
  2354. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  2355. :term:`FIT_CONF_DEFAULT_DTB`
  2356. Specifies the default device tree binary (dtb) file for a FIT image
  2357. when multiple ones are provided.
  2358. This variable is used in the :ref:`ref-classes-kernel-fitimage` class.
  2359. :term:`FIT_DESC`
  2360. Specifies the description string encoded into a FIT image. The
  2361. default value is set by the :ref:`ref-classes-kernel-fitimage` class as
  2362. follows::
  2363. FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  2364. :term:`FIT_GENERATE_KEYS`
  2365. Decides whether to generate the keys for signing the FIT image if
  2366. they don't already exist. The keys are created in
  2367. :term:`UBOOT_SIGN_KEYDIR`. The default value is set to "0"
  2368. by the :ref:`ref-classes-kernel-fitimage` class.
  2369. :term:`FIT_HASH_ALG`
  2370. Specifies the hash algorithm used in creating the FIT Image.
  2371. This variable is set by default to "sha256" by the
  2372. :ref:`ref-classes-kernel-fitimage` class.
  2373. :term:`FIT_KERNEL_COMP_ALG`
  2374. The compression algorithm to use for the kernel image inside the FIT Image.
  2375. At present, the only supported values are "gzip" (default), "lzo" or "none".
  2376. If you set this variable to anything other than "none" you may also need
  2377. to set :term:`FIT_KERNEL_COMP_ALG_EXTENSION`.
  2378. This variable is used in the :ref:`ref-classes-kernel-uboot` class.
  2379. :term:`FIT_KERNEL_COMP_ALG_EXTENSION`
  2380. File extension corresponding to :term:`FIT_KERNEL_COMP_ALG`. The default
  2381. value is set ".gz" by the :ref:`ref-classes-kernel-uboot` class. If you
  2382. set :term:`FIT_KERNEL_COMP_ALG` to "lzo", you may want to set this
  2383. variable to ".lzo".
  2384. :term:`FIT_KEY_GENRSA_ARGS`
  2385. Arguments to ``openssl genrsa`` for generating a RSA private key for
  2386. signing the FIT image. The default value is set to "-F4" by the
  2387. :ref:`ref-classes-kernel-fitimage` class.
  2388. :term:`FIT_KEY_REQ_ARGS`
  2389. Arguments to ``openssl req`` for generating a certificate for signing
  2390. the FIT image. The default value is "-batch -new" by the
  2391. :ref:`ref-classes-kernel-fitimage` class, "batch" for
  2392. non interactive mode and "new" for generating new keys.
  2393. :term:`FIT_KEY_SIGN_PKCS`
  2394. Format for the public key certificate used for signing the FIT image.
  2395. The default value is set to "x509" by the
  2396. :ref:`ref-classes-kernel-fitimage` class.
  2397. :term:`FIT_SIGN_ALG`
  2398. Specifies the signature algorithm used in creating the FIT Image.
  2399. This variable is set by default to "rsa2048" by the
  2400. :ref:`ref-classes-kernel-fitimage` class.
  2401. :term:`FIT_PAD_ALG`
  2402. Specifies the padding algorithm used in creating the FIT Image.
  2403. The default value is set to "pkcs-1.5" by the
  2404. :ref:`ref-classes-kernel-fitimage` class.
  2405. :term:`FIT_SIGN_INDIVIDUAL`
  2406. If set to "1", then the :ref:`ref-classes-kernel-fitimage`
  2407. class will sign the kernel, dtb and ramdisk images individually in addition
  2408. to signing the FIT image itself. This could be useful if you are
  2409. intending to verify signatures in another context than booting via
  2410. U-Boot.
  2411. This variable is set to "0" by default.
  2412. :term:`FIT_SIGN_NUMBITS`
  2413. Size of the private key used in the FIT image, in number of bits.
  2414. The default value for this variable is set to "2048"
  2415. by the :ref:`ref-classes-kernel-fitimage` class.
  2416. :term:`FONT_EXTRA_RDEPENDS`
  2417. When inheriting the :ref:`ref-classes-fontcache` class,
  2418. this variable specifies the runtime dependencies for font packages.
  2419. By default, the :term:`FONT_EXTRA_RDEPENDS` is set to "fontconfig-utils".
  2420. :term:`FONT_PACKAGES`
  2421. When inheriting the :ref:`ref-classes-fontcache` class, this variable
  2422. identifies packages containing font files that need to be cached by
  2423. Fontconfig. By default, the :ref:`ref-classes-fontcache` class assumes
  2424. that fonts are in the recipe's main package (i.e.
  2425. ``${``\ :term:`PN`\ ``}``). Use this variable if fonts you
  2426. need are in a package other than that main package.
  2427. :term:`FORCE_RO_REMOVE`
  2428. Forces the removal of the packages listed in ``ROOTFS_RO_UNNEEDED``
  2429. during the generation of the root filesystem.
  2430. Set the variable to "1" to force the removal of these packages.
  2431. :term:`FULL_OPTIMIZATION`
  2432. The options to pass in :term:`TARGET_CFLAGS` and :term:`CFLAGS` when
  2433. compiling an optimized system. This variable defaults to "-O2 -pipe
  2434. ${DEBUG_FLAGS}".
  2435. :term:`GCCPIE`
  2436. Enables Position Independent Executables (PIE) within the GNU C
  2437. Compiler (GCC). Enabling PIE in the GCC makes Return Oriented
  2438. Programming (ROP) attacks much more difficult to execute.
  2439. By default the ``security_flags.inc`` file enables PIE by setting the
  2440. variable as follows::
  2441. GCCPIE ?= "--enable-default-pie"
  2442. :term:`GCCVERSION`
  2443. Specifies the default version of the GNU C Compiler (GCC) used for
  2444. compilation. By default, :term:`GCCVERSION` is set to "8.x" in the
  2445. ``meta/conf/distro/include/tcmode-default.inc`` include file::
  2446. GCCVERSION ?= "8.%"
  2447. You can override this value by setting it in a
  2448. configuration file such as the ``local.conf``.
  2449. :term:`GDB`
  2450. The minimal command and arguments to run the GNU Debugger.
  2451. :term:`GIR_EXTRA_LIBS_PATH`
  2452. Allows to specify an extra search path for ``.so`` files
  2453. in GLib related recipes using GObject introspection,
  2454. and which do not compile without this setting.
  2455. See the ":ref:`dev-manual/gobject-introspection:enabling gobject introspection support`"
  2456. section for details.
  2457. :term:`GITDIR`
  2458. The directory in which a local copy of a Git repository is stored
  2459. when it is cloned.
  2460. :term:`GITHUB_BASE_URI`
  2461. When inheriting the :ref:`ref-classes-github-releases`
  2462. class, specifies the base URL for fetching releases for the github
  2463. project you wish to fetch sources from. The default value is as follows::
  2464. GITHUB_BASE_URI ?= "https://github.com/${BPN}/${BPN}/releases/"
  2465. :term:`GLIBC_GENERATE_LOCALES`
  2466. Specifies the list of GLIBC locales to generate should you not wish
  2467. to generate all LIBC locals, which can be time consuming.
  2468. .. note::
  2469. If you specifically remove the locale ``en_US.UTF-8``, you must set
  2470. :term:`IMAGE_LINGUAS` appropriately.
  2471. You can set :term:`GLIBC_GENERATE_LOCALES` in your ``local.conf`` file.
  2472. By default, all locales are generated::
  2473. GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 en_US.UTF-8"
  2474. :term:`GO_IMPORT`
  2475. When inheriting the :ref:`ref-classes-go` class, this mandatory variable
  2476. sets the import path for the Go package that will be created for the code
  2477. to build. If you have a ``go.mod`` file in the source directory, this
  2478. typically matches the path in the ``module`` line in this file.
  2479. Other Go programs importing this package will use this path.
  2480. Here is an example setting from the
  2481. :yocto_git:`go-helloworld_0.1.bb </poky/tree/meta/recipes-extended/go-examples/go-helloworld_0.1.bb>`
  2482. recipe::
  2483. GO_IMPORT = "golang.org/x/example"
  2484. :term:`GO_INSTALL`
  2485. When inheriting the :ref:`ref-classes-go` class, this optional variable
  2486. specifies which packages in the sources should be compiled and
  2487. installed in the Go build space by the
  2488. `go install <https://go.dev/ref/mod#go-install>`__ command.
  2489. Here is an example setting from the
  2490. :oe_git:`crucible </meta-openembedded/tree/meta-oe/recipes-support/crucible/>`
  2491. recipe::
  2492. GO_INSTALL = "\
  2493. ${GO_IMPORT}/cmd/crucible \
  2494. ${GO_IMPORT}/cmd/habtool \
  2495. "
  2496. By default, :term:`GO_INSTALL` is defined as::
  2497. GO_INSTALL ?= "${GO_IMPORT}/..."
  2498. The ``...`` wildcard means that it will catch all
  2499. packages found in the sources.
  2500. See the :term:`GO_INSTALL_FILTEROUT` variable for
  2501. filtering out unwanted packages from the ones
  2502. found from the :term:`GO_INSTALL` value.
  2503. :term:`GO_INSTALL_FILTEROUT`
  2504. When using the Go "vendor" mechanism to bring in dependencies for a Go
  2505. package, the default :term:`GO_INSTALL` setting, which uses the ``...``
  2506. wildcard, will include the vendored packages in the build, which produces
  2507. incorrect results.
  2508. There are also some Go packages that are structured poorly, so that the
  2509. ``...`` wildcard results in building example or test code that should not
  2510. be included in the build, or could fail to build.
  2511. This optional variable allows for filtering out a subset of the sources.
  2512. It defaults to excluding everything under the ``vendor`` subdirectory
  2513. under package's main directory. This is the normal location for vendored
  2514. packages, but it can be overridden by a recipe to filter out other
  2515. subdirectories if needed.
  2516. :term:`GO_WORKDIR`
  2517. When using Go Modules, the current working directory must be the directory
  2518. containing the ``go.mod`` file, or one of its subdirectories. When the
  2519. ``go`` tool is used, it will automatically look for the ``go.mod`` file
  2520. in the Go working directory or in any parent directory, but not in
  2521. subdirectories.
  2522. When using the :ref:`ref-classes-go-mod` class to use Go modules,
  2523. the optional :term:`GO_WORKDIR` variable, defaulting to the value
  2524. of :term:`GO_IMPORT`, allows to specify a different Go working directory.
  2525. :term:`GROUPADD_PARAM`
  2526. When inheriting the :ref:`ref-classes-useradd` class,
  2527. this variable specifies for a package what parameters should be
  2528. passed to the ``groupadd`` command if you wish to add a group to the
  2529. system when the package is installed.
  2530. Here is an example from the ``dbus`` recipe::
  2531. GROUPADD_PARAM:${PN} = "-r netdev"
  2532. More than one group can be added by separating each set of different
  2533. groups' parameters with a semicolon.
  2534. Here is an example adding multiple groups from the ``useradd-example.bb``
  2535. file in the ``meta-skeleton`` layer::
  2536. GROUPADD_PARAM:${PN} = "-g 880 group1; -g 890 group2"
  2537. For information on the standard Linux shell command
  2538. ``groupadd``, see https://linux.die.net/man/8/groupadd.
  2539. :term:`GROUPMEMS_PARAM`
  2540. When inheriting the :ref:`ref-classes-useradd` class,
  2541. this variable specifies for a package what parameters should be
  2542. passed to the ``groupmems`` command if you wish to modify the members
  2543. of a group when the package is installed.
  2544. For information on the standard Linux shell command ``groupmems``,
  2545. see https://linux.die.net/man/8/groupmems.
  2546. :term:`GRUB_GFXSERIAL`
  2547. Configures the GNU GRand Unified Bootloader (GRUB) to have graphics
  2548. and serial in the boot menu. Set this variable to "1" in your
  2549. ``local.conf`` or distribution configuration file to enable graphics
  2550. and serial in the menu.
  2551. See the :ref:`ref-classes-grub-efi` class for more
  2552. information on how this variable is used.
  2553. :term:`GRUB_OPTS`
  2554. Additional options to add to the GNU GRand Unified Bootloader (GRUB)
  2555. configuration. Use a semi-colon character (``;``) to separate
  2556. multiple options.
  2557. The :term:`GRUB_OPTS` variable is optional. See the
  2558. :ref:`ref-classes-grub-efi` class for more information
  2559. on how this variable is used.
  2560. :term:`GRUB_TIMEOUT`
  2561. Specifies the timeout before executing the default ``LABEL`` in the
  2562. GNU GRand Unified Bootloader (GRUB).
  2563. The :term:`GRUB_TIMEOUT` variable is optional. See the
  2564. :ref:`ref-classes-grub-efi` class for more information
  2565. on how this variable is used.
  2566. :term:`GTKIMMODULES_PACKAGES`
  2567. When inheriting the :ref:`ref-classes-gtk-immodules-cache` class,
  2568. this variable specifies the packages that contain the GTK+ input
  2569. method modules being installed when the modules are in packages other
  2570. than the main package.
  2571. :term:`HGDIR`
  2572. See :term:`bitbake:HGDIR` in the BitBake manual.
  2573. :term:`HOMEPAGE`
  2574. Website where more information about the software the recipe is
  2575. building can be found.
  2576. :term:`HOST_ARCH`
  2577. The name of the target architecture, which is normally the same as
  2578. :term:`TARGET_ARCH`. The OpenEmbedded build system
  2579. supports many architectures. Here is an example list of architectures
  2580. supported. This list is by no means complete as the architecture is
  2581. configurable:
  2582. - arm
  2583. - i586
  2584. - x86_64
  2585. - powerpc
  2586. - powerpc64
  2587. - mips
  2588. - mipsel
  2589. :term:`HOST_CC_ARCH`
  2590. Specifies architecture-specific compiler flags that are passed to the
  2591. C compiler.
  2592. Default initialization for :term:`HOST_CC_ARCH` varies depending on what
  2593. is being built:
  2594. - :term:`TARGET_CC_ARCH` when building for the
  2595. target
  2596. - :term:`BUILD_CC_ARCH` when building for the build host (i.e.
  2597. ``-native``)
  2598. - ``BUILDSDK_CC_ARCH`` when building for an SDK (i.e.
  2599. ``nativesdk-``)
  2600. :term:`HOST_OS`
  2601. Specifies the name of the target operating system, which is normally
  2602. the same as the :term:`TARGET_OS`. The variable can
  2603. be set to "linux" for ``glibc``-based systems and to "linux-musl" for
  2604. ``musl``. For ARM/EABI targets, there are also "linux-gnueabi" and
  2605. "linux-musleabi" values possible.
  2606. :term:`HOST_PREFIX`
  2607. Specifies the prefix for the cross-compile toolchain. :term:`HOST_PREFIX`
  2608. is normally the same as :term:`TARGET_PREFIX`.
  2609. :term:`HOST_SYS`
  2610. Specifies the system, including the architecture and the operating
  2611. system, for which the build is occurring in the context of the
  2612. current recipe.
  2613. The OpenEmbedded build system automatically sets this variable based
  2614. on :term:`HOST_ARCH`,
  2615. :term:`HOST_VENDOR`, and
  2616. :term:`HOST_OS` variables.
  2617. .. note::
  2618. You do not need to set the variable yourself.
  2619. Consider these two examples:
  2620. - Given a native recipe on a 32-bit x86 machine running Linux, the
  2621. value is "i686-linux".
  2622. - Given a recipe being built for a little-endian MIPS target running
  2623. Linux, the value might be "mipsel-linux".
  2624. :term:`HOST_VENDOR`
  2625. Specifies the name of the vendor. :term:`HOST_VENDOR` is normally the
  2626. same as :term:`TARGET_VENDOR`.
  2627. :term:`HOSTTOOLS`
  2628. A space-separated list (filter) of tools on the build host that
  2629. should be allowed to be called from within build tasks. Using this
  2630. filter helps reduce the possibility of host contamination. If a tool
  2631. specified in the value of :term:`HOSTTOOLS` is not found on the build
  2632. host, the OpenEmbedded build system produces an error and the build
  2633. is not started.
  2634. For additional information, see
  2635. :term:`HOSTTOOLS_NONFATAL`.
  2636. :term:`HOSTTOOLS_NONFATAL`
  2637. A space-separated list (filter) of tools on the build host that
  2638. should be allowed to be called from within build tasks. Using this
  2639. filter helps reduce the possibility of host contamination. Unlike
  2640. :term:`HOSTTOOLS`, the OpenEmbedded build system
  2641. does not produce an error if a tool specified in the value of
  2642. :term:`HOSTTOOLS_NONFATAL` is not found on the build host. Thus, you can
  2643. use :term:`HOSTTOOLS_NONFATAL` to filter optional host tools.
  2644. :term:`ICECC_CLASS_DISABLE`
  2645. Identifies user classes that you do not want the Icecream distributed
  2646. compile support to consider. This variable is used by the
  2647. :ref:`ref-classes-icecc` class. You set this variable in
  2648. your ``local.conf`` file.
  2649. When you list classes using this variable, the recipes inheriting
  2650. those classes will not benefit from distributed compilation across
  2651. remote hosts. Instead they will be built locally.
  2652. :term:`ICECC_DISABLED`
  2653. Disables or enables the ``icecc`` (Icecream) function. For more
  2654. information on this function and best practices for using this
  2655. variable, see the ":ref:`ref-classes-icecc`"
  2656. section.
  2657. Setting this variable to "1" in your ``local.conf`` disables the
  2658. function::
  2659. ICECC_DISABLED ??= "1"
  2660. To enable the function, set the variable as follows::
  2661. ICECC_DISABLED = ""
  2662. :term:`ICECC_ENV_EXEC`
  2663. Points to the ``icecc-create-env`` script that you provide. This
  2664. variable is used by the :ref:`ref-classes-icecc` class. You
  2665. set this variable in your ``local.conf`` file.
  2666. If you do not point to a script that you provide, the OpenEmbedded
  2667. build system uses the default script provided by the
  2668. :oe_git:`icecc-create-env_0.1.bb
  2669. </openembedded-core/tree/meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb>`
  2670. recipe, which is a modified version and not the one that comes with
  2671. ``icecream``.
  2672. :term:`ICECC_PARALLEL_MAKE`
  2673. Extra options passed to the ``make`` command during the
  2674. :ref:`ref-tasks-compile` task that specify parallel
  2675. compilation. This variable usually takes the form of "-j x", where x
  2676. represents the maximum number of parallel threads ``make`` can run.
  2677. .. note::
  2678. The options passed affect builds on all enabled machines on the
  2679. network, which are machines running the ``iceccd`` daemon.
  2680. If your enabled machines support multiple cores, coming up with the
  2681. maximum number of parallel threads that gives you the best
  2682. performance could take some experimentation since machine speed,
  2683. network lag, available memory, and existing machine loads can all
  2684. affect build time. Consequently, unlike the
  2685. :term:`PARALLEL_MAKE` variable, there is no
  2686. rule-of-thumb for setting :term:`ICECC_PARALLEL_MAKE` to achieve optimal
  2687. performance.
  2688. If you do not set :term:`ICECC_PARALLEL_MAKE`, the build system does not
  2689. use it (i.e. the system does not detect and assign the number of
  2690. cores as is done with :term:`PARALLEL_MAKE`).
  2691. :term:`ICECC_PATH`
  2692. The location of the ``icecc`` binary. You can set this variable in
  2693. your ``local.conf`` file. If your ``local.conf`` file does not define
  2694. this variable, the :ref:`ref-classes-icecc` class attempts
  2695. to define it by locating ``icecc`` using ``which``.
  2696. :term:`ICECC_RECIPE_DISABLE`
  2697. Identifies user recipes that you do not want the Icecream distributed
  2698. compile support to consider. This variable is used by the
  2699. :ref:`ref-classes-icecc` class. You set this variable in
  2700. your ``local.conf`` file.
  2701. When you list recipes using this variable, you are excluding them
  2702. from distributed compilation across remote hosts. Instead they will
  2703. be built locally.
  2704. :term:`ICECC_RECIPE_ENABLE`
  2705. Identifies user recipes that use an empty
  2706. :term:`PARALLEL_MAKE` variable that you want to
  2707. force remote distributed compilation on using the Icecream
  2708. distributed compile support. This variable is used by the
  2709. :ref:`ref-classes-icecc` class. You set this variable in
  2710. your ``local.conf`` file.
  2711. :term:`IMAGE_BASENAME`
  2712. The base name of image output files. This variable defaults to the
  2713. recipe name (``${``\ :term:`PN`\ ``}``).
  2714. :term:`IMAGE_BOOT_FILES`
  2715. A space-separated list of files installed into the boot partition
  2716. when preparing an image using the Wic tool with the
  2717. ``bootimg-partition`` source plugin. By default,
  2718. the files are
  2719. installed under the same name as the source files. To change the
  2720. installed name, separate it from the original name with a semi-colon
  2721. (;). Source files need to be located in
  2722. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2723. examples::
  2724. IMAGE_BOOT_FILES = "u-boot.img uImage;kernel"
  2725. IMAGE_BOOT_FILES = "u-boot.${UBOOT_SUFFIX} ${KERNEL_IMAGETYPE}"
  2726. Alternatively, source files can be picked up using a glob pattern. In
  2727. this case, the destination file must have the same name as the base
  2728. name of the source file path. To install files into a directory
  2729. within the target location, pass its name after a semi-colon (;).
  2730. Here are two examples::
  2731. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*"
  2732. IMAGE_BOOT_FILES = "bcm2835-bootfiles/*;boot/"
  2733. The first example
  2734. installs all files from ``${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles``
  2735. into the root of the target partition. The second example installs
  2736. the same files into a ``boot`` directory within the target partition.
  2737. You can find information on how to use the Wic tool in the
  2738. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2739. section of the Yocto Project Development Tasks Manual. Reference
  2740. material for Wic is located in the
  2741. ":doc:`/ref-manual/kickstart`" chapter.
  2742. :term:`IMAGE_BUILDINFO_FILE`
  2743. When using the :ref:`ref-classes-image-buildinfo` class,
  2744. specifies the file in the image to write the build information into. The
  2745. default value is "``${sysconfdir}/buildinfo``".
  2746. :term:`IMAGE_BUILDINFO_VARS`
  2747. When using the :ref:`ref-classes-image-buildinfo` class,
  2748. specifies the list of variables to include in the `Build Configuration`
  2749. section of the output file (as a space-separated list). Defaults to
  2750. ":term:`DISTRO` :term:`DISTRO_VERSION`".
  2751. :term:`IMAGE_CLASSES`
  2752. A list of classes that all images should inherit. This is typically used
  2753. to enable functionality across all image recipes.
  2754. Classes specified in :term:`IMAGE_CLASSES` must be located in the
  2755. ``classes-recipe/`` or ``classes/`` subdirectories.
  2756. :term:`IMAGE_CMD`
  2757. Specifies the command to create the image file for a specific image
  2758. type, which corresponds to the value set in
  2759. :term:`IMAGE_FSTYPES`, (e.g. ``ext3``,
  2760. ``btrfs``, and so forth). When setting this variable, you should use
  2761. an override for the associated type. Here is an example::
  2762. IMAGE_CMD:jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
  2763. --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 \
  2764. ${EXTRA_IMAGECMD}"
  2765. You typically do not need to set this variable unless you are adding
  2766. support for a new image type. For more examples on how to set this
  2767. variable, see the :ref:`ref-classes-image_types`
  2768. class file, which is ``meta/classes-recipe/image_types.bbclass``.
  2769. :term:`IMAGE_DEVICE_TABLES`
  2770. Specifies one or more files that contain custom device tables that
  2771. are passed to the ``makedevs`` command as part of creating an image.
  2772. These files list basic device nodes that should be created under
  2773. ``/dev`` within the image. If :term:`IMAGE_DEVICE_TABLES` is not set,
  2774. ``files/device_table-minimal.txt`` is used, which is located by
  2775. :term:`BBPATH`. For details on how you should write
  2776. device table files, see ``meta/files/device_table-minimal.txt`` as an
  2777. example.
  2778. :term:`IMAGE_EFI_BOOT_FILES`
  2779. A space-separated list of files installed into the boot partition
  2780. when preparing an image using the Wic tool with the
  2781. ``bootimg-efi`` source plugin. By default,
  2782. the files are
  2783. installed under the same name as the source files. To change the
  2784. installed name, separate it from the original name with a semi-colon
  2785. (;). Source files need to be located in
  2786. :term:`DEPLOY_DIR_IMAGE`. Here are two
  2787. examples::
  2788. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE};bz2"
  2789. IMAGE_EFI_BOOT_FILES = "${KERNEL_IMAGETYPE} microcode.cpio"
  2790. Alternatively, source files can be picked up using a glob pattern. In
  2791. this case, the destination file must have the same name as the base
  2792. name of the source file path. To install files into a directory
  2793. within the target location, pass its name after a semi-colon (;).
  2794. Here are two examples::
  2795. IMAGE_EFI_BOOT_FILES = "boot/loader/*"
  2796. IMAGE_EFI_BOOT_FILES = "boot/loader/*;boot/"
  2797. The first example
  2798. installs all files from ``${DEPLOY_DIR_IMAGE}/boot/loader/``
  2799. into the root of the target partition. The second example installs
  2800. the same files into a ``boot`` directory within the target partition.
  2801. You can find information on how to use the Wic tool in the
  2802. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  2803. section of the Yocto Project Development Tasks Manual. Reference
  2804. material for Wic is located in the
  2805. ":doc:`/ref-manual/kickstart`" chapter.
  2806. :term:`IMAGE_FEATURES`
  2807. The primary list of features to include in an image. Typically, you
  2808. configure this variable in an image recipe. Although you can use this
  2809. variable from your ``local.conf`` file, which is found in the
  2810. :term:`Build Directory`, best practices dictate that you do
  2811. not.
  2812. .. note::
  2813. To enable extra features from outside the image recipe, use the
  2814. :term:`EXTRA_IMAGE_FEATURES` variable.
  2815. For a list of image features that ships with the Yocto Project, see
  2816. the ":ref:`ref-features-image`" section.
  2817. For an example that shows how to customize your image by using this
  2818. variable, see the ":ref:`dev-manual/customizing-images:customizing images using custom \`\`image_features\`\` and \`\`extra_image_features\`\``"
  2819. section in the Yocto Project Development Tasks Manual.
  2820. :term:`IMAGE_FSTYPES`
  2821. Specifies the formats the OpenEmbedded build system uses during the
  2822. build when creating the root filesystem. For example, setting
  2823. :term:`IMAGE_FSTYPES` as follows causes the build system to create root
  2824. filesystems using two formats: ``.ext3`` and ``.tar.bz2``::
  2825. IMAGE_FSTYPES = "ext3 tar.bz2"
  2826. For the complete list of supported image formats from which you can
  2827. choose, see :term:`IMAGE_TYPES`.
  2828. .. note::
  2829. - If an image recipe uses the "inherit image" line and you are
  2830. setting :term:`IMAGE_FSTYPES` inside the recipe, you must set
  2831. :term:`IMAGE_FSTYPES` prior to using the "inherit image" line.
  2832. - Due to the way the OpenEmbedded build system processes this
  2833. variable, you cannot update its contents by using ``:append``
  2834. or ``:prepend``. You must use the ``+=`` operator to add one or
  2835. more options to the :term:`IMAGE_FSTYPES` variable.
  2836. :term:`IMAGE_INSTALL`
  2837. Used by recipes to specify the packages to install into an image
  2838. through the :ref:`ref-classes-image` class. Use the
  2839. :term:`IMAGE_INSTALL` variable with care to avoid ordering issues.
  2840. Image recipes set :term:`IMAGE_INSTALL` to specify the packages to
  2841. install into an image through :ref:`ref-classes-image`. Additionally,
  2842. there are "helper" classes such as the :ref:`ref-classes-core-image`
  2843. class which can take lists used with :term:`IMAGE_FEATURES` and turn
  2844. them into auto-generated entries in :term:`IMAGE_INSTALL` in addition
  2845. to its default contents.
  2846. When you use this variable, it is best to use it as follows::
  2847. IMAGE_INSTALL:append = " package-name"
  2848. Be sure to include the space
  2849. between the quotation character and the start of the package name or
  2850. names.
  2851. .. note::
  2852. - When working with a
  2853. :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  2854. image, do not use the :term:`IMAGE_INSTALL` variable to specify
  2855. packages for installation. Instead, use the
  2856. :term:`PACKAGE_INSTALL` variable, which
  2857. allows the initial RAM filesystem (:term:`Initramfs`) recipe to use a
  2858. fixed set of packages and not be affected by :term:`IMAGE_INSTALL`.
  2859. For information on creating an :term:`Initramfs`, see the
  2860. ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`"
  2861. section in the Yocto Project Development Tasks Manual.
  2862. - Using :term:`IMAGE_INSTALL` with the
  2863. :ref:`+= <bitbake-user-manual/bitbake-user-manual-metadata:appending (+=) and prepending (=+) with spaces>`
  2864. BitBake operator within the ``/conf/local.conf`` file or from
  2865. within an image recipe is not recommended. Use of this operator in
  2866. these ways can cause ordering issues. Since
  2867. :ref:`ref-classes-core-image` sets :term:`IMAGE_INSTALL` to a
  2868. default value using the
  2869. :ref:`?= <bitbake-user-manual/bitbake-user-manual-metadata:setting a default value (?=)>`
  2870. operator, using a ``+=`` operation against :term:`IMAGE_INSTALL`
  2871. results in unexpected behavior when used within
  2872. ``conf/local.conf``. Furthermore, the same operation from within an
  2873. image recipe may or may not succeed depending on the specific
  2874. situation. In both these cases, the behavior is contrary to how
  2875. most users expect the ``+=`` operator to work.
  2876. :term:`IMAGE_LINGUAS`
  2877. Specifies the list of locales to install into the image during the
  2878. root filesystem construction process. The OpenEmbedded build system
  2879. automatically splits locale files, which are used for localization,
  2880. into separate packages. Setting the :term:`IMAGE_LINGUAS` variable
  2881. ensures that any locale packages that correspond to packages already
  2882. selected for installation into the image are also installed. Here is
  2883. an example::
  2884. IMAGE_LINGUAS = "pt-br de-de"
  2885. In this example, the build system ensures any Brazilian Portuguese
  2886. and German locale files that correspond to packages in the image are
  2887. installed (i.e. ``*-locale-pt-br`` and ``*-locale-de-de`` as well as
  2888. ``*-locale-pt`` and ``*-locale-de``, since some software packages
  2889. only provide locale files by language and not by country-specific
  2890. language).
  2891. See the :term:`GLIBC_GENERATE_LOCALES`
  2892. variable for information on generating GLIBC locales.
  2893. :term:`IMAGE_LINK_NAME`
  2894. The name of the output image symlink (which does not include
  2895. the version part as :term:`IMAGE_NAME` does). The default value
  2896. is derived using the :term:`IMAGE_BASENAME` and
  2897. :term:`IMAGE_MACHINE_SUFFIX` variables::
  2898. IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}"
  2899. .. note::
  2900. It is possible to set this to "" to disable symlink creation,
  2901. however, you also need to set :term:`IMAGE_NAME` to still have
  2902. a reasonable value e.g.::
  2903. IMAGE_LINK_NAME = ""
  2904. IMAGE_NAME = "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  2905. :term:`IMAGE_MACHINE_SUFFIX`
  2906. Specifies the by default machine-specific suffix for image file names
  2907. (before the extension). The default value is set as follows::
  2908. IMAGE_MACHINE_SUFFIX ??= "-${MACHINE}"
  2909. The default :term:`DEPLOY_DIR_IMAGE` already has a :term:`MACHINE`
  2910. subdirectory, so you may find it unnecessary to also include this suffix
  2911. in the name of every image file. If you prefer to remove the suffix you
  2912. can set this variable to an empty string::
  2913. IMAGE_MACHINE_SUFFIX = ""
  2914. (Not to be confused with :term:`IMAGE_NAME_SUFFIX`.)
  2915. :term:`IMAGE_MANIFEST`
  2916. The manifest file for the image. This file lists all the installed
  2917. packages that make up the image. The file contains package
  2918. information on a line-per-package basis as follows::
  2919. packagename packagearch version
  2920. The :ref:`rootfs-postcommands <ref-classes-rootfs*>` class defines the manifest
  2921. file as follows::
  2922. IMAGE_MANIFEST ="${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.manifest"
  2923. The location is
  2924. derived using the :term:`IMGDEPLOYDIR`
  2925. and :term:`IMAGE_NAME` variables. You can find
  2926. information on how the image is created in the ":ref:`overview-manual/concepts:image generation`"
  2927. section in the Yocto Project Overview and Concepts Manual.
  2928. :term:`IMAGE_NAME`
  2929. The name of the output image files minus the extension. By default
  2930. this variable is set using the :term:`IMAGE_LINK_NAME`, and
  2931. :term:`IMAGE_VERSION_SUFFIX` variables::
  2932. IMAGE_NAME ?= "${IMAGE_LINK_NAME}${IMAGE_VERSION_SUFFIX}"
  2933. :term:`IMAGE_NAME_SUFFIX`
  2934. Suffix used for the image output filename --- defaults to ``".rootfs"``
  2935. to distinguish the image file from other files created during image
  2936. building; however if this suffix is redundant or not desired you can
  2937. clear the value of this variable (set the value to ""). For example,
  2938. this is typically cleared in :term:`Initramfs` image recipes.
  2939. :term:`IMAGE_OUTPUT_MANIFEST`
  2940. When inheriting the :ref:`ref-classes-image` class directly or through the
  2941. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST`
  2942. points to a manifest ``json`` file that lists what images were created by
  2943. various image creation tasks (as defined by the :term:`IMAGE_FSTYPES`
  2944. variable). It is set in the :ref:`ref-classes-image` class as follows::
  2945. IMAGE_OUTPUT_MANIFEST = "${IMAGE_OUTPUT_MANIFEST_DIR}/manifest.json"
  2946. :term:`IMAGE_OUTPUT_MANIFEST_DIR`
  2947. When inheriting the :ref:`ref-classes-image` class directly or through the
  2948. :ref:`ref-classes-core-image` class, the :term:`IMAGE_OUTPUT_MANIFEST_DIR` points to
  2949. a directory that stores a manifest ``json`` file that lists what
  2950. images were created by various image creation tasks (as defined by the
  2951. :term:`IMAGE_FSTYPES` variable). It is set in the :ref:`ref-classes-image`
  2952. class as follows::
  2953. IMAGE_OUTPUT_MANIFEST_DIR = "${WORKDIR}/deploy-image-output-manifest"
  2954. :term:`IMAGE_OVERHEAD_FACTOR`
  2955. Defines a multiplier that the build system applies to the initial
  2956. image size for cases when the multiplier times the returned disk
  2957. usage value for the image is greater than the sum of
  2958. :term:`IMAGE_ROOTFS_SIZE` and :term:`IMAGE_ROOTFS_EXTRA_SPACE`. The result of
  2959. the multiplier applied to the initial image size creates free disk
  2960. space in the image as overhead. By default, the build process uses a
  2961. multiplier of 1.3 for this variable. This default value results in
  2962. 30% free disk space added to the image when this method is used to
  2963. determine the final generated image size. You should be aware that
  2964. post install scripts and the package management system uses disk
  2965. space inside this overhead area. Consequently, the multiplier does
  2966. not produce an image with all the theoretical free disk space. See
  2967. :term:`IMAGE_ROOTFS_SIZE` for information on how the build system
  2968. determines the overall image size.
  2969. The default 30% free disk space typically gives the image enough room
  2970. to boot and allows for basic post installs while still leaving a
  2971. small amount of free disk space. If 30% free space is inadequate, you
  2972. can increase the default value. For example, the following setting
  2973. gives you 50% free space added to the image::
  2974. IMAGE_OVERHEAD_FACTOR = "1.5"
  2975. Alternatively, you can ensure a specific amount of free disk space is
  2976. added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  2977. variable.
  2978. :term:`IMAGE_PKGTYPE`
  2979. Defines the package type (i.e. DEB, RPM, IPK, or TAR) used by the
  2980. OpenEmbedded build system. The variable is defined appropriately by
  2981. the :ref:`ref-classes-package_deb`, :ref:`ref-classes-package_rpm`,
  2982. or :ref:`ref-classes-package_ipk` class.
  2983. The :ref:`ref-classes-populate-sdk-*` and :ref:`ref-classes-image`
  2984. classes use the :term:`IMAGE_PKGTYPE` for packaging up images and SDKs.
  2985. You should not set the :term:`IMAGE_PKGTYPE` manually. Rather, the
  2986. variable is set indirectly through the appropriate
  2987. :ref:`package_* <ref-classes-package>` class using the
  2988. :term:`PACKAGE_CLASSES` variable. The
  2989. OpenEmbedded build system uses the first package type (e.g. DEB, RPM,
  2990. or IPK) that appears with the variable
  2991. .. note::
  2992. Files using the ``.tar`` format are never used as a substitute
  2993. packaging format for DEB, RPM, and IPK formatted files for your image
  2994. or SDK.
  2995. :term:`IMAGE_POSTPROCESS_COMMAND`
  2996. Specifies a list of functions to call once the OpenEmbedded build
  2997. system creates the final image output files. You can specify
  2998. functions separated by spaces::
  2999. IMAGE_POSTPROCESS_COMMAND += "function"
  3000. If you need to pass the root filesystem path to a command within the
  3001. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3002. directory that becomes the root filesystem image. See the
  3003. :term:`IMAGE_ROOTFS` variable for more
  3004. information.
  3005. :term:`IMAGE_PREPROCESS_COMMAND`
  3006. Specifies a list of functions to call before the OpenEmbedded build
  3007. system creates the final image output files. You can specify
  3008. functions separated by spaces::
  3009. IMAGE_PREPROCESS_COMMAND += "function"
  3010. If you need to pass the root filesystem path to a command within the
  3011. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  3012. directory that becomes the root filesystem image. See the
  3013. :term:`IMAGE_ROOTFS` variable for more
  3014. information.
  3015. :term:`IMAGE_ROOTFS`
  3016. The location of the root filesystem while it is under construction
  3017. (i.e. during the :ref:`ref-tasks-rootfs` task). This
  3018. variable is not configurable. Do not change it.
  3019. :term:`IMAGE_ROOTFS_ALIGNMENT`
  3020. Specifies the alignment for the output image file in Kbytes. If the
  3021. size of the image is not a multiple of this value, then the size is
  3022. rounded up to the nearest multiple of the value. The default value is
  3023. "1". See :term:`IMAGE_ROOTFS_SIZE` for
  3024. additional information.
  3025. :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3026. Defines additional free disk space created in the image in Kbytes. By
  3027. default, this variable is set to "0". This free disk space is added
  3028. to the image after the build system determines the image size as
  3029. described in :term:`IMAGE_ROOTFS_SIZE`.
  3030. This variable is particularly useful when you want to ensure that a
  3031. specific amount of free disk space is available on a device after an
  3032. image is installed and running. For example, to be sure 5 Gbytes of
  3033. free disk space is available, set the variable as follows::
  3034. IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
  3035. For example, the Yocto Project Build Appliance specifically requests
  3036. 40 Gbytes of extra space with the line::
  3037. IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
  3038. :term:`IMAGE_ROOTFS_MAXSIZE`
  3039. Defines the maximum size in Kbytes for the generated image. If the
  3040. generated image size is above that, the build will fail. It's a good
  3041. idea to set this variable for images that need to fit on a limited
  3042. space (e.g. SD card, a fixed-size partition, ...).
  3043. :term:`IMAGE_ROOTFS_SIZE`
  3044. Defines the size in Kbytes for the generated image. The OpenEmbedded
  3045. build system determines the final size for the generated image using
  3046. an algorithm that takes into account the initial disk space used for
  3047. the generated image, a requested size for the image, and requested
  3048. additional free disk space to be added to the image. Programatically,
  3049. the build system determines the final size of the generated image as
  3050. follows::
  3051. if (image-du * overhead) < rootfs-size:
  3052. internal-rootfs-size = rootfs-size + xspace
  3053. else:
  3054. internal-rootfs-size = (image-du * overhead) + xspace
  3055. where:
  3056. image-du = Returned value of the du command on the image.
  3057. overhead = IMAGE_OVERHEAD_FACTOR
  3058. rootfs-size = IMAGE_ROOTFS_SIZE
  3059. internal-rootfs-size = Initial root filesystem size before any modifications.
  3060. xspace = IMAGE_ROOTFS_EXTRA_SPACE
  3061. See the :term:`IMAGE_OVERHEAD_FACTOR`
  3062. and :term:`IMAGE_ROOTFS_EXTRA_SPACE`
  3063. variables for related information.
  3064. :term:`IMAGE_TYPEDEP`
  3065. Specifies a dependency from one image type on another. Here is an
  3066. example from the :ref:`ref-classes-image-live` class::
  3067. IMAGE_TYPEDEP:live = "ext3"
  3068. In the previous example, the variable ensures that when "live" is
  3069. listed with the :term:`IMAGE_FSTYPES` variable,
  3070. the OpenEmbedded build system produces an ``ext3`` image first since
  3071. one of the components of the live image is an ``ext3`` formatted
  3072. partition containing the root filesystem.
  3073. :term:`IMAGE_TYPES`
  3074. Specifies the complete list of supported image types by default:
  3075. - btrfs
  3076. - container
  3077. - cpio
  3078. - cpio.gz
  3079. - cpio.lz4
  3080. - cpio.lzma
  3081. - cpio.xz
  3082. - cramfs
  3083. - erofs
  3084. - erofs-lz4
  3085. - erofs-lz4hc
  3086. - ext2
  3087. - ext2.bz2
  3088. - ext2.gz
  3089. - ext2.lzma
  3090. - ext3
  3091. - ext3.gz
  3092. - ext4
  3093. - ext4.gz
  3094. - f2fs
  3095. - hddimg
  3096. - iso
  3097. - jffs2
  3098. - jffs2.sum
  3099. - multiubi
  3100. - squashfs
  3101. - squashfs-lz4
  3102. - squashfs-lzo
  3103. - squashfs-xz
  3104. - tar
  3105. - tar.bz2
  3106. - tar.gz
  3107. - tar.lz4
  3108. - tar.xz
  3109. - tar.zst
  3110. - ubi
  3111. - ubifs
  3112. - wic
  3113. - wic.bz2
  3114. - wic.gz
  3115. - wic.lzma
  3116. - wic.zst
  3117. For more information about these types of images, see
  3118. ``meta/classes-recipe/image_types*.bbclass`` in the :term:`Source Directory`.
  3119. :term:`IMAGE_VERSION_SUFFIX`
  3120. Version suffix that is part of the default :term:`IMAGE_NAME` and
  3121. :term:`KERNEL_ARTIFACT_NAME` values.
  3122. Defaults to ``"-${DATETIME}"``, however you could set this to a
  3123. version string that comes from your external build environment if
  3124. desired, and this suffix would then be used consistently across
  3125. the build artifacts.
  3126. :term:`IMGDEPLOYDIR`
  3127. When inheriting the :ref:`ref-classes-image` class directly or
  3128. through the :ref:`ref-classes-core-image` class, the
  3129. :term:`IMGDEPLOYDIR` points to a temporary work area for deployed files
  3130. that is set in the ``image`` class as follows::
  3131. IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete"
  3132. Recipes inheriting the :ref:`ref-classes-image` class should copy
  3133. files to be deployed into :term:`IMGDEPLOYDIR`, and the class will take
  3134. care of copying them into :term:`DEPLOY_DIR_IMAGE` afterwards.
  3135. :term:`IMGMANIFESTDIR`
  3136. When inheriting the :ref:`ref-classes-image` class directly or through the
  3137. :ref:`ref-classes-core-image` class, the :term:`IMGMANIFESTDIR` setting
  3138. points to a temporary area that stores manifest ``json`` files, that list
  3139. what images were created by various images creation tasks (as defined by
  3140. the :term:`IMAGE_FSTYPES` variable). It is set in the
  3141. :ref:`ref-classes-image` class as follows::
  3142. IMGMANIFESTDIR = "${WORKDIR}/image-task-manifest"
  3143. :term:`INCOMPATIBLE_LICENSE`
  3144. Specifies a space-separated list of license names (as they would
  3145. appear in :term:`LICENSE`) that should be excluded
  3146. from the build (if set globally), or from an image (if set locally
  3147. in an image recipe).
  3148. When the variable is set globally, recipes that provide no alternatives to listed
  3149. incompatible licenses are not built. Packages that are individually
  3150. licensed with the specified incompatible licenses will be deleted.
  3151. Most of the time this does not allow a feasible build (because it becomes impossible
  3152. to satisfy build time dependencies), so the recommended way to
  3153. implement license restrictions is to set the variable in specific
  3154. image recipes where the restrictions must apply. That way there
  3155. are no build time restrictions, but the license check is still
  3156. performed when the image's filesystem is assembled from packages.
  3157. There is some support for wildcards in this variable's value,
  3158. however it is restricted to specific licenses. Currently only
  3159. these wildcards are allowed and expand as follows:
  3160. - ``AGPL-3.0*"``: ``AGPL-3.0-only``, ``AGPL-3.0-or-later``
  3161. - ``GPL-3.0*``: ``GPL-3.0-only``, ``GPL-3.0-or-later``
  3162. - ``LGPL-3.0*``: ``LGPL-3.0-only``, ``LGPL-3.0-or-later``
  3163. .. note::
  3164. This functionality is only regularly tested using the following
  3165. setting::
  3166. INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0* AGPL-3.0*"
  3167. Although you can use other settings, you might be required to
  3168. remove dependencies on (or provide alternatives to) components that
  3169. are required to produce a functional system image.
  3170. :term:`INCOMPATIBLE_LICENSE_EXCEPTIONS`
  3171. Specifies a space-separated list of package and license pairs that
  3172. are allowed to be used even if the license is specified in
  3173. :term:`INCOMPATIBLE_LICENSE`. The package and license pairs are
  3174. separated using a colon. Example::
  3175. INCOMPATIBLE_LICENSE_EXCEPTIONS = "gdbserver:GPL-3.0-only gdbserver:LGPL-3.0-only"
  3176. :term:`INHERIT`
  3177. Causes the named class or classes to be inherited globally. Anonymous
  3178. functions in the class or classes are not executed for the base
  3179. configuration and in each individual recipe. The OpenEmbedded build
  3180. system ignores changes to :term:`INHERIT` in individual recipes.
  3181. Classes inherited using :term:`INHERIT` must be located in the
  3182. ``classes-global/`` or ``classes/`` subdirectories.
  3183. For more information on :term:`INHERIT`, see the
  3184. :ref:`bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`"
  3185. section in the BitBake User Manual.
  3186. :term:`INHERIT_DISTRO`
  3187. Lists classes that will be inherited at the distribution level. It is
  3188. unlikely that you want to edit this variable.
  3189. Classes specified in :term:`INHERIT_DISTRO` must be located in the
  3190. ``classes-global/`` or ``classes/`` subdirectories.
  3191. The default value of the variable is set as follows in the
  3192. ``meta/conf/distro/defaultsetup.conf`` file::
  3193. INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool create-spdx"
  3194. :term:`INHIBIT_DEFAULT_DEPS`
  3195. Prevents the default dependencies, namely the C compiler and standard
  3196. C library (libc), from being added to :term:`DEPENDS`.
  3197. This variable is usually used within recipes that do not require any
  3198. compilation using the C compiler.
  3199. Set the variable to "1" to prevent the default dependencies from
  3200. being added.
  3201. :term:`INHIBIT_PACKAGE_DEBUG_SPLIT`
  3202. Prevents the OpenEmbedded build system from splitting out debug
  3203. information during packaging. By default, the build system splits out
  3204. debugging information during the
  3205. :ref:`ref-tasks-package` task. For more information on
  3206. how debug information is split out, see the
  3207. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  3208. variable.
  3209. To prevent the build system from splitting out debug information
  3210. during packaging, set the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable as
  3211. follows::
  3212. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  3213. :term:`INHIBIT_PACKAGE_STRIP`
  3214. If set to "1", causes the build to not strip binaries in resulting
  3215. packages and prevents the ``-dbg`` package from containing the source
  3216. files.
  3217. By default, the OpenEmbedded build system strips binaries and puts
  3218. the debugging symbols into ``${``\ :term:`PN`\ ``}-dbg``.
  3219. Consequently, you should not set :term:`INHIBIT_PACKAGE_STRIP` when you
  3220. plan to debug in general.
  3221. :term:`INHIBIT_SYSROOT_STRIP`
  3222. If set to "1", causes the build to not strip binaries in the
  3223. resulting sysroot.
  3224. By default, the OpenEmbedded build system strips binaries in the
  3225. resulting sysroot. When you specifically set the
  3226. :term:`INHIBIT_SYSROOT_STRIP` variable to "1" in your recipe, you inhibit
  3227. this stripping.
  3228. If you want to use this variable, include the :ref:`ref-classes-staging`
  3229. class. This class uses a ``sys_strip()`` function to test for the variable
  3230. and acts accordingly.
  3231. .. note::
  3232. Use of the :term:`INHIBIT_SYSROOT_STRIP` variable occurs in rare and
  3233. special circumstances. For example, suppose you are building
  3234. bare-metal firmware by using an external GCC toolchain. Furthermore,
  3235. even if the toolchain's binaries are strippable, there are other files
  3236. needed for the build that are not strippable.
  3237. :term:`INIT_MANAGER`
  3238. Specifies the system init manager to use. Available options are:
  3239. - ``sysvinit``
  3240. - ``systemd``
  3241. - ``mdev-busybox``
  3242. With ``sysvinit``, the init manager is set to
  3243. :wikipedia:`SysVinit <Init#SysV-style>`, the traditional UNIX init
  3244. system. This is the default choice in the Poky distribution, together with
  3245. the Udev device manager (see the ":ref:`device-manager`" section).
  3246. With ``systemd``, the init manager becomes :wikipedia:`systemd <Systemd>`,
  3247. which comes with the :wikipedia:`udev <Udev>` device manager.
  3248. With ``mdev-busybox``, the init manager becomes the much simpler BusyBox
  3249. init, together with the BusyBox mdev device manager. This is the simplest
  3250. and lightest solution, and probably the best choice for low-end systems
  3251. with a rather slow CPU and a limited amount of RAM.
  3252. More concretely, this is used to include
  3253. ``conf/distro/include/init-manager-${INIT_MANAGER}.inc`` into the global
  3254. configuration. You can have a look at the
  3255. :yocto_git:`meta/conf/distro/include/init-manager-*.inc </poky/tree/meta/conf/distro/include>`
  3256. files for more information, and also the ":ref:`init-manager`"
  3257. section in the Yocto Project Development Tasks Manual.
  3258. :term:`INITRAMFS_DEPLOY_DIR_IMAGE`
  3259. Indicates the deploy directory used by :ref:`ref-tasks-bundle_initramfs`
  3260. where the :term:`INITRAMFS_IMAGE` will be fetched from. This variable is
  3261. set by default to ``${DEPLOY_DIR_IMAGE}`` in the
  3262. :ref:`ref-classes-kernel` class and it's only meant to be changed when
  3263. building an :term:`Initramfs` image from a separate multiconfig via
  3264. :term:`INITRAMFS_MULTICONFIG`.
  3265. :term:`INITRAMFS_FSTYPES`
  3266. Defines the format for the output image of an initial RAM filesystem
  3267. (:term:`Initramfs`), which is used during boot. Supported formats are the
  3268. same as those supported by the
  3269. :term:`IMAGE_FSTYPES` variable.
  3270. The default value of this variable, which is set in the
  3271. ``meta/conf/bitbake.conf`` configuration file in the
  3272. :term:`Source Directory`, is "cpio.gz". The Linux kernel's
  3273. :term:`Initramfs` mechanism, as opposed to the initial RAM filesystem
  3274. :wikipedia:`initrd <Initrd>` mechanism, expects
  3275. an optionally compressed cpio archive.
  3276. :term:`INITRAMFS_IMAGE`
  3277. Specifies the :term:`PROVIDES` name of an image
  3278. recipe that is used to build an initial RAM filesystem (:term:`Initramfs`)
  3279. image. In other words, the :term:`INITRAMFS_IMAGE` variable causes an
  3280. additional recipe to be built as a dependency to whatever root
  3281. filesystem recipe you might be using (e.g. ``core-image-sato``). The
  3282. :term:`Initramfs` image recipe you provide should set
  3283. :term:`IMAGE_FSTYPES` to
  3284. :term:`INITRAMFS_FSTYPES`.
  3285. An :term:`Initramfs` image provides a temporary root filesystem used for
  3286. early system initialization (e.g. loading of modules needed to locate
  3287. and mount the "real" root filesystem).
  3288. .. note::
  3289. See the ``meta/recipes-core/images/core-image-minimal-initramfs.bb``
  3290. recipe in the :term:`Source Directory`
  3291. for an example :term:`Initramfs` recipe. To select this sample recipe as
  3292. the one built to provide the :term:`Initramfs` image, set :term:`INITRAMFS_IMAGE`
  3293. to "core-image-minimal-initramfs".
  3294. You can also find more information by referencing the
  3295. ``meta-poky/conf/templates/default/local.conf.sample.extended``
  3296. configuration file in the Source Directory, the :ref:`ref-classes-image`
  3297. class, and the :ref:`ref-classes-kernel` class to see how to use the
  3298. :term:`INITRAMFS_IMAGE` variable.
  3299. If :term:`INITRAMFS_IMAGE` is empty, which is the default, then no
  3300. :term:`Initramfs` image is built.
  3301. For more information, you can also see the
  3302. :term:`INITRAMFS_IMAGE_BUNDLE`
  3303. variable, which allows the generated image to be bundled inside the
  3304. kernel image. Additionally, for information on creating an :term:`Initramfs`
  3305. image, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3306. in the Yocto Project Development Tasks Manual.
  3307. :term:`INITRAMFS_IMAGE_BUNDLE`
  3308. Controls whether or not the image recipe specified by
  3309. :term:`INITRAMFS_IMAGE` is run through an
  3310. extra pass
  3311. (:ref:`ref-tasks-bundle_initramfs`) during
  3312. kernel compilation in order to build a single binary that contains
  3313. both the kernel image and the initial RAM filesystem (:term:`Initramfs`)
  3314. image. This makes use of the
  3315. :term:`CONFIG_INITRAMFS_SOURCE` kernel
  3316. feature.
  3317. .. note::
  3318. Bundling the :term:`Initramfs` with the kernel conflates the code in the
  3319. :term:`Initramfs` with the GPLv2 licensed Linux kernel binary. Thus only GPLv2
  3320. compatible software may be part of a bundled :term:`Initramfs`.
  3321. .. note::
  3322. Using an extra compilation pass to bundle the :term:`Initramfs` avoids a
  3323. circular dependency between the kernel recipe and the :term:`Initramfs`
  3324. recipe should the :term:`Initramfs` include kernel modules. Should that be
  3325. the case, the :term:`Initramfs` recipe depends on the kernel for the
  3326. kernel modules, and the kernel depends on the :term:`Initramfs` recipe
  3327. since the :term:`Initramfs` is bundled inside the kernel image.
  3328. The combined binary is deposited into the ``tmp/deploy`` directory,
  3329. which is part of the :term:`Build Directory`.
  3330. Setting the variable to "1" in a configuration file causes the
  3331. OpenEmbedded build system to generate a kernel image with the
  3332. :term:`Initramfs` specified in :term:`INITRAMFS_IMAGE` bundled within::
  3333. INITRAMFS_IMAGE_BUNDLE = "1"
  3334. By default, the :ref:`ref-classes-kernel` class sets this variable to a
  3335. null string as follows::
  3336. INITRAMFS_IMAGE_BUNDLE ?= ""
  3337. .. note::
  3338. You must set the :term:`INITRAMFS_IMAGE_BUNDLE` variable in a
  3339. configuration file. You cannot set the variable in a recipe file.
  3340. See the
  3341. :yocto_git:`local.conf.sample.extended </poky/tree/meta-poky/conf/templates/default/local.conf.sample.extended>`
  3342. file for additional information. Also, for information on creating an
  3343. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  3344. in the Yocto Project Development Tasks Manual.
  3345. :term:`INITRAMFS_IMAGE_NAME`
  3346. This value needs to stay in sync with :term:`IMAGE_LINK_NAME`, but with
  3347. :term:`INITRAMFS_IMAGE` instead of :term:`IMAGE_BASENAME`. The default value
  3348. is set as follows:
  3349. INITRAMFS_IMAGE_NAME ?= "${@['${INITRAMFS_IMAGE}${IMAGE_MACHINE_SUFFIX}', ''][d.getVar('INITRAMFS_IMAGE') == '']}"
  3350. That is, if :term:`INITRAMFS_IMAGE` is set, the value of
  3351. :term:`INITRAMFS_IMAGE_NAME` will be set based upon
  3352. :term:`INITRAMFS_IMAGE` and :term:`IMAGE_MACHINE_SUFFIX`.
  3353. :term:`INITRAMFS_LINK_NAME`
  3354. The link name of the initial RAM filesystem image. This variable is
  3355. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3356. follows::
  3357. INITRAMFS_LINK_NAME ?= "initramfs-${KERNEL_ARTIFACT_LINK_NAME}"
  3358. The value of the
  3359. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3360. file, has the following value::
  3361. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3362. See the :term:`MACHINE` variable for additional
  3363. information.
  3364. :term:`INITRAMFS_MULTICONFIG`
  3365. Defines the multiconfig to create a multiconfig dependency to be used by
  3366. the :ref:`ref-classes-kernel` class.
  3367. This allows the kernel to bundle an :term:`INITRAMFS_IMAGE` coming from
  3368. a separate multiconfig, this is meant to be used in addition to :term:`INITRAMFS_DEPLOY_DIR_IMAGE`.
  3369. For more information on how to bundle an :term:`Initramfs` image from a separate
  3370. multiconfig see the ":ref:`dev-manual/building:Bundling an Initramfs Image From a Separate Multiconfig`"
  3371. section in the Yocto Project Development Tasks Manual.
  3372. :term:`INITRAMFS_NAME`
  3373. The base name of the initial RAM filesystem image. This variable is
  3374. set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3375. follows::
  3376. INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
  3377. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3378. :term:`INITRD`
  3379. Indicates list of filesystem images to concatenate and use as an
  3380. initial RAM disk (``initrd``).
  3381. The :term:`INITRD` variable is an optional variable used with the
  3382. :ref:`ref-classes-image-live` class.
  3383. :term:`INITRD_IMAGE`
  3384. When building a "live" bootable image (i.e. when
  3385. :term:`IMAGE_FSTYPES` contains "live"),
  3386. :term:`INITRD_IMAGE` specifies the image recipe that should be built to
  3387. provide the initial RAM disk image. The default value is
  3388. "core-image-minimal-initramfs".
  3389. See the :ref:`ref-classes-image-live` class for more information.
  3390. :term:`INITSCRIPT_NAME`
  3391. The filename of the initialization script as installed to
  3392. ``${sysconfdir}/init.d``.
  3393. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3394. The variable is mandatory.
  3395. :term:`INITSCRIPT_PACKAGES`
  3396. A list of the packages that contain initscripts. If multiple packages
  3397. are specified, you need to append the package name to the other
  3398. ``INITSCRIPT_*`` as an override.
  3399. This variable is used in recipes when using :ref:`ref-classes-update-rc.d`.
  3400. The variable is optional and defaults to the :term:`PN`
  3401. variable.
  3402. :term:`INITSCRIPT_PARAMS`
  3403. Specifies the options to pass to ``update-rc.d``. Here is an example::
  3404. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
  3405. In this example, the script has a runlevel of 99, starts the script
  3406. in initlevels 2 and 5, and stops the script in levels 0, 1 and 6.
  3407. The variable's default value is "defaults", which is set in the
  3408. :ref:`ref-classes-update-rc.d` class.
  3409. The value in :term:`INITSCRIPT_PARAMS` is passed through to the
  3410. ``update-rc.d`` command. For more information on valid parameters,
  3411. please see the ``update-rc.d`` manual page at
  3412. https://manpages.debian.org/buster/init-system-helpers/update-rc.d.8.en.html
  3413. :term:`INSANE_SKIP`
  3414. Specifies the QA checks to skip for a specific package within a
  3415. recipe. For example, to skip the check for symbolic link ``.so``
  3416. files in the main package of a recipe, add the following to the
  3417. recipe. The package name override must be used, which in this example
  3418. is ``${PN}``::
  3419. INSANE_SKIP:${PN} += "dev-so"
  3420. See the ":ref:`ref-classes-insane`" section for a
  3421. list of the valid QA checks you can specify using this variable.
  3422. :term:`INSTALL_TIMEZONE_FILE`
  3423. By default, the ``tzdata`` recipe packages an ``/etc/timezone`` file.
  3424. Set the :term:`INSTALL_TIMEZONE_FILE` variable to "0" at the
  3425. configuration level to disable this behavior.
  3426. :term:`IPK_FEED_URIS`
  3427. When the IPK backend is in use and package management is enabled on
  3428. the target, you can use this variable to set up ``opkg`` in the
  3429. target image to point to package feeds on a nominated server. Once
  3430. the feed is established, you can perform installations or upgrades
  3431. using the package manager at runtime.
  3432. :term:`KARCH`
  3433. Defines the kernel architecture used when assembling the
  3434. configuration. Architectures supported for this release are:
  3435. - powerpc
  3436. - i386
  3437. - x86_64
  3438. - arm
  3439. - qemu
  3440. - mips
  3441. You define the :term:`KARCH` variable in the :ref:`kernel-dev/advanced:bsp descriptions`.
  3442. :term:`KBRANCH`
  3443. A regular expression used by the build process to explicitly identify
  3444. the kernel branch that is validated, patched, and configured during a
  3445. build. You must set this variable to ensure the exact kernel branch
  3446. you want is being used by the build process.
  3447. Values for this variable are set in the kernel's recipe file and the
  3448. kernel's append file. For example, if you are using the
  3449. ``linux-yocto_4.12`` kernel, the kernel recipe file is the
  3450. ``meta/recipes-kernel/linux/linux-yocto_4.12.bb`` file. :term:`KBRANCH`
  3451. is set as follows in that kernel recipe file::
  3452. KBRANCH ?= "standard/base"
  3453. This variable is also used from the kernel's append file to identify
  3454. the kernel branch specific to a particular machine or target
  3455. hardware. Continuing with the previous kernel example, the kernel's
  3456. append file is located in the
  3457. BSP layer for a given machine. For example, the append file for the
  3458. Beaglebone and generic versions of both 32 and 64-bit IA
  3459. machines (``meta-yocto-bsp``) is named
  3460. ``meta-yocto-bsp/recipes-kernel/linux/linux-yocto_6.1.bbappend``.
  3461. Here are the related statements from that append file::
  3462. KBRANCH:genericx86 = "v6.1/standard/base"
  3463. KBRANCH:genericx86-64 = "v6.1/standard/base"
  3464. KBRANCH:beaglebone-yocto = "v6.1/standard/beaglebone"
  3465. The :term:`KBRANCH` statements
  3466. identify the kernel branch to use when building for each supported
  3467. BSP.
  3468. :term:`KBUILD_DEFCONFIG`
  3469. When used with the :ref:`ref-classes-kernel-yocto`
  3470. class, specifies an "in-tree" kernel configuration file for use
  3471. during a kernel build.
  3472. Typically, when using a ``defconfig`` to configure a kernel during a
  3473. build, you place the file in your layer in the same manner as you
  3474. would place patch files and configuration fragment files (i.e.
  3475. "out-of-tree"). However, if you want to use a ``defconfig`` file that
  3476. is part of the kernel tree (i.e. "in-tree"), you can use the
  3477. :term:`KBUILD_DEFCONFIG` variable and append the
  3478. :term:`KMACHINE` variable to point to the
  3479. ``defconfig`` file.
  3480. To use the variable, set it in the append file for your kernel recipe
  3481. using the following form::
  3482. KBUILD_DEFCONFIG:<machine> ?= "defconfig_file"
  3483. Here is an example from a "raspberrypi2" :term:`MACHINE` build that uses
  3484. a ``defconfig`` file named "bcm2709_defconfig"::
  3485. KBUILD_DEFCONFIG:raspberrypi2 = "bcm2709_defconfig"
  3486. As an alternative, you can use the following within your append file::
  3487. KBUILD_DEFCONFIG:pn-linux-yocto ?= "defconfig_file"
  3488. For more
  3489. information on how to use the :term:`KBUILD_DEFCONFIG` variable, see the
  3490. ":ref:`kernel-dev/common:using an "in-tree" \`\`defconfig\`\` file`"
  3491. section in the Yocto Project Linux Kernel Development Manual.
  3492. :term:`KCONFIG_MODE`
  3493. When used with the :ref:`ref-classes-kernel-yocto`
  3494. class, specifies the kernel configuration values to use for options
  3495. not specified in the provided ``defconfig`` file. Valid options are::
  3496. KCONFIG_MODE = "alldefconfig"
  3497. KCONFIG_MODE = "allnoconfig"
  3498. In ``alldefconfig`` mode the options not explicitly specified will be
  3499. assigned their Kconfig default value. In ``allnoconfig`` mode the
  3500. options not explicitly specified will be disabled in the kernel
  3501. config.
  3502. In case :term:`KCONFIG_MODE` is not set the behaviour will depend on where
  3503. the ``defconfig`` file is coming from. An "in-tree" ``defconfig`` file
  3504. will be handled in ``alldefconfig`` mode, a ``defconfig`` file placed
  3505. in ``${WORKDIR}`` through a meta-layer will be handled in
  3506. ``allnoconfig`` mode.
  3507. An "in-tree" ``defconfig`` file can be selected via the
  3508. :term:`KBUILD_DEFCONFIG` variable. :term:`KCONFIG_MODE` does not need to
  3509. be explicitly set.
  3510. A ``defconfig`` file compatible with ``allnoconfig`` mode can be
  3511. generated by copying the ``.config`` file from a working Linux kernel
  3512. build, renaming it to ``defconfig`` and placing it into the Linux
  3513. kernel ``${WORKDIR}`` through your meta-layer. :term:`KCONFIG_MODE` does
  3514. not need to be explicitly set.
  3515. A ``defconfig`` file compatible with ``alldefconfig`` mode can be
  3516. generated using the
  3517. :ref:`ref-tasks-savedefconfig`
  3518. task and placed into the Linux kernel ``${WORKDIR}`` through your
  3519. meta-layer. Explicitely set :term:`KCONFIG_MODE`::
  3520. KCONFIG_MODE = "alldefconfig"
  3521. :term:`KERNEL_ALT_IMAGETYPE`
  3522. Specifies an alternate kernel image type for creation in addition to
  3523. the kernel image type specified using the :term:`KERNEL_IMAGETYPE` and
  3524. :term:`KERNEL_IMAGETYPES` variables.
  3525. :term:`KERNEL_ARTIFACT_NAME`
  3526. Specifies the name of all of the build artifacts. You can change the
  3527. name of the artifacts by changing the :term:`KERNEL_ARTIFACT_NAME`
  3528. variable.
  3529. The value of :term:`KERNEL_ARTIFACT_NAME`, which is set in the
  3530. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file, has the
  3531. following default value::
  3532. KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
  3533. See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`IMAGE_MACHINE_SUFFIX`
  3534. and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
  3535. :term:`KERNEL_CLASSES`
  3536. A list of classes defining kernel image types that the
  3537. :ref:`ref-classes-kernel` class should inherit. You typically
  3538. append this variable to enable extended image types. An example is
  3539. ":ref:`ref-classes-kernel-fitimage`", which enables
  3540. FIT image support and resides in ``meta/classes-recipe/kernel-fitimage.bbclass``.
  3541. You can register custom kernel image types with the
  3542. :ref:`ref-classes-kernel` class using this variable.
  3543. :term:`KERNEL_DANGLING_FEATURES_WARN_ONLY`
  3544. When kernel configuration fragments are missing for some
  3545. :term:`KERNEL_FEATURES` specified by layers or BSPs,
  3546. building and configuring the kernel stops with an error.
  3547. You can turn these errors into warnings by setting the
  3548. following in ``conf/local.conf``::
  3549. KERNEL_DANGLING_FEATURES_WARN_ONLY = "1"
  3550. You will still be warned that runtime issues may occur,
  3551. but at least the kernel configuration and build process will
  3552. be allowed to continue.
  3553. :term:`KERNEL_DEBUG_TIMESTAMPS`
  3554. If set to "1", enables timestamping functionality during building
  3555. the kernel. The default is "0" to disable this for reproducibility
  3556. reasons.
  3557. :term:`KERNEL_DEPLOY_DEPEND`
  3558. Provides a means of controlling the dependency of an image recipe
  3559. on the kernel. The default value is "virtual/kernel:do_deploy",
  3560. however for a small initramfs image or other images that do not
  3561. need the kernel, this can be set to "" in the image recipe.
  3562. :term:`KERNEL_DEVICETREE`
  3563. Specifies the name of the generated Linux kernel device tree (i.e.
  3564. the ``.dtb``) file.
  3565. .. note::
  3566. There is legacy support for specifying the full path to the device
  3567. tree. However, providing just the ``.dtb`` file is preferred.
  3568. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3569. class must be inherited.
  3570. :term:`KERNEL_DEVICETREE_BUNDLE`
  3571. When set to "1", this variable allows to bundle the Linux kernel
  3572. and the Device Tree Binary together in a single file.
  3573. This feature is currently only supported on the "arm" (32 bit)
  3574. architecture.
  3575. This variable is set to "0" by default by the
  3576. :ref:`ref-classes-kernel-devicetree` class.
  3577. :term:`KERNEL_DTB_LINK_NAME`
  3578. The link name of the kernel device tree binary (DTB). This variable
  3579. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3580. follows::
  3581. KERNEL_DTB_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3582. The
  3583. value of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in
  3584. the same file, has the following value::
  3585. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3586. See the :term:`MACHINE` variable for additional
  3587. information.
  3588. :term:`KERNEL_DTB_NAME`
  3589. The base name of the kernel device tree binary (DTB). This variable
  3590. is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
  3591. follows::
  3592. KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3593. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3594. :term:`KERNEL_DTBDEST`
  3595. This variable, used by the :ref:`ref-classes-kernel-devicetree`
  3596. class, allows to change the installation directory of the DTB
  3597. (Device Tree Binary) files.
  3598. It is set by default to "${KERNEL_IMAGEDEST}" by the
  3599. :ref:`ref-classes-kernel` class.
  3600. :term:`KERNEL_DTBVENDORED`
  3601. This variable, used by the :ref:`ref-classes-kernel-devicetree`,
  3602. allows to ignore vendor subdirectories when installing DTB
  3603. (Device Tree Binary) files, when it is set to "false".
  3604. To keep vendor subdirectories, set this variable to "true".
  3605. It is set by default to "false" by the :ref:`ref-classes-kernel` class.
  3606. :term:`KERNEL_DTC_FLAGS`
  3607. Specifies the ``dtc`` flags that are passed to the Linux kernel build
  3608. system when generating the device trees (via ``DTC_FLAGS`` environment
  3609. variable).
  3610. In order to use this variable, the :ref:`ref-classes-kernel-devicetree`
  3611. class must be inherited.
  3612. :term:`KERNEL_EXTRA_ARGS`
  3613. Specifies additional ``make`` command-line arguments the OpenEmbedded
  3614. build system passes on when compiling the kernel.
  3615. :term:`KERNEL_FEATURES`
  3616. Includes additional kernel metadata. In the OpenEmbedded build
  3617. system, the default Board Support Packages (BSPs)
  3618. :term:`Metadata` is provided through the
  3619. :term:`KMACHINE` and :term:`KBRANCH`
  3620. variables. You can use the :term:`KERNEL_FEATURES` variable from within
  3621. the kernel recipe or kernel append file to further add metadata for
  3622. all BSPs or specific BSPs.
  3623. The metadata you add through this variable includes config fragments
  3624. and features descriptions, which usually includes patches as well as
  3625. config fragments. You typically override the :term:`KERNEL_FEATURES`
  3626. variable for a specific machine. In this way, you can provide
  3627. validated, but optional, sets of kernel configurations and features.
  3628. For example, the following example from the ``linux-yocto-rt_4.12``
  3629. kernel recipe adds "netfilter" and "taskstats" features to all BSPs
  3630. as well as "virtio" configurations to all QEMU machines. The last two
  3631. statements add specific configurations to targeted machine types::
  3632. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  3633. KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
  3634. KERNEL_FEATURES:append:qemuall = " cfg/virtio.scc"
  3635. KERNEL_FEATURES:append:qemux86 = " cfg/sound.scc cfg/paravirt_kvm.scc"
  3636. KERNEL_FEATURES:append:qemux86-64 = " cfg/sound.scc"
  3637. :term:`KERNEL_FIT_LINK_NAME`
  3638. The link name of the kernel flattened image tree (FIT) image. This
  3639. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3640. file as follows::
  3641. KERNEL_FIT_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3642. The value of the
  3643. ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3644. file, has the following value::
  3645. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3646. See the :term:`MACHINE` variable for additional
  3647. information.
  3648. :term:`KERNEL_FIT_NAME`
  3649. The base name of the kernel flattened image tree (FIT) image. This
  3650. variable is set in the ``meta/classes-recipe/kernel-artifact-names.bbclass``
  3651. file as follows::
  3652. KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3653. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3654. :term:`KERNEL_IMAGE_LINK_NAME`
  3655. The link name for the kernel image. This variable is set in the
  3656. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3657. KERNEL_IMAGE_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  3658. The value of
  3659. the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the same
  3660. file, has the following value::
  3661. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  3662. See the :term:`MACHINE` variable for additional
  3663. information.
  3664. :term:`KERNEL_IMAGE_MAXSIZE`
  3665. Specifies the maximum size of the kernel image file in kilobytes. If
  3666. :term:`KERNEL_IMAGE_MAXSIZE` is set, the size of the kernel image file is
  3667. checked against the set value during the
  3668. :ref:`ref-tasks-sizecheck` task. The task fails if
  3669. the kernel image file is larger than the setting.
  3670. :term:`KERNEL_IMAGE_MAXSIZE` is useful for target devices that have a
  3671. limited amount of space in which the kernel image must be stored.
  3672. By default, this variable is not set, which means the size of the
  3673. kernel image is not checked.
  3674. :term:`KERNEL_IMAGE_NAME`
  3675. The base name of the kernel image. This variable is set in the
  3676. ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  3677. KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  3678. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  3679. :term:`KERNEL_IMAGETYPE`
  3680. The type of kernel to build for a device, usually set by the machine
  3681. configuration files and defaults to "zImage". This variable is used
  3682. when building the kernel and is passed to ``make`` as the target to
  3683. build.
  3684. To build additional kernel image types, use :term:`KERNEL_IMAGETYPES`.
  3685. :term:`KERNEL_IMAGETYPES`
  3686. Lists additional types of kernel images to build for a device in addition
  3687. to image type specified in :term:`KERNEL_IMAGETYPE`. Usually set by the
  3688. machine configuration files.
  3689. :term:`KERNEL_MODULE_AUTOLOAD`
  3690. Lists kernel modules that need to be auto-loaded during boot.
  3691. .. note::
  3692. This variable replaces the deprecated :term:`module_autoload`
  3693. variable.
  3694. You can use the :term:`KERNEL_MODULE_AUTOLOAD` variable anywhere that it
  3695. can be recognized by the kernel recipe or by an out-of-tree kernel
  3696. module recipe (e.g. a machine configuration file, a distribution
  3697. configuration file, an append file for the recipe, or the recipe
  3698. itself).
  3699. Specify it as follows::
  3700. KERNEL_MODULE_AUTOLOAD += "module_name1 module_name2 module_name3"
  3701. Including :term:`KERNEL_MODULE_AUTOLOAD` causes the OpenEmbedded build
  3702. system to populate the ``/etc/modules-load.d/modname.conf`` file with
  3703. the list of modules to be auto-loaded on boot. The modules appear
  3704. one-per-line in the file. Here is an example of the most common use
  3705. case::
  3706. KERNEL_MODULE_AUTOLOAD += "module_name"
  3707. For information on how to populate the ``modname.conf`` file with
  3708. ``modprobe.d`` syntax lines, see the :term:`KERNEL_MODULE_PROBECONF` variable.
  3709. :term:`KERNEL_MODULE_PROBECONF`
  3710. Provides a list of modules for which the OpenEmbedded build system
  3711. expects to find ``module_conf_``\ modname values that specify
  3712. configuration for each of the modules. For information on how to
  3713. provide those module configurations, see the
  3714. :term:`module_conf_* <module_conf>` variable.
  3715. :term:`KERNEL_PACKAGE_NAME`
  3716. Specifies the base name of the kernel packages, such as "kernel"
  3717. in the kernel packages such as "kernel-modules", "kernel-image" and
  3718. "kernel-dbg".
  3719. The default value for this variable is set to "kernel" by the
  3720. :ref:`ref-classes-kernel` class.
  3721. :term:`KERNEL_PATH`
  3722. The location of the kernel sources. This variable is set to the value
  3723. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  3724. class. For information on how this variable is used, see the
  3725. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3726. section in the Yocto Project Linux Kernel Development Manual.
  3727. To help maximize compatibility with out-of-tree drivers used to build
  3728. modules, the OpenEmbedded build system also recognizes and uses the
  3729. :term:`KERNEL_SRC` variable, which is identical to
  3730. the :term:`KERNEL_PATH` variable. Both variables are common variables
  3731. used by external Makefiles to point to the kernel source directory.
  3732. :term:`KERNEL_SRC`
  3733. The location of the kernel sources. This variable is set to the value
  3734. of the :term:`STAGING_KERNEL_DIR` within the :ref:`ref-classes-module`
  3735. class. For information on how this variable is used, see the
  3736. ":ref:`kernel-dev/common:incorporating out-of-tree modules`"
  3737. section in the Yocto Project Linux Kernel Development Manual.
  3738. To help maximize compatibility with out-of-tree drivers used to build
  3739. modules, the OpenEmbedded build system also recognizes and uses the
  3740. :term:`KERNEL_PATH` variable, which is identical
  3741. to the :term:`KERNEL_SRC` variable. Both variables are common variables
  3742. used by external Makefiles to point to the kernel source directory.
  3743. :term:`KERNEL_STRIP`
  3744. Allows to specific which ``strip`` command to use to strip the kernel
  3745. binary, typically either GNU binutils ``strip`` or ``llvm-strip``.
  3746. :term:`KERNEL_VERSION`
  3747. Specifies the version of the kernel as extracted from ``version.h``
  3748. or ``utsrelease.h`` within the kernel sources. Effects of setting
  3749. this variable do not take effect until the kernel has been
  3750. configured. Consequently, attempting to refer to this variable in
  3751. contexts prior to configuration will not work.
  3752. :term:`KERNELDEPMODDEPEND`
  3753. Specifies whether the data referenced through
  3754. :term:`PKGDATA_DIR` is needed or not.
  3755. :term:`KERNELDEPMODDEPEND` does not control whether or not that data
  3756. exists, but simply whether or not it is used. If you do not need to
  3757. use the data, set the :term:`KERNELDEPMODDEPEND` variable in your
  3758. :term:`Initramfs` recipe. Setting the variable there when the data is not
  3759. needed avoids a potential dependency loop.
  3760. :term:`KFEATURE_DESCRIPTION`
  3761. Provides a short description of a configuration fragment. You use
  3762. this variable in the ``.scc`` file that describes a configuration
  3763. fragment file. Here is the variable used in a file named ``smp.scc``
  3764. to describe SMP being enabled::
  3765. define KFEATURE_DESCRIPTION "Enable SMP"
  3766. :term:`KMACHINE`
  3767. The machine as known by the kernel. Sometimes the machine name used
  3768. by the kernel does not match the machine name used by the
  3769. OpenEmbedded build system. For example, the machine name that the
  3770. OpenEmbedded build system understands as ``core2-32-intel-common``
  3771. goes by a different name in the Linux Yocto kernel. The kernel
  3772. understands that machine as ``intel-core2-32``. For cases like these,
  3773. the :term:`KMACHINE` variable maps the kernel machine name to the
  3774. OpenEmbedded build system machine name.
  3775. These mappings between different names occur in the Yocto Linux
  3776. Kernel's ``meta`` branch. As an example take a look in the
  3777. ``common/recipes-kernel/linux/linux-yocto_3.19.bbappend`` file::
  3778. LINUX_VERSION:core2-32-intel-common = "3.19.0"
  3779. COMPATIBLE_MACHINE:core2-32-intel-common = "${MACHINE}"
  3780. SRCREV_meta:core2-32-intel-common = "8897ef68b30e7426bc1d39895e71fb155d694974"
  3781. SRCREV_machine:core2-32-intel-common = "43b9eced9ba8a57add36af07736344dcc383f711"
  3782. KMACHINE:core2-32-intel-common = "intel-core2-32"
  3783. KBRANCH:core2-32-intel-common = "standard/base"
  3784. KERNEL_FEATURES:append:core2-32-intel-common = " ${KERNEL_FEATURES_INTEL_COMMON}"
  3785. The :term:`KMACHINE` statement says
  3786. that the kernel understands the machine name as "intel-core2-32".
  3787. However, the OpenEmbedded build system understands the machine as
  3788. "core2-32-intel-common".
  3789. :term:`KTYPE`
  3790. Defines the kernel type to be used in assembling the configuration.
  3791. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3792. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3793. section in the
  3794. Yocto Project Linux Kernel Development Manual for more information on
  3795. kernel types.
  3796. You define the :term:`KTYPE` variable in the
  3797. :ref:`kernel-dev/advanced:bsp descriptions`. The
  3798. value you use must match the value used for the
  3799. :term:`LINUX_KERNEL_TYPE` value used by the
  3800. kernel recipe.
  3801. :term:`LABELS`
  3802. Provides a list of targets for automatic configuration.
  3803. See the :ref:`ref-classes-grub-efi` class for more
  3804. information on how this variable is used.
  3805. :term:`LAYERDEPENDS`
  3806. Lists the layers, separated by spaces, on which this recipe depends.
  3807. Optionally, you can specify a specific layer version for a dependency
  3808. by adding it to the end of the layer name. Here is an example::
  3809. LAYERDEPENDS_mylayer = "anotherlayer (=3)"
  3810. In this previous example,
  3811. version 3 of "anotherlayer" is compared against
  3812. :term:`LAYERVERSION`\ ``_anotherlayer``.
  3813. An error is produced if any dependency is missing or the version
  3814. numbers (if specified) do not match exactly. This variable is used in
  3815. the ``conf/layer.conf`` file and must be suffixed with the name of
  3816. the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
  3817. :term:`LAYERDIR`
  3818. When used inside the ``layer.conf`` configuration file, this variable
  3819. provides the path of the current layer. This variable is not
  3820. available outside of ``layer.conf`` and references are expanded
  3821. immediately when parsing of the file completes.
  3822. :term:`LAYERDIR_RE`
  3823. See :term:`bitbake:LAYERDIR_RE` in the BitBake manual.
  3824. :term:`LAYERRECOMMENDS`
  3825. Lists the layers, separated by spaces, recommended for use with this
  3826. layer.
  3827. Optionally, you can specify a specific layer version for a
  3828. recommendation by adding the version to the end of the layer name.
  3829. Here is an example::
  3830. LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
  3831. In this previous example, version 3 of "anotherlayer" is compared
  3832. against ``LAYERVERSION_anotherlayer``.
  3833. This variable is used in the ``conf/layer.conf`` file and must be
  3834. suffixed with the name of the specific layer (e.g.
  3835. ``LAYERRECOMMENDS_mylayer``).
  3836. :term:`LAYERSERIES_COMPAT`
  3837. See :term:`bitbake:LAYERSERIES_COMPAT` in the BitBake manual.
  3838. :term:`LAYERVERSION`
  3839. Optionally specifies the version of a layer as a single number. You
  3840. can use this within :term:`LAYERDEPENDS` for
  3841. another layer in order to depend on a specific version of the layer.
  3842. This variable is used in the ``conf/layer.conf`` file and must be
  3843. suffixed with the name of the specific layer (e.g.
  3844. ``LAYERVERSION_mylayer``).
  3845. :term:`LD`
  3846. The minimal command and arguments used to run the linker.
  3847. :term:`LDFLAGS`
  3848. Specifies the flags to pass to the linker. This variable is exported
  3849. to an environment variable and thus made visible to the software
  3850. being built during the compilation step.
  3851. Default initialization for :term:`LDFLAGS` varies depending on what is
  3852. being built:
  3853. - :term:`TARGET_LDFLAGS` when building for the
  3854. target
  3855. - :term:`BUILD_LDFLAGS` when building for the
  3856. build host (i.e. ``-native``)
  3857. - :term:`BUILDSDK_LDFLAGS` when building for
  3858. an SDK (i.e. ``nativesdk-``)
  3859. :term:`LEAD_SONAME`
  3860. Specifies the lead (or primary) compiled library file (i.e. ``.so``)
  3861. that the :ref:`ref-classes-debian` class applies its
  3862. naming policy to given a recipe that packages multiple libraries.
  3863. This variable works in conjunction with the :ref:`ref-classes-debian`
  3864. class.
  3865. :term:`LIC_FILES_CHKSUM`
  3866. Checksums of the license text in the recipe source code.
  3867. This variable tracks changes in license text of the source code
  3868. files. If the license text is changed, it will trigger a build
  3869. failure, which gives the developer an opportunity to review any
  3870. license change.
  3871. This variable must be defined for all recipes (unless
  3872. :term:`LICENSE` is set to "CLOSED").
  3873. For more information, see the ":ref:`dev-manual/licenses:tracking license changes`"
  3874. section in the Yocto Project Development Tasks Manual.
  3875. :term:`LICENSE`
  3876. The list of source licenses for the recipe. Follow these rules:
  3877. - Do not use spaces within individual license names.
  3878. - Separate license names using \| (pipe) when there is a choice
  3879. between licenses.
  3880. - Separate license names using & (ampersand) when there are
  3881. multiple licenses for different parts of the source.
  3882. - You can use spaces between license names.
  3883. - For standard licenses, use the names of the files in
  3884. ``meta/files/common-licenses/`` or the
  3885. :term:`SPDXLICENSEMAP` flag names defined in
  3886. ``meta/conf/licenses.conf``.
  3887. Here are some examples::
  3888. LICENSE = "LGPL-2.1-only | GPL-3.0-only"
  3889. LICENSE = "MPL-1.0 & LGPL-2.1-only"
  3890. LICENSE = "GPL-2.0-or-later"
  3891. The first example is from the
  3892. recipes for Qt, which the user may choose to distribute under either
  3893. the LGPL version 2.1 or GPL version 3. The second example is from
  3894. Cairo where two licenses cover different parts of the source code.
  3895. The final example is from ``sysstat``, which presents a single
  3896. license.
  3897. You can also specify licenses on a per-package basis to handle
  3898. situations where components of the output have different licenses.
  3899. For example, a piece of software whose code is licensed under GPLv2
  3900. but has accompanying documentation licensed under the GNU Free
  3901. Documentation License 1.2 could be specified as follows::
  3902. LICENSE = "GFDL-1.2 & GPL-2.0-only"
  3903. LICENSE:${PN} = "GPL-2.0.only"
  3904. LICENSE:${PN}-doc = "GFDL-1.2"
  3905. :term:`LICENSE_CREATE_PACKAGE`
  3906. Setting :term:`LICENSE_CREATE_PACKAGE` to "1" causes the OpenEmbedded
  3907. build system to create an extra package (i.e.
  3908. ``${``\ :term:`PN`\ ``}-lic``) for each recipe and to add
  3909. those packages to the
  3910. :term:`RRECOMMENDS`\ ``:${PN}``.
  3911. The ``${PN}-lic`` package installs a directory in
  3912. ``/usr/share/licenses`` named ``${PN}``, which is the recipe's base
  3913. name, and installs files in that directory that contain license and
  3914. copyright information (i.e. copies of the appropriate license files
  3915. from ``meta/common-licenses`` that match the licenses specified in
  3916. the :term:`LICENSE` variable of the recipe metadata
  3917. and copies of files marked in
  3918. :term:`LIC_FILES_CHKSUM` as containing
  3919. license text).
  3920. For related information on providing license text, see the
  3921. :term:`COPY_LIC_DIRS` variable, the
  3922. :term:`COPY_LIC_MANIFEST` variable, and the
  3923. ":ref:`dev-manual/licenses:providing license text`"
  3924. section in the Yocto Project Development Tasks Manual.
  3925. :term:`LICENSE_FLAGS`
  3926. Specifies additional flags for a recipe you must allow through
  3927. :term:`LICENSE_FLAGS_ACCEPTED` in
  3928. order for the recipe to be built. When providing multiple flags,
  3929. separate them with spaces.
  3930. This value is independent of :term:`LICENSE` and is
  3931. typically used to mark recipes that might require additional licenses
  3932. in order to be used in a commercial product. For more information,
  3933. see the
  3934. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3935. section in the Yocto Project Development Tasks Manual.
  3936. :term:`LICENSE_FLAGS_ACCEPTED`
  3937. Lists license flags that when specified in
  3938. :term:`LICENSE_FLAGS` within a recipe should not
  3939. prevent that recipe from being built. For more information, see the
  3940. ":ref:`dev-manual/licenses:enabling commercially licensed recipes`"
  3941. section in the Yocto Project Development Tasks Manual.
  3942. :term:`LICENSE_FLAGS_DETAILS`
  3943. Adds details about a flag in :term:`LICENSE_FLAGS`. This way,
  3944. if such a flag is not accepted through :term:`LICENSE_FLAGS_ACCEPTED`,
  3945. the error message will be more informative, containing the specified
  3946. extra details.
  3947. For example, a recipe with an EULA may set::
  3948. LICENSE_FLAGS = "FooBar-EULA"
  3949. LICENSE_FLAGS_DETAILS[FooBar-EULA] = "For further details, see https://example.com/eula."
  3950. If ``Foobar-EULA`` isn't in :term:`LICENSE_FLAGS_ACCEPTED`, the
  3951. error message is more useful::
  3952. Has a restricted license 'FooBar-EULA' which is not listed in your LICENSE_FLAGS_ACCEPTED.
  3953. For further details, see https://example.com/eula.
  3954. :term:`LICENSE_PATH`
  3955. Path to additional licenses used during the build. By default, the
  3956. OpenEmbedded build system uses :term:`COMMON_LICENSE_DIR` to define the
  3957. directory that holds common license text used during the build. The
  3958. :term:`LICENSE_PATH` variable allows you to extend that location to other
  3959. areas that have additional licenses::
  3960. LICENSE_PATH += "path-to-additional-common-licenses"
  3961. :term:`LINUX_KERNEL_TYPE`
  3962. Defines the kernel type to be used in assembling the configuration.
  3963. The linux-yocto recipes define "standard", "tiny", and "preempt-rt"
  3964. kernel types. See the ":ref:`kernel-dev/advanced:kernel types`"
  3965. section in the
  3966. Yocto Project Linux Kernel Development Manual for more information on
  3967. kernel types.
  3968. If you do not specify a :term:`LINUX_KERNEL_TYPE`, it defaults to
  3969. "standard". Together with :term:`KMACHINE`, the
  3970. :term:`LINUX_KERNEL_TYPE` variable defines the search arguments used by
  3971. the kernel tools to find the appropriate description within the
  3972. kernel :term:`Metadata` with which to build out the sources
  3973. and configuration.
  3974. :term:`LINUX_VERSION`
  3975. The Linux version from ``kernel.org`` on which the Linux kernel image
  3976. being built using the OpenEmbedded build system is based. You define
  3977. this variable in the kernel recipe. For example, the
  3978. ``linux-yocto-3.4.bb`` kernel recipe found in
  3979. ``meta/recipes-kernel/linux`` defines the variables as follows::
  3980. LINUX_VERSION ?= "3.4.24"
  3981. The :term:`LINUX_VERSION` variable is used to define :term:`PV`
  3982. for the recipe::
  3983. PV = "${LINUX_VERSION}+git"
  3984. :term:`LINUX_VERSION_EXTENSION`
  3985. A string extension compiled into the version string of the Linux
  3986. kernel built with the OpenEmbedded build system. You define this
  3987. variable in the kernel recipe. For example, the linux-yocto kernel
  3988. recipes all define the variable as follows::
  3989. LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
  3990. Defining this variable essentially sets the Linux kernel
  3991. configuration item ``CONFIG_LOCALVERSION``, which is visible through
  3992. the ``uname`` command. Here is an example that shows the extension
  3993. assuming it was set as previously shown::
  3994. $ uname -r
  3995. 3.7.0-rc8-custom
  3996. :term:`LOG_DIR`
  3997. Specifies the directory to which the OpenEmbedded build system writes
  3998. overall log files. The default directory is ``${TMPDIR}/log``.
  3999. For the directory containing logs specific to each task, see the
  4000. :term:`T` variable.
  4001. :term:`MACHINE`
  4002. Specifies the target device for which the image is built. You define
  4003. :term:`MACHINE` in the ``local.conf`` file found in the
  4004. :term:`Build Directory`. By default, :term:`MACHINE` is set to
  4005. "qemux86", which is an x86-based architecture machine to be emulated
  4006. using QEMU::
  4007. MACHINE ?= "qemux86"
  4008. The variable corresponds to a machine configuration file of the same
  4009. name, through which machine-specific configurations are set. Thus,
  4010. when :term:`MACHINE` is set to "qemux86", the corresponding
  4011. ``qemux86.conf`` machine configuration file can be found in
  4012. the :term:`Source Directory` in
  4013. ``meta/conf/machine``.
  4014. The list of machines supported by the Yocto Project as shipped
  4015. include the following::
  4016. MACHINE ?= "qemuarm"
  4017. MACHINE ?= "qemuarm64"
  4018. MACHINE ?= "qemumips"
  4019. MACHINE ?= "qemumips64"
  4020. MACHINE ?= "qemuppc"
  4021. MACHINE ?= "qemux86"
  4022. MACHINE ?= "qemux86-64"
  4023. MACHINE ?= "genericx86"
  4024. MACHINE ?= "genericx86-64"
  4025. MACHINE ?= "beaglebone"
  4026. The last five are Yocto Project reference hardware
  4027. boards, which are provided in the ``meta-yocto-bsp`` layer.
  4028. .. note::
  4029. Adding additional Board Support Package (BSP) layers to your
  4030. configuration adds new possible settings for :term:`MACHINE`.
  4031. :term:`MACHINE_ARCH`
  4032. Specifies the name of the machine-specific architecture. This
  4033. variable is set automatically from :term:`MACHINE` or
  4034. :term:`TUNE_PKGARCH`. You should not hand-edit
  4035. the :term:`MACHINE_ARCH` variable.
  4036. :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4037. A list of required machine-specific packages to install as part of
  4038. the image being built. The build process depends on these packages
  4039. being present. Furthermore, because this is a "machine-essential"
  4040. variable, the list of packages are essential for the machine to boot.
  4041. The impact of this variable affects images based on
  4042. ``packagegroup-core-boot``, including the ``core-image-minimal``
  4043. image.
  4044. This variable is similar to the
  4045. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS` variable with the exception
  4046. that the image being built has a build dependency on the variable's
  4047. list of packages. In other words, the image will not build if a file
  4048. in this list is not found.
  4049. As an example, suppose the machine for which you are building
  4050. requires ``example-init`` to be run during boot to initialize the
  4051. hardware. In this case, you would use the following in the machine's
  4052. ``.conf`` configuration file::
  4053. MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"
  4054. :term:`MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
  4055. A list of recommended machine-specific packages to install as part of
  4056. the image being built. The build process does not depend on these
  4057. packages being present. However, because this is a
  4058. "machine-essential" variable, the list of packages are essential for
  4059. the machine to boot. The impact of this variable affects images based
  4060. on ``packagegroup-core-boot``, including the ``core-image-minimal``
  4061. image.
  4062. This variable is similar to the :term:`MACHINE_ESSENTIAL_EXTRA_RDEPENDS`
  4063. variable with the exception that the image being built does not have
  4064. a build dependency on the variable's list of packages. In other
  4065. words, the image will still build if a package in this list is not
  4066. found. Typically, this variable is used to handle essential kernel
  4067. modules, whose functionality may be selected to be built into the
  4068. kernel rather than as a module, in which case a package will not be
  4069. produced.
  4070. Consider an example where you have a custom kernel where a specific
  4071. touchscreen driver is required for the machine to be usable. However,
  4072. the driver can be built as a module or into the kernel depending on
  4073. the kernel configuration. If the driver is built as a module, you
  4074. want it to be installed. But, when the driver is built into the
  4075. kernel, you still want the build to succeed. This variable sets up a
  4076. "recommends" relationship so that in the latter case, the build will
  4077. not fail due to the missing package. To accomplish this, assuming the
  4078. package for the module was called ``kernel-module-ab123``, you would
  4079. use the following in the machine's ``.conf`` configuration file::
  4080. MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-module-ab123"
  4081. .. note::
  4082. In this example, the ``kernel-module-ab123`` recipe needs to
  4083. explicitly set its :term:`PACKAGES` variable to ensure that BitBake
  4084. does not use the kernel recipe's :term:`PACKAGES_DYNAMIC` variable to
  4085. satisfy the dependency.
  4086. Some examples of these machine essentials are flash, screen,
  4087. keyboard, mouse, or touchscreen drivers (depending on the machine).
  4088. :term:`MACHINE_EXTRA_RDEPENDS`
  4089. A list of machine-specific packages to install as part of the image
  4090. being built that are not essential for the machine to boot. However,
  4091. the build process for more fully-featured images depends on the
  4092. packages being present.
  4093. This variable affects all images based on ``packagegroup-base``,
  4094. which does not include the ``core-image-minimal`` or
  4095. ``core-image-full-cmdline`` images.
  4096. The variable is similar to the :term:`MACHINE_EXTRA_RRECOMMENDS` variable
  4097. with the exception that the image being built has a build dependency
  4098. on the variable's list of packages. In other words, the image will
  4099. not build if a file in this list is not found.
  4100. An example is a machine that has WiFi capability but is not essential
  4101. for the machine to boot the image. However, if you are building a
  4102. more fully-featured image, you want to enable the WiFi. The package
  4103. containing the firmware for the WiFi hardware is always expected to
  4104. exist, so it is acceptable for the build process to depend upon
  4105. finding the package. In this case, assuming the package for the
  4106. firmware was called ``wifidriver-firmware``, you would use the
  4107. following in the ``.conf`` file for the machine::
  4108. MACHINE_EXTRA_RDEPENDS += "wifidriver-firmware"
  4109. :term:`MACHINE_EXTRA_RRECOMMENDS`
  4110. A list of machine-specific packages to install as part of the image
  4111. being built that are not essential for booting the machine. The image
  4112. being built has no build dependency on this list of packages.
  4113. This variable affects only images based on ``packagegroup-base``,
  4114. which does not include the ``core-image-minimal`` or
  4115. ``core-image-full-cmdline`` images.
  4116. This variable is similar to the :term:`MACHINE_EXTRA_RDEPENDS` variable
  4117. with the exception that the image being built does not have a build
  4118. dependency on the variable's list of packages. In other words, the
  4119. image will build if a file in this list is not found.
  4120. An example is a machine that has WiFi capability but is not essential
  4121. For the machine to boot the image. However, if you are building a
  4122. more fully-featured image, you want to enable WiFi. In this case, the
  4123. package containing the WiFi kernel module will not be produced if the
  4124. WiFi driver is built into the kernel, in which case you still want
  4125. the build to succeed instead of failing as a result of the package
  4126. not being found. To accomplish this, assuming the package for the
  4127. module was called ``kernel-module-examplewifi``, you would use the
  4128. following in the ``.conf`` file for the machine::
  4129. MACHINE_EXTRA_RRECOMMENDS += "kernel-module-examplewifi"
  4130. :term:`MACHINE_FEATURES`
  4131. Specifies the list of hardware features the
  4132. :term:`MACHINE` is capable of supporting. For related
  4133. information on enabling features, see the
  4134. :term:`DISTRO_FEATURES`,
  4135. :term:`COMBINED_FEATURES`, and
  4136. :term:`IMAGE_FEATURES` variables.
  4137. For a list of hardware features supported by the Yocto Project as
  4138. shipped, see the ":ref:`ref-features-machine`" section.
  4139. :term:`MACHINE_FEATURES_BACKFILL`
  4140. A list of space-separated features to be added to
  4141. :term:`MACHINE_FEATURES` if not also present in
  4142. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`.
  4143. This variable is set in the ``meta/conf/bitbake.conf`` file. It is not
  4144. intended to be user-configurable. It is best to just reference the
  4145. variable to see which machine features are being
  4146. :ref:`backfilled <ref-features-backfill>` for all machine configurations.
  4147. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED`
  4148. A list of space-separated features from :term:`MACHINE_FEATURES_BACKFILL`
  4149. that should not be :ref:`backfilled <ref-features-backfill>` (i.e. added
  4150. to :term:`MACHINE_FEATURES`) during the build.
  4151. This corresponds to an opt-out mechanism. When new default machine
  4152. features are introduced, machine definition maintainers can review
  4153. (`consider`) them and decide to exclude them from the
  4154. :ref:`backfilled <ref-features-backfill>` features. Therefore, the
  4155. combination of :term:`MACHINE_FEATURES_BACKFILL` and
  4156. :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED` makes it possible to
  4157. add new default features without breaking existing machine definitions.
  4158. :term:`MACHINEOVERRIDES`
  4159. A colon-separated list of overrides that apply to the current
  4160. machine. By default, this list includes the value of
  4161. :term:`MACHINE`.
  4162. You can extend :term:`MACHINEOVERRIDES` to add extra overrides that
  4163. should apply to a machine. For example, all machines emulated in QEMU
  4164. (e.g. ``qemuarm``, ``qemux86``, and so forth) include a file named
  4165. ``meta/conf/machine/include/qemu.inc`` that prepends the following
  4166. override to :term:`MACHINEOVERRIDES`::
  4167. MACHINEOVERRIDES =. "qemuall:"
  4168. This
  4169. override allows variables to be overridden for all machines emulated
  4170. in QEMU, like in the following example from the ``connman-conf``
  4171. recipe::
  4172. SRC_URI:append:qemuall = " file://wired.config \
  4173. file://wired-setup \
  4174. "
  4175. The underlying mechanism behind
  4176. :term:`MACHINEOVERRIDES` is simply that it is included in the default
  4177. value of :term:`OVERRIDES`.
  4178. :term:`MAINTAINER`
  4179. The email address of the distribution maintainer.
  4180. :term:`MESON_BUILDTYPE`
  4181. Value of the Meson ``--buildtype`` argument used by the
  4182. :ref:`ref-classes-meson` class. It defaults to ``debug`` if
  4183. :term:`DEBUG_BUILD` is set to "1", and ``plain`` otherwise.
  4184. See `Meson build options <https://mesonbuild.com/Builtin-options.html>`__
  4185. for the values you could set in a recipe. Values such as ``plain``,
  4186. ``debug``, ``debugoptimized``, ``release`` and ``minsize`` allow
  4187. you to specify the inclusion of debugging symbols and the compiler
  4188. optimizations (none, performance or size).
  4189. :term:`MESON_TARGET`
  4190. A variable for the :ref:`ref-classes-meson` class, allowing to choose
  4191. a Meson target to build in :ref:`ref-tasks-compile`. Otherwise, the
  4192. default targets are built.
  4193. :term:`METADATA_BRANCH`
  4194. The branch currently checked out for the OpenEmbedded-Core layer (path
  4195. determined by :term:`COREBASE`).
  4196. :term:`METADATA_REVISION`
  4197. The revision currently checked out for the OpenEmbedded-Core layer (path
  4198. determined by :term:`COREBASE`).
  4199. :term:`MIME_XDG_PACKAGES`
  4200. The current implementation of the :ref:`ref-classes-mime-xdg`
  4201. class cannot detect ``.desktop`` files installed through absolute
  4202. symbolic links. Use this setting to make the class create post-install
  4203. and post-remove scripts for these packages anyway, to invoke the
  4204. ``update-destop-database`` command.
  4205. :term:`MIRRORS`
  4206. Specifies additional paths from which the OpenEmbedded build system
  4207. gets source code. When the build system searches for source code, it
  4208. first tries the local download directory. If that location fails, the
  4209. build system tries locations defined by
  4210. :term:`PREMIRRORS`, the upstream source, and then
  4211. locations specified by :term:`MIRRORS` in that order.
  4212. The default value for :term:`MIRRORS` is defined in the
  4213. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  4214. :term:`MLPREFIX`
  4215. Specifies a prefix has been added to :term:`PN` to create a
  4216. special version of a recipe or package (i.e. a Multilib version). The
  4217. variable is used in places where the prefix needs to be added to or
  4218. removed from a name (e.g. the :term:`BPN` variable).
  4219. :term:`MLPREFIX` gets set when a prefix has been added to :term:`PN`.
  4220. .. note::
  4221. The "ML" in :term:`MLPREFIX` stands for "MultiLib". This representation
  4222. is historical and comes from a time when ":ref:`ref-classes-nativesdk`"
  4223. was a suffix rather than a prefix on the recipe name. When
  4224. ":ref:`ref-classes-nativesdk`" was turned into a prefix, it made sense
  4225. to set :term:`MLPREFIX` for it as well.
  4226. To help understand when :term:`MLPREFIX` might be needed, consider when
  4227. :term:`BBCLASSEXTEND` is used to provide a :ref:`ref-classes-nativesdk`
  4228. version of a recipe in addition to the target version. If that recipe
  4229. declares build-time dependencies on tasks in other recipes by using
  4230. :term:`DEPENDS`, then a dependency on "foo" will automatically get
  4231. rewritten to a dependency on "nativesdk-foo". However, dependencies like
  4232. the following will not get rewritten automatically::
  4233. do_foo[depends] += "recipe:do_foo"
  4234. If you want such a dependency to also get transformed, you can do the
  4235. following::
  4236. do_foo[depends] += "${MLPREFIX}recipe:do_foo"
  4237. :term:`module_autoload`
  4238. This variable has been replaced by the :term:`KERNEL_MODULE_AUTOLOAD`
  4239. variable. You should replace all occurrences of :term:`module_autoload`
  4240. with additions to :term:`KERNEL_MODULE_AUTOLOAD`, for example::
  4241. module_autoload_rfcomm = "rfcomm"
  4242. should now be replaced with::
  4243. KERNEL_MODULE_AUTOLOAD += "rfcomm"
  4244. See the :term:`KERNEL_MODULE_AUTOLOAD` variable for more information.
  4245. :term:`module_conf`
  4246. Specifies `modprobe.d <https://linux.die.net/man/5/modprobe.d>`__
  4247. syntax lines for inclusion in the ``/etc/modprobe.d/modname.conf``
  4248. file.
  4249. You can use this variable anywhere that it can be recognized by the
  4250. kernel recipe or out-of-tree kernel module recipe (e.g. a machine
  4251. configuration file, a distribution configuration file, an append file
  4252. for the recipe, or the recipe itself). If you use this variable, you
  4253. must also be sure to list the module name in the
  4254. :term:`KERNEL_MODULE_PROBECONF`
  4255. variable.
  4256. Here is the general syntax::
  4257. module_conf_module_name = "modprobe.d-syntax"
  4258. You must use the kernel module name override.
  4259. Run ``man modprobe.d`` in the shell to find out more information on
  4260. the exact syntax you want to provide with :term:`module_conf`.
  4261. Including :term:`module_conf` causes the OpenEmbedded build system to
  4262. populate the ``/etc/modprobe.d/modname.conf`` file with
  4263. ``modprobe.d`` syntax lines. Here is an example that adds the options
  4264. ``arg1`` and ``arg2`` to a module named ``mymodule``::
  4265. module_conf_mymodule = "options mymodule arg1=val1 arg2=val2"
  4266. For information on how to specify kernel modules to auto-load on
  4267. boot, see the :term:`KERNEL_MODULE_AUTOLOAD` variable.
  4268. :term:`MODULE_TARBALL_DEPLOY`
  4269. Controls creation of the ``modules-*.tgz`` file. Set this variable to
  4270. "0" to disable creation of this file, which contains all of the
  4271. kernel modules resulting from a kernel build.
  4272. :term:`MODULE_TARBALL_LINK_NAME`
  4273. The link name of the kernel module tarball. This variable is set in
  4274. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4275. MODULE_TARBALL_LINK_NAME ?= "${KERNEL_ARTIFACT_LINK_NAME}"
  4276. The value
  4277. of the ``KERNEL_ARTIFACT_LINK_NAME`` variable, which is set in the
  4278. same file, has the following value::
  4279. KERNEL_ARTIFACT_LINK_NAME ?= "${MACHINE}"
  4280. See the :term:`MACHINE` variable for additional information.
  4281. :term:`MODULE_TARBALL_NAME`
  4282. The base name of the kernel module tarball. This variable is set in
  4283. the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as follows::
  4284. MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
  4285. See :term:`KERNEL_ARTIFACT_NAME` for additional information.
  4286. :term:`MOUNT_BASE`
  4287. On non-systemd systems (where ``udev-extraconf`` is being used),
  4288. specifies the base directory for auto-mounting filesystems. The
  4289. default value is "/run/media".
  4290. :term:`MULTIMACH_TARGET_SYS`
  4291. Uniquely identifies the type of the target system for which packages
  4292. are being built. This variable allows output for different types of
  4293. target systems to be put into different subdirectories of the same
  4294. output directory.
  4295. The default value of this variable is::
  4296. ${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}
  4297. Some classes (e.g. :ref:`ref-classes-cross-canadian`) modify the
  4298. :term:`MULTIMACH_TARGET_SYS` value.
  4299. See the :term:`STAMP` variable for an example. See the
  4300. :term:`STAGING_DIR_TARGET` variable for more information.
  4301. :term:`NATIVELSBSTRING`
  4302. A string identifying the host distribution. Strings consist of the
  4303. host distributor ID followed by the release, as reported by the
  4304. ``lsb_release`` tool or as read from ``/etc/lsb-release``. For
  4305. example, when running a build on Ubuntu 12.10, the value is
  4306. "Ubuntu-12.10". If this information is unable to be determined, the
  4307. value resolves to "Unknown".
  4308. This variable is used by default to isolate native shared state
  4309. packages for different distributions (e.g. to avoid problems with
  4310. ``glibc`` version incompatibilities). Additionally, the variable is
  4311. checked against
  4312. :term:`SANITY_TESTED_DISTROS` if that
  4313. variable is set.
  4314. :term:`NM`
  4315. The minimal command and arguments to run ``nm``.
  4316. :term:`NO_GENERIC_LICENSE`
  4317. Avoids QA errors when you use a non-common, non-CLOSED license in a
  4318. recipe. There are packages, such as the linux-firmware package, with many
  4319. licenses that are not in any way common. Also, new licenses are added
  4320. occasionally to avoid introducing a lot of common license files,
  4321. which are only applicable to a specific package.
  4322. :term:`NO_GENERIC_LICENSE` is used to allow copying a license that does
  4323. not exist in common licenses.
  4324. The following example shows how to add :term:`NO_GENERIC_LICENSE` to a
  4325. recipe::
  4326. NO_GENERIC_LICENSE[license_name] = "license_file_in_fetched_source"
  4327. Here is an example that
  4328. uses the ``LICENSE.Abilis.txt`` file as the license from the fetched
  4329. source::
  4330. NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt"
  4331. :term:`NO_RECOMMENDATIONS`
  4332. Prevents installation of all "recommended-only" packages.
  4333. Recommended-only packages are packages installed only through the
  4334. :term:`RRECOMMENDS` variable). Setting the
  4335. :term:`NO_RECOMMENDATIONS` variable to "1" turns this feature on::
  4336. NO_RECOMMENDATIONS = "1"
  4337. You can set this variable globally in your ``local.conf`` file or you
  4338. can attach it to a specific image recipe by using the recipe name
  4339. override::
  4340. NO_RECOMMENDATIONS:pn-target_image = "1"
  4341. It is important to realize that if you choose to not install packages
  4342. using this variable and some other packages are dependent on them
  4343. (i.e. listed in a recipe's :term:`RDEPENDS`
  4344. variable), the OpenEmbedded build system ignores your request and
  4345. will install the packages to avoid dependency errors.
  4346. .. note::
  4347. Some recommended packages might be required for certain system
  4348. functionality, such as kernel modules. It is up to you to add
  4349. packages with the :term:`IMAGE_INSTALL` variable.
  4350. This variable is only supported when using the IPK and RPM
  4351. packaging backends. DEB is not supported.
  4352. See the :term:`BAD_RECOMMENDATIONS` and
  4353. the :term:`PACKAGE_EXCLUDE` variables for
  4354. related information.
  4355. :term:`NOAUTOPACKAGEDEBUG`
  4356. Disables auto package from splitting ``.debug`` files. If a recipe
  4357. requires ``FILES:${PN}-dbg`` to be set manually, the
  4358. :term:`NOAUTOPACKAGEDEBUG` can be defined allowing you to define the
  4359. content of the debug package. For example::
  4360. NOAUTOPACKAGEDEBUG = "1"
  4361. FILES:${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*"
  4362. FILES:${PN}-dbg = "/usr/src/debug/"
  4363. FILES:${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch"
  4364. :term:`NON_MULTILIB_RECIPES`
  4365. A list of recipes that should not be built for multilib. OE-Core's
  4366. ``multilib.conf`` file defines a reasonable starting point for this
  4367. list with::
  4368. NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"
  4369. :term:`NVDCVE_API_KEY`
  4370. The NVD API key used to retrieve data from the CVE database when
  4371. using :ref:`ref-classes-cve-check`.
  4372. By default, no API key is used, which results in larger delays between API
  4373. requests and limits the number of queries to the public rate limits posted
  4374. at the `NVD developer's page <https://nvd.nist.gov/developers/start-here>`__.
  4375. NVD API keys can be requested through the
  4376. `Request an API Key <https://nvd.nist.gov/developers/request-an-api-key>`__
  4377. page. You can set this variable to the NVD API key in your ``local.conf`` file.
  4378. Example::
  4379. NVDCVE_API_KEY = "fe753&7a2-1427-347d-23ff-b2e2b7ca5f3"
  4380. :term:`OBJCOPY`
  4381. The minimal command and arguments to run ``objcopy``.
  4382. :term:`OBJDUMP`
  4383. The minimal command and arguments to run ``objdump``.
  4384. :term:`OE_BINCONFIG_EXTRA_MANGLE`
  4385. When inheriting the :ref:`ref-classes-binconfig` class,
  4386. this variable specifies additional arguments passed to the "sed"
  4387. command. The sed command alters any paths in configuration scripts
  4388. that have been set up during compilation. Inheriting this class
  4389. results in all paths in these scripts being changed to point into the
  4390. ``sysroots/`` directory so that all builds that use the script will
  4391. use the correct directories for the cross compiling layout.
  4392. See the ``meta/classes-recipe/binconfig.bbclass`` in the
  4393. :term:`Source Directory` for details on how this class
  4394. applies these additional sed command arguments.
  4395. :term:`OECMAKE_GENERATOR`
  4396. A variable for the :ref:`ref-classes-cmake` class, allowing to choose
  4397. which back-end will be generated by CMake to build an application.
  4398. By default, this variable is set to ``Ninja``, which is faster than GNU
  4399. make, but if building is broken with Ninja, a recipe can use this
  4400. variable to use GNU make instead::
  4401. OECMAKE_GENERATOR = "Unix Makefiles"
  4402. :term:`OE_INIT_ENV_SCRIPT`
  4403. The name of the build environment setup script for the purposes of
  4404. setting up the environment within the extensible SDK. The default
  4405. value is "oe-init-build-env".
  4406. If you use a custom script to set up your build environment, set the
  4407. :term:`OE_INIT_ENV_SCRIPT` variable to its name.
  4408. :term:`OE_TERMINAL`
  4409. Controls how the OpenEmbedded build system spawns interactive
  4410. terminals on the host development system (e.g. using the BitBake
  4411. command with the ``-c devshell`` command-line option). For more
  4412. information, see the ":ref:`dev-manual/development-shell:using a development shell`" section in
  4413. the Yocto Project Development Tasks Manual.
  4414. You can use the following values for the :term:`OE_TERMINAL` variable:
  4415. - auto
  4416. - gnome
  4417. - xfce
  4418. - rxvt
  4419. - screen
  4420. - konsole
  4421. - none
  4422. :term:`OEROOT`
  4423. The directory from which the top-level build environment setup script
  4424. is sourced. The Yocto Project provides a top-level build environment
  4425. setup script: :ref:`structure-core-script`. When you run this
  4426. script, the :term:`OEROOT` variable resolves to the directory that
  4427. contains the script.
  4428. For additional information on how this variable is used, see the
  4429. initialization script.
  4430. :term:`OEQA_REPRODUCIBLE_TEST_PACKAGE`
  4431. Set the package manager(s) for build reproducibility testing.
  4432. See :yocto_git:`reproducible.py </poky/tree/meta/lib/oeqa/selftest/cases/reproducible.py>`
  4433. and :doc:`/test-manual/reproducible-builds`.
  4434. :term:`OEQA_REPRODUCIBLE_TEST_TARGET`
  4435. Set build target for build reproducibility testing. By default
  4436. all available recipes are compiled with "bitbake world", see also :term:`EXCLUDE_FROM_WORLD`
  4437. and :doc:`/test-manual/reproducible-builds`.
  4438. :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`
  4439. Set build targets which can be rebuilt using :ref:`shared state <overview-manual/concepts:shared state cache>`
  4440. when running build reproducibility tests. See :doc:`/test-manual/reproducible-builds`.
  4441. :term:`OLDEST_KERNEL`
  4442. Declares the oldest version of the Linux kernel that the produced
  4443. binaries must support. This variable is passed into the build of the
  4444. Embedded GNU C Library (``glibc``).
  4445. The default for this variable comes from the
  4446. ``meta/conf/bitbake.conf`` configuration file. You can override this
  4447. default by setting the variable in a custom distribution
  4448. configuration file.
  4449. :term:`OPKG_MAKE_INDEX_EXTRA_PARAMS`
  4450. Specifies extra parameters for the ``opkg-make-index`` command.
  4451. :term:`OPKGBUILDCMD`
  4452. The variable :term:`OPKGBUILDCMD` specifies the command used to build opkg
  4453. packages when using the :ref:`ref-classes-package_ipk` class. It is
  4454. defined in :ref:`ref-classes-package_ipk` as::
  4455. OPKGBUILDCMD ??= 'opkg-build -Z zstd -a "${ZSTD_DEFAULTS}"'
  4456. :term:`OVERLAYFS_ETC_DEVICE`
  4457. When the :ref:`ref-classes-overlayfs-etc` class is
  4458. inherited, specifies the device to be mounted for the read/write
  4459. layer of ``/etc``. There is no default, so you must set this if you
  4460. wish to enable :ref:`ref-classes-overlayfs-etc`, for
  4461. example, assuming ``/dev/mmcblk0p2`` was the desired device::
  4462. OVERLAYFS_ETC_DEVICE = "/dev/mmcblk0p2"
  4463. :term:`OVERLAYFS_ETC_EXPOSE_LOWER`
  4464. When the :ref:`ref-classes-overlayfs-etc` class is
  4465. inherited, if set to "1" then a read-only access to the original
  4466. ``/etc`` content will be provided as a ``lower/`` subdirectory of
  4467. :term:`OVERLAYFS_ETC_MOUNT_POINT`. The default value is "0".
  4468. :term:`OVERLAYFS_ETC_FSTYPE`
  4469. When the :ref:`ref-classes-overlayfs-etc` class is
  4470. inherited, specifies the file system type for the read/write
  4471. layer of ``/etc``. There is no default, so you must set this if you
  4472. wish to enable :ref:`ref-classes-overlayfs-etc`,
  4473. for example, assuming the file system is ext4::
  4474. OVERLAYFS_ETC_FSTYPE = "ext4"
  4475. :term:`OVERLAYFS_ETC_MOUNT_OPTIONS`
  4476. When the :ref:`ref-classes-overlayfs-etc` class is
  4477. inherited, specifies the mount options for the read-write layer.
  4478. The default value is "defaults".
  4479. :term:`OVERLAYFS_ETC_MOUNT_POINT`
  4480. When the :ref:`ref-classes-overlayfs-etc` class is
  4481. inherited, specifies the parent mount path for the filesystem layers.
  4482. There is no default, so you must set this if you wish to enable
  4483. :ref:`ref-classes-overlayfs-etc`, for example if the desired path is
  4484. "/data"::
  4485. OVERLAYFS_ETC_MOUNT_POINT = "/data"
  4486. :term:`OVERLAYFS_ETC_USE_ORIG_INIT_NAME`
  4487. When the :ref:`ref-classes-overlayfs-etc` class is inherited, controls
  4488. how the generated init will be named. For more information, see the
  4489. :ref:`ref-classes-overlayfs-etc` class documentation. The default value
  4490. is "1".
  4491. :term:`OVERLAYFS_MOUNT_POINT`
  4492. When inheriting the :ref:`ref-classes-overlayfs` class,
  4493. specifies mount point(s) to be used. For example::
  4494. OVERLAYFS_MOUNT_POINT[data] = "/data"
  4495. The assumes you have a ``data.mount`` systemd unit defined elsewhere in
  4496. your BSP (e.g. in ``systemd-machine-units`` recipe) and it is installed
  4497. into the image. For more information see :ref:`ref-classes-overlayfs`.
  4498. .. note::
  4499. Although the :ref:`ref-classes-overlayfs` class is
  4500. inherited by individual recipes, :term:`OVERLAYFS_MOUNT_POINT`
  4501. should be set in your machine configuration.
  4502. :term:`OVERLAYFS_QA_SKIP`
  4503. When inheriting the :ref:`ref-classes-overlayfs` class,
  4504. provides the ability to disable QA checks for particular overlayfs
  4505. mounts. For example::
  4506. OVERLAYFS_QA_SKIP[data] = "mount-configured"
  4507. .. note::
  4508. Although the :ref:`ref-classes-overlayfs` class is
  4509. inherited by individual recipes, :term:`OVERLAYFS_QA_SKIP`
  4510. should be set in your machine configuration.
  4511. :term:`OVERLAYFS_WRITABLE_PATHS`
  4512. When inheriting the :ref:`ref-classes-overlayfs` class,
  4513. specifies writable paths used at runtime for the recipe. For
  4514. example::
  4515. OVERLAYFS_WRITABLE_PATHS[data] = "/usr/share/my-custom-application"
  4516. :term:`OVERRIDES`
  4517. A colon-separated list of overrides that currently apply. Overrides
  4518. are a BitBake mechanism that allows variables to be selectively
  4519. overridden at the end of parsing. The set of overrides in
  4520. :term:`OVERRIDES` represents the "state" during building, which includes
  4521. the current recipe being built, the machine for which it is being
  4522. built, and so forth.
  4523. As an example, if the string "an-override" appears as an element in
  4524. the colon-separated list in :term:`OVERRIDES`, then the following
  4525. assignment will override ``FOO`` with the value "overridden" at the
  4526. end of parsing::
  4527. FOO:an-override = "overridden"
  4528. See the
  4529. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:conditional syntax (overrides)`"
  4530. section in the BitBake User Manual for more information on the
  4531. overrides mechanism.
  4532. The default value of :term:`OVERRIDES` includes the values of the
  4533. :term:`CLASSOVERRIDE`,
  4534. :term:`MACHINEOVERRIDES`, and
  4535. :term:`DISTROOVERRIDES` variables. Another
  4536. important override included by default is ``pn-${PN}``. This override
  4537. allows variables to be set for a single recipe within configuration
  4538. (``.conf``) files. Here is an example::
  4539. FOO:pn-myrecipe = "myrecipe-specific value"
  4540. .. note::
  4541. An easy way to see what overrides apply is to search for :term:`OVERRIDES`
  4542. in the output of the ``bitbake -e`` command. See the
  4543. ":ref:`dev-manual/debugging:viewing variable values`" section in the Yocto
  4544. Project Development Tasks Manual for more information.
  4545. :term:`P`
  4546. The recipe name and version. :term:`P` is comprised of the following::
  4547. ${PN}-${PV}
  4548. :term:`P4DIR`
  4549. See :term:`bitbake:P4DIR` in the BitBake manual.
  4550. :term:`PACKAGE_ADD_METADATA`
  4551. This variable defines additional metadata to add to packages.
  4552. You may find you need to inject additional metadata into packages.
  4553. This variable allows you to do that by setting the injected data as
  4554. the value. Multiple fields can be added by splitting the content with
  4555. the literal separator "\n".
  4556. The suffixes '_IPK', '_DEB', or '_RPM' can be applied to the variable
  4557. to do package type specific settings. It can also be made package
  4558. specific by using the package name as a suffix.
  4559. You can find out more about applying this variable in the
  4560. ":ref:`dev-manual/packages:adding custom metadata to packages`"
  4561. section in the Yocto Project Development Tasks Manual.
  4562. :term:`PACKAGE_ARCH`
  4563. The architecture of the resulting package or packages.
  4564. By default, the value of this variable is set to
  4565. :term:`TUNE_PKGARCH` when building for the
  4566. target, :term:`BUILD_ARCH` when building for the
  4567. build host, and "${SDK_ARCH}-${SDKPKGSUFFIX}" when building for the
  4568. SDK.
  4569. .. note::
  4570. See :term:`SDK_ARCH` for more information.
  4571. However, if your recipe's output packages are built specific to the
  4572. target machine rather than generally for the architecture of the
  4573. machine, you should set :term:`PACKAGE_ARCH` to the value of
  4574. :term:`MACHINE_ARCH` in the recipe as follows::
  4575. PACKAGE_ARCH = "${MACHINE_ARCH}"
  4576. :term:`PACKAGE_ARCHS`
  4577. Specifies a list of architectures compatible with the target machine.
  4578. This variable is set automatically and should not normally be
  4579. hand-edited. Entries are separated using spaces and listed in order
  4580. of priority. The default value for :term:`PACKAGE_ARCHS` is "all any
  4581. noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".
  4582. :term:`PACKAGE_BEFORE_PN`
  4583. Enables easily adding packages to :term:`PACKAGES` before ``${PN}`` so
  4584. that those added packages can pick up files that would normally be
  4585. included in the default package.
  4586. :term:`PACKAGE_CLASSES`
  4587. This variable, which is set in the ``local.conf`` configuration file
  4588. found in the ``conf`` folder of the
  4589. :term:`Build Directory`, specifies the package manager the
  4590. OpenEmbedded build system uses when packaging data.
  4591. You can provide one or more of the following arguments for the
  4592. variable::
  4593. PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
  4594. The build system uses only the first argument in the list as the
  4595. package manager when creating your image or SDK. However, packages
  4596. will be created using any additional packaging classes you specify.
  4597. For example, if you use the following in your ``local.conf`` file::
  4598. PACKAGE_CLASSES ?= "package_ipk"
  4599. The OpenEmbedded build system uses
  4600. the IPK package manager to create your image or SDK.
  4601. For information on packaging and build performance effects as a
  4602. result of the package manager in use, see the
  4603. ":ref:`ref-classes-package`" section.
  4604. :term:`PACKAGE_DEBUG_SPLIT_STYLE`
  4605. Determines how to split up and package debug and source information
  4606. when creating debugging packages to be used with the GNU Project
  4607. Debugger (GDB). In general, based on the value of this variable,
  4608. you can combine the source and debug info in a single package,
  4609. you can break out the source into a separate package that can be
  4610. installed independently, or you can choose to not have the source
  4611. packaged at all.
  4612. The possible values of :term:`PACKAGE_DEBUG_SPLIT_STYLE` variable:
  4613. - "``.debug``": All debugging and source info is placed in a single
  4614. ``*-dbg`` package; debug symbol files are placed next to the
  4615. binary in a ``.debug`` directory so that, if a binary is installed
  4616. into ``/bin``, the corresponding debug symbol file is installed
  4617. in ``/bin/.debug``. Source files are installed in the same ``*-dbg``
  4618. package under ``/usr/src/debug``.
  4619. - "``debug-file-directory``": As above, all debugging and source info
  4620. is placed in a single ``*-dbg`` package; debug symbol files are
  4621. placed entirely under the directory ``/usr/lib/debug`` and separated
  4622. by the path from where the binary is installed, so that if a binary
  4623. is installed in ``/bin``, the corresponding debug symbols are installed
  4624. in ``/usr/lib/debug/bin``, and so on. As above, source is installed
  4625. in the same package under ``/usr/src/debug``.
  4626. - "``debug-with-srcpkg``": Debugging info is placed in the standard
  4627. ``*-dbg`` package as with the ``.debug`` value, while source is
  4628. placed in a separate ``*-src`` package, which can be installed
  4629. independently. This is the default setting for this variable,
  4630. as defined in Poky's ``bitbake.conf`` file.
  4631. - "``debug-without-src``": The same behavior as with the ``.debug``
  4632. setting, but no source is packaged at all.
  4633. .. note::
  4634. Much of the above package splitting can be overridden via
  4635. use of the :term:`INHIBIT_PACKAGE_DEBUG_SPLIT` variable.
  4636. You can find out more about debugging using GDB by reading the
  4637. ":ref:`dev-manual/debugging:debugging with the gnu project debugger (gdb) remotely`" section
  4638. in the Yocto Project Development Tasks Manual.
  4639. :term:`PACKAGE_EXCLUDE`
  4640. Lists packages that should not be installed into an image. For
  4641. example::
  4642. PACKAGE_EXCLUDE = "package_name package_name package_name ..."
  4643. You can set this variable globally in your ``local.conf`` file or you
  4644. can attach it to a specific image recipe by using the recipe name
  4645. override::
  4646. PACKAGE_EXCLUDE:pn-target_image = "package_name"
  4647. If you choose to not install a package using this variable and some
  4648. other package is dependent on it (i.e. listed in a recipe's
  4649. :term:`RDEPENDS` variable), the OpenEmbedded build
  4650. system generates a fatal installation error. Because the build system
  4651. halts the process with a fatal error, you can use the variable with
  4652. an iterative development process to remove specific components from a
  4653. system.
  4654. This variable is supported only when using the IPK and RPM
  4655. packaging backends. DEB is not supported.
  4656. See the :term:`NO_RECOMMENDATIONS` and the
  4657. :term:`BAD_RECOMMENDATIONS` variables for
  4658. related information.
  4659. :term:`PACKAGE_EXCLUDE_COMPLEMENTARY`
  4660. Prevents specific packages from being installed when you are
  4661. installing complementary packages.
  4662. You might find that you want to prevent installing certain packages
  4663. when you are installing complementary packages. For example, if you
  4664. are using :term:`IMAGE_FEATURES` to install
  4665. ``dev-pkgs``, you might not want to install all packages from a
  4666. particular multilib. If you find yourself in this situation, you can
  4667. use the :term:`PACKAGE_EXCLUDE_COMPLEMENTARY` variable to specify regular
  4668. expressions to match the packages you want to exclude.
  4669. :term:`PACKAGE_EXTRA_ARCHS`
  4670. Specifies the list of architectures compatible with the device CPU.
  4671. This variable is useful when you build for several different devices
  4672. that use miscellaneous processors such as XScale and ARM926-EJS.
  4673. :term:`PACKAGE_FEED_ARCHS`
  4674. Optionally specifies the package architectures used as part of the
  4675. package feed URIs during the build. When used, the
  4676. :term:`PACKAGE_FEED_ARCHS` variable is appended to the final package feed
  4677. URI, which is constructed using the
  4678. :term:`PACKAGE_FEED_URIS` and
  4679. :term:`PACKAGE_FEED_BASE_PATHS`
  4680. variables.
  4681. .. note::
  4682. You can use the :term:`PACKAGE_FEED_ARCHS`
  4683. variable to allow specific package architectures. If you do
  4684. not need to allow specific architectures, which is a common
  4685. case, you can omit this variable. Omitting the variable results in
  4686. all available architectures for the current machine being included
  4687. into remote package feeds.
  4688. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4689. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4690. defined in your ``local.conf`` file::
  4691. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4692. https://example.com/packagerepos/updates"
  4693. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4694. PACKAGE_FEED_ARCHS = "all core2-64"
  4695. Given these settings, the resulting package feeds are as follows:
  4696. .. code-block:: none
  4697. https://example.com/packagerepos/release/rpm/all
  4698. https://example.com/packagerepos/release/rpm/core2-64
  4699. https://example.com/packagerepos/release/rpm-dev/all
  4700. https://example.com/packagerepos/release/rpm-dev/core2-64
  4701. https://example.com/packagerepos/updates/rpm/all
  4702. https://example.com/packagerepos/updates/rpm/core2-64
  4703. https://example.com/packagerepos/updates/rpm-dev/all
  4704. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4705. :term:`PACKAGE_FEED_BASE_PATHS`
  4706. Specifies the base path used when constructing package feed URIs. The
  4707. :term:`PACKAGE_FEED_BASE_PATHS` variable makes up the middle portion of a
  4708. package feed URI used by the OpenEmbedded build system. The base path
  4709. lies between the :term:`PACKAGE_FEED_URIS`
  4710. and :term:`PACKAGE_FEED_ARCHS` variables.
  4711. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4712. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4713. defined in your ``local.conf`` file::
  4714. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4715. https://example.com/packagerepos/updates"
  4716. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4717. PACKAGE_FEED_ARCHS = "all core2-64"
  4718. Given these settings, the resulting package feeds are as follows:
  4719. .. code-block:: none
  4720. https://example.com/packagerepos/release/rpm/all
  4721. https://example.com/packagerepos/release/rpm/core2-64
  4722. https://example.com/packagerepos/release/rpm-dev/all
  4723. https://example.com/packagerepos/release/rpm-dev/core2-64
  4724. https://example.com/packagerepos/updates/rpm/all
  4725. https://example.com/packagerepos/updates/rpm/core2-64
  4726. https://example.com/packagerepos/updates/rpm-dev/all
  4727. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4728. :term:`PACKAGE_FEED_URIS`
  4729. Specifies the front portion of the package feed URI used by the
  4730. OpenEmbedded build system. Each final package feed URI is comprised
  4731. of :term:`PACKAGE_FEED_URIS`,
  4732. :term:`PACKAGE_FEED_BASE_PATHS`, and
  4733. :term:`PACKAGE_FEED_ARCHS` variables.
  4734. Consider the following example where the :term:`PACKAGE_FEED_URIS`,
  4735. :term:`PACKAGE_FEED_BASE_PATHS`, and :term:`PACKAGE_FEED_ARCHS` variables are
  4736. defined in your ``local.conf`` file::
  4737. PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
  4738. https://example.com/packagerepos/updates"
  4739. PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
  4740. PACKAGE_FEED_ARCHS = "all core2-64"
  4741. Given these settings, the resulting package feeds are as follows:
  4742. .. code-block:: none
  4743. https://example.com/packagerepos/release/rpm/all
  4744. https://example.com/packagerepos/release/rpm/core2-64
  4745. https://example.com/packagerepos/release/rpm-dev/all
  4746. https://example.com/packagerepos/release/rpm-dev/core2-64
  4747. https://example.com/packagerepos/updates/rpm/all
  4748. https://example.com/packagerepos/updates/rpm/core2-64
  4749. https://example.com/packagerepos/updates/rpm-dev/all
  4750. https://example.com/packagerepos/updates/rpm-dev/core2-64
  4751. :term:`PACKAGE_INSTALL`
  4752. The final list of packages passed to the package manager for
  4753. installation into the image.
  4754. Because the package manager controls actual installation of all
  4755. packages, the list of packages passed using :term:`PACKAGE_INSTALL` is
  4756. not the final list of packages that are actually installed. This
  4757. variable is internal to the image construction code. Consequently, in
  4758. general, you should use the
  4759. :term:`IMAGE_INSTALL` variable to specify
  4760. packages for installation. The exception to this is when working with
  4761. the :ref:`core-image-minimal-initramfs <ref-manual/images:images>`
  4762. image. When working with an initial RAM filesystem (:term:`Initramfs`) image,
  4763. use the :term:`PACKAGE_INSTALL` variable. For information on creating an
  4764. :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
  4765. in the Yocto Project Development Tasks Manual.
  4766. :term:`PACKAGE_INSTALL_ATTEMPTONLY`
  4767. Specifies a list of packages the OpenEmbedded build system attempts
  4768. to install when creating an image. If a listed package fails to
  4769. install, the build system does not generate an error. This variable
  4770. is generally not user-defined.
  4771. :term:`PACKAGE_PREPROCESS_FUNCS`
  4772. Specifies a list of functions run to pre-process the
  4773. :term:`PKGD` directory prior to splitting the files out
  4774. to individual packages.
  4775. :term:`PACKAGE_WRITE_DEPS`
  4776. Specifies a list of dependencies for post-installation and
  4777. pre-installation scripts on native/cross tools. If your
  4778. post-installation or pre-installation script can execute at root filesystem
  4779. creation time rather than on the target but depends on a native tool
  4780. in order to execute, you need to list the tools in
  4781. :term:`PACKAGE_WRITE_DEPS`.
  4782. For information on running post-installation scripts, see the
  4783. ":ref:`dev-manual/new-recipe:post-installation scripts`"
  4784. section in the Yocto Project Development Tasks Manual.
  4785. :term:`PACKAGECONFIG`
  4786. This variable provides a means of enabling or disabling features of a
  4787. recipe on a per-recipe basis. :term:`PACKAGECONFIG` blocks are defined in
  4788. recipes when you specify features and then arguments that define
  4789. feature behaviors. Here is the basic block structure (broken over
  4790. multiple lines for readability)::
  4791. PACKAGECONFIG ??= "f1 f2 f3 ..."
  4792. PACKAGECONFIG[f1] = "\
  4793. --with-f1, \
  4794. --without-f1, \
  4795. build-deps-for-f1, \
  4796. runtime-deps-for-f1, \
  4797. runtime-recommends-for-f1, \
  4798. packageconfig-conflicts-for-f1"
  4799. PACKAGECONFIG[f2] = "\
  4800. ... and so on and so on ...
  4801. The :term:`PACKAGECONFIG` variable itself specifies a space-separated
  4802. list of the features to enable. Following the features, you can
  4803. determine the behavior of each feature by providing up to six
  4804. order-dependent arguments, which are separated by commas. You can
  4805. omit any argument you like but must retain the separating commas. The
  4806. order is important and specifies the following:
  4807. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  4808. if the feature is enabled.
  4809. #. Extra arguments that should be added to :term:`PACKAGECONFIG_CONFARGS`
  4810. if the feature is disabled.
  4811. #. Additional build dependencies (:term:`DEPENDS`)
  4812. that should be added if the feature is enabled.
  4813. #. Additional runtime dependencies (:term:`RDEPENDS`)
  4814. that should be added if the feature is enabled.
  4815. #. Additional runtime recommendations
  4816. (:term:`RRECOMMENDS`) that should be added if
  4817. the feature is enabled.
  4818. #. Any conflicting (that is, mutually exclusive) :term:`PACKAGECONFIG`
  4819. settings for this feature.
  4820. Consider the following :term:`PACKAGECONFIG` block taken from the
  4821. ``librsvg`` recipe. In this example the feature is ``gtk``, which has
  4822. three arguments that determine the feature's behavior::
  4823. PACKAGECONFIG[gtk] = "--with-gtk3,--without-gtk3,gtk+3"
  4824. The
  4825. ``--with-gtk3`` and ``gtk+3`` arguments apply only if the feature is
  4826. enabled. In this case, ``--with-gtk3`` is added to the configure
  4827. script argument list and ``gtk+3`` is added to :term:`DEPENDS`. On the
  4828. other hand, if the feature is disabled say through a ``.bbappend``
  4829. file in another layer, then the second argument ``--without-gtk3`` is
  4830. added to the configure script instead.
  4831. The basic :term:`PACKAGECONFIG` structure previously described holds true
  4832. regardless of whether you are creating a block or changing a block.
  4833. When creating a block, use the structure inside your recipe.
  4834. If you want to change an existing :term:`PACKAGECONFIG` block, you can do
  4835. so one of two ways:
  4836. - *Append file:* Create an append file named
  4837. ``recipename.bbappend`` in your layer and override the value of
  4838. :term:`PACKAGECONFIG`. You can either completely override the
  4839. variable::
  4840. PACKAGECONFIG = "f4 f5"
  4841. Or, you can just append the variable::
  4842. PACKAGECONFIG:append = " f4"
  4843. - *Configuration file:* This method is identical to changing the
  4844. block through an append file except you edit your ``local.conf``
  4845. or ``mydistro.conf`` file. As with append files previously
  4846. described, you can either completely override the variable::
  4847. PACKAGECONFIG:pn-recipename = "f4 f5"
  4848. Or, you can just amend the variable::
  4849. PACKAGECONFIG:append:pn-recipename = " f4"
  4850. Consider the following example of a :ref:`ref-classes-cmake` recipe with a systemd service
  4851. in which :term:`PACKAGECONFIG` is used to transform the systemd service
  4852. into a feature that can be easily enabled or disabled via :term:`PACKAGECONFIG`::
  4853. example.c
  4854. example.service
  4855. CMakeLists.txt
  4856. The ``CMakeLists.txt`` file contains::
  4857. if(WITH_SYSTEMD)
  4858. install(FILES ${PROJECT_SOURCE_DIR}/example.service DESTINATION /etc/systemd/systemd)
  4859. endif(WITH_SYSTEMD)
  4860. In order to enable the installation of ``example.service`` we need to
  4861. ensure that ``-DWITH_SYSTEMD=ON`` is passed to the ``cmake`` command
  4862. execution. Recipes that have ``CMakeLists.txt`` generally inherit the
  4863. :ref:`ref-classes-cmake` class, that runs ``cmake`` with
  4864. :term:`EXTRA_OECMAKE`, which :term:`PACKAGECONFIG_CONFARGS` will be
  4865. appended to. Now, knowing that :term:`PACKAGECONFIG_CONFARGS` is
  4866. automatically filled with either the first or second element of
  4867. :term:`PACKAGECONFIG` flag value, the recipe would be like::
  4868. inherit cmake
  4869. PACKAGECONFIG = "systemd"
  4870. PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF"
  4871. A side note to this recipe is to check if ``systemd`` is in fact the used :term:`INIT_MANAGER`
  4872. or not::
  4873. PACKAGECONFIG = "${@'systemd' if d.getVar('INIT_MANAGER') == 'systemd' else ''}"
  4874. :term:`PACKAGECONFIG_CONFARGS`
  4875. A space-separated list of configuration options generated from the
  4876. :term:`PACKAGECONFIG` setting.
  4877. Classes such as :ref:`ref-classes-autotools` and :ref:`ref-classes-cmake`
  4878. use :term:`PACKAGECONFIG_CONFARGS` to pass :term:`PACKAGECONFIG` options
  4879. to ``configure`` and ``cmake``, respectively. If you are using
  4880. :term:`PACKAGECONFIG` but not a class that handles the
  4881. :ref:`ref-tasks-configure` task, then you need to use
  4882. :term:`PACKAGECONFIG_CONFARGS` appropriately.
  4883. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY`
  4884. For recipes inheriting the :ref:`ref-classes-packagegroup` class, setting
  4885. :term:`PACKAGEGROUP_DISABLE_COMPLEMENTARY` to "1" specifies that the
  4886. normal complementary packages (i.e. ``-dev``, ``-dbg``, and so forth)
  4887. should not be automatically created by the ``packagegroup`` recipe,
  4888. which is the default behavior.
  4889. :term:`PACKAGES`
  4890. The list of packages the recipe creates. The default value is the
  4891. following::
  4892. ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}
  4893. During packaging, the :ref:`ref-tasks-package` task
  4894. goes through :term:`PACKAGES` and uses the :term:`FILES`
  4895. variable corresponding to each package to assign files to the
  4896. package. If a file matches the :term:`FILES` variable for more than one
  4897. package in :term:`PACKAGES`, it will be assigned to the earliest
  4898. (leftmost) package.
  4899. Packages in the variable's list that are empty (i.e. where none of
  4900. the patterns in ``FILES:``\ pkg match any files installed by the
  4901. :ref:`ref-tasks-install` task) are not generated,
  4902. unless generation is forced through the
  4903. :term:`ALLOW_EMPTY` variable.
  4904. :term:`PACKAGES_DYNAMIC`
  4905. A promise that your recipe satisfies runtime dependencies for
  4906. optional modules that are found in other recipes.
  4907. :term:`PACKAGES_DYNAMIC` does not actually satisfy the dependencies, it
  4908. only states that they should be satisfied. For example, if a hard,
  4909. runtime dependency (:term:`RDEPENDS`) of another
  4910. package is satisfied at build time through the :term:`PACKAGES_DYNAMIC`
  4911. variable, but a package with the module name is never actually
  4912. produced, then the other package will be broken. Thus, if you attempt
  4913. to include that package in an image, you will get a dependency
  4914. failure from the packaging system during the
  4915. :ref:`ref-tasks-rootfs` task.
  4916. Typically, if there is a chance that such a situation can occur and
  4917. the package that is not created is valid without the dependency being
  4918. satisfied, then you should use :term:`RRECOMMENDS`
  4919. (a soft runtime dependency) instead of :term:`RDEPENDS`.
  4920. For an example of how to use the :term:`PACKAGES_DYNAMIC` variable when
  4921. you are splitting packages, see the
  4922. ":ref:`dev-manual/packages:handling optional module packaging`"
  4923. section in the Yocto Project Development Tasks Manual.
  4924. :term:`PACKAGESPLITFUNCS`
  4925. Specifies a list of functions run to perform additional splitting of
  4926. files into individual packages. Recipes can either prepend to this
  4927. variable or prepend to the ``populate_packages`` function in order to
  4928. perform additional package splitting. In either case, the function
  4929. should set :term:`PACKAGES`,
  4930. :term:`FILES`, :term:`RDEPENDS` and
  4931. other packaging variables appropriately in order to perform the
  4932. desired splitting.
  4933. :term:`PARALLEL_MAKE`
  4934. Extra options passed to the build tool command (``make``,
  4935. ``ninja`` or more specific build engines, like the Go language one)
  4936. during the :ref:`ref-tasks-compile` task, to specify parallel compilation
  4937. on the local build host. This variable is usually in the form "-j x",
  4938. where x represents the maximum number of parallel threads such engines
  4939. can run.
  4940. .. note::
  4941. For software compiled by ``make``, in order for :term:`PARALLEL_MAKE`
  4942. to be effective, ``make`` must be called with
  4943. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  4944. way to ensure this is to use the ``oe_runmake`` function.
  4945. By default, the OpenEmbedded build system automatically sets this
  4946. variable to be equal to the number of cores the build system uses.
  4947. .. note::
  4948. If the software being built experiences dependency issues during
  4949. the :ref:`ref-tasks-compile` task that result in race conditions, you can clear
  4950. the :term:`PARALLEL_MAKE` variable within the recipe as a workaround. For
  4951. information on addressing race conditions, see the
  4952. ":ref:`dev-manual/debugging:debugging parallel make races`"
  4953. section in the Yocto Project Development Tasks Manual.
  4954. For single socket systems (i.e. one CPU), you should not have to
  4955. override this variable to gain optimal parallelism during builds.
  4956. However, if you have very large systems that employ multiple physical
  4957. CPUs, you might want to make sure the :term:`PARALLEL_MAKE` variable is
  4958. not set higher than "-j 20".
  4959. For more information on speeding up builds, see the
  4960. ":ref:`dev-manual/speeding-up-build:speeding up a build`"
  4961. section in the Yocto Project Development Tasks Manual.
  4962. :term:`PARALLEL_MAKEINST`
  4963. Extra options passed to the build tool install command
  4964. (``make install``, ``ninja install`` or more specific ones)
  4965. during the :ref:`ref-tasks-install` task in order to specify
  4966. parallel installation. This variable defaults to the value of
  4967. :term:`PARALLEL_MAKE`.
  4968. .. note::
  4969. For software compiled by ``make``, in order for :term:`PARALLEL_MAKEINST`
  4970. to be effective, ``make`` must be called with
  4971. ``${``\ :term:`EXTRA_OEMAKE`\ ``}``. An easy
  4972. way to ensure this is to use the ``oe_runmake`` function.
  4973. If the software being built experiences dependency issues during
  4974. the :ref:`ref-tasks-install` task that result in race conditions, you can
  4975. clear the :term:`PARALLEL_MAKEINST` variable within the recipe as a
  4976. workaround. For information on addressing race conditions, see the
  4977. ":ref:`dev-manual/debugging:debugging parallel make races`"
  4978. section in the Yocto Project Development Tasks Manual.
  4979. :term:`PATCHRESOLVE`
  4980. Determines the action to take when a patch fails. You can set this
  4981. variable to one of two values: "noop" and "user".
  4982. The default value of "noop" causes the build to simply fail when the
  4983. OpenEmbedded build system cannot successfully apply a patch. Setting
  4984. the value to "user" causes the build system to launch a shell and
  4985. places you in the right location so that you can manually resolve the
  4986. conflicts.
  4987. Set this variable in your ``local.conf`` file.
  4988. :term:`PATCHTOOL`
  4989. Specifies the utility used to apply patches for a recipe during the
  4990. :ref:`ref-tasks-patch` task. You can specify one of
  4991. three utilities: "patch", "quilt", or "git". The default utility used
  4992. is "quilt" except for the quilt-native recipe itself. Because the
  4993. quilt tool is not available at the time quilt-native is being
  4994. patched, it uses "patch".
  4995. If you wish to use an alternative patching tool, set the variable in
  4996. the recipe using one of the following::
  4997. PATCHTOOL = "patch"
  4998. PATCHTOOL = "quilt"
  4999. PATCHTOOL = "git"
  5000. :term:`PE`
  5001. The epoch of the recipe. By default, this variable is unset. The
  5002. variable is used to make upgrades possible when the versioning scheme
  5003. changes in some backwards incompatible way.
  5004. :term:`PE` is the default value of the :term:`PKGE` variable.
  5005. :term:`PEP517_WHEEL_PATH`
  5006. When used by recipes that inherit the :ref:`ref-classes-python_pep517`
  5007. class, denotes the path to ``dist/`` (short for distribution) where the
  5008. binary archive ``wheel`` is built.
  5009. :term:`PERSISTENT_DIR`
  5010. See :term:`bitbake:PERSISTENT_DIR` in the BitBake manual.
  5011. :term:`PF`
  5012. Specifies the recipe or package name and includes all version and
  5013. revision numbers (i.e. ``glibc-2.13-r20+svnr15508/`` and
  5014. ``bash-4.2-r1/``). This variable is comprised of the following:
  5015. ${:term:`PN`}-${:term:`EXTENDPE`}${:term:`PV`}-${:term:`PR`}
  5016. :term:`PIXBUF_PACKAGES`
  5017. When inheriting the :ref:`ref-classes-pixbufcache`
  5018. class, this variable identifies packages that contain the pixbuf
  5019. loaders used with ``gdk-pixbuf``. By default, the
  5020. :ref:`ref-classes-pixbufcache` class assumes that
  5021. the loaders are in the recipe's main package (i.e.
  5022. ``${``\ :term:`PN`\ ``}``). Use this variable if the
  5023. loaders you need are in a package other than that main package.
  5024. :term:`PKG`
  5025. The name of the resulting package created by the OpenEmbedded build
  5026. system.
  5027. .. note::
  5028. When using the :term:`PKG` variable, you must use a package name override.
  5029. For example, when the :ref:`ref-classes-debian` class renames the output
  5030. package, it does so by setting ``PKG:packagename``.
  5031. :term:`PKG_CONFIG_PATH`
  5032. The path to ``pkg-config`` files for the current build context.
  5033. ``pkg-config`` reads this variable from the environment.
  5034. :term:`PKGD`
  5035. Points to the destination directory for files to be packaged before
  5036. they are split into individual packages. This directory defaults to
  5037. the following::
  5038. ${WORKDIR}/package
  5039. Do not change this default.
  5040. :term:`PKGDATA_DIR`
  5041. Points to a shared, global-state directory that holds data generated
  5042. during the packaging process. During the packaging process, the
  5043. :ref:`ref-tasks-packagedata` task packages data
  5044. for each recipe and installs it into this temporary, shared area.
  5045. This directory defaults to the following, which you should not
  5046. change::
  5047. ${STAGING_DIR_HOST}/pkgdata
  5048. For examples of how this data is used, see the
  5049. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5050. section in the Yocto Project Overview and Concepts Manual and the
  5051. ":ref:`dev-manual/debugging:viewing package information with \`\`oe-pkgdata-util\`\``"
  5052. section in the Yocto Project Development Tasks Manual. For more
  5053. information on the shared, global-state directory, see
  5054. :term:`STAGING_DIR_HOST`.
  5055. :term:`PKGDEST`
  5056. Points to the parent directory for files to be packaged after they
  5057. have been split into individual packages. This directory defaults to
  5058. the following::
  5059. ${WORKDIR}/packages-split
  5060. Under this directory, the build system creates directories for each
  5061. package specified in :term:`PACKAGES`. Do not change
  5062. this default.
  5063. :term:`PKGDESTWORK`
  5064. Points to a temporary work area where the
  5065. :ref:`ref-tasks-package` task saves package metadata.
  5066. The :term:`PKGDESTWORK` location defaults to the following::
  5067. ${WORKDIR}/pkgdata
  5068. Do not change this default.
  5069. The :ref:`ref-tasks-packagedata` task copies the
  5070. package metadata from :term:`PKGDESTWORK` to
  5071. :term:`PKGDATA_DIR` to make it available globally.
  5072. :term:`PKGE`
  5073. The epoch of the package(s) built by the recipe. By default, :term:`PKGE`
  5074. is set to :term:`PE`.
  5075. :term:`PKGR`
  5076. The revision of the package(s) built by the recipe. By default,
  5077. :term:`PKGR` is set to :term:`PR`.
  5078. :term:`PKGV`
  5079. The version of the package(s) built by the recipe. By default,
  5080. :term:`PKGV` is set to :term:`PV`.
  5081. :term:`PN`
  5082. This variable can have two separate functions depending on the
  5083. context: a recipe name or a resulting package name.
  5084. :term:`PN` refers to a recipe name in the context of a file used by the
  5085. OpenEmbedded build system as input to create a package. The name is
  5086. normally extracted from the recipe file name. For example, if the
  5087. recipe is named ``expat_2.0.1.bb``, then the default value of :term:`PN`
  5088. will be "expat".
  5089. The variable refers to a package name in the context of a file
  5090. created or produced by the OpenEmbedded build system.
  5091. If applicable, the :term:`PN` variable also contains any special suffix
  5092. or prefix. For example, using ``bash`` to build packages for the
  5093. native machine, :term:`PN` is ``bash-native``. Using ``bash`` to build
  5094. packages for the target and for Multilib, :term:`PN` would be ``bash``
  5095. and ``lib64-bash``, respectively.
  5096. :term:`POPULATE_SDK_POST_HOST_COMMAND`
  5097. Specifies a list of functions to call once the OpenEmbedded build
  5098. system has created the host part of the SDK. You can specify
  5099. functions separated by spaces::
  5100. POPULATE_SDK_POST_HOST_COMMAND += "function"
  5101. If you need to pass the SDK path to a command within a function, you
  5102. can use ``${SDK_DIR}``, which points to the parent directory used by
  5103. the OpenEmbedded build system when creating SDK output. See the
  5104. :term:`SDK_DIR` variable for more information.
  5105. :term:`POPULATE_SDK_POST_TARGET_COMMAND`
  5106. Specifies a list of functions to call once the OpenEmbedded build
  5107. system has created the target part of the SDK. You can specify
  5108. functions separated by spaces::
  5109. POPULATE_SDK_POST_TARGET_COMMAND += "function"
  5110. If you need to pass the SDK path to a command within a function, you
  5111. can use ``${SDK_DIR}``, which points to the parent directory used by
  5112. the OpenEmbedded build system when creating SDK output. See the
  5113. :term:`SDK_DIR` variable for more information.
  5114. :term:`PR`
  5115. The revision of the recipe. The default value for this variable is
  5116. "r0". Subsequent revisions of the recipe conventionally have the
  5117. values "r1", "r2", and so forth. When :term:`PV` increases,
  5118. :term:`PR` is conventionally reset to "r0".
  5119. .. note::
  5120. The OpenEmbedded build system does not need the aid of :term:`PR`
  5121. to know when to rebuild a recipe. The build system uses the task
  5122. :ref:`input checksums <overview-manual/concepts:checksums (signatures)>` along with the
  5123. :ref:`stamp <structure-build-tmp-stamps>` and
  5124. :ref:`overview-manual/concepts:shared state cache`
  5125. mechanisms.
  5126. The :term:`PR` variable primarily becomes significant when a package
  5127. manager dynamically installs packages on an already built image. In
  5128. this case, :term:`PR`, which is the default value of
  5129. :term:`PKGR`, helps the package manager distinguish which
  5130. package is the most recent one in cases where many packages have the
  5131. same :term:`PV` (i.e. :term:`PKGV`). A component having many packages with
  5132. the same :term:`PV` usually means that the packages all install the same
  5133. upstream version, but with later (:term:`PR`) version packages including
  5134. packaging fixes.
  5135. .. note::
  5136. :term:`PR` does not need to be increased for changes that do not change the
  5137. package contents or metadata.
  5138. Because manually managing :term:`PR` can be cumbersome and error-prone,
  5139. an automated solution exists. See the
  5140. ":ref:`dev-manual/packages:working with a pr service`" section
  5141. in the Yocto Project Development Tasks Manual for more information.
  5142. :term:`PREFERRED_PROVIDER`
  5143. If multiple recipes provide the same item, this variable determines
  5144. which recipe is preferred and thus provides the item (i.e. the
  5145. preferred provider). You should always suffix this variable with the
  5146. name of the provided item. And, you should define the variable using
  5147. the preferred recipe's name (:term:`PN`). Here is a common
  5148. example::
  5149. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  5150. In the previous example, multiple recipes are providing "virtual/kernel".
  5151. The :term:`PREFERRED_PROVIDER` variable is set with the name (:term:`PN`) of
  5152. the recipe you prefer to provide "virtual/kernel".
  5153. Here are more examples::
  5154. PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86"
  5155. PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
  5156. For more
  5157. information, see the ":ref:`dev-manual/new-recipe:using virtual providers`"
  5158. section in the Yocto Project Development Tasks Manual.
  5159. .. note::
  5160. If you use a ``virtual/\*`` item with :term:`PREFERRED_PROVIDER`, then any
  5161. recipe that :term:`PROVIDES` that item but is not selected (defined)
  5162. by :term:`PREFERRED_PROVIDER` is prevented from building, which is usually
  5163. desirable since this mechanism is designed to select between mutually
  5164. exclusive alternative providers.
  5165. :term:`PREFERRED_PROVIDERS`
  5166. See :term:`bitbake:PREFERRED_PROVIDERS` in the BitBake manual.
  5167. :term:`PREFERRED_VERSION`
  5168. If there are multiple versions of a recipe available, this variable
  5169. determines which version should be given preference. You must always
  5170. suffix the variable with the :term:`PN` you want to select (`python` in
  5171. the first example below), and you should specify the :term:`PV`
  5172. accordingly (`3.4.0` in the example).
  5173. The :term:`PREFERRED_VERSION` variable supports limited wildcard use
  5174. through the "``%``" character. You can use the character to match any
  5175. number of characters, which can be useful when specifying versions
  5176. that contain long revision numbers that potentially change. Here are
  5177. two examples::
  5178. PREFERRED_VERSION_python = "3.4.0"
  5179. PREFERRED_VERSION_linux-yocto = "5.0%"
  5180. .. note::
  5181. The use of the "%" character is limited in that it only works at the end of the
  5182. string. You cannot use the wildcard character in any other
  5183. location of the string.
  5184. The specified version is matched against :term:`PV`, which does not
  5185. necessarily match the version part of the recipe's filename.
  5186. If you want to select a recipe named ``foo_git.bb`` which has :term:`PV`
  5187. set to ``1.2.3+git``, you can do so by setting ```PREFERRED_VERSION_foo``
  5188. to ``1.2.3%`` (i.e. simply setting ``PREFERRED_VERSION_foo`` to ``git``
  5189. will not work as the name of the recipe isn't used, but rather its
  5190. :term:`PV` definition).
  5191. Sometimes the :term:`PREFERRED_VERSION` variable can be set by
  5192. configuration files in a way that is hard to change. You can use
  5193. :term:`OVERRIDES` to set a machine-specific
  5194. override. Here is an example::
  5195. PREFERRED_VERSION_linux-yocto:qemux86 = "5.0%"
  5196. Although not recommended, worst case, you can also use the
  5197. "forcevariable" override, which is the strongest override possible.
  5198. Here is an example::
  5199. PREFERRED_VERSION_linux-yocto:forcevariable = "5.0%"
  5200. .. note::
  5201. The ``:forcevariable`` override is not handled specially. This override
  5202. only works because the default value of :term:`OVERRIDES` includes "forcevariable".
  5203. If a recipe with the specified version is not available, a warning
  5204. message will be shown. See :term:`REQUIRED_VERSION` if you want this
  5205. to be an error instead.
  5206. :term:`PREMIRRORS`
  5207. Specifies additional paths from which the OpenEmbedded build system
  5208. gets source code. When the build system searches for source code, it
  5209. first tries the local download directory. If that location fails, the
  5210. build system tries locations defined by :term:`PREMIRRORS`, the upstream
  5211. source, and then locations specified by
  5212. :term:`MIRRORS` in that order.
  5213. The default value for :term:`PREMIRRORS` is defined in the
  5214. ``meta/classes-global/mirrors.bbclass`` file in the core metadata layer.
  5215. Typically, you could add a specific server for the build system to
  5216. attempt before any others by adding something like the following to
  5217. the ``local.conf`` configuration file in the
  5218. :term:`Build Directory`::
  5219. PREMIRRORS:prepend = "\
  5220. git://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5221. ftp://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5222. http://.*/.* &YOCTO_DL_URL;/mirror/sources/ \
  5223. https://.*/.* &YOCTO_DL_URL;/mirror/sources/"
  5224. These changes cause the
  5225. build system to intercept Git, FTP, HTTP, and HTTPS requests and
  5226. direct them to the ``http://`` sources mirror. You can use
  5227. ``file://`` URLs to point to local directories or network shares as
  5228. well.
  5229. :term:`PRIORITY`
  5230. Indicates the importance of a package.
  5231. :term:`PRIORITY` is considered to be part of the distribution policy
  5232. because the importance of any given recipe depends on the purpose for
  5233. which the distribution is being produced. Thus, :term:`PRIORITY` is not
  5234. normally set within recipes.
  5235. You can set :term:`PRIORITY` to "required", "standard", "extra", and
  5236. "optional", which is the default.
  5237. :term:`PRIVATE_LIBS`
  5238. Specifies libraries installed within a recipe that should be ignored
  5239. by the OpenEmbedded build system's shared library resolver. This
  5240. variable is typically used when software being built by a recipe has
  5241. its own private versions of a library normally provided by another
  5242. recipe. In this case, you would not want the package containing the
  5243. private libraries to be set as a dependency on other unrelated
  5244. packages that should instead depend on the package providing the
  5245. standard version of the library.
  5246. Libraries specified in this variable should be specified by their
  5247. file name. For example, from the Firefox recipe in meta-browser::
  5248. PRIVATE_LIBS = "libmozjs.so \
  5249. libxpcom.so \
  5250. libnspr4.so \
  5251. libxul.so \
  5252. libmozalloc.so \
  5253. libplc4.so \
  5254. libplds4.so"
  5255. For more information, see the
  5256. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5257. section in the Yocto Project Overview and Concepts Manual.
  5258. :term:`PROVIDES`
  5259. A list of aliases by which a particular recipe can be known. By
  5260. default, a recipe's own :term:`PN` is implicitly already in its
  5261. :term:`PROVIDES` list and therefore does not need to mention that it
  5262. provides itself. If a recipe uses :term:`PROVIDES`, the additional
  5263. aliases are synonyms for the recipe and can be useful for satisfying
  5264. dependencies of other recipes during the build as specified by
  5265. :term:`DEPENDS`.
  5266. Consider the following example :term:`PROVIDES` statement from the recipe
  5267. file ``eudev_3.2.9.bb``::
  5268. PROVIDES += "udev"
  5269. The :term:`PROVIDES` statement
  5270. results in the "eudev" recipe also being available as simply "udev".
  5271. .. note::
  5272. A recipe's own recipe name (:term:`PN`) is always implicitly prepended
  5273. to :term:`PROVIDES`, so while using "+=" in the above example may not be
  5274. strictly necessary it is recommended to avoid confusion.
  5275. In addition to providing recipes under alternate names, the
  5276. :term:`PROVIDES` mechanism is also used to implement virtual targets. A
  5277. virtual target is a name that corresponds to some particular
  5278. functionality (e.g. a Linux kernel). Recipes that provide the
  5279. functionality in question list the virtual target in :term:`PROVIDES`.
  5280. Recipes that depend on the functionality in question can include the
  5281. virtual target in :term:`DEPENDS` to leave the choice of provider open.
  5282. Conventionally, virtual targets have names on the form
  5283. "virtual/function" (e.g. "virtual/kernel"). The slash is simply part
  5284. of the name and has no syntactical significance.
  5285. The :term:`PREFERRED_PROVIDER` variable is
  5286. used to select which particular recipe provides a virtual target.
  5287. .. note::
  5288. A corresponding mechanism for virtual runtime dependencies (packages)
  5289. exists. However, the mechanism does not depend on any special
  5290. functionality beyond ordinary variable assignments. For example,
  5291. :term:`VIRTUAL-RUNTIME_dev_manager <VIRTUAL-RUNTIME>` refers to the
  5292. package of the component that manages the ``/dev`` directory.
  5293. Setting the "preferred provider" for runtime dependencies is as
  5294. simple as using the following assignment in a configuration file::
  5295. VIRTUAL-RUNTIME_dev_manager = "udev"
  5296. :term:`PRSERV_HOST`
  5297. The network based :term:`PR` service host and port.
  5298. The ``conf/templates/default/local.conf.sample.extended`` configuration
  5299. file in the :term:`Source Directory` shows how the :term:`PRSERV_HOST`
  5300. variable is set::
  5301. PRSERV_HOST = "localhost:0"
  5302. You must
  5303. set the variable if you want to automatically start a local :ref:`PR
  5304. service <dev-manual/packages:working with a pr service>`. You can
  5305. set :term:`PRSERV_HOST` to other values to use a remote PR service.
  5306. :term:`PRSERV_UPSTREAM`
  5307. This variable can be used to specify an upstream PR server for the local
  5308. PR server to connect to, in the form of ``host:port``.
  5309. This makes it possible to implement local fixes to an upstream package.
  5310. :term:`PSEUDO_IGNORE_PATHS`
  5311. A comma-separated (without spaces) list of path prefixes that should be ignored
  5312. by pseudo when monitoring and recording file operations, in order to avoid
  5313. problems with files being written to outside of the pseudo context and
  5314. reduce pseudo's overhead. A path is ignored if it matches any prefix in the list
  5315. and can include partial directory (or file) names.
  5316. :term:`PTEST_ENABLED`
  5317. Specifies whether or not :ref:`Package
  5318. Test <test-manual/ptest:testing packages with ptest>` (ptest)
  5319. functionality is enabled when building a recipe. You should not set
  5320. this variable directly. Enabling and disabling building Package Tests
  5321. at build time should be done by adding "ptest" to (or removing it
  5322. from) :term:`DISTRO_FEATURES`.
  5323. :term:`PV`
  5324. The version of the recipe. The version is normally extracted from the
  5325. recipe filename. For example, if the recipe is named
  5326. ``expat_2.0.1.bb``, then the default value of :term:`PV` will be "2.0.1".
  5327. :term:`PV` is generally not overridden within a recipe unless it is
  5328. building an unstable (i.e. development) version from a source code
  5329. repository (e.g. Git or Subversion).
  5330. :term:`PV` is the default value of the :term:`PKGV` variable.
  5331. :term:`PYPI_PACKAGE`
  5332. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5333. `PyPI <https://pypi.org/>`__ package name to be built. The default value
  5334. is set based upon :term:`BPN` (stripping any "python-" or "python3-"
  5335. prefix off if present), however for some packages it will need to be set
  5336. explicitly if that will not match the package name (e.g. where the
  5337. package name has a prefix, underscores, uppercase letters etc.)
  5338. :term:`PYPI_PACKAGE_EXT`
  5339. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5340. file extension to use when fetching a package from `PyPI
  5341. <https://pypi.org/>`__. Default is ``tar.gz``.
  5342. :term:`PYPI_SRC_URI`
  5343. When inheriting the :ref:`ref-classes-pypi` class, specifies the
  5344. full `pythonhosted <https://files.pythonhosted.org/>`__ URI for
  5345. fetching the package to be built. The default value is constructed
  5346. based upon :term:`PYPI_PACKAGE`, :term:`PYPI_PACKAGE_EXT`, and
  5347. :term:`PV`. Most recipes will not need to set this variable unless
  5348. they are building an unstable (i.e. development) version.
  5349. :term:`PYTHON_ABI`
  5350. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  5351. class, denotes the Application Binary Interface (ABI) currently in use
  5352. for Python. By default, the ABI is "m". You do not have to set this
  5353. variable as the OpenEmbedded build system sets it for you.
  5354. The OpenEmbedded build system uses the ABI to construct directory
  5355. names used when installing the Python headers and libraries in
  5356. sysroot (e.g. ``.../python3.3m/...``).
  5357. :term:`QA_EMPTY_DIRS`
  5358. Specifies a list of directories that are expected to be empty when
  5359. packaging; if ``empty-dirs`` appears in :term:`ERROR_QA` or
  5360. :term:`WARN_QA` these will be checked and an error or warning
  5361. (respectively) will be produced.
  5362. The default :term:`QA_EMPTY_DIRS` value is set in
  5363. :ref:`insane.bbclass <ref-classes-insane>`.
  5364. :term:`QA_EMPTY_DIRS_RECOMMENDATION`
  5365. Specifies a recommendation for why a directory must be empty,
  5366. which will be included in the error message if a specific directory
  5367. is found to contain files. Must be overridden with the directory
  5368. path to match on.
  5369. If no recommendation is specified for a directory, then the default
  5370. "but it is expected to be empty" will be used.
  5371. An example message shows if files were present in '/dev'::
  5372. QA_EMPTY_DIRS_RECOMMENDATION:/dev = "but all devices must be created at runtime"
  5373. :term:`RANLIB`
  5374. The minimal command and arguments to run ``ranlib``.
  5375. :term:`RCONFLICTS`
  5376. The list of packages that conflict with packages. Note that packages
  5377. will not be installed if conflicting packages are not first removed.
  5378. Like all package-controlling variables, you must always use them in
  5379. conjunction with a package name override. Here is an example::
  5380. RCONFLICTS:${PN} = "another_conflicting_package_name"
  5381. BitBake, which the OpenEmbedded build system uses, supports
  5382. specifying versioned dependencies. Although the syntax varies
  5383. depending on the packaging format, BitBake hides these differences
  5384. from you. Here is the general syntax to specify versions with the
  5385. :term:`RCONFLICTS` variable::
  5386. RCONFLICTS:${PN} = "package (operator version)"
  5387. For ``operator``, you can specify the following:
  5388. - =
  5389. - <
  5390. - >
  5391. - <=
  5392. - >=
  5393. For example, the following sets up a dependency on version 1.2 or
  5394. greater of the package ``foo``::
  5395. RCONFLICTS:${PN} = "foo (>= 1.2)"
  5396. :term:`RDEPENDS`
  5397. Lists runtime dependencies of a package. These dependencies are other
  5398. packages that must be installed in order for the package to function
  5399. correctly. As an example, the following assignment declares that the
  5400. package ``foo`` needs the packages ``bar`` and ``baz`` to be
  5401. installed::
  5402. RDEPENDS:foo = "bar baz"
  5403. The most common types of package
  5404. runtime dependencies are automatically detected and added. Therefore,
  5405. most recipes do not need to set :term:`RDEPENDS`. For more information,
  5406. see the
  5407. ":ref:`overview-manual/concepts:automatically added runtime dependencies`"
  5408. section in the Yocto Project Overview and Concepts Manual.
  5409. The practical effect of the above :term:`RDEPENDS` assignment is that
  5410. ``bar`` and ``baz`` will be declared as dependencies inside the
  5411. package ``foo`` when it is written out by one of the
  5412. :ref:`do_package_write_* <ref-tasks-package_write_deb>` tasks.
  5413. Exactly how this is done depends on which package format is used,
  5414. which is determined by
  5415. :term:`PACKAGE_CLASSES`. When the
  5416. corresponding package manager installs the package, it will know to
  5417. also install the packages on which it depends.
  5418. To ensure that the packages ``bar`` and ``baz`` get built, the
  5419. previous :term:`RDEPENDS` assignment also causes a task dependency to be
  5420. added. This dependency is from the recipe's
  5421. :ref:`ref-tasks-build` (not to be confused with
  5422. :ref:`ref-tasks-compile`) task to the
  5423. :ref:`do_package_write_* <ref-tasks-package_write_deb>` task of the recipes that build ``bar`` and
  5424. ``baz``.
  5425. The names of the packages you list within :term:`RDEPENDS` must be the
  5426. names of other packages --- they cannot be recipe names. Although
  5427. package names and recipe names usually match, the important point
  5428. here is that you are providing package names within the :term:`RDEPENDS`
  5429. variable. For an example of the default list of packages created from
  5430. a recipe, see the :term:`PACKAGES` variable.
  5431. Because the :term:`RDEPENDS` variable applies to packages being built,
  5432. you should always use the variable in a form with an attached package
  5433. name (remember that a single recipe can build multiple packages). For
  5434. example, suppose you are building a development package that depends
  5435. on the ``perl`` package. In this case, you would use the following
  5436. :term:`RDEPENDS` statement::
  5437. RDEPENDS:${PN}-dev += "perl"
  5438. In the example,
  5439. the development package depends on the ``perl`` package. Thus, the
  5440. :term:`RDEPENDS` variable has the ``${PN}-dev`` package name as part of
  5441. the variable.
  5442. .. note::
  5443. ``RDEPENDS:${PN}-dev`` includes ``${``\ :term:`PN`\ ``}``
  5444. by default. This default is set in the BitBake configuration file
  5445. (``meta/conf/bitbake.conf``). Be careful not to accidentally remove
  5446. ``${PN}`` when modifying ``RDEPENDS:${PN}-dev``. Use the "+=" operator
  5447. rather than the "=" operator.
  5448. The package names you use with :term:`RDEPENDS` must appear as they would
  5449. in the :term:`PACKAGES` variable. The :term:`PKG` variable
  5450. allows a different name to be used for the final package (e.g. the
  5451. :ref:`ref-classes-debian` class uses this to rename
  5452. packages), but this final package name cannot be used with
  5453. :term:`RDEPENDS`, which makes sense as :term:`RDEPENDS` is meant to be
  5454. independent of the package format used.
  5455. BitBake, which the OpenEmbedded build system uses, supports
  5456. specifying versioned dependencies. Although the syntax varies
  5457. depending on the packaging format, BitBake hides these differences
  5458. from you. Here is the general syntax to specify versions with the
  5459. :term:`RDEPENDS` variable::
  5460. RDEPENDS:${PN} = "package (operator version)"
  5461. For ``operator``, you can specify the following:
  5462. - =
  5463. - <
  5464. - >
  5465. - <=
  5466. - >=
  5467. For version, provide the version number.
  5468. .. note::
  5469. You can use :term:`EXTENDPKGV` to provide a full package version
  5470. specification.
  5471. For example, the following sets up a dependency on version 1.2 or
  5472. greater of the package ``foo``::
  5473. RDEPENDS:${PN} = "foo (>= 1.2)"
  5474. For information on build-time dependencies, see the :term:`DEPENDS`
  5475. variable. You can also see the
  5476. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:tasks`" and
  5477. ":ref:`bitbake-user-manual/bitbake-user-manual-execution:dependencies`" sections in the
  5478. BitBake User Manual for additional information on tasks and dependencies.
  5479. :term:`RECIPE_MAINTAINER`
  5480. This variable defines the name and e-mail address of the maintainer of a
  5481. recipe. Such information can be used by human users submitted changes,
  5482. and by automated tools to send notifications, for example about
  5483. vulnerabilities or source updates.
  5484. The variable can be defined in a global distribution :oe_git:`maintainers.inc
  5485. </openembedded-core/tree/meta/conf/distro/include/maintainers.inc>` file::
  5486. meta/conf/distro/include/maintainers.inc:RECIPE_MAINTAINER:pn-sysvinit = "Ross Burton <ross.burton@arm.com>"
  5487. It can also be directly defined in a recipe,
  5488. for example in the ``libgpiod`` one::
  5489. RECIPE_MAINTAINER = "Bartosz Golaszewski <brgl@bgdev.pl>"
  5490. :term:`RECIPE_NO_UPDATE_REASON`
  5491. If a recipe should not be replaced by a more recent upstream version,
  5492. putting the reason why in this variable in a recipe allows
  5493. ``devtool check-upgrade-status`` command to display it, as explained
  5494. in the ":ref:`ref-manual/devtool-reference:checking on the upgrade status of a recipe`"
  5495. section.
  5496. :term:`RECIPE_SYSROOT`
  5497. This variable points to the directory that holds all files populated from
  5498. recipes specified in :term:`DEPENDS`. As the name indicates,
  5499. think of this variable as a custom root (``/``) for the recipe that will be
  5500. used by the compiler in order to find headers and other files needed to complete
  5501. its job.
  5502. This variable is related to :term:`STAGING_DIR_HOST` or :term:`STAGING_DIR_TARGET`
  5503. according to the type of the recipe and the build target.
  5504. To better understand this variable, consider the following examples:
  5505. - For ``#include <header.h>``, ``header.h`` should be in ``"${RECIPE_SYSROOT}/usr/include"``
  5506. - For ``-lexample``, ``libexample.so`` should be in ``"${RECIPE_SYSROOT}/lib"``
  5507. or other library sysroot directories.
  5508. The default value is ``"${WORKDIR}/recipe-sysroot"``.
  5509. Do not modify it.
  5510. :term:`RECIPE_SYSROOT_NATIVE`
  5511. This is similar to :term:`RECIPE_SYSROOT` but the populated files are from
  5512. ``-native`` recipes. This allows a recipe built for the target machine to
  5513. use ``native`` tools.
  5514. This variable is related to :term:`STAGING_DIR_NATIVE`.
  5515. The default value is ``"${WORKDIR}/recipe-sysroot-native"``.
  5516. Do not modify it.
  5517. :term:`RECIPE_UPGRADE_EXTRA_TASKS`
  5518. When upgrading a recipe with ``devtool upgrade``, the variable
  5519. :term:`RECIPE_UPGRADE_EXTRA_TASKS` specifies a space-delimited list of
  5520. tasks to run after the new sources have been unpacked.
  5521. For some recipes, after the new source has been unpacked, additional tasks
  5522. may need to be run during an upgrade. A good example of this is recipes
  5523. which inherit :ref:`ref-classes-cargo-update-recipe-crates`, where the
  5524. `do_update_crates` task needs to be run whenever Cargo.toml/Cargo.lock have
  5525. changed in the source.
  5526. :term:`REPODIR`
  5527. See :term:`bitbake:REPODIR` in the BitBake manual.
  5528. :term:`REQUIRED_DISTRO_FEATURES`
  5529. When inheriting the :ref:`ref-classes-features_check`
  5530. class, this variable identifies distribution features that must exist
  5531. in the current configuration in order for the OpenEmbedded build
  5532. system to build the recipe. In other words, if the
  5533. :term:`REQUIRED_DISTRO_FEATURES` variable lists a feature that does not
  5534. appear in :term:`DISTRO_FEATURES` within the current configuration, then
  5535. the recipe will be skipped, and if the build system attempts to build
  5536. the recipe then an error will be triggered.
  5537. :term:`REQUIRED_VERSION`
  5538. If there are multiple versions of a recipe available, this variable
  5539. determines which version should be given preference.
  5540. :term:`REQUIRED_VERSION` works in exactly the same manner as
  5541. :term:`PREFERRED_VERSION`, except that if the specified version is not
  5542. available then an error message is shown and the build fails
  5543. immediately.
  5544. If both :term:`REQUIRED_VERSION` and :term:`PREFERRED_VERSION` are set
  5545. for the same recipe, the :term:`REQUIRED_VERSION` value applies.
  5546. :term:`RETAIN_DIRS_ALWAYS`
  5547. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5548. space-separated recipe-specific directories to always save in a tarball
  5549. whether the recipe build has failed or not.
  5550. :term:`RETAIN_DIRS_FAILURE`
  5551. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5552. space-separated recipe-specific directories to save in a tarball on
  5553. failure of the recipe's build.
  5554. :term:`RETAIN_DIRS_GLOBAL_ALWAYS`
  5555. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5556. space-separated directories that are not specific to a recipe to save in a
  5557. tarball whether the build has failed or not.
  5558. :term:`RETAIN_DIRS_GLOBAL_FAILURE`
  5559. When inheriting the :ref:`ref-classes-retain` class, this variable holds
  5560. space-separated directories that are not specific to a recipe to save in a
  5561. tarball on build failure.
  5562. :term:`RETAIN_ENABLED`
  5563. Disables the creation of a tarball of the work directory done by the
  5564. :ref:`ref-classes-retain` class. Can be set to specific recipes to disable
  5565. the class when the class was inherited globally with :term:`INHERIT`.
  5566. :term:`RETAIN_OUTDIR`
  5567. When inheriting the :ref:`ref-classes-retain` class, this variable
  5568. specifies the directory where to save the tarball of the work directory.
  5569. The default directory is ``${TMPDIR}/retain``.
  5570. :term:`RETAIN_TARBALL_SUFFIX`
  5571. When inheriting the :ref:`ref-classes-retain` class, this variable
  5572. specifies the suffix of the tarball of the work directory. The default
  5573. suffix is ``${DATETIME}.tar.gz``.
  5574. :term:`RM_WORK_EXCLUDE`
  5575. With :ref:`ref-classes-rm-work` enabled, this variable
  5576. specifies a list of recipes whose work directories should not be removed.
  5577. See the ":ref:`ref-classes-rm-work`" section for more details.
  5578. :term:`ROOT_HOME`
  5579. Defines the root home directory. By default, this directory is set as
  5580. follows in the BitBake configuration file::
  5581. ROOT_HOME ??= "/home/root"
  5582. .. note::
  5583. This default value is likely used because some embedded solutions
  5584. prefer to have a read-only root filesystem and prefer to keep
  5585. writeable data in one place.
  5586. You can override the default by setting the variable in any layer or
  5587. in the ``local.conf`` file. Because the default is set using a "weak"
  5588. assignment (i.e. "??="), you can use either of the following forms to
  5589. define your override::
  5590. ROOT_HOME = "/root"
  5591. ROOT_HOME ?= "/root"
  5592. These
  5593. override examples use ``/root``, which is probably the most commonly
  5594. used override.
  5595. :term:`ROOTFS`
  5596. Indicates a filesystem image to include as the root filesystem.
  5597. The :term:`ROOTFS` variable is an optional variable used with the
  5598. :ref:`ref-classes-image-live` class.
  5599. :term:`ROOTFS_POSTINSTALL_COMMAND`
  5600. Specifies a list of functions to call after the OpenEmbedded build
  5601. system has installed packages. You can specify functions separated by
  5602. spaces::
  5603. ROOTFS_POSTINSTALL_COMMAND += "function"
  5604. If you need to pass the root filesystem path to a command within a
  5605. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5606. directory that becomes the root filesystem image. See the
  5607. :term:`IMAGE_ROOTFS` variable for more
  5608. information.
  5609. :term:`ROOTFS_POSTPROCESS_COMMAND`
  5610. Specifies a list of functions to call once the OpenEmbedded build
  5611. system has created the root filesystem. You can specify functions
  5612. separated by spaces::
  5613. ROOTFS_POSTPROCESS_COMMAND += "function"
  5614. If you need to pass the root filesystem path to a command within a
  5615. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5616. directory that becomes the root filesystem image. See the
  5617. :term:`IMAGE_ROOTFS` variable for more
  5618. information.
  5619. :term:`ROOTFS_POSTUNINSTALL_COMMAND`
  5620. Specifies a list of functions to call after the OpenEmbedded build
  5621. system has removed unnecessary packages. When runtime package
  5622. management is disabled in the image, several packages are removed
  5623. including ``base-passwd``, ``shadow``, and ``update-alternatives``.
  5624. You can specify functions separated by spaces::
  5625. ROOTFS_POSTUNINSTALL_COMMAND += "function"
  5626. If you need to pass the root filesystem path to a command within a
  5627. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5628. directory that becomes the root filesystem image. See the
  5629. :term:`IMAGE_ROOTFS` variable for more
  5630. information.
  5631. :term:`ROOTFS_PREPROCESS_COMMAND`
  5632. Specifies a list of functions to call before the OpenEmbedded build
  5633. system has created the root filesystem. You can specify functions
  5634. separated by spaces::
  5635. ROOTFS_PREPROCESS_COMMAND += "function"
  5636. If you need to pass the root filesystem path to a command within a
  5637. function, you can use ``${IMAGE_ROOTFS}``, which points to the
  5638. directory that becomes the root filesystem image. See the
  5639. :term:`IMAGE_ROOTFS` variable for more
  5640. information.
  5641. :term:`RPMBUILD_EXTRA_PARAMS`
  5642. Specifies extra user-defined parameters for the ``rpmbuild`` command.
  5643. :term:`RPROVIDES`
  5644. A list of package name aliases that a package also provides. These
  5645. aliases are useful for satisfying runtime dependencies of other
  5646. packages both during the build and on the target (as specified by
  5647. :term:`RDEPENDS`).
  5648. .. note::
  5649. A package's own name is implicitly already in its :term:`RPROVIDES` list.
  5650. As with all package-controlling variables, you must always use the
  5651. variable in conjunction with a package name override. Here is an
  5652. example::
  5653. RPROVIDES:${PN} = "widget-abi-2"
  5654. :term:`RRECOMMENDS`
  5655. A list of packages that extends the usability of a package being
  5656. built. The package being built does not depend on this list of
  5657. packages in order to successfully build, but rather uses them for
  5658. extended usability. To specify runtime dependencies for packages, see
  5659. the :term:`RDEPENDS` variable.
  5660. The package manager will automatically install the :term:`RRECOMMENDS`
  5661. list of packages when installing the built package. However, you can
  5662. prevent listed packages from being installed by using the
  5663. :term:`BAD_RECOMMENDATIONS`,
  5664. :term:`NO_RECOMMENDATIONS`, and
  5665. :term:`PACKAGE_EXCLUDE` variables.
  5666. Packages specified in :term:`RRECOMMENDS` need not actually be produced.
  5667. However, there must be a recipe providing each package, either
  5668. through the :term:`PACKAGES` or
  5669. :term:`PACKAGES_DYNAMIC` variables or the
  5670. :term:`RPROVIDES` variable, or an error will occur
  5671. during the build. If such a recipe does exist and the package is not
  5672. produced, the build continues without error.
  5673. Because the :term:`RRECOMMENDS` variable applies to packages being built,
  5674. you should always attach an override to the variable to specify the
  5675. particular package whose usability is being extended. For example,
  5676. suppose you are building a development package that is extended to
  5677. support wireless functionality. In this case, you would use the
  5678. following::
  5679. RRECOMMENDS:${PN}-dev += "wireless_package_name"
  5680. In the
  5681. example, the package name (``${PN}-dev``) must appear as it would in
  5682. the :term:`PACKAGES` namespace before any renaming of the output package
  5683. by classes such as :ref:`ref-classes-debian`.
  5684. BitBake, which the OpenEmbedded build system uses, supports
  5685. specifying versioned recommends. Although the syntax varies depending
  5686. on the packaging format, BitBake hides these differences from you.
  5687. Here is the general syntax to specify versions with the
  5688. :term:`RRECOMMENDS` variable::
  5689. RRECOMMENDS:${PN} = "package (operator version)"
  5690. For ``operator``, you can specify the following:
  5691. - =
  5692. - <
  5693. - >
  5694. - <=
  5695. - >=
  5696. For example, the following sets up a recommend on version 1.2 or
  5697. greater of the package ``foo``::
  5698. RRECOMMENDS:${PN} = "foo (>= 1.2)"
  5699. :term:`RREPLACES`
  5700. A list of packages replaced by a package. The package manager uses
  5701. this variable to determine which package should be installed to
  5702. replace other package(s) during an upgrade. In order to also have the
  5703. other package(s) removed at the same time, you must add the name of
  5704. the other package to the :term:`RCONFLICTS` variable.
  5705. As with all package-controlling variables, you must use this variable
  5706. in conjunction with a package name override. Here is an example::
  5707. RREPLACES:${PN} = "other_package_being_replaced"
  5708. BitBake, which the OpenEmbedded build system uses, supports
  5709. specifying versioned replacements. Although the syntax varies
  5710. depending on the packaging format, BitBake hides these differences
  5711. from you. Here is the general syntax to specify versions with the
  5712. :term:`RREPLACES` variable::
  5713. RREPLACES:${PN} = "package (operator version)"
  5714. For ``operator``, you can specify the following:
  5715. - =
  5716. - <
  5717. - >
  5718. - <=
  5719. - >=
  5720. For example, the following sets up a replacement using version 1.2
  5721. or greater of the package ``foo``::
  5722. RREPLACES:${PN} = "foo (>= 1.2)"
  5723. :term:`RSUGGESTS`
  5724. A list of additional packages that you can suggest for installation
  5725. by the package manager at the time a package is installed. Not all
  5726. package managers support this functionality.
  5727. As with all package-controlling variables, you must always use this
  5728. variable in conjunction with a package name override. Here is an
  5729. example::
  5730. RSUGGESTS:${PN} = "useful_package another_package"
  5731. :term:`RUST_CHANNEL`
  5732. Specifies which version of Rust to build - "stable", "beta" or "nightly".
  5733. The default value is "stable". Set this at your own risk, as values other
  5734. than "stable" are not guaranteed to work at a given time.
  5735. :term:`S`
  5736. The location in the :term:`Build Directory` where
  5737. unpacked recipe source code resides. By default, this directory is
  5738. ``${``\ :term:`WORKDIR`\ ``}/${``\ :term:`BPN`\ ``}-${``\ :term:`PV`\ ``}``,
  5739. where ``${BPN}`` is the base recipe name and ``${PV}`` is the recipe
  5740. version. If the source tarball extracts the code to a directory named
  5741. anything other than ``${BPN}-${PV}``, or if the source code is
  5742. fetched from an SCM such as Git or Subversion, then you must set
  5743. :term:`S` in the recipe so that the OpenEmbedded build system knows where
  5744. to find the unpacked source.
  5745. As an example, assume a :term:`Source Directory`
  5746. top-level folder named ``poky`` and a default :term:`Build Directory` at
  5747. ``poky/build``. In this case, the work directory the build system
  5748. uses to keep the unpacked recipe for ``db`` is the following::
  5749. poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19
  5750. The unpacked source code resides in the ``db-5.1.19`` folder.
  5751. This next example assumes a Git repository. By default, Git
  5752. repositories are cloned to ``${WORKDIR}/git`` during
  5753. :ref:`ref-tasks-fetch`. Since this path is different
  5754. from the default value of :term:`S`, you must set it specifically so the
  5755. source can be located::
  5756. SRC_URI = "git://path/to/repo.git;branch=main"
  5757. S = "${WORKDIR}/git"
  5758. :term:`SANITY_REQUIRED_UTILITIES`
  5759. Specifies a list of command-line utilities that should be checked for
  5760. during the initial sanity checking process when running BitBake. If
  5761. any of the utilities are not installed on the build host, then
  5762. BitBake immediately exits with an error.
  5763. :term:`SANITY_TESTED_DISTROS`
  5764. A list of the host distribution identifiers that the build system has
  5765. been tested against. Identifiers consist of the host distributor ID
  5766. followed by the release, as reported by the ``lsb_release`` tool or
  5767. as read from ``/etc/lsb-release``. Separate the list items with
  5768. explicit newline characters (``\n``). If :term:`SANITY_TESTED_DISTROS` is
  5769. not empty and the current value of
  5770. :term:`NATIVELSBSTRING` does not appear in the
  5771. list, then the build system reports a warning that indicates the
  5772. current host distribution has not been tested as a build host.
  5773. :term:`SDK_ARCH`
  5774. The target architecture for the SDK. Typically, you do not directly
  5775. set this variable. Instead, use :term:`SDKMACHINE`.
  5776. :term:`SDK_ARCHIVE_TYPE`
  5777. Specifies the type of archive to create for the SDK. Valid values:
  5778. - ``tar.xz`` (default)
  5779. - ``zip``
  5780. Only one archive type can be specified.
  5781. :term:`SDK_BUILDINFO_FILE`
  5782. When using the :ref:`ref-classes-image-buildinfo` class,
  5783. specifies the file in the SDK to write the build information into. The
  5784. default value is "``/buildinfo``".
  5785. :term:`SDK_CUSTOM_TEMPLATECONF`
  5786. When building the extensible SDK, if :term:`SDK_CUSTOM_TEMPLATECONF` is set to
  5787. "1" and a ``conf/templateconf.cfg`` file exists in the :term:`Build Directory`
  5788. (:term:`TOPDIR`) then this will be copied into the SDK.
  5789. :term:`SDK_DEPLOY`
  5790. The directory set up and used by the
  5791. :ref:`populate_sdk_base <ref-classes-populate-sdk>` class to which the
  5792. SDK is deployed. The :ref:`populate_sdk_base <ref-classes-populate-sdk>`
  5793. class defines :term:`SDK_DEPLOY` as follows::
  5794. SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  5795. :term:`SDK_DIR`
  5796. The parent directory used by the OpenEmbedded build system when
  5797. creating SDK output. The
  5798. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class defines
  5799. the variable as follows::
  5800. SDK_DIR = "${WORKDIR}/sdk"
  5801. .. note::
  5802. The :term:`SDK_DIR` directory is a temporary directory as it is part of
  5803. :term:`WORKDIR`. The final output directory is :term:`SDK_DEPLOY`.
  5804. :term:`SDK_EXT_TYPE`
  5805. Controls whether or not shared state artifacts are copied into the
  5806. extensible SDK. The default value of "full" copies all of the
  5807. required shared state artifacts into the extensible SDK. The value
  5808. "minimal" leaves these artifacts out of the SDK.
  5809. .. note::
  5810. If you set the variable to "minimal", you need to ensure
  5811. :term:`SSTATE_MIRRORS` is set in the SDK's configuration to enable the
  5812. artifacts to be fetched as needed.
  5813. :term:`SDK_HOST_MANIFEST`
  5814. The manifest file for the host part of the SDK. This file lists all
  5815. the installed packages that make up the host part of the SDK. The
  5816. file contains package information on a line-per-package basis as
  5817. follows::
  5818. packagename packagearch version
  5819. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5820. defines the manifest file as follows::
  5821. SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
  5822. The location is derived using the :term:`SDK_DEPLOY` and
  5823. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5824. :term:`SDK_INCLUDE_PKGDATA`
  5825. When set to "1", specifies to include the packagedata for all recipes
  5826. in the "world" target in the extensible SDK. Including this data
  5827. allows the ``devtool search`` command to find these recipes in search
  5828. results, as well as allows the ``devtool add`` command to map
  5829. dependencies more effectively.
  5830. .. note::
  5831. Enabling the :term:`SDK_INCLUDE_PKGDATA`
  5832. variable significantly increases build time because all of world
  5833. needs to be built. Enabling the variable also slightly increases
  5834. the size of the extensible SDK.
  5835. :term:`SDK_INCLUDE_TOOLCHAIN`
  5836. When set to "1", specifies to include the toolchain in the extensible
  5837. SDK. Including the toolchain is useful particularly when
  5838. :term:`SDK_EXT_TYPE` is set to "minimal" to keep
  5839. the SDK reasonably small but you still want to provide a usable
  5840. toolchain. For example, suppose you want to use the toolchain from an
  5841. IDE or from other tools and you do not want to perform additional
  5842. steps to install the toolchain.
  5843. The :term:`SDK_INCLUDE_TOOLCHAIN` variable defaults to "0" if
  5844. :term:`SDK_EXT_TYPE` is set to "minimal", and defaults to "1" if
  5845. :term:`SDK_EXT_TYPE` is set to "full".
  5846. :term:`SDK_NAME`
  5847. The base name for SDK output files. The default value (as set in
  5848. ``meta-poky/conf/distro/poky.conf``) is derived from the
  5849. :term:`DISTRO`,
  5850. :term:`TCLIBC`,
  5851. :term:`SDKMACHINE`,
  5852. :term:`IMAGE_BASENAME`,
  5853. :term:`TUNE_PKGARCH`, and
  5854. :term:`MACHINE` variables::
  5855. SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
  5856. :term:`SDK_OS`
  5857. Specifies the operating system for which the SDK will be built. The
  5858. default value is the value of :term:`BUILD_OS`.
  5859. :term:`SDK_OUTPUT`
  5860. The location used by the OpenEmbedded build system when creating SDK
  5861. output. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>`
  5862. class defines the variable as follows::
  5863. SDK_DIR = "${WORKDIR}/sdk"
  5864. SDK_OUTPUT = "${SDK_DIR}/image"
  5865. SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
  5866. .. note::
  5867. The :term:`SDK_OUTPUT` directory is a temporary directory as it is part of
  5868. :term:`WORKDIR` by way of :term:`SDK_DIR`. The final output directory is
  5869. :term:`SDK_DEPLOY`.
  5870. :term:`SDK_PACKAGE_ARCHS`
  5871. Specifies a list of architectures compatible with the SDK machine.
  5872. This variable is set automatically and should not normally be
  5873. hand-edited. Entries are separated using spaces and listed in order
  5874. of priority. The default value for :term:`SDK_PACKAGE_ARCHS` is "all any
  5875. noarch ${SDK_ARCH}-${SDKPKGSUFFIX}".
  5876. :term:`SDK_POSTPROCESS_COMMAND`
  5877. Specifies a list of functions to call once the OpenEmbedded build
  5878. system creates the SDK. You can specify functions separated by
  5879. spaces:
  5880. SDK_POSTPROCESS_COMMAND += "function"
  5881. If you need to pass an SDK path to a command within a function, you
  5882. can use ``${SDK_DIR}``, which points to the parent directory used by
  5883. the OpenEmbedded build system when creating SDK output. See the
  5884. :term:`SDK_DIR` variable for more information.
  5885. :term:`SDK_PREFIX`
  5886. The toolchain binary prefix used for
  5887. :ref:`ref-classes-nativesdk` recipes. The
  5888. OpenEmbedded build system uses the :term:`SDK_PREFIX` value to set the
  5889. :term:`TARGET_PREFIX` when building
  5890. ``nativesdk`` recipes. The default value is "${SDK_SYS}-".
  5891. :term:`SDK_RECRDEP_TASKS`
  5892. A list of shared state tasks added to the extensible SDK. By default,
  5893. the following tasks are added:
  5894. - :ref:`ref-tasks-populate_lic`
  5895. - :ref:`ref-tasks-package_qa`
  5896. - :ref:`ref-tasks-populate_sysroot`
  5897. - :ref:`ref-tasks-deploy`
  5898. Despite the default value of "" for the
  5899. :term:`SDK_RECRDEP_TASKS` variable, the above four tasks are always added
  5900. to the SDK. To specify tasks beyond these four, you need to use the
  5901. :term:`SDK_RECRDEP_TASKS` variable (e.g. you are defining additional
  5902. tasks that are needed in order to build
  5903. :term:`SDK_TARGETS`).
  5904. :term:`SDK_SYS`
  5905. Specifies the system, including the architecture and the operating
  5906. system, for which the SDK will be built.
  5907. The OpenEmbedded build system automatically sets this variable based
  5908. on :term:`SDK_ARCH`,
  5909. :term:`SDK_VENDOR`, and
  5910. :term:`SDK_OS`. You do not need to set the :term:`SDK_SYS`
  5911. variable yourself.
  5912. :term:`SDK_TARGET_MANIFEST`
  5913. The manifest file for the target part of the SDK. This file lists all
  5914. the installed packages that make up the target part of the SDK. The
  5915. file contains package information on a line-per-package basis as
  5916. follows::
  5917. packagename packagearch version
  5918. The :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class
  5919. defines the manifest file as follows::
  5920. SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
  5921. The location is derived using the :term:`SDK_DEPLOY` and
  5922. :term:`TOOLCHAIN_OUTPUTNAME` variables.
  5923. :term:`SDK_TARGETS`
  5924. A list of targets to install from shared state as part of the
  5925. standard or extensible SDK installation. The default value is "${PN}"
  5926. (i.e. the image from which the SDK is built).
  5927. The :term:`SDK_TARGETS` variable is an internal variable and typically
  5928. would not be changed.
  5929. :term:`SDK_TITLE`
  5930. The title to be printed when running the SDK installer. By default,
  5931. this title is based on the :term:`DISTRO_NAME` or
  5932. :term:`DISTRO` variable and is set in the
  5933. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5934. follows::
  5935. SDK_TITLE ??= "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} SDK"
  5936. For the default distribution "poky",
  5937. :term:`SDK_TITLE` is set to "Poky (Yocto Project Reference Distro)".
  5938. For information on how to change this default title, see the
  5939. ":ref:`sdk-manual/appendix-customizing:changing the extensible sdk installer title`"
  5940. section in the Yocto Project Application Development and the
  5941. Extensible Software Development Kit (eSDK) manual.
  5942. :term:`SDK_TOOLCHAIN_LANGS`
  5943. Specifies programming languages to support in the SDK, as a
  5944. space-separated list. Currently supported items are ``rust`` and ``go``.
  5945. :term:`SDK_UPDATE_URL`
  5946. An optional URL for an update server for the extensible SDK. If set,
  5947. the value is used as the default update server when running
  5948. ``devtool sdk-update`` within the extensible SDK.
  5949. :term:`SDK_VENDOR`
  5950. Specifies the name of the SDK vendor.
  5951. :term:`SDK_VERSION`
  5952. Specifies the version of the SDK. The Poky distribution configuration file
  5953. (``/meta-poky/conf/distro/poky.conf``) sets the default
  5954. :term:`SDK_VERSION` as follows::
  5955. SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}"
  5956. For additional information, see the
  5957. :term:`DISTRO_VERSION` and
  5958. :term:`METADATA_REVISION` variables.
  5959. :term:`SDK_ZIP_OPTIONS`
  5960. Specifies extra options to pass to the ``zip`` command when zipping the SDK
  5961. (i.e. when :term:`SDK_ARCHIVE_TYPE` is set to "zip"). The default value is
  5962. "-y".
  5963. :term:`SDKEXTPATH`
  5964. The default installation directory for the Extensible SDK. By
  5965. default, this directory is based on the :term:`DISTRO`
  5966. variable and is set in the
  5967. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class as
  5968. follows::
  5969. SDKEXTPATH ??= "~/${@d.getVar('DISTRO')}_sdk"
  5970. For the
  5971. default distribution "poky", the :term:`SDKEXTPATH` is set to "poky_sdk".
  5972. For information on how to change this default directory, see the
  5973. ":ref:`sdk-manual/appendix-customizing:changing the default sdk installation directory`"
  5974. section in the Yocto Project Application Development and the
  5975. Extensible Software Development Kit (eSDK) manual.
  5976. :term:`SDKIMAGE_FEATURES`
  5977. Equivalent to :term:`IMAGE_FEATURES`. However, this variable applies to
  5978. the SDK generated from an image using the following command::
  5979. $ bitbake -c populate_sdk imagename
  5980. :term:`SDKMACHINE`
  5981. The machine for which the SDK is built. In other words, the SDK is built
  5982. such that it runs on the target you specify with the :term:`SDKMACHINE`
  5983. value. The value points to a corresponding ``.conf`` file under
  5984. ``conf/machine-sdk/`` in the enabled layers, for example ``aarch64``,
  5985. ``i586``, ``i686``, ``ppc64``, ``ppc64le``, and ``x86_64`` are
  5986. :oe_git:`available in OpenEmbedded-Core </openembedded-core/tree/meta/conf/machine-sdk>`.
  5987. The variable defaults to :term:`BUILD_ARCH` so that SDKs are built for the
  5988. architecture of the build machine.
  5989. .. note::
  5990. You cannot set the :term:`SDKMACHINE`
  5991. variable in your distribution configuration file. If you do, the
  5992. configuration will not take effect.
  5993. :term:`SDKPATH`
  5994. Defines the path used to collect the SDK components and build the
  5995. installer.
  5996. :term:`SDKPATHINSTALL`
  5997. Defines the path offered to the user for installation of the SDK that
  5998. is generated by the OpenEmbedded build system. The path appears as
  5999. the default location for installing the SDK when you run the SDK's
  6000. installation script. You can override the offered path when you run
  6001. the script.
  6002. :term:`SDKTARGETSYSROOT`
  6003. The full path to the sysroot used for cross-compilation within an SDK
  6004. as it will be when installed into the default
  6005. :term:`SDKPATHINSTALL`.
  6006. :term:`SECTION`
  6007. The section in which packages should be categorized. Package
  6008. management utilities can make use of this variable.
  6009. :term:`SELECTED_OPTIMIZATION`
  6010. Specifies the optimization flags passed to the C compiler when
  6011. building for the target. The flags are passed through the default
  6012. value of the :term:`TARGET_CFLAGS` variable.
  6013. The :term:`SELECTED_OPTIMIZATION` variable takes the value of
  6014. :term:`FULL_OPTIMIZATION` unless :term:`DEBUG_BUILD` = "1", in which
  6015. case the value of :term:`DEBUG_OPTIMIZATION` is used.
  6016. :term:`SERIAL_CONSOLES`
  6017. Defines a serial console (TTY) to enable using
  6018. :wikipedia:`getty <Getty_(Unix)>`. Provide a value that specifies the
  6019. baud rate followed by the TTY device name separated by a semicolon.
  6020. Use spaces to separate multiple devices::
  6021. SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
  6022. :term:`SETUPTOOLS_BUILD_ARGS`
  6023. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6024. class, this variable can be used to specify additional arguments to be
  6025. passed to ``setup.py build`` in the ``setuptools3_do_compile()`` task.
  6026. :term:`SETUPTOOLS_INSTALL_ARGS`
  6027. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6028. class, this variable can be used to specify additional arguments to be
  6029. passed to ``setup.py install`` in the ``setuptools3_do_install()`` task.
  6030. :term:`SETUPTOOLS_SETUP_PATH`
  6031. When used by recipes that inherit the :ref:`ref-classes-setuptools3`
  6032. class, this variable should be used to specify the directory in which
  6033. the ``setup.py`` file is located if it is not at the root of the source
  6034. tree (as specified by :term:`S`). For example, in a recipe where the
  6035. sources are fetched from a Git repository and ``setup.py`` is in a
  6036. ``python/pythonmodule`` subdirectory, you would have this::
  6037. S = "${WORKDIR}/git"
  6038. SETUPTOOLS_SETUP_PATH = "${S}/python/pythonmodule"
  6039. :term:`SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS`
  6040. A list of recipe dependencies that should not be used to determine
  6041. signatures of tasks from one recipe when they depend on tasks from
  6042. another recipe. For example::
  6043. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "intone->mplayer2"
  6044. In the previous example, ``intone`` depends on ``mplayer2``.
  6045. You can use the special token ``"*"`` on the left-hand side of the
  6046. dependency to match all recipes except the one on the right-hand
  6047. side. Here is an example::
  6048. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "*->quilt-native"
  6049. In the previous example, all recipes except ``quilt-native`` ignore
  6050. task signatures from the ``quilt-native`` recipe when determining
  6051. their task signatures.
  6052. Use of this variable is one mechanism to remove dependencies that
  6053. affect task signatures and thus force rebuilds when a recipe changes.
  6054. .. note::
  6055. If you add an inappropriate dependency for a recipe relationship,
  6056. the software might break during runtime if the interface of the
  6057. second recipe was changed after the first recipe had been built.
  6058. :term:`SIGGEN_EXCLUDERECIPES_ABISAFE`
  6059. A list of recipes that are completely stable and will never change.
  6060. The ABI for the recipes in the list are presented by output from the
  6061. tasks run to build the recipe. Use of this variable is one way to
  6062. remove dependencies from one recipe on another that affect task
  6063. signatures and thus force rebuilds when the recipe changes.
  6064. .. note::
  6065. If you add an inappropriate variable to this list, the software
  6066. might break at runtime if the interface of the recipe was changed
  6067. after the other had been built.
  6068. :term:`SIGGEN_LOCKEDSIGS`
  6069. The list of locked tasks, with the form::
  6070. SIGGEN_LOCKEDSIGS += "<package>:<task>:<signature>"
  6071. If ``<signature>`` exists for the specified ``<task>`` and ``<package>``
  6072. in the sstate cache, BitBake will use the cached output instead of
  6073. rebuilding the ``<task>``. If it does not exist, BitBake will build the
  6074. ``<task>`` and the sstate cache will be used next time.
  6075. Example::
  6076. SIGGEN_LOCKEDSIGS += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6077. You can obtain the signature of all the tasks for the recipe ``bc`` using::
  6078. bitbake -S none bc
  6079. Then you can look at files in ``build/tmp/stamps/<arch>/bc`` and look for
  6080. files like: ``<PV>.do_compile.sigdata.09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0``.
  6081. Alternatively, you can also use :doc:`bblock </dev-manual/bblock>` to
  6082. generate this line for you.
  6083. :term:`SIGGEN_LOCKEDSIGS_TASKSIG_CHECK`
  6084. Specifies the debug level of task signature check. 3 levels are supported:
  6085. * ``info``: displays a "Note" message to remind the user that a task is locked
  6086. and the current signature matches the locked one.
  6087. * ``warn``: displays a "Warning" message if a task is locked and the current
  6088. signature does not match the locked one.
  6089. * ``error``: same as warn but displays an "Error" message and aborts.
  6090. :term:`SIGGEN_LOCKEDSIGS_TYPES`
  6091. Allowed overrides for :term:`SIGGEN_LOCKEDSIGS`. This is mainly used
  6092. for architecture specific locks. A common value for
  6093. :term:`SIGGEN_LOCKEDSIGS_TYPES` is ``${PACKAGE_ARCHS}``::
  6094. SIGGEN_LOCKEDSIGS_TYPES += "${PACKAGE_ARCHS}"
  6095. SIGGEN_LOCKEDSIGS_core2-64 += "bc:do_compile:09772aa4532512baf96d433484f27234d4b7c11dd9cda0d6f56fa1b7ce6f25f0"
  6096. SIGGEN_LOCKEDSIGS_cortexa57 += "bc:do_compile:12178eb6d55ef602a8fe638e49862fd247e07b228f0f08967697b655bfe4bb61"
  6097. Here, the ``do_compile`` task from ``bc`` will be locked only for
  6098. ``core2-64`` and ``cortexa57`` but not for other architectures such as
  6099. ``mips32r2``.
  6100. :term:`SITEINFO_BITS`
  6101. Specifies the number of bits for the target system CPU. The value
  6102. should be either "32" or "64".
  6103. :term:`SITEINFO_ENDIANNESS`
  6104. Specifies the endian byte order of the target system. The value
  6105. should be either "le" for little-endian or "be" for big-endian.
  6106. :term:`SKIP_FILEDEPS`
  6107. Enables removal of all files from the "Provides" section of an RPM
  6108. package. Removal of these files is required for packages containing
  6109. prebuilt binaries and libraries such as ``libstdc++`` and ``glibc``.
  6110. To enable file removal, set the variable to "1" in your
  6111. ``conf/local.conf`` configuration file in your:
  6112. :term:`Build Directory`::
  6113. SKIP_FILEDEPS = "1"
  6114. :term:`SKIP_RECIPE`
  6115. Used to prevent the OpenEmbedded build system from building a given
  6116. recipe. Specify the :term:`PN` value as a variable flag (``varflag``)
  6117. and provide a reason, which will be reported when attempting to
  6118. build the recipe.
  6119. To prevent a recipe from being built, use the :term:`SKIP_RECIPE`
  6120. variable in your ``local.conf`` file or distribution configuration.
  6121. Here is an example which prevents ``myrecipe`` from being built::
  6122. SKIP_RECIPE[myrecipe] = "Not supported by our organization."
  6123. :term:`SOC_FAMILY`
  6124. A colon-separated list grouping together machines based upon the same
  6125. family of SoC (System On Chip). You typically set this variable in a
  6126. common ``.inc`` file that you include in the configuration files of all
  6127. the machines.
  6128. .. note::
  6129. You must include ``conf/machine/include/soc-family.inc`` for this
  6130. variable to appear in :term:`MACHINEOVERRIDES`.
  6131. :term:`SOLIBS`
  6132. Defines the suffix for shared libraries used on the target platform.
  6133. By default, this suffix is ".so.*" for all Linux-based systems and is
  6134. defined in the ``meta/conf/bitbake.conf`` configuration file.
  6135. You will see this variable referenced in the default values of
  6136. ``FILES:${PN}``.
  6137. :term:`SOLIBSDEV`
  6138. Defines the suffix for the development symbolic link (symlink) for
  6139. shared libraries on the target platform. By default, this suffix is
  6140. ".so" for Linux-based systems and is defined in the
  6141. ``meta/conf/bitbake.conf`` configuration file.
  6142. You will see this variable referenced in the default values of
  6143. ``FILES:${PN}-dev``.
  6144. :term:`SOURCE_DATE_EPOCH`
  6145. This defines a date expressed in number of seconds since
  6146. the UNIX EPOCH (01 Jan 1970 00:00:00 UTC), which is used by
  6147. multiple build systems to force a timestamp in built binaries.
  6148. Many upstream projects already support this variable.
  6149. You will find more details in the `official specifications
  6150. <https://reproducible-builds.org/specs/source-date-epoch/>`__.
  6151. A value for each recipe is computed from the sources by
  6152. :oe_git:`meta/lib/oe/reproducible.py </openembedded-core/tree/meta/lib/oe/reproducible.py>`.
  6153. If a recipe wishes to override the default behavior, it should set its
  6154. own :term:`SOURCE_DATE_EPOCH` value::
  6155. SOURCE_DATE_EPOCH = "1613559011"
  6156. :term:`SOURCE_MIRROR_FETCH`
  6157. When you are fetching files to create a mirror of sources (i.e.
  6158. creating a source mirror), setting :term:`SOURCE_MIRROR_FETCH` to "1" in
  6159. your ``local.conf`` configuration file ensures the source for all
  6160. recipes are fetched regardless of whether or not a recipe is
  6161. compatible with the configuration. A recipe is considered
  6162. incompatible with the currently configured machine when either or
  6163. both the :term:`COMPATIBLE_MACHINE`
  6164. variable and :term:`COMPATIBLE_HOST` variables
  6165. specify compatibility with a machine other than that of the current
  6166. machine or host.
  6167. .. note::
  6168. Do not set the :term:`SOURCE_MIRROR_FETCH`
  6169. variable unless you are creating a source mirror. In other words,
  6170. do not set the variable during a normal build.
  6171. :term:`SOURCE_MIRROR_URL`
  6172. Defines your own :term:`PREMIRRORS` from which to
  6173. first fetch source before attempting to fetch from the upstream
  6174. specified in :term:`SRC_URI`.
  6175. To use this variable, you must globally inherit the
  6176. :ref:`ref-classes-own-mirrors` class and then provide
  6177. the URL to your mirrors. Here is the general syntax::
  6178. INHERIT += "own-mirrors"
  6179. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror"
  6180. .. note::
  6181. You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
  6182. .. note::
  6183. If the mirror is protected behind a username and password, the
  6184. :term:`build host` needs to be configured so the :term:`build system
  6185. <OpenEmbedded Build System>` is able to fetch from the mirror.
  6186. The recommended way to do that is by setting the following parameters
  6187. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  6188. directory)::
  6189. machine example.com
  6190. login <user>
  6191. password <password>
  6192. This file requires permissions set to ``400`` or ``600`` to prevent
  6193. other users from reading the file::
  6194. chmod 600 "$HOME/.netrc"
  6195. Another method to configure the username and password is from the URL
  6196. in :term:`SOURCE_MIRROR_URL` directly, with the ``user`` and ``pswd``
  6197. parameters::
  6198. SOURCE_MIRROR_URL = "http://example.com/my_source_mirror;user=<user>;pswd=<password>"
  6199. :term:`SPDX_ARCHIVE_PACKAGED`
  6200. This option allows to add to :term:`SPDX` output compressed archives
  6201. of the files in the generated target packages.
  6202. Such archives are available in
  6203. ``tmp/deploy/spdx/MACHINE/packages/packagename.tar.zst``
  6204. under the :term:`Build Directory`.
  6205. Enable this option as follows::
  6206. SPDX_ARCHIVE_PACKAGED = "1"
  6207. According to our tests on release 4.1 "langdale", building
  6208. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this
  6209. option multiplied the size of the ``tmp/deploy/spdx`` directory by a
  6210. factor of 13 (+1.6 GiB for this image), compared to just using the
  6211. :ref:`ref-classes-create-spdx` class with no option.
  6212. Note that this option doesn't increase the size of :term:`SPDX`
  6213. files in ``tmp/deploy/images/MACHINE``.
  6214. :term:`SPDX_ARCHIVE_SOURCES`
  6215. This option allows to add to :term:`SPDX` output compressed archives
  6216. of the sources for packages installed on the target. It currently
  6217. only works when :term:`SPDX_INCLUDE_SOURCES` is set.
  6218. This is one way of fulfilling "source code access" license
  6219. requirements.
  6220. Such source archives are available in
  6221. ``tmp/deploy/spdx/MACHINE/recipes/recipe-packagename.tar.zst``
  6222. under the :term:`Build Directory`.
  6223. Enable this option as follows::
  6224. SPDX_INCLUDE_SOURCES = "1"
  6225. SPDX_ARCHIVE_SOURCES = "1"
  6226. According to our tests on release 4.1 "langdale", building
  6227. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6228. these options multiplied the size of the ``tmp/deploy/spdx``
  6229. directory by a factor of 11 (+1.4 GiB for this image),
  6230. compared to just using the :ref:`ref-classes-create-spdx`
  6231. class with no option.
  6232. Note that using this option only marginally increases the size
  6233. of the :term:`SPDX` output in ``tmp/deploy/images/MACHINE/``
  6234. (+ 0.07\% with the tested image), compared to just enabling
  6235. :term:`SPDX_INCLUDE_SOURCES`.
  6236. :term:`SPDX_CUSTOM_ANNOTATION_VARS`
  6237. This option allows to associate `SPDX annotations
  6238. <https://spdx.github.io/spdx-spec/v2.3/annotations/>`__ to a recipe,
  6239. using the values of variables in the recipe::
  6240. ANNOTATION1 = "First annotation for recipe"
  6241. ANNOTATION2 = "Second annotation for recipe"
  6242. SPDX_CUSTOM_ANNOTATION_VARS = "ANNOTATION1 ANNOTATION2"
  6243. This will add a new block to the recipe ``.sdpx.json`` output::
  6244. "annotations": [
  6245. {
  6246. "annotationDate": "2023-04-18T08:32:12Z",
  6247. "annotationType": "OTHER",
  6248. "annotator": "Tool: oe-spdx-creator - 1.0",
  6249. "comment": "ANNOTATION1=First annotation for recipe"
  6250. },
  6251. {
  6252. "annotationDate": "2023-04-18T08:32:12Z",
  6253. "annotationType": "OTHER",
  6254. "annotator": "Tool: oe-spdx-creator - 1.0",
  6255. "comment": "ANNOTATION2=Second annotation for recipe"
  6256. }
  6257. ],
  6258. :term:`SPDX_INCLUDE_SOURCES`
  6259. This option allows to add a description of the source files used to build
  6260. the host tools and the target packages, to the ``spdx.json`` files in
  6261. ``tmp/deploy/spdx/MACHINE/recipes/`` under the :term:`Build Directory`.
  6262. As a consequence, the ``spdx.json`` files under the ``by-namespace`` and
  6263. ``packages`` subdirectories in ``tmp/deploy/spdx/MACHINE`` are also
  6264. modified to include references to such source file descriptions.
  6265. Enable this option as follows::
  6266. SPDX_INCLUDE_SOURCES = "1"
  6267. According to our tests on release 4.1 "langdale", building
  6268. ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
  6269. this option multiplied the total size of the ``tmp/deploy/spdx``
  6270. directory by a factor of 3 (+291 MiB for this image),
  6271. and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in
  6272. ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this
  6273. image), compared to just using the :ref:`ref-classes-create-spdx` class
  6274. with no option.
  6275. :term:`SPDX_NAMESPACE_PREFIX`
  6276. This option could be used in order to change the prefix of ``spdxDocument``
  6277. and the prefix of ``documentNamespace``. It is set by default to
  6278. ``http://spdx.org/spdxdoc``.
  6279. :term:`SPDX_PRETTY`
  6280. This option makes the SPDX output more human-readable, using
  6281. identation and newlines, instead of the default output in a
  6282. single line::
  6283. SPDX_PRETTY = "1"
  6284. The generated SPDX files are approximately 20% bigger, but
  6285. this option is recommended if you want to inspect the SPDX
  6286. output files with a text editor.
  6287. :term:`SPDXLICENSEMAP`
  6288. Maps commonly used license names to their SPDX counterparts found in
  6289. ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP`
  6290. mappings, see the ``meta/conf/licenses.conf`` file.
  6291. For additional information, see the :term:`LICENSE`
  6292. variable.
  6293. :term:`SPECIAL_PKGSUFFIX`
  6294. A list of prefixes for :term:`PN` used by the OpenEmbedded
  6295. build system to create variants of recipes or packages. The list
  6296. specifies the prefixes to strip off during certain circumstances such
  6297. as the generation of the :term:`BPN` variable.
  6298. :term:`SPL_BINARY`
  6299. The file type for the Secondary Program Loader (SPL). Some devices
  6300. use an SPL from which to boot (e.g. the BeagleBone development
  6301. board). For such cases, you can declare the file type of the SPL
  6302. binary in the ``u-boot.inc`` include file, which is used in the
  6303. U-Boot recipe.
  6304. The SPL file type is set to "null" by default in the ``u-boot.inc``
  6305. file as follows::
  6306. # Some versions of u-boot build an SPL (Second Program Loader) image that
  6307. # should be packaged along with the u-boot binary as well as placed in the
  6308. # deploy directory. For those versions they can set the following variables
  6309. # to allow packaging the SPL.
  6310. SPL_BINARY ?= ""
  6311. SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
  6312. SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
  6313. SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}"
  6314. The :term:`SPL_BINARY` variable helps form
  6315. various ``SPL_*`` variables used by the OpenEmbedded build system.
  6316. See the BeagleBone machine configuration example in the
  6317. ":ref:`dev-manual/layers:adding a layer using the \`\`bitbake-layers\`\` script`"
  6318. section in the Yocto Project Board Support Package Developer's Guide
  6319. for additional information.
  6320. :term:`SPL_MKIMAGE_DTCOPTS`
  6321. Options for the device tree compiler passed to ``mkimage -D`` feature
  6322. while creating a FIT image with the :ref:`ref-classes-uboot-sign`
  6323. class. If :term:`SPL_MKIMAGE_DTCOPTS` is not set then the
  6324. :ref:`ref-classes-uboot-sign` class will not pass the ``-D`` option
  6325. to ``mkimage``.
  6326. The default value is set to "" by the :ref:`ref-classes-uboot-config`
  6327. class.
  6328. :term:`SPL_SIGN_ENABLE`
  6329. Enable signing of the U-Boot FIT image. The default value is "0".
  6330. This variable is used by the :ref:`ref-classes-uboot-sign` class.
  6331. :term:`SPL_SIGN_KEYDIR`
  6332. Location of the directory containing the RSA key and certificate used for
  6333. signing the U-Boot FIT image, used by the :ref:`ref-classes-uboot-sign`
  6334. class.
  6335. :term:`SPL_SIGN_KEYNAME`
  6336. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  6337. for signing U-Boot FIT image stored in the :term:`SPL_SIGN_KEYDIR`
  6338. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  6339. certificate stored in the :term:`SPL_SIGN_KEYDIR` directory, you will
  6340. have to set :term:`SPL_SIGN_KEYNAME` to ``dev``.
  6341. :term:`SPLASH`
  6342. This variable, used by the :ref:`ref-classes-image` class, allows
  6343. to choose splashscreen applications. Set it to the names of packages
  6344. for such applications to use. This variable is set by default to
  6345. ``psplash``.
  6346. :term:`SPLASH_IMAGES`
  6347. This variable, used by the ``psplash`` recipe, allows to customize
  6348. the default splashscreen image.
  6349. Specified images in PNG format are converted to ``.h`` files by the recipe,
  6350. and are included in the ``psplash`` binary, so you won't find them in
  6351. the root filesystem.
  6352. To make such a change, it is recommended to customize the
  6353. ``psplash`` recipe in a custom layer. Here is an example structure for
  6354. an ``ACME`` board::
  6355. meta-acme/recipes-core/psplash
  6356. ├── files
  6357. │   └── logo-acme.png
  6358. └── psplash_%.bbappend
  6359. And here are the contents of the ``psplash_%.bbappend`` file in
  6360. this example::
  6361. SPLASH_IMAGES = "file://logo-acme.png;outsuffix=default"
  6362. FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  6363. You could even add specific configuration options for ``psplash``,
  6364. for example::
  6365. EXTRA_OECONF += "--disable-startup-msg --enable-img-fullscreen"
  6366. For information on append files, see the
  6367. ":ref:`dev-manual/layers:appending other layers metadata with your layer`"
  6368. section.
  6369. :term:`SRCREV_FORMAT`
  6370. See :term:`bitbake:SRCREV_FORMAT` in the BitBake manual.
  6371. :term:`SRC_URI`
  6372. See the BitBake manual for the initial description for this variable:
  6373. :term:`bitbake:SRC_URI`.
  6374. The following features are added by OpenEmbedded and the Yocto Project.
  6375. There are standard and recipe-specific options. Here are standard ones:
  6376. - ``apply`` --- whether to apply the patch or not. The default
  6377. action is to apply the patch.
  6378. - ``striplevel`` --- which striplevel to use when applying the
  6379. patch. The default level is 1.
  6380. - ``patchdir`` --- specifies the directory in which the patch should
  6381. be applied. The default is ``${``\ :term:`S`\ ``}``.
  6382. Here are options specific to recipes building code from a revision
  6383. control system:
  6384. - ``mindate`` --- apply the patch only if
  6385. :term:`SRCDATE` is equal to or greater than
  6386. ``mindate``.
  6387. - ``maxdate`` --- apply the patch only if :term:`SRCDATE` is not later
  6388. than ``maxdate``.
  6389. - ``minrev`` --- apply the patch only if :term:`SRCREV` is equal to or
  6390. greater than ``minrev``.
  6391. - ``maxrev`` --- apply the patch only if :term:`SRCREV` is not later
  6392. than ``maxrev``.
  6393. - ``rev`` --- apply the patch only if :term:`SRCREV` is equal to
  6394. ``rev``.
  6395. - ``notrev`` --- apply the patch only if :term:`SRCREV` is not equal to
  6396. ``rev``.
  6397. .. note::
  6398. If you want the build system to pick up files specified through
  6399. a :term:`SRC_URI` statement from your append file, you need to be
  6400. sure to extend the :term:`FILESPATH` variable by also using the
  6401. :term:`FILESEXTRAPATHS` variable from within your append file.
  6402. :term:`SRC_URI_OVERRIDES_PACKAGE_ARCH`
  6403. By default, the OpenEmbedded build system automatically detects
  6404. whether :term:`SRC_URI` contains files that are machine-specific. If so,
  6405. the build system automatically changes :term:`PACKAGE_ARCH`. Setting this
  6406. variable to "0" disables this behavior.
  6407. :term:`SRCDATE`
  6408. The date of the source code used to build the package. This variable
  6409. applies only if the source was fetched from a Source Code Manager
  6410. (SCM).
  6411. :term:`SRCPV`
  6412. The variable :term:`SRCPV` is deprecated. It was previously used to
  6413. include source control information in :term:`PV` for :term:`bitbake` to
  6414. work correctly but this is no longer a requirement. Source control
  6415. information will be automatically included by :term:`bitbake` in the
  6416. variable :term:`PKGV` during packaging if the ``+`` sign is present in
  6417. :term:`PV`.
  6418. .. note::
  6419. The :term:`SRCPV` variable used to be defined in the
  6420. ``meta/conf/bitbake.conf`` configuration file in the :term:`Source
  6421. Directory` as follows::
  6422. SRCPV = "${@bb.fetch2.get_srcrev(d)}"
  6423. The ``get_srcrev`` function can still be used to include source control
  6424. information in variables manually.
  6425. :term:`SRCREV`
  6426. The revision of the source code used to build the package. This
  6427. variable applies to Subversion, Git, Mercurial, and Bazaar only. Note
  6428. that if you want to build a fixed revision and you want to avoid
  6429. performing a query on the remote repository every time BitBake parses
  6430. your recipe, you should specify a :term:`SRCREV` that is a full revision
  6431. identifier (e.g. the full SHA hash in git) and not just a tag.
  6432. .. note::
  6433. For information on limitations when inheriting the latest revision
  6434. of software using :term:`SRCREV`, see the :term:`AUTOREV` variable
  6435. description and the
  6436. ":ref:`dev-manual/packages:automatically incrementing a package version number`"
  6437. section, which is in the Yocto Project Development Tasks Manual.
  6438. :term:`SRCTREECOVEREDTASKS`
  6439. A list of tasks that are typically not relevant (and therefore skipped)
  6440. when building using the :ref:`ref-classes-externalsrc`
  6441. class. The default value as set in that class file is the set of tasks
  6442. that are rarely needed when using external source::
  6443. SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
  6444. The notable exception is when processing external kernel source as
  6445. defined in the :ref:`ref-classes-kernel-yocto` class file (formatted for
  6446. aesthetics)::
  6447. SRCTREECOVEREDTASKS += "\
  6448. do_validate_branches \
  6449. do_kernel_configcheck \
  6450. do_kernel_checkout \
  6451. do_fetch \
  6452. do_unpack \
  6453. do_patch \
  6454. "
  6455. See the associated :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD`
  6456. variables for more information.
  6457. :term:`SSTATE_DIR`
  6458. The directory for the shared state cache.
  6459. :term:`SSTATE_EXCLUDEDEPS_SYSROOT`
  6460. This variable allows to specify indirect dependencies to exclude
  6461. from sysroots, for example to avoid the situations when a dependency on
  6462. any ``-native`` recipe will pull in all dependencies of that recipe
  6463. in the recipe sysroot. This behaviour might not always be wanted,
  6464. for example when that ``-native`` recipe depends on build tools
  6465. that are not relevant for the current recipe.
  6466. This way, irrelevant dependencies are ignored, which could have
  6467. prevented the reuse of prebuilt artifacts stored in the Shared
  6468. State Cache.
  6469. :term:`SSTATE_EXCLUDEDEPS_SYSROOT` is evaluated as two regular
  6470. expressions of recipe and dependency to ignore. An example
  6471. is the rule in :oe_git:`meta/conf/layer.conf </openembedded-core/tree/meta/conf/layer.conf>`::
  6472. # Nothing needs to depend on libc-initial
  6473. # base-passwd/shadow-sysroot don't need their dependencies
  6474. SSTATE_EXCLUDEDEPS_SYSROOT += "\
  6475. .*->.*-initial.* \
  6476. .*(base-passwd|shadow-sysroot)->.* \
  6477. "
  6478. The ``->`` substring represents the dependency between
  6479. the two regular expressions.
  6480. :term:`SSTATE_MIRROR_ALLOW_NETWORK`
  6481. If set to "1", allows fetches from mirrors that are specified in
  6482. :term:`SSTATE_MIRRORS` to work even when
  6483. fetching from the network is disabled by setting :term:`BB_NO_NETWORK` to
  6484. "1". Using the :term:`SSTATE_MIRROR_ALLOW_NETWORK` variable is useful if
  6485. you have set :term:`SSTATE_MIRRORS` to point to an internal server for
  6486. your shared state cache, but you want to disable any other fetching
  6487. from the network.
  6488. :term:`SSTATE_MIRRORS`
  6489. Configures the OpenEmbedded build system to search other mirror
  6490. locations for prebuilt cache data objects before building out the
  6491. data. This variable works like fetcher :term:`MIRRORS`
  6492. and :term:`PREMIRRORS` and points to the cache
  6493. locations to check for the shared state (sstate) objects.
  6494. You can specify a filesystem directory or a remote URL such as HTTP
  6495. or FTP. The locations you specify need to contain the shared state
  6496. cache (sstate-cache) results from previous builds. The sstate-cache
  6497. you point to can also be from builds on other machines.
  6498. When pointing to sstate build artifacts on another machine that uses
  6499. a different GCC version for native builds, you must configure
  6500. :term:`SSTATE_MIRRORS` with a regular expression that maps local search
  6501. paths to server paths. The paths need to take into account
  6502. :term:`NATIVELSBSTRING` set by the :ref:`ref-classes-uninative` class.
  6503. For example, the following maps the local search path ``universal-4.9``
  6504. to the server-provided path server_url_sstate_path::
  6505. SSTATE_MIRRORS ?= "file://universal-4.9/(.*) https://server_url_sstate_path/universal-4.8/\1"
  6506. If a mirror uses the same structure as
  6507. :term:`SSTATE_DIR`, you need to add "PATH" at the
  6508. end as shown in the examples below. The build system substitutes the
  6509. correct path within the directory structure::
  6510. SSTATE_MIRRORS ?= "\
  6511. file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
  6512. file://.* file:///some-local-dir/sstate/PATH"
  6513. .. note::
  6514. If the mirror is protected behind a username and password, the
  6515. :term:`build host` needs to be configured so the :term:`build system
  6516. <OpenEmbedded Build System>` is able to download the sstate cache using
  6517. authentication.
  6518. The recommended way to do that is by setting the following parameters
  6519. in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
  6520. directory)::
  6521. machine someserver.tld
  6522. login <user>
  6523. password <password>
  6524. This file requires permissions set to ``400`` or ``600`` to prevent
  6525. other users from reading the file::
  6526. chmod 600 "$HOME/.netrc"
  6527. Another method to configure the username and password is from the
  6528. URL in :term:`SSTATE_MIRRORS` directly, with the ``user`` and ``pswd``
  6529. parameters::
  6530. SSTATE_MIRRORS ?= "\
  6531. file://.* https://someserver.tld/share/sstate/PATH;user=<user>;pswd=<password>;downloadfilename=PATH \
  6532. "
  6533. The Yocto Project actually shares the cache data objects built by its
  6534. autobuilder::
  6535. SSTATE_MIRRORS ?= "file://.* http://cdn.jsdelivr.net/yocto/sstate/all/PATH;downloadfilename=PATH"
  6536. As such binary artifacts are built for the generic QEMU machines
  6537. supported by the various Poky releases, they are less likely to be
  6538. reusable in real projects building binaries optimized for a specific
  6539. CPU family.
  6540. :term:`SSTATE_SCAN_FILES`
  6541. Controls the list of files the OpenEmbedded build system scans for
  6542. hardcoded installation paths. The variable uses a space-separated
  6543. list of filenames (not paths) with standard wildcard characters
  6544. allowed.
  6545. During a build, the OpenEmbedded build system creates a shared state
  6546. (sstate) object during the first stage of preparing the sysroots.
  6547. That object is scanned for hardcoded paths for original installation
  6548. locations. The list of files that are scanned for paths is controlled
  6549. by the :term:`SSTATE_SCAN_FILES` variable. Typically, recipes add files
  6550. they want to be scanned to the value of :term:`SSTATE_SCAN_FILES` rather
  6551. than the variable being comprehensively set. The
  6552. :ref:`ref-classes-sstate` class specifies the default list of files.
  6553. For details on the process, see the :ref:`ref-classes-staging` class.
  6554. :term:`STAGING_BASE_LIBDIR_NATIVE`
  6555. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6556. directory for the build host.
  6557. :term:`STAGING_BASELIBDIR`
  6558. Specifies the path to the ``/lib`` subdirectory of the sysroot
  6559. directory for the target for which the current recipe is being built
  6560. (:term:`STAGING_DIR_HOST`).
  6561. :term:`STAGING_BINDIR`
  6562. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6563. directory for the target for which the current recipe is being built
  6564. (:term:`STAGING_DIR_HOST`).
  6565. :term:`STAGING_BINDIR_CROSS`
  6566. Specifies the path to the directory containing binary configuration
  6567. scripts. These scripts provide configuration information for other
  6568. software that wants to make use of libraries or include files
  6569. provided by the software associated with the script.
  6570. .. note::
  6571. This style of build configuration has been largely replaced by
  6572. ``pkg-config``. Consequently, if ``pkg-config`` is supported by the
  6573. library to which you are linking, it is recommended you use
  6574. ``pkg-config`` instead of a provided configuration script.
  6575. :term:`STAGING_BINDIR_NATIVE`
  6576. Specifies the path to the ``/usr/bin`` subdirectory of the sysroot
  6577. directory for the build host.
  6578. :term:`STAGING_DATADIR`
  6579. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6580. directory for the target for which the current recipe is being built
  6581. (:term:`STAGING_DIR_HOST`).
  6582. :term:`STAGING_DATADIR_NATIVE`
  6583. Specifies the path to the ``/usr/share`` subdirectory of the sysroot
  6584. directory for the build host.
  6585. :term:`STAGING_DIR`
  6586. Helps construct the ``recipe-sysroots`` directory, which is used
  6587. during packaging.
  6588. For information on how staging for recipe-specific sysroots occurs,
  6589. see the :ref:`ref-tasks-populate_sysroot`
  6590. task, the ":ref:`sdk-manual/extensible:sharing files between recipes`"
  6591. section in the Yocto Project Development Tasks Manual, the
  6592. ":ref:`overview-manual/concepts:configuration, compilation, and staging`"
  6593. section in the Yocto Project Overview and Concepts Manual, and the
  6594. :term:`SYSROOT_DIRS` variable.
  6595. .. note::
  6596. Recipes should never write files directly under the :term:`STAGING_DIR`
  6597. directory because the OpenEmbedded build system manages the
  6598. directory automatically. Instead, files should be installed to
  6599. ``${``\ :term:`D`\ ``}`` within your recipe's :ref:`ref-tasks-install`
  6600. task and then the OpenEmbedded build system will stage a subset of
  6601. those files into the sysroot.
  6602. :term:`STAGING_DIR_HOST`
  6603. Specifies the path to the sysroot directory for the system on which
  6604. the component is built to run (the system that hosts the component).
  6605. For most recipes, this sysroot is the one in which that recipe's
  6606. :ref:`ref-tasks-populate_sysroot` task copies
  6607. files. Exceptions include ``-native`` recipes, where the
  6608. :ref:`ref-tasks-populate_sysroot` task instead uses
  6609. :term:`STAGING_DIR_NATIVE`. Depending on
  6610. the type of recipe and the build target, :term:`STAGING_DIR_HOST` can
  6611. have the following values:
  6612. - For recipes building for the target machine, the value is
  6613. "${:term:`STAGING_DIR`}/${:term:`MACHINE`}".
  6614. - For native recipes building for the build host, the value is empty
  6615. given the assumption that when building for the build host, the
  6616. build host's own directories should be used.
  6617. .. note::
  6618. ``-native`` recipes are not installed into host paths like such
  6619. as ``/usr``. Rather, these recipes are installed into
  6620. :term:`STAGING_DIR_NATIVE`. When compiling ``-native`` recipes,
  6621. standard build environment variables such as
  6622. :term:`CPPFLAGS` and
  6623. :term:`CFLAGS` are set up so that both host paths
  6624. and :term:`STAGING_DIR_NATIVE` are searched for libraries and
  6625. headers using, for example, GCC's ``-isystem`` option.
  6626. Thus, the emphasis is that the ``STAGING_DIR*`` variables
  6627. should be viewed as input variables by tasks such as
  6628. :ref:`ref-tasks-configure`,
  6629. :ref:`ref-tasks-compile`, and
  6630. :ref:`ref-tasks-install`. Having the real system
  6631. root correspond to :term:`STAGING_DIR_HOST` makes conceptual sense
  6632. for ``-native`` recipes, as they make use of host headers and
  6633. libraries.
  6634. Check :term:`RECIPE_SYSROOT` and :term:`RECIPE_SYSROOT_NATIVE`.
  6635. :term:`STAGING_DIR_NATIVE`
  6636. Specifies the path to the sysroot directory used when building
  6637. components that run on the build host itself.
  6638. The default value is ``"${RECIPE_SYSROOT_NATIVE}"``,
  6639. check :term:`RECIPE_SYSROOT_NATIVE`.
  6640. :term:`STAGING_DIR_TARGET`
  6641. Specifies the path to the sysroot used for the system for which the
  6642. component generates code. For components that do not generate code,
  6643. which is the majority, :term:`STAGING_DIR_TARGET` is set to match
  6644. :term:`STAGING_DIR_HOST`.
  6645. Some recipes build binaries that can run on the target system but those
  6646. binaries in turn generate code for another different system (e.g.
  6647. :ref:`ref-classes-cross-canadian` recipes). Using terminology from GNU,
  6648. the primary system is referred to as the "HOST" and the secondary, or
  6649. different, system is referred to as the "TARGET". Thus, the binaries
  6650. run on the "HOST" system and generate binaries for the "TARGET"
  6651. system. The :term:`STAGING_DIR_HOST` variable points to the sysroot used
  6652. for the "HOST" system, while :term:`STAGING_DIR_TARGET` points to the
  6653. sysroot used for the "TARGET" system.
  6654. :term:`STAGING_ETCDIR_NATIVE`
  6655. Specifies the path to the ``/etc`` subdirectory of the sysroot
  6656. directory for the build host.
  6657. :term:`STAGING_EXECPREFIXDIR`
  6658. Specifies the path to the ``/usr`` subdirectory of the sysroot
  6659. directory for the target for which the current recipe is being built
  6660. (:term:`STAGING_DIR_HOST`).
  6661. :term:`STAGING_INCDIR`
  6662. Specifies the path to the ``/usr/include`` subdirectory of the
  6663. sysroot directory for the target for which the current recipe being
  6664. built (:term:`STAGING_DIR_HOST`).
  6665. :term:`STAGING_INCDIR_NATIVE`
  6666. Specifies the path to the ``/usr/include`` subdirectory of the
  6667. sysroot directory for the build host.
  6668. :term:`STAGING_KERNEL_BUILDDIR`
  6669. Points to the directory containing the kernel build artifacts.
  6670. Recipes building software that needs to access kernel build artifacts
  6671. (e.g. ``systemtap-uprobes``) can look in the directory specified with
  6672. the :term:`STAGING_KERNEL_BUILDDIR` variable to find these artifacts
  6673. after the kernel has been built.
  6674. :term:`STAGING_KERNEL_DIR`
  6675. The directory with kernel headers that are required to build
  6676. out-of-tree modules.
  6677. :term:`STAGING_LIBDIR`
  6678. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6679. directory for the target for which the current recipe is being built
  6680. (:term:`STAGING_DIR_HOST`).
  6681. :term:`STAGING_LIBDIR_NATIVE`
  6682. Specifies the path to the ``/usr/lib`` subdirectory of the sysroot
  6683. directory for the build host.
  6684. :term:`STAMP`
  6685. Specifies the base path used to create recipe stamp files. The path
  6686. to an actual stamp file is constructed by evaluating this string and
  6687. then appending additional information. Currently, the default
  6688. assignment for :term:`STAMP` as set in the ``meta/conf/bitbake.conf``
  6689. file is::
  6690. STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
  6691. For information on how BitBake uses stamp files to determine if a
  6692. task should be rerun, see the
  6693. ":ref:`overview-manual/concepts:stamp files and the rerunning of tasks`"
  6694. section in the Yocto Project Overview and Concepts Manual.
  6695. See :term:`STAMPS_DIR`,
  6696. :term:`MULTIMACH_TARGET_SYS`,
  6697. :term:`PN`, :term:`EXTENDPE`,
  6698. :term:`PV`, and :term:`PR` for related variable
  6699. information.
  6700. :term:`STAMPCLEAN`
  6701. See :term:`bitbake:STAMPCLEAN` in the BitBake manual.
  6702. :term:`STAMPS_DIR`
  6703. Specifies the base directory in which the OpenEmbedded build system
  6704. places stamps. The default directory is ``${TMPDIR}/stamps``.
  6705. :term:`STRIP`
  6706. The minimal command and arguments to run ``strip``, which is used to
  6707. strip symbols.
  6708. :term:`SUMMARY`
  6709. The short (72 characters or less) summary of the binary package for
  6710. packaging systems such as ``opkg``, ``rpm``, or ``dpkg``. By default,
  6711. :term:`SUMMARY` is used to define the
  6712. :term:`DESCRIPTION` variable if :term:`DESCRIPTION` is
  6713. not set in the recipe.
  6714. :term:`SVNDIR`
  6715. The directory in which files checked out of a Subversion system are
  6716. stored.
  6717. :term:`SYSLINUX_DEFAULT_CONSOLE`
  6718. Specifies the kernel boot default console. If you want to use a
  6719. console other than the default, set this variable in your recipe as
  6720. follows where "X" is the console number you want to use::
  6721. SYSLINUX_DEFAULT_CONSOLE = "console=ttyX"
  6722. The :ref:`ref-classes-syslinux` class initially sets
  6723. this variable to null but then checks for a value later.
  6724. :term:`SYSLINUX_OPTS`
  6725. Lists additional options to add to the syslinux file. You need to set
  6726. this variable in your recipe. If you want to list multiple options,
  6727. separate the options with a semicolon character (``;``).
  6728. The :ref:`ref-classes-syslinux` class uses this variable
  6729. to create a set of options.
  6730. :term:`SYSLINUX_SERIAL`
  6731. Specifies the alternate serial port or turns it off. To turn off
  6732. serial, set this variable to an empty string in your recipe. The
  6733. variable's default value is set in the
  6734. :ref:`ref-classes-syslinux` class as follows::
  6735. SYSLINUX_SERIAL ?= "0 115200"
  6736. The class checks for and uses the variable as needed.
  6737. :term:`SYSLINUX_SERIAL_TTY`
  6738. Specifies the alternate console=tty... kernel boot argument. The
  6739. variable's default value is set in the :ref:`ref-classes-syslinux`
  6740. class as follows::
  6741. SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
  6742. The class checks for and uses the variable as needed.
  6743. :term:`SYSLINUX_SPLASH`
  6744. An ``.LSS`` file used as the background for the VGA boot menu when
  6745. you use the boot menu. You need to set this variable in your recipe.
  6746. The :ref:`ref-classes-syslinux` class checks for this
  6747. variable and if found, the OpenEmbedded build system installs the
  6748. splash screen.
  6749. :term:`SYSROOT_DESTDIR`
  6750. Points to the temporary directory under the work directory (default
  6751. "``${``\ :term:`WORKDIR`\ ``}/sysroot-destdir``")
  6752. where the files populated into the sysroot are assembled during the
  6753. :ref:`ref-tasks-populate_sysroot` task.
  6754. :term:`SYSROOT_DIRS`
  6755. Directories that are staged into the sysroot by the
  6756. :ref:`ref-tasks-populate_sysroot` task. By
  6757. default, the following directories are staged::
  6758. SYSROOT_DIRS = " \
  6759. ${includedir} \
  6760. ${libdir} \
  6761. ${base_libdir} \
  6762. ${nonarch_base_libdir} \
  6763. ${datadir} \
  6764. /sysroot-only \
  6765. "
  6766. Consider the following example in which you need to manipulate this variable.
  6767. Assume you have a recipe ``A`` that provides a shared library ``.so.*`` that is
  6768. installed into a custom folder other than "``${libdir}``"
  6769. or "``${base_libdir}``", let's say "``/opt/lib``".
  6770. .. note::
  6771. This is not a recommended way to deal with shared libraries, but this
  6772. is just to show the usefulness of setting :term:`SYSROOT_DIRS`.
  6773. When a recipe ``B`` :term:`DEPENDS` on ``A``, it means what is in
  6774. :term:`SYSROOT_DIRS` will be copied from :term:`D` of the recipe ``A``
  6775. into ``B``'s :term:`SYSROOT_DESTDIR` that is "``${WORKDIR}/sysroot-destdir``".
  6776. Now, since ``/opt/lib`` is not in :term:`SYSROOT_DIRS`, it will never be copied to
  6777. ``A``'s :term:`RECIPE_SYSROOT`, which is "``${WORKDIR}/recipe-sysroot``". So,
  6778. the linking process will fail.
  6779. To fix this, you need to add ``/opt/lib`` to :term:`SYSROOT_DIRS`::
  6780. SYSROOT_DIRS:append = " /opt/lib"
  6781. .. note::
  6782. Even after setting ``/opt/lib`` to :term:`SYSROOT_DIRS`, the linking process will still fail
  6783. because the linker does not know that location, since :term:`TARGET_LDFLAGS`
  6784. doesn't contain it (if your recipe is for the target). Therefore, so you should add::
  6785. TARGET_LDFLAGS:append = " -L${RECIPE_SYSROOT}/opt/lib"
  6786. :term:`SYSROOT_DIRS_IGNORE`
  6787. Directories that are not staged into the sysroot by the
  6788. :ref:`ref-tasks-populate_sysroot` task. You
  6789. can use this variable to exclude certain subdirectories of
  6790. directories listed in :term:`SYSROOT_DIRS` from
  6791. staging. By default, the following directories are not staged::
  6792. SYSROOT_DIRS_IGNORE = " \
  6793. ${mandir} \
  6794. ${docdir} \
  6795. ${infodir} \
  6796. ${datadir}/X11/locale \
  6797. ${datadir}/applications \
  6798. ${datadir}/bash-completion \
  6799. ${datadir}/fonts \
  6800. ${datadir}/gtk-doc/html \
  6801. ${datadir}/installed-tests \
  6802. ${datadir}/locale \
  6803. ${datadir}/pixmaps \
  6804. ${datadir}/terminfo \
  6805. ${libdir}/${BPN}/ptest \
  6806. "
  6807. :term:`SYSROOT_DIRS_NATIVE`
  6808. Extra directories staged into the sysroot by the
  6809. :ref:`ref-tasks-populate_sysroot` task for
  6810. ``-native`` recipes, in addition to those specified in
  6811. :term:`SYSROOT_DIRS`. By default, the following
  6812. extra directories are staged::
  6813. SYSROOT_DIRS_NATIVE = " \
  6814. ${bindir} \
  6815. ${sbindir} \
  6816. ${base_bindir} \
  6817. ${base_sbindir} \
  6818. ${libexecdir} \
  6819. ${sysconfdir} \
  6820. ${localstatedir} \
  6821. "
  6822. .. note::
  6823. Programs built by ``-native`` recipes run directly from the sysroot
  6824. (:term:`STAGING_DIR_NATIVE`), which is why additional directories
  6825. containing program executables and supporting files need to be staged.
  6826. :term:`SYSROOT_PREPROCESS_FUNCS`
  6827. A list of functions to execute after files are staged into the
  6828. sysroot. These functions are usually used to apply additional
  6829. processing on the staged files, or to stage additional files.
  6830. :term:`SYSTEMD_AUTO_ENABLE`
  6831. When inheriting the :ref:`ref-classes-systemd` class,
  6832. this variable specifies whether the specified service in
  6833. :term:`SYSTEMD_SERVICE` should start
  6834. automatically or not. By default, the service is enabled to
  6835. automatically start at boot time. The default setting is in the
  6836. :ref:`ref-classes-systemd` class as follows::
  6837. SYSTEMD_AUTO_ENABLE ??= "enable"
  6838. You can disable the service by setting the variable to "disable".
  6839. :term:`SYSTEMD_BOOT_CFG`
  6840. When :term:`EFI_PROVIDER` is set to
  6841. "systemd-boot", the :term:`SYSTEMD_BOOT_CFG` variable specifies the
  6842. configuration file that should be used. By default, the
  6843. :ref:`ref-classes-systemd-boot` class sets the
  6844. :term:`SYSTEMD_BOOT_CFG` as follows::
  6845. SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
  6846. For information on Systemd-boot, see the `Systemd-boot
  6847. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6848. :term:`SYSTEMD_BOOT_ENTRIES`
  6849. When :term:`EFI_PROVIDER` is set to
  6850. "systemd-boot", the :term:`SYSTEMD_BOOT_ENTRIES` variable specifies a
  6851. list of entry files (``*.conf``) to install that contain one boot
  6852. entry per file. By default, the :ref:`ref-classes-systemd-boot` class
  6853. sets the :term:`SYSTEMD_BOOT_ENTRIES` as follows::
  6854. SYSTEMD_BOOT_ENTRIES ?= ""
  6855. For information on Systemd-boot, see the `Systemd-boot
  6856. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6857. :term:`SYSTEMD_BOOT_TIMEOUT`
  6858. When :term:`EFI_PROVIDER` is set to
  6859. "systemd-boot", the :term:`SYSTEMD_BOOT_TIMEOUT` variable specifies the
  6860. boot menu timeout in seconds. By default, the
  6861. :ref:`ref-classes-systemd-boot` class sets the
  6862. :term:`SYSTEMD_BOOT_TIMEOUT` as follows::
  6863. SYSTEMD_BOOT_TIMEOUT ?= "10"
  6864. For information on Systemd-boot, see the `Systemd-boot
  6865. documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
  6866. :term:`SYSTEMD_DEFAULT_TARGET`
  6867. This variable allows to set the default unit that systemd starts at bootup.
  6868. Usually, this is either ``multi-user.target`` or ``graphical.target``.
  6869. This works by creating a ``default.target`` symbolic link to the chosen systemd
  6870. target file.
  6871. See `systemd's documentation
  6872. <https://www.freedesktop.org/software/systemd/man/systemd.special.html>`__
  6873. for details.
  6874. For example, this variable is used in the :oe_git:`core-image-minimal-xfce.bb
  6875. </meta-openembedded/tree/meta-xfce/recipes-core/images/core-image-minimal-xfce.bb>`
  6876. recipe::
  6877. SYSTEMD_DEFAULT_TARGET = "graphical.target"
  6878. :term:`SYSTEMD_PACKAGES`
  6879. When inheriting the :ref:`ref-classes-systemd` class,
  6880. this variable locates the systemd unit files when they are not found
  6881. in the main recipe's package. By default, the :term:`SYSTEMD_PACKAGES`
  6882. variable is set such that the systemd unit files are assumed to
  6883. reside in the recipes main package::
  6884. SYSTEMD_PACKAGES ?= "${PN}"
  6885. If these unit files are not in this recipe's main package, you need
  6886. to use :term:`SYSTEMD_PACKAGES` to list the package or packages in which
  6887. the build system can find the systemd unit files.
  6888. :term:`SYSTEMD_SERVICE`
  6889. When inheriting the :ref:`ref-classes-systemd` class,
  6890. this variable specifies the systemd service name for a package.
  6891. Multiple services can be specified, each one separated by a space.
  6892. When you specify this file in your recipe, use a package name
  6893. override to indicate the package to which the value applies. Here is
  6894. an example from the connman recipe::
  6895. SYSTEMD_SERVICE:${PN} = "connman.service"
  6896. The package overrides that can be specified are directly related to the value of
  6897. :term:`SYSTEMD_PACKAGES`. Overrides not included in :term:`SYSTEMD_PACKAGES`
  6898. will be silently ignored.
  6899. :term:`SYSVINIT_ENABLED_GETTYS`
  6900. When using :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  6901. specifies a space-separated list of the virtual terminals that should
  6902. run a :wikipedia:`getty <Getty_(Unix)>` (allowing login), assuming
  6903. :term:`USE_VT` is not set to "0".
  6904. The default value for :term:`SYSVINIT_ENABLED_GETTYS` is "1" (i.e. only
  6905. run a getty on the first virtual terminal).
  6906. :term:`T`
  6907. This variable points to a directory were BitBake places temporary
  6908. files, which consist mostly of task logs and scripts, when building a
  6909. particular recipe. The variable is typically set as follows::
  6910. T = "${WORKDIR}/temp"
  6911. The :term:`WORKDIR` is the directory into which
  6912. BitBake unpacks and builds the recipe. The default ``bitbake.conf``
  6913. file sets this variable.
  6914. The :term:`T` variable is not to be confused with the
  6915. :term:`TMPDIR` variable, which points to the root of
  6916. the directory tree where BitBake places the output of an entire
  6917. build.
  6918. :term:`TARGET_ARCH`
  6919. The target machine's architecture. The OpenEmbedded build system
  6920. supports many architectures. Here is an example list of architectures
  6921. supported. This list is by no means complete as the architecture is
  6922. configurable:
  6923. - arm
  6924. - i586
  6925. - x86_64
  6926. - powerpc
  6927. - powerpc64
  6928. - mips
  6929. - mipsel
  6930. For additional information on machine architectures, see the
  6931. :term:`TUNE_ARCH` variable.
  6932. :term:`TARGET_AS_ARCH`
  6933. Specifies architecture-specific assembler flags for the target
  6934. system. :term:`TARGET_AS_ARCH` is initialized from
  6935. :term:`TUNE_ASARGS` by default in the BitBake
  6936. configuration file (``meta/conf/bitbake.conf``)::
  6937. TARGET_AS_ARCH = "${TUNE_ASARGS}"
  6938. :term:`TARGET_CC_ARCH`
  6939. Specifies architecture-specific C compiler flags for the target
  6940. system. :term:`TARGET_CC_ARCH` is initialized from
  6941. :term:`TUNE_CCARGS` by default.
  6942. .. note::
  6943. It is a common workaround to append :term:`LDFLAGS` to
  6944. :term:`TARGET_CC_ARCH` in recipes that build software for the target that
  6945. would not otherwise respect the exported :term:`LDFLAGS` variable.
  6946. :term:`TARGET_CC_KERNEL_ARCH`
  6947. This is a specific kernel compiler flag for a CPU or Application
  6948. Binary Interface (ABI) tune. The flag is used rarely and only for
  6949. cases where a userspace :term:`TUNE_CCARGS` is not
  6950. compatible with the kernel compilation. The :term:`TARGET_CC_KERNEL_ARCH`
  6951. variable allows the kernel (and associated modules) to use a
  6952. different configuration. See the
  6953. ``meta/conf/machine/include/arm/feature-arm-thumb.inc`` file in the
  6954. :term:`Source Directory` for an example.
  6955. :term:`TARGET_CFLAGS`
  6956. Specifies the flags to pass to the C compiler when building for the
  6957. target. When building in the target context,
  6958. :term:`CFLAGS` is set to the value of this variable by
  6959. default.
  6960. Additionally, the SDK's environment setup script sets the :term:`CFLAGS`
  6961. variable in the environment to the :term:`TARGET_CFLAGS` value so that
  6962. executables built using the SDK also have the flags applied.
  6963. :term:`TARGET_CPPFLAGS`
  6964. Specifies the flags to pass to the C pre-processor (i.e. to both the
  6965. C and the C++ compilers) when building for the target. When building
  6966. in the target context, :term:`CPPFLAGS` is set to the
  6967. value of this variable by default.
  6968. Additionally, the SDK's environment setup script sets the
  6969. :term:`CPPFLAGS` variable in the environment to the :term:`TARGET_CPPFLAGS`
  6970. value so that executables built using the SDK also have the flags
  6971. applied.
  6972. :term:`TARGET_CXXFLAGS`
  6973. Specifies the flags to pass to the C++ compiler when building for the
  6974. target. When building in the target context,
  6975. :term:`CXXFLAGS` is set to the value of this variable
  6976. by default.
  6977. Additionally, the SDK's environment setup script sets the
  6978. :term:`CXXFLAGS` variable in the environment to the :term:`TARGET_CXXFLAGS`
  6979. value so that executables built using the SDK also have the flags
  6980. applied.
  6981. :term:`TARGET_DBGSRC_DIR`
  6982. Specifies the target path to debug source files. The default is
  6983. ``/usr/src/debug/${PN}/${PV}``.
  6984. :term:`TARGET_FPU`
  6985. Specifies the method for handling FPU code. For FPU-less targets,
  6986. which include most ARM CPUs, the variable must be set to "soft". If
  6987. not, the kernel emulation gets used, which results in a performance
  6988. penalty.
  6989. :term:`TARGET_LD_ARCH`
  6990. Specifies architecture-specific linker flags for the target system.
  6991. :term:`TARGET_LD_ARCH` is initialized from
  6992. :term:`TUNE_LDARGS` by default in the BitBake
  6993. configuration file (``meta/conf/bitbake.conf``)::
  6994. TARGET_LD_ARCH = "${TUNE_LDARGS}"
  6995. :term:`TARGET_LDFLAGS`
  6996. Specifies the flags to pass to the linker when building for the
  6997. target. When building in the target context,
  6998. :term:`LDFLAGS` is set to the value of this variable
  6999. by default.
  7000. Additionally, the SDK's environment setup script sets the
  7001. :term:`LDFLAGS` variable in the environment to the
  7002. :term:`TARGET_LDFLAGS` value so that executables built using the SDK also
  7003. have the flags applied.
  7004. :term:`TARGET_OS`
  7005. Specifies the target's operating system. The variable can be set to
  7006. "linux" for glibc-based systems (GNU C Library) and to "linux-musl"
  7007. for musl libc. For ARM/EABI targets, the possible values are
  7008. "linux-gnueabi" and "linux-musleabi".
  7009. :term:`TARGET_PREFIX`
  7010. Specifies the prefix used for the toolchain binary target tools.
  7011. Depending on the type of recipe and the build target,
  7012. :term:`TARGET_PREFIX` is set as follows:
  7013. - For recipes building for the target machine, the value is
  7014. "${:term:`TARGET_SYS`}-".
  7015. - For native recipes, the build system sets the variable to the
  7016. value of :term:`BUILD_PREFIX`.
  7017. - For native SDK recipes (:ref:`ref-classes-nativesdk`),
  7018. the build system sets the variable to the value of :term:`SDK_PREFIX`.
  7019. :term:`TARGET_SYS`
  7020. Specifies the system, including the architecture and the operating
  7021. system, for which the build is occurring in the context of the
  7022. current recipe.
  7023. The OpenEmbedded build system automatically sets this variable based
  7024. on :term:`TARGET_ARCH`,
  7025. :term:`TARGET_VENDOR`, and
  7026. :term:`TARGET_OS` variables.
  7027. .. note::
  7028. You do not need to set the :term:`TARGET_SYS` variable yourself.
  7029. Consider these two examples:
  7030. - Given a native recipe on a 32-bit, x86 machine running Linux, the
  7031. value is "i686-linux".
  7032. - Given a recipe being built for a little-endian, MIPS target
  7033. running Linux, the value might be "mipsel-linux".
  7034. :term:`TARGET_VENDOR`
  7035. Specifies the name of the target vendor.
  7036. :term:`TCLIBC`
  7037. Specifies the GNU standard C library (``libc``) variant to use during
  7038. the build process.
  7039. You can select "glibc", "musl", "newlib", or "baremetal".
  7040. :term:`TCMODE`
  7041. Specifies the toolchain selector. :term:`TCMODE` controls the
  7042. characteristics of the generated packages and images by telling the
  7043. OpenEmbedded build system which toolchain profile to use. By default,
  7044. the OpenEmbedded build system builds its own internal toolchain. The
  7045. variable's default value is "default", which uses that internal
  7046. toolchain.
  7047. .. note::
  7048. If :term:`TCMODE` is set to a value other than "default", then it is your
  7049. responsibility to ensure that the toolchain is compatible with the
  7050. default toolchain. Using older or newer versions of these
  7051. components might cause build problems. See
  7052. :doc:`Release Information </migration-guides/index>` for your
  7053. version of the Yocto Project, to find the specific components with
  7054. which the toolchain must be compatible.
  7055. The :term:`TCMODE` variable is similar to :term:`TCLIBC`,
  7056. which controls the variant of the GNU standard C library (``libc``)
  7057. used during the build process: ``glibc`` or ``musl``.
  7058. With additional layers, it is possible to use a pre-compiled external
  7059. toolchain. One example is the Sourcery G++ Toolchain. The support for
  7060. this toolchain resides in the separate Mentor Graphics
  7061. ``meta-sourcery`` layer at
  7062. https://github.com/MentorEmbedded/meta-sourcery/.
  7063. The layer's ``README`` file contains information on how to use the
  7064. Sourcery G++ Toolchain as an external toolchain. You will have to
  7065. add the layer to your ``bblayers.conf`` file and then set the
  7066. :term:`EXTERNAL_TOOLCHAIN` variable in your ``local.conf`` file to
  7067. the location of the toolchain.
  7068. The fundamentals used for this example apply to any external
  7069. toolchain. You can use ``meta-sourcery`` as a template for adding
  7070. support for other external toolchains.
  7071. In addition to toolchain configuration, you will also need a
  7072. corresponding toolchain recipe file. This recipe file needs to package
  7073. up any pre-built objects in the toolchain such as ``libgcc``,
  7074. ``libstdcc++``, any locales, and ``libc``.
  7075. :term:`TC_CXX_RUNTIME`
  7076. Specifies the C/C++ STL and runtime variant to use during
  7077. the build process. Default value is 'gnu'
  7078. You can select "gnu", "llvm", or "android".
  7079. :term:`TEMPLATECONF`
  7080. Specifies the directory used by the build system to find templates
  7081. from which to build the ``bblayers.conf`` and ``local.conf`` files.
  7082. Use this variable if you wish to customize such files, and the default
  7083. BitBake targets shown when sourcing the ``oe-init-build-env`` script.
  7084. For details, see the
  7085. :ref:`dev-manual/custom-template-configuration-directory:creating a custom template configuration directory`
  7086. section in the Yocto Project Development Tasks manual.
  7087. .. note::
  7088. You must set this variable in the external environment in order
  7089. for it to work.
  7090. :term:`TEST_EXPORT_DIR`
  7091. The location the OpenEmbedded build system uses to export tests when
  7092. the :term:`TEST_EXPORT_ONLY` variable is set
  7093. to "1".
  7094. The :term:`TEST_EXPORT_DIR` variable defaults to
  7095. ``"${TMPDIR}/testimage/${PN}"``.
  7096. :term:`TEST_EXPORT_ONLY`
  7097. Specifies to export the tests only. Set this variable to "1" if you
  7098. do not want to run the tests but you want them to be exported in a
  7099. manner that you to run them outside of the build system.
  7100. :term:`TEST_LOG_DIR`
  7101. Holds the SSH log and the boot log for QEMU machines. The
  7102. :term:`TEST_LOG_DIR` variable defaults to ``"${WORKDIR}/testimage"``.
  7103. .. note::
  7104. Actual test results reside in the task log (``log.do_testimage``),
  7105. which is in the ``${WORKDIR}/temp/`` directory.
  7106. :term:`TEST_POWERCONTROL_CMD`
  7107. For automated hardware testing, specifies the command to use to
  7108. control the power of the target machine under test. Typically, this
  7109. command would point to a script that performs the appropriate action
  7110. (e.g. interacting with a web-enabled power strip). The specified
  7111. command should expect to receive as the last argument "off", "on" or
  7112. "cycle" specifying to power off, on, or cycle (power off and then
  7113. power on) the device, respectively.
  7114. :term:`TEST_POWERCONTROL_EXTRA_ARGS`
  7115. For automated hardware testing, specifies additional arguments to
  7116. pass through to the command specified in
  7117. :term:`TEST_POWERCONTROL_CMD`. Setting
  7118. :term:`TEST_POWERCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7119. wish, for example, to separate the machine-specific and
  7120. non-machine-specific parts of the arguments.
  7121. :term:`TEST_QEMUBOOT_TIMEOUT`
  7122. The time in seconds allowed for an image to boot before automated
  7123. runtime tests begin to run against an image. The default timeout
  7124. period to allow the boot process to reach the login prompt is 500
  7125. seconds. You can specify a different value in the ``local.conf``
  7126. file.
  7127. For more information on testing images, see the
  7128. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7129. section in the Yocto Project Test Environment Manual.
  7130. :term:`TEST_SERIALCONTROL_CMD`
  7131. For automated hardware testing, specifies the command to use to
  7132. connect to the serial console of the target machine under test. This
  7133. command simply needs to connect to the serial console and forward
  7134. that connection to standard input and output as any normal terminal
  7135. program does.
  7136. For example, to use the Picocom terminal program on serial device
  7137. ``/dev/ttyUSB0`` at 115200bps, you would set the variable as follows::
  7138. TEST_SERIALCONTROL_CMD = "picocom /dev/ttyUSB0 -b 115200"
  7139. :term:`TEST_SERIALCONTROL_EXTRA_ARGS`
  7140. For automated hardware testing, specifies additional arguments to
  7141. pass through to the command specified in
  7142. :term:`TEST_SERIALCONTROL_CMD`. Setting
  7143. :term:`TEST_SERIALCONTROL_EXTRA_ARGS` is optional. You can use it if you
  7144. wish, for example, to separate the machine-specific and
  7145. non-machine-specific parts of the command.
  7146. :term:`TEST_SERVER_IP`
  7147. The IP address of the build machine (host machine). This IP address
  7148. is usually automatically detected. However, if detection fails, this
  7149. variable needs to be set to the IP address of the build machine (i.e.
  7150. where the build is taking place).
  7151. .. note::
  7152. The :term:`TEST_SERVER_IP` variable is only used for a small number of
  7153. tests such as the "dnf" test suite, which needs to download packages
  7154. from ``WORKDIR/oe-rootfs-repo``.
  7155. :term:`TEST_SUITES`
  7156. An ordered list of tests (modules) to run against an image when
  7157. performing automated runtime testing.
  7158. The OpenEmbedded build system provides a core set of tests that can
  7159. be used against images.
  7160. .. note::
  7161. Currently, there is only support for running these tests under
  7162. QEMU.
  7163. Tests include ``ping``, ``ssh``, ``df`` among others. You can add
  7164. your own tests to the list of tests by appending :term:`TEST_SUITES` as
  7165. follows::
  7166. TEST_SUITES:append = " mytest"
  7167. Alternatively, you can
  7168. provide the "auto" option to have all applicable tests run against
  7169. the image::
  7170. TEST_SUITES:append = " auto"
  7171. Using this option causes the
  7172. build system to automatically run tests that are applicable to the
  7173. image. Tests that are not applicable are skipped.
  7174. The order in which tests are run is important. Tests that depend on
  7175. another test must appear later in the list than the test on which
  7176. they depend. For example, if you append the list of tests with two
  7177. tests (``test_A`` and ``test_B``) where ``test_B`` is dependent on
  7178. ``test_A``, then you must order the tests as follows::
  7179. TEST_SUITES = "test_A test_B"
  7180. For more information on testing images, see the
  7181. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7182. section in the Yocto Project Test Environment Manual.
  7183. :term:`TEST_TARGET`
  7184. Specifies the target controller to use when running tests against a
  7185. test image. The default controller to use is "qemu"::
  7186. TEST_TARGET = "qemu"
  7187. A target controller is a class that defines how an image gets
  7188. deployed on a target and how a target is started. A layer can extend
  7189. the controllers by adding a module in the layer's
  7190. ``/lib/oeqa/controllers`` directory and by inheriting the
  7191. ``BaseTarget`` class, which is an abstract class that cannot be used
  7192. as a value of :term:`TEST_TARGET`.
  7193. You can provide the following arguments with :term:`TEST_TARGET`:
  7194. - *"qemu":* Boots a QEMU image and runs the tests. See the
  7195. ":ref:`test-manual/runtime-testing:enabling runtime tests on qemu`" section
  7196. in the Yocto Project Test Environment Manual for more
  7197. information.
  7198. - *"simpleremote":* Runs the tests on target hardware that is
  7199. already up and running. The hardware can be on the network or it
  7200. can be a device running an image on QEMU. You must also set
  7201. :term:`TEST_TARGET_IP` when you use
  7202. "simpleremote".
  7203. .. note::
  7204. This argument is defined in
  7205. ``meta/lib/oeqa/controllers/simpleremote.py``.
  7206. For information on running tests on hardware, see the
  7207. ":ref:`test-manual/runtime-testing:enabling runtime tests on hardware`"
  7208. section in the Yocto Project Test Environment Manual.
  7209. :term:`TEST_TARGET_IP`
  7210. The IP address of your hardware under test. The :term:`TEST_TARGET_IP`
  7211. variable has no effect when :term:`TEST_TARGET` is
  7212. set to "qemu".
  7213. When you specify the IP address, you can also include a port. Here is
  7214. an example::
  7215. TEST_TARGET_IP = "192.168.1.4:2201"
  7216. Specifying a port is
  7217. useful when SSH is started on a non-standard port or in cases when
  7218. your hardware under test is behind a firewall or network that is not
  7219. directly accessible from your host and you need to do port address
  7220. translation.
  7221. :term:`TESTIMAGE_AUTO`
  7222. Automatically runs the series of automated tests for images when an
  7223. image is successfully built. Setting :term:`TESTIMAGE_AUTO` to "1" causes
  7224. any image that successfully builds to automatically boot under QEMU.
  7225. Using the variable also adds in dependencies so that any SDK for
  7226. which testing is requested is automatically built first.
  7227. These tests are written in Python making use of the ``unittest``
  7228. module, and the majority of them run commands on the target system
  7229. over ``ssh``. You can set this variable to "1" in your ``local.conf``
  7230. file in the :term:`Build Directory` to have the
  7231. OpenEmbedded build system automatically run these tests after an
  7232. image successfully builds:
  7233. TESTIMAGE_AUTO = "1"
  7234. For more information
  7235. on enabling, running, and writing these tests, see the
  7236. ":ref:`test-manual/runtime-testing:performing automated runtime testing`"
  7237. section in the Yocto Project Test Environment Manual and the
  7238. ":ref:`ref-classes-testimage`" section.
  7239. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS`
  7240. When using the :ref:`ref-classes-testimage` class, the variable
  7241. :term:`TESTIMAGE_FAILED_QA_ARTIFACTS` lists space-separated paths on the
  7242. target to retrieve onto the host.
  7243. :term:`THISDIR`
  7244. The directory in which the file BitBake is currently parsing is
  7245. located. Do not manually set this variable.
  7246. :term:`TIME`
  7247. The time the build was started. Times appear using the hour, minute,
  7248. and second (HMS) format (e.g. "140159" for one minute and fifty-nine
  7249. seconds past 1400 hours).
  7250. :term:`TMPDIR`
  7251. This variable is the base directory the OpenEmbedded build system
  7252. uses for all build output and intermediate files (other than the
  7253. shared state cache). By default, the :term:`TMPDIR` variable points to
  7254. ``tmp`` within the :term:`Build Directory`.
  7255. If you want to establish this directory in a location other than the
  7256. default, you can uncomment and edit the following statement in the
  7257. ``conf/local.conf`` file in the :term:`Source Directory`::
  7258. #TMPDIR = "${TOPDIR}/tmp"
  7259. An example use for this scenario is to set :term:`TMPDIR` to a local disk,
  7260. which does not use NFS, while having the :term:`Build Directory` use NFS.
  7261. The filesystem used by :term:`TMPDIR` must have standard filesystem
  7262. semantics (i.e. mixed-case files are unique, POSIX file locking, and
  7263. persistent inodes). Due to various issues with NFS and bugs in some
  7264. implementations, NFS does not meet this minimum requirement.
  7265. Consequently, :term:`TMPDIR` cannot be on NFS.
  7266. :term:`TOOLCHAIN_HOST_TASK`
  7267. This variable lists packages the OpenEmbedded build system uses when
  7268. building an SDK, which contains a cross-development environment. The
  7269. packages specified by this variable are part of the toolchain set
  7270. that runs on the :term:`SDKMACHINE`, and each
  7271. package should usually have the prefix ``nativesdk-``. For example,
  7272. consider the following command when building an SDK::
  7273. $ bitbake -c populate_sdk imagename
  7274. In this case, a default list of packages is
  7275. set in this variable, but you can add additional packages to the
  7276. list. See the
  7277. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7278. in the Yocto Project Application Development and the Extensible
  7279. Software Development Kit (eSDK) manual for more information.
  7280. For background information on cross-development toolchains in the
  7281. Yocto Project development environment, see the
  7282. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7283. section in the Yocto Project Overview and Concepts Manual. For
  7284. information on setting up a cross-development environment, see the
  7285. :doc:`/sdk-manual/index` manual.
  7286. Note that this variable applies to building an SDK, not an eSDK,
  7287. in which case the :term:`TOOLCHAIN_HOST_TASK_ESDK` setting should be
  7288. used instead.
  7289. :term:`TOOLCHAIN_HOST_TASK_ESDK`
  7290. This variable allows to extend what is installed in the host
  7291. portion of an eSDK. This is similar to :term:`TOOLCHAIN_HOST_TASK`
  7292. applying to SDKs.
  7293. :term:`TOOLCHAIN_OPTIONS`
  7294. This variable holds extra options passed to the compiler and the linker
  7295. for non ``-native`` recipes as they have to point to their custom
  7296. ``sysroot`` folder pointed to by :term:`RECIPE_SYSROOT`::
  7297. TOOLCHAIN_OPTIONS = " --sysroot=${RECIPE_SYSROOT}"
  7298. Native recipes don't need this variable to be set, as they are
  7299. built for the host machine with the native compiler.
  7300. :term:`TOOLCHAIN_OUTPUTNAME`
  7301. This variable defines the name used for the toolchain output. The
  7302. :ref:`populate_sdk_base <ref-classes-populate-sdk-*>` class sets
  7303. the :term:`TOOLCHAIN_OUTPUTNAME` variable as follows::
  7304. TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
  7305. See
  7306. the :term:`SDK_NAME` and
  7307. :term:`SDK_VERSION` variables for additional
  7308. information.
  7309. :term:`TOOLCHAIN_TARGET_TASK`
  7310. This variable lists packages the OpenEmbedded build system uses when
  7311. it creates the target part of an SDK (i.e. the part built for the
  7312. target hardware), which includes libraries and headers. Use this
  7313. variable to add individual packages to the part of the SDK that runs
  7314. on the target. See the
  7315. ":ref:`sdk-manual/appendix-customizing-standard:adding individual packages to the standard sdk`" section
  7316. in the Yocto Project Application Development and the Extensible
  7317. Software Development Kit (eSDK) manual for more information.
  7318. For background information on cross-development toolchains in the
  7319. Yocto Project development environment, see the
  7320. ":ref:`sdk-manual/intro:the cross-development toolchain`"
  7321. section in the Yocto Project Overview and Concepts Manual. For
  7322. information on setting up a cross-development environment, see the
  7323. :doc:`/sdk-manual/index` manual.
  7324. :term:`TOPDIR`
  7325. See :term:`bitbake:TOPDIR` in the BitBake manual.
  7326. :term:`TRANSLATED_TARGET_ARCH`
  7327. A sanitized version of :term:`TARGET_ARCH`. This
  7328. variable is used where the architecture is needed in a value where
  7329. underscores are not allowed, for example within package filenames. In
  7330. this case, dash characters replace any underscore characters used in
  7331. :term:`TARGET_ARCH`.
  7332. Do not edit this variable.
  7333. :term:`TUNE_ARCH`
  7334. The GNU canonical architecture for a specific architecture (i.e.
  7335. ``arm``, ``armeb``, ``mips``, ``mips64``, and so forth). BitBake uses
  7336. this value to setup configuration.
  7337. :term:`TUNE_ARCH` definitions are specific to a given architecture. The
  7338. definitions can be a single static definition, or can be dynamically
  7339. adjusted. You can see details for a given CPU family by looking at
  7340. the architecture's ``README`` file. For example, the
  7341. ``meta/conf/machine/include/mips/README`` file in the
  7342. :term:`Source Directory` provides information for
  7343. :term:`TUNE_ARCH` specific to the ``mips`` architecture.
  7344. :term:`TUNE_ARCH` is tied closely to
  7345. :term:`TARGET_ARCH`, which defines the target
  7346. machine's architecture. The BitBake configuration file
  7347. (``meta/conf/bitbake.conf``) sets :term:`TARGET_ARCH` as follows::
  7348. TARGET_ARCH = "${TUNE_ARCH}"
  7349. The following list, which is by no means complete since architectures
  7350. are configurable, shows supported machine architectures:
  7351. - arm
  7352. - i586
  7353. - x86_64
  7354. - powerpc
  7355. - powerpc64
  7356. - mips
  7357. - mipsel
  7358. :term:`TUNE_ASARGS`
  7359. Specifies architecture-specific assembler flags for the target
  7360. system. The set of flags is based on the selected tune features.
  7361. :term:`TUNE_ASARGS` is set using the tune include files, which are
  7362. typically under ``meta/conf/machine/include/`` and are influenced
  7363. through :term:`TUNE_FEATURES`. For example, the
  7364. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7365. for the x86 architecture as follows::
  7366. TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
  7367. .. note::
  7368. Board Support Packages (BSPs) select the tune. The selected tune,
  7369. in turn, affects the tune variables themselves (i.e. the tune can
  7370. supply its own set of flags).
  7371. :term:`TUNE_CCARGS`
  7372. Specifies architecture-specific C compiler flags for the target
  7373. system. The set of flags is based on the selected tune features.
  7374. :term:`TUNE_CCARGS` is set using the tune include files, which are
  7375. typically under ``meta/conf/machine/include/`` and are influenced
  7376. through :term:`TUNE_FEATURES`.
  7377. .. note::
  7378. Board Support Packages (BSPs) select the tune. The selected tune,
  7379. in turn, affects the tune variables themselves (i.e. the tune can
  7380. supply its own set of flags).
  7381. :term:`TUNE_FEATURES`
  7382. Features used to "tune" a compiler for optimal use given a specific
  7383. processor. The features are defined within the tune files and allow
  7384. arguments (i.e. ``TUNE_*ARGS``) to be dynamically generated based on
  7385. the features.
  7386. The OpenEmbedded build system verifies the features to be sure they
  7387. are not conflicting and that they are supported.
  7388. The BitBake configuration file (``meta/conf/bitbake.conf``) defines
  7389. :term:`TUNE_FEATURES` as follows::
  7390. TUNE_FEATURES ??= "${TUNE_FEATURES:tune-${DEFAULTTUNE}}"
  7391. See the :term:`DEFAULTTUNE` variable for more information.
  7392. :term:`TUNE_LDARGS`
  7393. Specifies architecture-specific linker flags for the target system.
  7394. The set of flags is based on the selected tune features.
  7395. :term:`TUNE_LDARGS` is set using the tune include files, which are
  7396. typically under ``meta/conf/machine/include/`` and are influenced
  7397. through :term:`TUNE_FEATURES`. For example, the
  7398. ``meta/conf/machine/include/x86/arch-x86.inc`` file defines the flags
  7399. for the x86 architecture as follows::
  7400. TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
  7401. .. note::
  7402. Board Support Packages (BSPs) select the tune. The selected tune,
  7403. in turn, affects the tune variables themselves (i.e. the tune can
  7404. supply its own set of flags).
  7405. :term:`TUNE_PKGARCH`
  7406. The package architecture understood by the packaging system to define
  7407. the architecture, ABI, and tuning of output packages. The specific
  7408. tune is defined using the "_tune" override as follows::
  7409. TUNE_PKGARCH:tune-tune = "tune"
  7410. These tune-specific package architectures are defined in the machine
  7411. include files. Here is an example of the "core2-32" tuning as used in
  7412. the ``meta/conf/machine/include/x86/tune-core2.inc`` file::
  7413. TUNE_PKGARCH:tune-core2-32 = "core2-32"
  7414. :term:`TUNECONFLICTS[feature]`
  7415. Specifies CPU or Application Binary Interface (ABI) tuning features
  7416. that conflict with feature.
  7417. Known tuning conflicts are specified in the machine include files in
  7418. the :term:`Source Directory`. Here is an example from
  7419. the ``meta/conf/machine/include/mips/arch-mips.inc`` include file
  7420. that lists the "o32" and "n64" features as conflicting with the "n32"
  7421. feature::
  7422. TUNECONFLICTS[n32] = "o32 n64"
  7423. :term:`TUNEVALID[feature]`
  7424. Specifies a valid CPU or Application Binary Interface (ABI) tuning
  7425. feature. The specified feature is stored as a flag. Valid features
  7426. are specified in the machine include files (e.g.
  7427. ``meta/conf/machine/include/arm/arch-arm.inc``). Here is an example
  7428. from that file::
  7429. TUNEVALID[bigendian] = "Enable big-endian mode."
  7430. See the machine include files in the :term:`Source Directory`
  7431. for these features.
  7432. :term:`UBOOT_BINARY`
  7433. Specifies the name of the binary build by U-Boot.
  7434. :term:`UBOOT_CONFIG`
  7435. Configures one or more U-Boot configurations to build. Each
  7436. configuration can define the :term:`UBOOT_MACHINE` and optionally the
  7437. :term:`IMAGE_FSTYPES` and the :term:`UBOOT_BINARY`.
  7438. Here is an example from the ``meta-freescale`` layer. ::
  7439. UBOOT_CONFIG ??= "sdcard-ifc-secure-boot sdcard-ifc sdcard-qspi lpuart qspi secure-boot nor"
  7440. UBOOT_CONFIG[nor] = "ls1021atwr_nor_defconfig"
  7441. UBOOT_CONFIG[sdcard-ifc] = "ls1021atwr_sdcard_ifc_defconfig,,u-boot-with-spl-pbl.bin"
  7442. UBOOT_CONFIG[sdcard-qspi] = "ls1021atwr_sdcard_qspi_defconfig,,u-boot-with-spl-pbl.bin"
  7443. UBOOT_CONFIG[lpuart] = "ls1021atwr_nor_lpuart_defconfig"
  7444. UBOOT_CONFIG[qspi] = "ls1021atwr_qspi_defconfig"
  7445. UBOOT_CONFIG[secure-boot] = "ls1021atwr_nor_SECURE_BOOT_defconfig"
  7446. UBOOT_CONFIG[sdcard-ifc-secure-boot] = "ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
  7447. In this example, all possible seven configurations are selected. Each
  7448. configuration specifies "..._defconfig" as :term:`UBOOT_MACHINE`, and
  7449. the "sd..." configurations define an individual name for
  7450. :term:`UBOOT_BINARY`. No configuration defines a second parameter for
  7451. :term:`IMAGE_FSTYPES` to use for the U-Boot image.
  7452. For more information on how the :term:`UBOOT_CONFIG` is handled, see the
  7453. :ref:`ref-classes-uboot-config` class.
  7454. :term:`UBOOT_DTB_LOADADDRESS`
  7455. Specifies the load address for the dtb image used by U-Boot. During FIT
  7456. image creation, the :term:`UBOOT_DTB_LOADADDRESS` variable is used in
  7457. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7458. used in creating the dtb sections of Image Tree Source for the FIT image.
  7459. :term:`UBOOT_DTBO_LOADADDRESS`
  7460. Specifies the load address for the dtbo image used by U-Boot. During FIT
  7461. image creation, the :term:`UBOOT_DTBO_LOADADDRESS` variable is used in
  7462. :ref:`ref-classes-kernel-fitimage` class to specify the load address to be
  7463. used in creating the dtbo sections of Image Tree Source for the FIT image.
  7464. :term:`UBOOT_ENTRYPOINT`
  7465. Specifies the entry point for the U-Boot image. During U-Boot image
  7466. creation, the :term:`UBOOT_ENTRYPOINT` variable is passed as a
  7467. command-line parameter to the ``uboot-mkimage`` utility.
  7468. To pass a 64 bit address for FIT image creation, you will need to set:
  7469. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7470. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7471. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7472. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7473. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7474. classes.
  7475. :term:`UBOOT_FIT_ADDRESS_CELLS`
  7476. Specifies the value of the ``#address-cells`` value for the
  7477. description of the U-Boot FIT image.
  7478. The default value is set to "1" by the :ref:`ref-classes-uboot-sign`
  7479. class, which corresponds to 32 bit addresses.
  7480. For platforms that need to set 64 bit addresses in
  7481. :term:`UBOOT_LOADADDRESS` and :term:`UBOOT_ENTRYPOINT`, you need to
  7482. set this value to "2", as two 32 bit values (cells) will be needed
  7483. to represent such addresses.
  7484. Here is an example setting "0x400000000" as a load address::
  7485. UBOOT_FIT_ADDRESS_CELLS = "2"
  7486. UBOOT_LOADADDRESS= "0x04 0x00000000"
  7487. See `more details about #address-cells <https://elinux.org/Device_Tree_Usage#How_Addressing_Works>`__.
  7488. :term:`UBOOT_FIT_DESC`
  7489. Specifies the description string encoded into a U-Boot fitImage. The default
  7490. value is set by the :ref:`ref-classes-uboot-sign` class as follows::
  7491. UBOOT_FIT_DESC ?= "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
  7492. :term:`UBOOT_FIT_GENERATE_KEYS`
  7493. Decides whether to generate the keys for signing the U-Boot fitImage if
  7494. they don't already exist. The keys are created in :term:`SPL_SIGN_KEYDIR`.
  7495. The default value is "0".
  7496. Enable this as follows::
  7497. UBOOT_FIT_GENERATE_KEYS = "1"
  7498. This variable is used in the :ref:`ref-classes-uboot-sign` class.
  7499. :term:`UBOOT_FIT_HASH_ALG`
  7500. Specifies the hash algorithm used in creating the U-Boot FIT Image.
  7501. It is set by default to ``sha256`` by the :ref:`ref-classes-uboot-sign`
  7502. class.
  7503. :term:`UBOOT_FIT_KEY_GENRSA_ARGS`
  7504. Arguments to ``openssl genrsa`` for generating a RSA private key for
  7505. signing the U-Boot FIT image. The default value of this variable
  7506. is set to "-F4" by the :ref:`ref-classes-uboot-sign` class.
  7507. :term:`UBOOT_FIT_KEY_REQ_ARGS`
  7508. Arguments to ``openssl req`` for generating a certificate for signing
  7509. the U-Boot FIT image. The default value is "-batch -new" by the
  7510. :ref:`ref-classes-uboot-sign` class, "batch" for
  7511. non interactive mode and "new" for generating new keys.
  7512. :term:`UBOOT_FIT_KEY_SIGN_PKCS`
  7513. Format for the public key certificate used for signing the U-Boot FIT
  7514. image. The default value is set to "x509" by the
  7515. :ref:`ref-classes-uboot-sign` class.
  7516. :term:`UBOOT_FIT_SIGN_ALG`
  7517. Specifies the signature algorithm used in creating the U-Boot FIT Image.
  7518. This variable is set by default to "rsa2048" by the
  7519. :ref:`ref-classes-uboot-sign` class.
  7520. :term:`UBOOT_FIT_SIGN_NUMBITS`
  7521. Size of the private key used in signing the U-Boot FIT image, in number
  7522. of bits. The default value for this variable is set to "2048"
  7523. by the :ref:`ref-classes-uboot-sign` class.
  7524. :term:`UBOOT_FITIMAGE_ENABLE`
  7525. This variable allows to generate a FIT image for U-Boot, which is one
  7526. of the ways to implement a verified boot process.
  7527. Its default value is "0", so set it to "1" to enable this functionality::
  7528. UBOOT_FITIMAGE_ENABLE = "1"
  7529. See the :ref:`ref-classes-uboot-sign` class for details.
  7530. :term:`UBOOT_LOADADDRESS`
  7531. Specifies the load address for the U-Boot image. During U-Boot image
  7532. creation, the :term:`UBOOT_LOADADDRESS` variable is passed as a
  7533. command-line parameter to the ``uboot-mkimage`` utility.
  7534. To pass a 64 bit address, you will also need to set:
  7535. - The :term:`FIT_ADDRESS_CELLS` variable for FIT image creation.
  7536. - The :term:`UBOOT_FIT_ADDRESS_CELLS` variable for U-Boot FIT image creation.
  7537. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7538. :ref:`ref-classes-kernel-uimage`, :ref:`ref-classes-kernel`,
  7539. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7540. classes.
  7541. :term:`UBOOT_LOCALVERSION`
  7542. Appends a string to the name of the local version of the U-Boot
  7543. image. For example, assuming the version of the U-Boot image built
  7544. was "2013.10", the full version string reported by U-Boot would be
  7545. "2013.10-yocto" given the following statement::
  7546. UBOOT_LOCALVERSION = "-yocto"
  7547. :term:`UBOOT_MACHINE`
  7548. Specifies the value passed on the ``make`` command line when building
  7549. a U-Boot image. The value indicates the target platform
  7550. configuration. You typically set this variable from the machine
  7551. configuration file (i.e. ``conf/machine/machine_name.conf``).
  7552. Please see the "Selection of Processor Architecture and Board Type"
  7553. section in the U-Boot README for valid values for this variable.
  7554. :term:`UBOOT_MAKE_TARGET`
  7555. Specifies the target called in the ``Makefile``. The default target
  7556. is "all".
  7557. :term:`UBOOT_MKIMAGE`
  7558. Specifies the name of the mkimage command as used by the
  7559. :ref:`ref-classes-kernel-fitimage` class to assemble
  7560. the FIT image. This can be used to substitute an alternative command, wrapper
  7561. script or function if desired. The default is "uboot-mkimage".
  7562. :term:`UBOOT_MKIMAGE_DTCOPTS`
  7563. Options for the device tree compiler passed to ``mkimage -D`` feature
  7564. while creating a FIT image with the :ref:`ref-classes-kernel-fitimage`
  7565. class. If :term:`UBOOT_MKIMAGE_DTCOPTS` is not set then the
  7566. :ref:`ref-classes-kernel-fitimage` class will not pass the ``-D`` option
  7567. to ``mkimage``.
  7568. This variable is also used by the :ref:`ref-classes-uboot-sign` class.
  7569. :term:`UBOOT_MKIMAGE_KERNEL_TYPE`
  7570. Specifies the type argument for the kernel as passed to ``uboot-mkimage``.
  7571. The default value is "kernel".
  7572. :term:`UBOOT_MKIMAGE_SIGN`
  7573. Specifies the name of the mkimage command as used by the
  7574. :ref:`ref-classes-kernel-fitimage` class to sign
  7575. the FIT image after it has been assembled (if enabled). This can be used
  7576. to substitute an alternative command, wrapper script or function if
  7577. desired. The default is "${:term:`UBOOT_MKIMAGE`}".
  7578. :term:`UBOOT_MKIMAGE_SIGN_ARGS`
  7579. Optionally specifies additional arguments for the
  7580. :ref:`ref-classes-kernel-fitimage` class to pass to the
  7581. mkimage command when signing the FIT image.
  7582. :term:`UBOOT_RD_ENTRYPOINT`
  7583. Specifies the entrypoint for the RAM disk image. During FIT image
  7584. creation, the :term:`UBOOT_RD_ENTRYPOINT` variable is used in
  7585. :ref:`ref-classes-kernel-fitimage` class to specify the entrypoint to be
  7586. used in creating the Image Tree Source for the FIT image.
  7587. :term:`UBOOT_RD_LOADADDRESS`
  7588. Specifies the load address for the RAM disk image. During FIT image
  7589. creation, the :term:`UBOOT_RD_LOADADDRESS` variable is used in
  7590. :ref:`ref-classes-kernel-fitimage` class to specify the load address to
  7591. be used in creating the Image Tree Source for the FIT image.
  7592. :term:`UBOOT_SIGN_ENABLE`
  7593. Enable signing of FIT image. The default value is "0".
  7594. This variable is used by the :ref:`ref-classes-kernel-fitimage`,
  7595. :ref:`ref-classes-uboot-config` and :ref:`ref-classes-uboot-sign`
  7596. classes.
  7597. :term:`UBOOT_SIGN_KEYDIR`
  7598. Location of the directory containing the RSA key and certificate used for
  7599. signing FIT image, used by the :ref:`ref-classes-kernel-fitimage` and
  7600. :ref:`ref-classes-uboot-sign` classes.
  7601. :term:`UBOOT_SIGN_KEYNAME`
  7602. The name of keys used by the :ref:`ref-classes-kernel-fitimage` class
  7603. for signing U-Boot FIT image stored in the :term:`UBOOT_SIGN_KEYDIR`
  7604. directory. If we have for example a ``dev.key`` key and a ``dev.crt``
  7605. certificate stored in the :term:`UBOOT_SIGN_KEYDIR` directory, you will
  7606. have to set :term:`UBOOT_SIGN_KEYNAME` to ``dev``.
  7607. :term:`UBOOT_SUFFIX`
  7608. Points to the generated U-Boot extension. For example, ``u-boot.sb``
  7609. has a ``.sb`` extension.
  7610. The default U-Boot extension is ``.bin``
  7611. :term:`UBOOT_TARGET`
  7612. Specifies the target used for building U-Boot. The target is passed
  7613. directly as part of the "make" command (e.g. SPL and AIS). If you do
  7614. not specifically set this variable, the OpenEmbedded build process
  7615. passes and uses "all" for the target during the U-Boot building
  7616. process.
  7617. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`
  7618. Specifies a list of options that, if reported by the configure script
  7619. as being invalid, should not generate a warning during the
  7620. :ref:`ref-tasks-configure` task. Normally, invalid
  7621. configure options are simply not passed to the configure script (e.g.
  7622. should be removed from :term:`EXTRA_OECONF` or
  7623. :term:`PACKAGECONFIG_CONFARGS`).
  7624. However, there are common options that are passed to all
  7625. configure scripts at a class level, but might not be valid for some
  7626. configure scripts. Therefore warnings about these options are useless.
  7627. For these cases, the options are added to :term:`UNKNOWN_CONFIGURE_OPT_IGNORE`.
  7628. The configure arguments check that uses
  7629. :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` is part of the
  7630. :ref:`ref-classes-insane` class and is only enabled if the
  7631. recipe inherits the :ref:`ref-classes-autotools` class.
  7632. :term:`UNPACKDIR`
  7633. This variable, used by the :ref:`ref-classes-base` class,
  7634. specifies where fetches sources should be unpacked by the
  7635. :ref:`ref-tasks-unpack` task.
  7636. :term:`UPDATERCPN`
  7637. For recipes inheriting the
  7638. :ref:`ref-classes-update-rc.d` class, :term:`UPDATERCPN`
  7639. specifies the package that contains the initscript that is enabled.
  7640. The default value is "${PN}". Given that almost all recipes that
  7641. install initscripts package them in the main package for the recipe,
  7642. you rarely need to set this variable in individual recipes.
  7643. :term:`UPSTREAM_CHECK_COMMITS`
  7644. You can perform a per-recipe check for what the latest upstream
  7645. source code version is by calling ``devtool latest-version recipe``. If
  7646. the recipe source code is provided from Git repositories, but
  7647. releases are not identified by Git tags, set :term:`UPSTREAM_CHECK_COMMITS`
  7648. to ``1`` in the recipe, and the OpenEmbedded build system
  7649. will compare the latest commit with the one currently specified
  7650. by the recipe (:term:`SRCREV`)::
  7651. UPSTREAM_CHECK_COMMITS = "1"
  7652. :term:`UPSTREAM_CHECK_GITTAGREGEX`
  7653. You can perform a per-recipe check for what the latest upstream
  7654. source code version is by calling ``devtool latest-version recipe``. If
  7655. the recipe source code is provided from Git repositories, the
  7656. OpenEmbedded build system determines the latest upstream version by
  7657. picking the latest tag from the list of all repository tags.
  7658. You can use the :term:`UPSTREAM_CHECK_GITTAGREGEX` variable to provide a
  7659. regular expression to filter only the relevant tags should the
  7660. default filter not work correctly::
  7661. UPSTREAM_CHECK_GITTAGREGEX = "git_tag_regex"
  7662. :term:`UPSTREAM_CHECK_REGEX`
  7663. Use the :term:`UPSTREAM_CHECK_REGEX` variable to specify a different
  7664. regular expression instead of the default one when the package
  7665. checking system is parsing the page found using
  7666. :term:`UPSTREAM_CHECK_URI`::
  7667. UPSTREAM_CHECK_REGEX = "package_regex"
  7668. :term:`UPSTREAM_CHECK_URI`
  7669. You can perform a per-recipe check for what the latest upstream
  7670. source code version is by calling ``devtool latest-version recipe``. If
  7671. the source code is provided from tarballs, the latest version is
  7672. determined by fetching the directory listing where the tarball is and
  7673. attempting to find a later tarball. When this approach does not work,
  7674. you can use :term:`UPSTREAM_CHECK_URI` to provide a different URI that
  7675. contains the link to the latest tarball::
  7676. UPSTREAM_CHECK_URI = "recipe_url"
  7677. :term:`UPSTREAM_VERSION_UNKNOWN`
  7678. You can perform a per-recipe check for what the latest upstream
  7679. source code version is by calling ``devtool latest-version recipe``.
  7680. If no combination of the :term:`UPSTREAM_CHECK_URI`, :term:`UPSTREAM_CHECK_REGEX`,
  7681. :term:`UPSTREAM_CHECK_GITTAGREGEX` and :term:`UPSTREAM_CHECK_COMMITS` variables in
  7682. the recipe allows to determine what the latest upstream version is,
  7683. you can set :term:`UPSTREAM_VERSION_UNKNOWN` to ``1`` in the recipe
  7684. to acknowledge that the check cannot be performed::
  7685. UPSTREAM_VERSION_UNKNOWN = "1"
  7686. :term:`USE_DEVFS`
  7687. Determines if ``devtmpfs`` is used for ``/dev`` population. The
  7688. default value used for :term:`USE_DEVFS` is "1" when no value is
  7689. specifically set. Typically, you would set :term:`USE_DEVFS` to "0" for a
  7690. statically populated ``/dev`` directory.
  7691. See the ":ref:`dev-manual/device-manager:selecting a device manager`" section in
  7692. the Yocto Project Development Tasks Manual for information on how to
  7693. use this variable.
  7694. :term:`USE_VT`
  7695. When using
  7696. :ref:`SysVinit <dev-manual/new-recipe:enabling system services>`,
  7697. determines whether or not to run a :wikipedia:`getty <Getty_(Unix)>`
  7698. on any virtual terminals in order to enable logging in through those
  7699. terminals.
  7700. The default value used for :term:`USE_VT` is "1" when no default value is
  7701. specifically set. Typically, you would set :term:`USE_VT` to "0" in the
  7702. machine configuration file for machines that do not have a graphical
  7703. display attached and therefore do not need virtual terminal
  7704. functionality.
  7705. :term:`USER_CLASSES`
  7706. A list of classes to globally inherit. These classes are used by the
  7707. OpenEmbedded build system to enable extra features.
  7708. Classes inherited using :term:`USER_CLASSES` must be located in the
  7709. ``classes-global/`` or ``classes/`` subdirectories.
  7710. The default list is set in your ``local.conf`` file::
  7711. USER_CLASSES ?= "buildstats"
  7712. For more information, see
  7713. ``meta-poky/conf/templates/default/local.conf.sample`` in the
  7714. :term:`Source Directory`.
  7715. :term:`USERADD_DEPENDS`
  7716. Specifies a list of recipes that create users / groups (via
  7717. :term:`USERADD_PARAM` / :term:`GROUPADD_PARAM`) which a recipe
  7718. depends upon. This ensures that those users / groups are available
  7719. when building a recipe.
  7720. :term:`USERADD_ERROR_DYNAMIC`
  7721. If set to ``error``, forces the OpenEmbedded build system to produce
  7722. an error if the user identification (``uid``) and group
  7723. identification (``gid``) values are not defined in any of the files
  7724. listed in :term:`USERADD_UID_TABLES` and
  7725. :term:`USERADD_GID_TABLES`. If set to
  7726. ``warn``, a warning will be issued instead.
  7727. The default behavior for the build system is to dynamically apply
  7728. ``uid`` and ``gid`` values. Consequently, the
  7729. :term:`USERADD_ERROR_DYNAMIC` variable is by default not set. If you plan
  7730. on using statically assigned ``gid`` and ``uid`` values, you should
  7731. set the :term:`USERADD_ERROR_DYNAMIC` variable in your ``local.conf``
  7732. file as follows::
  7733. USERADD_ERROR_DYNAMIC = "error"
  7734. Overriding the
  7735. default behavior implies you are going to also take steps to set
  7736. static ``uid`` and ``gid`` values through use of the
  7737. :term:`USERADDEXTENSION`,
  7738. :term:`USERADD_UID_TABLES`, and
  7739. :term:`USERADD_GID_TABLES` variables.
  7740. .. note::
  7741. There is a difference in behavior between setting
  7742. :term:`USERADD_ERROR_DYNAMIC` to ``error`` and setting it to ``warn``.
  7743. When it is set to ``warn``, the build system will report a warning for
  7744. every undefined ``uid`` and ``gid`` in any recipe. But when it is set
  7745. to ``error``, it will only report errors for recipes that are actually
  7746. built.
  7747. This saves you from having to add static IDs for recipes that you
  7748. know will never be built.
  7749. :term:`USERADD_GID_TABLES`
  7750. Specifies a password file to use for obtaining static group
  7751. identification (``gid``) values when the OpenEmbedded build system
  7752. adds a group to the system during package installation.
  7753. When applying static group identification (``gid``) values, the
  7754. OpenEmbedded build system looks in :term:`BBPATH` for a
  7755. ``files/group`` file and then applies those ``uid`` values. Set the
  7756. variable as follows in your ``local.conf`` file::
  7757. USERADD_GID_TABLES = "files/group"
  7758. .. note::
  7759. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7760. causes the build system to use static ``gid`` values.
  7761. :term:`USERADD_PACKAGES`
  7762. When inheriting the :ref:`ref-classes-useradd` class,
  7763. this variable specifies the individual packages within the recipe
  7764. that require users and/or groups to be added.
  7765. You must set this variable if the recipe inherits the class. For
  7766. example, the following enables adding a user for the main package in
  7767. a recipe::
  7768. USERADD_PACKAGES = "${PN}"
  7769. .. note::
  7770. It follows that if you are going to use the :term:`USERADD_PACKAGES`
  7771. variable, you need to set one or more of the :term:`USERADD_PARAM`,
  7772. :term:`GROUPADD_PARAM`, or :term:`GROUPMEMS_PARAM` variables.
  7773. :term:`USERADD_PARAM`
  7774. When inheriting the :ref:`ref-classes-useradd` class,
  7775. this variable specifies for a package what parameters should pass to
  7776. the ``useradd`` command if you add a user to the system when the
  7777. package is installed.
  7778. Here is an example from the ``dbus`` recipe::
  7779. USERADD_PARAM:${PN} = "--system --home ${localstatedir}/lib/dbus \
  7780. --no-create-home --shell /bin/false \
  7781. --user-group messagebus"
  7782. For information on the
  7783. standard Linux shell command ``useradd``, see
  7784. https://linux.die.net/man/8/useradd.
  7785. :term:`USERADD_UID_TABLES`
  7786. Specifies a password file to use for obtaining static user
  7787. identification (``uid``) values when the OpenEmbedded build system
  7788. adds a user to the system during package installation.
  7789. When applying static user identification (``uid``) values, the
  7790. OpenEmbedded build system looks in :term:`BBPATH` for a
  7791. ``files/passwd`` file and then applies those ``uid`` values. Set the
  7792. variable as follows in your ``local.conf`` file::
  7793. USERADD_UID_TABLES = "files/passwd"
  7794. .. note::
  7795. Setting the :term:`USERADDEXTENSION` variable to "useradd-staticids"
  7796. causes the build system to use static ``uid`` values.
  7797. :term:`USERADDEXTENSION`
  7798. When set to "useradd-staticids", causes the OpenEmbedded build system
  7799. to base all user and group additions on a static ``passwd`` and
  7800. ``group`` files found in :term:`BBPATH`.
  7801. To use static user identification (``uid``) and group identification
  7802. (``gid``) values, set the variable as follows in your ``local.conf``
  7803. file: USERADDEXTENSION = "useradd-staticids"
  7804. .. note::
  7805. Setting this variable to use static ``uid`` and ``gid``
  7806. values causes the OpenEmbedded build system to employ the
  7807. :ref:`ref-classes-useradd` class.
  7808. If you use static ``uid`` and ``gid`` information, you must also
  7809. specify the ``files/passwd`` and ``files/group`` files by setting the
  7810. :term:`USERADD_UID_TABLES` and
  7811. :term:`USERADD_GID_TABLES` variables.
  7812. Additionally, you should also set the
  7813. :term:`USERADD_ERROR_DYNAMIC` variable.
  7814. :term:`VIRTUAL-RUNTIME`
  7815. :term:`VIRTUAL-RUNTIME` is a commonly used prefix for defining virtual
  7816. packages for runtime usage, typically for use in :term:`RDEPENDS`
  7817. or in image definitions.
  7818. An example is ``VIRTUAL-RUNTIME_base-utils`` that makes it possible
  7819. to either use BusyBox based utilities::
  7820. VIRTUAL-RUNTIME_base-utils = "busybox"
  7821. or their full featured implementations from GNU Coreutils
  7822. and other projects::
  7823. VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
  7824. Here are two examples using this virtual runtime package. The
  7825. first one is in :yocto_git:`initramfs-framework_1.0.bb
  7826. </poky/tree/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb?h=scarthgap>`::
  7827. RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}"
  7828. The second example is in the :yocto_git:`core-image-initramfs-boot
  7829. </poky/tree/meta/recipes-core/images/core-image-initramfs-boot.bb?h=scarthgap>`
  7830. image definition::
  7831. PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd"
  7832. :term:`WARN_QA`
  7833. Specifies the quality assurance checks whose failures are reported as
  7834. warnings by the OpenEmbedded build system. You set this variable in
  7835. your distribution configuration file. For a list of the checks you
  7836. can control with this variable, see the
  7837. ":ref:`ref-classes-insane`" section.
  7838. :term:`WATCHDOG_TIMEOUT`
  7839. Specifies the timeout in seconds used by the ``watchdog`` recipe and
  7840. also by ``systemd`` during reboot. The default is 60 seconds.
  7841. :term:`WIRELESS_DAEMON`
  7842. For ``connman`` and ``packagegroup-base``, specifies the wireless
  7843. daemon to use. The default is "wpa-supplicant" (note that the value
  7844. uses a dash and not an underscore).
  7845. :term:`WKS_FILE`
  7846. Specifies the location of the Wic kickstart file that is used by the
  7847. OpenEmbedded build system to create a partitioned image
  7848. (``image.wic``). For information on how to create a partitioned
  7849. image, see the
  7850. ":ref:`dev-manual/wic:creating partitioned images using wic`"
  7851. section in the Yocto Project Development Tasks Manual. For details on
  7852. the kickstart file format, see the ":doc:`/ref-manual/kickstart`" Chapter.
  7853. :term:`WKS_FILE_DEPENDS`
  7854. When placed in the recipe that builds your image, this variable lists
  7855. build-time dependencies. The :term:`WKS_FILE_DEPENDS` variable is only
  7856. applicable when Wic images are active (i.e. when
  7857. :term:`IMAGE_FSTYPES` contains entries related
  7858. to Wic). If your recipe does not create Wic images, the variable has
  7859. no effect.
  7860. The :term:`WKS_FILE_DEPENDS` variable is similar to the
  7861. :term:`DEPENDS` variable. When you use the variable in
  7862. your recipe that builds the Wic image, dependencies you list in the
  7863. :term:`WKS_FILE_DEPENDS` variable are added to the :term:`DEPENDS` variable.
  7864. With the :term:`WKS_FILE_DEPENDS` variable, you have the possibility to
  7865. specify a list of additional dependencies (e.g. native tools,
  7866. bootloaders, and so forth), that are required to build Wic images.
  7867. Here is an example::
  7868. WKS_FILE_DEPENDS = "some-native-tool"
  7869. In the
  7870. previous example, some-native-tool would be replaced with an actual
  7871. native tool on which the build would depend.
  7872. :term:`WKS_FILES`
  7873. Specifies a list of candidate Wic kickstart files to be used by the
  7874. OpenEmbedded build system to create a partitioned image. Only the
  7875. first one that is found, from left to right, will be used.
  7876. This is only useful when there are multiple ``.wks`` files that can be
  7877. used to produce an image. A typical case is when multiple layers are
  7878. used for different hardware platforms, each supplying a different
  7879. ``.wks`` file. In this case, you specify all possible ones through
  7880. :term:`WKS_FILES`.
  7881. If only one ``.wks`` file is used, set :term:`WKS_FILE` instead.
  7882. :term:`WORKDIR`
  7883. The pathname of the work directory in which the OpenEmbedded build
  7884. system builds a recipe. This directory is located within the
  7885. :term:`TMPDIR` directory structure and is specific to
  7886. the recipe being built and the system for which it is being built.
  7887. The :term:`WORKDIR` directory is defined as follows::
  7888. ${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}
  7889. The actual directory depends on several things:
  7890. - :term:`TMPDIR`: The top-level build output directory
  7891. - :term:`MULTIMACH_TARGET_SYS`: The target system identifier
  7892. - :term:`PN`: The recipe name
  7893. - :term:`EXTENDPE`: The epoch --- if :term:`PE` is not specified, which
  7894. is usually the case for most recipes, then :term:`EXTENDPE` is blank.
  7895. - :term:`PV`: The recipe version
  7896. - :term:`PR`: The recipe revision
  7897. As an example, assume a Source Directory top-level folder name
  7898. ``poky``, a default :term:`Build Directory` at ``poky/build``, and a
  7899. ``qemux86-poky-linux`` machine target system. Furthermore, suppose
  7900. your recipe is named ``foo_1.3.0-r0.bb``. In this case, the work
  7901. directory the build system uses to build the package would be as
  7902. follows::
  7903. poky/build/tmp/work/qemux86-poky-linux/foo/1.3.0-r0
  7904. :term:`XSERVER`
  7905. Specifies the packages that should be installed to provide an X
  7906. server and drivers for the current machine, assuming your image
  7907. directly includes ``packagegroup-core-x11-xserver`` or, perhaps
  7908. indirectly, includes "x11-base" in
  7909. :term:`IMAGE_FEATURES`.
  7910. The default value of :term:`XSERVER`, if not specified in the machine
  7911. configuration, is "xserver-xorg xf86-video-fbdev xf86-input-evdev".
  7912. :term:`XZ_THREADS`
  7913. Specifies the number of parallel threads that should be used when
  7914. using xz compression.
  7915. By default this scales with core count, but is never set less than 2
  7916. to ensure that multi-threaded mode is always used so that the output
  7917. file contents are deterministic. Builds will work with a value of 1
  7918. but the output will differ compared to the output from the compression
  7919. generated when more than one thread is used.
  7920. On systems where many tasks run in parallel, setting a limit to this
  7921. can be helpful in controlling system resource usage.
  7922. :term:`XZ_MEMLIMIT`
  7923. Specifies the maximum memory the xz compression should use as a percentage
  7924. of system memory. If unconstrained the xz compressor can use large amounts of
  7925. memory and become problematic with parallelism elsewhere in the build.
  7926. "50%" has been found to be a good value.
  7927. :term:`ZSTD_THREADS`
  7928. Specifies the number of parallel threads that should be used when
  7929. using ZStandard compression.
  7930. By default this scales with core count, but is never set less than 2
  7931. to ensure that multi-threaded mode is always used so that the output
  7932. file contents are deterministic. Builds will work with a value of 1
  7933. but the output will differ compared to the output from the compression
  7934. generated when more than one thread is used.
  7935. On systems where many tasks run in parallel, setting a limit to this
  7936. can be helpful in controlling system resource usage.